/* ============================================================
   万元陷阱 · 博弈论科普 — 样式系统
   配色变量集中管理；SVG 通过 var(--x) 继承主题色
   ============================================================ */

:root {
  --bg: #0b1016;
  --bg-deep: #080c11;
  --panel: #121a24;
  --panel-2: #172130;
  --ink: #e8eef6;
  --muted: #93a4b8;
  --faint: #64758b;
  --line: #2a3848;
  --accent: #e8b44a;
  --blue: #5b9dff;
  --warn: #f0585f;
  --good: #4bc98f;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1080px;
  --nav-h: 64px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(232, 180, 74, 0.07), transparent 65%),
    radial-gradient(760px 520px at 92% 12%, rgba(91, 157, 255, 0.06), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 650; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 650; }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--accent);
  color: #14100a;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(11, 16, 22, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand__mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(232, 180, 74, 0.12);
  border: 1px solid rgba(232, 180, 74, 0.35);
  color: var(--accent);
  font-size: 16px;
}
.brand__text { font-size: 15px; font-weight: 650; letter-spacing: 0.02em; }
.brand__dot { color: var(--accent); margin: 0 2px; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
  border-radius: 7px;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--accent); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 区块通用 ---------- */
.section {
  position: relative;
  padding: 104px 0;
  scroll-margin-top: var(--nav-h);
}
.section--alt {
  background: linear-gradient(180deg, rgba(23, 33, 48, 0.42), rgba(23, 33, 48, 0.14));
  border-top: 1px solid rgba(42, 56, 72, 0.6);
  border-bottom: 1px solid rgba(42, 56, 72, 0.6);
}

.js-ready .section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-ready .section.is-in { opacity: 1; transform: none; }

.sec-head { margin-bottom: 42px; max-width: 720px; }
.sec-head__no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.sec-head h2 {
  font-size: clamp(28px, 4.2vw, 42px);
  letter-spacing: -0.02em;
}
.sec-head h2::after {
  content: "";
  display: block;
  width: 46px; height: 3px;
  margin-top: 16px;
  background: var(--accent);
  border-radius: 2px;
}
.sec-head__desc { margin-top: 14px; color: var(--muted); font-size: 15px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:disabled { opacity: 0.38; cursor: not-allowed; }
.btn--primary { background: var(--accent); color: #17110a; }
.btn--primary:hover:not(:disabled) { background: #f3c563; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover:not(:disabled) { border-color: var(--muted); background: rgba(255,255,255,0.03); }
.btn--warn { background: transparent; border-color: rgba(240, 88, 95, 0.55); color: var(--warn); }
.btn--warn:hover:not(:disabled) { background: rgba(240, 88, 95, 0.1); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -20%; right: -12%;
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(232, 180, 74, 0.1), transparent 62%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  position: relative;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow__line { width: 30px; height: 1px; background: var(--accent); }
.hero__title {
  font-size: clamp(64px, 11vw, 128px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 750;
  background: linear-gradient(120deg, var(--ink) 12%, var(--accent) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__title span { -webkit-text-fill-color: var(--accent); }
.hero__lead {
  margin-top: 26px;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 550;
  letter-spacing: -0.01em;
}
.hero__hook { margin-top: 12px; color: var(--muted); font-size: 16px; max-width: 480px; }
.hero__quote {
  margin: 28px 0 0;
  padding: 14px 0 14px 18px;
  border-left: 2px solid var(--accent);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.8;
  max-width: 480px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__visual { width: 100%; max-width: 540px; justify-self: center; }
.hero__visual .diagram { filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25)); }
.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--faint);
}
.hero__scroll { color: var(--accent); }

/* ---------- SVG 通用 ---------- */
.diagram { display: block; width: 100%; height: auto; overflow: visible; }
.diagram text { font-family: inherit; }
.diagram--wide { min-width: 620px; }

.figure { margin: 40px 0 0; }
.figure__box {
  padding: 24px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}
.figure figcaption {
  margin-top: 12px;
  font-size: 12px;
  color: var(--faint);
  text-align: center;
}
.figure--compact { margin-top: 34px; }
.figure--compact .figure__box { padding: 18px 24px; }

/* ---------- 什么是万元陷阱 ---------- */
.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.mini-card {
  position: relative;
  padding: 26px 24px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.mini-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 75%);
}
.mini-card__num {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 14px;
}
.mini-card h3 { font-size: 18px; margin-bottom: 10px; }
.mini-card p { font-size: 14px; color: var(--muted); }
.mini-card strong { color: var(--warn); font-weight: 600; }

/* ---------- 模拟器 ---------- */
.sim {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.sim__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.sim__score {
  padding: 18px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.sim__score.is-leading { border-color: var(--blue); box-shadow: 0 0 0 1px rgba(91,157,255,0.2) inset; }
.sim__score--rival.is-leading { border-color: var(--warn); box-shadow: 0 0 0 1px rgba(240,88,95,0.2) inset; }
.sim__score-label { display: block; font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.sim__score-value {
  display: block;
  margin: 6px 0 4px;
  font-family: var(--mono);
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--blue);
}
.sim__score--rival .sim__score-value { color: var(--accent); }
.sim__score-note { display: block; font-size: 12px; color: var(--faint); }
.sim__vs {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
}

.sim__status {
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: rgba(91, 157, 255, 0.07);
  border-left: 3px solid var(--blue);
  font-size: 14px;
  color: var(--ink);
}
.sim__status[data-state="danger"] { background: rgba(240, 88, 95, 0.09); border-left-color: var(--warn); color: #ffb9bc; }
.sim__status[data-state="settled"] { background: rgba(232, 180, 74, 0.08); border-left-color: var(--accent); }
.sim__status[data-state="idle"] { background: rgba(147,164,184,0.06); border-left-color: var(--muted); color: var(--muted); }

.sim__options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.sim__options-label { font-size: 12px; color: var(--faint); letter-spacing: 0.08em; }
.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}
.segmented__btn {
  padding: 7px 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.segmented__btn:hover { color: var(--ink); }
.segmented__btn.is-active { background: var(--panel-2); color: var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,0.25); }

.sim__chart {
  margin-top: 20px;
  padding: 16px 18px 10px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}
.sim__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.sim__result {
  display: none;
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.sim__result.is-visible { display: block; animation: result-in 0.4s ease both; }
.sim__result.is-visible.is-loss { border-color: rgba(240, 88, 95, 0.45); }
.sim__result.is-visible.is-win { border-color: rgba(75, 201, 143, 0.45); }
@keyframes result-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sim__result-head { font-size: 16px; font-weight: 650; margin-bottom: 14px; }
.sim__result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sim__result-grid > div {
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.sim__result-grid span { display: block; font-size: 12px; color: var(--muted); }
.sim__result-grid strong {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.sim__result-grid strong.up { color: var(--good); }
.sim__result-grid strong.down { color: var(--warn); }
.sim__result p { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- 对比卡片 ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 16px;
}
.compare__side {
  padding: 26px 26px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: var(--radius);
}
.compare__side--good { border-top-color: var(--good); }
.compare__side--bad { border-top-color: var(--warn); }
.compare__side--accent { border-top-color: var(--accent); }
.compare__side--blue { border-top-color: var(--blue); }
.compare__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: 20px;
  color: var(--muted);
  margin-bottom: 14px;
}
.compare__side--good .compare__tag { color: var(--good); }
.compare__side--bad .compare__tag { color: var(--warn); }
.compare__side--accent .compare__tag { color: var(--accent); }
.compare__side--blue .compare__tag { color: var(--blue); }
.compare__side h3 { font-size: 21px; margin-bottom: 18px; }
.compare__side li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
}
.compare__side li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--faint);
}
.compare__side--good li::before { color: var(--good); }
.compare__side--bad li::before { color: var(--warn); }
.compare__side--accent li::before { color: var(--accent); }
.compare__side--blue li::before { color: var(--blue); }
.compare__divider {
  align-self: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--bg);
}

/* ---------- 模型卡片 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 180, 74, 0.5);
  box-shadow: var(--shadow);
}
.card__media {
  position: relative;
  min-height: 196px;
  padding: 26px 16px 14px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.card__diagram { width: 100%; max-width: 320px; }
.card__idx {
  position: absolute;
  top: 12px; right: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 20px; margin-bottom: 4px; }
.alias { display: block; margin-top: 5px; font-size: 11px; font-weight: 400; color: var(--faint); }
.card__rule { margin-top: 16px; font-size: 14px; color: var(--ink); }
.card__essence {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 2px solid var(--warn);
  border-radius: 0 6px 6px 0;
  background: rgba(240, 88, 95, 0.06);
  font-size: 13px;
  color: #e5bdc0;
}
.card__label {
  display: inline-block;
  margin-right: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--warn);
}
.card__cases { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.card__cases li {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 11px;
  color: var(--muted);
  background: var(--panel-2);
}
.card__question {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 550;
  color: var(--accent);
}
.card__question::before { content: "? "; font-family: var(--mono); opacity: 0.6; }
.card__insight {
  margin-top: auto;
  padding-top: 16px;
  font-size: 12px;
  color: var(--muted);
}
.card__insight span { color: var(--good); margin-right: 4px; }

/* ---------- 避坑原则 ---------- */
.avoid__list { border-top: 1px solid var(--line); }
.avoid__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}
.avoid__item:hover { background: rgba(255,255,255,0.02); }
.avoid__idx {
  font-family: var(--mono);
  font-size: 30px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  opacity: 0.75;
}
.avoid__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.avoid__head h3 { font-size: 17px; }
.avoid__key {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(232, 180, 74, 0.1);
  color: var(--accent);
}
.avoid__content p { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ---------- 书单与金句 ---------- */
.books { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.books__group {
  padding: 24px 24px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.books__group h3 { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 16px; }
.books__group h3 span { color: var(--accent); font-weight: 650; margin-right: 10px; font-family: var(--mono); }
.books__group li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.books__title { font-size: 14px; font-weight: 550; }
.books__author { font-size: 12px; color: var(--faint); text-align: right; }
.books__note { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }

.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.quote {
  position: relative;
  margin: 0;
  padding: 24px 24px 18px 56px;
  background: linear-gradient(135deg, var(--panel), rgba(232, 180, 74, 0.05));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.quote__mark {
  position: absolute;
  top: 4px; left: 18px;
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.45;
  font-family: Georgia, serif;
}
.quote blockquote { margin: 0; font-size: 15px; line-height: 1.8; }
.quote figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 26px 0; background: var(--bg-deep); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--faint);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1023px) {
  .section { padding: 84px 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .hero__visual { max-width: 460px; }
  .hero__foot { margin-top: 40px; }
  .what-grid { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .books { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 16px;
    background: rgba(11, 16, 22, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(0,0,0,0.35);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 11px 12px; font-size: 15px; }
  .nav__links a.is-active::after { display: none; }
}

@media (max-width: 639px) {
  :root { --nav-h: 58px; }
  .wrap { padding: 0 16px; }
  .nav__inner { padding: 0 16px; }
  body { font-size: 15px; }
  .section { padding: 64px 0; }
  .hero { padding-top: calc(var(--nav-h) + 48px); min-height: auto; }
  .hero__title { font-size: clamp(56px, 17vw, 84px); }
  .hero__lead { font-size: 19px; }
  .hero__quote { font-size: 14px; }
  .hero__foot { margin-top: 32px; font-size: 9px; }
  .sec-head { margin-bottom: 30px; }
  .what-grid, .grid, .compare, .quotes { grid-template-columns: 1fr; }
  .compare__divider { justify-self: center; }
  .diagram--wide, .diagram--chart { min-width: 560px; }
  .figure__box { padding: 16px; }
  .sim { padding: 18px 16px; border-radius: 14px; }
  .sim__top { gap: 8px; }
  .sim__score { padding: 12px 8px; }
  .sim__score-value { font-size: 24px; }
  .sim__vs { width: 32px; height: 32px; font-size: 9px; }
  .sim__result-grid { grid-template-columns: 1fr; }
  .sim__result { padding: 16px; }
  .sim__chart { padding: 12px 10px 6px; margin: 0 -6px; }
  .sim__actions .btn { flex: 1 1 100%; }
  .segmented { width: 100%; }
  .segmented__btn { flex: 1; padding: 7px 8px; font-size: 12px; }
  .card__media { min-height: 170px; }
  .avoid__item { grid-template-columns: 44px 1fr; gap: 10px; padding: 18px 4px; }
  .avoid__idx { font-size: 24px; }
  .quote { padding: 20px 18px 16px 46px; }
  .quote__mark { left: 12px; font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js-ready .section { opacity: 1; transform: none; }
}

/* ============================================================
   卡片入口 + 博弈模型详情弹层
   ============================================================ */
body.modal-open { overflow: hidden; }

.card__open {
  margin-top: 16px;
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(232, 180, 74, 0.4);
  border-radius: 9px;
  background: rgba(232, 180, 74, 0.06);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.card__open:hover { background: rgba(232, 180, 74, 0.14); border-color: var(--accent); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 11, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform: translateY(14px) scale(0.985);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal.is-open .modal__panel { transform: none; }

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px 16px;
  border-bottom: 1px solid var(--line);
}
.modal__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.modal__heading h2 { font-size: 26px; margin-top: 4px; }
.modal__alias { display: block; margin-top: 4px; font-size: 12px; color: var(--faint); }
.modal__close {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal__close:hover { color: var(--ink); border-color: var(--muted); }

.modal__tabs {
  display: flex;
  gap: 4px;
  padding: 12px 28px 0;
  border-bottom: 1px solid var(--line);
}
.modal__tab {
  padding: 10px 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}
.modal__tab:hover { color: var(--ink); }
.modal__tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }

.modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 28px 30px;
}
.modal__view { display: none; }
.modal__view.is-active { display: block; animation: view-in 0.3s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 28px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}
.modal__count { font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* ---------- 详细讲解排版 ---------- */
.detail__diagram {
  max-width: 420px;
  margin: 0 auto 24px;
  padding: 18px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.detail__intro {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.9;
}
.detail__section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.detail__section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  margin-bottom: 10px;
}
.detail__section h3 span {
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 180, 74, 0.4);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
}
.detail__section p { font-size: 14px; line-height: 1.9; color: var(--muted); }
.detail__takeaway {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: rgba(232, 180, 74, 0.08);
}
.detail__takeaway span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.detail__takeaway strong { font-size: 15px; }
.detail__hint { margin-top: 16px; font-size: 12px; color: var(--faint); }

/* ---------- 交互演示组件 ---------- */
.demo__intro {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-left: 2px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: rgba(91, 157, 255, 0.06);
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.demo__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.demo__label { font-size: 12px; color: var(--faint); letter-spacing: 0.06em; }
.demo__stage {
  padding: 18px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.demo__choice-label { margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.demo__choices { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.demo__score { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.demo__score > div {
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.demo__score span { display: block; font-size: 11px; color: var(--muted); }
.demo__score strong {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.demo__score strong.up { color: var(--good); }
.demo__score strong.down { color: var(--warn); }
.demo__result {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: rgba(232, 180, 74, 0.07);
  font-size: 14px;
  line-height: 1.8;
}
.demo__history { margin-top: 18px; }
.demo__history-head,
.demo__history-row {
  display: grid;
  grid-template-columns: 60px repeat(3, 1fr);
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
}
.demo__history-head {
  font-family: var(--mono);
  color: var(--faint);
  border-bottom: 1px solid var(--line);
}
.demo__history-row:nth-child(even) { background: rgba(255,255,255,0.02); }
.demo__empty { padding: 12px 0; font-size: 13px; color: var(--faint); }
.demo__actions { margin-top: 18px; }
.demo__matrix-note { margin-top: 8px; font-size: 11px; color: var(--faint); }
.demo__ended {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* 收益矩阵 */
.pay-matrix { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.pay-matrix__row { display: grid; grid-template-columns: 1fr 1fr; }
.pay-matrix__cell {
  padding: 12px;
  min-height: 72px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pay-matrix__cell:nth-child(2n) { border-right: 0; }
.pay-matrix__row:last-child .pay-matrix__cell { border-bottom: 0; }
.pay-matrix__cell.is-active {
  background: rgba(232, 180, 74, 0.1);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.pay-matrix__num { font-family: var(--mono); font-size: 16px; color: var(--blue); }
.pay-matrix__num--alt { margin-left: 10px; color: var(--accent); }
.pay-matrix__cell small { display: block; margin-top: 4px; font-size: 10px; color: var(--faint); }

/* 公地资源条 */
.resource__head { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 13px; }
.resource__head strong { font-family: var(--mono); }
.resource__track {
  height: 14px;
  margin-bottom: 20px;
  background: var(--panel-2);
  border-radius: 8px;
  overflow: hidden;
}
.resource__fill { height: 100%; border-radius: 8px; transition: width 0.4s ease; }
.resource__bars { display: flex; align-items: flex-end; gap: 4px; height: 80px; padding-top: 8px; }
.resource__bar {
  flex: 1;
  max-width: 32px;
  min-height: 2px;
  background: var(--blue);
  border-radius: 3px 3px 0 0;
}

/* 报价滑块 */
.slider__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 13px; }
.slider__head strong { font-family: var(--mono); font-size: 20px; color: var(--accent); }
.slider { width: 100%; margin-bottom: 18px; accent-color: var(--accent); }

/* 人群示意 */
.crowd { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 14px; }
.crowd__person {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  font-size: 12px;
  color: var(--muted);
}
.crowd__person.is-you { border-color: var(--accent); color: var(--accent); }
.crowd__note { margin-bottom: 18px; text-align: center; font-size: 12px; color: var(--muted); }

/* 弹层内嵌模拟器 */
.sim--compact { padding: 18px; box-shadow: none; }
.sim--compact .sim__chart { margin-top: 16px; }

@media (max-width: 639px) {
  .modal { padding: 0; }
  .modal__panel { max-width: none; max-height: 100vh; height: 100vh; border: 0; border-radius: 0; }
  .modal__head { padding: 18px 16px 14px; }
  .modal__heading h2 { font-size: 22px; }
  .modal__tabs { padding: 10px 16px 0; }
  .modal__tab { flex: 1; padding: 10px 8px; font-size: 13px; }
  .modal__body { padding: 18px 16px 26px; }
  .modal__foot { padding: 12px 16px; }
  .modal__foot .btn { padding: 8px 12px; font-size: 12px; }
  .detail__diagram { padding: 14px; }
  .demo__stage { padding: 14px; }
  .demo__score { grid-template-columns: 1fr; }
  .demo__choices .btn { flex: 1 1 45%; }
  .demo__history-head, .demo__history-row { grid-template-columns: 44px repeat(3, 1fr); font-size: 11px; gap: 4px; }
  .pay-matrix__cell { padding: 9px; }
  .sim--compact .sim__score-value { font-size: 22px; }
}

/* 深色细滚动条 */
.modal__body,
.figure__box,
.sim__chart {
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.modal__body::-webkit-scrollbar,
.figure__box::-webkit-scrollbar,
.sim__chart::-webkit-scrollbar { width: 8px; height: 8px; }
.modal__body::-webkit-scrollbar-track,
.figure__box::-webkit-scrollbar-track,
.sim__chart::-webkit-scrollbar-track { background: transparent; }
.modal__body::-webkit-scrollbar-thumb,
.figure__box::-webkit-scrollbar-thumb,
.sim__chart::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 8px;
}
.modal__body::-webkit-scrollbar-thumb:hover,
.figure__box::-webkit-scrollbar-thumb:hover,
.sim__chart::-webkit-scrollbar-thumb:hover { background: var(--faint); }
