:root {
  --paper: #fbf6ee;
  --paper-2: #f3ebdf;
  --ink: #2b2118;
  --ink-2: #5a4b3e;
  --muted: #8a7b6c;
  --rule: #e4d8c6;
  --sunset: #c4522a;
  --steel: #4a6f95;
  --wood: #a26b3a;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); font: 17px/1.75 var(--sans); }
#app { max-width: 1240px; margin: 0 auto; padding: 0 32px 40px; }
section, footer { margin-top: 72px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 900; letter-spacing: .5px; color: var(--ink); }
h2 { font-size: 34px; margin: 0 0 10px; }
.lead { max-width: 760px; color: var(--ink-2); margin: 0 0 22px; }
.hint, .note-small { color: var(--muted); font-size: 14px; }
.fatal { color: #a33; padding: 20px; }
button { font: 600 15px/1 var(--sans); color: var(--ink); background: transparent; border: 1.5px solid var(--ink); border-radius: 6px;
  padding: 11px 20px; cursor: pointer; }
button.primary { background: var(--ink); color: var(--paper); }
button:hover:not(:disabled) { background: var(--sunset); border-color: var(--sunset); color: #fff; }
button:disabled { opacity: .4; cursor: default; }
.frame { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #2a1f33; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--muted); }

/* 1. 开头 */
.hero { padding-top: 56px; }
.kicker { margin: 0; font-size: 14px; color: var(--muted); letter-spacing: 2px; }
.hero h1 { font-size: 52px; line-height: 1.3; margin: 10px 0 14px; }
.answer { font-size: 22px; line-height: 1.6; margin: 0 0 22px; max-width: 860px; color: var(--ink-2); }
.hero-actions { display: flex; gap: 16px; align-items: center; margin-bottom: 26px; flex-wrap: wrap; }
.hero-actions button { font-size: 17px; padding: 14px 28px; }
.hero-figure figcaption { margin-top: 8px; }

/* 2. 规则 */
.rule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.rule { background: var(--paper-2); border-radius: 8px; padding: 14px 16px 16px; }
.rule svg { width: 100%; height: auto; display: block; }
.rule svg text { font-family: var(--sans); }
.rule figcaption { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.rule figcaption b { display: block; font-family: var(--serif); font-size: 18px; color: var(--ink); margin: 6px 0 2px; }

/* 3. 同场加压 */
.arena-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 12px 0; position: sticky; top: 0; z-index: 5; background: var(--paper); }
.board { display: flex; gap: 40px; }
.board .cell small { display: block; font-size: 13px; color: var(--muted); }
.board .cell strong { font: 900 30px/1.2 var(--serif); }
.board .cell em { font-style: normal; font-size: 14px; color: var(--muted); margin-left: 8px; }
.ctrl { display: flex; gap: 10px; }
.board-msg { font-size: 18px; min-height: 2em; margin: 14px 0 16px; }
.arena-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tile figcaption { display: flex; align-items: baseline; gap: 10px; padding: 8px 2px 0; border-top: 3px solid var(--c); margin-top: 6px; }
.tile figcaption b { font: 900 19px var(--serif); color: var(--ink); }
.tile .model { font-size: 13px; }
.tile .tile-status { margin-left: auto; font-size: 15px; color: var(--ink); font-weight: 600; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); align-self: center; }
.tile.out iframe { filter: saturate(.25) brightness(.85); transition: filter .8s; }
.stamp { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-8deg);
  font: 900 46px/1 var(--serif); color: #b8341c; border: 4px solid #b8341c; border-radius: 6px; padding: 10px 22px;
  background: rgba(251, 246, 238, .88); white-space: nowrap; }
.stamp[hidden] { display: none; }
.tile.win .stamp { color: var(--ink); border-color: var(--ink); top: 20%; }

/* 4. 四个 AI */
.mind { border-top: 3px solid var(--c); padding-top: 18px; margin-top: 44px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px 36px; }
.mind > header { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.mind h3 { font-size: 30px; margin: 0; }
.mind .rank { font-size: 14px; color: var(--muted); }
.mind .who { color: var(--muted); font-size: 15px; }
.mind .score { margin-left: auto; font: 900 34px var(--serif); }
.story p { margin: 0 0 12px; }
.solo figcaption { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.guess { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 10px; background: var(--paper-2); border-radius: 8px; }
.guess > div { padding: 16px 20px; }
.guess > div + div { border-left: 1px solid var(--rule); }
.guess h4 { margin: 0 0 6px; font: 900 17px var(--serif); }
.guess p { margin: 0 0 8px; }
.guess blockquote, .guess .tech { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* 5. 曲线 */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--sans); }
.chart .axis { fill: var(--muted); font-size: 12px; }
.chart .end-label { fill: var(--ink); font-size: 13px; font-weight: 600; }
.chart .note { fill: var(--ink); font-size: 13.5px; paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; }
.chart figcaption { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 4px; }
.key i, .tip i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.tip { position: absolute; pointer-events: none; background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 8px 12px;
  font-size: 13px; box-shadow: 0 4px 14px rgba(60, 40, 20, .12); min-width: 170px; }
.tip[hidden] { display: none; }
.tip .t { color: var(--muted); }
.tip .row { display: flex; align-items: center; gap: 4px; line-height: 1.8; }
.tip .row b { margin-left: auto; font-variant-numeric: tabular-nums; }

/* 6. 完整数据 */
details { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 12px 0; }
summary { cursor: pointer; font: 900 24px var(--serif); }
.table-wrap { overflow-x: auto; margin-top: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; }
th { font-weight: 500; color: var(--muted); font-size: 13px; }
.l { text-align: left; }
td .dot { margin-right: 8px; vertical-align: 1px; }
td.strong { font-weight: 700; }
td.weak { color: #b8341c; font-weight: 700; }
a { color: var(--sunset); }

/* 7. 页脚 */
.how { border-top: 2px solid var(--ink); padding-top: 20px; }
.how h2 { font-size: 26px; }
.how ul { padding-left: 20px; max-width: 820px; color: var(--ink-2); }
.how li { margin-bottom: 6px; }
.sign { font: 900 20px var(--serif); text-align: right; margin: 26px 0 0; }
.meta { text-align: right; color: var(--muted); font-size: 13px; margin: 2px 0 0; }

/* 窄屏 */
@media (max-width: 900px) {
  #app { padding: 0 18px 32px; }
  section, footer { margin-top: 52px; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 30px; }
  .answer { font-size: 18px; }
  h2 { font-size: 27px; }
  .rule-grid { grid-template-columns: 1fr 1fr; }
  .arena-grid { grid-template-columns: 1fr; gap: 14px; }
  .board { gap: 22px; }
  .board .cell strong { font-size: 22px; }
  .board .cell em { display: block; margin: 0; }
  .stamp { font-size: 30px; padding: 6px 14px; }
  .mind { grid-template-columns: 1fr; }
  .guess { grid-template-columns: 1fr; }
  .guess > div + div { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .rule-grid { grid-template-columns: 1fr; }
  .ctrl button { padding: 9px 14px; }
}

/* ---------- 静态正文（构建注入，B2）：无 JS、数据失败时也要能读 ---------- */
.site-crumbs { max-width: 1240px; margin: 0 auto; padding: 18px 32px 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.site-crumbs a { color: var(--ink-2); text-decoration: none; }
.site-crumbs a:hover { color: var(--flame, var(--sunset, var(--ink))); text-decoration: underline; }
.site-crumbs .sep { color: var(--rule); }
.static-body { max-width: 1240px; margin: 0 auto; padding: 14px 32px 8px; }
.static-body h1 { font-size: 40px; line-height: 1.3; margin: 12px 0 10px; }
.static-body h2 { font-size: 26px; margin: 30px 0 10px; }
.static-q, .static-answer { font-size: 19px; line-height: 1.65; color: var(--ink-2); margin: 0 0 10px; max-width: 860px; }
.static-answer { color: var(--ink); }
.static-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 10px; }
.static-rank, .static-checks { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
.static-rank { min-width: 520px; }
.static-checks { min-width: 700px; }
.static-rank th, .static-rank td { border-bottom: 1px solid var(--rule); padding: 9px 10px; text-align: left; }
.static-rank th { font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.static-rank td.r { font: 900 20px var(--serif); width: 52px; }
.static-rank td.big { font: 900 20px var(--serif); white-space: nowrap; }
.static-checks th, .static-checks td { border-bottom: 1px solid var(--rule); padding: 6px 8px; text-align: center; }
.static-checks th.col { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.static-checks th.col small { display: block; font-weight: 400; font-size: 11px; }
.static-checks th.row { text-align: left; white-space: nowrap; font-size: 14px; }
.static-checks td.pass { color: var(--ok, #2f8f4e); }
.static-checks td.fail { color: #b8421f; }
.static-checks td.skip { color: var(--muted); }
.static-entry { border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 16px; max-width: 900px; }
.static-entry h3 { font-size: 21px; margin: 0 0 4px; }
.static-entry h3 small { display: block; font: 400 13px var(--sans); color: var(--muted); margin-top: 2px; }
.static-entry p { margin: 8px 0; color: var(--ink-2); }
.static-note { background: var(--paper-2); border-radius: 6px; padding: 8px 12px; }
.static-fair { padding-left: 20px; max-width: 860px; color: var(--ink-2); }
.static-fair li { margin: 6px 0; }
.static-sign { color: var(--muted); font-size: 14px; margin-top: 14px; }
@media (max-width: 900px) {
  .site-crumbs { padding: 14px 18px 0; }
  .static-body { padding: 12px 18px 6px; }
  .static-body h1 { font-size: 30px; }
  .static-body h2 { font-size: 22px; margin-top: 26px; }
  .static-q, .static-answer { font-size: 17px; }
}
