/* ============================================================
   刘浩志 作品集 — 1-bit Macintosh × 纸
   像素字体：Fusion Pixel (OFL) · 单色系统 · 暖纸底
   西文正文：RuanSong Display Medium · 西文标题：Silom
   中文正文：Noto Serif SC（本地子集，字体定义见 fonts.css）
   ============================================================ */

:root {
  --paper:     #F4F1E8;
  --paper-dim: #E7E3D6;
  --ink:       #1B1712;
  --ink-soft:  #4C4438;
  --ink-faint: #8A8070;
  --red:       #B23A26;
  --blue:      #2E5A7D;
  --gold:      #9A7318;   /* 藤黄：卷次、数码、悬停底色 —— 第三色，用得很省 */

  /* 拉丁字母一律走 RuanSong Display，中文才落到 Noto Serif SC。
     字体栈按字形逐个回退，所以西文永远不会用中文字体里的英文。
     注意 --latin 结尾不能放 serif / ui-serif 这类通用族，否则会拦住后面的中文字体。 */
  --latin: "RuanSong Display", Georgia, "Times New Roman";
  --px: "Fusion Pixel", "PingFang SC", "Microsoft YaHei", monospace;
  --body-en: var(--latin), serif;
  --body-zh: var(--latin), "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --title-en: "Silom", "Fusion Pixel", "SF Mono", "Menlo", monospace;

  --dither50: repeating-conic-gradient(var(--ink) 0% 25%, transparent 0% 50%);
  --gutter: clamp(1.1rem, 6vw, 7rem);

  --section-gap: clamp(6.5rem, 16vh, 12rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:     #161513;
    --paper-dim: #201E1A;
    --ink:       #E9E2CF;
    --ink-soft:  #B5AB94;
    --ink-faint: #6E6555;
    --red:       #D96A50;
    --blue:      #7FB0CE;
    --gold:      #C9A245;
  }
}
:root[data-theme="dark"] {
  --paper:     #161513;
  --paper-dim: #201E1A;
  --ink:       #E9E2CF;
  --ink-soft:  #B5AB94;
  --ink-faint: #6E6555;
  --red:       #D96A50;
  --blue:      #7FB0CE;
  --gold:      #C9A245;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 锚点跳转时避开吸顶菜单栏 */
#contact { scroll-margin-top: 34px; }

/* 底纹：原来是 6px 圆点网格 —— 那是「屏幕」的纹理，所以纸感只停在颜色上。
   换成手工纸的帘纹（极细的横纹），再留一层很稀的点当 Mac 的余味。 */
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(to bottom,
      transparent 0 3px,
      color-mix(in srgb, var(--ink) 3.5%, transparent) 3px 4px),
    radial-gradient(color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 100% 4px, 14px 14px;
  color: var(--ink);
  font-family: var(--body-zh);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.95;
}

body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: .018;
  /* 预先生成的细颗粒，不再在固定全屏图层上计算 SVG 滤镜。 */
  background-image: url("../assets/paper-grain.744c15702a02.png");
}

#sky {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
}

main, footer.desk-foot { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
picture { display: block; }
.win__media picture { width: 100%; height: 100%; }
.fig-win .win__media picture { height: auto; }
a { color: inherit; text-decoration: none; }

.collage__item:focus-visible,
.hero__avatar:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 6px;
}

::selection { background: var(--ink); color: var(--paper); }

/* --- 双语 ------------------------------------------------ */
:root[data-lang="en"] .zh { display: none !important; }
:root[data-lang="zh"] .en { display: none !important; }

/* ============================================================
   菜单栏
   ============================================================ */
.menubar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: stretch;
  gap: 0;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  font-family: var(--px);
  font-size: 15px;
  line-height: 1;
  padding: 0 clamp(.4rem, 2vw, 1.2rem);
  user-select: none;
}

.menubar__item {
  display: flex; align-items: center; gap: .5em;
  padding: .62em .85em;
  white-space: nowrap;
  cursor: pointer;
  border: 0; background: none;
  font: inherit; color: inherit;
}
.menubar__item:hover,
.menubar__item[aria-current="page"] { background: var(--ink); color: var(--paper); }
.menubar__item[aria-current="page"] { cursor: default; }

.menubar__logo { padding-left: .6em; }
.menubar__logo svg { display: block; }
.menubar__logo:hover svg .px-fill { fill: var(--paper); }

.menubar__spacer { flex: 1; }

/* ============================================================
   下拉菜单（经典 Mac：白底、粗黑框、硬投影、选中反色）
   ============================================================ */
.menubar__menu { position: relative; display: flex; }
.menubar__menu [data-menu][aria-expanded="true"] { background: var(--ink); color: var(--paper); }

.dropdown {
  position: absolute;
  top: 100%; left: 0;
  z-index: 60;
  display: none;
  min-width: max-content;
  padding: 3px 0;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--ink) 82%, transparent);
  font-family: var(--px);
  font-size: 14px;
  line-height: 1;
}
.dropdown.is-open { display: block; }

.dropdown__item {
  display: flex; align-items: center; gap: .9em;
  padding: .62em 1.5em .62em .9em;
  white-space: nowrap;
  cursor: pointer;
}
.dropdown__item:hover { background: var(--ink); color: var(--paper); }
.dropdown__item--sub { padding-left: 2.6em; color: var(--ink-soft); font-size: 13px; }
.dropdown__item--sub:hover { color: var(--paper); }
.dropdown__key { color: var(--red); flex: none; }
.dropdown__item:hover .dropdown__key { color: var(--paper); }

.dropdown__sep {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--dither50);
  background-size: 4px 4px;
  opacity: .55;
}

/* 手机端菜单栏本来就挤，收起作品子项 */
@media (max-width: 600px) {
  .dropdown__item--sub { display: none; }
  .dropdown { font-size: 13px; }
}

.menubar__clock {
  display: flex; align-items: center;
  padding: 0 .8em;
  font-size: 15px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* 品牌位后面的「作品集 / Portfolio」——点明这是什么站 */
.menubar__suffix {
  margin-left: .55em;
  color: var(--ink-faint);
  font-weight: 400;
  letter-spacing: .04em;
}
.menubar__item:hover .menubar__suffix { color: inherit; }

@media (max-width: 600px) {
  .menubar { font-size: 13px; }
  .menubar__clock { display: none; }
}

/* 英文模式：顶部 tab 用 Silom */
:root[data-lang="en"] .menubar__item,
:root[data-lang="en"] .menubar__clock { font-family: var(--title-en); }

/* 英文标题统一用 Silom（中文标题保持像素字体） */
.hero__line .en,
.card__title .en,
.case__title .en,
.rule-head h2 .en,
.cv h3 .en,
.about-mac__body h2 .en,
.pxcover__big .en,
.pxcover__small .en,
:root[data-lang="en"] .win__title,
:root[data-lang="en"] .stamp,
:root[data-lang="en"] .card__tags,
:root[data-lang="en"] .list__tag { font-family: var(--title-en); }

/* ============================================================
   窗口（全站核心组件）
   ============================================================ */
.win {
  display: block;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--ink) 82%, transparent);
}

.win__bar {
  position: relative;
  display: flex; align-items: center;
  height: 26px;
  padding: 0 8px;
  border-bottom: 2px solid var(--ink);
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    var(--ink) 3px 4px,
    transparent 4px 7px
  );
  background-size: 100% 22px;
  background-position: 0 2px;
  background-repeat: no-repeat;
  font-family: var(--px);
}

.win__close {
  width: 13px; height: 13px;
  border: 2px solid var(--ink);
  background: var(--paper);
  flex: none;
  /* 是 <button>：清掉浏览器默认样式，只留那个 13px 的方块 */
  padding: 0;
  appearance: none;
  border-radius: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.win__close:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
/* 卡片本身是链接时方块仍是 <span>（button 不能嵌在 a 里），纯装饰 */
a.win .win__close { pointer-events: none; }

.win__title {
  margin: 0 auto;
  padding: 0 10px;
  background: var(--paper);
  font-size: 14px;
  letter-spacing: .04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 90%;
  /* 「你好.txt」这种：西文和数字走 Silom，中文回退像素字体 */
  font-family: var(--title-en), var(--px);
}

a.win { transition: box-shadow .12s steps(2, end), translate .12s steps(2, end); }
a.win:hover {
  translate: -2px -2px;
  box-shadow: 10px 10px 0 color-mix(in srgb, var(--ink) 82%, transparent);
}
a.win:hover .win__bar { background: var(--ink); }
a.win:hover .win__title { background: var(--ink); color: var(--paper); }
a.win:hover .win__close { background: var(--paper); }

/* 版心：正文区里再退一道细线，就是古籍版框的「双边」。
   Mac 窗口的粗黑边 + 里面一道细线，两种系统都是纯线条，叠在一起不打架。 */
.win__body {
  position: relative;
  padding: clamp(1.4rem, 3.4vw, 2.8rem);
}
.win__body::before {
  content: "";
  position: absolute;
  inset: clamp(.5rem, 1.1vw, .85rem);
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
}
/* 卡片正文太窄，画上去只会显得挤；版框只给大块的正文用 */
.grid .win__body::before,
.pxcover ~ .win__body::before { display: none; }

.win__media {
  position: relative;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  aspect-ratio: 1024 / 672;
  background: var(--paper-dim);
}
/* 封面默认就该是彩色的 —— 全站的色彩本来就该由作品自己提供。
   原先默认 saturate(.35) + 纸雾 + 满格网点，不悬停就是一片米灰，
   这是整页看起来单调的头号原因。现在只留一点点印刷味，悬停彻底还原。 */
.win__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.88) contrast(.98);
  transition: filter .6s ease;
}
a.win:hover .win__media img { filter: none; }
/* 只有没有 hover 的设备（手机/平板）才用「滚进视野」代替悬停 */
@media (hover: none) {
  .win__media.is-lit img { filter: none; }
}

/* 统一的「纸张套印」层：一层暖纸色薄雾，把明暗差别很大的几张封面
   （深红底的数据库首页 96 / 浅色报纸拼贴 230）拉到同一个调子上。
   不去改图片本身——那会把人家原本的配色毁掉。 */
.win__media::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  background: var(--paper);
  opacity: .07;
  transition: opacity .6s ease;
}
a.win:hover .win__media::before { opacity: 0; }
@media (hover: none) { .win__media.is-lit::before { opacity: 0; } }
.fig-win .win__media.is-lit::before { opacity: 0; }

.win__media::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: multiply;
  opacity: .34;
  transition: opacity .6s ease;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(0, 150, 214, .34) 17%, transparent 19%),
    radial-gradient(circle at 50% 50%, rgba(220, 0, 118, .30) 17%, transparent 19%);
  background-size: 9px 9px, 10.6px 10.6px;
  background-position: 0 0, 3.2px 4.1px;
}
a.win:hover .win__media::after { opacity: 0; }
@media (hover: none) {
  .win__media.is-lit::after { opacity: 0; }
}

/* 案例页里的插图不是链接，没法靠悬停唤醒——改成滚进视野就恢复，
   否则它会永远停在「未唤醒」的淡色 + 网点状态。 */
.fig-win .win__media.is-lit img { filter: none; }
.fig-win .win__media.is-lit::after { opacity: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .win__media::after { mix-blend-mode: screen; opacity: .2; }
}
:root[data-theme="dark"] .win__media::after { mix-blend-mode: screen; opacity: .2; }

/* ============================================================
   桌面布局 — 大量留白
   ============================================================ */
.desk {
  padding: clamp(1.6rem, 4vh, 3rem) var(--gutter) clamp(3rem, 8vh, 5rem);
  max-width: 82rem;
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
}
@media (max-width: 780px) { .grid { grid-template-columns: 1fr; } }
.span2 { grid-column: 1 / -1; }
.span2 .win__media { aspect-ratio: 21 / 10; }
@media (max-width: 780px) { .span2 .win__media { aspect-ratio: 1024 / 672; } }

/* ============================================================
   Hero 窗口 — 近满屏
   ============================================================ */
.hero-win {
  margin-bottom: var(--section-gap);
  /* 不占满整屏：留出下面第一张作品卡的标题栏露头，既暗示可以往下滚，
     也让「第一眼看到的是作品」这件事在首屏就成立。 */
  min-height: calc(68vh - 32px);
  display: flex;
  flex-direction: column;
}
.hero-win .win__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(2rem, 6vw, 5rem);
}

/* Hero 双栏：文字 + 像素头像（填补右侧留白） */
.hero__cols {
  display: grid;
  /* 头像在左、文字在右——原图本来就朝右，不镜像正好面向版心 */
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  /* start 而非 center：英文标题换行时头像不跟着往下掉 */
  align-items: start;
}
.hero__text { container-type: inline-size; order: 2; }
.hero__avatar {
  order: 1;
  position: relative;
  width: clamp(150px, 20vw, 250px);
  /* 与标题首行对齐（kicker 高度 + 其下 margin） */
  margin-top: clamp(1rem, 4vh, 3rem);
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.hero__avatar svg { width: 100%; height: auto; display: block; }
/* 头像分三层：白边（剪影外扩 2px）→ 剪影纸色 → 线稿墨色，像一张贴纸。
   浅色模式下剪影和背景同色所以看不出来；深色模式下人物内部是实心浅色，
   不会变成一副空心亮线的骨架。 */
/* 用固定色而不是主题变量：剪影永远是浅纸色、线稿永远是深墨色。
   浅色模式下剪影和页面底色一致 → 看起来就是原来的线稿；
   深色模式下就变成一张浅色贴纸，内部是实心的，不会成为空心亮线。 */
/* 白边只在深色模式下需要（衬托用）；浅色模式下纸色本来就够，不画 */
.hero__avatar .av-edge,
.portrait--avatar .av-edge { fill: transparent; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero__avatar .av-edge,
  :root:not([data-theme="light"]) .portrait--avatar .av-edge { fill: #FFFFFF; }
}
:root[data-theme="dark"] .hero__avatar .av-edge,
:root[data-theme="dark"] .portrait--avatar .av-edge { fill: #FFFFFF; }
.hero__avatar .av-fill,
.portrait--avatar .av-fill { fill: #F4F1E8; }
.hero__avatar .av-ink,
.portrait--avatar .av-ink { fill: #1B1712; }
.hero__avatar:hover { animation: avatar-bob .5s steps(2, end) infinite; }
@keyframes avatar-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}
.avatar-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  translate: -50%;
  padding: .5em .9em;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--ink) 82%, transparent);
  font-family: var(--px);
  font-size: 14px;
  line-height: 1.6;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s steps(2, end);
}
.avatar-bubble::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  translate: -50%;
  border: 6px solid transparent;
  border-top-color: var(--ink);
}
.avatar-bubble.is-on { opacity: 1; }
@media (max-width: 780px) {
  .hero__cols { grid-template-columns: 1fr; }
  .hero__avatar { width: 140px; order: -1; margin-bottom: .5rem; }
  /* 收窄内边距，给标题留出一行的宽度 */
  .hero-win .win__body { padding: clamp(1.6rem, 5vw, 2.4rem) 1.4rem; }
}

.hero__kicker {
  margin: 0 0 1.8em;
  font-family: var(--px);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--red);
  text-transform: uppercase;
}

.hero__line {
  margin: 0;
  font-family: var(--px);
  /* 回退：按视口估算文字栏宽度 */
  font-size: clamp(24px, 3.6vw, 50px);
  /* 按文字栏实际宽度取字号，让中文标题正好占满一行（11 字 + 光标 ≈ 11.9em） */
  font-size: clamp(24px, 7.9cqw, 60px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .02em;
  /* 标题在逗号处断行（HTML 里写的是真换行符，不是 <br>——打字机逐字写
     textContent，标签会被吃掉） */
  white-space: pre-line;
}
.hero__line .en {
  font-family: var(--title-en);
}

.cursor {
  display: inline-block;
  width: .55em; height: 1.05em;
  background: var(--ink);
  vertical-align: text-bottom;
  margin-left: .12em;
  animation: blink 1.06s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__sub {
  margin: 2.4em 0 0;
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 2;
}

.hero__meta {
  margin-top: 3em;
  display: flex; flex-wrap: wrap; gap: .5em 2em;
  font-family: var(--px);
  font-size: 13px;
  color: var(--ink-faint);
}

/* ============================================================
   产出统计 —— 两个视图，一份数据
   「时间线」一块砖 = 一件作品，按月累计往上砌；滑过任意一个月，
             后面的砖褪成影子，等于把这一年倒回那一格
   「能力雷达」同一批作品按练到的本事再数一遍
   数据在 js/main.js 顶部的 WORKS 里，改那一处两个视图一起变
   ============================================================ */
.chart-win { margin-bottom: var(--section-gap); }
.chart-win .win__body { padding: clamp(1.5rem, 3.4vw, 2.6rem); }

.chart__lede {
  margin: 0 0 1.8em;
  max-width: 56ch;
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.95;
}
.chart__lede b { font-weight: inherit; color: var(--ink); }

/* ── 视图切换：System 6 的分段按钮，两格连在一个墨框里 ── */
.chart__tabs {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 0 1.8rem;
  border: 2px solid var(--ink);
}
.chart__tab {
  padding: .5em 1.5em;
  border: 0;
  border-right: 2px solid var(--ink);
  background: none;
  font-family: var(--px);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .12s steps(2, end), color .12s steps(2, end);
}
.chart__tab:last-child { border-right: 0; }
.chart__tab:hover { background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--ink); }
.chart__tab.is-on { background: var(--ink); color: var(--paper); }
.chart__tab:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* 没有 JS 时两个视图都空着，那就把整块收起来，不留半个空窗 */
.chart__view { display: none; }
.js .chart__view.is-on { display: block; }
html:not(.js) .chart__tabs { display: none; }
.js .chart__view.is-on { animation: viewIn .2s steps(3, end); }
@keyframes viewIn { from { opacity: 0; translate: 0 8px; } }

/* ── 计数牌 ── */
.chart__hud {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .2em .8em;
  margin: 0 0 1.4rem;
}
.chart__hud-n {
  font-family: var(--title-en);
  font-size: clamp(40px, 6.4vw, 68px);
  line-height: .9;
  font-variant-numeric: tabular-nums;
}
.chart__hud-lbl {
  font-family: var(--px);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--ink-faint);
}
.chart__hud-lbl b { font-weight: 400; color: var(--red); }
.chart__hud-lbl b:not(:empty)::after { content: " · "; color: var(--ink-faint); }

.chart__play {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: .6em;
  padding: .45em 1em;
  border: 2px solid var(--ink);
  background: none;
  font-family: var(--px);
  font-size: 12.5px;
  color: var(--ink);
  cursor: pointer;
}
.chart__play:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.chart__play:disabled { opacity: .4; cursor: default; }
.chart__play-ico {
  width: 0; height: 0;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* ── 砖墙 ── */
.chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(.5rem, 2.2vw, 2rem);
  padding-bottom: .8rem;
  border-bottom: 2px solid var(--ink);
}

.chart__col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1 1 0;
  min-width: 0;
  max-width: 190px;
  padding: 0 0 .1rem;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.chart__col:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
/* 悬停的那一格铺一层藤黄，像把这一列挑出来 */
.chart__col.is-cursor { background: color-mix(in srgb, var(--gold) 15%, transparent); }

/* 奖章别在墙头上 */
.chart__pins {
  display: flex; justify-content: center; gap: 1px;
  min-height: 1.25em;
  font-size: 11px; line-height: 1.25;
  color: var(--red);
}

/* 方阵：一年一格，一格里 4 块一行。
   align-content:end 让方阵贴着底线长，四年连起来还是一道台阶；
   砖按「新的在上」铺，所以每一年新砌的那几块在方阵顶上。 */
.chart__stack {
  --bw: clamp(14px, 2.4vw, 30px);
  display: grid;
  grid-template-columns: repeat(5, var(--bw));
  grid-auto-rows: var(--bw);
  justify-content: center;
  align-content: end;
  gap: 3px;
  min-height: 3px;
}

/* 一块砖 = 一件作品。五种类别靠 1-bit 的五种填法区分，不靠颜色深浅 */
.brick {
  display: block;
  border: 1.5px solid var(--ink);
  transition: opacity .16s steps(2, end);
}
.brick--tu   { background: var(--ink); }                            /* 图解：实心墨 */
.brick--ying { background: none; }                                  /* 影像：空心墨 */
.brick--she  { background: var(--dither50); background-size: 4px 4px; } /* 采风：网点 */
.brick--zuo  { background: var(--red); border-color: var(--red); }  /* 精选：实心朱砂 */
.brick--qi   { background: none; border-color: var(--red); }        /* 竞赛研究：空心朱砂 */

.chart__x {
  margin-top: .6rem;
  font-family: var(--title-en);
  font-size: 15px;
  letter-spacing: .06em;
  line-height: 1.25;
  text-align: center;
  color: var(--ink-faint);
}
.chart__x em {
  display: block;
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .04em;
  opacity: .75;
}
.chart__col.is-cursor .chart__x { color: var(--red); }

/* 滑过某月 = 把这一年倒回去：之后的砖褪成影子，
   当月新砌的那几块留亮，之前攒下的压暗 */
.chart.is-scrub .chart__col.is-future .chart__stack,
.chart.is-scrub .chart__col.is-future .chart__pins { opacity: .13; }
.chart.is-scrub .chart__col.is-cursor .brick { opacity: .32; }
.chart.is-scrub .chart__col.is-cursor .brick.is-new { opacity: 1; }

/* 图例联动（brushing）：滑过一类，其余淡出 */
.chart.is-brushing .brick { opacity: .12; }
.chart.is-brushing .brick.is-hit { opacity: 1; }

.chart__readout {
  margin: .9rem 0 0;
  min-height: 3em;
  font-family: var(--px);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  letter-spacing: .03em;
}
.chart__readout b { color: var(--red); font-weight: 400; }
.chart__readout .chart__pin { color: var(--red); }

.chart__legend {
  display: flex; flex-wrap: wrap; gap: .5em 1.4em;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--px);
  font-size: 12.5px;
}
.chart__legend a,
.chart__legend-pin {
  display: flex; align-items: center; gap: .55em;
  padding: .3em .5em;
  color: var(--ink-soft);
}
.chart__legend a:hover { background: var(--ink); color: var(--paper); }
.chart__legend .brick { width: 12px; height: 12px; flex: none; }
.chart__legend a:hover .brick--ying { border-color: var(--paper); }
.chart__legend a:hover .brick--tu   { background: var(--paper); border-color: var(--paper); }
.chart__legend a:hover .brick--she  { border-color: var(--paper); }
.chart__legend-pin { color: var(--ink-faint); }
.chart__legend-pin .chart__pin { color: var(--red); font-size: 11px; }

/* ── 能力雷达 ── */
.radar {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.6rem);
}
.radar__svg { width: 100%; height: auto; display: block; overflow: visible; }

.radar__ring  { fill: none; stroke: var(--ink); stroke-opacity: .2; stroke-width: 1; stroke-dasharray: 2 3; }
.radar__spoke { stroke: var(--ink); stroke-opacity: .26; stroke-width: 1; }
.radar__area  {
  fill: var(--red); fill-opacity: .12;
  stroke: var(--red); stroke-width: 2; stroke-linejoin: miter;
  stroke-dasharray: 100;            /* 配 pathLength=100，进场时一笔画出来 */
}
.radar__dot   { fill: var(--ink); }
.radar__lab   { font-family: var(--px); font-size: 12.5px; fill: var(--ink-soft); }
.radar__num   { font-family: var(--title-en); font-size: 12.5px; fill: var(--ink-faint); }
.radar__g     { cursor: pointer; }
.radar__hit   { fill: transparent; }
.radar__g:hover .radar__lab,
.radar__g.is-on .radar__lab { fill: var(--red); }
.radar__g:hover .radar__num,
.radar__g.is-on .radar__num { fill: var(--red); }
.radar__g:hover .radar__spoke,
.radar__g.is-on .radar__spoke { stroke: var(--red); stroke-opacity: 1; stroke-width: 2; }
.radar__g:hover .radar__dot,
.radar__g.is-on .radar__dot { fill: var(--red); }

/* 雷达扫一圈：进场时转一周，纯装饰。
   rotate 在 SVG 里默认绕自身包围盒转，扇形的盒心不是圆心，
   所以要显式把原点钉回 (180,152)。 */
.radar__sweep {
  fill: var(--red); fill-opacity: .16;
  opacity: 0;
  transform-box: view-box;
  transform-origin: 180px 152px;
}
.js .radar.is-live .radar__sweep { animation: radarSweep 1.5s steps(30, end) 1 forwards; }
.js .radar.is-live .radar__area { animation: radarDraw 1.5s steps(30, end) 1 forwards; }
@keyframes radarSweep {
  0%   { opacity: 1; rotate: 0deg; }
  99%  { opacity: 1; rotate: 360deg; }
  100% { opacity: 0; rotate: 360deg; }
}
@keyframes radarDraw {
  from { stroke-dashoffset: 100; fill-opacity: 0; }
  to   { stroke-dashoffset: 0;   fill-opacity: .12; }
}

.radar__panel { font-size: 14.5px; }
.radar__panel .radar__n {
  margin: 0;
  font-family: var(--title-en);
  font-size: clamp(34px, 5.4vw, 52px);
  line-height: .95;
  color: var(--red);
}
.radar__panel h4 {
  margin: .25em 0 .5em;
  font-family: var(--px);
  font-size: 15.5px;
  font-weight: 400;
  letter-spacing: .04em;
}
.radar__panel .radar__break {
  margin: 0;
  font-family: var(--px);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: .04em;
}
.radar__panel ul { margin: 1em 0 0; padding: 0; list-style: none; }
.radar__panel li {
  padding: .34em 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.radar__panel li:last-child { border-bottom: 0; }
.radar__hint {
  margin: .8em 0 0;
  font-family: var(--px);
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-faint);
}

@media (max-width: 760px) {
  .radar { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .chart__stack { --bw: clamp(11px, 4.6vw, 20px); gap: 2px; }
  .chart { gap: 6px; }
  .chart__x { font-size: 12px; }
  .chart__play { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .js .radar.is-live .radar__sweep,
  .js .radar.is-live .radar__area { animation: none; }
  .radar__sweep { display: none; }
  .js .chart__view.is-on { animation: none; }
}

/* ============================================================
   数据页（data.html）
   ============================================================ */
/* 卷首横规默认带一整段天头留白（--section-gap），用来隔开上一节；
   放在页面第一行时那段留白就成了大半屏空白，这里收掉。
   写成两个类叠加是为了压过下面 .rule-head 的 margin 简写——
   那条规则在本文件里排在后面，单类选择器权重相同会被它盖掉。 */
.rule-head.rule-head--first { margin-top: clamp(1.4rem, 5vh, 3rem); }

/* 数据页只有两扇窗，用整段 section-gap 隔开会空出大半屏 */
.data-page .chart-win { margin-bottom: clamp(2.4rem, 7vh, 5rem); }

/* 口径说明：每条一个短标题 + 一句解释，标题用墨色压住，解释走正文灰 */
.method ul { list-style: none; padding-left: 0; }
.method li {
  margin-bottom: 1.1em;
  padding-left: 1.5em;
  position: relative;
  max-width: 62ch;
  line-height: 2;
  color: var(--ink-soft);
}
.method li::before {
  content: "";
  position: absolute;
  left: 0; top: .82em;
  width: 7px; height: 7px;
  background: var(--red);
}
.method li b { font-weight: inherit; color: var(--ink); }
.method__src {
  margin: 1.8em 0 0 !important;
  padding-top: 1.2em;
  border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  font-size: 14.5px !important;
  color: var(--ink-faint);
}

/* ============================================================
   区块标题（像素分隔）— 加大间距
   ============================================================ */
/* 区块标题 = 卷首。加天头双线 + 卷次朱印，让每一节读起来像翻到了新一卷，
   而不是所有区块从上到下一个节奏。 */
.rule-head {
  display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.6rem);
  margin: var(--section-gap) 0 clamp(2.2rem, 4.5vh, 3.6rem);
  padding-top: clamp(1.4rem, 3.2vh, 2.4rem);
  border-top: 3px double var(--ink);
}

/* 卷次朱印：像素字 + 印章红方框，两个字竖着摞 */
.vol-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* 跟着区块标题一起缩放，不然大标题旁边挂个小红点，很像误贴上去的 */
  width: clamp(38px, 4.6vw, 58px);
  height: clamp(38px, 4.6vw, 58px);
  flex: none;
  border: 2px solid var(--red);
  background: color-mix(in srgb, var(--red) 8%, transparent);
  color: var(--red);
  font-family: var(--px);
  font-size: clamp(13px, 1.55vw, 19px);
  line-height: 1.12;
  letter-spacing: 0;
  rotate: -3deg;
  user-select: none;
  transition: rotate .16s steps(3, end), scale .16s steps(3, end);
}
.rule-head:hover .vol-seal { rotate: 2deg; scale: 1.06; }

/* 点一下：像把印章按下去再抬起来 */
.vol-seal { cursor: pointer; }
.vol-seal.is-stamped { animation: stamp .34s steps(4, end); }
@keyframes stamp {
  0%   { scale: 1.28; opacity: .45; rotate: -9deg; }
  55%  { scale: .93;  opacity: 1;   rotate: -1deg; }
  100% { scale: 1;    opacity: 1;   rotate: -3deg; }
}
.rule-head h2 {
  margin: 0;
  font-family: var(--px);
  font-size: clamp(23px, 3.3vw, 42px);
  font-weight: 400;
  letter-spacing: .06em;
  white-space: nowrap;
  display: flex; align-items: center; gap: .6em;
}
.rule-head h2 .en {
  font-family: var(--title-en);
  letter-spacing: .06em;
}
.rule-head::after {
  content: "";
  flex: 1; height: 8px;
  background: var(--dither50);
  background-size: 4px 4px;
  opacity: .5;
}
/* 件数：当页码水印用，藤黄压得很淡 */
.rule-head .count {
  font-family: var(--title-en);
  font-size: clamp(24px, 3.6vw, 46px);
  color: color-mix(in srgb, var(--gold) 55%, transparent);
  letter-spacing: .04em;
  line-height: 1;
}

/* ============================================================
   卡片文字
   ============================================================ */
.card__tags {
  display: flex; flex-wrap: wrap; gap: .5em 1.2em;
  margin: 0 0 .7em;
  font-family: var(--px);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.card__title {
  margin: 0 0 .55em;
  font-family: var(--px);
  font-size: clamp(19px, 2.5vw, 28px);
  font-weight: 400;
  line-height: 1.4;
}
.span2 .card__title { font-size: clamp(21px, 3.4vw, 38px); }
a.win:hover .card__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.card__desc {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 58ch;
  line-height: 1.95;
}
.span2 .card__desc { font-size: 16.5px; max-width: 62ch; }

.card__role {
  margin: 1.4em 0 0;
  font-family: var(--px);
  font-size: 12px;
  color: var(--ink-faint);
}

.stamp {
  display: inline-block;
  padding: .45em 1em;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--px);
  font-size: 13.5px;
  letter-spacing: .1em;
  rotate: -2deg;
  margin: .2em 0;
  background: color-mix(in srgb, var(--red) 6%, transparent);
}

/* ============================================================
   像素文字封面（无图作品）
   ============================================================ */
.pxcover {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  overflow: hidden;
  font-family: var(--px);
}
.pxcover--dither {
  background:
    linear-gradient(to top, transparent 55%, var(--paper-dim) 56%),
    var(--dither50);
  background-size: 100% 100%, 4px 4px;
}
.pxcover__big {
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1;
  letter-spacing: .01em;
}
.pxcover__small {
  font-size: clamp(14px, 1.8vw, 18px);
  margin-top: .5em;
  color: var(--ink-soft);
}
.pxcover svg { position: absolute; right: 6%; top: 10%; opacity: .9; }

/* ============================================================
   清单（Finder 列表视图）
   ============================================================ */
.finder .win__body { padding: 0; }

.finder__intro {
  padding: clamp(1.3rem, 2.6vw, 1.9rem) clamp(1.3rem, 3vw, 2.3rem);
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: none;
  line-height: 1.9;
}

.list { margin: 0; }

/* ============================================================
   实习作品：排成报纸的「简讯栏」
   —— 分栏 + 栏线 + 花边横规，每条像一则报缝短讯
   ============================================================ */
.finder__intro {
  position: relative;
  max-width: 62ch;
}
/* 导语：左侧一道朱砂界线起头。
   （原来这里写的是首字下沉，但 ::first-letter 只对块级容器生效，
   .zh/.en 是行内 span，规则从来没生效过；何况两段都是「2025 年…」开头，
   真沉下去会把「2」和「025」拆开。） */
.finder__intro {
  margin-left: clamp(1.3rem, 3vw, 2.3rem);
  padding-left: clamp(.9rem, 1.8vw, 1.3rem);
}

/* 分隔线放在清单上边而不是导语下边 —— 导语有 max-width，
   线画在它身上会停在半空 */
.list {
  column-count: 3;
  column-gap: clamp(1.4rem, 3vw, 2.6rem);
  column-rule: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  padding: clamp(1.2rem, 3vw, 2rem) clamp(1.3rem, 3vw, 2.3rem);
  border-top: 2px solid var(--ink);
}
@media (max-width: 980px) { .list { column-count: 2; } }
@media (max-width: 620px) { .list { column-count: 1; column-rule: 0; } }

a.list__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 .6em;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  padding: 0 0 1.05em;
  margin-bottom: 1.05em;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  transition: background .14s steps(2, end);
}
a.list__row:last-child { border-bottom: 0; }

/* 眉题那一行：期号 + 角色 */
.list__num {
  order: 1;
  font-family: var(--title-en);
  font-size: 13px;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.list__tag {
  order: 2;
  font-family: var(--px);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--blue);
  text-transform: uppercase;
  border-left: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  padding-left: .6em;
}
.list__tag--lead { color: var(--red); }

/* 标题：报纸的短讯标题 */
.list__name {
  order: 3;
  width: 100%;
  margin-top: .3em;
  font-family: var(--body-zh);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  text-wrap: balance;
}

/* 落款行 */
.list__meta {
  order: 4;
  width: 100%;
  margin-top: .35em;
  font-family: var(--title-en);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

a.list__row:hover .list__name {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a.list__row:hover .list__num { color: var(--red); }

/* ============================================================
   账册式清单（光明网图解专用）
   —— 和上面新华社那套三栏「报缝短讯」刻意做成两种版式：
      两栏、一行一条、汉字数码 + 引线 + 落款，像一本目录账
   ============================================================ */
.list--ledger {
  column-count: 2;
  column-gap: clamp(1.6rem, 4vw, 3.4rem);
  column-rule: 0;
}
@media (max-width: 860px) { .list--ledger { column-count: 1; } }

.list--ledger a.list__row {
  display: grid;
  grid-template-columns: 2.3em minmax(0, 1fr);
  grid-template-areas:
    "num name"
    "num foot";
  align-items: baseline;
  gap: .2em .7em;
  padding: .75em .4em;
  margin-bottom: 0;
  border-bottom: 1px dotted color-mix(in srgb, var(--ink) 26%, transparent);
}
.list--ledger a.list__row:hover {
  background: color-mix(in srgb, var(--gold) 13%, transparent);
}

/* 汉字数码：靠 CSS 计数器自动排「一、二、三…」，HTML 里不用手写 */
.list--ledger { counter-reset: ledger; }
.list--ledger a.list__row { counter-increment: ledger; }
.list--ledger .list__num {
  grid-area: num;
  align-self: start;
  padding-top: .15em;
  font-family: var(--px);
  font-size: 15px;
  color: var(--gold);
  text-align: center;
}
.list--ledger .list__num::before {
  content: counter(ledger, cjk-ideographic);
}
.list--ledger a.list__row:hover .list__num { color: var(--red); }

.list--ledger .list__name {
  grid-area: name;
  width: auto;
  margin-top: 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.65;
}
/* 角色 + 日期并成一行落款 */
.list--ledger .list__tag,
.list--ledger .list__meta {
  grid-area: foot;
  width: auto;
  margin-top: .15em;
  border-left: 0;
  padding-left: 0;
}
.list--ledger .list__tag { justify-self: start; }
.list--ledger .list__meta { justify-self: end; }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-block;
  padding: .55em 1.3em;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  font: inherit;
  font-family: var(--px);
  font-size: 15px;
  letter-spacing: .06em;
  cursor: pointer;
  color: inherit;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { translate: 4px 4px; box-shadow: 0 0 0 var(--ink); }

/* ============================================================
   采风物料展示 — 严格按「新闻采风所有物料排布设计」的排布
   行式排布：海报+场册+侧题 → 邀请函内页+易拉宝+工作证 → 舆图 → 条幅
   每行随滚动按顺序入场
   ============================================================ */
.collage-section { margin-top: var(--section-gap); }

.collage-intro {
  max-width: 54ch;
  margin-bottom: clamp(2.4rem, 5vh, 3.6rem);
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.9;
}

.collage {
  display: flex;
  flex-direction: column;
  gap: clamp(2.4rem, 5vw, 4.5rem);
  max-width: 1020px;
  margin: 0 auto;
}

.collage__row { display: grid; gap: clamp(1.4rem, 3vw, 2.6rem); }

/* 第一行：海报 | 场册封面+邀请函 | 侧边竖排标题 */
.collage__row--head {
  grid-template-columns: minmax(0, 11fr) minmax(0, 7fr) minmax(0, 2.6fr);
  align-items: stretch;
}
.collage__stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  justify-content: space-between;
}
.collage__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}
.collage__side img { width: 100%; height: auto; }
.collage__side picture { width: 100%; }
.collage__side-title {
  font-family: var(--px);
  font-size: clamp(15px, 1.8vw, 22px);
  letter-spacing: .3em;
  line-height: 1.9;
  writing-mode: vertical-rl;
  color: var(--ink);
  flex: 1;
}
.collage__side-org {
  font-family: var(--px);
  font-size: clamp(10px, 1vw, 12px);
  letter-spacing: .22em;
  writing-mode: vertical-rl;
  color: var(--ink-faint);
}

/* 第二行：邀请函内页 | 易拉宝+工作证 */
.collage__row--spread {
  grid-template-columns: minmax(0, 13fr) minmax(0, 7fr);
  align-items: center;
}
.collage__pair {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: center;
}

/* 三、四行：舆图、条幅通栏 */
.collage__row--wide { grid-template-columns: 1fr; }

.collage__credit {
  font-family: var(--px);
  font-size: clamp(12px, 1.4vw, 15px);
  letter-spacing: .2em;
  color: var(--ink-soft);
  writing-mode: vertical-rl;
}

.collage__item {
  position: relative;
  margin: 0;
  cursor: zoom-in;
  filter: drop-shadow(4px 6px 10px rgba(0, 0, 0, .16));
  transition: rotate .18s steps(3, end), scale .18s steps(3, end);
}
.collage__item img { width: 100%; height: auto; display: block; }
.collage__item:hover { rotate: 0deg !important; scale: 1.02; z-index: 5; }

/* 轻微错落 + 慢速漂浮 */
.collage__item--r1 { rotate: -1.6deg; animation: float-a 7s ease-in-out infinite; }
.collage__item--r2 { rotate: 1.4deg;  animation: float-b 8.5s ease-in-out infinite; }
.collage__item--r3 { rotate: -0.8deg; animation: float-c 6s ease-in-out infinite; }
.collage__item--flat { rotate: 0.5deg; animation: float-b 9s ease-in-out infinite; }

@keyframes float-a { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes float-b { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes float-c { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }

/* 行内元素随行入场后错峰淡入 */
.js .collage__row.is-pending .collage__item,
.js .collage__row.is-pending .collage__side > *,
.js .collage__row.is-pending .collage__credit { opacity: 0; translate: 0 14px; }
.js .collage__row.is-in .collage__item,
.js .collage__row.is-in .collage__side > *,
.js .collage__row.is-in .collage__credit {
  opacity: 1;
  translate: 0 0;
  transition: opacity .45s ease, translate .45s ease;
}
.js .collage__row.is-in > *:nth-child(1),
.js .collage__row.is-in .collage__side > *:nth-child(1) { transition-delay: .05s; }
.js .collage__row.is-in > *:nth-child(2),
.js .collage__row.is-in .collage__side > *:nth-child(2) { transition-delay: .18s; }
.js .collage__row.is-in > *:nth-child(3),
.js .collage__row.is-in .collage__side > *:nth-child(3) { transition-delay: .32s; }
.js .collage__row.is-in .collage__stack > *:nth-child(2) { transition-delay: .28s; }
.js .collage__row.is-in .collage__pair > *:nth-child(2) { transition-delay: .3s; }

/* 手机端：单列顺序堆叠 —— 一件物料一行 */
@media (max-width: 700px) {
  .collage { max-width: 540px; gap: 1.8rem; }
  .collage__row,
  .collage__stack,
  .collage__pair {
    display: flex !important;
    flex-direction: column;
    gap: 1.8rem;
  }
  .collage__item { rotate: 0deg !important; }
  .collage__side {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    min-width: 0;
  }
  .collage__side img { width: 56px; }
  .collage__side picture { width: 56px; }
  .collage__side-title,
  .collage__side-org,
  .collage__credit {
    writing-mode: horizontal-tb;
    letter-spacing: .1em;
    text-align: center;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  /* 「2025「新闻采风」系列物料」在窄屏放不下，按屏宽取字号 */
  .collage__side-title {
    font-size: clamp(12px, 3.6vw, 17px);
    line-height: 1.6;
    flex: none;
  }
  .collage__item { animation: none !important; rotate: 0deg !important; }
}

/* ============================================================
   详情页
   ============================================================ */
.case-head { margin-bottom: var(--section-gap); }
.case-head .win__body { padding: clamp(1.6rem, 5vw, 3rem); }

.case__kicker {
  margin: 0 0 1.2em;
  font-family: var(--px);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--red);
  text-transform: uppercase;
}

.case__title {
  margin: 0;
  font-family: var(--px);
  font-size: clamp(30px, 5.2vw, 58px);
  font-weight: 400;
  line-height: 1.32;
}
.case__title small {
  display: block;
  font-size: .5em;
  color: var(--ink-soft);
  margin-top: .5em;
}

.case__lede {
  margin: 1.6em 0 0;
  max-width: 60ch;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 2;
}

.case__stamps { margin-top: 1.6em; display: flex; flex-wrap: wrap; gap: .8em; }

.facts-win { margin-bottom: clamp(1.6rem, 3.5vw, 2.8rem); }
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0;
  margin: 0;
  font-family: var(--px);
}
.facts > div {
  padding: .9rem 1.2rem;
  border-right: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
}
.facts dt {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .35em;
}
.facts dd { margin: 0; font-size: 14.5px; line-height: 1.55; }

.fig-win { margin-bottom: clamp(1.6rem, 3.5vw, 2.8rem); }
.fig-win .win__media { border-bottom: 0; aspect-ratio: auto; }
.fig-win figcaption {
  padding: .7rem 1.2rem;
  border-top: 2px solid var(--ink);
  font-family: var(--px);
  font-size: 13px;
  color: var(--ink-faint);
}
.fig-win figure { margin: 0; }

.prose-win { max-width: 46rem; margin: 0 auto clamp(1.6rem, 3.5vw, 2.8rem); }
.prose-win .win__body { padding: clamp(1.4rem, 4vw, 2.6rem); }

.prose h2 {
  font-family: var(--px);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 400;
  margin: 2.6em 0 .85em;
  padding-bottom: .4em;
  border-bottom: 2px solid var(--ink);
  display: flex; align-items: center; gap: .6em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16.5px; font-weight: 400; color: var(--red); margin: 1.8em 0 .5em; }
.prose p { margin: 0 0 1.7em; max-width: 60ch; font-size: 16.5px; line-height: 2.05; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.4em; font-size: 16px; }
.prose li { margin-bottom: .5em; }
.prose a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { background: var(--ink); color: var(--paper); }

.prose blockquote {
  margin: 1.6em 0;
  padding: 1em 1.2em;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--ink) 25%, transparent);
  font-size: 17px;
}
.prose blockquote p { margin: 0; }

.todo {
  display: block;
  margin: 1.2em 0;
  padding: .9em 1.1em;
  border: 2px dashed var(--red);
  font-family: var(--px);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--red) 5%, transparent);
}
.todo strong {
  display: block;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--red);
  margin-bottom: .35em;
}
.todo code { font-family: inherit; border: 1px solid var(--ink-faint); padding: 0 .3em; font-size: .92em; }

.pager {
  display: flex; justify-content: space-between; gap: 1.5rem;
  max-width: 46rem; margin: 0 auto;
  font-family: var(--px);
  font-size: 14px;
}
.pager a:hover { background: var(--ink); color: var(--paper); }
.pager a { padding: .2em .5em; }

/* ============================================================
   关于页
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.portrait-win .win__body { padding: 0; }
.portrait {
  aspect-ratio: 3 / 4;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 1rem;
  font-family: var(--px);
  font-size: 12.5px;
  color: var(--ink-faint);
  background: var(--dither50);
  background-size: 4px 4px;
  background-blend-mode: normal;
}
.portrait span { background: var(--paper); padding: .8em 1em; border: 2px solid var(--ink); }

/* 像素自画像版本 */
.portrait--avatar {
  aspect-ratio: 1;
  background: none;
  color: var(--ink);
  padding: clamp(1.2rem, 8%, 2rem);
}
.portrait--avatar svg { width: 100%; height: auto; }

.aside-meta {
  margin: 1.2rem 0 0;
  font-family: var(--px);
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.8;
}

/* ============================================================
   履历：报纸版面 —— 栏头加粗、日期做电头、角色/标题/说明分三级
   ============================================================ */
.cv h3 {
  font-family: var(--px);
  font-size: 16px;
  letter-spacing: .24em;
  font-weight: 400;
  color: var(--ink);
  margin: 3em 0 0;
  padding-bottom: .55em;
  display: flex; align-items: center; gap: .9em;
  border-bottom: 3px double var(--ink);
}
.cv h3:first-child { margin-top: 0; }
.cv h3 .en { font-family: var(--title-en); letter-spacing: .16em; }
.cv h3::after {
  content: "";
  flex: 1; height: 5px;
  background: var(--dither50);
  background-size: 4px 4px;
  opacity: .3;
}

.cv ul {
  list-style: none;
  margin: 0;
  padding: 1.4em 0 0;
  column-count: 2;
  column-gap: clamp(1.8rem, 3.5vw, 3.2rem);
  column-rule: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
}
@media (max-width: 860px) { .cv ul { column-count: 1; column-rule: 0; } }

.cv li {
  display: block;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  padding: 0 0 1.3em;
  margin-bottom: 1.3em;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
}
.cv li:last-child { border-bottom: 0; }

/* 电头：日期 */
.cv li > span:first-child {
  display: block;
  margin-bottom: .5em;
  font-family: var(--title-en);
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

/* 三级信息：角色（黑体大） / 项目名（正文） / 说明（灰小） */
.cv__role {
  display: block;
  font-family: var(--body-zh);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}
.cv__title {
  display: block;
  margin-top: .3em;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.cv__note {
  display: inline-block;
  margin-top: .5em;
  padding: .18em .6em;
  border: 1.5px solid color-mix(in srgb, var(--red) 50%, transparent);
  color: var(--red);
  font-family: var(--px);
  font-size: 11.5px;
  letter-spacing: .1em;
}
.cv__desc {
  display: block;
  margin-top: .5em;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-faint);
}

/* 获奖那节的电头用红色，和印章呼应 */
.cv .cv--awards li > span:first-child { color: var(--red); }

/* ============================================================
   页脚
   ============================================================ */
.desk-foot {
  padding: var(--section-gap) var(--gutter) clamp(3rem, 8vh, 5rem);
  max-width: 78rem;
  margin-inline: auto;
}

.foot-win .win__body { padding: clamp(1.6rem, 4vw, 2.6rem); }

.foot-mail {
  font-family: var(--latin), var(--px);
  font-size: clamp(22px, 4vw, 40px);
  line-height: 1.3;
  word-break: break-all;
}
.foot-mail:hover { background: var(--ink); color: var(--paper); }

.foot-links {
  margin-top: 1.8em;
  display: flex; flex-wrap: wrap; gap: 1.5em;
  font-family: var(--px);
  font-size: 14px;
}
.foot-links a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.foot-links a:hover { background: var(--ink); color: var(--paper); }

.foot-fine {
  margin-top: 2.4em;
  font-family: var(--px);
  font-size: 12px;
  color: var(--ink-faint);
}

/* ============================================================
   关于本站对话框
   ============================================================ */
dialog.about-mac {
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--ink) 82%, transparent);
  padding: 0;
  max-width: min(30rem, 92vw);
  font-family: var(--px);
}
dialog.about-mac::backdrop { background: color-mix(in srgb, var(--ink) 30%, transparent); }
.about-mac__body { padding: 1.6rem; font-size: 15px; line-height: 1.9; }
.about-mac__body h2 { margin: 0 0 .8em; font-size: 19px; font-weight: 400; }
.about-mac__row { display: flex; gap: 1em; }
.about-mac__row dt { color: var(--ink-faint); flex: none; width: 6.5em; }
.about-mac__row dd { margin: 0; }
.about-mac__ok {
  margin-top: 1.4rem;
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .7rem;
}
.about-mac__ok .btn { font-size: 14px; }

/* ============================================================
   灯箱（采风物料点击放大）
   ============================================================ */
dialog.lightbox {
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--ink) 82%, transparent);
  padding: 0;
  max-width: min(64rem, 94vw);
  cursor: zoom-out;
}
dialog.lightbox::backdrop { background: color-mix(in srgb, var(--ink) 42%, transparent); }
dialog.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto; height: auto;
  margin: 0 auto;
}

/* 前后翻 */
.lightbox__stage { position: relative; }
.lightbox__count {
  position: absolute;
  right: 8px; top: 50%;
  translate: 0 -50%;
  padding-left: 8px;
  background: var(--paper);
  font-family: var(--px);
  font-size: 12px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.lightbox__nav {
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(2.6rem, 8vw, 4.5rem);
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  opacity: .3;
  transition: opacity .14s steps(2, end), background .14s steps(2, end);
}
.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  opacity: 1;
  outline: none;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
}
.lightbox__nav--prev { left: 0; }
.lightbox__nav--next { right: 0; }
.lightbox__nav[hidden] { display: none; }

/* ============================================================
   窗口卷帘（双击标题栏，或点左上角按钮）
   ============================================================ */
/* 藏掉标题栏以外的一切：各类窗口的内容容器不统一（.win__body / <dl class="facts">
   / <figure>），逐个列会漏，直接按「不是标题栏就收起来」处理。 */
.win.is-rolled > *:not(.win__bar) { display: none; }
/* 首屏窗口有 min-height:100vh，不清掉就卷不起来 */
.win.is-rolled { min-height: 0; }
.win.is-rolled > .win__bar { border-bottom: 0; }
.win.is-rolled > .win__bar::after {
  content: "▸";
  position: absolute;
  right: 8px; top: 50%;
  translate: 0 -50%;
  font-size: 11px;
  color: var(--ink-faint);
}
.js .win.is-rolled { animation: shade .16s steps(3, end); }
@keyframes shade {
  from { transform: scaleY(1.6); transform-origin: top; }
  to   { transform: scaleY(1); transform-origin: top; }
}

/* ============================================================
   桌面选框（Finder 风格）
   ============================================================ */
.marquee-box {
  position: fixed;
  z-index: 40;
  border: 1px dashed var(--ink);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  pointer-events: none;
}

/* ============================================================
   开窗动画（经典 zoom rects）
   ============================================================ */
.js .reveal.is-pending { opacity: 0; }
.js .reveal.is-in {
  opacity: 1;
  animation: zoomrects .22s steps(4, end);
}
@keyframes zoomrects {
  from { transform: scale(.55); opacity: .3; }
  to   { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-pending { opacity: 1; }
  .js .reveal.is-in { animation: none; }
  .js .collage__row .collage__item,
  .js .collage__row .collage__side > *,
  .js .collage__row .collage__credit,
  .js .collage__row.is-pending .collage__item,
  .js .collage__row.is-pending .collage__side > *,
  .js .collage__row.is-pending .collage__credit { opacity: 1; translate: 0 0; }
  .collage__item { animation: none !important; transition: none; }
  .hero__avatar:hover { animation: none; }
  .cursor { animation: none; }
  a.win, .win__media img, .win__media::after, .win__media::before { transition: none; }
  #sky { display: none; }
  .js .win.is-rolled { animation: none; }
  .vol-seal, .vol-seal.is-stamped, .brick, .lightbox__nav { animation: none; transition: none; }
}

.px-ico { image-rendering: pixelated; flex: none; }
.px-ico .px-fill { fill: var(--ink); }
.px-ico .px-red { fill: var(--red); }

/* ============================================================
   Konami 彩蛋：彩色模式
   ============================================================ */
.rainbow-mode .win__bar {
  background: repeating-linear-gradient(
    90deg,
    #E74C3C 0 14.28%,
    #F39C12 14.28% 28.57%,
    #F1C40F 28.57% 42.85%,
    #27AE60 42.85% 57.14%,
    #2980B9 57.14% 71.42%,
    #8E44AD 71.42% 85.71%,
    #E74C3C 85.71% 100%
  ) !important;
}
.rainbow-mode .stamp { animation: rainbow-border 2s linear infinite; }
@keyframes rainbow-border {
  0%, 100% { border-color: #E74C3C; color: #E74C3C; }
  33% { border-color: #27AE60; color: #27AE60; }
  66% { border-color: #2980B9; color: #2980B9; }
}

/* ============================================================
   窄屏收尾修正（放在最后，确保覆盖前面的基础规则）
   ============================================================ */
@media (max-width: 700px) {
  /* 菜单栏挤，先让掉「作品集」后缀（首屏 kicker 里还写着） */
  .menubar__suffix { display: none; }

  /* 英文模式下这排 tab 会顶出屏幕（LIU HAOZHI / Work / Data / About /
     Contact 全是长单词），所以窄屏收紧字号和内边距；430px 以下再收一档。
     不能给 .menubar 加 overflow-x——下拉菜单是绝对定位的，会被裁掉。 */
  .menubar { font-size: 12px; padding: 0 .25rem; }
  .menubar__item { padding: .62em .6em; gap: .35em; }
  .menubar__logo { padding-left: .45em; }

  /* 区块标题默认 nowrap（让右边点阵线紧贴），窄屏必须放开换行，
     否则英文标题「Infographics · Guangming Online」会顶出屏幕 */
  .rule-head { flex-wrap: wrap; row-gap: .5rem; }
  .rule-head h2 { white-space: normal; flex-wrap: wrap; min-width: 0; }
  .rule-head h2 .zh,
  .rule-head h2 .en { white-space: normal; min-width: 0; }
}

/* ============================================================
   触摸设备：没有 hover，所以把悬停才有的效果换个触发方式
   ============================================================ */
@media (hover: none) {
  /* 封面图：滚到视野中间自动褪掉半调网点、恢复彩色，
     离开视野再变回黑白——等价于桌面端把鼠标移上去 */

  /* 点下去要有反馈，替代 hover 的「激活窗口」反色 */
  a.win:active { translate: -2px -2px; }
  a.win:active .win__bar { background: var(--ink); }
  a.win:active .win__title { background: var(--ink); color: var(--paper); }
  a.win:active .win__close { background: var(--paper); }

  a.list__row:active { background: var(--ink); color: var(--paper); }
  a.list__row:active .px-ico .px-fill { fill: var(--paper); }
  a.list__row:active .list__tag,
  a.list__row:active .list__date { color: var(--paper); }

  .btn:active,
  .foot-mail:active,
  .foot-links a:active,
  .prose a:active,
  .pager a:active { background: var(--ink); color: var(--paper); }
}

/* 关掉动效时不做渐变，直接给彩色，别让人一直看黑白 */
@media (hover: none) and (prefers-reduced-motion: reduce) {
  a.win .win__media img { filter: none; transition: none; }
  a.win .win__media::after, a.win .win__media::before { opacity: 0; transition: none; }
}

/* 超窄屏（iPhone SE 一类）＋英文：再收一档，保证一行放得下 */
@media (max-width: 430px) {
  :root[data-lang="en"] .menubar { font-size: 11px; }
  :root[data-lang="en"] .menubar__item { padding: .62em .45em; letter-spacing: 0; }
}

/* 320px 这档（老 iPhone SE / 折叠屏外屏）：英文再挤一点 */
@media (max-width: 360px) {
  :root[data-lang="en"] .menubar__item { padding: .62em .32em; }
  :root[data-lang="en"] .menubar__logo { padding-left: .3em; }
}
