:root {
  --paper: #f2efe7;
  --paper-2: #e8e2d6;
  --surface: #fffdf8;
  --surface-2: #f8f4eb;
  --ink: #17211f;
  --muted: #5d6a66;
  --line: #cbc4b6;
  --line-dark: #9ea8a3;
  --night: #142b29;
  --night-2: #091918;
  --night-3: #203a37;
  --teal: #0a746d;
  --teal-2: #18a097;
  --teal-soft: #d7ebe6;
  --coral: #a84130;
  --coral-2: #d9684e;
  --coral-soft: #f2ddd7;
  --gold: #84621d;
  --gold-soft: #eee4c9;
  --blue: #315e81;
  --blue-soft: #dfe9f1;
  --focus: #0969da;
  --rail: 284px;
  --reading: 66ch;
  --wide: 1180px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-1: 0 14px 42px rgb(20 43 41 / 0.08);
  --shadow-2: 0 24px 80px rgb(7 22 20 / 0.2);
  --font-sans: "Noto Sans CJK SC", "Source Han Sans SC", "PingFang SC", system-ui, -apple-system, sans-serif;
  --font-serif: "Iowan Old Style", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 6%, rgb(10 116 109 / 0.085), transparent 28rem),
    repeating-linear-gradient(90deg, transparent 0 71px, rgb(23 33 31 / 0.022) 72px),
    var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open { overflow: hidden; }

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover { color: var(--coral); }

button, input, summary { font: inherit; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

img { display: block; max-width: 100%; }
.no-break { white-space: nowrap; }

code {
  padding: 0.12em 0.32em;
  color: #154e49;
  background: var(--teal-soft);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.skip {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--focus);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 120ms ease;
}

.skip:focus { transform: none; }

.progress {
  position: fixed;
  z-index: 110;
  inset: 0 0 auto var(--rail);
  height: 4px;
  background: transparent;
}

.progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--coral-2), #f6ab79);
}

.rail {
  position: fixed;
  z-index: 100;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--rail);
  padding: 34px 27px 26px;
  flex-direction: column;
  color: white;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.03), transparent 25%),
    linear-gradient(180deg, var(--night), var(--night-2));
  border-right: 1px solid rgb(255 255 255 / 0.08);
}

.brand {
  color: white;
  text-decoration: none;
}

.brand:hover { color: white; }

.brand span,
.kicker,
.eyebrow,
.chapter-id,
.evidence-meta,
.toolbar-label,
.evidence-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.115em;
  line-height: 1.5;
  text-transform: uppercase;
}

.brand span { color: rgb(255 255 255 / 0.48); }

.brand strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.rail-links {
  display: grid;
  gap: 2px;
  margin: 42px 0 auto;
}

.rail-links a {
  display: flex;
  min-height: 42px;
  padding: 8px 11px;
  align-items: center;
  color: rgb(255 255 255 / 0.64);
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  text-decoration: none;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.rail-links a:hover { color: white; background: rgb(255 255 255 / 0.05); }

.rail-links a span {
  display: inline-block;
  width: 2.45rem;
  flex: 0 0 auto;
  color: rgb(255 255 255 / 0.32);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.rail-links a.active {
  color: white;
  background: rgb(255 255 255 / 0.075);
  border-color: var(--coral-2);
}

.rail-links a.active span { color: var(--coral-2); }

.rail-meta {
  margin: 28px 0 0;
  color: rgb(255 255 255 / 0.38);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.75;
}

.nav-toggle { display: none; }

main { margin-left: var(--rail); }

.wide {
  width: min(calc(100% - 80px), var(--wide));
  margin-inline: auto;
}

.reading {
  width: min(calc(100% - 40px), var(--reading));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 80% 10%, rgb(24 160 151 / 0.28), transparent 34rem),
    linear-gradient(118deg, var(--night-2), var(--night) 62%, #173b37);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background:
    linear-gradient(90deg, transparent 49.8%, rgb(255 255 255 / 0.08) 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, rgb(255 255 255 / 0.06) 50%, transparent 50.2%);
  background-size: 96px 96px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 92px 72px;
}

.kicker,
.chapter-id,
.evidence-meta { color: var(--coral-2); }

.hero h1,
.chapter h2,
.verdict p,
.lead,
blockquote,
.strategy-statement blockquote {
  font-family: var(--font-serif);
}

.hero h1 {
  max-width: 20ch;
  margin: 20px 0 28px;
  font-size: clamp(3.6rem, 7.1vw, 7.8rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero h1 em {
  color: #79d1c9;
  font-style: normal;
}

.deck {
  max-width: 58ch;
  margin: 0;
  color: rgb(255 255 255 / 0.73);
  font-size: 1.13rem;
  line-height: 1.75;
}

.verdict {
  max-width: 920px;
  margin-top: 42px;
  padding: 22px 25px 23px;
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.11);
  border-left: 4px solid var(--coral-2);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.verdict span {
  color: rgb(255 255 255 / 0.5);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.verdict p {
  margin: 7px 0 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.38;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 34px 0 0;
  border-block: 1px solid rgb(255 255 255 / 0.16);
}

.status-strip div {
  min-width: 0;
  padding: 17px 19px 16px;
  border-right: 1px solid rgb(255 255 255 / 0.16);
}

.status-strip div:last-child { border-right: 0; }

.status-strip dt {
  color: rgb(255 255 255 / 0.46);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  text-transform: uppercase;
}

.status-strip dd {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.3;
}

.status-strip small {
  display: block;
  color: rgb(255 255 255 / 0.44);
  font-size: 0.68rem;
  line-height: 1.45;
}

.hero-boundary {
  max-width: 76ch;
  margin: 18px 0 0;
  color: rgb(255 255 255 / 0.47);
  font-size: 0.78rem;
  line-height: 1.65;
}

.evidence-toolbar {
  position: sticky;
  z-index: 50;
  top: 12px;
  margin-top: 52px;
  overflow: hidden;
  color: var(--ink);
  background: rgb(255 253 248 / 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgb(20 43 41 / 0.05);
  backdrop-filter: blur(14px);
}

.toolbar-inner {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 24px;
  min-height: 72px;
  padding: 10px 24px;
  align-items: center;
}

.toolbar-label { margin: 0 0 4px; color: var(--muted); }

.filter-group { display: flex; gap: 6px; }

.filter {
  min-height: 32px;
  padding: 5px 10px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.filter:hover { color: var(--ink); border-color: var(--line-dark); }

.filter.active {
  color: white;
  background: var(--night);
  border-color: var(--night);
}

.filter-count {
  margin: 0;
  padding-left: 22px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.filter-count strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1.08rem;
}

.evidence-key {
  display: flex;
  gap: 18px;
  justify-self: end;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.69rem;
  list-style: none;
}

.evidence-key li { white-space: nowrap; }
.evidence-key b { color: var(--ink); font-weight: 650; }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
}

.dot.direct { background: var(--teal); }
.dot.internal { background: var(--gold); }

.chapter {
  padding: 112px 0;
  border-bottom: 1px solid var(--line);
}

.chapter:nth-of-type(even) { background: rgb(255 253 248 / 0.32); }

.chapter-head {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 52px;
}

.chapter-id { margin: 7px 0 0; }

.chapter-head h2 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(2.45rem, 4.4vw, 4.75rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.042em;
}

.chapter-head p:last-child {
  max-width: 60ch;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.prose { font-size: 1.03rem; }
.prose p { margin: 0 0 1.25em; }

.lead {
  margin-top: 0;
  font-size: clamp(1.3rem, 2vw, 1.58rem);
  line-height: 1.57;
}

.lead strong { color: var(--teal); font-weight: 600; }

.core-statement {
  margin-top: 48px;
  padding: 31px 34px 33px;
  background: var(--teal-soft);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.core-statement blockquote {
  max-width: 33ch;
  margin: 10px 0 0;
  font-size: clamp(1.55rem, 2.7vw, 2.7rem);
  line-height: 1.36;
  letter-spacing: -0.02em;
}

.capability-map-scroll {
  max-height: min(78vh, 900px);
  margin-top: 0;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-1);
  scrollbar-gutter: stable;
}

.capability-map-scroll:focus-visible { outline-offset: -3px; }

.capability-map {
  min-width: 1280px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  font-size: 0.76rem;
  line-height: 1.35;
}

.capability-map-caption {
  margin-top: 28px;
  margin-bottom: 0;
  padding: 13px 18px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.capability-map th,
.capability-map td {
  padding: 0;
  vertical-align: middle;
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability-map thead th {
  position: sticky;
  z-index: 5;
  top: 0;
  min-width: 108px;
  height: 74px;
  padding: 10px 8px;
  color: #34423f;
  background: #eae6dc;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
}

.capability-map thead th:nth-child(6) { min-width: 150px; }

.capability-map thead th small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 500;
}

.capability-map thead th:first-child {
  left: 0;
  z-index: 7;
  min-width: 260px;
  padding-left: 18px;
  text-align: left;
}

.capability-map tbody th {
  position: sticky;
  z-index: 3;
  left: 0;
  min-width: 260px;
  max-width: 260px;
  padding: 13px 17px;
  background: var(--surface);
  text-align: left;
}

.capability-map tbody th .cap-id {
  display: block;
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.capability-map tbody th strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.28;
}

.capability-map tbody th small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 500;
}

.capability-map tbody tr:hover th,
.capability-map tbody tr:hover td { background: #edf4f1; }

.capability-map .group-start > * { border-top: 3px solid #aaa395; }

.capability-map .focus-platform {
  position: sticky;
  z-index: 4;
  right: 0;
  background: #e2f0ec;
  box-shadow: inset 2px 0 var(--teal), inset -2px 0 var(--teal);
}

.capability-map thead .focus-platform { z-index: 8; background: #cfe6e0; }
.capability-map tbody tr:hover .focus-platform { background: #d7ebe6; }

.coverage-cell { min-width: 108px; }

.coverage {
  display: inline-flex;
  min-width: 52px;
  min-height: 48px;
  padding-top: 5px;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
}

.coverage small { font-size: 0.58rem; font-weight: 650; }
.coverage--yes {
  color: #176b52;
  background: radial-gradient(circle at 50% 14px, #dcece5 0 14px, transparent 14.5px);
}
.coverage--partial {
  color: #745313;
  background: radial-gradient(circle at 50% 14px, #f2e7c7 0 14px, transparent 14.5px);
}
.coverage--no {
  color: #737771;
  background: radial-gradient(circle at 50% 14px, #ebe8df 0 14px, transparent 14.5px);
}

.test-block {
  padding-top: 94px;
  scroll-margin-top: 76px;
}

.test-block + .test-block {
  margin-top: 94px;
  border-top: 1px solid var(--line);
}

.test-block-head {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 46px;
}

.test-block-id {
  margin: 6px 0 0;
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.test-block-head h3 {
  max-width: 20ch;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 3.8vw, 4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.038em;
}

.test-block-head p:last-child {
  max-width: 60ch;
  margin: 13px 0 0;
  color: var(--muted);
}

.judgment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 52px;
}

.judgment {
  position: relative;
  min-height: 280px;
  padding: 29px 30px 28px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}

.judgment::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
}

.judgment.positive::before { background: var(--teal); }
.judgment.mixed::before { background: var(--gold); }
.judgment.risk::before { background: var(--coral); }
.judgment.open::before { background: var(--blue); }

.judgment h3,
.evidence-card h3,
.journey-flow h3,
.table-heading h3,
.value-reasons h3,
.failure-grid h3,
.source-columns h3,
.method-grid h3 {
  margin: 7px 0 10px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.judgment p:not(.eyebrow) { margin: 0; }

.judgment .boundary,
.evidence-card .boundary {
  margin-top: 22px;
  padding-top: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  line-height: 1.65;
}

.eyebrow { margin: 0; color: var(--teal); }

.value-reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 62px;
}

.value-reasons article {
  min-height: 260px;
  padding: 29px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}

.value-reasons article:nth-child(2) { border-top-color: var(--coral); }
.value-reasons article:nth-child(3) { border-top-color: var(--blue); }
.value-reasons p:last-child { margin: 0; color: var(--muted); font-size: 0.92rem; }

.system-map {
  display: grid;
  gap: 0;
  margin-top: 52px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.system-map article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(240px, 0.65fr);
  gap: 24px;
  min-height: 102px;
  padding: 20px 28px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.system-map article:last-child { border-bottom: 0; }
.system-map article:hover { background: var(--teal-soft); }
.system-map article > span { color: var(--coral); font-family: var(--font-mono); font-size: 0.78rem; }
.system-map h3 { display: inline; margin: 0 14px 0 0; font-family: var(--font-serif); font-size: 1.5rem; }
.system-map p { display: inline; margin: 0; color: var(--muted); }
.system-map small { color: var(--muted); font-size: 0.78rem; }

.proof-chain {
  margin-top: 46px;
}

.proof-chain article {
  grid-template-columns: 64px minmax(0, 1fr) 130px;
}

.method-role-table table {
  min-width: 760px;
}

.test-brief {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.8fr);
  gap: 34px;
  margin-top: 48px;
  padding: 30px 32px;
  align-items: start;
  color: white;
  background: var(--night);
  border: 1px solid var(--night-3);
  border-left: 5px solid var(--coral-2);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-2);
}

.test-brief h3 {
  margin: 7px 0 0;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.25;
}

.test-brief blockquote {
  margin: 0;
  color: rgb(255 255 255 / 0.78);
  font-size: 1rem;
  line-height: 1.8;
}

.proof-conclusion blockquote {
  max-width: 38ch;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 58px;
}

.evidence-card {
  display: flex;
  min-width: 0;
  margin: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}

.evidence-card[hidden] { display: none; }

.evidence-media {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 330px;
  padding: 0;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgb(23 33 31 / 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgb(23 33 31 / 0.035) 25%, transparent 25%),
    var(--paper-2);
  background-position: 0 0, 8px 8px;
  background-size: 16px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: zoom-in;
}

.evidence-media::after {
  content: "查看原图 ↗";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  color: white;
  background: rgb(9 25 24 / 0.82);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.evidence-media:hover::after,
.evidence-media:focus-visible::after { opacity: 1; transform: none; }

.evidence-media img {
  width: 100%;
  height: 100%;
  max-height: 430px;
  object-fit: contain;
}

.evidence-card figcaption {
  display: flex;
  padding: 24px 25px 26px;
  flex: 1;
  flex-direction: column;
}

.evidence-meta { margin: 0; }
.evidence-meta span {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 6px;
  color: #5a4514;
  background: var(--gold-soft);
  border-radius: 3px;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.evidence-card p { margin: 0; }
.evidence-card .boundary { margin-top: auto; }

.journey-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 50px;
}

.journey-flow article {
  padding: 29px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}

.journey-flow ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: journey;
}

.journey-flow li {
  position: relative;
  min-height: 90px;
  padding: 31px 10px 10px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  line-height: 1.45;
  counter-increment: journey;
}

.journey-flow li::before {
  content: "0" counter(journey);
  position: absolute;
  top: 8px;
  left: 10px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
}

.table-panel {
  margin-top: 58px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}

.table-heading {
  display: flex;
  gap: 24px;
  padding: 24px 27px;
  align-items: end;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.table-heading h3 { margin-bottom: 0; }
.table-heading > p { margin: 0; color: var(--muted); font-size: 0.76rem; }

.table-scroll { max-width: 100%; overflow-x: auto; }
.table-scroll:focus-visible { outline-offset: -3px; }

.analysis-mode-table table { min-width: 860px; }
.analysis-mode-table th:first-child {
  position: sticky;
  z-index: 1;
  left: 0;
  width: 150px;
  min-width: 150px;
  background: var(--surface);
}
.analysis-mode-table thead th:first-child { background: var(--surface-2); }
.analysis-mode-table thead th:nth-child(3) { color: #075e58; background: var(--teal-soft); }
.analysis-mode-table tbody td:nth-child(3) { background: rgb(215 235 230 / 0.42); }

.strategic-value-table table { min-width: 900px; }
.strategic-value-table tbody th { color: var(--teal); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  line-height: 1.55;
}

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

th, td {
  padding: 14px 16px;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

thead th {
  color: var(--muted);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody th { font-weight: 650; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgb(215 235 230 / 0.42); }

.status {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.status.pass { color: var(--teal); background: var(--teal-soft); }
.status.warn { color: #6e5012; background: var(--gold-soft); }
.status.fail { color: var(--coral); background: var(--coral-soft); }

.failure-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-top: 52px;
}

.failure-grid article {
  padding: 23px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--coral);
  border-radius: var(--radius-md);
}

.failure-grid article > span { color: var(--coral); font-family: var(--font-mono); font-size: 0.68rem; }
.failure-grid h3 { font-size: 1.28rem; }
.failure-grid p { margin: 9px 0 0; color: var(--muted); font-size: 0.79rem; line-height: 1.6; }
.failure-grid b { color: var(--ink); }

.evidence-feature { margin-top: 58px; }
.evidence-card--feature { display: grid; grid-template-columns: 1.55fr 0.9fr; }
.evidence-card--feature .evidence-media { min-height: 470px; border-right: 1px solid var(--line); border-bottom: 0; }
.evidence-card--feature .evidence-media img { max-height: 560px; }
.evidence-card--feature figcaption { padding: 32px; }

.market-signal {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 54px;
}

.market-signal article {
  min-height: 224px;
  display: flex;
  padding: 21px;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.market-signal article > span { color: var(--coral); font-family: var(--font-mono); font-size: 0.68rem; }
.market-signal h3 { margin: 16px 0 8px; font-family: var(--font-serif); font-size: 1.22rem; line-height: 1.25; }
.market-signal p { margin: 0; color: var(--muted); font-size: 0.78rem; }
.signal { margin-top: auto; padding-top: 18px; font-size: 0.7rem; }
.signal.mid { color: var(--teal); }
.signal.weak { color: var(--gold); }
.signal.none { color: var(--coral); }

.callout {
  margin-top: 62px;
  padding: 30px 34px;
  background: var(--coral-soft);
  border-left: 4px solid var(--coral);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.callout .eyebrow { color: var(--coral); }
.callout blockquote { margin: 10px 0 0; font-size: 1.45rem; line-height: 1.58; }

.matrix { min-width: 1080px; }
.matrix th:first-child { position: sticky; left: 0; min-width: 132px; background: var(--surface); box-shadow: 1px 0 var(--line); }
.matrix thead th:first-child { z-index: 1; background: var(--surface-2); }
.matrix td:nth-child(2) { min-width: 250px; }
.matrix td:nth-child(3), .matrix td:nth-child(4), .matrix td:nth-child(5) { min-width: 230px; }
.after-table { margin-top: 48px; }

.chapter.gate-chapter {
  color: white;
  background:
    radial-gradient(circle at 85% 15%, rgb(24 160 151 / 0.18), transparent 26rem),
    linear-gradient(140deg, var(--night-2), var(--night));
  border-bottom-color: rgb(255 255 255 / 0.1);
}

.gate-chapter .chapter-head p:last-child,
.gate-chapter .prose p { color: rgb(255 255 255 / 0.68); }
.gate-chapter .prose .lead { color: white; }
.gate-chapter .lead strong { color: #6fd0c7; }
.gate-chapter .table-panel { color: var(--ink); background: var(--surface); }
.gate-chapter .table-heading h3,
.gate-chapter .table-panel th,
.gate-chapter .table-panel td { color: var(--ink); }
.gate-chapter .table-heading > p { color: var(--muted); }

.strategy-statement {
  margin-top: 0;
  padding: 45px 46px 46px;
  color: var(--ink);
  background: #d8eee9;
  border-radius: var(--radius-lg);
}

.strategy-statement .eyebrow { color: var(--teal); }
.strategy-statement blockquote {
  max-width: 28ch;
  margin: 14px 0 0;
  font-size: clamp(1.75rem, 3.3vw, 3.4rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin-top: 54px;
}

.method-grid article {
  min-height: 215px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.evidence-code { display: inline-block; margin: 0; padding: 3px 7px; border-radius: 3px; }
.evidence-code.direct { color: #075e58; background: var(--teal-soft); }
.evidence-code.internal { color: #5a4514; background: var(--gold-soft); }
.evidence-code.official { color: #2f5170; background: var(--blue-soft); }
.evidence-code.external { color: #65402e; background: #efe3da; }
.evidence-code.analysis { color: #53476d; background: #e8e0f0; }
.evidence-code.open { color: #763126; background: var(--coral-soft); }
.method-grid h3 { font-size: 1.3rem; }
.method-grid p:last-child { margin: 0; color: var(--muted); font-size: 0.82rem; }

.source-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 52px;
  margin-top: 70px;
  align-items: start;
}

.source-columns > section { min-width: 0; }
.source-list { margin: 21px 0 0; padding-left: 1.35em; }
.source-list li { margin: 0 0 14px; color: var(--muted); font-size: 0.84rem; }
.source-list a { color: var(--ink); font-weight: 650; }
.source-list a:hover { color: var(--coral); }

.download-list { display: grid; gap: 8px; margin-top: 21px; }

.download-archive {
  margin-top: 21px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.download-archive summary {
  min-height: 54px;
  padding: 13px 15px;
  font-weight: 650;
  cursor: pointer;
}

.download-archive .download-list { margin: 0; padding: 0 12px 12px; }

.download-list > a {
  display: grid;
  grid-template-columns: 43px 1fr;
  gap: 13px;
  padding: 13px 14px;
  align-items: center;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.download-list > a:hover { border-color: var(--teal); box-shadow: var(--shadow-1); }
.download-list > a > span { display: grid; width: 39px; height: 39px; place-items: center; color: white; background: var(--night); border-radius: 4px; font-family: var(--font-mono); font-size: 0.67rem; }
.download-list strong, .download-list small { display: block; }
.download-list strong { font-size: 0.86rem; }
.download-list small { color: var(--muted); font-size: 0.7rem; }

.research-notes { margin-top: 65px; }

.research-notes details {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.research-notes details:last-child { border-bottom: 1px solid var(--line); }
.research-notes summary { min-height: 54px; padding: 13px 6px; font-weight: 650; cursor: pointer; }
.research-notes details > div { padding: 0 6px 18px; color: var(--muted); font-size: 0.88rem; }
.research-notes p { margin: 0 0 10px; }

.report-footer {
  padding: 34px 0;
  color: rgb(255 255 255 / 0.52);
  background: var(--night-2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.report-footer .wide { display: flex; justify-content: space-between; gap: 24px; }
.report-footer p { margin: 0; }

.scrim {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgb(0 0 0 / 0.54);
}

.lightbox {
  width: min(94vw, 1500px);
  max-width: none;
  height: min(92vh, 1000px);
  max-height: none;
  padding: 0;
  overflow: hidden;
  color: white;
  background: var(--night-2);
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 120px rgb(0 0 0 / 0.6);
}

.lightbox::backdrop { background: rgb(2 10 9 / 0.84); backdrop-filter: blur(6px); }

.lightbox-bar {
  display: flex;
  min-height: 58px;
  padding: 10px 14px 10px 20px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(255 255 255 / 0.13);
}

.lightbox-bar p { margin: 0; font-family: var(--font-mono); font-size: 0.78rem; }

.lightbox-close {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: white;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
}

.lightbox-stage {
  display: grid;
  height: calc(100% - 110px);
  padding: 16px;
  place-items: center;
  overflow: auto;
}

.lightbox-stage img { width: 100%; height: 100%; object-fit: contain; }

.lightbox-caption {
  height: 52px;
  margin: 0;
  padding: 10px 20px;
  overflow: auto;
  color: rgb(255 255 255 / 0.58);
  border-top: 1px solid rgb(255 255 255 / 0.13);
  font-size: 0.75rem;
}

@media (max-width: 1260px) {
  :root { --rail: 246px; }
  .rail { padding-inline: 23px; }
  .brand strong { font-size: 1.4rem; }
  .evidence-key { display: none; }
  .toolbar-inner { grid-template-columns: auto auto; }
  .filter-count { justify-self: end; }
  .failure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-signal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1040px) {
  html { scroll-padding-top: 58px; }
  .progress { left: 0; }
  .nav-toggle {
    position: fixed;
    z-index: 130;
    top: 12px;
    left: 12px;
    display: inline-flex;
    min-height: 44px;
    padding: 8px 12px;
    gap: 8px;
    align-items: center;
    color: white;
    background: var(--night);
    border: 1px solid rgb(255 255 255 / 0.22);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 30px rgb(0 0 0 / 0.18);
  }
  .rail {
    width: min(86vw, 330px);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }
  .rail.open { transform: none; }
  main { margin-left: 0; }
  .wide { width: min(calc(100% - 40px), var(--wide)); }
  .hero { min-height: auto; }
  .hero-inner { padding-block: 118px 76px; }
  .evidence-toolbar { top: 10px; }
  .toolbar-inner { min-height: 66px; padding-left: 56px; }
  .filter-count { display: none; }
  .chapter { padding: 82px 0; }
  .chapter-head { grid-template-columns: 1fr; gap: 8px; margin-bottom: 42px; }
  .chapter-id { margin: 0; }
  .test-block { padding-top: 72px; }
  .test-block + .test-block { margin-top: 72px; }
  .test-block-head { grid-template-columns: 1fr; gap: 8px; margin-bottom: 40px; }
  .test-block-id { margin: 0; }
  .judgment-grid, .evidence-grid, .journey-flow, .source-columns, .value-reasons { grid-template-columns: 1fr; }
  .system-map article { grid-template-columns: 48px 1fr; gap: 14px; }
  .system-map small { grid-column: 2; }
  .test-brief { grid-template-columns: 1fr; gap: 18px; }
  .evidence-card--feature { display: flex; }
  .evidence-card--feature .evidence-media { min-height: 380px; border-right: 0; border-bottom: 1px solid var(--line); }
  .market-signal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-footer .wide { flex-direction: column; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wide, .reading { width: min(calc(100% - 38px), var(--wide)); }
  .hero h1 { max-width: 100%; font-size: clamp(2.5rem, 11vw, 4.4rem); line-height: 0.96; letter-spacing: -0.045em; }
  .deck { font-size: 1rem; }
  .status-strip { grid-template-columns: repeat(2, 1fr); }
  .status-strip div:nth-child(2) { border-right: 0; }
  .status-strip div:nth-child(-n+2) { border-bottom: 1px solid rgb(255 255 255 / 0.16); }
  .evidence-toolbar { position: relative; }
  .toolbar-inner { display: block; min-height: 0; padding: 14px 0; }
  .toolbar-label { padding-left: 53px; }
  .filter-group { overflow-x: auto; padding: 0 1px 3px 53px; }
  .filter { min-height: 38px; white-space: nowrap; }
  .chapter-head h2 { font-size: clamp(2.2rem, 12vw, 3.3rem); }
  .test-block-head h3 { font-size: clamp(2rem, 10vw, 3rem); }
  .capability-map-scroll { width: calc(100% - 20px); }
  .judgment-grid { grid-template-columns: 1fr; }
  .judgment { min-height: auto; padding: 25px; }
  .value-reasons { width: min(calc(100% - 38px), var(--wide)); }
  .value-reasons article { min-height: auto; padding: 25px; }
  .system-map article { padding: 18px; }
  .system-map h3, .system-map p { display: block; }
  .system-map p { margin-top: 5px; }
  .test-brief { padding: 24px 22px; }
  .evidence-media { min-height: 240px; }
  .evidence-media img { max-height: 360px; }
  .evidence-card figcaption { padding: 21px; }
  .journey-flow ol { grid-template-columns: 1fr; }
  .journey-flow li { min-height: 58px; padding: 18px 12px 12px 48px; }
  .journey-flow li::before { top: 17px; left: 14px; }
  .failure-grid, .market-signal, .method-grid { grid-template-columns: 1fr; }
  .evidence-card--feature .evidence-media { min-height: 250px; }
  .table-heading { display: block; }
  .table-heading > p { margin-top: 8px; }
  .analysis-mode-table .table-scroll { overflow: visible; }
  .analysis-mode-table table,
  .analysis-mode-table tbody,
  .analysis-mode-table tr,
  .analysis-mode-table th,
  .analysis-mode-table td { display: block; width: 100%; min-width: 0; }
  .analysis-mode-table table { min-width: 0; }
  .analysis-mode-table thead { display: none; }
  .analysis-mode-table tbody { padding: 12px; }
  .analysis-mode-table tbody tr {
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
  }
  .analysis-mode-table tbody tr:last-child { margin-bottom: 0; }
  .analysis-mode-table th:first-child {
    position: static;
    padding: 12px 14px;
    color: var(--night);
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
  }
  .analysis-mode-table tbody td { padding: 14px; border-bottom: 1px solid var(--line); }
  .analysis-mode-table tbody td::before {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
  }
  .analysis-mode-table tbody td:nth-child(2)::before { content: "场景化 AI 分析"; }
  .analysis-mode-table tbody td:nth-child(3) {
    color: #075e58;
    background: rgb(215 235 230 / 0.56);
    border-bottom: 0;
  }
  .analysis-mode-table tbody td:nth-child(3)::before { content: "LONGBRIDGE 用户定制化分析"; color: var(--teal); }
  .market-signal article { min-height: 170px; }
  .strategy-statement { width: calc(100% - 24px); padding: 30px 24px; }
  .strategy-statement blockquote { font-size: 1.9rem; }
  .lightbox { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
}

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

@media print {
  @page { size: A4; margin: 16mm 14mm 17mm; }
  body { color: #111; background: white; font-size: 10pt; line-height: 1.6; }
  .skip, .rail, .progress, .nav-toggle, .scrim, .evidence-toolbar, .lightbox, .evidence-media::after { display: none !important; }
  main { margin: 0; }
  .wide, .reading { width: 100%; max-width: none; }
  .hero { min-height: 0; color: #111; background: white; border-bottom: 2px solid #111; }
  .hero::before { display: none; }
  .hero-inner { padding: 5mm 0 9mm; }
  .hero h1 { max-width: none; color: #111; font-size: 34pt; }
  .hero h1 em { color: #111; }
  .deck, .hero-boundary { color: #444; }
  .verdict { color: #111; background: #f1f1f1; border-color: #999; }
  .status-strip { color: #111; border-color: #aaa; }
  .status-strip div { border-color: #aaa; }
  .status-strip dt, .status-strip small { color: #555; }
  .chapter { padding: 9mm 0 5mm; background: white !important; break-before: page; border: 0; }
  .chapter-head { margin-bottom: 6mm; }
  .chapter-head h2 { font-size: 25pt; }
  .test-block { padding-top: 8mm; }
  .test-block + .test-block { margin-top: 8mm; }
  .test-block-head { margin-bottom: 5mm; }
  .test-block-head h3 { font-size: 20pt; }
  .core-statement { break-inside: avoid; box-shadow: none; }
  .test-brief { break-inside: avoid; color: #111; background: #eee; border-color: #999; box-shadow: none; }
  .test-brief blockquote { color: #333; }
  .analysis-mode-table table { min-width: 0; table-layout: fixed; }
  .analysis-mode-table th:first-child { position: static; width: 22%; min-width: 0; }
  .strategic-value-table table { min-width: 0; table-layout: fixed; }
  .strategic-value-table th:first-child { width: 22%; }
  .method-role-table table { min-width: 0; table-layout: fixed; }
  .method-role-table th:first-child { width: 22%; }
  .method-role-table code { overflow-wrap: anywhere; word-break: break-word; }
  .capability-map-scroll { max-height: none; overflow: visible; box-shadow: none; }
  .capability-map { min-width: 0; table-layout: fixed; font-size: 6pt; }
  .capability-map-caption { padding: 2mm; font-size: 6pt; }
  .capability-map thead th,
  .capability-map tbody th,
  .capability-map .focus-platform { position: static; min-width: 0; max-width: none; }
  .capability-map thead th:first-child,
  .capability-map tbody th { width: 28%; padding: 1.5mm; }
  .capability-map thead th { height: auto; min-width: 0; padding: 1.5mm 0.6mm; font-size: 5.5pt; }
  .capability-map thead th small,
  .capability-map tbody th small,
  .coverage small { display: none; }
  .coverage-cell { min-width: 0; }
  .coverage { min-width: 0; min-height: 4mm; padding: 0; background: none; font-size: 6pt; }
  .judgment-grid, .evidence-grid, .failure-grid, .market-signal, .method-grid, .value-reasons { gap: 4mm; }
  .judgment, .evidence-card, .failure-grid article, .market-signal article, .method-grid article, .table-panel, .value-reasons article, .journey-flow article, .strategy-statement { break-inside: avoid; box-shadow: none; }
  .system-map { break-inside: auto; box-shadow: none; }
  .system-map article { break-inside: avoid; }
  .evidence-card { page-break-inside: avoid; }
  .evidence-media { min-height: 0; background: white; }
  .evidence-media img { max-height: 105mm; }
  .gate-chapter { color: #111; background: white; border: 1px solid #999; }
  .gate-chapter h2, .gate-chapter h3, .gate-chapter th, .gate-chapter td { color: #111; }
  .gate-chapter .table-panel { color: #111; background: white; }
  .gate-chapter .chapter-head p:last-child, .gate-chapter .prose p { color: #444; }
  .gate-chapter .prose .lead { color: #111; }
  .strategy-statement { color: #111; background: #eee; }
  .source-list a::after { content: " (" attr(href) ")"; color: #555; font-size: 8pt; font-weight: normal; word-break: break-all; }
  .download-archive, .download-list { display: none; }
  .research-notes details > div { display: block; }
  .report-footer { color: #333; background: white; border-top: 1px solid #999; }
}
