/* ============================================================
   裂缝 · The Cracks — 《置身钉内：AI正在撑破资本主义》
   Cinematic scrollytelling · OLED black · molten-gold seam light
   ============================================================ */

:root {
  --bg: #050505;
  --bg-warm: #0a0806;
  --ink: #e8e2d6;
  --ink-dim: #8a8478;
  --ink-faint: #4a463e;
  --gold: #ffb347;
  --gold-hot: #ff8c2e;
  --gold-deep: #c96b1e;
  --cold: #6b7888;
  --cold-dim: #3a4250;
  --hairline: rgba(232, 226, 214, 0.08);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --didone: "Bodoni Moda", "Didot", "Noto Serif SC", serif;
  --ease-cine: cubic-bezier(0.32, 0.72, 0, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

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

::selection { background: var(--gold-deep); color: #050505; }

/* ---------- fixed layers ---------- */

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

/* particle layer sits BEHIND all content — never over the text */
#fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  animation: grain-shift 0.7s steps(4) infinite;
}
@keyframes grain-shift {
  0% { background-position: 0 0; }
  25% { background-position: -52px 38px; }
  50% { background-position: 34px -61px; }
  75% { background-position: -27px -45px; }
  100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* scroll progress — a crack growing down the left edge */
.progress-seam {
  position: fixed;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  z-index: 45;
  pointer-events: none;
}
.progress-seam::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--gold-hot), var(--gold) 60%, transparent);
  transform-origin: top;
  transform: scaleY(var(--progress, 0));
  filter: drop-shadow(0 0 6px rgba(255, 140, 46, 0.8));
}

/* ---------- shared layout ---------- */

main { position: relative; z-index: 2; }

.chapter {
  position: relative;
  padding: clamp(7rem, 16vh, 12rem) clamp(1.25rem, 6vw, 6rem);
  max-width: 100%;
}

.frame {
  max-width: 1180px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-size: 11px;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  color: var(--gold);
  border: 1px solid rgba(255, 179, 71, 0.25);
  border-radius: 999px;
  padding: 0.5em 1.4em 0.5em 1.6em;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
  font-family: var(--sans);
  font-weight: 500;
  white-space: nowrap;
}
.eyebrow::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-hot);
  flex: none;
}

h2.ch-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.6rem, 7.5vw, 5.5rem);
  line-height: 1.18;
  letter-spacing: 0.04em;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.prose {
  max-width: 38em;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-dim);
  line-height: 2.1;
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--gold); font-style: normal; }
.prose p + p { margin-top: 1.6em; }

.reveal { opacity: 0; transform: translateY(60px); filter: blur(6px); will-change: transform, opacity, filter; }

/* vertical chapter marker — cinematic Chinese accent */
.ch-marker {
  position: absolute;
  top: clamp(7rem, 16vh, 12rem);
  right: clamp(1rem, 4vw, 4rem);
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.8em;
  color: var(--ink-faint);
  user-select: none;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 2rem 1.25rem;
}

#shell-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 6vh, 4rem) clamp(1rem, 5vw, 4rem);
  background: radial-gradient(ellipse 64% 56% at 50% 50%, rgba(5, 5, 5, 0.72) 28%, rgba(5, 5, 5, 0.3) 64%, transparent 100%);
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.6em;
  text-indent: 0.6em;
  color: var(--ink-dim);
  margin-bottom: 2.6rem;
  font-weight: 400;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(3.2rem, 11.5vw, 9.5rem);
  line-height: 1.16;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .hot {
  background: linear-gradient(180deg, #ffd9a0 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 28px rgba(255, 140, 46, 0.22));
}

.hero-sub {
  margin-top: 3.2rem;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  color: var(--ink-dim);
  letter-spacing: 0.18em;
  max-width: 34em;
  line-height: 2.2;
}

.scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
}
.scroll-hint::after {
  content: "";
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: hint-drop 2.2s var(--ease-cine) infinite;
}
@keyframes hint-drop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  70% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ============================================================
   CH1 · 坠落
   ============================================================ */

.fall-stage {
  text-align: center;
  margin: clamp(3rem, 8vh, 6rem) 0;
}

.fall-number {
  font-family: var(--didone);
  font-weight: 700;
  font-size: clamp(4.5rem, 16vw, 13rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.fall-label {
  margin-top: 1.2rem;
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--ink-dim);
}
.fall-strike {
  position: relative;
  display: inline-block;
}
.fall-strike .strike-line {
  position: absolute;
  left: -4%;
  top: 52%;
  width: 108%;
  height: clamp(3px, 0.5vw, 6px);
  background: var(--gold-hot);
  box-shadow: 0 0 22px rgba(255, 140, 46, 0.8);
  transform: scaleX(0);
  transform-origin: left;
}

.fall-verdict {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2.8rem);
  line-height: 1.6;
  margin-top: clamp(3rem, 9vh, 6rem);
  color: var(--ink);
}
.fall-verdict em { font-style: normal; color: var(--gold); }

.ledger {
  margin-top: clamp(4rem, 10vh, 7rem);
  border-top: 1px solid var(--hairline);
}
.ledger-row {
  display: grid;
  grid-template-columns: minmax(5.5rem, 0.28fr) 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.6rem, 3.5vh, 2.4rem) 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.ledger-key {
  font-family: var(--didone);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}
.ledger-val {
  color: var(--ink-dim);
  font-size: clamp(0.95rem, 1.25vw, 1.1rem);
  line-height: 2;
}
.ledger-val strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   CH2 · 数字（三块巨型统计）
   ============================================================ */

.stat-block {
  min-height: 92dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  position: relative;
}
.stat-block.flip .stat-main { order: 2; }
.stat-block.flip .stat-viz { order: 1; }

.stat-viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}
canvas.viz {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  display: block;
}
canvas.viz.tall { aspect-ratio: 4 / 5; max-width: 380px; }
.viz-note {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  text-align: center;
  line-height: 2.2;
}

.stat-figure {
  font-family: var(--didone);
  font-weight: 700;
  font-size: clamp(6rem, 22vw, 19rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  position: relative;
}
.stat-figure .unit {
  font-size: 0.38em;
  color: var(--gold);
  letter-spacing: 0;
}
.stat-caption {
  margin-top: 2.2rem;
  max-width: 30em;
  color: var(--ink-dim);
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  line-height: 2.1;
}
.stat-caption strong { color: var(--ink); }
.stat-source {
  margin-top: 1.4rem;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--ink-faint);
}

/* ============================================================
   CH3 · 分岔（split screen）
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(5, 5, 5, 0.55);
}
.split-divider {
  background: linear-gradient(to bottom, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  box-shadow: 0 0 16px rgba(255, 140, 46, 0.4);
}
.split-side {
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 4rem);
  min-height: 60dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
}
.split-side.org { color: var(--cold); }
.split-side.ind { color: var(--gold); }

.split-tag {
  font-size: 11px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
}
.split-side.org .split-tag { color: var(--cold-dim); }
.split-side.ind .split-tag { color: var(--gold-deep); }

.split-headline {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.4;
}
.split-side.org .split-headline { color: var(--cold); }
.split-side.ind .split-headline { color: var(--gold); }

.split-figure {
  font-family: var(--didone);
  font-size: clamp(3.4rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.split-side.org .split-figure { color: #525e6e; }
.split-side.ind .split-figure {
  background: linear-gradient(180deg, #ffe2b3, var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.split-note { font-size: clamp(0.85rem, 1.1vw, 1rem); line-height: 2; color: var(--ink-dim); }

.split-verdict {
  text-align: center;
  margin-top: clamp(4rem, 10vh, 7rem);
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.2vw, 3.2rem);
  line-height: 1.8;
}
.split-verdict .q { color: var(--ink-dim); display: block; font-size: 0.62em; letter-spacing: 0.3em; margin-bottom: 1.2rem; font-weight: 400; }
.split-verdict .a { color: var(--gold); }

/* ============================================================
   CH4 · 三个维度
   ============================================================ */

.dim {
  display: grid;
  grid-template-columns: minmax(4rem, 0.22fr) 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(3.5rem, 8vh, 6rem) 0;
  border-top: 1px solid var(--hairline);
}
.dim:last-of-type { border-bottom: 1px solid var(--hairline); }

.dim-index {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 30px rgba(255, 140, 46, 0.25);
}
.dim-name {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 1.6rem;
  letter-spacing: 0.06em;
}
.dim-vs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em 1.6em;
  margin: 1.8rem 0 2rem;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 700;
}
.dim-vs .ai { color: var(--gold); }
.dim-vs .vs { color: var(--ink-faint); font-family: var(--didone); font-style: italic; font-weight: 400; }
.dim-vs .cap { color: var(--cold); }

/* narrative chart figures */
.chart-block {
  margin: clamp(3rem, 7vh, 5rem) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
}
canvas.chart { display: block; width: 100%; }
canvas.chart.wide { aspect-ratio: 16 / 7; max-width: 900px; }
canvas.chart.med { aspect-ratio: 16 / 9; max-width: 620px; align-self: flex-start; }
canvas.chart.square { aspect-ratio: 1; max-width: 360px; }

.overflow-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin: clamp(3rem, 8vh, 5rem) 0;
}
.overflow-grid .chain { margin: 0; }
.spiral-block { margin: 0; }

/* pull quote inside a dimension */
.pull {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1.9;
  margin: clamp(2.5rem, 6vh, 4rem) 0;
  padding-left: clamp(1.2rem, 3vw, 2.2rem);
  border-left: 3px solid var(--gold);
  color: var(--ink);
  text-shadow: 0 0 40px rgba(255, 140, 46, 0.15);
}

/* hierarchy decay diagram — context density vs decision power */
.decay {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.2rem, 3.5vw, 2.5rem);
  align-items: stretch;
  margin: clamp(2.5rem, 6vh, 4rem) 0;
  max-width: 620px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: rgba(5, 5, 5, 0.5);
}
.decay-rows { display: flex; flex-direction: column; gap: 1.1rem; justify-content: space-between; }
.decay-row {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  gap: 1.2rem;
  align-items: center;
}
.decay-label {
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--ink-dim);
  text-align: right;
  white-space: nowrap;
}
.decay-row .dots { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.decay-row .dots i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 7px rgba(255, 140, 46, 0.55);
}
/* context density fades going UP the hierarchy */
.decay-row:nth-child(1) .dots i { opacity: 0.14; box-shadow: none; }
.decay-row:nth-child(2) .dots i { opacity: 0.26; box-shadow: none; }
.decay-row:nth-child(3) .dots i { opacity: 0.45; }
.decay-row:nth-child(4) .dots i { opacity: 0.72; }
.decay-row:nth-child(5) .dots i { opacity: 1; }

.decay-axis {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.decay-axis i { flex: 1; width: 2px; border-radius: 2px; }
.decay-axis.left i { background: linear-gradient(to bottom, var(--cold), rgba(58, 66, 80, 0.06)); }
.decay-axis.right i { background: linear-gradient(to top, var(--gold), rgba(255, 179, 71, 0.06)); box-shadow: 0 0 8px rgba(255, 140, 46, 0.25); }
.decay-axis span {
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.45em;
  color: var(--ink-dim);
}
.decay-axis.left span { color: var(--cold); }
.decay-axis.right span { color: var(--gold); }

.thesis {
  margin: clamp(5rem, 12vh, 8rem) auto 0;
  max-width: 30em;
  text-align: center;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.7rem, 4.4vw, 3.4rem);
  line-height: 1.9;
}
.thesis .dim-pair { display: block; }
.thesis .dim-pair .ai { color: var(--gold); }
.thesis .dim-pair .cap { color: var(--cold); }
.thesis .conclusion {
  display: block;
  margin-top: 2.5rem;
  color: var(--ink);
  font-size: 0.78em;
  font-weight: 700;
}

/* ============================================================
   CH5 · 溢出（正反馈链）
   ============================================================ */

.chain {
  margin: clamp(3rem, 8vh, 5rem) 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.chain-link {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
  position: relative;
  padding: 1.5rem 0;
}
.chain-link::before {
  content: "";
  position: absolute;
  left: calc(1.25rem - 0.5px);
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(255,179,71,0.35), rgba(255,179,71,0.08));
}
.chain-link:first-child::before { top: 50%; }
.chain-link:last-child::before { bottom: 50%; }
.chain-dot {
  width: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding-top: 0.55em;
}
.chain-dot i {
  display: block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(255, 140, 46, 0.7);
}
.chain-text {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.9;
  color: var(--ink);
}
.chain-text small {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  color: var(--ink-dim);
  margin-top: 0.5em;
}

.chain-coda {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.8vw, 2.2rem);
  font-weight: 900;
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.08em;
}

/* ============================================================
   FINALE · 壳
   ============================================================ */

.finale {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 6rem 1.5rem;
}
.finale-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 45% at 50% 55%, rgba(255, 140, 46, 0.13), transparent 70%);
  opacity: 0;
}

/* god rays — light shafts leaking through the broken shell */
.finale-rays {
  position: absolute;
  inset: -20%;
  opacity: 0;
  pointer-events: none;
  background:
    conic-gradient(from 178deg at 50% 58%,
      transparent 0deg, rgba(255, 179, 71, 0.07) 4deg, transparent 9deg,
      transparent 38deg, rgba(255, 140, 46, 0.05) 43deg, transparent 49deg,
      transparent 96deg, rgba(255, 214, 156, 0.06) 101deg, transparent 107deg,
      transparent 156deg, rgba(255, 179, 71, 0.05) 161deg, transparent 168deg,
      transparent 214deg, rgba(255, 140, 46, 0.06) 220deg, transparent 227deg,
      transparent 281deg, rgba(255, 214, 156, 0.05) 287deg, transparent 294deg,
      transparent 360deg);
  mask-image: radial-gradient(ellipse 55% 50% at 50% 58%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 55% 50% at 50% 58%, black 20%, transparent 75%);
  animation: rays-turn 90s linear infinite;
}
@keyframes rays-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .finale-rays { animation: none; } }
.finale-text {
  position: relative;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.9rem, 5.2vw, 4.2rem);
  line-height: 2;
  max-width: 22em;
}
.finale-text .soft { color: var(--ink-dim); font-weight: 700; font-size: 0.6em; display: block; margin-bottom: 2.2rem; letter-spacing: 0.25em; }
.finale-text .hot {
  background: linear-gradient(180deg, #ffe8c4, var(--gold) 55%, var(--gold-hot));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 36px rgba(255, 140, 46, 0.3));
}
.finale-text .never {
  display: block;
  margin-top: 2.4rem;
  font-size: 0.55em;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--ink);
}

/* ============================================================
   全文阅读区
   ============================================================ */

.article {
  position: relative;
  z-index: 3;
  background: linear-gradient(to bottom, transparent, var(--bg-warm) 6%, var(--bg-warm));
  padding: clamp(6rem, 14vh, 10rem) clamp(1.25rem, 6vw, 4rem) clamp(5rem, 10vh, 8rem);
}
.article-inner {
  max-width: 42rem;
  margin: 0 auto;
}
.article-head {
  text-align: center;
  margin-bottom: clamp(4rem, 9vh, 6rem);
}
.article-head .rule {
  width: 64px; height: 1px;
  margin: 0 auto 2.8rem;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(255, 140, 46, 0.5);
}
.article-head h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: 0.08em;
  line-height: 1.6;
}
.article-head .meta {
  margin-top: 1.6rem;
  font-size: 12px;
  letter-spacing: 0.35em;
  color: var(--ink-faint);
}

.article-body {
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.35vw, 1.15rem);
  color: #c9c2b4;
  line-height: 2.3;
}
.article-body p {
  text-indent: 2em;
  margin-bottom: 0.4em;
}
.article-body p strong { color: var(--ink); font-weight: 700; }
.article-body p em { color: var(--gold); font-style: normal; }
.article-body hr {
  border: none;
  text-align: center;
  margin: 3.2em 0;
}
.article-body hr::after {
  content: "✦ ✦ ✦";
  color: var(--gold-deep);
  font-size: 0.8rem;
  letter-spacing: 1.6em;
  text-indent: 1.6em;
}
.article-body h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25em;
  color: var(--ink);
  margin: 2.4em 0 1em;
  text-indent: 0;
}

/* ---------- footer ---------- */

footer {
  position: relative;
  z-index: 3;
  background: var(--bg-warm);
  border-top: 1px solid var(--hairline);
  padding: 3.5rem 1.5rem 4rem;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  line-height: 2.6;
}
footer .seam {
  width: 120px; height: 1px;
  margin: 0 auto 2.4rem;
  background: linear-gradient(to right, transparent, var(--gold-deep), transparent);
}

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 768px) {
  .chapter { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero-eyebrow { letter-spacing: 0.3em; text-indent: 0.3em; font-size: 11px; }
  .hero h1 { font-size: clamp(2.3rem, 9.6vw, 4rem); letter-spacing: 0.04em; }
  .hero-content { padding-left: 0.5rem; padding-right: 0.5rem; }
  .ch-marker { display: none; }
  .split { grid-template-columns: 1fr; }
  .split-divider { height: 1px; width: 100%; background: linear-gradient(to right, transparent, var(--gold) 30%, var(--gold) 70%, transparent); }
  .split-side { min-height: unset; gap: 2rem; }
  .stat-block { min-height: unset; grid-template-columns: 1fr; gap: 2.5rem; padding: 3.5rem 0; }
  .stat-block.flip .stat-main { order: 1; }
  .stat-block.flip .stat-viz { order: 2; }
  canvas.viz { max-width: 320px; }
  .decay { grid-template-columns: auto 1fr auto; gap: 0.9rem; padding: 1.2rem; }
  .decay-row { grid-template-columns: 3.5em 1fr; gap: 0.7rem; }
  .decay-row .dots { gap: 5px; }
  .decay-row .dots i { width: 6px; height: 6px; }
  .overflow-grid { grid-template-columns: 1fr; gap: 3rem; }
  canvas.chart.wide { aspect-ratio: 16 / 9; }
  canvas.chart.med { max-width: 100%; }
  .ledger-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .dim { grid-template-columns: 1fr; gap: 1rem; }
  .progress-seam { width: 1.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero-seam, .scroll-hint::after { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
