/* ============================================================
   Super-agent 讲解页 · 白色极简
   一种强调色（朱红），只用于：对外动作 / 人工批准、当前阶段、被采用的方案
   ============================================================ */

:root {
  --bg: #fff;
  --soft: #f6f6f4;
  --ink: #141414;
  --ink-2: #3d3d3d;
  --muted: #6e6e6e;
  --faint: #a8a8a8;
  --line: #e7e7e5;
  --line-2: #cfcfcc;
  --accent: #c23b1b;
  --accent-soft: #fbf0ec;

  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, "Noto Sans Mono CJK SC", monospace;

  /* 字号层级：h1 / h2 / h3 / h4 / 正文 / 注释 / 标签 */
  --fs-h1: clamp(2rem, 1.2rem + 3.4vw, 4rem);
  --fs-h2: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem);
  --fs-h3: 1.1875rem;
  --fs-h4: 1.0625rem;
  --fs-body: 1rem;
  --fs-note: .875rem;
  --fs-label: .75rem;

  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --head-h: 56px;
  --gap: clamp(40px, 5vw, 64px);
}

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

html {
  scroll-padding-top: calc(var(--head-h) + 24px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: var(--fs-body) / 1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
strong, b { color: var(--ink); font-weight: 600; }
small { display: block; margin-top: 4px; color: var(--muted); font-size: var(--fs-note); line-height: 1.6; }

code, pre {
  font-family: var(--mono);
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
}
code { font-size: .875em; color: var(--ink); }
:not(pre) > code {
  white-space: nowrap;
  padding: .1em .35em;
  border-radius: 3px;
  background: var(--soft);
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  padding: 8px 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- 顶栏 ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--head-h);
  padding-inline: max(var(--pad), (100% - var(--wrap)) / 2);
  background: rgb(255 255 255 / .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -.01em;
}
.brand svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.4; }
.brand .hub { fill: var(--accent); stroke: var(--accent); }

.site-nav {
  position: relative;
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: var(--fs-note);
}
.site-nav a {
  position: relative;
  padding-block: 4px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current]::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px;
  height: 1px;
  background: var(--accent);
}

/* ---------- 开篇 ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: var(--gap);
  align-items: start;
  width: min(100% - 2 * var(--pad), var(--wrap));
  margin-inline: auto;
  padding-block: clamp(56px, 10vw, 128px) clamp(56px, 7vw, 96px);
}
.hero > * { grid-column: 1; }

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: var(--fs-note);
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin-top: 28px;
  font-size: var(--fs-h1);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -.025em;
}
.hero h1 span { display: block; }
.hero h1 em { font-style: normal; color: var(--accent); }

.lead {
  max-width: 34em;
  margin-top: 32px;
  font-size: 1.125rem;
  line-height: 1.8;
}

.cta { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 32px; }
.cta a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.cta a::after { content: " →"; }
.cta a:hover { color: var(--accent); border-color: var(--accent); }

.hero-fig {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: center;
}
.hero-fig figcaption { margin-top: 16px; color: var(--muted); font-size: var(--fs-note); }

.facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px var(--gap);
  margin-top: clamp(56px, 8vw, 96px);
}
.facts div { padding-top: 16px; border-top: 1px solid var(--ink); }
.facts dt { color: var(--muted); font-size: var(--fs-label); letter-spacing: .04em; }
.facts dd { margin-top: 6px; color: var(--ink); font-weight: 500; }
.facts code { padding: 0; background: none; font-size: .9375em; }

/* ---------- 章节骨架：左栏编号，右栏内容 ---------- */

.sec {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  column-gap: var(--gap);
  row-gap: 40px;
  align-items: start;
  width: min(100% - 2 * var(--pad), var(--wrap));
  margin-inline: auto;
  padding-block: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--line);
}
.sec > * { grid-column: 2; }

.sec-no {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: calc(var(--head-h) + 32px);
  color: var(--ink);
  font-size: var(--fs-note);
  font-weight: 600;
  line-height: 1.5;
}
.sec-no span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .08em;
}

.sec-head h2 { font-size: var(--fs-h2); letter-spacing: -.02em; }
.sec-head p { max-width: 38em; margin-top: 16px; color: var(--ink-2); font-size: 1.0625rem; }

/* 章节内的小标题：h3 作为模块标题，紧贴其下内容 */
.sec > h3 {
  margin-top: 24px;
  margin-bottom: -16px;
  font-size: var(--fs-h3);
}

.prose { max-width: 40em; }

.kicker {
  color: var(--muted);
  font-size: var(--fs-label);
  letter-spacing: .06em;
}

/* ---------- 01 是什么 ---------- */

.terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap);
  border-top: 1px solid var(--ink);
}
.terms div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.terms dt { color: var(--ink); font-weight: 600; }

.keys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px var(--gap);
}
.keys li { padding-top: 20px; border-top: 1px solid var(--line-2); }
.keys h4 { margin-block: 6px 10px; font-size: var(--fs-h4); }
.keys .key-lead { grid-column: 1 / -1; border-top-color: var(--ink); }
.keys .key-lead h4 { font-size: 1.375rem; }
.keys .key-lead p:last-child { max-width: 40em; font-size: 1.0625rem; }

/* ---------- 图示（内联 SVG 通用） ---------- */

.dg { display: block; width: 100%; height: auto; overflow: visible; }
.dg text { font-family: var(--sans); fill: var(--ink); }
.dg .mono { font-family: var(--mono); }
.dg .n rect { fill: var(--bg); stroke: var(--ink); stroke-width: 1; }
.dg .n .t { font-size: 15px; font-weight: 600; text-anchor: middle; }
.dg .n .s { font-size: 12px; fill: var(--muted); text-anchor: middle; }
.dg .n-strong rect { stroke-width: 1.75; }
.dg .n-mute rect { stroke: var(--line-2); }
.dg .n-plan rect { stroke: var(--faint); stroke-dasharray: 5 4; }
.dg .n-plan .t { fill: var(--muted); }
.dg .n-acc rect { stroke: var(--accent); }
.dg .n-gate rect { fill: var(--accent-soft); }
.dg .n-gate .t { fill: var(--accent); }
.dg .n-stack rect { stroke: var(--line-2); }

.dg .ln, .dg .ln path { fill: none; stroke: var(--ink); stroke-width: 1.25; }
.dg .ln-dash, .dg .ln .ln-dash { stroke-dasharray: 5 4; }
.dg .ln-mute, .dg .ln-mute path { stroke: var(--faint); }
.dg .ln-acc, .dg .ln-acc path { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.dg .mk { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dg .mk-mute { stroke: var(--faint); }
.dg .mk-acc { stroke: var(--accent); }

.dg .lb { font-size: 12px; fill: var(--ink-2); }
.dg .lb-acc { fill: var(--accent); }
.dg .lb-mute { fill: var(--muted); }

.dg .store > rect { fill: var(--soft); stroke: none; }
.dg .store .t { font-size: 15px; font-weight: 600; }
.dg .store .s { font-size: 12px; fill: var(--muted); }
.dg .chip rect { fill: var(--bg); stroke: var(--line-2); }
.dg .chip text { font-family: var(--mono); font-size: 12px; text-anchor: middle; }
.dg .chip-acc rect { stroke: var(--accent); }
.dg .chip-acc text { fill: var(--accent); }

/* 开篇分流图 */
.hero-fig .fan path { fill: none; stroke: var(--line-2); stroke-width: .8; }
.hero-fig .dots circle { fill: var(--bg); stroke: var(--faint); stroke-width: 1.25; }
.hero-fig .dot-acc { fill: var(--accent); }
.hero-fig .n .t { font-size: 14px; }
.hero-fig .n .s { font-size: 11.5px; }

/* ---------- 02 架构 ---------- */

.arch-tall { display: none; max-width: 420px; margin-inline: auto; }
.arch figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-note);
}
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 24px; height: 0; border-top: 1.5px solid var(--ink); }
.legend .k-sub { border-top-style: dashed; }
.legend .k-out { border-top-color: var(--accent); }
.legend .k-plan { height: 12px; border: 1px dashed var(--faint); }

.parts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap);
  border-top: 1px solid var(--ink);
}
.parts li {
  display: grid;
  align-content: start;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 16px;
  padding-block: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.parts h4 { font-size: var(--fs-h4); }
.parts li > p:last-child { grid-column: 1 / -1; margin-top: 8px; }

.state { color: var(--muted); font-size: var(--fs-label); letter-spacing: .04em; }
.state::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  vertical-align: 1px;
}
.state-on { color: var(--ink); }
.state-on::before { background: currentColor; }
.state-plan::before { border-style: dashed; }

/* ---------- 03 消息路径 ---------- */

.route { counter-reset: step; border-top: 1px solid var(--ink); }
.route > li {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  column-gap: 24px;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
}
.route > li > h3 {
  padding-top: 24px;
  color: var(--muted);
  font-size: var(--fs-note);
  font-weight: 600;
}
.route ol li {
  position: relative;
  padding: 24px 0 24px 3.25rem;
  counter-increment: step;
}
.route ol li + li { border-top: 1px dashed var(--line); }
.route ol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 25px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: var(--fs-note);
}
.route h4 { font-size: var(--fs-h4); }
.route ol p { max-width: 40em; margin-top: 6px; }
.route-out > h3, .route-out ol li::before { color: var(--accent); }

.flag {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: var(--accent);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.7;
  vertical-align: 2px;
}

.note {
  max-width: 44em;
  padding: 24px 28px;
  background: var(--soft);
  border-radius: 4px;
}
.note h3 { font-size: var(--fs-h4); }
.note p { margin-top: 8px; font-size: .9375rem; }

/* ---------- 04 原型复用 ---------- */

.options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px var(--gap);
}
.options li { display: flex; flex-direction: column; padding-top: 20px; border-top: 1px solid var(--line-2); }
.options h4 { margin-block: 6px 10px; font-size: var(--fs-h4); }
.options .verdict { margin-top: auto; padding-top: 16px; color: var(--muted); font-size: var(--fs-note); }
.options .picked { border-top: 2px solid var(--accent); padding-top: 19px; }
.options .picked .verdict { color: var(--accent); font-weight: 600; }

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
  line-height: 1.65;
}
.tbl th, .tbl td {
  padding: 14px 24px 14px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl thead th {
  padding-block: 0 10px;
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .04em;
}
.tbl tbody th { color: var(--ink); font-weight: 600; white-space: nowrap; }
.tbl .same { margin-right: 10px; color: var(--ink); }
.tbl-cli tbody th { width: 9rem; }

/* ---------- 05 阶段 ---------- */

.stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 28px;
}
.stages > li { padding-top: 18px; border-top: 3px solid var(--line); }
.stages > .is-done { border-top-color: var(--ink); }
.stages > .is-now { border-top-color: var(--accent); }
.stage-no { color: var(--muted); font-size: var(--fs-label); letter-spacing: .04em; }
.stage-no strong { color: inherit; font-weight: 500; }
.is-now .stage-no strong { color: var(--accent); font-weight: 600; }
.stages h3 { margin-block: 8px 10px; font-size: var(--fs-h3); }
.stages > li > p:not(.stage-no) { font-size: .9375rem; }

.checks { margin-top: 16px; font-size: var(--fs-note); line-height: 1.6; }
.checks li { position: relative; padding: 7px 0 7px 22px; border-top: 1px solid var(--line); }
.checks li::before {
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  text-align: center;
}
.checks .ok::before { content: "✓"; content: "✓" / "已完成"; color: var(--ink); }
.checks .todo { color: var(--muted); }
.checks .todo::before { content: "○"; content: "○" / "未完成"; color: var(--faint); }

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px var(--gap);
  align-items: start;
}
.pair article > h3, .pair section > h3 { margin-bottom: 12px; font-size: var(--fs-h3); }
.pair article > p { font-size: .9375rem; }
.pair > article { padding-top: 16px; border-top: 1px solid var(--line-2); }

/* ---------- 06 代码 ---------- */

.pair-code { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.code { min-width: 0; }
.code figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: var(--fs-note);
}
.code figcaption b { font-family: var(--mono); font-weight: 600; }

pre {
  margin: 0;
  padding: 20px 24px;
  overflow-x: auto;
  background: var(--soft);
  border-radius: 4px;
  color: #262626;
  font: .8125rem / 1.75 var(--mono);
  tab-size: 4;
}
pre code { font-size: inherit; color: inherit; overflow-wrap: normal; }
pre.wrap { white-space: pre-wrap; word-break: break-all; }
pre .k { color: var(--ink); font-weight: 600; }
pre .s { color: #555; }
pre .c { color: #949494; }
pre .n { color: var(--accent); }
pre .p { color: var(--faint); user-select: none; }

.rules { display: grid; gap: 32px; }
.rules article { padding-top: 16px; border-top: 1px solid var(--line-2); }
.rules h3 { margin-bottom: 8px; font-size: var(--fs-h4); }
.rules p { font-size: .9375rem; }
.rules p + p, .rules p + ul { margin-top: 10px; }
.ids li { padding: 6px 0; border-top: 1px dashed var(--line); font-size: .9375rem; }
.ids li:last-child { border-bottom: 1px dashed var(--line); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 3px 10px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  font-size: var(--fs-note);
  line-height: 1.6;
}
.tags code { padding: 0; background: none; }

/* ---------- 07 安全边界 ---------- */

.gates {
  counter-reset: gate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px var(--gap);
}
.gates li { counter-increment: gate; padding-top: 20px; border-top: 1px solid var(--ink); }
.gates li::before {
  content: counter(gate, upper-latin);
  display: block;
  margin-bottom: 20px;
  color: var(--faint);
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
}
.gates h3 { margin-bottom: 10px; font-size: var(--fs-h3); }
.gates p { font-size: .9375rem; }
.gates .gate-out { border-top-color: var(--accent); }
.gates .gate-out::before { color: var(--accent); }

.fine { max-width: 44em; color: var(--muted); font-size: var(--fs-note); }

/* ---------- 08 风险与下一步 ---------- */

.risks li, .todo li { padding-block: 14px; border-top: 1px solid var(--line); font-size: .9375rem; }
.risks strong, .todo strong { display: block; margin-bottom: 2px; font-size: 1rem; }

.todo { counter-reset: todo; }
.todo li { position: relative; padding-left: 2.25rem; counter-increment: todo; }
.todo li::before {
  content: counter(todo);
  position: absolute;
  left: 0;
  top: 14px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: var(--fs-note);
  line-height: 1.75;
}
.pair section > h4 {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  font-size: var(--fs-note);
}
.pair section > h4 + p { margin-top: 6px; font-size: .9375rem; }

/* ---------- 页脚 ---------- */

.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  width: min(100% - 2 * var(--pad), var(--wrap));
  margin-inline: auto;
  padding-block: 32px 48px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: var(--fs-note);
}

/* ---------- 响应式 ---------- */

@media (max-width: 1100px) {
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .sec { display: block; }
  .sec > * + * { margin-top: 32px; }
  .sec > h3 { margin-top: 48px; margin-bottom: 0; }
  .sec > h3 + * { margin-top: 16px; }
  .sec-no { position: static; margin-bottom: 20px; }
  .sec-no + .sec-head { margin-top: 0; }
  .sec-no span { display: inline; margin: 0 10px 0 0; }

  .hero { display: block; }
  .hero-fig { max-width: 480px; margin-top: 56px; }
  .pair-code { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .site-head { gap: 20px; }
  .site-nav {
    gap: 22px;
    overflow-x: auto;
    padding-right: 24px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .site-nav::-webkit-scrollbar { display: none; }
}

@media (max-width: 760px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; border-bottom: 1px solid var(--line); }
  .facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 12px; border-top-color: var(--line); }
  .facts div:first-child { border-top-color: var(--ink); }
  .facts dd { margin-top: 0; text-align: right; }
  :not(pre) > code { white-space: normal; overflow-wrap: anywhere; }
  .terms, .keys, .parts, .options, .gates, .pair { grid-template-columns: minmax(0, 1fr); }
  .keys, .options, .gates, .pair { gap: 32px; }
  .keys .key-lead h4 { font-size: 1.25rem; }

  .arch-wide { display: none; }
  .arch-tall { display: block; }

  .route > li { grid-template-columns: minmax(0, 1fr); padding-block: 0; }
  .route > li > h3 { padding-top: 20px; }
  .route ol li { padding: 12px 0 20px 2.5rem; }
  .route ol li::before { top: 13px; }
  .route ol li:first-child { padding-top: 8px; }
  .route ol li:first-child::before { top: 9px; }

  .note { padding: 20px; }

  /* 表格在窄屏上按行堆叠：每行一块，列名作为小标签 */
  .stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .stack, .stack tbody, .stack tr, .stack th, .stack td { display: block; }
  .stack tr { padding-block: 16px; border-bottom: 1px solid var(--line); }
  .stack tbody tr:first-child { border-top: 1px solid var(--ink); }
  .stack tbody th, .stack td { padding: 0; border: 0; white-space: normal; }
  .stack td { margin-top: 10px; }
  .stack td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: var(--fs-label);
    letter-spacing: .04em;
  }
  .tbl-cli tbody th { width: auto; }
  .tbl-cli td { margin-top: 4px; }
  .tbl-cli td::before { content: none; }

  pre { padding: 16px; font-size: .75rem; }
}

@media (max-width: 640px) {
  .stages { grid-template-columns: minmax(0, 1fr); }
  .site-foot { flex-direction: column; }
}

/* ---------- 动效：仅在用户未要求减少动效时启用 ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .cta a, .site-nav a { transition: color .15s, border-color .15s; }
  .hero-fig .hot {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw .9s .3s cubic-bezier(.4, 0, .2, 1) forwards;
  }
  .hero-fig .hot ~ .hot { animation-delay: 1s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
