/* ==========================================================================
   Novora 官网 · site.css
   设计语言：考务时序档案（Exam Timing Dossier）
   规范详见 docs/DESIGN-SYSTEM.md
   ========================================================================== */

/* ---------- 01 · 字体 ---------- */
@font-face { font-family: 'NV Heavy'; src: url('../fonts/nv-heavy.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'NV Text'; src: url('../fonts/nv-text.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'NV Cond'; src: url('../fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'NV Cond'; src: url('../fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'NV Mono'; src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'NV Mono'; src: url('../fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* ---------- 02 · Tokens ---------- */
:root {
  /* 色彩：纸面（白昼）与屏幕（夜间）两套表面，一种信号色 */
  --paper: #ebeae5;
  --paper-hi: #f5f4f0;
  --paper-lo: #dfded8;
  --ink: #0d1014;
  --ink-2: #2b3038;
  --mute: #62676e;
  --line: rgba(13, 16, 20, 0.14);
  --line-2: rgba(13, 16, 20, 0.32);

  --night: #07090c;
  --night-2: #0f1318;
  --night-3: #161b22;
  --night-ink: #eceae4;
  --night-mute: #8b919a;
  --night-line: rgba(236, 234, 228, 0.12);
  --night-line-2: rgba(236, 234, 228, 0.28);

  --signal: #ffc21a;      /* 唯一强调色：时刻、行动、当前 */
  --signal-ink: #1a1400;
  --sync: #2ec4b6;        /* 仅表示“在线 / 已同步” */
  --alert: #ff5a36;       /* 仅表示“临界 / 收卷” */

  /* 字体栈 */
  --f-heavy: 'NV Heavy', 'Source Han Sans SC', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --f-text: 'NV Text', 'Source Han Sans SC', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --f-cond: 'NV Cond', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-mono: 'NV Mono', 'JetBrains Mono', ui-monospace, Consolas, monospace;

  /* 尺度 */
  --pad: clamp(18px, 3.4vw, 52px);
  --hdr: 64px;
  --sec-y: clamp(96px, 13vw, 200px);
  --t-display: clamp(52px, 7.2vw, 120px);
  --t-h2: clamp(40px, 5.4vw, 88px);
  --t-h3: clamp(22px, 1.9vw, 30px);
  --t-body: 16px;
  --t-small: 13px;
  --t-label: 11px;

  /* 动效 */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
  --dur-1: 160ms;
  --dur-2: 320ms;
  --dur-3: 720ms;

  color-scheme: light;
}

/* ---------- 03 · Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, figure, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; box-shadow: 0 0 0 5px var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 14px; background: var(--signal); color: var(--ink); font-weight: 700; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* 文字原子 */
.mono { font-family: var(--f-mono); }
.label { font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.cond { font-family: var(--f-cond); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.hl { position: relative; z-index: 0; white-space: nowrap; }
.hl::after { content: ''; position: absolute; z-index: -1; left: 0.02em; right: 0.06em; bottom: 0.08em; height: 0.16em; background: var(--signal); }

/* ---------- 04 · 布局骨架 ---------- */
.wrap { margin-inline: var(--pad); position: relative; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); }

/* 12 栏背景细线：在 .cols 上绘制 */
.cols { position: relative; isolation: isolate; }
.cols::before {
  content: '';
  position: absolute;
  inset: 0 var(--pad);
  z-index: -1;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, var(--grid-c, var(--line)) 0 1px, transparent 1px calc(100% / 12));
  border-right: 1px solid var(--grid-c, var(--line));
  opacity: 0.55;
}
.night { background: var(--night); color: var(--night-ink); --grid-c: var(--night-line); --mute: var(--night-mute); --line: var(--night-line); --line-2: var(--night-line-2); color-scheme: dark; }

/* 十字标记 */
.x { position: absolute; width: 11px; height: 11px; pointer-events: none; color: var(--ink); }
.night .x { color: var(--night-ink); }
.x::before, .x::after { content: ''; position: absolute; background: currentColor; }
.x::before { left: 5px; top: 0; width: 1px; height: 11px; }
.x::after { top: 5px; left: 0; width: 11px; height: 1px; }

/* 警示斜纹带 */
.tape { display: inline-block; width: 64px; height: 9px; background: repeating-linear-gradient(-45deg, var(--ink) 0 4px, var(--signal) 4px 8px); }
.night .tape { background: repeating-linear-gradient(-45deg, var(--night) 0 4px, var(--signal) 4px 8px); }

/* 切角 */
.cut { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut, 14px)), calc(100% - var(--cut, 14px)) 100%, 0 100%); }

/* ---------- 05 · 按钮 ---------- */
.btn {
  --cut: 14px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 0 22px 0 24px;
  font-size: 16px;
  line-height: 1.2;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-2) var(--ease);
}
.btn-ink { background: var(--ink); color: var(--paper-hi); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
.btn-ink:hover { background: var(--signal); color: var(--ink); }
.btn-ink .v { font-family: var(--f-mono); font-size: 11px; color: var(--signal); padding-left: 16px; border-left: 1px solid rgba(245, 244, 240, 0.22); transition: color var(--dur-1); }
.btn-ink:hover .v { color: var(--ink); border-color: rgba(13, 16, 20, 0.25); }
.btn-signal { background: var(--signal); color: var(--ink); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
.btn-signal:hover { background: var(--paper-hi); }
.btn-signal .v { font-family: var(--f-mono); font-size: 11px; padding-left: 16px; border-left: 1px solid rgba(13, 16, 20, 0.25); }
.btn-line { border: 1px solid var(--line-2); }
.btn-line:hover { border-color: currentColor; }
.btn .arr { font-family: var(--f-mono); transition: transform var(--dur-2) var(--ease); }
.btn:hover .arr-d { transform: translateY(3px); }
.btn:hover .arr-r { transform: translate(3px, -3px); }
.link { display: inline-flex; gap: 10px; align-items: center; padding-bottom: 3px; border-bottom: 1px solid var(--line-2); transition: border-color var(--dur-1), color var(--dur-1); }
.link:hover { border-color: var(--signal); }

/* ---------- 06 · 页头 ---------- */
.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--hdr);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  transition: background var(--dur-2), color var(--dur-2);
}
.hdr.is-dark { background: color-mix(in srgb, var(--night) 86%, transparent); color: var(--night-ink); --line-2: var(--night-line-2); --mute: var(--night-mute); }
.hdr-in { display: grid; grid-template-columns: auto 1fr auto; align-items: stretch; height: 100%; margin-inline: var(--pad); border-bottom: 1px solid currentColor; }
.brand { display: flex; align-items: center; gap: 12px; padding-right: 26px; border-right: 1px solid var(--line-2); }
.brand img { width: 30px; height: 30px; }
.brand b { font-family: var(--f-cond); font-weight: 700; font-size: 22px; letter-spacing: 0.16em; line-height: 1; }
.brand small { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--mute); padding-left: 12px; border-left: 1px solid var(--line-2); white-space: nowrap; }
.nav { display: flex; justify-content: center; align-items: stretch; }
.nav a { position: relative; display: flex; align-items: center; gap: 7px; padding: 0 clamp(10px, 1.4vw, 22px); font-size: 14px; white-space: nowrap; }
.nav a sup { font-family: var(--f-mono); font-size: 9px; color: var(--mute); }
.nav a::after { content: ''; position: absolute; left: clamp(10px, 1.4vw, 22px); right: clamp(10px, 1.4vw, 22px); bottom: -1px; height: 3px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--dur-2) var(--ease); }
.nav a:hover::after, .nav a[aria-current='true']::after, .nav a[aria-current='page']::after { transform: scaleX(1); }
.hdr-r { display: flex; align-items: center; gap: 20px; }
.clock { display: flex; align-items: center; gap: 9px; font-family: var(--f-mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.clock em { font-style: normal; font-size: 9px; letter-spacing: 0.12em; color: var(--mute); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sync); box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.2); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(46, 196, 182, 0); } }
.get { --cut: 8px; display: inline-flex; align-items: center; height: 36px; padding: 0 16px 0 14px; background: var(--signal); color: var(--ink); font-family: var(--f-cond); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; }
.get:hover { background: var(--paper-hi); }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid currentColor; place-content: center; gap: 5px; }
.menu-btn i { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform var(--dur-2) var(--ease); }
.menu-btn[aria-expanded='true'] i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded='true'] i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.hdr-progress { position: absolute; left: var(--pad); right: var(--pad); bottom: -1px; height: 2px; }
.hdr-progress i { display: block; height: 100%; width: 100%; background: var(--signal); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* 移动端全屏菜单 */
.sheet { position: fixed; inset: var(--hdr) 0 0; z-index: 49; display: none; flex-direction: column; padding: 24px var(--pad) 32px; background: var(--ink); color: var(--paper-hi); overflow-y: auto; }
.sheet.is-open { display: flex; animation: sheet-in var(--dur-2) var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } }
.sheet a { display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; padding: 18px 0; border-bottom: 1px solid rgba(245, 244, 240, 0.14); font-family: var(--f-heavy); font-weight: 900; font-size: 30px; line-height: 1.1; }
.sheet a span { font-family: var(--f-mono); font-size: 11px; font-weight: 400; color: var(--signal); }
.sheet a em { font-style: normal; font-family: var(--f-mono); font-size: 11px; font-weight: 400; color: rgba(245, 244, 240, 0.5); }
.sheet .sheet-foot { margin-top: auto; padding-top: 28px; font-family: var(--f-mono); font-size: 11px; color: rgba(245, 244, 240, 0.5); line-height: 2; }

/* ---------- 07 · 时序导轨（桌面右侧） ---------- */
.rail { position: fixed; right: calc(var(--pad) * 0.5 - 6px); top: 50%; z-index: 40; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end; gap: 0; pointer-events: none; mix-blend-mode: difference; color: #fff; }
.rail-track { position: relative; width: 1px; height: 46vh; background: rgba(255, 255, 255, 0.35); }
.rail-mark { position: absolute; right: -3px; width: 7px; height: 1px; background: #fff; }
.rail-now { position: absolute; right: -5px; top: 0; width: 11px; height: 11px; border: 1px solid #fff; transform: translateY(calc(var(--p, 0) * 46vh - 5px)) rotate(45deg); }
.rail-time { margin-top: 14px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.06em; writing-mode: vertical-rl; font-variant-numeric: tabular-nums; }

/* ---------- 08 · 栏目头 ---------- */
.sec { position: relative; padding-block: var(--sec-y); }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); align-items: end; padding-bottom: 14px; border-bottom: 1px solid currentColor; }
.sec-no { grid-column: 1 / span 2; font-family: var(--f-cond); font-weight: 700; font-size: clamp(56px, 6vw, 96px); line-height: 0.78; letter-spacing: -0.01em; }
.sec-no sup { font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: 0.06em; vertical-align: top; margin-left: 6px; color: var(--mute); }
.sec-meta { grid-column: 3 / span 6; display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: 0.08em; color: var(--mute); }
.sec-meta b { color: currentColor; font-weight: 400; color: inherit; }
.sec-meta .t { color: var(--ink); background: var(--signal); padding: 1px 6px; }
.sec-tag { grid-column: 9 / span 4; justify-self: end; display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: 0.08em; color: var(--mute); }
.h2 { font-family: var(--f-heavy); font-weight: 900; font-size: var(--t-h2); line-height: 1.04; letter-spacing: -0.03em; }
.h2 .dim { color: var(--mute); }
.lede { font-size: 17px; line-height: 1.95; color: var(--ink-2); max-width: 34em; }
.night .lede { color: rgba(236, 234, 228, 0.78); }

/* ---------- 09 · 首屏 ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding-top: var(--hdr); display: grid; grid-template-rows: 1fr auto; overflow: hidden; }
.hero-stage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); margin-inline: var(--pad); }
.hero-copy { grid-column: 1 / span 6; grid-row: 1; position: relative; z-index: 2; padding-top: clamp(40px, 8vh, 96px); }
.hero-tag { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-2); }
.hero-tag b { font-weight: 400; background: var(--ink); color: var(--paper-hi); padding: 3px 7px; }
.hero h1 { margin: clamp(22px, 3.4vh, 36px) 0 0 -0.06em; font-family: var(--f-heavy); font-weight: 900; font-size: clamp(60px, 7.2vw, 132px); line-height: 0.98; letter-spacing: -0.04em; }
.hero h1 > span { display: block; white-space: nowrap; }
.hero-body { max-width: 31em; margin-top: clamp(24px, 3.6vh, 40px); }
.hero-body p { color: var(--ink-2); line-height: 1.95; }
.hero-body strong { font-weight: 400; color: var(--ink); box-shadow: inset 0 -1px var(--ink); }
.hero-ctas { display: flex; margin-top: 28px; }
.hero-ctas .btn-line { border-left: 0; }
.hero-meta { display: flex; flex-wrap: wrap; margin-top: 16px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--mute); }
.hero-meta span { padding-right: 14px; margin-right: 14px; border-right: 1px solid var(--line-2); }
.hero-meta span:last-child { border: 0; }

.hero-vis { grid-column: 6 / span 7; grid-row: 1; position: relative; min-height: 560px; }
.big-digits { position: absolute; right: calc(var(--pad) * -1 - 0.04em); top: clamp(10px, 3vh, 36px); font-family: var(--f-mono); font-weight: 700; font-size: clamp(110px, 15.4vw, 250px); line-height: 0.8; letter-spacing: -0.06em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.2px rgba(13, 16, 20, 0.22); font-variant-numeric: tabular-nums; user-select: none; }
.big-digits .s { color: var(--signal); -webkit-text-stroke: 0; }
.big-cap { position: absolute; left: -2%; top: calc(clamp(10px, 3vh, 36px) + clamp(110px, 15.4vw, 250px) * 0.8 + 12px); font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--mute); }
.device { position: absolute; left: 5%; right: 0; bottom: clamp(28px, 5vh, 52px); z-index: 1; }
.device-tab { display: flex; align-items: stretch; height: 30px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.06em; }
.device-tab > span { display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--ink); color: rgba(245, 244, 240, 0.75); white-space: nowrap; }
.device-tab > span:first-child { background: var(--signal); color: var(--ink); font-weight: 700; }
.device-tab .live { margin-left: auto; background: transparent; color: var(--ink-2); padding-right: 0; }
.screen { position: relative; padding: 10px; background: #050607; box-shadow: 0 40px 80px -40px rgba(13, 16, 20, 0.55); }
.screen img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.screen::before, .screen::after { content: ''; position: absolute; width: 22px; height: 22px; border: 2px solid var(--ink); }
.screen::before { left: -9px; bottom: -9px; border-top: 0; border-right: 0; }
.screen::after { right: -9px; top: -9px; border-bottom: 0; border-left: 0; }
.night .screen::before, .night .screen::after { border-color: var(--night-ink); }
.figcap { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--mute); }
.figcap b { font-weight: 400; color: var(--ink); margin-right: 10px; }
.night .figcap b { color: var(--night-ink); }
.hero-side { position: absolute; right: calc(var(--pad) * -1 + 12px); top: 46%; writing-mode: vertical-rl; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.24em; color: var(--mute); }

/* 时间标尺 */
.ruler { position: relative; margin-inline: var(--pad); height: 116px; border-top: 1px solid var(--ink); }
.ruler-head { position: absolute; left: 0; top: 10px; display: flex; gap: 16px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--mute); }
.ruler-head b { font-weight: 400; color: var(--ink); }
.ruler-track { position: absolute; left: 0; right: 0; top: 42px; height: 44px; }
.ruler-ticks { position: absolute; inset: 0 0 auto; height: 6px; background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px calc(100% / 48)); }
.ruler-ticks.major { height: 14px; background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px calc(100% / 8)); }
.ruler-labels { position: absolute; left: 0; right: 0; top: 18px; font-family: var(--f-mono); font-size: 10px; color: var(--ink-2); }
.ruler-labels span { position: absolute; transform: translateX(3px); }
.ruler-blocks { position: absolute; left: 0; right: 0; bottom: -16px; height: 18px; }
.blk { position: absolute; top: 0; height: 18px; display: flex; align-items: center; gap: 8px; padding: 0 8px; font-size: 11px; white-space: nowrap; overflow: hidden; }
.blk.ink { background: var(--ink); color: var(--paper-hi); }
.blk.hatch { background: repeating-linear-gradient(-45deg, var(--line-2) 0 1px, transparent 1px 5px); color: var(--mute); font-family: var(--f-mono); font-size: 9.5px; }
.blk.next { border: 1px solid var(--ink); background: var(--paper-hi); }
.blk i { font-style: normal; font-family: var(--f-mono); font-size: 9.5px; opacity: 0.6; }
.now { position: absolute; top: -42px; bottom: -24px; left: 0; border-left: 2px solid var(--signal); z-index: 3; will-change: transform; }
.now::before { content: ''; position: absolute; top: 0; left: -6px; border: 5px solid transparent; border-top: 7px solid var(--ink); }
.now span { position: absolute; top: -1px; left: 6px; padding: 2px 6px; background: var(--signal); font-family: var(--f-mono); font-size: 10px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- 10 · 01 安排 ---------- */
.plan-top { margin-top: clamp(48px, 7vw, 104px); align-items: end; row-gap: 32px; }
.plan-top .h2 { grid-column: 1 / span 7; }
.plan-top .lede { grid-column: 9 / span 4; }

/* 班级网格（年级 × 时间） */
.matrix { margin-top: clamp(56px, 7vw, 96px); border: 1px solid var(--ink); background: var(--paper-hi); }
.matrix-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 12px 16px; border-bottom: 1px solid var(--ink); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.06em; }
.matrix-head span:first-child { font-weight: 700; }
.matrix-head .legend { display: flex; gap: 18px; color: var(--mute); }
.matrix-head .legend i { display: inline-block; width: 18px; height: 8px; margin-right: 6px; vertical-align: 0; }
.lg-major { background: var(--ink); }
.lg-weekly { background: repeating-linear-gradient(-45deg, var(--ink) 0 1.5px, transparent 1.5px 5px); border: 1px solid var(--ink); }
.lg-quick { background: var(--signal); }
.matrix-body { position: relative; overflow-x: auto; scrollbar-width: thin; }
.matrix-grid { position: relative; min-width: 760px; display: grid; grid-template-columns: 112px 1fr; }
.mx-scale { grid-column: 2; position: relative; height: 30px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 10px; color: var(--mute); }
.mx-scale span { position: absolute; top: 8px; transform: translateX(4px); }
.mx-row { display: contents; }
.mx-room { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 40px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 13px; }
.mx-room i { width: 6px; height: 6px; border-radius: 50%; background: var(--sync); }
.mx-room i.off { background: transparent; border: 1px solid var(--mute); }
.mx-lane { position: relative; height: 40px; border-bottom: 1px solid var(--line); background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 10)); }
.mx-b { position: absolute; top: 8px; bottom: 8px; display: flex; align-items: center; padding: 0 8px; font-size: 11px; white-space: nowrap; overflow: hidden; }
.mx-b.major { background: var(--ink); color: var(--paper-hi); }
.mx-b.weekly { background: repeating-linear-gradient(-45deg, rgba(13, 16, 20, 0.85) 0 1.5px, transparent 1.5px 5px); border: 1px solid var(--ink); color: var(--ink); }
.mx-b.weekly span { background: var(--paper-hi); padding: 0 4px; }
.mx-b.quick { background: var(--signal); color: var(--ink); font-weight: 700; }
.mx-now { position: absolute; top: 30px; bottom: 0; width: 0; border-left: 2px solid var(--signal); pointer-events: none; }
.mx-now::before { content: 'NOW'; position: absolute; top: -26px; left: -1px; padding: 1px 5px; background: var(--signal); font-family: var(--f-mono); font-size: 9px; font-weight: 700; }

/* 档案索引 */
.dossier { margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--ink); }
.dos { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); align-items: baseline; padding: 28px 0 30px; border-bottom: 1px solid var(--line-2); transition: background var(--dur-2) var(--ease); }
.dos:hover { background: var(--paper-hi); }
.dos-id { grid-column: 1 / span 1; font-family: var(--f-mono); font-size: 11px; color: var(--mute); padding-left: 2px; }
.dos-en { grid-column: 2 / span 2; font-family: var(--f-cond); font-weight: 700; font-size: 15px; letter-spacing: 0.12em; }
.dos h3 { grid-column: 4 / span 3; font-family: var(--f-heavy); font-weight: 900; font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.01em; }
.dos p { grid-column: 7 / span 4; min-width: 0; font-size: 15px; color: var(--ink-2); line-height: 1.85; overflow-wrap: anywhere; }
.dos-role { grid-column: 11 / span 2; min-width: 0; max-width: 100%; justify-self: end; text-align: right; font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); line-height: 1.7; overflow-wrap: anywhere; }

/* ---------- 11 · 02 开考（夜间叙事） ---------- */
.alert-sec { padding-bottom: 0; }
.alert-intro { margin-top: clamp(48px, 7vw, 104px); align-items: end; row-gap: 28px; }
.alert-intro .h2 { grid-column: 1 / span 7; }
.alert-intro .lede { grid-column: 9 / span 4; }
.story { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(56px, 7vw, 100px); }
.story-steps { grid-column: 1 / span 4; padding-bottom: 30vh; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; opacity: 0.32; transition: opacity var(--dur-3) var(--ease); }
.step.is-on { opacity: 1; }
.step-t { display: flex; align-items: baseline; gap: 14px; font-family: var(--f-mono); }
.step-t b { font-size: clamp(40px, 4.4vw, 68px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.step-t span { font-size: 11px; letter-spacing: 0.1em; color: var(--mute); }
.step.is-on .step-t b { color: var(--signal); }
.step h3 { margin-top: 20px; font-family: var(--f-heavy); font-weight: 900; font-size: clamp(26px, 2.4vw, 38px); line-height: 1.2; }
.step p { margin-top: 12px; max-width: 24em; color: rgba(236, 234, 228, 0.72); line-height: 1.9; }
.step .st { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 4px 10px; border: 1px solid var(--night-line-2); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em; align-self: flex-start; }
.step .st i { width: 6px; height: 6px; background: var(--c, var(--sync)); }
.step-img { display: none; }
.story-stage { grid-column: 5 / span 8; position: relative; }
.stage-sticky { position: sticky; top: calc(var(--hdr) + 6vh); padding-bottom: 6vh; }
.stage-head { display: flex; align-items: stretch; height: 30px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.06em; }
.stage-head > span { display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--night-3); color: rgba(236, 234, 228, 0.7); white-space: nowrap; }
.stage-head > span:first-child { background: var(--signal); color: var(--ink); font-weight: 700; }
.stage-head .live { margin-left: auto; background: transparent; padding-right: 0; }
.stage-screen { position: relative; padding: 10px; background: #000; outline: 1px solid var(--night-line-2); }
.stage-screen .frames { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.stage-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.015); transition: opacity 520ms var(--ease), transform 900ms var(--ease); }
.stage-screen img.is-on { opacity: 1; transform: none; }
.stage-screen::before, .stage-screen::after { content: ''; position: absolute; width: 22px; height: 22px; border: 2px solid var(--night-ink); }
.stage-screen::before { left: -9px; bottom: -9px; border-top: 0; border-right: 0; }
.stage-screen::after { right: -9px; top: -9px; border-bottom: 0; border-left: 0; }
.stage-bar { position: relative; height: 34px; margin-top: 18px; border-top: 1px solid var(--night-line-2); }
.stage-bar .seg { position: absolute; top: -1px; height: 1px; background: var(--night-ink); }
.stage-bar .pin { position: absolute; top: -6px; width: 11px; height: 11px; margin-left: -5px; background: var(--night); border: 1px solid var(--night-ink); transform: rotate(45deg); transition: background var(--dur-2); }
.stage-bar .pin.is-on { background: var(--signal); border-color: var(--signal); }
.stage-bar .cursor { position: absolute; top: -12px; height: 24px; border-left: 2px solid var(--signal); transition: left 600ms var(--ease); }
.stage-bar .lbl { position: absolute; top: 12px; transform: translateX(-50%); font-family: var(--f-mono); font-size: 10px; color: var(--night-mute); white-space: nowrap; }
.stage-cap { display: flex; justify-content: space-between; margin-top: 2px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--night-mute); }
.stage-cap b { color: var(--night-ink); font-weight: 400; }

/* ---------- 12 · 03 同步 ---------- */
.sync-sec { background: var(--night); color: var(--night-ink); }
.sync-top { margin-top: clamp(48px, 7vw, 104px); align-items: end; row-gap: 28px; }
.sync-top .h2 { grid-column: 1 / span 8; }
.sync-top .lede { grid-column: 9 / span 4; }
.rooms { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 1px; background: var(--night-line); border: 1px solid var(--night-line); }
.room { position: relative; padding: 14px 14px 12px; background: var(--night); min-height: 128px; display: flex; flex-direction: column; justify-content: space-between; transition: background 600ms var(--ease); }
.room.is-ping { background: var(--night-3); }
.room.is-ping::after { content: ''; position: absolute; inset: -1px; border: 1px solid var(--sync); animation: ping 900ms var(--ease) forwards; pointer-events: none; }
@keyframes ping { from { opacity: 1; } to { opacity: 0; } }
.room-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 10px; color: var(--night-mute); letter-spacing: 0.06em; }
.room-top i { width: 6px; height: 6px; border-radius: 50%; background: var(--sync); }
.room-name { margin-top: 10px; font-size: 14px; }
.room-t { font-family: var(--f-mono); font-weight: 700; font-size: clamp(16px, 1.5vw, 22px); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.room-sub { font-family: var(--f-mono); font-size: 9.5px; color: var(--night-mute); letter-spacing: 0.06em; }
.room.is-plugin .room-top em { font-style: normal; color: var(--signal); }
.sync-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 12px 0; border-bottom: 1px solid var(--night-line-2); font-family: var(--f-mono); font-size: 10.5px; color: var(--night-mute); letter-spacing: 0.06em; }
.sync-foot b { color: var(--night-ink); font-weight: 400; }

.specs { margin-top: clamp(64px, 8vw, 110px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--night-line-2); }
.spec { padding: 26px 24px 30px 0; border-right: 1px solid var(--night-line); }
.spec + .spec { padding-left: 24px; }
.spec:last-child { border-right: 0; }
.spec .k { font-family: var(--f-mono); font-size: 10.5px; color: var(--signal); letter-spacing: 0.08em; }
.spec h3 { margin-top: 18px; font-family: var(--f-heavy); font-weight: 900; font-size: 22px; line-height: 1.3; }
.spec p { margin-top: 10px; font-size: 14px; line-height: 1.85; color: rgba(236, 234, 228, 0.7); }

.ci { margin-top: clamp(64px, 8vw, 110px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); align-items: stretch; border: 1px solid var(--night-line-2); }
.ci-l { grid-column: 1 / span 5; padding: clamp(28px, 3vw, 44px); border-right: 1px solid var(--night-line-2); display: flex; flex-direction: column; gap: 18px; }
.ci-l h3 { font-family: var(--f-heavy); font-weight: 900; font-size: clamp(28px, 2.8vw, 44px); line-height: 1.12; }
.ci-l p { color: rgba(236, 234, 228, 0.72); font-size: 15px; }
.ci-l .link { align-self: flex-start; margin-top: auto; }
.ci-r { grid-column: 6 / span 7; padding: clamp(28px, 3vw, 44px) clamp(28px, 3vw, 44px) clamp(28px, 3vw, 44px) 0; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; height: 100%; }
.flow li { position: relative; padding: 0 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.flow li + li { padding-left: 16px; border-left: 1px dashed var(--night-line-2); }
.flow .n { font-family: var(--f-mono); font-size: 10.5px; color: var(--night-mute); }
.flow b { font-family: var(--f-heavy); font-weight: 900; font-size: 18px; line-height: 1.3; }
.flow span { font-size: 13px; line-height: 1.8; color: rgba(236, 234, 228, 0.65); }
.flow .tk { margin-top: auto; font-family: var(--f-mono); font-size: 10px; color: var(--signal); }

/* ---------- 13 · 04 展示 ---------- */
.show-top { margin-top: clamp(48px, 7vw, 104px); align-items: end; row-gap: 28px; }
.show-top .h2 { grid-column: 1 / span 8; }
.show-top .lede { grid-column: 9 / span 4; }
.reel-wrap { position: relative; margin-top: clamp(48px, 6vw, 88px); }
.reel { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(300px, 40vw, 640px); gap: clamp(14px, 1.6vw, 24px); padding: 4px var(--pad) 26px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; cursor: grab; }
.reel::-webkit-scrollbar { display: none; }
.reel.is-drag { cursor: grabbing; scroll-snap-type: none; }
.reel.is-drag * { pointer-events: none; }
.card { scroll-snap-align: start; position: relative; }
.card-img { position: relative; padding: 8px; background: var(--ink); }
.card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.card-meta { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline; padding-top: 14px; border-bottom: 1px solid var(--line-2); padding-bottom: 12px; }
.card-meta .id { font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); }
.card-meta h3 { font-family: var(--f-heavy); font-weight: 900; font-size: 19px; }
.card-meta .th { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; padding: 1px 6px; border: 1px solid var(--line-2); }
.card-meta .th.dark { background: var(--ink); color: var(--paper-hi); border-color: var(--ink); }
.card p { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }
.card.more { display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border: 1px solid var(--ink); background: var(--paper-hi); }
.card.more ul { display: grid; gap: 0; }
.card.more li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.card.more li span { font-family: var(--f-mono); font-size: 10px; color: var(--mute); }
.reel-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-inline: var(--pad); }
.reel-bar { flex: 1; height: 1px; background: var(--line-2); position: relative; }
.reel-bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 20%; background: var(--ink); transform: translateX(calc(var(--p, 0) * 400%)); }
.reel-btns { display: flex; gap: 0; }
.reel-btns button { width: 46px; height: 46px; border: 1px solid var(--ink); font-family: var(--f-mono); transition: background var(--dur-1), color var(--dur-1); }
.reel-btns button + button { border-left: 0; }
.reel-btns button:hover { background: var(--ink); color: var(--paper-hi); }
.mobile-note { margin-top: clamp(56px, 7vw, 96px); align-items: center; row-gap: 32px; }
.phone { grid-column: 2 / span 3; justify-self: center; width: min(260px, 70vw); padding: 10px; background: var(--ink); border-radius: 30px; }
.phone img { border-radius: 22px; width: 100%; }
.mobile-note .txt { grid-column: 6 / span 6; }
.mobile-note h3 { font-family: var(--f-heavy); font-weight: 900; font-size: clamp(28px, 3vw, 46px); line-height: 1.15; }
.mobile-note p { margin-top: 16px; color: var(--ink-2); max-width: 30em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { padding: 5px 10px; border: 1px solid var(--line-2); font-size: 13px; }

/* ---------- 14 · 05 收卷 ---------- */
.arch { background: var(--paper-lo); }
.arch-grid { margin-top: clamp(48px, 7vw, 104px); row-gap: 48px; align-items: start; }
.arch-copy { grid-column: 1 / span 5; position: sticky; top: calc(var(--hdr) + 40px); }
.arch-copy .lede { margin-top: 28px; }
.arch-list { margin-top: 40px; border-top: 1px solid var(--ink); }
.arch-list li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.arch-list li span { font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); padding-top: 4px; }
.arch-list b { display: block; font-family: var(--f-heavy); font-weight: 900; font-size: 18px; }
.arch-list p { font-size: 14px; color: var(--ink-2); margin-top: 4px; line-height: 1.8; }
.paper-wrap { grid-column: 7 / span 6; position: relative; padding: clamp(24px, 4vw, 64px) clamp(16px, 3vw, 48px); }
.paper { position: relative; background: #fff; box-shadow: 0 1px 0 var(--line-2), 24px 30px 0 -6px rgba(13, 16, 20, 0.08); transform: rotate(-1.4deg); }
.paper img { width: 100%; }
.paper::after { content: 'A4 · 210 × 297'; position: absolute; right: -2px; top: -26px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--mute); }
.stamp { position: absolute; right: clamp(4px, 2vw, 28px); bottom: clamp(20px, 6vw, 80px); z-index: 2; display: grid; place-items: center; width: 132px; height: 132px; border: 2px solid var(--alert); border-radius: 50%; color: var(--alert); font-family: var(--f-cond); font-weight: 700; text-align: center; line-height: 1.05; letter-spacing: 0.08em; transform: rotate(-14deg); mix-blend-mode: multiply; }
.stamp::before { content: ''; position: absolute; inset: 6px; border: 1px solid var(--alert); border-radius: 50%; }
.stamp b { display: block; font-family: var(--f-heavy); font-weight: 900; font-size: 26px; letter-spacing: 0.1em; }
.stamp small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 9px; margin-top: 4px; }
.lifecycle { margin-top: clamp(64px, 8vw, 110px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.lc { position: relative; padding: 22px 20px 24px 0; }
.lc + .lc { padding-left: 20px; border-left: 1px solid var(--line-2); }
.lc .k { font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); }
.lc b { display: block; margin-top: 12px; font-family: var(--f-heavy); font-weight: 900; font-size: 24px; }
.lc p { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }
.lc:not(:last-child)::after { content: '→'; position: absolute; right: -8px; top: 20px; font-family: var(--f-mono); background: var(--paper-lo); padding: 0 2px; z-index: 1; }
.lc.on b::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 10px; background: var(--signal); vertical-align: 2px; }

/* ---------- 15 · 06 部署 ---------- */
.dep-top { margin-top: clamp(48px, 7vw, 104px); align-items: end; row-gap: 28px; }
.dep-top .h2 { grid-column: 1 / span 7; }
.dep-top .lede { grid-column: 9 / span 4; }
.routes { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--ink); }
.route { position: relative; display: flex; flex-direction: column; min-height: 440px; padding: 22px 22px 24px; transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
.route + .route { border-left: 1px solid var(--ink); }
.route:hover { background: var(--ink); color: var(--paper-hi); --mute: rgba(245, 244, 240, 0.55); --line-2: rgba(245, 244, 240, 0.25); }
.route-top { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); letter-spacing: 0.06em; }
.route-no { margin-top: 26px; font-family: var(--f-cond); font-weight: 700; font-size: 64px; line-height: 0.8; }
.route h3 { margin-top: 24px; font-family: var(--f-heavy); font-weight: 900; font-size: 26px; line-height: 1.2; }
.route p { margin-top: 10px; font-size: 14px; line-height: 1.85; }
.route dl { margin-top: auto; padding-top: 24px; display: grid; gap: 0; font-size: 12.5px; }
.route dl div { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.route dt { font-family: var(--f-mono); font-size: 10px; color: var(--mute); padding-top: 2px; }
.route .go { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid currentColor; font-size: 14px; }
.route.rec { background: var(--signal); color: var(--ink); --mute: rgba(13, 16, 20, 0.6); --line-2: rgba(13, 16, 20, 0.25); }
.route.rec:hover { background: var(--ink); color: var(--paper-hi); --mute: rgba(245, 244, 240, 0.55); --line-2: rgba(245, 244, 240, 0.25); }

/* ---------- 16 · 收尾 CTA ---------- */
.end { position: relative; overflow: hidden; padding-block: clamp(110px, 14vw, 220px) clamp(40px, 5vw, 64px); }
.end-t { font-family: var(--f-heavy); font-weight: 900; font-size: clamp(56px, 10.4vw, 176px); line-height: 0.98; letter-spacing: -0.045em; }
.end-t .o { color: transparent; -webkit-text-stroke: 1.4px var(--night-ink); }
.end-row { margin-top: clamp(40px, 5vw, 72px); align-items: end; row-gap: 32px; }
.end-row .lede { grid-column: 1 / span 5; }
.end-ctas { grid-column: 7 / span 6; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0; }
.end-ctas .btn-line { border-color: var(--night-line-2); border-left: 0; }
.end-clock { position: absolute; right: var(--pad); top: clamp(40px, 6vw, 80px); font-family: var(--f-mono); font-size: 11px; color: var(--night-mute); letter-spacing: 0.08em; text-align: right; line-height: 1.8; }
.end-clock b { display: block; color: var(--signal); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ---------- 17 · 页脚 ---------- */
.ftr { background: var(--night); color: var(--night-ink); --line-2: var(--night-line-2); --mute: var(--night-mute); padding-bottom: 28px; }
.ftr-cols { padding-top: 40px; border-top: 1px solid var(--night-line-2); row-gap: 36px; }
.ftr-brand { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 16px; }
.ftr-brand p { font-size: 14px; color: var(--night-mute); max-width: 22em; }
.ftr-col { grid-column: span 2; }
.ftr-col h4 { font-family: var(--f-mono); font-weight: 400; font-size: 10.5px; letter-spacing: 0.1em; color: var(--night-mute); margin-bottom: 14px; }
.ftr-col a { display: block; padding: 4px 0; font-size: 14px; }
.ftr-col a:hover { color: var(--signal); }
.ftr-group { grid-column: 11 / span 2; }
.ftr-group b { display: block; font-family: var(--f-mono); font-size: 20px; color: var(--signal); letter-spacing: 0.02em; }
.ftr-group p { font-size: 12px; color: var(--night-mute); margin-top: 6px; line-height: 1.7; }
.wordmark { margin-top: clamp(48px, 6vw, 96px); font-family: var(--f-cond); font-weight: 700; font-size: clamp(80px, 23.6vw, 420px); line-height: 0.76; letter-spacing: 0.02em; color: transparent; -webkit-text-stroke: 1px var(--night-line-2); white-space: nowrap; user-select: none; overflow: hidden; }
.ftr-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--night-line); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--night-mute); }

/* ---------- 18 · 下载页 ---------- */
.dl-hero { padding-top: calc(var(--hdr) + clamp(48px, 7vw, 96px)); padding-bottom: clamp(56px, 7vw, 96px); }
.dl-title { margin-top: clamp(40px, 5vw, 72px); align-items: end; row-gap: 28px; }
.dl-title h1 { grid-column: 1 / span 8; font-family: var(--f-heavy); font-weight: 900; font-size: var(--t-display); line-height: 1; letter-spacing: -0.04em; }
.dl-title .lede { grid-column: 9 / span 4; }
.release { margin-top: clamp(48px, 6vw, 88px); background: var(--ink); color: var(--paper-hi); --mute: rgba(245, 244, 240, 0.55); --line-2: rgba(245, 244, 240, 0.22); }
.rel-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); padding: clamp(28px, 3.4vw, 48px); padding-bottom: 0; align-items: start; row-gap: 20px; }
.rel-ver { grid-column: 1 / span 7; }
.rel-ver .label { color: var(--signal); }
.rel-ver h2 { margin-top: 14px; font-family: var(--f-cond); font-weight: 700; font-size: clamp(72px, 10vw, 160px); line-height: 0.8; letter-spacing: -0.01em; }
.rel-ver h2 small { font-size: 0.32em; letter-spacing: 0.08em; margin-left: 0.3em; color: var(--mute); }
.rel-info { grid-column: 9 / span 4; display: grid; gap: 0; font-size: 13px; }
.rel-info div { display: grid; grid-template-columns: 80px 1fr; padding: 9px 0; border-top: 1px solid var(--line-2); }
.rel-info dt { font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); padding-top: 2px; }
.rel-info .ok { display: inline-flex; align-items: center; gap: 8px; }
.rel-info .ok::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sync); }
.files { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line-2); }
.file { display: grid; grid-template-columns: 64px minmax(0, 2.2fr) minmax(0, 2fr) 110px 200px; gap: 16px; align-items: center; padding: 20px clamp(28px, 3.4vw, 48px); border-bottom: 1px solid var(--line-2); transition: background var(--dur-1); }
.file:hover { background: rgba(245, 244, 240, 0.05); }
.file .n { font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); }
.file .nm b { display: block; font-family: var(--f-heavy); font-weight: 900; font-size: 19px; }
.file .nm code { display: block; margin-top: 4px; font-family: var(--f-mono); font-size: 11px; color: var(--mute); word-break: break-all; }
.file .ds { font-size: 13.5px; color: rgba(245, 244, 240, 0.72); line-height: 1.75; }
.file .sz { font-family: var(--f-mono); font-size: 12px; text-align: right; }
.file .btn { min-height: 46px; font-size: 14px; justify-content: space-between; width: 100%; }
.file.main { background: rgba(255, 194, 26, 0.06); }
.file .btn-ghost-d { border: 1px solid var(--line-2); }
.file .btn-ghost-d:hover { border-color: var(--paper-hi); }
.rel-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 16px clamp(28px, 3.4vw, 48px); font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); }
.rel-foot a { color: var(--paper-hi); border-bottom: 1px solid var(--line-2); }

.notes { row-gap: 40px; }
.notes-l { grid-column: 1 / span 5; }
.notes-r { grid-column: 7 / span 6; }
.notes h3 { font-family: var(--f-heavy); font-weight: 900; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.15; }
.notes-list { margin-top: 24px; border-top: 1px solid var(--ink); }
.notes-list li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; line-height: 1.85; }
.notes-list li span { font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); padding-top: 4px; }
.notes-list b { font-weight: 400; background: linear-gradient(transparent 62%, rgba(255, 194, 26, 0.55) 62%); }
.warn { margin-top: 28px; padding: 20px 22px; border: 1px solid var(--ink); background: var(--paper-hi); display: grid; grid-template-columns: auto 1fr; gap: 16px; }
.warn .tape { width: 9px; height: auto; background: repeating-linear-gradient(-45deg, var(--ink) 0 4px, var(--signal) 4px 8px); }
.warn p { font-size: 14.5px; line-height: 1.85; }

.starts { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--ink); }
.start { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); align-items: center; min-height: 104px; border-bottom: 1px solid var(--line-2); transition: background var(--dur-2) var(--ease), padding var(--dur-2) var(--ease); }
.start:hover { background: var(--ink); color: var(--paper-hi); --mute: rgba(245, 244, 240, 0.55); }
.start .n { grid-column: 1 / span 1; font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); padding-left: 12px; }
.start b { grid-column: 2 / span 4; font-family: var(--f-heavy); font-weight: 900; font-size: clamp(20px, 2vw, 28px); }
.start span.d { grid-column: 6 / span 5; font-size: 14.5px; color: var(--mute); }
.start .a { grid-column: 12 / span 1; justify-self: end; padding-right: 12px; font-family: var(--f-mono); font-size: 18px; }

/* ---------- 19 · 404 ---------- */
.nf { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: var(--pad); }
.nf b { display: block; font-family: var(--f-mono); font-weight: 700; font-size: clamp(80px, 18vw, 260px); line-height: 0.9; letter-spacing: -0.06em; }
.nf b span { color: var(--signal); }
.nf h1 { margin-top: 20px; font-family: var(--f-heavy); font-weight: 900; font-size: clamp(28px, 4vw, 52px); }
.nf p { margin-top: 10px; color: var(--mute); }
.nf .btn { margin: 32px auto 0; }

/* ---------- 20 · 出现动效（仅在 JS 可用时） ---------- */
.js [data-rv] { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); transition-delay: var(--d, 0ms); }
.js [data-rv].is-in { opacity: 1; transform: none; }
.js .wipe { clip-path: inset(0 100% 0 0); transition: clip-path 1100ms var(--ease-io); transition-delay: var(--d, 0ms); }
.js .wipe.is-in { clip-path: inset(0 0 0 0); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .brand small { display: none; }
  .clock em { display: none; }
  .file { grid-template-columns: 48px minmax(0, 2fr) minmax(0, 2fr) 90px 170px; }
  .rail { display: none; }
}

@media (max-width: 960px) {
  :root { --hdr: 58px; --sec-y: clamp(80px, 16vw, 120px); }
  .grid, .sec-head, .hero-stage, .story, .dos, .ci, .rel-head, .start { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cols::before { background-image: repeating-linear-gradient(90deg, var(--grid-c, var(--line)) 0 1px, transparent 1px calc(100% / 4)); }
  .nav, .get { display: none; }
  .hdr-in { grid-template-columns: auto 1fr auto; }
  .brand { border-right: 0; padding-right: 0; }
  .hdr-r { justify-content: flex-end; grid-column: 3; gap: 14px; }
  .menu-btn { display: grid; }

  .sec-no { grid-column: 1 / span 2; }
  .sec-meta { grid-column: 1 / -1; order: 3; margin-top: 14px; }
  .sec-tag { grid-column: 3 / span 2; }

  .hero { min-height: 0; }
  .hero-copy, .hero-vis { grid-column: 1 / -1; grid-row: auto; }
  .hero-copy { padding-top: 32px; }
  .hero h1 { font-size: clamp(56px, 18.6vw, 120px); }
  .hero-vis { min-height: 0; margin-top: 40px; }
  .big-digits { position: relative; right: auto; top: auto; display: block; margin-inline: calc(var(--pad) * -1); font-size: 25.4vw; overflow: hidden; }
  .big-cap { position: static; margin-bottom: 6px; }
  .device { position: relative; left: 0; bottom: auto; margin-top: -8vw; }
  .device-tab > span:nth-child(3) { display: none; }
  .hero-side { display: none; }
  .ruler { margin-top: 44px; }
  .ruler-head span { display: none; }
  .ruler-labels span:nth-child(even) { display: none; }

  .plan-top .h2, .plan-top .lede, .alert-intro .h2, .alert-intro .lede, .sync-top .h2, .sync-top .lede, .show-top .h2, .show-top .lede, .dep-top .h2, .dep-top .lede, .dl-title h1, .dl-title .lede { grid-column: 1 / -1; }

  .dos { row-gap: 8px; padding: 22px 0; }
  .dos-id { grid-column: 1 / span 1; }
  .dos-en { grid-column: 2 / span 2; }
  .dos-role { grid-column: 4 / span 1; }
  .dos h3, .dos p { grid-column: 1 / -1; }

  .story-steps { grid-column: 1 / -1; padding-bottom: 0; }
  .story-stage { display: none; }
  .step { min-height: 0; opacity: 1; padding: 36px 0; border-top: 1px solid var(--night-line); }
  .step-img { display: block; margin-top: 22px; padding: 6px; background: #000; outline: 1px solid var(--night-line-2); }
  .step-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
  .step .step-t b { color: var(--signal); }
  .alert-sec { padding-bottom: var(--sec-y); }

  .rooms { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec:nth-child(2) { border-right: 0; }
  .spec:nth-child(3) { padding-left: 0; }
  .spec:nth-child(n + 3) { border-top: 1px solid var(--night-line); }
  .ci-l, .ci-r { grid-column: 1 / -1; }
  .ci-l { border-right: 0; border-bottom: 1px solid var(--night-line-2); }
  .ci-r { padding: 28px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .flow li:nth-child(3) { padding-left: 0; border-left: 0; }

  .phone { grid-column: 1 / -1; }
  .mobile-note .txt { grid-column: 1 / -1; }

  .arch-copy, .paper-wrap { grid-column: 1 / -1; position: static; }
  .lifecycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lc:nth-child(3) { padding-left: 0; border-left: 0; }
  .lc:nth-child(n + 3) { border-top: 1px solid var(--line-2); }
  .lc:nth-child(2)::after { display: none; }

  .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route { min-height: 400px; }
  .route:nth-child(3) { border-left: 0; }
  .route:nth-child(n + 3) { border-top: 1px solid var(--ink); }

  .end-row .lede, .end-ctas { grid-column: 1 / -1; }
  .end-ctas { justify-content: flex-start; }
  .end-clock { position: static; text-align: left; margin-bottom: 36px; }

  .ftr-brand { grid-column: 1 / -1; }
  .ftr-col { grid-column: span 2; }
  .ftr-group { grid-column: 1 / -1; }

  .rel-ver, .rel-info { grid-column: 1 / -1; }
  .file { grid-template-columns: 40px 1fr auto; row-gap: 10px; }
  .file .ds { grid-column: 2 / -1; }
  .file .sz { grid-column: 3; grid-row: 1; }
  .file .btn { grid-column: 2 / -1; }
  .notes-l, .notes-r { grid-column: 1 / -1; }
  .start { row-gap: 4px; padding: 20px 0; }
  .start .n { grid-column: 1 / span 1; }
  .start b { grid-column: 2 / span 2; }
  .start .a { grid-column: 4; }
  .start span.d { grid-column: 2 / -1; }
}

@media (max-width: 560px) {
  :root { --t-h2: clamp(34px, 10.4vw, 52px); }
  body { font-size: 15px; }
  .lede { font-size: 15.5px; }
  .brand b { font-size: 19px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { justify-content: space-between; }
  .hero-ctas .btn-line { border-left: 1px solid var(--line-2); border-top: 0; }
  .btn-ink .v, .btn-signal .v { margin-left: auto; }
  .device-tab > span { padding: 0 9px; font-size: 9.5px; }
  .figcap span:last-child { display: none; }
  .ruler-labels span:nth-child(4n + 3) { display: none; }
  .blk.hatch { font-size: 0; }
  .blk.next { font-size: 0; }
  .blk.next i { font-size: 9px; opacity: 1; }
  .sec-tag .tape { display: none; }
  .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room:nth-child(n + 9) { display: none; }
  .specs { grid-template-columns: 1fr; }
  .spec, .spec + .spec { padding: 22px 0; border-right: 0; border-top: 1px solid var(--night-line); }
  .flow { grid-template-columns: 1fr; }
  .flow li + li { padding-left: 0; border-left: 0; border-top: 1px dashed var(--night-line-2); padding-top: 18px; }
  .reel { grid-auto-columns: 84vw; }
  .lifecycle { grid-template-columns: 1fr; }
  .lc + .lc { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .lc::after { display: none; }
  .routes { grid-template-columns: 1fr; }
  .route + .route { border-left: 0; border-top: 1px solid var(--ink); }
  .route { min-height: 0; }
  .route dl { margin-top: 24px; }
  .stamp { width: 104px; height: 104px; }
  .stamp b { font-size: 21px; }
  .end-ctas { flex-direction: column; width: 100%; }
  .end-ctas .btn { justify-content: space-between; }
  .end-ctas .btn-line { border-left: 1px solid var(--night-line-2); border-top: 0; }
  .ftr-col { grid-column: span 2; }
  .warn { grid-template-columns: 1fr; }
  .warn .tape { width: 64px; height: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .js [data-rv], .js .wipe { opacity: 1; transform: none; clip-path: none; }
}

@media print {
  .hdr, .rail, .sheet, .reel-ctrl { display: none !important; }
  .night, .ftr { background: #fff; color: #000; }
}
