/* ============================================================
   个人养老金决策工具 · 视觉 v2「金算盘」
   金黄主色 + 米白底 + 深棕文字，衬线大标题（参考站设计语言）
   功能样式契约与 v1 完全兼容：app.js 的 96 个 id、动态 class
   （chip / cond-chip / badge / tag-* / col-* / fld …）全部保留
   ============================================================ */
:root {
  --gold: #c2941f;
  --gold-deep: #96710f;
  --gold-bright: #e8c45c;
  --gold-soft: #faf3df;
  --gold-tint: #f1e5c4;
  --ink: #2b2314;
  --ink-2: #6b5d44;
  --ink-3: #99895f;
  --dark: #211a0d;
  --dark-2: #2e2515;
  --bg: #fbf7ee;
  --card: #ffffff;
  --line: #e7dcc0;
  --line-soft: #efe7d2;
  --shadow: 0 4px 14px rgba(43, 35, 20, 0.06);
  --shadow-lg: 0 18px 44px rgba(43, 35, 20, 0.12);
  --radius: 18px;
  --radius-sm: 10px;
  --bb-h: 3.2rem;
  --fs-1: 0.8rem;
  --fs-2: 0.92rem;
  --fs-3: 1.02rem;
  --fs-4: 1.18rem;
  --blk: 0.75rem;
  --serif: "Cormorant Garamond", "Noto Serif SC", Georgia, "Songti SC", SimSun, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-size: 17px; }
body {
  margin: 0;
  padding: 0 0 calc(var(--bb-h) + 1rem);
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.72 "Noto Sans SC", system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.01em;
}
::selection { background: var(--gold-bright); color: var(--dark); }
button, select, input { font: inherit; color: inherit; }
a { color: var(--gold-deep); }
h1, h2, h3 { font-family: var(--serif); letter-spacing: 0.01em; text-wrap: balance; }
img { max-width: 100%; display: block; }
section[id], details[id] { scroll-margin-top: 5rem; }

/* 键盘焦点统一金圈 */
.chip:focus-visible, .cond-chip:focus-visible,
#tbl .sort:focus-visible, #tbl td input:focus-visible,
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

/* ---------- 通用 ---------- */
.container { max-width: 76rem; margin: 0 auto; padding: 0 1.25rem; }
.section-header { text-align: center; margin: 0 auto 2.8rem; max-width: 46rem; }
.section-header .label {
  display: inline-block; font-size: var(--fs-1); font-weight: 700;
  letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 0.7rem;
}
.section-header h2 { font-size: clamp(1.9rem, 3.9vw, 2.65rem); font-weight: 600; margin: 0; line-height: 1.22; }
.section-header p { margin: 0.8rem auto 0; color: var(--ink-2); max-width: 42rem; font-size: 1.08rem; }

/* 滚动渐显（html.js 且未开启减弱动态时才隐藏待入场元素） */
html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal-delay-1 { transition-delay: 0.12s; }
html.js .reveal-delay-2 { transition-delay: 0.24s; }
html.js .reveal-delay-3 { transition-delay: 0.36s; }

/* ---------- 顶部导航 ---------- */
#siteNav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 247, 238, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#siteNav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(43, 35, 20, 0.07); }
.nav-inner { max-width: 76rem; margin: 0 auto; padding: 0.55rem 1.25rem; display: flex; align-items: center; gap: 1.4rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark {
  width: 2.1rem; height: 2.1rem; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 32% 28%, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #fff; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.12rem; line-height: 1;
  box-shadow: 0 2px 8px rgba(150, 113, 15, 0.35);
}
.brand-text { font-family: var(--serif); font-weight: 700; font-size: 1.18rem; }
.brand-text small { display: block; font-family: var(--serif); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-deep); }
.nav-links { display: flex; align-items: center; gap: 1.15rem; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: var(--fs-3); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold-deep); }
.nav-cta {
  border: 0; cursor: pointer; text-decoration: none;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 60%, var(--gold-deep));
  color: #fff; font-weight: 600; font-size: var(--fs-3);
  padding: 0.48rem 1.25rem; border-radius: 999px;
  box-shadow: 0 3px 10px rgba(150, 113, 15, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(150, 113, 15, 0.4); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--dark); }
.hero-bg {
  position: absolute; inset: 0;
  background: url("assets/hero.jpg") center 38% / cover no-repeat;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(33, 26, 13, 0.62) 0%, rgba(33, 26, 13, 0.24) 34%, rgba(33, 26, 13, 0.78) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 5.6rem 1.5rem 3.4rem; color: #fff; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.42); border-radius: 999px;
  padding: 0.4rem 1.1rem; font-size: 0.95rem; color: #f7efdc;
  background: rgba(33, 26, 13, 0.35); backdrop-filter: blur(4px);
}
.hero-badge::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--gold-bright); }
.hero-inner h1 {
  margin: 1.1rem 0 0.6rem; font-weight: 600;
  font-size: clamp(2.4rem, 5.8vw, 3.7rem); line-height: 1.16; color: #fff;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.35);
}
.hero-inner h1 em { font-style: normal; color: var(--gold-bright); }
.hero-inner .sub { margin: 0 auto 1.9rem; max-width: 43rem; font-size: 1.14rem; color: #efe7d4; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4); }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn-hero {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #fff; font-weight: 700; font-size: 1.06rem;
  padding: 0.82rem 2.1rem; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(150, 113, 15, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(150, 113, 15, 0.55); color: #fff; }
.btn-hero-ghost {
  display: inline-block; text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.65); color: #fff;
  padding: 0.82rem 1.9rem; border-radius: 999px; font-weight: 600; font-size: 1.06rem;
  transition: background 0.2s, border-color 0.2s;
}
.btn-hero-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; color: #fff; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 3rem; margin-top: 2.9rem; }
.hstat { min-width: 6.5rem; }
.hstat .hs-num { display: block; font-family: var(--serif); font-weight: 700; font-size: 2.45rem; line-height: 1.1; color: var(--gold-bright); font-variant-numeric: lining-nums; }
.hstat .hs-label { font-size: 0.98rem; color: #e7dcc2; }
.hero-stats-note { margin-top: 1rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }

/* 数据说明（玻璃卡） */
.src-block {
  position: relative; z-index: 1;
  margin: 2.4rem 1.25rem 0; padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm); color: #f2ead8;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  max-width: 73.5rem;
}
.src-block .src-dates { margin: 0 0 0.5rem; font-size: var(--fs-2); color: #eadfc4; }
.src-block .src-links { margin: 0 0 0.5rem; padding-left: 1.2em; font-size: var(--fs-2); }
.src-block .src-links a { color: var(--gold-bright); }
.src-block .src-links li { margin: 0.15rem 0; }
.src-block .src-note { margin: 0 0 0.25rem; font-size: var(--fs-2); color: rgba(242, 234, 216, 0.75); }
.src-block details { font-size: var(--fs-2); color: #eadfc4; }
.src-block summary { cursor: pointer; color: var(--gold-bright); }
.src-detail p { margin: 0.4rem 0; }
.src-wrap { position: relative; z-index: 1; display: flex; justify-content: center; background: linear-gradient(180deg, rgba(33,26,13,0) 0%, var(--dark) 60%); padding-bottom: 2.2rem; }
.hero + .src-wrap { margin-top: -1rem; }
.src-wrap .src-block { margin: 0 1.25rem; width: 100%; }
@media (min-width: 76rem) { .src-wrap .src-block { max-width: 73.5rem; } }

/* ---------- 加载 / 错误 ---------- */
.loading-box {
  max-width: 73.5rem; margin: var(--blk) auto; padding: 3rem 1rem;
  text-align: center; color: var(--ink-2);
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
}
.loading-box p { margin: 0; }
.error-box {
  max-width: 73.5rem; margin: var(--blk) auto; padding: 2.2rem 1rem;
  text-align: center; color: var(--ink-2);
  background: #fdf6f0; border: 1px solid #e8cdb4; border-radius: var(--radius);
}
.error-box p { margin: 0 0 0.8rem; }

/* ---------- 四步工具卡片 ---------- */
.entry-section { padding: 4.2rem 0 0.8rem; }
.entry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.tool-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 0.9rem;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.7rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tool-card::before {
  content: attr(data-step);
  position: absolute; top: 0.55rem; right: 1.05rem;
  font-family: var(--serif); font-weight: 700; font-size: 3.7rem; line-height: 1;
  color: var(--gold-tint); pointer-events: none;
}
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.tool-card .tc-step {
  display: inline-block; font-size: var(--fs-1); font-weight: 700;
  letter-spacing: 0.22em; color: var(--gold-deep); text-transform: uppercase;
}
.tool-card .tc-head { display: flex; align-items: center; gap: 0.6rem; margin: 0.2rem 0 0; }
.tool-card .tc-icon {
  width: 2.3rem; height: 2.3rem; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-deep);
}
.tool-card .tc-icon svg { width: 1.35rem; height: 1.35rem; }
.tool-card h2 { margin: 0; font-size: 1.4rem; font-weight: 600; }
.tool-card .tc-text { display: flex; flex-direction: column; flex: 1; }
.tool-card .tc-text p { margin: 0.55rem 0 0; color: var(--ink-2); font-size: 1.05rem; line-height: 1.7; flex: 1; }
.tool-card button { width: 100%; }

/* 通用按钮 */
button, .btn-like { border-radius: 999px; }
.btn-primary, .tool-card .btn-primary {
  border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #fff; font-weight: 700;
  padding: 0.58rem 1.7rem; font-size: 1rem;
  box-shadow: 0 4px 12px rgba(150, 113, 15, 0.28);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(150, 113, 15, 0.4); filter: brightness(1.03); }
button:not(.btn-primary):not(.nav-cta):not(.chip):not(.cond-chip):not(.sort):not(.thq) {
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  padding: 0.55rem 1.5rem; cursor: pointer; font-weight: 500; font-size: 1rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
button:not(.btn-primary):not(.nav-cta):not(.chip):not(.cond-chip):not(.sort):not(.thq):hover {
  border-color: var(--gold); color: var(--gold-deep); background: var(--gold-soft);
}
button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- 金色过渡横幅 ---------- */
.band {
  position: relative; margin-top: 3.2rem; overflow: hidden;
  background: var(--dark); color: #fff;
}
.band-bg { position: absolute; inset: 0; background: url("assets/band-family.jpg") center 30% / cover no-repeat; opacity: 0.85; }
.band-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(33, 26, 13, 0.88) 0%, rgba(33, 26, 13, 0.45) 55%, rgba(33, 26, 13, 0.25) 100%); }
.band-inner { position: relative; z-index: 1; padding: 5.4rem 1.5rem; max-width: 76rem; margin: 0 auto; }
.band-inner .label {
  display: inline-block; font-size: var(--fs-1); font-weight: 700;
  letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 0.8rem;
}
.band-inner h2 { font-size: clamp(1.9rem, 4.2vw, 2.75rem); font-weight: 600; margin: 0 0 0.9rem; max-width: 36rem; line-height: 1.28; }
.band-inner p { margin: 0 0 1.7rem; max-width: 40rem; color: #ece2cc; font-size: 1.08rem; line-height: 1.8; }

/* ---------- 指南板块（图文两栏） ---------- */
.guide-block { padding: 4.4rem 0 0.6rem; }
.guide-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 3rem; align-items: center; }
.guide-grid.rev .guide-media { order: -1; }
.guide-copy .label {
  display: inline-block; font-size: var(--fs-1); font-weight: 700;
  letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.7rem;
}
.guide-copy h2 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); font-weight: 600; margin: 0 0 1.1rem; line-height: 1.28; }
.guide-copy p { margin: 0 0 0.95rem; color: var(--ink-2); font-size: 1.06rem; line-height: 1.85; }
.guide-copy li { margin: 0 0 0.7rem; color: var(--ink-2); font-size: 1.06rem; line-height: 1.8; }
.guide-copy ul { padding-left: 1.2em; margin: 0 0 0.85rem; }
.guide-copy strong { color: var(--ink); }
.guide-media { display: grid; gap: 1rem; }
.guide-media img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); object-fit: cover;
}
.guide-media.single img { aspect-ratio: 4 / 3; object-position: 50% 32%; }

/* ---------- 常见问题 ---------- */
.faq-block { padding: 4.4rem 0 0.8rem; }
.faq-grid { display: grid; grid-template-columns: 0.42fr 0.58fr; gap: 2.4rem; align-items: start; }
.faq-media { position: sticky; top: 5.2rem; }
.faq-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.faq-media figcaption { margin-top: 0.6rem; font-size: var(--fs-1); color: var(--ink-3); }
.faq-list details {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 1.15rem 1.4rem; margin-bottom: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-list details[open] { border-color: var(--gold); box-shadow: var(--shadow); }
.faq-list summary {
  cursor: pointer; list-style: none; position: relative; padding-right: 2rem;
  font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 0.35rem; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--gold-deep);
  transition: transform 0.25s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { margin: 0.8rem 0 0.2rem; color: var(--ink-2); font-size: 1.02rem; }

/* ---------- 条件说明面板 ---------- */
.cond-panel {
  max-width: 73.5rem; margin: 2.2rem auto 0; padding: 1.35rem 1.6rem;
  background: var(--gold-soft); border: 1px solid var(--gold-tint); border-radius: var(--radius);
}
.cond-panel h3 { margin: 0.4rem 0 0.5rem; font-size: 1.15rem; }
.cond-top { margin: 0 0 0.4rem; color: var(--ink-2); font-weight: 500; }
.cond-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.5rem 0; }
.cond-chip {
  border: 1px solid var(--gold); background: var(--card); color: var(--gold-deep);
  border-radius: 999px; padding: 0.28rem 0.85rem; cursor: pointer; font-size: var(--fs-2);
  transition: background 0.2s, color 0.2s;
}
.cond-chip:hover { background: var(--gold); color: #fff; }
.cond-note { font-size: var(--fs-2); color: var(--ink-3); margin: 0.4rem 0; }
.cond-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.6rem; }

/* ---------- 筛选器 ---------- */
.filters {
  max-width: 73.5rem; margin: var(--blk) auto 0; padding: 1.35rem 1.6rem;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.f-row { margin-bottom: 0.8rem; }
#q {
  width: 100%; padding: 0.7rem 1.05rem; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fffdf8; font-size: 1.02rem; transition: border-color 0.2s, box-shadow 0.2s;
}
#q:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(194, 148, 31, 0.18); outline: none; }
.f-label { display: block; font-size: var(--fs-2); color: var(--ink-2); margin-bottom: 0.35rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 0.4rem 1.1rem; cursor: pointer; font-size: 1.02rem; font-weight: 500;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--gold); color: var(--gold-deep); }
.chip[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-color: var(--gold-deep); color: #fff; font-weight: 600;
  box-shadow: 0 3px 10px rgba(150, 113, 15, 0.3);
}
.f-grid { display: grid; grid-template-columns: 1fr; gap: 0.65rem 0.9rem; margin: 0.2rem 0 0.4rem; }
.f-item label { display: block; font-size: var(--fs-2); color: var(--ink-2); margin-bottom: 0.25rem; }
.f-item select {
  width: 100%; padding: 0.55rem 0.7rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fffdf8; font-size: 1.02rem; transition: border-color 0.2s;
}
.f-item select:focus { border-color: var(--gold); outline: none; }
.f-note { font-size: var(--fs-2); color: var(--ink-3); margin: 0.55rem 0 0; }
.f-actions { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.75rem; }
.status { font-size: var(--fs-2); color: var(--ink-2); }

/* ---------- 产品表格 ---------- */
.table-wrap {
  max-width: 73.5rem; margin: var(--blk) auto 0; padding: 0 0.6rem;
  overflow: auto; -webkit-overflow-scrolling: touch;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
#tableWrap { max-height: calc(100vh - var(--bb-h) - 2.5rem); }
#tbl { width: 100%; min-width: 47rem; border-collapse: collapse; font-size: 0.92rem; }
#tbl th, #tbl td { border-bottom: 1px solid var(--line-soft); padding: 0.55rem 0.6rem; text-align: left; vertical-align: top; }
#tbl thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--gold-soft); border-bottom: 2px solid var(--gold);
  white-space: normal; line-height: 1.4;
}
#tbl thead th:first-child { border-top-left-radius: 15px; }
#tbl thead th:last-child { border-top-right-radius: 15px; }
.th-inner { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.3rem; }
#tbl .sort { border: 0; background: none; padding: 0; cursor: pointer; font-weight: 700; color: var(--ink); font-family: inherit; white-space: normal; text-align: left; }
#tbl .sort:hover { color: var(--gold-deep); }
#tbl th[aria-sort] .sort { color: var(--gold-deep); }
#tbl .ind { display: inline-block; width: 1em; color: #b3a480; font-size: 0.8em; }
#tbl th[aria-sort] .ind { color: var(--gold-deep); }
.thq {
  border: 0; background: none; cursor: help; padding: 0;
  color: #b3a480; font-size: 0.85em;
}
.thq:hover { color: var(--gold-deep); }
#tbl tbody tr:nth-child(even) { background: #fdfaf1; }
#tbl tbody tr:hover { background: var(--gold-soft); }
#tbl td .name-link { word-break: break-all; color: var(--gold-deep); font-weight: 600; text-decoration: none; }
#tbl td .name-link:hover { text-decoration: underline; }
#tbl td .sub-line { color: var(--ink-3); font-size: var(--fs-1); }
.tag-on { color: #2e7d43; font-weight: 600; }
.tag-off { color: var(--ink-3); }
.tag-cont { color: #8a6410; }
#tbl input[type="checkbox"] { accent-color: var(--gold); width: 1rem; height: 1rem; }
.badge {
  display: inline-block; border: 1px solid var(--line); border-radius: 6px;
  padding: 0 0.35em; font-size: 0.8em; color: var(--ink-2); background: #fffdf8;
}
button.badge { cursor: help; }
.badge:hover { border-color: var(--gold); color: var(--gold-deep); }
.scroll-hint { font-size: var(--fs-1); color: var(--ink-3); margin: 0.5rem 0.2rem; }
.empty-box { max-width: 73.5rem; margin: var(--blk) auto; padding: 2rem 1rem; text-align: center; color: var(--ink-2); }
.empty-box p { margin: 0 0 0.6rem; }
.empty-actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.more-row { text-align: center; margin: 1rem 0 0.4rem; }
.more-row button { padding: 0.5rem 1.6rem; }

/* ---------- 术语 ---------- */
.glossary { max-width: 73.5rem; margin: 2.6rem auto 0; }
.glossary > summary {
  cursor: pointer; list-style: none; position: relative;
  background: var(--dark); color: #fff; border-radius: var(--radius);
  padding: 1.3rem 1.7rem;
  font-family: var(--serif); font-weight: 600; font-size: 1.45rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.glossary > summary::-webkit-details-marker { display: none; }
.glossary > summary::after {
  content: "+"; position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--gold-bright); transition: transform 0.25s ease;
}
.glossary[open] > summary::after { transform: translateY(-50%) rotate(45deg); }
.glossary > summary:hover { box-shadow: var(--shadow-lg); }
.glossary-inner { padding: 1.6rem 1.7rem 0.8rem; background: var(--card); border: 1px solid var(--line-soft); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.glossary .gl-declare { font-size: var(--fs-2); color: var(--ink-3); background: var(--gold-soft); border-radius: 10px; padding: 0.6rem 0.9rem; }
.glossary h3 { font-size: 1.25rem; margin: 1.5rem 0 0.55rem; padding-left: 0.7rem; border-left: 3px solid var(--gold); }
.glossary p { margin: 0.5rem 0; color: var(--ink-2); font-size: 1.05rem; line-height: 1.8; }
.glossary strong { color: var(--ink); }

/* ---------- 底部固定区 ---------- */
#bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; }
.disc {
  background: rgba(251, 247, 238, 0.97); border-top: 1px solid var(--line);
  padding: 0.45rem 1.25rem; font-size: var(--fs-1); color: var(--ink-3);
  backdrop-filter: blur(6px);
}
#comparebar {
  background: var(--dark); color: #fff;
  padding: 0.45rem 1.25rem; display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
}
#comparebar .cb-actions { margin-left: auto; display: flex; gap: 0.5rem; }
#comparebar button { border: 0; border-radius: 999px; padding: 0.38rem 1rem; cursor: pointer; }
#btnCompare {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #fff; font-weight: 700;
}
#btnCompare:disabled { background: #4a4231; color: #9a917c; }
#btnClear { background: #453b27; color: #fff; }
.sel-msg { font-size: var(--fs-2); color: #eec9a0; }
#selInfo { font-size: var(--fs-2); }

/* ---------- 浮层（对比/向导/测算） ---------- */
#overlay, #wizard, #beOv, #taxOv, #penOv {
  position: fixed; inset: 0; z-index: 50;
  background: var(--bg); display: flex; flex-direction: column;
}
.ov-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--dark); color: #fff; border-bottom: 3px solid var(--gold);
  flex: none;
}
.ov-head h2 { margin: 0; font-size: 1.48rem; font-weight: 600; color: #fff; }
.ov-head .ov-sub { display: block; font-size: 0.95rem; font-weight: 400; color: #cbc0a2; margin-top: 0.18rem; }
.ov-head button {
  border: 1px solid rgba(255, 255, 255, 0.4); background: transparent; color: #fff;
  border-radius: 999px; padding: 0.35rem 1.05rem; cursor: pointer; flex: none;
  transition: background 0.2s, border-color 0.2s;
}
.ov-head button:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.ov-body { flex: 1; overflow: auto; padding: 1.3rem 1.5rem 2.2rem; }

/* 并排对比表 */
#ovTable { border-collapse: collapse; background: var(--card); font-size: 0.95rem; min-width: 34rem; width: 100%; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
#ovTable th, #ovTable td { border: 1px solid var(--line-soft); padding: 0.5rem 0.65rem; text-align: left; vertical-align: top; }
#ovTable thead th { position: sticky; top: 0; z-index: 2; background: var(--gold-soft); }
#ovTable td.fld, #ovTable th.fld {
  position: sticky; left: 0; z-index: 1; background: #faf5e6;
  box-shadow: inset -1px 0 0 var(--line);
}
#ovTable thead th.fld { z-index: 3; } /* 左上角：top 与 left 双向吸附 */
#ovTable td.fld { width: 8.5em; color: var(--ink-2); font-size: var(--fs-2); }
.ov-note { font-size: 0.95rem; color: var(--ink-3); max-width: 73.5rem; }
.ov-note + .ov-note { margin-top: 0.2rem; }

/* ---------- 向导 ---------- */
.wz-body { max-width: 48rem; margin: 0 auto; }
.wz-claim { font-size: 1.05rem; color: var(--ink-2); background: var(--gold-soft); border-radius: 10px; padding: 0.7rem 1.1rem; }
.wz-steps { display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 1rem 0 1.2rem; flex-wrap: wrap; }
.wz-steps li {
  flex: 1; min-width: 7.6rem; text-align: center;
  font-size: 0.95rem; color: var(--ink-3);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 0.42rem 0.7rem;
  transition: all 0.25s;
}
.wz-steps li.cur { border-color: var(--gold); color: var(--gold-deep); background: var(--gold-soft); font-weight: 700; }
.wz-steps li.done { border-color: var(--gold-tint); color: var(--gold-deep); }
.wz-steps li.done::before { content: "✓ "; color: var(--gold); }
.wz-step h3 { font-size: 1.4rem; margin: 0 0 0.5rem; }
.wz-sub { margin: 0 0 1rem; color: var(--ink-2); font-size: var(--fs-3); }
.opt-group { display: grid; gap: 0.6rem; }
.opt {
  display: flex; align-items: flex-start; gap: 0.6rem;
  background: var(--card); border: 1.5px solid var(--line-soft); border-radius: 14px;
  padding: 0.8rem 1rem; cursor: pointer; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.opt:hover { border-color: var(--gold); }
.opt:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); box-shadow: var(--shadow); }
.opt input { accent-color: var(--gold); margin-top: 0.22rem; }
.opt-detail { display: block; font-size: var(--fs-2); color: var(--ink-3); margin-top: 0.15rem; }
.opt-extra { padding: 0.2rem 1rem 0.6rem; }
.opt-extra label { display: block; font-size: var(--fs-2); color: var(--ink-2); margin: 0.5rem 0 0.25rem; }
.opt-extra select { width: 100%; max-width: 22rem; padding: 0.45rem 0.6rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fffdf8; }
.opt-hint { font-size: var(--fs-2); color: var(--ink-3); margin: 0.4rem 0 0; }
.opt-note { font-size: var(--fs-2); color: var(--ink-3); margin: 0.8rem 0 0; }
.opt-check { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0.8rem 0 0; font-size: var(--fs-3); color: var(--ink-2); cursor: pointer; }
.opt-check input { accent-color: var(--gold); margin-top: 0.22rem; }
.wz-actions { display: flex; justify-content: space-between; gap: 0.8rem; margin-top: 1.4rem; }
.wz-actions button { min-width: 8rem; }
.wz-skip-note { font-size: var(--fs-2); color: var(--ink-3); margin: 0.9rem 0 0; }

/* ---------- 测算器（退休金/抵税/回本 共用 pen-*） ---------- */
.pen-body, .tax-body { max-width: 52rem; margin: 0 auto; }
.pen-claim { font-size: 1.05rem; color: var(--ink-2); background: var(--gold-soft); border-radius: 10px; padding: 0.8rem 1.1rem; }
.pen-claim a { color: var(--gold-deep); font-weight: 600; }
.pen-form { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem 1.5rem; margin: 1.1rem 0; }
.pen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem 1rem; align-items: start; }
.pen-item label, .pen-item .pen-label { display: block; font-size: 0.95rem; font-weight: 600; color: var(--ink); margin-bottom: 0.3rem; }
.pen-item input, .pen-item select {
  width: 100%; padding: 0.6rem 0.75rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fffdf8; font-size: 1.02rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.pen-item input:focus, .pen-item select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(194, 148, 31, 0.16); outline: none; }
.pen-radio { display: flex; align-items: flex-start; gap: 0.45rem; font-size: var(--fs-2); color: var(--ink-2); margin-top: 0.45rem; cursor: pointer; }
.pen-radio input { width: auto !important; accent-color: var(--gold); margin-top: 0.2rem; }
.pen-item input[hidden] { display: none !important; }
.pen-hint { font-size: var(--fs-2); color: var(--ink-3); margin: 0.3rem 0 0; }
.pen-form > .btn-primary { margin-top: 1.1rem; width: 100%; padding: 0.72rem; font-size: 1.08rem; }
.pen-result { margin-top: 1rem; }
.pen-result h3 { font-size: 1.2rem; margin: 1.3rem 0 0.55rem; }
.pen-assumptions, .pen-caveats, .pen-sources, .pen-next, .tax-caveat, .tax-policy {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1rem 1.2rem; margin-top: 0.9rem;
}
.pen-assumptions h3, .pen-caveats h3, .pen-sources h3, .pen-next h3, .tax-caveat h3 { margin: 0 0 0.55rem; font-size: 1.12rem; }
.pen-assumptions ul, .pen-caveats ul, .pen-sources ul, .tax-caveat ul { margin: 0; padding-left: 1.2em; }
.pen-assumptions li, .pen-caveats li, .pen-sources li, .tax-caveat li { margin: 0.4rem 0; color: var(--ink-2); font-size: 1.02rem; line-height: 1.75; }
.pen-sources p, .pen-next p, .tax-policy p { margin: 0.45rem 0; color: var(--ink-2); font-size: 1.02rem; line-height: 1.75; }
.pen-next-note { color: var(--ink-3); font-size: var(--fs-2); }

/* 抵税 */
.tax-form { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem 1.5rem; margin: 1.1rem 0; }
.tax-form label { display: block; font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; }
.tax-form input {
  width: 100%; max-width: 24rem; padding: 0.62rem 0.8rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fffdf8; font-size: 1.05rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.tax-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(194, 148, 31, 0.16); outline: none; }
.tax-hint { font-size: var(--fs-2); color: var(--ink-3); margin: 0.4rem 0 0; }
.tax-result { margin-top: 0.4rem; }
.tax-result h3 { font-size: 1.2rem; margin: 1.2rem 0 0.55rem; }
.tax-muted { color: var(--ink-3); font-size: var(--fs-3); }

/* ---------- 提示气泡 ---------- */
.tip {
  position: fixed; z-index: 60; max-width: 20rem;
  background: var(--dark); color: #f4ecd8; font-size: var(--fs-2); line-height: 1.55;
  border-radius: 12px; padding: 0.7rem 0.9rem;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(232, 196, 92, 0.35);
}
.noscript { text-align: center; color: var(--ink-2); padding: 1rem; }

/* ---------- 响应式 ---------- */
@media (min-width: 40rem) {
  .f-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 56rem) {
  .f-grid { grid-template-columns: repeat(3, 1fr); }
  .pen-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 64rem) {
  .entry-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 56rem) {
  .nav-links a:not(.nav-cta) { display: none; }
  .guide-grid, .faq-grid { grid-template-columns: 1fr; }
  .guide-grid.rev .guide-media { order: 0; }
  .faq-media { position: static; }
  .faq-media img { max-height: 16rem; }
  .hero-inner { padding-top: 3.6rem; }
  .hero-stats { gap: 1.6rem; }
  .hstat { min-width: 5.4rem; }
  .hstat .hs-num { font-size: 1.9rem; }
  .hstat .hs-label { font-size: 0.9rem; }
  .band-inner { padding: 3.2rem 1.25rem; }
}
@media (max-width: 40rem) {
  .entry-grid { grid-template-columns: 1fr; }
  .pen-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 1.1rem 1.8rem; }
  .guide-media.single img { aspect-ratio: 16 / 10; }
}
@media (max-width: 26rem) {
  .pen-grid { grid-template-columns: 1fr; }
}

/* ---------- 减弱动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .tool-card, .btn-primary, .btn-hero, .nav-cta { transition: none; }
}

/* ============================================================
   v2.2 视觉打磨：光效 / 微交互 / 质感细节（纯追加，不影响功能）
   ============================================================ */

/* 页面底色：暖金光晕 */
body {
  background:
    radial-gradient(1200px 620px at 88% -120px, rgba(232, 196, 92, 0.13), transparent 62%),
    radial-gradient(900px 520px at -8% 32%, rgba(194, 148, 31, 0.055), transparent 55%),
    var(--bg);
}
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* 全局滚动条（Windows 粗灰条 → 细金条） */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d9c896; border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* 导航：下划线扫入效果 */
.nav-links a:not(.nav-cta) { position: relative; padding-bottom: 2px; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold-deep));
  border-radius: 2px; transition: right 0.28s ease;
}
.nav-links a:not(.nav-cta):hover::after { right: 0; }

/* Hero：金色暖光 + 玻璃卡换深色金边 */
.hero-shade {
  background:
    radial-gradient(60% 46% at 50% 108%, rgba(232, 196, 92, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(33, 26, 13, 0.62) 0%, rgba(33, 26, 13, 0.24) 34%, rgba(33, 26, 13, 0.78) 100%);
}
.src-block {
  background: rgba(33, 26, 13, 0.42);
  border-color: rgba(232, 196, 92, 0.32);
}
.src-block summary:hover { color: #fff; }

/* Hero 数据：金色细分隔线 */
.hstat { padding-left: 1.5rem; border-left: 1px solid rgba(255, 255, 255, 0.22); }
.hero-stats .hstat:first-child { padding-left: 0; border-left: 0; }
@media (max-width: 40rem) {
  .hstat { padding-left: 0; border-left: 0; }
}

/* 区块标题：金线分隔 + 菱形装饰 */
.section-header h2::after {
  content: ""; display: block; width: 4.5rem; height: 3px; margin: 1.1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}
.section-header .label::before, .section-header .label::after {
  content: "◆"; font-size: 0.55em; color: var(--gold); vertical-align: 0.18em;
  margin: 0 0.7em; opacity: 0.85; letter-spacing: 0;
}

/* 工具区：金色渐变底衬 + 图标金色渐变 + 卡片阴影加强 */
.entry-section { background: linear-gradient(180deg, rgba(232, 196, 92, 0.08), transparent 72%); }
.tool-card .tc-icon {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #fff;
  box-shadow: 0 3px 9px rgba(150, 113, 15, 0.32);
}
.tool-card:hover { box-shadow: 0 20px 46px rgba(43, 35, 20, 0.15); }
.tool-card:hover .tc-icon { transform: scale(1.06); }
.tool-card .tc-icon { transition: transform 0.25s ease; }

/* 按钮：内部高光更立体，按下微缩 */
.btn-primary, .tool-card .btn-primary,
.nav-cta, .btn-hero {
  box-shadow: 0 4px 14px rgba(150, 113, 15, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}
.btn-primary:active, .nav-cta:active, .btn-hero:active { transform: translateY(0) scale(0.98); }

/* 金色横幅：巨型引号装饰 + 视差 */
.band-inner { position: relative; }
.band-inner::before {
  content: "“"; position: absolute; top: -2.6rem; left: 0.6rem;
  font-family: var(--serif); font-weight: 700; line-height: 1;
  font-size: clamp(5rem, 12vw, 9rem);
  color: rgba(232, 196, 92, 0.16); pointer-events: none;
}
.band-shade {
  background:
    radial-gradient(70% 90% at 20% 50%, rgba(33, 26, 13, 0.55), transparent 75%),
    linear-gradient(90deg, rgba(33, 26, 13, 0.88) 0%, rgba(33, 26, 13, 0.45) 55%, rgba(33, 26, 13, 0.22) 100%);
}
@media (min-width: 56rem) and (prefers-reduced-motion: no-preference) {
  .band-bg { background-attachment: fixed; }
}

/* 指南图片：悬停微放大 */
.guide-media img { transition: transform 0.5s ease, box-shadow 0.3s ease; }
.guide-media img:hover { transform: scale(1.02); }

/* 筛选 chips：悬停微浮 */
.chip:hover { transform: translateY(-1px); }

/* 向导选项：悬停右移 */
.opt { transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s; }
.opt:hover { transform: translateX(3px); }

/* 表格：行悬浮金色侧标 + 表内滚动条 */
#tbl tbody tr { transition: background 0.15s, box-shadow 0.15s; }
#tbl tbody tr:hover { box-shadow: inset 3px 0 0 var(--gold); }
.table-wrap::-webkit-scrollbar { height: 10px; width: 10px; }
.table-wrap::-webkit-scrollbar-track { background: var(--gold-soft); }
.table-wrap::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 999px; border: 2px solid var(--gold-soft); }
.table-wrap::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* 条件面板：金色侧标 */
.cond-panel { border-left: 4px solid var(--gold); }

/* 加载态：金色转圈 */
.loading-box::before {
  content: ""; display: block; width: 2.3rem; height: 2.3rem; margin: 0 auto 1rem;
  border: 3px solid var(--gold-tint); border-top-color: var(--gold);
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .loading-box::before { animation: spin 0.9s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 浮层头部：纵向渐变更厚重 */
.ov-head { background: linear-gradient(180deg, #2c2310, var(--dark)); }

/* 术语面板：悬停加深 */
.glossary > summary:hover { background: #2c2310; }

/* 底栏：金线收边 */
.disc { border-top: 1px solid var(--gold-tint); }
#comparebar { border-top: 2px solid var(--gold); }

/* ---------- 宣传海报展示位 ---------- */
.poster-block { padding: 4.4rem 0 0.8rem; }
.poster-card {
  margin: 0 auto; max-width: 64rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 0.9rem 0.9rem 0.7rem;
}
.poster-card img { width: 100%; border-radius: calc(var(--radius) - 6px); }
.poster-card figcaption { margin-top: 0.75rem; text-align: center; font-size: 0.85rem; color: var(--ink-3); }
