/* ============================================================
   IH-01 — 研发展示页
   纯静态，无外部依赖。设计变量集中在 :root。
   ============================================================ */

:root {
  --bg: #07090c;
  --bg-soft: #0a0e13;
  --panel: #0d131a;
  --panel-2: #0f161e;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.28);
  --fg: #e9eef5;
  --muted: #94a2b3;
  --dim: #64748b;
  --accent: #6ee7d2;
  --accent-dim: rgba(110, 231, 210, 0.12);
  --warm: #ffb86b;
  --danger: #ff7a7a;
  --ok: #86efac;

  --max: 1180px;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 全局网格底纹 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 35%, transparent 78%);
  pointer-events: none;
}

::selection { background: rgba(110, 231, 210, 0.28); color: #fff; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 4px;
  padding: 0.08em 0.36em;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }

p { margin: 0; }

.wrap {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--accent);
  color: #04120f;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

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

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(7, 9, 12, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--accent);
  background: linear-gradient(160deg, rgba(110, 231, 210, 0.16), rgba(110, 231, 210, 0.02));
  border: 1px solid rgba(110, 231, 210, 0.35);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 17px; letter-spacing: 0.06em; }
.brand-text small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--dim);
}

.site-nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.site-nav a:hover { color: var(--fg); background: rgba(148, 163, 184, 0.08); }

.site-nav a[aria-current="true"] { color: var(--fg); }
.site-nav a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 16px;
  height: 2px;
  margin-left: -8px;
  border-radius: 2px;
  background: var(--accent);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 7px 14px;
  font-size: 12.5px;
  color: var(--warm);
  text-decoration: none;
  border: 1px solid rgba(255, 184, 107, 0.32);
  background: rgba(255, 184, 107, 0.07);
  border-radius: 999px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.status-pill:hover { background: rgba(255, 184, 107, 0.13); border-color: rgba(255, 184, 107, 0.5); }

.status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 0 rgba(255, 184, 107, 0.5);
  animation: pulse 2.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 184, 107, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(255, 184, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 184, 107, 0); }
}

/* 移动端目录（details，无需 JS） */
.mobile-nav {
  display: none;
  position: relative;
  margin-left: auto;
}

.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  padding: 7px 15px;
  font-size: 13px;
  color: var(--fg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.06);
  user-select: none;
}

.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary:hover { border-color: rgba(148, 163, 184, 0.5); }

.mobile-nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 190px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(10, 14, 19, 0.97);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mobile-nav-panel a {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
}

.mobile-nav-panel a:hover,
.mobile-nav-panel a:focus-visible {
  background: rgba(148, 163, 184, 0.09);
  color: var(--fg);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: 150px 0 64px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  background:
    radial-gradient(ellipse 45% 60% at 22% 32%, rgba(110, 231, 210, 0.13), transparent 70%),
    radial-gradient(ellipse 40% 55% at 80% 18%, rgba(96, 165, 250, 0.08), transparent 70%);
  pointer-events: none;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(148, 163, 184, 0.07) 50%, transparent calc(50% + 1px));
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.eyebrow-line {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.hero h1 {
  margin: 22px 0 24px;
  font-size: clamp(2.5rem, 5.4vw, 4.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.14em;
  background: linear-gradient(90deg, rgba(110, 231, 210, 0.4), transparent 92%);
  border-radius: 2px;
}

.lede {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
}

.hero-chips li {
  padding: 6px 13px;
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.045);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  color: #04120f;
  background: var(--accent);
  box-shadow: 0 8px 28px -12px rgba(110, 231, 210, 0.65);
}
.btn-primary:hover { background: #8af0de; }

.btn-ghost {
  color: var(--fg);
  border: 1px solid var(--line-strong);
  background: rgba(148, 163, 184, 0.04);
}
.btn-ghost:hover { border-color: rgba(148, 163, 184, 0.5); background: rgba(148, 163, 184, 0.09); }

/* Hero figure */
.hero-figure { margin: 0; }

.hero-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: var(--panel);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(0.94) contrast(1.02);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 12, 0.05) 0%, transparent 45%, rgba(7, 9, 12, 0.55) 100%);
  pointer-events: none;
}

.frame-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(110, 231, 210, 0.75);
  z-index: 2;
  pointer-events: none;
}
.frame-corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.frame-corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.frame-corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.frame-corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.hero-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.hero-figure .fig-note { color: rgba(148, 163, 184, 0.6); }

/* ============================================================
   Metrics
   ============================================================ */

.metrics {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.035), transparent);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.metric {
  padding: 26px 22px;
  border-left: 1px solid var(--line);
}
.metric:first-child { border-left: 0; padding-left: 0; }

.metric-value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1.1;
}

.metric-value small {
  margin-left: 3px;
  font-size: 0.52em;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.metric-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.5;
}

/* ============================================================
   Section shell
   ============================================================ */

section { padding: 96px 0; }

[id] { scroll-margin-top: 88px; }

.section-head { max-width: 760px; margin-bottom: 56px; }

.section-head h2 {
  margin: 18px 0 20px;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section-sub {
  max-width: 640px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
}

/* ============================================================
   Lines (three sub-projects)
   ============================================================ */

.lines { position: relative; }

.line {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.line:first-of-type { border-top: 0; padding-top: 0; }

.line-head {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin-bottom: 38px;
}

.line-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.14em;
  padding-top: 4px;
}

.line-head > div {
  flex: 1 1 260px;
  min-width: 0;
}

.line-head h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
}

.line-tag {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.line-tag-badge {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

.line-body {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: start;
}

.line-text > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 18px;
}

.line-text > p:last-of-type { margin-bottom: 0; }

/* Spec grid */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 26px 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.spec-grid > div {
  padding: 14px 18px;
  background: var(--bg-soft);
}

.spec-grid dt {
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.spec-grid dd {
  margin: 5px 0 0;
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--fg);
}

/* Callouts */
.callout {
  margin: 24px 0;
  padding: 20px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: linear-gradient(120deg, rgba(110, 231, 210, 0.07), rgba(110, 231, 210, 0.01));
}

.callout-warn {
  border-left-color: var(--warm);
  background: linear-gradient(120deg, rgba(255, 184, 107, 0.08), rgba(255, 184, 107, 0.01));
}

.callout-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.callout-warn .callout-title { color: var(--warm); }

.callout p:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.callout strong { color: var(--fg); font-weight: 600; }

.fine-print {
  margin-top: 20px;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--dim);
}

/* Visual column */
.line-visual { display: flex; flex-direction: column; gap: 20px; }

.sim-figure, .board-figure { margin: 0; }

.sim-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.sim-item {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0d11;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.sim-item:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.sim-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 38%;
  display: block;
}

.sim-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #d6dee8;
  background: rgba(7, 9, 12, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 4px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sim-figure figcaption,
.board-figure figcaption {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--dim);
}

.sim-figure figcaption::before,
.board-figure figcaption::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
}

/* Board figure on paper */
.board-paper {
  padding: 16px;
  border-radius: var(--r-md);
  background: #f3f0e9;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.06);
}

.board-paper img {
  width: 100%;
  border-radius: 4px;
  mix-blend-mode: multiply;
}

/* Rule list */
.rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.rule-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-soft);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.rule-list li span {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  padding-top: 2px;
}

.rule-list p { margin: 0; }

.rule-list strong { color: var(--fg); font-weight: 600; }

/* Mini facts */
.mini-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.mini-facts > div {
  padding: 14px 16px;
  background: var(--bg-soft);
}

.mini-facts span {
  display: block;
  font-size: 11px;
  color: var(--dim);
}

.mini-facts strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}

/* v0.12 stream card */
.stream-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(110, 231, 210, 0.06), rgba(148, 163, 184, 0.02));
  padding: 20px;
}

.stream-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--dim);
  margin-bottom: 18px;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}

.live-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

.stream-track {
  display: flex;
  gap: 4px;
  height: 58px;
  margin-bottom: 16px;
}

.stream-phase {
  flex: 0 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  border-radius: 6px;
  border: 1px solid rgba(110, 231, 210, 0.3);
  background: rgba(110, 231, 210, 0.1);
  overflow: hidden;
}

.len-1000 { flex-grow: 1000; }
.len-1500 { flex-grow: 1500; }
.len-3000 { flex-grow: 3000; }
.len-4000 { flex-grow: 4000; }

.stream-phase.is-shift {
  border-color: rgba(255, 184, 107, 0.35);
  background: rgba(255, 184, 107, 0.1);
}

.stream-phase span {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}

.stream-phase small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
}

.stream-note {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--dim);
}

/* ============================================================
   Architecture
   ============================================================ */

.arch {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(110, 231, 210, 0.05), transparent 70%),
    var(--bg-soft);
  border-block: 1px solid var(--line);
}

.arch-figure { margin: 0; }

.arch-canvas {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    rgba(7, 9, 12, 0.6);
  background-size: 34px 34px, 34px 34px, auto;
  overflow-x: auto;
}

.arch-svg {
  display: block;
  width: 100%;
  min-width: 780px;
  height: auto;
  font-family: var(--font-sans);
}

.arch-figure figcaption {
  margin-top: 14px;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.7;
}

/* SVG text defaults */
.arch-svg text { fill: var(--fg); }

.dg-zone {
  fill: rgba(110, 231, 210, 0.025);
  stroke: rgba(110, 231, 210, 0.22);
  stroke-dasharray: 7 7;
}

.dg-zone-green {
  fill: rgba(134, 239, 172, 0.02);
  stroke: rgba(134, 239, 172, 0.18);
}

.dg-zone-label {
  text-anchor: start;
  fill: var(--accent);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
}

.dg-zone-label-green { fill: var(--ok); }

.dg-node rect {
  fill: rgba(148, 163, 184, 0.055);
  stroke: rgba(148, 163, 184, 0.26);
  stroke-width: 1;
}

.dg-node text { text-anchor: middle; }

.dg-title { font-size: 15px; font-weight: 600; }
.dg-title-lg { font-size: 18px; font-weight: 600; fill: #fff; }
.dg-sub { font-size: 12.5px; fill: var(--muted); }

.dg-node-hot rect {
  fill: rgba(110, 231, 210, 0.09);
  stroke: rgba(110, 231, 210, 0.55);
}

.dg-node-green rect {
  fill: rgba(134, 239, 172, 0.05);
  stroke: rgba(134, 239, 172, 0.26);
}

.dg-link {
  fill: none;
  stroke: rgba(148, 163, 184, 0.42);
  stroke-width: 1.4;
}

.dg-link-dash { stroke-dasharray: 4 5; }

.dg-arrowhead { fill: rgba(148, 163, 184, 0.75); }
.dg-arrowhead-warm { fill: var(--warm); }

.dg-band rect {
  fill: rgba(255, 184, 107, 0.06);
  stroke: rgba(255, 184, 107, 0.42);
}

.dg-band-title {
  text-anchor: start;
  fill: var(--warm);
  font-size: 15px;
  font-weight: 600;
}

.dg-band-sub {
  text-anchor: start;
  fill: rgba(255, 184, 107, 0.72);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.dg-note {
  fill: var(--dim);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* Arch notes */
.arch-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}

.arch-notes h3 {
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--fg);
}

.arch-notes h3::before {
  content: "▸ ";
  color: var(--accent);
}

.arch-notes p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ============================================================
   Roadmap
   ============================================================ */

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.roadmap-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 15px;
  letter-spacing: 0;
}

.roadmap-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(110, 231, 210, 0.6);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 1px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 26px 18px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
}

.timeline li.done::before { background: var(--accent); border-color: var(--accent); }
.timeline li.doing::before {
  background: var(--warm);
  border-color: var(--warm);
  box-shadow: 0 0 0 4px rgba(255, 184, 107, 0.12);
}

.timeline .when {
  display: inline-block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
}

.timeline li.doing .when { color: var(--warm); }

.timeline strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.timeline small {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--dim);
}

/* ============================================================
   Status / issues
   ============================================================ */

.status {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.issue {
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  border-top: 2px solid var(--line-strong);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.issue:hover { transform: translateY(-3px); border-color: var(--line-strong); }

.issue-red { border-top-color: var(--danger); }
.issue-amber { border-top-color: var(--warm); }
.issue-slate { border-top-color: var(--dim); }

.issue-level {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.issue-red .issue-level { color: var(--danger); }
.issue-amber .issue-level { color: var(--warm); }

.issue h3 { margin: 10px 0 10px; font-size: 17px; letter-spacing: -0.01em; }

.issue p { font-size: 13.5px; line-height: 1.8; color: var(--muted); }

.status-note {
  margin-top: 42px;
  padding: 24px 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
}

.status-note p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.status-note strong { color: var(--fg); }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
  background: #05070a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 44px;
}

.footer-brand strong {
  font-size: 20px;
  letter-spacing: 0.06em;
}

.footer-brand p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.footer-brand .footer-fine {
  font-size: 12px;
  color: var(--dim);
  max-width: 300px;
  line-height: 1.7;
}

.site-footer h4 {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
}

.footer-index ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 20px;
}

.footer-index li {
  font-size: 12.5px;
  line-height: 2;
  color: var(--muted);
}

.footer-meta p {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--dim);
}

.footer-updated {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px !important;
  color: var(--dim);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--dim);
}

/* ============================================================
   Reveal animation
   ============================================================ */

.reveal {
  /* 默认可见：没有 JS 时内容不会消失。命中后再播放入场动画。 */
}

.reveal.in {
  animation: reveal-rise 0.7s var(--ease) both;
}

@keyframes reveal-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1080px) {
  .hero-inner { gap: 40px; }
  .line-body { gap: 40px; }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .metric:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
  .metric { padding: 22px 20px; border-top: 1px solid var(--line); }
  .metric:nth-child(-n + 3) { border-top: 0; }
  .roadmap-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .mobile-nav { display: block; }
  .hero { padding-top: 122px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-figure { order: -1; max-width: 620px; }
  .line-body { grid-template-columns: 1fr; gap: 32px; }
  .line-head { flex-wrap: wrap; }
  .line-tag-badge { margin-left: 0; }
  .arch-notes { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: 1 / -1; }
  .issue-grid { grid-template-columns: 1fr; }
  .roadmap-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 32px, var(--max)); }
  section { padding: 68px 0; }
  .header-inner { height: 60px; }
  .status-pill { display: none; }
  .hero { padding-top: 104px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(2.15rem, 9vw, 2.9rem); }
  .lede { font-size: 15.5px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric { padding: 18px 16px; }
  .metric:nth-child(3n + 1) { padding-left: 16px; }
  .metric:nth-child(odd) { border-left: 0; }
  .metric:nth-child(-n + 4) { border-top: 0; }
  .metric:nth-child(2) { border-left: 1px solid var(--line); }
  .line { padding: 44px 0; }
  .line-head { gap: 14px; }
  .spec-grid { grid-template-columns: 1fr; }
  .sim-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .sim-grid img { aspect-ratio: 4 / 5; }
  .mini-facts { grid-template-columns: 1fr; }
  .hero-figure figcaption { flex-direction: column; gap: 4px; }
  .arch-canvas { padding: 10px; }
  .arch-svg { min-width: 720px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .stream-track { height: 52px; }
}

/* ============================================================
   Motion / print / forced colors
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal.in { animation: none; }
}

@media print {
  body::before, .site-header, .hero-grid-lines, .status-pill { display: none; }
  body { background: #fff; color: #111; }
  .hero, .metrics, .arch, .status, .site-footer { background: #fff; }
  .issue, .callout, .spec-grid > div, .stream-card { background: #f6f6f6; }
}

/* ============================================================
   404
   ============================================================ */

.notfound-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.notfound {
  max-width: 560px;
  text-align: left;
}

.notfound h1 {
  margin: 20px 0 16px;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
}

.notfound-sub {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.8;
}

/* ============================================================
   Docs（/docs/*.html）
   ============================================================ */

.doc-page #doc-main {
  padding: 104px 0 88px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--fg); }

.doc-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.doc-sidebar {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 6px;
}

.doc-sidebar-title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.doc-toc { display: flex; flex-direction: column; }

.doc-toc a {
  display: block;
  padding: 5px 10px;
  border-left: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.doc-toc a:hover { color: var(--fg); border-left-color: var(--line-strong); }

.doc-toc a[aria-current="true"] {
  color: var(--accent);
  border-left-color: var(--accent);
  background: linear-gradient(90deg, rgba(110, 231, 210, 0.07), transparent 80%);
}

.doc-toc .toc-l3 { padding-left: 22px; font-size: 11.5px; }

.doc-sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.doc-sidebar-foot a { color: var(--muted); text-decoration: none; }
.doc-sidebar-foot a:hover { color: var(--accent); }

/* 文档头 */
.doc-head h1 {
  margin: 16px 0 16px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--dim);
}

.doc-meta span { position: relative; }

.doc-notice {
  margin: 18px 0 0;
  padding: 12px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--dim);
}

.doc-notice code { font-size: 0.92em; }

.doc-toc-mobile { display: none; }

.doc-toc-mobile {
  margin: 22px 0 6px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.03);
}

.doc-toc-mobile summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--accent);
  list-style: none;
}

.doc-toc-mobile summary::-webkit-details-marker { display: none; }

.doc-toc-mobile nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 12px;
}

.doc-toc-mobile a {
  padding: 4px 0;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

/* 正文 */
.doc-body {
  max-width: 820px;
  font-size: 15px;
  line-height: 1.9;
  color: #c3cdd9;
}

.doc-body > *:first-child { margin-top: 0; }

.doc-body h2 {
  margin: 56px 0 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 1.38rem;
  color: var(--fg);
  letter-spacing: -0.015em;
  scroll-margin-top: 92px;
}

.doc-body h2:first-of-type {
  margin-top: 40px;
  padding-top: 0;
  border-top: 0;
}

.doc-body h3 {
  margin: 34px 0 12px;
  font-size: 1.08rem;
  color: var(--fg);
  scroll-margin-top: 92px;
}

.doc-body h4 {
  margin: 26px 0 10px;
  font-size: 0.98rem;
  color: var(--fg);
}

.doc-body p { margin: 0 0 16px; }
.doc-body ul,
.doc-body ol { margin: 0 0 18px; padding-left: 24px; }
.doc-body li { margin: 5px 0; }
.doc-body li::marker { color: var(--accent); }
.doc-body strong { color: var(--fg); font-weight: 600; }
.doc-body em { color: var(--fg); }

.doc-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(110, 231, 210, 0.35);
}
.doc-body a:hover { border-bottom-color: var(--accent); }

.doc-body .doc-ref {
  color: var(--muted);
  border-bottom: 1px dotted rgba(148, 163, 184, 0.45);
  cursor: help;
}

.doc-body code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 4px;
  padding: 0.08em 0.36em;
}

.doc-body pre {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #070b10;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.65;
  color: #a9b7c7;
}

.doc-body pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.doc-body blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, rgba(110, 231, 210, 0.06), transparent 92%);
  color: var(--muted);
}

.doc-body blockquote p:last-child { margin-bottom: 0; }

.doc-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 44px 0;
}

.doc-body details {
  margin: 18px 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.03);
}

.doc-body details summary {
  cursor: pointer;
  font-size: 13.5px;
  color: var(--accent);
  list-style: none;
}

.doc-body details summary::-webkit-details-marker { display: none; }
.doc-body details[open] summary { margin-bottom: 12px; }

/* 表格 */
.table-wrap {
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
}

.doc-body .table-wrap table {
  margin: 0;
  min-width: 520px;
}

.doc-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  line-height: 1.7;
}

.doc-body th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--fg);
  background: rgba(148, 163, 184, 0.07);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.doc-body td {
  padding: 10px 14px;
  color: var(--muted);
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.doc-body tbody tr:first-child td { border-top: 0; }
.doc-body tbody tr:hover td { background: rgba(148, 163, 184, 0.025); }

/* 上下篇 */
.doc-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.pager-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  text-decoration: none;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.pager-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.pager-card span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.pager-card strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}

.pager-next { text-align: right; }
.pager-empty { display: block; }

.site-footer-doc { padding: 30px 0; }
.site-footer-doc .footer-bottom { border-top: 0; padding-top: 0; }
.site-footer-doc a { color: var(--muted); text-decoration: none; }
.site-footer-doc a:hover { color: var(--accent); }

@media (max-width: 1000px) {
  .doc-layout { grid-template-columns: 1fr; gap: 26px; }
  .doc-sidebar { display: none; }
  .doc-toc-mobile { display: block; }
  .doc-page #doc-main { padding-top: 92px; }
}

@media (max-width: 640px) {
  .doc-body { font-size: 14.5px; }
  .doc-body h2 { font-size: 1.25rem; margin-top: 44px; }
  .doc-pager { grid-template-columns: 1fr; }
  .pager-next { text-align: left; }
  .doc-meta { gap: 4px 12px; }
  .doc-head h1 { font-size: 1.55rem; }
}

/* ============================================================
   子页面（body / compute / model）
   ============================================================ */

.page-hero {
  position: relative;
  padding: 142px 0 48px;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 520px;
  background:
    radial-gradient(ellipse 42% 58% at 18% 30%, rgba(110, 231, 210, 0.1), transparent 70%),
    radial-gradient(ellipse 38% 50% at 82% 12%, rgba(96, 165, 250, 0.06), transparent 70%);
  pointer-events: none;
}

.page-hero .wrap { position: relative; }

.page-hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(2.05rem, 4.2vw, 3.3rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.page-hero .lede { max-width: 700px; }

.page-hero .hero-chips { margin: 26px 0 0; }

.page-hero .hero-actions { margin-top: 30px; }

.page-stats {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.03), transparent);
}

.page-stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 24px 22px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; padding-left: 0; }

.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1.15;
}

.stat-value small {
  margin-left: 3px;
  font-size: 0.5em;
  color: var(--accent);
}

.stat-label {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  color: var(--dim);
}

.page-section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}

.page-section .section-head { margin-bottom: 38px; }

.page-section .section-head h2 {
  margin: 14px 0 14px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.25;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.grid-2-wide { grid-template-columns: 1.05fr 0.95fr; }

.panel {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}

.panel + .panel { margin-top: 16px; }

.panel-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
}

.panel h3 { font-size: 15px; margin-bottom: 12px; }

.panel p { font-size: 13.5px; line-height: 1.8; color: var(--muted); }
.panel p + p { margin-top: 10px; }

.table-wrap .table { margin: 0; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.8px;
  line-height: 1.7;
}

.table th {
  padding: 9px 13px;
  text-align: left;
  font-weight: 600;
  color: var(--fg);
  background: rgba(148, 163, 184, 0.06);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.table td {
  padding: 9px 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.table tbody tr:first-child td { border-top: 0; }
.table tbody tr:hover td { background: rgba(148, 163, 184, 0.025); }

.table .num {
  font-family: var(--font-mono);
  color: var(--fg);
  white-space: nowrap;
}

.table .good { color: var(--accent); }
.table .warn { color: var(--warm); }
.table .bad { color: var(--danger); }

/* 相关文档卡片 */
.related-docs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.doc-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  text-decoration: none;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.doc-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.doc-card .doc-card-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.doc-card strong {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.45;
}

.doc-card p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--dim);
}

/* 首页三条线的“详情”入口 */
.line-more-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.line-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid rgba(110, 231, 210, 0.32);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--accent);
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.line-more:hover {
  background: rgba(110, 231, 210, 0.08);
  border-color: var(--accent);
}

.line-more span { transition: transform 0.2s var(--ease); }
.line-more:hover span { transform: translateX(3px); }

/* 子页面 prev/next */
.page-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 30px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1080px) {
  .page-stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 20px 18px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 18px; }
  .stat:nth-child(-n + 2) { border-top: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(1),
  .stat:nth-child(2) { border-top: 0; }
}

@media (max-width: 900px) {
  .grid-2,
  .grid-2-wide { grid-template-columns: 1fr; gap: 28px; }
  .related-docs { grid-template-columns: 1fr 1fr; }
  .page-hero { padding-top: 122px; }
}

@media (max-width: 640px) {
  .page-hero { padding-top: 104px; padding-bottom: 36px; }
  .page-hero h1 { font-size: clamp(1.75rem, 8vw, 2.4rem); }
  .page-section { padding: 52px 0; }
  .page-stats .wrap { grid-template-columns: 1fr 1fr; }
  .related-docs { grid-template-columns: 1fr; }
  .page-pager { grid-template-columns: 1fr; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.doc-card.static:hover {
  transform: none;
  border-color: var(--line);
}


/* 文档表格列对齐（替代内联 style，兼容 CSP） */
.doc-body .ta-right { text-align: right; }
.doc-body .ta-center { text-align: center; }

/* ============================================================
   子页面章节导航（sticky）
   ============================================================ */

.page-subnav {
  position: sticky;
  top: 68px;
  z-index: 40;
  background: rgba(7, 9, 12, 0.82);
  border-block: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.page-subnav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 46px;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-subnav-inner::-webkit-scrollbar { display: none; }

.page-subnav-label {
  flex: 0 0 auto;
  margin-right: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.page-subnav a {
  flex: 0 0 auto;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.page-subnav a:hover {
  color: var(--fg);
  background: rgba(148, 163, 184, 0.08);
}

.page-subnav a[aria-current="true"] {
  color: var(--accent);
  background: rgba(110, 231, 210, 0.1);
}

.page-section { scroll-margin-top: 124px; }

@media (max-width: 640px) {
  .page-subnav { top: 60px; }
  .page-subnav-inner { height: 42px; }
  .page-subnav a { font-size: 12.5px; padding: 5px 10px; }
  .page-section { scroll-margin-top: 112px; }
}
