:root {
  --bg: #f5f2ec;
  --paper: #fffefa;
  --ink: #20242a;
  --muted: #66717e;
  --line: #d8d2c7;
  --line-strong: #b9afa0;
  --green: #2f7d5c;
  --amber: #b97818;
  --red: #b5483d;
  --blue: #326d92;
  --violet: #725a9f;
  --shadow: 0 18px 44px rgba(46, 38, 28, .09);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 254, 250, .92), rgba(245, 242, 236, .96)),
    repeating-linear-gradient(90deg, rgba(32, 36, 42, .035) 0 1px, transparent 1px 72px);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft Yahei", sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, .92);
  backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand strong { display: block; font-size: 16px; line-height: 1.2; }
.brand small { display: block; color: var(--muted); font-size: 11px; line-height: 1.2; }
.mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  font: 700 12px/1 var(--mono);
}

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
}
nav a:hover { background: #ece6dc; color: var(--ink); }

main { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .88fr);
  align-items: center;
  gap: clamp(28px, 6vw, 78px);
  padding: 48px 0 38px;
}
.hero-copy, .risk-visual, article, .metric, .fact-list, .article-cards a, .kpi, .scenario-card, .source-cluster a {
  min-width: 0;
  max-width: 100%;
}
.hero-copy { width: 100%; overflow: hidden; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font: 700 12px/1.3 var(--mono);
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  max-width: 820px;
  font-size: 76px;
  line-height: .98;
  letter-spacing: 0;
}
h1 span { display: block; }
h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: 0;
}
h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.25; }
.lead {
  width: 100%;
  max-width: 740px;
  margin: 24px 0 0;
  color: #434b55;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}
.button.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.risk-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 360px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 49.7%, var(--line) 49.7% 50.3%, transparent 50.3%),
    linear-gradient(0deg, transparent 49.7%, var(--line) 49.7% 50.3%, transparent 50.3%),
    radial-gradient(circle at 22% 76%, rgba(47, 125, 92, .16), transparent 34%),
    radial-gradient(circle at 76% 28%, rgba(181, 72, 61, .16), transparent 32%),
    var(--paper);
  box-shadow: var(--shadow);
}
.axis {
  position: absolute;
  color: var(--muted);
  font: 700 11px/1 var(--mono);
  text-transform: uppercase;
}
.axis.y { left: 14px; top: 14px; writing-mode: vertical-rl; transform: rotate(180deg); }
.axis.x { right: 14px; bottom: 14px; }
.zone {
  position: absolute;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 254, 250, .78);
  color: var(--muted);
  font-size: 12px;
}
.z1 { left: 11%; bottom: 17%; }
.z2 { right: 12%; bottom: 28%; }
.z3 { right: 11%; top: 17%; }
.dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(32, 36, 42, .24), 0 10px 22px rgba(32, 36, 42, .2);
}
.dot span {
  position: absolute;
  left: 18px;
  top: -7px;
  white-space: nowrap;
  font: 700 12px/1 var(--mono);
}
.dot.ep { left: 66%; top: 24%; background: var(--red); }
.dot.us { left: 54%; top: 42%; background: var(--amber); }
.dot.cn { left: 24%; top: 72%; background: var(--green); }

.band {
  margin: 0 0 18px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, .86);
  box-shadow: 0 10px 30px rgba(46, 38, 28, .05);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.kpi {
  display: grid;
  gap: 7px;
  min-height: 144px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: var(--paper);
}
.kpi span,
.scenario-card span,
.source-cluster span {
  color: var(--muted);
  font: 700 11px/1.2 var(--mono);
  text-transform: uppercase;
}
.kpi strong {
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: 0;
}
.kpi small,
.scenario-card small,
.source-cluster small {
  color: #66717e;
}
.kpi.warn { border-left-color: var(--amber); }
.kpi.stop { border-left-color: var(--red); }
.kpi.ok { border-left-color: var(--green); }
.summary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .74fr);
  gap: 18px;
  align-items: start;
}
.summary-layout > div:first-child {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.summary-layout p { margin: 0; color: #46505b; }
.decision-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}
.decision-list div {
  display: grid;
  gap: 5px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}
.decision-list div:last-child { border-bottom: 0; }
.decision-list span {
  color: var(--muted);
  font: 700 11px/1.2 var(--mono);
  text-transform: uppercase;
}
.pill {
  display: inline-flex;
  align-items: center;
  margin-right: 5px;
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #f8f5ef;
  color: var(--ink);
  font: 700 11px/1 var(--mono);
  white-space: nowrap;
}
.pill.high { border-color: rgba(181, 72, 61, .34); background: rgba(181, 72, 61, .1); color: var(--red); }
.pill.med { border-color: rgba(185, 120, 24, .34); background: rgba(185, 120, 24, .1); color: var(--amber); }
.pill.low { border-color: rgba(47, 125, 92, .34); background: rgba(47, 125, 92, .1); color: var(--green); }
.pill.watch { border-color: rgba(50, 109, 146, .34); background: rgba(50, 109, 146, .1); color: var(--blue); }
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.scenario-card {
  display: grid;
  gap: 9px;
  min-height: 184px;
  padding: 17px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--amber);
  border-radius: 8px;
  background: var(--paper);
}
.scenario-card strong {
  font-size: 32px;
  line-height: 1;
}
.scenario-card p {
  margin: 0;
  color: #46505b;
  font: 700 13px/1.35 var(--mono);
}

.answer-grid, .term-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.article-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.article-cards a {
  display: grid;
  gap: 10px;
  min-height: 218px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(46, 38, 28, .04);
}
.article-cards a:hover {
  color: var(--ink);
  border-color: var(--blue);
}
.article-cards span {
  color: var(--blue);
  font: 700 12px/1 var(--mono);
}
.article-cards strong {
  font-size: 20px;
  line-height: 1.25;
}
.article-cards p {
  margin: 0;
  color: #46505b;
}
article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
}
article p { margin: 0; color: #46505b; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .68fr);
  gap: 28px;
  align-items: start;
}
.split p { max-width: 760px; color: #46505b; }
.fact-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}
.fact-list div {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.fact-list div:last-child { border-bottom: 0; }
.fact-list span {
  color: var(--muted);
  font: 700 11px/1.3 var(--mono);
  text-transform: uppercase;
}
.fact-list strong { font-size: 14px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; min-width: 920px; border-collapse: collapse; background: var(--paper); }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
th {
  color: var(--muted);
  font: 700 11px/1.3 var(--mono);
  text-transform: uppercase;
  background: #f2ede5;
}
td { font-size: 14px; }
td:first-child { font-weight: 700; }
tr:last-child td { border-bottom: 0; }

.model-layout {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(320px, 1fr);
  gap: 18px;
}
.controls {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--paper);
}
label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
}
label span { color: #46505b; font-weight: 700; }
label strong { font: 700 13px/1 var(--mono); }
input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--blue);
}
.outputs { display: grid; grid-template-columns: 1fr; gap: 12px; }
.metric {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: var(--paper);
}
.metric span { color: var(--muted); font: 700 11px/1.2 var(--mono); text-transform: uppercase; }
.metric strong { font-size: 36px; line-height: 1; letter-spacing: 0; }
.metric small { color: #66717e; }
.metric.accent { border-left-color: var(--amber); }
.metric.danger { border-left-color: var(--red); }
.model-note { margin: 18px 0 0; color: #5b6571; }

.term-grid article { border-top: 5px solid var(--green); }
.term-grid article.fallback { border-top-color: var(--amber); }
.term-grid article.reject { border-top-color: var(--red); }
ul, ol { margin: 0; padding-left: 20px; color: #46505b; }
li + li { margin-top: 8px; }

.roadmap ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}
.roadmap li {
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.roadmap strong { display: block; color: var(--ink); margin-bottom: 8px; }

.sources ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
}
.sources li a, .sources li span {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  font-weight: 700;
}
.sources li span { color: var(--muted); }

.article-page {
  width: min(1040px, calc(100% - 36px));
}
.wide-article {
  width: min(1180px, calc(100% - 36px));
}
.article-shell {
  margin: 32px 0 20px;
  padding: clamp(24px, 5vw, 54px);
  overflow: hidden;
}
.article-shell h1 {
  font-size: 58px;
  line-height: 1.02;
  margin-bottom: 18px;
}
.article-lead {
  max-width: 820px;
  margin: 0 0 32px;
  color: #434b55;
  font-size: 19px;
}
.article-shell section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.article-shell section:first-of-type { border-top: 0; }
.article-shell h2 {
  margin-bottom: 16px;
  font-size: 30px;
  line-height: 1.16;
}
.article-shell h3 {
  margin-top: 22px;
  color: var(--ink);
}
.article-shell p {
  max-width: 840px;
  color: #46505b;
}
.article-shell pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #24282e;
  color: #f5f2ec;
}
.article-shell code {
  font: 13px/1.6 var(--mono);
  white-space: pre;
}
.article-table {
  max-width: 100%;
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.article-table table {
  min-width: 760px;
  border: 0;
}
.source-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}
.source-links li {
  margin: 0;
}
.source-links a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8f5ef;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.inline-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.inline-cta:hover {
  color: var(--paper);
  background: #323840;
}
.dossier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.dossier-grid > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
}
.dossier-grid h3 {
  margin-top: 0;
}
.dossier-grid p {
  margin: 0;
  overflow-wrap: anywhere;
}
.source-cluster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.source-cluster a {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow-wrap: anywhere;
}
.source-cluster a:hover {
  color: var(--ink);
  border-color: var(--blue);
}
.source-cluster strong {
  font-size: 18px;
  line-height: 1.2;
}

footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .topbar { position: static; align-items: flex-start; gap: 12px; flex-direction: column; }
  nav { width: 100%; overflow-x: auto; }
  .hero, .split, .model-layout, .summary-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 34px; }
  .risk-visual { min-height: 300px; }
  .answer-grid, .term-grid, .article-cards, .roadmap ol, .sources ul, .source-links, .dossier-grid, .source-cluster { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { display: block; }
  h1 { font-size: 48px; }
  h2 { font-size: 34px; }
  .article-shell h1 { font-size: 42px; }
  footer { flex-direction: column; }
}

@media (max-width: 520px) {
  main, footer { width: min(100% - 24px, 1180px); }
  .article-page { width: min(100% - 24px, 1040px); }
  .wide-article { width: min(100% - 24px, 1180px); }
  h1 { font-size: 34px; line-height: 1.08; }
  h2 { font-size: 28px; }
  .kpi-grid, .scenario-grid { grid-template-columns: 1fr; }
  .kpi, .scenario-card { min-height: 0; }
  .article-shell { margin-top: 20px; padding: 22px 16px; }
  .article-shell h1 { font-size: 32px; }
  .article-shell h2 { font-size: 24px; }
  .article-lead { font-size: 16px; }
  .lead { font-size: 16px; word-break: break-all; }
  .band { padding: 22px 16px; }
  .risk-visual { min-height: 260px; }
  .dot span { font-size: 10px; white-space: normal; width: 72px; }
  .dot.ep { left: 58%; }
  .dot.us { left: 42%; }
  .z2, .z3 { right: auto; left: 58%; }
}
