/* ============================================================
   也谈钱 · 保险清单 — 整理页
   移动优先；断点：720px（布局重排）/ 960px（多列展开）
   ============================================================ */

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ink: #16232f;
  --body: #33475c;
  --muted: #566a7f;
  --faint: #7d90a3;

  --line: #e3eaf1;
  --line-strong: #cfdae5;

  --accent: #0b6e99;
  --accent-deep: #084e6d;
  --accent-soft: #e9f3f8;
  --accent-line: #b9d9e9;

  --amber-ink: #8a4b0f;
  --amber-mid: #c47a1a;
  --amber-soft: #fdf4e5;
  --amber-line: #eed9b4;

  --watch-ink: #46566a;
  --watch-soft: #edf1f6;

  --header-h: 56px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(22, 35, 47, 0.04), 0 8px 24px -18px rgba(22, 35, 47, 0.25);
  --shadow-rec: 0 1px 2px rgba(11, 110, 153, 0.06), 0 10px 28px -16px rgba(11, 110, 153, 0.3);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; margin: 0; }
p { margin: 0; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 0.9em;
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--accent-deep);
}

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

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 10px; height: 100%; }
.brand {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 700; font-size: 15px;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 22px; height: 22px; color: var(--accent); flex: none; }
/* 期次切换控件：琥珀软底 + 标签，醒目可点（下拉本身已显示当前期次） */
.period-switch {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  background: var(--amber-soft);
  border: 1px solid var(--amber-line);
  border-radius: 12px;
  padding: 3px 5px 3px 11px;
}
.period-switch-label {
  font-size: 12.5px; font-weight: 700; color: var(--amber-ink);
  letter-spacing: 0.05em; white-space: nowrap; cursor: pointer;
}
.period-select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 700; color: var(--amber-ink);
  background-color: var(--surface); border: 1px solid var(--amber-line);
  border-radius: 9px; padding: 4px 24px 4px 11px; white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a4b0f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 9px auto;
}
.period-select:hover { border-color: var(--amber-mid); }
.period-select:focus-visible { outline: 2px solid var(--amber-mid); outline-offset: 1px; }
@media (max-width: 719px) {
  /* 小屏收起「期次 / 历史」标签，保留下拉（本身已显示期次），避免顶栏溢出 */
  .period-switch-label { display: none; }
}
/* 汉堡按钮：<960px 显示，展开后切换为关闭图标 */
.nav-toggle {
  margin-left: auto; flex: none;
  appearance: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong);
}
.nav-toggle:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.nav-toggle svg { width: 20px; height: 20px; display: block; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-bars { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* 移动端导航：默认隐藏，展开时为顶栏正下方的全宽面板
   （absolute 相对 .site-header 定位，不影响 56px 顶栏高度） */
.top-nav {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
  display: none;
  flex-direction: column; gap: 2px;
  padding: 10px 16px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 24px -18px rgba(22, 35, 47, 0.35);
}
.nav-open .top-nav { display: flex; }
.top-nav a {
  display: block; white-space: nowrap;
  color: var(--ink); font-size: 15px; font-weight: 500;
  padding: 12px; border-radius: 8px;
}
.top-nav a:hover { color: var(--accent-deep); background: var(--accent-soft); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 44px 0 40px;
  background:
    radial-gradient(900px 340px at 50% -120px, #ddecf5 0%, rgba(221, 236, 245, 0) 70%),
    radial-gradient(640px 300px at 84% -100px, rgba(212, 160, 23, 0.13) 0%, rgba(212, 160, 23, 0) 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--amber-ink); margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(27px, 5.4vw, 42px);
  font-weight: 800; letter-spacing: 0.01em;
  max-width: 640px;
}
.hero-title mark {
  background: linear-gradient(transparent 62%, var(--accent-line) 62%);
  color: inherit; padding: 0 2px;
}
/* 首屏概述短文（source.overview），内嵌产品名按钮 */
.hero-overview { margin-top: 16px; font-size: 15px; line-height: 1.9; max-width: 680px; color: var(--body); }
/* 首屏提示条：引导切换期次 / 查看历史说明 */
.period-hint {
  margin-top: 14px; max-width: max-content;
  font-size: 13.5px; color: var(--muted);
  background: var(--amber-soft); border: 1px solid var(--amber-line);
  border-radius: 999px; padding: 6px 14px;
}
.period-hint a {
  color: var(--amber-ink); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}
.prod-link {
  appearance: none; font-family: inherit; font-size: inherit; line-height: inherit;
  color: var(--accent-deep); background: none; border: 0; padding: 0; margin: 0;
  cursor: pointer; font-weight: 600;
  border-bottom: 1.5px dotted var(--accent);
}
.prod-link:hover { color: var(--accent); background: var(--accent-soft); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px;
}
.chip strong { color: var(--ink); font-weight: 600; }
.chip-note {
  background: var(--amber-soft); border-color: var(--amber-line); color: var(--amber-ink);
  font-weight: 600;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #9a5b12; }
.btn-ghost {
  background: var(--surface); color: var(--accent-deep);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.hero-disclaimer {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 22px; font-size: 13px; color: var(--faint); max-width: 560px;
}
.hero-disclaimer .icon { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--amber-ink); }

/* ---------- 区块通用 ---------- */
.section { padding: 44px 0 8px; scroll-margin-top: calc(var(--header-h) + 12px); }
#matrix, #list, #history, #about { scroll-margin-top: calc(var(--header-h) + 84px); }
.section-head { margin-bottom: 24px; }
.section-head h2 { font-size: clamp(22px, 3.4vw, 28px); font-weight: 800; }
.section-head p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }

/* ---------- 配置顺序（置顶大块，大标题加强） ---------- */
.section-order {
  padding: 40px 0 46px;
  background: linear-gradient(180deg, #e5f0f7 0%, rgba(229, 240, 247, 0.35) 72%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}
.order-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--amber-ink);
}
.order-bigtitle {
  margin-top: 8px;
  font-size: clamp(30px, 6vw, 44px);
  font-weight: 800; letter-spacing: 0.01em; color: var(--ink);
}
.order-lead { margin-top: 10px; font-size: 15px; color: var(--muted); max-width: 660px; }
.section-order .order-grid { margin-top: 26px; margin-bottom: 0; }
.section-order .order-card { border-color: var(--accent-line); box-shadow: var(--shadow-rec); }
.section-order .order-title { font-size: 18px; }
.section-order .order-steps { margin-top: 16px; }

/* ---------- 筛选条（作用于一览 + 清单） ---------- */
.filter-bar {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(245, 247, 250, 0.94);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border-block: 1px solid var(--line);
}
.filter-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px 20px; padding-block: 10px;
}
.fgroup { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.flabel {
  flex: none; font-size: 12px; font-weight: 700;
  color: var(--faint); letter-spacing: 0.08em;
}
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip {
  appearance: none; cursor: pointer; font-family: inherit;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 5px 13px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.fchip:hover { border-color: var(--accent); color: var(--ink); }
.fchip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.fchip:focus-visible { outline-offset: 1px; }
.freset {
  appearance: none; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 600; color: var(--accent-deep);
  background: transparent; border: 1px dashed var(--line-strong);
  border-radius: 999px; padding: 5px 13px;
}
.freset:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- 配置顺序 ---------- */
.order-grid { display: grid; gap: 14px; margin-bottom: 36px; }
.order-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-card);
}
.order-title { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.order-title::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.order-steps { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: step; }
.order-steps li {
  counter-increment: step;
  position: relative; padding-left: 34px; padding-block: 3px;
  font-size: 14px; color: var(--body);
}
.order-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 5px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.order-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 10px; top: 30px; bottom: -6px;
  width: 2px; background: var(--line); border-radius: 2px;
}
.step-note { color: var(--faint); font-size: 13px; margin-left: 2px; }

/* ---------- 人群×险种矩阵 ---------- */
.matrix-block {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 16px 20px; box-shadow: var(--shadow-card);
}
.matrix-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px; padding-inline: 2px;
}
.matrix-head h3 { font-size: 16px; font-weight: 700; }
.legend { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; flex-wrap: wrap; }
.legend li { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-rec { background: var(--accent); }
.dot-opt { background: var(--surface); border: 2px solid var(--accent); width: 7px; height: 7px; }
.dot-watch { background: var(--faint); }
.dot-na { background: transparent; border: 1.5px dashed var(--line-strong); width: 7px; height: 7px; }

/* 列数随勾选的人群数动态设置（JS 写入内联 grid-template-columns） */
.matrix { display: grid; gap: 8px; grid-template-columns: 60px repeat(3, minmax(0, 1fr)); }
.mx-head { display: contents; }
.mx-corner {
  display: flex; align-items: center;
  font-size: 11px; color: var(--faint); letter-spacing: 0.05em;
}
.mx-aud-head {
  text-align: center; font-size: 12px; font-weight: 700; color: var(--muted);
  padding-bottom: 2px;
}
.mx-label { display: flex; align-items: center; font-size: 13px; font-weight: 700; color: var(--ink); }
.mx-cell {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 9px 10px;
  display: flex; flex-direction: column; gap: 2px; min-height: 44px; justify-content: center;
}
button.mx-cell { appearance: none; font-family: inherit; text-align: left; width: 100%; cursor: pointer; }
.mx-prod-btn:hover { border-color: var(--accent); box-shadow: var(--shadow-rec); }
.mx-na-btn { font-size: 13px; color: var(--faint); }
.mx-na-btn:hover { color: var(--muted); background: var(--surface); }
.mx-prod { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.45; min-width: 0; }
.mx-prod-name { min-width: 0; overflow-wrap: anywhere; }
.mx-cell.t-rec { border-color: var(--accent-line); background: var(--accent-soft); }
.mx-cell.t-rec .mx-prod { color: var(--accent-deep); }
.mx-cell.is-na { border-style: dashed; background: transparent; }
.mx-na { font-size: 13px; color: var(--faint); }
.matrix-empty { color: var(--muted); font-size: 14px; padding: 16px 2px; }
.matrix-hint { margin-top: 14px; font-size: 12.5px; color: var(--faint); padding-inline: 2px; }



.switch-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  cursor: pointer; user-select: none;
  padding: 8px 2px 8px 8px; flex: none;
}
.switch { position: relative; display: inline-flex; }
.switch input {
  position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer;
}
.switch-track {
  width: 40px; height: 22px; border-radius: 999px;
  background: var(--line-strong); position: relative;
  transition: background 0.18s;
}
.switch-track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s;
}
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }

.filter-note {
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent-deep); font-size: 13.5px;
  border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px;
}

/* ---------- 清单列表（含储蓄险） ---------- */
.section-list { padding-bottom: 44px; }
.list-group { margin-bottom: 30px; }
.lg-head { display: flex; align-items: baseline; gap: 10px; }
.lg-title { font-size: 20px; font-weight: 800; }
.lg-count { font-size: 12.5px; color: var(--faint); }
.lg-blurb { margin: 4px 0 14px; font-size: 13.5px; color: var(--muted); max-width: 720px; }
.list-empty { color: var(--muted); font-size: 14px; padding: 24px 0; }

.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.pcard {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.pcard-rec { border-color: var(--accent-line); border-left: 3px solid #d4a017; box-shadow: var(--shadow-rec); }
.pcard-watch { background: #fafbfd; }
.pcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.badge {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  border-radius: 6px; padding: 2px 9px; white-space: nowrap;
}
.badge-rec {
  background: var(--amber-soft); color: var(--amber-ink);
  border: 1px solid var(--amber-line); padding: 1px 8px;
}
.badge-opt { background: var(--accent-soft); color: var(--accent-deep); border: 1px solid var(--accent-line); padding: 1px 8px; }
.badge-watch { background: var(--watch-soft); color: var(--watch-ink); }
.pcard-aud {
  font-size: 12px; color: var(--faint);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 10px; white-space: nowrap;
}
.pcard { cursor: pointer; }
.pcard-name-btn {
  appearance: none; background: none; border: 0; padding: 0; margin: 0;
  width: 100%; text-align: left; cursor: pointer; font-family: inherit;
}
.pcard-name { font-size: 17px; font-weight: 700; }
.pcard-name-btn:hover .pcard-name { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.pcard-summary {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--body);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.pcard-foot { margin-top: auto; padding-top: 14px; }
.pcard-more {
  appearance: none; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 600; color: var(--accent-deep);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: 999px; padding: 4px 13px;
}
.pcard-more:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.pcard-list { list-style: none; margin: 12px 0 0; padding: 0; }
.pcard-list li {
  position: relative; padding-left: 15px;
  font-size: 13.5px; line-height: 1.68; color: var(--body);
  padding-block: 2.5px;
}
.pcard-list li::before {
  content: ""; position: absolute; left: 2px; top: 12px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong);
}
.pcard-rec .pcard-list li::before { background: var(--accent); }
.pcard-rec .pcard-list li:first-child::before { background: var(--accent); }


/* ---------- 产品浮层（页面唯一 dialog：产品详情 / 非必需说明） ---------- */
.dlg {
  border: 0; border-radius: 16px; padding: 0;
  width: min(560px, calc(100vw - 28px));
  max-height: min(84vh, 760px);
  box-shadow: 0 24px 64px -24px rgba(22, 35, 47, 0.45);
  color: var(--body);
}
.dlg[open] { display: flex; flex-direction: column; }
.dlg::backdrop { background: rgba(22, 35, 47, 0.45); }
.dlg-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 18px 20px 0;
}
.dlg-title { font-size: 19px; font-weight: 800; line-height: 1.4; color: var(--ink); }
.dlg-close {
  appearance: none; cursor: pointer; flex: none;
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.dlg-close:hover { color: var(--ink); border-color: var(--accent); background: var(--accent-soft); }
.dlg-close svg { width: 15px; height: 15px; display: block; }
.dlg-body { padding: 0 20px 20px; overflow-y: auto; }
.dlg-meta {
  margin-top: 14px;
  display: flex; flex-direction: column; gap: 6px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 11px 13px;
}
.dlg-row { display: flex; gap: 10px; font-size: 13.5px; }
.dlg-key { flex: none; width: 64px; color: var(--faint); }
.dlg-val { color: var(--ink); font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.dlg-none { color: var(--faint); font-weight: 400; }
.dlg-summary { margin-top: 14px; font-size: 14px; line-height: 1.75; }
.dlg-block { margin-top: 16px; }
.dlg-block h4 {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--faint); margin-bottom: 6px;
}
.dlg-list { list-style: none; margin: 0; padding: 0; }
.dlg-list li {
  position: relative; padding-left: 14px;
  font-size: 13.5px; line-height: 1.7; padding-block: 2.5px;
}
.dlg-list li::before {
  content: ""; position: absolute; left: 1px; top: 12px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.dlg-para { font-size: 14px; line-height: 1.8; }
.dlg-para + .dlg-para { margin-top: 8px; }

@media (max-width: 480px) {
  .dlg { width: calc(100vw - 16px); border-radius: 14px; }
  .dlg-head { padding: 14px 14px 0; }
  .dlg-body { padding: 0 14px 16px; }
  .dlg-title { font-size: 17px; }
  .dlg-row { font-size: 13px; }
  .dlg-key { width: 58px; }
}

/* ---------- 历史期次 ---------- */
.section-history { padding-bottom: 44px; }
.history-panel {
  background: linear-gradient(180deg, #fffdf8 0%, var(--amber-soft) 100%);
  border: 1px solid var(--amber-line);
  border-left: 4px solid #d4a017;
  border-radius: var(--radius);
  padding: 18px;
  display: grid; gap: 20px;
  box-shadow: var(--shadow-card);
}
.history-sub {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--amber-ink); margin-bottom: 10px;
}
.history-note { font-size: 13.5px; color: var(--muted); }
.history-btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.history-btn {
  appearance: none; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 700; color: var(--amber-ink);
  background: var(--surface); border: 1px solid var(--amber-line);
  border-radius: 999px; padding: 7px 18px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.history-btn:hover { border-color: var(--amber-mid); background: #fff; }
.history-btn.is-active { background: var(--amber-ink); border-color: var(--amber-ink); color: #fff; }
.history-btn:focus-visible { outline: 2px solid var(--amber-mid); outline-offset: 2px; }
.history-gaps-list, .history-diff-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.history-gap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13.5px; }
.history-gap-period { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.history-gap-tag {
  flex: none; font-size: 11.5px; font-weight: 700;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--muted); padding: 1px 9px;
}
.history-gap-tag.is-titleonly { border-color: var(--amber-line); color: var(--amber-ink); }
.history-gap-title { color: var(--muted); }
.history-diff-list li {
  position: relative; padding-left: 16px;
  font-size: 13.5px; line-height: 1.7; color: var(--body);
}
.history-diff-list li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: #d4a017;
}
.history-diff-more { margin-top: 10px; font-size: 12.5px; color: var(--faint); }

/* ---------- 数据说明 ---------- */
.about-grid { display: grid; gap: 14px; padding-bottom: 40px; }
.about-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-card);
}
.about-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.src-list { display: grid; grid-template-columns: 72px 1fr; gap: 8px 12px; margin: 0; }
.src-list dt { font-size: 13px; color: var(--faint); }
.src-list dd { margin: 0; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.about-steps { margin: 0; padding-left: 20px; font-size: 14px; }
.about-steps li { margin-bottom: 8px; }
.about-steps li:last-child { margin-bottom: 0; }
.about-list { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--body); }
.about-list li { margin-bottom: 6px; }
.about-list li:last-child { margin-bottom: 0; }
.about-disclaimer { border-left: 3px solid var(--amber-line); }
.about-disclaimer strong { color: var(--amber-ink); }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
  padding-block: 20px; font-size: 13px; color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.noscript-tip { padding-block: 24px; color: var(--amber-ink); }

/* ---------- 平板 ≥720px ---------- */
@media (min-width: 720px) {
  .wrap { padding-inline: 24px; }
  .hero { padding: 64px 0 52px; }
  .section { padding-top: 56px; }

  .order-grid { grid-template-columns: repeat(3, 1fr); }

  /* 矩阵列数由 JS 按勾选人群数内联设置 */
  .mx-corner { font-size: 12px; }
  .mx-aud-head { font-size: 13px; }
  .mx-label { font-size: 14px; }
  .mx-cell { flex-direction: row; align-items: center; padding: 9px 11px; }
  .mx-prod { align-items: center; font-size: 13.5px; gap: 7px; }

  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid .about-disclaimer { grid-column: 1 / -1; }
  .history-panel { padding: 22px 24px; }
}

/* ---------- 桌面 ≥960px ---------- */
@media (min-width: 960px) {
  :root { --header-h: 60px; }
  .header-inner { gap: 14px; }
  .brand { font-size: 16px; }
  /* 桌面：隐藏汉堡，恢复原有横向链接 */
  .nav-toggle { display: none; }
  .top-nav {
    position: static; display: flex; flex-direction: row;
    margin-left: auto; gap: 2px;
    padding: 0; background: transparent;
    border: 0; box-shadow: none;
  }
  .top-nav a {
    display: inline-block; color: var(--muted); font-size: 14px;
    padding: 8px 14px;
  }
  .top-nav a:hover { color: var(--ink); }
  .hero-title br { display: none; }
  .section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
  .matrix-block { padding: 22px 22px 24px; }
  .pcard:hover { transform: translateY(-2px); transition: transform 0.15s ease, box-shadow 0.15s ease; }
  .pcard { transition: transform 0.15s ease, box-shadow 0.15s ease; }
  .about-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid .about-disclaimer { grid-column: auto; }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
