/* ============================================================
   东莞小升初调研报告 · 专业研报风设计系统 v2
   设计目标：专业 / 清新 / 详细 / 重点突出
   全部内容类名与 v1 兼容（印章装饰元素已移除或重释义）
   ============================================================ */

:root {
  /* 色彩 */
  --bg: #F4F6F9;            /* 页面底色：冷灰 */
  --paper: #F8FAFC;         /* 卡片内浅底：输入框/选项行 */
  --paper-deep: #EEF2F7;    /* 卡片内深一档浅底：结果区 */
  --card: #FFFFFF;
  --ink: #14263C;           /* 标题：深海军蓝 */
  --ink-body: #333C48;      /* 正文 */
  --ink-soft: #5B6673;      /* 次要 */
  --line: #DFE5EC;
  --line-soft: #EBEFF4;

  --accent: #1B5A96;        /* 专业蓝：链接/强调 */
  --accent-deep: #123E6B;
  --accent-soft: #EAF1F8;
  --highlight: #B54534;     /* 克制的砖红：仅用于关键警示标注 */

  /* 证据等级语义色 */
  --ga: #1F7A55; --ga-soft: #E7F3ED;
  --gb: #23608F; --gb-soft: #E8F0F7;
  --gc: #A8720F; --gc-soft: #FAF2DF;
  --gd: #6E6E68; --gd-soft: #F0F0EC;

  /* 字体 */
  --f-display: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --f-body: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --f-num: "Segoe UI", "DIN Alternate", system-ui, sans-serif;

  /* 尺寸 */
  --wrap: 1080px;
  --measure: 68ch;
  --radius: 10px;
  --radius-s: 6px;
  --shadow: 0 1px 2px rgba(16, 42, 67, .05);
  --shadow-lift: 0 8px 24px rgba(16, 42, 67, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink-body);
  font-family: var(--f-body); font-size: 16px; line-height: 1.78;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.35; }
h3 { font-size: 19px; margin: 28px 0 12px; }
h4 { font-size: 16px; }
p { margin: 10px 0; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; }
a:hover { border-bottom-color: var(--accent); }
strong { color: var(--ink); font-weight: 600; }
code {
  font-family: "Cascadia Code", Consolas, "Courier New", monospace;
  font-size: 12.5px; background: #EEF1F5; border: 1px solid var(--line-soft);
  padding: 1px 6px; border-radius: 4px; color: var(--accent-deep);
}
ul { padding-left: 1.3em; }
li { margin: 5px 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============ 顶栏 ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 11px; padding-bottom: 11px; flex-wrap: wrap; }
.brand { font-family: var(--f-display); font-size: 16.5px; font-weight: 600; color: var(--ink); letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.brand .seal-mini {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; font-family: var(--f-num);
}
.brand small { color: var(--ink-soft); font-family: var(--f-num); font-size: 11.5px; letter-spacing: .04em; font-weight: 400; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a {
  font-size: 13.5px; color: var(--ink-soft); padding: 6px 13px; border-radius: 6px;
  border-bottom: none; transition: color .15s, background .15s;
}
.nav a:hover { background: var(--accent-soft); color: var(--accent-deep); }
.nav a.active { color: #fff; background: var(--accent); font-weight: 600; }

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

/* ============ 报告头（Hero） ============ */
.hero {
  background: var(--card); border-bottom: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  padding: 52px 0 40px; margin-bottom: 40px; position: relative;
}
.hero .wrap { position: relative; }
.hero-seal { display: none; }  /* v1 印章已废弃，保留选择器兼容 */
.kicker {
  font-family: var(--f-num); font-size: 12px; font-weight: 700; letter-spacing: .18em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--accent); display: inline-block; }
.hero h1 {
  font-size: clamp(27px, 3.6vw, 38px); font-weight: 700; letter-spacing: .01em;
  margin: 0 0 16px; max-width: 22em;
}
.hero .lead { max-width: var(--measure); color: var(--ink-soft); font-size: 16.5px; margin: 0 0 22px; }
.hero .meta {
  font-size: 13px; color: var(--ink-soft); display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  border-top: 1px dashed var(--line); padding-top: 18px;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--bg);
  padding: 4px 11px; border-radius: 999px; font-size: 12.5px; color: var(--ink-soft);
}

/* ============ 章节导航 TOC ============ */
.toc {
  display: flex; flex-wrap: wrap; gap: 6px; margin: -16px 0 34px;
  padding: 13px 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: 13px; align-items: center;
}
.toc .toc-label { font-weight: 600; color: var(--ink); margin-right: 6px; font-size: 12.5px; letter-spacing: .06em; }
.toc a { color: var(--ink-soft); padding: 3px 10px; border-radius: 5px; border-bottom: none; white-space: nowrap; }
.toc a:hover { background: var(--accent-soft); color: var(--accent-deep); }

/* ============ 章节标题 ============ */
.main { padding-bottom: 30px; }
.block { margin-bottom: 58px; }
.sec-head { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 24px; }
.sec-head .no {
  font-family: var(--f-num); font-size: 13px; font-weight: 700; color: #fff;
  background: var(--ink); border-radius: 5px; padding: 4px 9px; letter-spacing: .05em;
  min-width: 34px; text-align: center;
}
.sec-head h2 { font-size: clamp(20px, 2.6vw, 26px); margin: 0; letter-spacing: .01em; font-weight: 700; }
.sec-head .hint { margin-left: auto; font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; font-family: var(--f-num); }
@media (max-width: 640px) { .sec-head .hint { display: none; } }

.lead { font-size: 16.5px; color: var(--ink); }
.note { font-size: 13px; color: var(--ink-soft); }
.q-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 700; margin-right: 8px; vertical-align: 2px;
}

/* ============ 证据徽章 ============ */
.seal-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 19px; height: 19px; padding: 0 5px;
  font-family: var(--f-num); font-size: 11px; font-weight: 700;
  border: 1px solid; border-radius: 4px; vertical-align: 2px; margin: 0 1px;
}
.seal-badge.grade-a { color: var(--ga); border-color: var(--ga); background: var(--ga-soft); }
.seal-badge.grade-b { color: var(--gb); border-color: var(--gb); background: var(--gb-soft); }
.seal-badge.grade-c { color: var(--gc); border-color: var(--gc); background: var(--gc-soft); }
.seal-badge.grade-d { color: var(--gd); border-color: var(--gd); background: var(--gd-soft); }
.seal-mini {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 5px; font-size: 12px; font-weight: 700;
  background: var(--ink); color: #fff;
}
.evidence-legend {
  display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; margin: 16px 0; box-shadow: var(--shadow); align-items: center;
}
.evidence-legend .item { display: inline-flex; align-items: center; gap: 7px; }

/* ============ 卡片网格 ============ */
.grid { display: grid; gap: 16px; margin: 18px 0; }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.g3, .grid.g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
  transition: box-shadow .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow-lift); border-color: #C9D3DF; }
.card h3, .card h4 { margin-top: 0; }
.card h4 { color: var(--ink); font-size: 15.5px; margin-bottom: 8px; font-weight: 600; }
.card p { font-size: 14.5px; }
.card .big {
  font-family: var(--f-num); font-size: 34px; font-weight: 700; color: var(--ink);
  line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
.card .big small { font-size: 14px; color: var(--ink-soft); font-weight: 400; margin-left: 4px; }
.card .cap { font-size: 12.5px; color: var(--ink-soft); }

/* 核心结论卡（原印章卡的professional重释义） */
.card.verdict {
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), var(--card) 55%);
  position: relative;
}
.card.verdict h3 { font-size: 19px; font-weight: 700; }
.verdict-stamp {
  position: static; display: inline-block; transform: none;
  font-family: var(--f-num); font-size: 11px; font-weight: 700; letter-spacing: .16em;
  color: var(--accent-deep); background: #fff; border: 1px solid var(--accent);
  border-radius: 4px; padding: 3px 9px; margin-bottom: 10px;
}

/* ============ 标注块 ============ */
.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  background: var(--card); border-radius: var(--radius-s);
  padding: 15px 19px; margin: 18px 0; box-shadow: var(--shadow);
}
.callout p { margin: 4px 0; font-size: 14.5px; }
.callout .t { font-weight: 700; color: var(--ink); margin-bottom: 4px; display: block; font-size: 14.5px; }
.callout.key  { border-left-color: var(--accent); background: linear-gradient(90deg, var(--accent-soft), var(--card) 45%); }
.callout.good { border-left-color: var(--ga);  background: linear-gradient(90deg, var(--ga-soft), var(--card) 45%); }
.callout.warn { border-left-color: var(--gc);  background: linear-gradient(90deg, var(--gc-soft), var(--card) 45%); }
.callout.mute { border-left-color: var(--gd);  background: linear-gradient(90deg, var(--gd-soft), var(--card) 45%); }
.callout p.warn-inline {
  margin-top: 12px; padding: 11px 14px;
  border-left: 3px solid var(--gc); border-radius: var(--radius-s);
  background: var(--gc-soft); font-size: 14px;
}

/* ============ 标签 ============ */
.tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  border: 1px solid var(--line); color: var(--ink-soft); border-radius: 999px;
  padding: 2px 11px; margin-bottom: 10px; background: var(--bg);
}
.tag.seal-red { color: var(--highlight); border-color: var(--highlight); background: #FBEEEC; }
.tag.jade { color: var(--ga); border-color: var(--ga); background: var(--ga-soft); }
.tag.amber { color: var(--gc); border-color: var(--gc); background: var(--gc-soft); }

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); margin: 16px 0; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left; font-size: 12.5px; letter-spacing: .05em; color: var(--ink-soft);
  font-weight: 600; background: #F0F3F7; padding: 10px 14px; border-bottom: 1.5px solid var(--line);
  white-space: nowrap;
}
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover td { background: #F7FAFD; }
table.data .row-head { font-weight: 600; color: var(--ink); white-space: nowrap; }
table.data .num { font-family: var(--f-num); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* ============ 图表 ============ */
.chart {
  width: 100%; height: 380px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px; margin: 14px 0 4px;
}
.chart.tall { height: 460px; }
.chart-title { font-size: 14px; color: var(--ink); font-weight: 600; margin: 18px 0 2px; }
.chart-note { font-size: 12.5px; color: var(--ink-soft); margin: 6px 2px 0; }

/* ============ 成本构成图（卷六专用） ============ */
.cost-chart {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 18px 18px; margin: 18px 0 4px;
}
.cost-chart svg { display: block; width: 100%; max-width: 680px; height: auto; margin: 0 auto; }
.cost-chart .chart-note { margin-top: 8px; }

/* ============ 分段切换 ============ */
.seg { display: inline-flex; gap: 4px; background: #E9EDF2; border: 1px solid var(--line); border-radius: 8px; padding: 4px; margin: 8px 0; flex-wrap: wrap; }
.seg button {
  border: none; background: transparent; padding: 7px 16px; border-radius: 6px;
  font-size: 13.5px; color: var(--ink-soft); cursor: pointer; font-family: var(--f-body);
  transition: all .15s;
}
.seg button:hover { color: var(--ink); }
.seg button.active { background: var(--card); color: var(--accent-deep); font-weight: 600; box-shadow: var(--shadow); }

/* ============ 时间轴 ============ */
.timeline { position: relative; margin: 24px 0; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline .t-item { position: relative; margin-bottom: 22px; }
.timeline .t-item::before {
  content: ""; position: absolute; left: -25px; top: 7px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--card); border: 2.5px solid var(--accent);
}
.timeline .t-item.hot::before { border-color: var(--highlight); }
.timeline .t-item .t-date { font-family: var(--f-num); font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: .04em; }
.timeline .t-item h4 { margin: 2px 0 6px; color: var(--ink); font-size: 16px; }
.timeline .t-item p { font-size: 14px; margin: 0; }

/* 横向时间轴 */
.h-timeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; padding: 6px 2px 16px; scroll-snap-type: x mandatory; }
.h-timeline .t-cell { scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); border-top: 3px solid var(--accent); }
.h-timeline .t-cell .t-date { font-family: var(--f-num); font-size: 12.5px; color: var(--accent); font-weight: 700; letter-spacing: .04em; }
.h-timeline .t-cell h4 { margin: 4px 0 8px; font-size: 15.5px; }
.h-timeline .t-cell p { font-size: 13.5px; margin: 0; color: var(--ink-body); }
.h-timeline .t-cell.now { border-top-color: var(--highlight); }
.h-timeline .t-cell.now .t-date { color: var(--highlight); }

/* ============ 清单 ============ */
.checklist, .redflags { list-style: none; padding: 0; margin: 10px 0; }
.checklist li, .redflags li {
  padding: 9px 12px 9px 32px; position: relative; font-size: 14.5px;
  border-bottom: 1px dashed var(--line-soft);
}
.checklist li::before { content: "✓"; position: absolute; left: 8px; color: var(--ga); font-weight: 700; }
.redflags li::before { content: "✕"; position: absolute; left: 8px; color: var(--highlight); font-weight: 700; }
.checklist li:last-child, .redflags li:last-child { border-bottom: none; }

/* ============ 四象限 ============ */
.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; position: relative; }
@media (max-width: 620px) { .quad { grid-template-columns: 1fr; } }
.quad .q-cell {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.quad .q-cell.ideal { border-color: var(--ga); background: linear-gradient(135deg, var(--ga-soft), var(--card) 60%); }
.quad .q-cell h4 { margin: 0 0 8px; font-size: 15.5px; }
.quad .q-cell p { font-size: 14px; margin: 0; }
.quad-axis { text-align: center; font-size: 12.5px; color: var(--ink-soft); font-family: var(--f-num); letter-spacing: .08em; padding: 4px 0; }

/* ============ 来源列表 ============ */
.source-list { padding-left: 0; list-style: none; counter-reset: src; }
.source-list li {
  counter-increment: src; position: relative; padding: 10px 12px 10px 42px;
  border-bottom: 1px dashed var(--line-soft); font-size: 13.5px; color: var(--ink-body);
}
.source-list li::before {
  content: counter(src, decimal-leading-zero); position: absolute; left: 10px; top: 11px;
  font-family: var(--f-num); font-size: 11.5px; font-weight: 700; color: var(--ink-soft);
}
.source-list li:last-child { border-bottom: none; }

/* ============ 莞城决策页专用组件 ============ */
.flow-steps {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 20px 0 26px;
}
.flow-step {
  position: relative; min-height: 128px; padding: 18px 14px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.flow-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -10px; top: 46%; z-index: 2;
  color: var(--accent); font-weight: 700; background: var(--bg); line-height: 1;
}
.flow-step > span {
  display: inline-flex; width: 25px; height: 25px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--f-num);
  font-size: 12px; font-weight: 700; margin-bottom: 9px;
}
.flow-step strong, .flow-step small { display: block; }
.flow-step strong { color: var(--ink); font-size: 14px; }
.flow-step small { color: var(--ink-soft); font-size: 12px; line-height: 1.55; margin-top: 5px; }

.risk {
  display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.risk.low { color: var(--ga); background: var(--ga-soft); }
.risk.high { color: var(--highlight); background: #FBEEEC; }

.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 18px 0; }
.choice-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.choice-card.featured { border-top: 4px solid var(--ga); background: linear-gradient(145deg, var(--ga-soft), var(--card) 50%); }
.choice-card h3 { margin: 2px 0 10px; }
.choice-card li { font-size: 14px; }
.choice-number { font-family: var(--f-num); color: var(--ink); font-size: 40px; font-weight: 700; line-height: 1; margin: 12px 0 18px; }
.choice-number small { color: var(--ink-soft); font-size: 13px; font-weight: 400; margin-left: 6px; }

.quota-bars {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); margin: 18px 0;
}
.quota-bars > div {
  display: grid; grid-template-columns: 155px 1fr 64px; align-items: center; gap: 12px;
  margin: 11px 0; font-size: 13px;
}
.quota-bars i { display: block; height: 14px; border-radius: 999px; background: var(--line-soft); overflow: hidden; position: relative; }
.quota-bars i::before { content: ""; display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--accent); }
.quota-bars b { text-align: right; font-family: var(--f-num); color: var(--ink); }

.decision-table, .scorecard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin: 18px 0;
}
.decision-row, .scorecard > div {
  display: grid; grid-template-columns: minmax(230px, .8fr) 1.2fr; gap: 18px;
  padding: 15px 18px; border-bottom: 1px solid var(--line-soft); align-items: start;
}
.decision-row:last-child, .scorecard > div:last-child { border-bottom: none; }
.decision-row strong, .scorecard b { color: var(--ink); font-size: 14px; }
.decision-row span, .scorecard span { color: var(--ink-body); font-size: 14px; }
.scorecard b { color: var(--accent-deep); }

.formula-box {
  padding: 18px 20px; background: var(--ink); color: #fff; border-radius: var(--radius);
  margin: 14px 0; box-shadow: var(--shadow-lift);
}
.formula-box code { display: block; border: none; background: transparent; color: #fff; font-size: 15px; padding: 0; }
.formula-box p { color: #DDE7F1; font-size: 13px; margin-bottom: 0; }

.calc-shell {
  display: grid; grid-template-columns: minmax(280px, .9fr) minmax(340px, 1.1fr); gap: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); margin: 18px 0;
}
.calc-inputs { display: grid; gap: 12px; align-content: start; }
.calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc-inputs label {
  display: grid; gap: 5px; color: var(--ink-soft); font-size: 12.5px; font-weight: 600;
}
.calc-inputs input {
  width: 100%; border: 1px solid #C9D3DF; border-radius: 6px; background: #fff;
  color: var(--ink); font-family: var(--f-num); font-size: 14px; padding: 9px 10px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.calc-inputs input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.calc-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.calc-results > div {
  min-height: 86px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg);
  padding: 12px 14px; display: flex; flex-direction: column; justify-content: center;
}
.calc-results > div.primary { border-color: var(--accent); background: var(--accent-soft); }
.calc-results span { color: var(--ink-soft); font-size: 12px; }
.calc-results strong { color: var(--ink); font-family: var(--f-num); font-size: 20px; line-height: 1.25; margin-top: 4px; }
.calc-results small { color: var(--ink-soft); font-size: 10.5px; line-height: 1.4; margin-top: 4px; }
.date-results > div { min-height: 92px; }

/* ============ 学校卷 / 育人卷 ============ */
.school-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px; margin: 18px 0 22px;
}
.school-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow); border-top: 4px solid var(--accent);
}
.school-card:nth-child(2) { border-top-color: var(--ga); }
.school-card:nth-child(3) { border-top-color: var(--gc); }
.school-card:nth-child(4) { border-top-color: var(--highlight); }
.school-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.school-card-head h3 { margin: 0; font-size: 19px; }
.school-card p { font-size: 14px; }
.school-fact { padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.school-question { margin-bottom: 0; color: var(--ink-soft); }

.compare-strip, .impact-chain {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin: 20px 0;
}
.compare-strip > div, .impact-chain > div {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 17px 18px; box-shadow: var(--shadow);
}
.compare-strip span, .impact-chain span {
  display: inline-block; color: var(--accent); font-family: var(--f-num);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; margin-bottom: 6px;
}
.compare-strip strong, .impact-chain strong { display: block; color: var(--ink); font-size: 15px; }
.compare-strip p, .impact-chain p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.impact-chain { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.impact-chain > div { position: relative; border-top: 3px solid var(--accent); }

/* 房屋选择篇 */
.property-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; margin: 18px 0;
}
.property-card {
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow);
}
.property-card.top { border-top-color: var(--ga); background: linear-gradient(145deg, var(--ga-soft), var(--card) 52%); }
.property-card.caution { border-top-color: var(--gc); }
.property-card h3 { margin: 5px 0 7px; font-size: 19px; }
.property-card p { font-size: 13.8px; }
.property-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.property-head .tag { margin-bottom: 0; }
.market-depth { color: var(--ink-soft); font-size: 11.5px; }
.property-price {
  color: var(--accent-deep); font-family: var(--f-num); font-size: 16px;
  font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft);
}

.calc-inputs select {
  width: 100%; margin-top: 5px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--card); color: var(--ink); padding: 9px 10px; font-family: var(--f-body);
  font-size: 14px; outline: none;
}
.calc-inputs select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.home-results {
  min-height: 260px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.tool-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.tool-summary strong { color: var(--ink); font-size: 16px; }
.tool-summary span { color: var(--ink-soft); font-size: 12px; }
.home-result {
  display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 13px 4px;
  border-bottom: 1px solid var(--line-soft); align-items: start;
}
.home-result:last-of-type { border-bottom: none; }
.home-result .rank {
  display: inline-flex; width: 29px; height: 29px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--f-num);
  font-size: 12px; font-weight: 700;
}
.home-result h4 { margin: 1px 0 4px; font-size: 15px; }
.home-result p { margin: 0 0 4px; font-size: 13px; line-height: 1.55; }
.home-result small { display: block; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }

.fit-matrix td:nth-child(2), .fit-matrix td:nth-child(3), .fit-matrix td:nth-child(4) { min-width: 210px; }
.fit-tool #fit-list { display: grid; gap: 8px; }
.fit-tool #fit-list label {
  display: flex; align-items: flex-start; gap: 9px; padding: 9px 10px;
  border: 1px solid var(--line-soft); border-radius: 7px; background: var(--paper);
  color: var(--ink-body); font-size: 14px; cursor: pointer;
}
.fit-tool #fit-list label:hover { border-color: var(--accent); background: var(--accent-soft); }
.fit-tool #fit-list input { margin-top: 3px; accent-color: var(--accent); }
.fit-tool #fit-result { background: var(--paper-deep); min-height: 145px; }
.fit-tool #fit-result p:first-child { margin-top: 0; }
.fit-tool #fit-result p:last-child { margin-bottom: 0; }

/* ============ 成本计算器：输入分组 / 复选 / 校验标签 ============ */
.calc-inputs .input-sep {
  grid-column: 1 / -1; margin: 6px 0 -2px; padding-bottom: 5px;
  border-bottom: 1px dashed var(--line);
  color: var(--accent-deep); font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
}
.calc-inputs .check-row {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 6px;
  background: var(--paper); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.calc-inputs .check-row input { width: 15px; height: 15px; accent-color: var(--accent); margin: 0; }
.calc-inputs .check-row span { color: var(--ink-body); }
.calc-inputs .input-hint {
  grid-column: 1 / -1; margin: -6px 0 0; color: var(--ink-soft);
  font-size: 11.5px; line-height: 1.5;
}
.tag-ok, .tag-fix, .tag-new, .tag-warn {
  display: inline-block; padding: 1px 7px; border-radius: 4px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.tag-ok  { background: var(--ga-soft); color: var(--ga); }
.tag-fix { background: var(--gc-soft); color: var(--gc); }
.tag-new { background: var(--accent-soft); color: var(--accent-deep); }
.tag-warn{ background: var(--gd-soft); color: var(--gd); }
.data code, .formula-box code {
  font-family: var(--f-num); font-size: 12.5px;
  background: rgba(127, 140, 158, .13); padding: 1px 5px; border-radius: 4px;
}
.formula-box code { background: rgba(255, 255, 255, .12); color: #fff; font-size: 15px; }
.formula-box .formula-box { background: rgba(0, 0, 0, .28); margin: 10px 0 0; padding: 12px 14px; }

@media (max-width: 900px) {
  .flow-steps { grid-template-columns: repeat(3, 1fr); }
  .flow-step:nth-child(3)::after { display: none; }
  .calc-shell { grid-template-columns: 1fr; }
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .flow-steps, .choice-grid, .school-grid, .compare-strip, .impact-chain, .property-grid { grid-template-columns: 1fr; }
  .flow-step:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -12px; }
  .quota-bars > div { grid-template-columns: 1fr 52px; gap: 6px 10px; }
  .quota-bars i { grid-column: 1 / -1; grid-row: 2; }
  .quota-bars b { grid-column: 2; grid-row: 1; }
  .decision-row, .scorecard > div { grid-template-columns: 1fr; gap: 4px; }
  .calc-grid, .calc-results { grid-template-columns: 1fr; }
  .calc-shell { padding: 16px; }
  .tool-summary { display: grid; gap: 2px; }
}

/* ============ 页脚 ============ */
footer.site {
  border-top: 1px solid var(--line); background: var(--card);
  padding: 26px 0 40px; margin-top: 30px;
  font-size: 13px; color: var(--ink-soft);
}
footer.site p { margin: 4px 0; }

/* ============ 滚动显现 ============ */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ 打印 ============ */
@media print {
  body { background: #fff; }
  .topbar, .toc { display: none; }
  .hero { border-top: none; padding: 20px 0; }
  .card, .callout, .table-wrap, .chart { box-shadow: none; break-inside: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
