/* ==================== Design Tokens (Aligned with v1 Apple-Inspired Light System) ==================== */
:root {
  color-scheme: light;
  --white: #ffffff;
  --soft: #f4f5f7;
  --soft-2: #f6f8fb;
  --ink: #1d1d1f;
  --muted: #5c5c62;
  --muted-light: #7c7d85;

  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-soft: #edf5ff;
  --red: #d93829;
  --green: #1d8348;
  --green-soft: #e9f7ef;
  --amber: #c8521b;
  --amber-soft: #fff5eb;
  --amber-text: #854014;
  --purple: #5850a8;
  --purple-soft: #f2f0fb;

  /* Dynamic chapter accent (overridden per card and per active step) */
  --sec-accent: #0071e3;
  --sec-soft: #edf5ff;
  --sec-rgb: 0, 113, 227;

  --line: rgba(15, 23, 42, 0.06);
  --line-strong: rgba(15, 23, 42, 0.12);

  --radius: 24px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.045);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.085);
  --shadow-dock: -10px 18px 46px rgba(15, 23, 42, 0.13);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.24);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --topbar-h: 60px;
  --font-size: 15px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* 四大章节独立主题色（与原版完全一致） */
.theme-medical, body.step-medical {
  --sec-accent: #0071e3;
  --sec-soft: #edf5ff;
  --sec-rgb: 0, 113, 227;
}
.theme-pension, body.step-pension {
  --sec-accent: #1d8348;
  --sec-soft: #e9f7ef;
  --sec-rgb: 29, 131, 72;
}
.theme-insurance, body.step-insurance {
  --sec-accent: #c8521b;
  --sec-soft: #fdf1e8;
  --sec-rgb: 200, 82, 27;
}
.theme-care, body.step-care {
  --sec-accent: #5850a8;
  --sec-soft: #f2f0fb;
  --sec-rgb: 88, 80, 168;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--font-size);
  line-height: 1.64;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 首屏柔光艺术背景（还原原版 Hero 氛围） */
body {
  background-color: #f4f6fa;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.56) 56%, #f4f6fa 100%),
    url("assets/cover-hero.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  transition: background-color 280ms ease;
}

/* 详情态切换为各章节对应柔和浅色渐变底（与原版 .band-* 完全呼应） */
body.is-detail.step-medical {
  background-image: linear-gradient(180deg, #eef5ff 0%, #f2f7ff 62%, #f7faff 100%);
  background-color: #eef5ff;
}
body.is-detail.step-pension {
  background-image: linear-gradient(180deg, #edf8f2 0%, #f2faf5 62%, #f7fcf9 100%);
  background-color: #edf8f2;
}
body.is-detail.step-insurance {
  background-image: linear-gradient(180deg, #fdf5ed 0%, #fef8f2 62%, #fffbf7 100%);
  background-color: #fdf5ed;
}
body.is-detail.step-care {
  background-image: linear-gradient(180deg, #f3f2fb 0%, #f7f6fc 62%, #faf9fe 100%);
  background-color: #f3f2fb;
}

@media (min-width: 980px) {
  html, body {
    height: 100dvh;
    overflow: hidden;
  }
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
a { color: var(--sec-accent); text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2.5px solid var(--sec-accent); outline-offset: 2px; }

/* ==================== 悬浮毛玻璃导航（还原原版 .glass-nav） ==================== */
.topbar {
  height: var(--topbar-h);
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.topbar-inner {
  max-width: 1460px;
  height: 100%;
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }

.brand-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 0;
  padding: 4px 6px 4px 0;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex: 0 0 auto;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.28);
  transition: background 200ms ease, box-shadow 200ms ease;
}

body.is-detail .brand-mark {
  background: var(--sec-accent);
  box-shadow: 0 2px 8px rgba(var(--sec-rgb), 0.28);
}

.region-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--soft);
  border-radius: 99px;
  padding: 3px 10px;
  white-space: nowrap;
}

.topbar-actions { display: flex; align-items: center; gap: 8px; }

/* 原版胶囊按钮体系 */
.pill-btn, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 15px;
  border-radius: 99px;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  background: var(--soft);
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, transform 0.14s ease, box-shadow 0.16s ease;
}

.pill-btn:not(.is-primary):not(.is-ink):not([aria-pressed="true"]):hover:not(:disabled),
.btn:not(.btn-primary):not(.is-ink):not([aria-pressed="true"]):hover:not(:disabled) {
  background: #e8eaee;
  color: var(--ink);
}
.pill-btn:active:not(:disabled), .btn:active:not(:disabled) { transform: scale(0.98); }
.pill-btn:disabled, .btn:disabled { opacity: 0.38; cursor: not-allowed; }
.pill-btn[aria-pressed="true"] { background: var(--blue); color: #fff; }
.pill-btn[aria-pressed="true"]:hover:not(:disabled) { background: var(--blue-hover); color: #fff; }
.pill-btn.is-ink { background: var(--ink); color: #fff; }
.pill-btn.is-ink:hover:not(:disabled) { background: #333336; color: #fff; }
.pill-btn.is-primary, .btn-primary {
  background: var(--sec-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--sec-rgb), 0.22);
}
.pill-btn.is-primary:hover:not(:disabled), .btn-primary:hover:not(:disabled) {
  background: var(--sec-accent);
  color: #fff;
  filter: brightness(1.08);
  box-shadow: 0 6px 16px rgba(var(--sec-rgb), 0.3);
}
.btn-sm { min-height: 32px; padding: 5px 13px; font-size: 12.5px; }

/* ==================== 一屏全高主舞台 ==================== */
.app-stage {
  max-width: 1460px;
  margin: 0 auto;
  padding: 20px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 980px) {
  .app-stage {
    height: calc(100dvh - var(--topbar-h));
    overflow: hidden;
  }
}

/* ==================== 首页柔光顶栏（还原原版 Hero 排版与磨砂质感） ==================== */
.overview-header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 2px 2px 0;
}

body.is-detail .overview-header { display: none; }

.overview-intro {
  min-width: 0;
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 13px;
  border-radius: 99px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.overview-intro h1 {
  margin: 10px 0 7px;
  font-size: clamp(26px, 2.7vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
}

.overview-intro p {
  font-size: 0.96em;
  color: #48484d;
  line-height: 1.58;
}

/* 右侧轻量磨砂进度卡 */
.readiness-strip {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 13px 18px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  gap: 15px;
}

.progress-ring { width: 50px; height: 50px; flex: 0 0 auto; position: relative; }
.progress-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-ring .ring-bg { fill: none; stroke: #ebeef3; stroke-width: 5.5; }
.progress-ring .ring-fg {
  fill: none;
  stroke: var(--green);
  stroke-width: 5.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 480ms var(--ease);
}

.ring-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.readiness-info { display: flex; flex-direction: column; gap: 2px; }
.readiness-info strong { font-size: 14px; font-weight: 700; color: var(--ink); }
.readiness-info span { font-size: 12px; color: var(--muted); }

.readiness-btns { display: flex; align-items: center; gap: 7px; padding-left: 8px; border-left: 1px solid rgba(15, 23, 42, 0.07); }

/* ==================== Workspace Layout (保持一屏 4 卡 -> 稳定左轨+宽主卡+最右浮窗) ==================== */
.workspace {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.is-detail .app-stage {
  max-width: 1460px;
  width: 100%;
  margin: 0 auto;
}

body.is-detail .workspace {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
  height: 100%;
  width: 100%;
}

.steps-column {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.is-detail .steps-column {
  overflow-y: auto;
  overflow-x: visible;
  padding: 6px 10px 14px 8px;
  margin: -6px -10px -14px -8px;
}

/* 左侧顶部返回导航区：去卡片化，与下方步骤卡片清晰区分 */
.rail-nav-top {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2px;
}

body.is-detail .rail-nav-top { display: flex; }

.rail-back-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 6px 8px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: background 150ms ease, color 150ms ease;
}

.rail-back-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.rail-back-btn:hover {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.055);
}

.rail-back-btn kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted);
}

.rail-section-label {
  display: block;
  padding: 8px 6px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted-light);
}

/* ==================== 首页 4 张全高彩色主题画廊卡（融合原版 .pillar-card 视觉灵魂） ==================== */
.steps-deck {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 1fr;
  gap: 18px;
  align-items: stretch;
}

body.is-detail .steps-deck {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: auto;
  flex: 0 0 auto;
}

.step-card {
  position: relative;
  text-align: left;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: 0;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 240ms var(--ease), transform 240ms var(--ease), background 200ms ease, border-color 200ms ease;
  will-change: transform;
}

body:not(.is-detail) .step-card:hover {
  background: var(--white);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.11);
  transform: translateY(-4px);
}

.step-cover {
  position: relative;
  flex: 1.06 1 50%;
  min-height: 176px;
  overflow: hidden;
  background: var(--sec-soft);
}

.step-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% center;
  display: block;
  transition: transform 480ms var(--ease);
}

body:not(.is-detail) .step-card:hover .step-cover img {
  transform: scale(1.05);
}

.step-cover-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}

/* 原版彩色圆角数字标（蓝 / 绿 / 琥珀 / 紫） */
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 13.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: var(--sec-accent);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(var(--sec-rgb), 0.34);
}

.step-status-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4px 11px;
  border-radius: 99px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.step-card.is-progress .step-status-pill {
  color: var(--sec-accent);
  background: rgba(255, 255, 255, 0.96);
}

.step-card.is-done .step-status-pill {
  color: var(--green);
  background: var(--green-soft);
}

.step-content {
  flex: 1 0 auto;
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  background: var(--white);
}

.step-card-body { display: flex; flex-direction: column; gap: 7px; }
.step-kicker { font-size: 12.5px; font-weight: 700; color: var(--sec-accent); letter-spacing: 0.01em; }
.step-title { font-size: 21px; font-weight: 700; letter-spacing: -0.025em; color: var(--ink); line-height: 1.24; }
.step-desc { font-size: 0.9em; line-height: 1.62; color: var(--muted); }

.step-live-note {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sec-accent);
  background: var(--sec-soft);
  border-radius: 12px;
  padding: 8px 11px;
  line-height: 1.48;
  display: none;
}

.step-card.has-summary .step-live-note { display: block; }
.step-card.has-summary .step-tags { display: none; }

.step-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.step-tags span {
  font-size: 12px;
  font-weight: 600;
  color: var(--sec-accent);
  background: var(--sec-soft);
  padding: 3px 9px;
  border-radius: 99px;
}

.step-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.055);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.step-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3f5f8;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, transform 180ms var(--ease);
}

body:not(.is-detail) .step-card:hover .step-arrow {
  background: var(--sec-accent);
  color: #fff;
  transform: translateX(3px);
}

.step-progress-line { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: transparent; }
.step-progress-line i { display: block; height: 100%; width: 0%; background: var(--sec-accent); transition: width 360ms var(--ease); }

/* ==================== 详情态左侧卡片轨 ==================== */
body.is-detail .step-card {
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.86);
  border: 0;
}

body.is-detail .step-card:not(.is-active) {
  padding: 13px 15px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.is-detail .step-card:not(.is-active) .step-cover {
  position: static;
  flex: 0 0 auto;
  min-height: 0;
  background: none;
  order: 2;
}

body.is-detail .step-card:not(.is-active) .step-cover img,
body.is-detail .step-card:not(.is-active) .step-num { display: none; }

body.is-detail .step-card:not(.is-active) .step-cover-overlay { position: static; }

body.is-detail .step-card:not(.is-active) .step-status-pill {
  box-shadow: none;
  background: var(--soft);
  padding: 3px 9px;
  font-size: 11.5px;
}

body.is-detail .step-card.is-done:not(.is-active) .step-status-pill {
  background: var(--green-soft);
  color: var(--green);
}

body.is-detail .step-card:not(.is-active) .step-content {
  order: 1;
  padding: 0;
  background: none;
  gap: 0;
}

body.is-detail .step-card:not(.is-active) .step-kicker,
body.is-detail .step-card:not(.is-active) .step-desc,
body.is-detail .step-card:not(.is-active) .step-tags,
body.is-detail .step-card:not(.is-active) .step-live-note,
body.is-detail .step-card:not(.is-active) .step-card-foot { display: none; }

body.is-detail .step-card:not(.is-active) .step-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.is-detail .step-card:not(.is-active) .step-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sec-accent);
  opacity: 0.55;
  flex: none;
}

body.is-detail .step-card:not(.is-active):hover { background: var(--white); box-shadow: var(--shadow); }
body.is-detail .step-card:not(.is-active):hover .step-title { color: var(--ink); }
body.is-detail .step-card:not(.is-active):hover .step-title::before { opacity: 1; }

/* 左侧当前激活焦点卡 */
body.is-detail .step-card.is-active {
  background: var(--white);
  border: 2px solid var(--sec-accent);
  box-shadow: 0 10px 24px rgba(var(--sec-rgb), 0.12);
  border-radius: 20px;
}

body.is-detail .step-card.is-active .step-cover {
  flex: 0 0 auto;
  min-height: 0;
  height: 106px;
}

body.is-detail .step-card.is-active .step-num {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

body.is-detail .step-card.is-active .step-content {
  padding: 14px 15px 13px;
  gap: 9px;
}

body.is-detail .step-card.is-active .step-kicker { display: none; }
body.is-detail .step-card.is-active .step-title { font-size: 17px; }
body.is-detail .step-card.is-active .step-desc { font-size: 12.5px; }
body.is-detail .step-card.is-active .step-tags { display: none; }
body.is-detail .step-card.is-active .step-card-foot { padding-top: 9px; font-size: 12px; color: var(--sec-accent); }
body.is-detail .step-card.is-active .step-arrow { width: 22px; height: 22px; background: var(--sec-soft); color: var(--sec-accent); font-size: 11px; }

/* 左下角进度卡 */
.rail-report-card {
  display: none;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  padding: 14px 15px;
  box-shadow: var(--shadow-sm);
  flex-direction: column;
  gap: 9px;
}

body.is-detail .rail-report-card { display: flex; }
.rail-report-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.rail-report-head strong { color: var(--ink); font-weight: 700; }
.rail-report-head span { font-variant-numeric: tabular-nums; color: var(--sec-accent); font-weight: 800; }
.rail-bar { height: 7px; border-radius: 99px; background: #ebeef3; overflow: hidden; }
.rail-bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width 360ms var(--ease); }

/* ==================== 中间主工作台大白卡（融合原版章节艺术封面头 + 洁白柔和卡片） ==================== */
.detail-panel {
  display: none;
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 0;
  height: 100%;
  background: var(--white);
  border-radius: 26px;
  box-shadow: 0 12px 38px rgba(15, 23, 42, 0.065);
  flex-direction: column;
  overflow: hidden;
}

body.is-detail .detail-panel {
  display: flex;
  animation: panelSlideIn 340ms var(--ease) both;
}

@keyframes panelSlideIn {
  from { opacity: 0; transform: translateX(18px) scale(0.994); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* 顶部纯净白卡片头（去背景图，保持与左侧封面卡视觉克制平衡） */
.detail-head {
  flex: 0 0 auto;
  padding: 18px 26px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: var(--white);
}

.detail-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.detail-step-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--sec-accent);
  background: var(--sec-soft);
  padding: 3px 11px;
  border-radius: 99px;
  margin-bottom: 7px;
}

.detail-head h2 {
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 4px;
}

.detail-sub { font-size: 0.9em; color: #46464b; }

.detail-tabs { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.detail-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 10px 16px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  border-radius: 12px 12px 0 0;
  transition: color 160ms ease, background 160ms ease;
}

.tab-btn:hover { color: var(--ink); background: #f4f6f9; }
.tab-btn[aria-selected="true"] {
  color: var(--sec-accent);
  font-weight: 700;
  background: transparent;
}
.tab-btn[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  background: var(--sec-accent);
  border-radius: 3px 3px 0 0;
}

.detail-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 26px 24px;
  scroll-behavior: smooth;
  background: var(--white);
}

.detail-body-inner { animation: tabFadeIn 220ms var(--ease) both; }
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.detail-foot {
  flex: 0 0 auto;
  padding: 11px 26px;
  border-top: 1px solid rgba(15, 23, 42, 0.055);
  background: #fafbfd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-foot-left { font-size: 13px; color: var(--muted); }
.detail-foot-nav { display: flex; align-items: center; gap: 8px; }

/* ==================== 右侧常驻无框确认栏（与左侧步骤目录完全对称、直接落在柔和底色上） ==================== */
.dock-slot {
  display: none;
  min-width: 0;
  min-height: 0;
  height: 100%;
  flex-direction: column;
}

body.is-detail .dock-slot {
  display: flex;
}

.dock-panel {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 6px 8px 14px 8px;
  margin: -6px -8px -14px -8px;
  overflow: hidden;
}

.dock-panel.is-pulsed .dock-section { animation: dockPulse 520ms var(--ease); }
@keyframes dockPulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--sec-rgb), 0.36), var(--shadow-sm); }
  50% { box-shadow: 0 0 0 5px rgba(var(--sec-rgb), 0.16), var(--shadow-sm); }
  100% { box-shadow: 0 0 0 0 rgba(var(--sec-rgb), 0), var(--shadow-sm); }
}

/* 顶部标题区：与左侧 .rail-nav-top 保持同一水平高度与细分割线 */
.dock-head {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2px;
}

.dock-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 6px;
}

.dock-head-top strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-prog-pill {
  flex: none;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--sec-accent);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

.dock-prog-pill.is-done { background: var(--green-soft); color: var(--green); }

.dock-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 2px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dock-foot {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dock-foot-hint { font-size: 11.5px; color: var(--muted-light); text-align: center; }

/* 确认栏内勾选与记录控件（独立轻盈白卡片直接悬浮在章节柔色背景上，与左侧卡片一致） */
.check-list { display: flex; flex-direction: column; gap: 8px; }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.check-row:hover { background: var(--white); box-shadow: var(--shadow); }
.check-row.is-checked { background: var(--green-soft); border-color: rgba(29, 131, 72, 0.24); box-shadow: none; }

.check-box {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  border: 1.5px solid #cfd3da;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-top: 1px;
  transition: all 180ms var(--ease);
}

.check-row.is-checked .check-box {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  animation: checkPop 240ms var(--ease);
}

@keyframes checkPop {
  0% { transform: scale(0.84); }
  55% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.check-box svg { width: 12px; height: 12px; opacity: 0; transform: scale(0.5); transition: all 160ms var(--ease); }
.check-row.is-checked .check-box svg { opacity: 1; transform: scale(1); }
.check-text strong { display: block; font-size: 13px; font-weight: 650; color: var(--ink); line-height: 1.4; }
.check-text span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.42; }

.dock-section {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  padding: 13px 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dock-label { font-size: 12px; font-weight: 700; color: var(--ink); }
.dock-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.dock-pill {
  padding: 4px 9px;
  border-radius: 99px;
  border: 0;
  background: #f2f4f8;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  transition: all 140ms ease;
}
.dock-pill:not([aria-pressed="true"]):hover { color: var(--ink); background: #e6eaf2; }
.dock-pill[aria-pressed="true"] {
  background: var(--sec-accent);
  color: #fff;
  box-shadow: 0 3px 10px rgba(var(--sec-rgb), 0.25);
}
.dock-pill[aria-pressed="true"]:hover {
  background: var(--sec-accent);
  color: #fff;
  filter: brightness(1.08);
}

.dock-input, .dock-select {
  width: 100%;
  min-height: 36px;
  padding: 6px 11px;
  border-radius: 11px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f6f8fb;
  font-size: 12.5px;
  color: var(--ink);
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.dock-input:focus, .dock-select:focus {
  background: var(--white);
  border-color: var(--sec-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--sec-rgb), 0.14);
}
.dock-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

/* ==================== 内部内容区组件（全面对齐原版 style.css 色彩与质感） ==================== */
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.grid-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 16px; align-items: stretch; }

/* 原版柔白内卡 & 轻底块（去粗糙灰边框） */
.sub-card {
  background: #f6f8fb;
  border-radius: 20px;
  padding: 18px 20px;
}
.sub-card.is-white {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.055);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.038);
}
.sub-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); line-height: 1.32; margin-bottom: 6px; }
.sub-card p { font-size: 0.9em; color: var(--muted); line-height: 1.66; }
.sub-card p strong { color: var(--ink); }

.mini-tag, .kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sec-accent);
  margin-bottom: 5px;
}

.small-note { font-size: 13px; color: var(--muted); line-height: 1.62; }
.source-foot { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.accent-red { color: var(--red) !important; }

/* 原版统计块 .big-stats */
.big-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.big-stats.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.big-stats > div {
  background: #f5f8fc;
  border-radius: 16px;
  padding: 14px 17px;
}
.big-stats small { display: block; font-size: 12.5px; color: var(--muted); }
.big-stats strong {
  display: block;
  font-size: clamp(20px, 2.3vw, 25px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-top: 3px;
  color: var(--ink);
}
.big-stats strong.is-accent { color: var(--sec-accent); }

/* 原版提示块 .plain-tip / .channel-box / .callout-soft */
.plain-tip {
  background: var(--amber-soft);
  border-radius: 16px;
  padding: 13px 16px;
  font-size: 13.5px;
  color: var(--amber-text);
  line-height: 1.62;
}
.plain-tip strong { color: #6e350d; }

.channel-box {
  padding: 13px 16px;
  border-radius: 16px;
  background: #f4f8fe;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.62;
}
.channel-box strong { color: var(--ink); }

/* 各步骤内嵌的「打电话找谁问」轻提示条 */
.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--sec-soft);
  font-size: 13px;
  color: var(--ink);
  line-height: 1.55;
}
.contact-strip-main { flex: 1 1 280px; min-width: 0; }
.contact-strip-main strong { color: var(--sec-accent); }
.contact-strip-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.hotline-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 99px;
  border: 0;
  background: var(--white);
  color: var(--sec-accent);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: background 150ms ease, color 150ms ease;
}
.hotline-link-btn:hover { background: var(--sec-accent); color: #fff; }

.callout-soft { border-radius: 18px; padding: 15px 18px; font-size: 13.8px; line-height: 1.65; }
.callout-soft > strong { display: block; margin-bottom: 4px; font-size: 14.5px; }
.callout-soft.is-blue { background: var(--blue-soft); color: #16447a; }
.callout-soft.is-amber { background: var(--amber-soft); color: var(--amber-text); }
.callout-soft.is-green { background: var(--green-soft); color: #1f4d32; }

/* 原版入口胶囊 .portal-chip */
.portal-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px 2px 10px;
  margin: 0 2px;
  border: 0;
  border-radius: 99px;
  background: var(--sec-soft);
  color: var(--sec-accent);
  font-size: 0.9em;
  font-weight: 700;
  line-height: 1.45;
  vertical-align: baseline;
  transition: background 0.15s, color 0.15s, transform 0.14s;
}
.portal-chip span {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--white);
  color: var(--sec-accent);
}
.portal-chip:hover { background: var(--sec-accent); color: #fff; }
.portal-chip:hover span { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* 原版小问号产品速览按钮 .q-tip-btn */
.q-tip-btn {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: 4px;
  margin-right: 2px;
  vertical-align: text-bottom;
  border-radius: 50%;
  border: 0;
  background: #efe6de;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.q-tip-btn:hover { background: var(--amber); color: #fff; transform: scale(1.08); }

/* 原版分段控件 .seg-control */
.seg-control {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  background: #f2f4f7;
  padding: 4px;
  border-radius: 20px;
  gap: 3px;
}
.seg-control button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 16px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.seg-control button[aria-pressed="true"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* 原版预设胶囊 .preset-row */
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; }
.preset-row button {
  min-height: 36px;
  padding: 5px 15px;
  border-radius: 99px;
  border: 0;
  background: #f1f4f2;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.preset-row button:not([aria-pressed="true"]):hover { background: #e3ece6; color: var(--ink); }
body.step-care .preset-row button:not([aria-pressed="true"]) { background: #f2f1f9; color: var(--ink); }
body.step-care .preset-row button:not([aria-pressed="true"]):hover { background: #e7e5f5; color: var(--ink); }
.preset-row button[aria-pressed="true"],
body.step-care .preset-row button[aria-pressed="true"] {
  background: var(--sec-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--sec-rgb), 0.24);
}
.preset-row button[aria-pressed="true"]:hover,
body.step-care .preset-row button[aria-pressed="true"]:hover {
  background: var(--sec-accent);
  color: #fff;
  filter: brightness(1.08);
}

/* 原版滑块与进度条（住院报销示范） */
.slider-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.slider-meta span { font-size: 14px; color: var(--muted); }
.slider-meta strong { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
input[type="range"] { width: 100%; accent-color: var(--sec-accent); height: 6px; cursor: pointer; }

.stacked-bar { display: flex; height: 22px; border-radius: 99px; overflow: hidden; background: #e8eaef; gap: 2px; }
.stacked-bar span { transition: width 0.22s ease; }
.sb-ded { background: #8e94a0; }
.sb-cov { background: var(--blue); }
.sb-copay { background: #cfd5df; }

.hosp-legend { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; }
.hosp-legend > div { display: flex; align-items: center; gap: 8px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-ded { background: #8e94a0; }
.dot-cov { background: var(--blue); }
.dot-copay { background: #cfd5df; }

.formula-pill {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}

/* ==================== 原版 iPhone 实机画廊 + 红框标注（精准还原！） ==================== */
.shot-tray {
  padding: 14px;
  border-radius: 20px;
  background: #f6f8fb;
  border: 1px solid rgba(15, 23, 42, 0.045);
}

.phone-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  align-items: start;
}
.phone-gallery.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.phone-gallery.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.phone-gallery.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.phone-gallery.is-1 { grid-template-columns: minmax(0, 1fr); }

.phone-gallery.is-3 .iphone-card,
.phone-gallery.is-4 .iphone-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 9px 10px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.045);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.phone-gallery.is-3 .iphone-bezel { width: 100%; max-width: 128px; }
.phone-gallery.is-4 .iphone-bezel { width: 100%; max-width: 144px; }
.phone-gallery.is-2 .iphone-bezel { width: 100%; max-width: 136px; margin-inline: auto; }

.iphone-card {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: center;
  cursor: zoom-in;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.iphone-card:hover { transform: translateY(-4px); }
.phone-gallery.is-3 .iphone-card:hover,
.phone-gallery.is-4 .iphone-card:hover { box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08); }

.iphone-bezel {
  display: block;
  padding: 5px;
  background: #1d1d1f;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.13);
}
.iphone-bezel img {
  border-radius: 13px;
  width: 100%;
  height: auto;
  display: block;
}
.iphone-cap {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.iphone-cap em { font-style: normal; color: var(--sec-accent); font-weight: 800; margin-right: 3px; }

/* 单图步骤块（江西税务缴费） */
.steps-with-phone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f6f8fb;
}
.steps-with-phone .iphone-bezel { padding: 4px; border-radius: 15px; }
.steps-with-phone .iphone-bezel img { border-radius: 11px; }

/* 原版实机红框高亮标注（缩略图与放大弹窗完全同步） */
.marked-shot { position: relative; display: block; }
.iphone-bezel.marked-shot::after {
  left: calc(5px + var(--box-left) * 0.94);
  top: calc(5px + var(--box-top) * 0.96);
  width: calc(var(--box-width) * 0.94);
  height: calc(var(--box-height) * 0.96);
}
[data-highlight] .marked-shot::after {
  content: "";
  position: absolute;
  left: var(--box-left);
  top: var(--box-top);
  width: var(--box-width);
  height: var(--box-height);
  border: 2.5px solid #e11d48;
  border-radius: 5px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45);
  pointer-events: none;
}
[data-highlight="account"] { --box-left: 5%; --box-top: 54%; --box-width: 45%; --box-height: 8%; }
[data-highlight="query"] { --box-left: 3%; --box-top: 46%; --box-width: 94%; --box-height: 6%; }
[data-highlight="sponsor-entry"] { --box-left: 8%; --box-top: 75.8%; --box-width: 40.4%; --box-height: 7.4%; }
[data-highlight="tax-sponsor"] { --box-left: 3%; --box-top: 46.2%; --box-width: 94%; --box-height: 6.5%; }
[data-highlight="tax-medical"] { --box-left: 3%; --box-top: 52.8%; --box-width: 94%; --box-height: 6.5%; }
[data-highlight="ghb-tiers"] { --box-left: 5.2%; --box-top: 55.5%; --box-width: 89.6%; --box-height: 10.5%; }
[data-highlight="yb-home"] { --box-left: 4%; --box-top: 67.5%; --box-width: 62%; --box-height: 8.5%; }
[data-highlight="yb-status-row"] { --box-left: 4%; --box-top: 60%; --box-width: 92%; --box-height: 5%; }
[data-highlight="yb-year"] { --box-left: 66%; --box-top: 10.6%; --box-width: 30%; --box-height: 4%; }
[data-highlight="ins-clauses"] { --box-left: 5%; --box-top: 78%; --box-width: 90%; --box-height: 6.5%; }

/* ==================== Step 02 养老金公式 + 深墨绿试算舱（原版标志性视觉！） ==================== */
.pension-formula {
  display: grid;
  grid-template-columns: 1fr auto 1.15fr auto 0.85fr;
  gap: 11px;
  align-items: stretch;
}
.pf-box {
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pf-box.is-base { background: #eef6ff; }
.pf-box.is-acct { background: #eefaf2; }
.pf-box.is-total { background: #141416; color: #ffffff; }
.pf-kicker { display: block; font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.pf-box.is-base .pf-kicker { color: var(--blue); }
.pf-box.is-acct .pf-kicker { color: var(--green); }
.pf-box.is-total .pf-kicker { color: #5ce195; }
.pf-box strong { display: block; font-size: 18px; line-height: 1.25; margin-bottom: 6px; letter-spacing: -0.02em; }
.pf-box p { font-size: 12.8px; color: #515154; line-height: 1.56; }
.pf-box.is-acct b { color: var(--green); }
.pf-box.is-total p { color: #a8abb2; }
.pf-op {
  align-self: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f2f4f6;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}

/* 原版双栏养老试算舱（左纯净白表单 + 右深墨绿大数字仪表盘） */
.calc-showcase {
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.05);
}
.calc-left {
  background: var(--white);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.calc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.calc-fields label span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.calc-fields select, .calc-fields input[type="number"] {
  width: 100%;
  min-height: 42px;
  padding: 7px 13px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 13px;
  background: #f5f7f6;
  color: var(--ink);
  font-size: 14px;
  transition: background 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.calc-fields select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4.5 6.5 8 10l3.5-3.5' stroke='%235c5c62' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}
.calc-fields select:hover, .calc-fields input[type="number"]:hover { background-color: #eef2f0; }
.calc-fields select:focus, .calc-fields input[type="number"]:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--green);
  box-shadow: 0 0 0 3.5px rgba(29, 131, 72, 0.14);
}
.slider-field { background: #f5f7f6; border-radius: 15px; padding: 11px 14px; }

.calc-right {
  background: #132119;
  color: #f4f7f5;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.calc-right-top { font-size: 12px; color: #9eb5a8; }
.delta-hero { margin: 4px 0 6px; }
.delta-hero small { display: block; font-size: 13px; color: #9eb5a8; margin-bottom: 3px; }
.delta-figure { display: flex; align-items: baseline; gap: 7px; }
.delta-figure strong {
  font-size: clamp(32px, 3.8vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #5ce195;
  font-variant-numeric: tabular-nums;
}
.delta-figure span { font-size: 15px; color: #9eb5a8; }

.bar-compare { display: grid; gap: 12px; }
.bar-row-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; margin-bottom: 5px; }
.bar-row-head strong { font-size: 16px; font-variant-numeric: tabular-nums; color: #fff; }
.bar-track { height: 9px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 99px; background: #889b90; transition: width 0.25s ease; }
.bar-row.is-b .bar-track i { background: #5ce195; }
.bar-meta { font-size: 12px; color: #9eb5a8; margin-top: 4px; }
.calc-summary { font-size: 13.2px; font-weight: 600; color: #fff; line-height: 1.56; }
.calc-adopt-btn {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 99px;
  background: #5ce195;
  color: #0e2418;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 16px;
  transition: transform 140ms ease, filter 150ms ease;
}
.calc-adopt-btn:hover { filter: brightness(1.06); }
.calc-adopt-btn:active { transform: scale(0.99); }

.tier-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.tier-chip {
  padding: 4px 8px;
  border-radius: 9px;
  border: 0;
  background: #f1f5f2;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  transition: background 140ms ease, color 140ms ease;
}
.tier-chip:not(.is-selected):hover { background: var(--green-soft); color: var(--green); }
.tier-chip.is-selected { background: var(--green); color: #fff; }
.tier-chip.is-selected:hover { background: var(--green); color: #fff; filter: brightness(1.08); }

/* 原版个人资助浅绿大卡片 */
.lump-right { background: var(--green-soft); border-radius: 20px; padding: 18px 20px; }
.lump-label { display: block; font-size: 13px; color: #2b5a3d; font-weight: 700; }
.lump-big { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 12px; }
.lump-big strong {
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.05;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.lump-big span { font-size: 14px; color: #2b5a3d; font-weight: 600; }
.lump-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lump-facts > div { background: var(--white); border-radius: 14px; padding: 11px 13px; }
.lump-facts small { display: block; font-size: 12px; color: var(--muted); }
.lump-facts strong { font-size: 15.5px; color: var(--ink); font-variant-numeric: tabular-nums; }

.rule-card-green { background: #f5f9f6; border-radius: 16px; padding: 14px 16px; }
.rule-card-green strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.rule-card-green p { font-size: 13px; color: var(--muted); line-height: 1.58; }

/* ==================== Step 03 商业保险暖色调卡片（原版 #faf8f6 / #faf7f4） ==================== */
.ins-matrix { display: grid; gap: 9px; }
.ins-row {
  display: grid;
  grid-template-columns: 188px 1fr;
  gap: 14px;
  align-items: start;
  background: #faf8f6;
  border-radius: 16px;
  padding: 13px 16px;
}
.ins-name strong { display: block; font-size: 15px; color: var(--ink); margin-bottom: 5px; }
.tag-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--white);
  color: var(--ink);
}
.tag-pill.is-warm { background: var(--amber-soft); color: var(--amber); }
.ins-row p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.ins-row p strong { color: var(--ink); }

.advice-pill {
  padding: 12px 16px;
  border-radius: 15px;
  background: var(--amber-soft);
  color: var(--amber-text);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.58;
}

.plan-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.plan-tile { background: #faf7f4; border-radius: 18px; padding: 15px 16px; }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.plan-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.plan-sub-tag { font-size: 11px; font-weight: 700; color: var(--amber); background: var(--white); padding: 2px 8px; border-radius: 99px; }
.plan-price { display: flex; align-items: baseline; gap: 3px; margin: 7px 0 4px; }
.plan-price strong { font-size: 30px; line-height: 1.05; letter-spacing: -0.04em; color: var(--amber); font-variant-numeric: tabular-nums; }
.plan-price span { font-size: 12.5px; color: var(--muted); }
.plan-tile p { font-size: 12.5px; color: var(--muted); line-height: 1.48; }

.cmp-card { background: #faf8f6; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.cmp-head strong { display: block; font-size: 16.5px; color: var(--ink); }
.cmp-head span {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  background: var(--white);
  padding: 2px 10px;
  border-radius: 99px;
}

/* ==================== Step 04 照护与算账（原版柔和紫系） ==================== */
.ledger-item { background: #f6f5fb; border-radius: 18px; padding: 15px 17px; display: flex; flex-direction: column; gap: 6px; }
.li-badge { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.li-badge.is-1 { background: var(--blue-soft); color: var(--blue); }
.li-badge.is-2 { background: var(--green-soft); color: var(--green); }
.li-badge.is-3 { background: var(--purple-soft); color: var(--purple); }
.ledger-item h3 { font-size: 15.5px; margin: 0; }
.ledger-item p { font-size: 13.5px; color: var(--muted); line-height: 1.58; }

.bs-item { background: #f6f5fb; border-radius: 16px; padding: 12px 15px; }
.bs-item .slider-meta { margin-bottom: 6px; }
.bs-item .slider-meta strong { font-size: 18px; color: var(--purple); }

.budget-result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.budget-result > div { background: var(--purple-soft); border-radius: 16px; padding: 14px 16px; }
.budget-result small { display: block; font-size: 12.5px; color: #544d8a; }
.budget-result strong { display: block; font-size: 24px; color: var(--purple); font-variant-numeric: tabular-nums; margin-top: 2px; letter-spacing: -0.02em; }

.care-num { font-size: 26px; font-weight: 800; color: var(--purple); letter-spacing: -0.02em; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.care-num span { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 3px; }

.step-ol, .point-ul { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: 6px; font-size: 0.92em; color: var(--muted); line-height: 1.6; }
.step-ol strong, .point-ul strong { color: var(--ink); }

.info-pill-card { background: #f6f8fb; border-radius: 18px; padding: 16px 18px; }
.info-pill-card > strong, .info-pill-card h3 { display: block; font-size: 15.5px; margin-bottom: 5px; color: var(--ink); }
.info-pill-card p { font-size: 13.5px; color: var(--muted); line-height: 1.62; }

/* ==================== 全屏里程碑动效 ==================== */
.milestone-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease);
}

.milestone-overlay.is-open { opacity: 1; pointer-events: auto; }
.milestone-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.milestone-card {
  position: relative;
  z-index: 2;
  width: min(92vw, 460px);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 26px;
  padding: 32px 28px 26px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transform: translateY(18px) scale(0.95);
  transition: transform 420ms var(--ease);
}

.milestone-overlay.is-open .milestone-card { transform: translateY(0) scale(1); }
.milestone-seal { width: 68px; height: 68px; margin: 0 auto 16px; }
.milestone-seal svg { width: 100%; height: 100%; }
.seal-ring { fill: var(--green-soft); stroke: var(--green); stroke-width: 2.4; stroke-dasharray: 188; stroke-dashoffset: 188; transition: stroke-dashoffset 680ms var(--ease) 80ms; }
.seal-check { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 42; stroke-dashoffset: 42; transition: stroke-dashoffset 420ms var(--ease) 360ms; }
.milestone-overlay.is-open .seal-ring, .milestone-overlay.is-open .seal-check { stroke-dashoffset: 0; }
.milestone-kicker { display: inline-block; font-size: 12px; font-weight: 700; color: var(--sec-accent); background: var(--sec-soft); padding: 4px 12px; border-radius: 99px; margin-bottom: 10px; }
.milestone-card h3 { font-size: 23px; font-weight: 700; letter-spacing: -0.025em; color: var(--ink); margin-bottom: 8px; }
.milestone-card p { margin: 0 auto 18px; font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 36ch; }
.milestone-summary { background: #f6f8fb; border-radius: 14px; padding: 12px 14px; font-size: 13px; color: var(--ink); margin-bottom: 20px; text-align: left; line-height: 1.55; }
.milestone-dots { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 20px; }
.milestone-dots i { display: block; width: 34px; height: 5px; border-radius: 99px; background: #e6e9ef; }
.milestone-dots i.is-done { background: var(--green); }
.milestone-actions { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ==================== 弹窗体系（完全对齐原版洁白浮窗 + Lightbox 左右切换） ==================== */
dialog {
  width: min(700px, calc(100% - 24px));
  max-height: 92dvh;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.54); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.dialog-title-wrap { display: flex; align-items: center; gap: 9px; min-width: 0; }
.dialog-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 700; color: var(--ink); }
.dlg-body { padding: 18px 20px 20px; max-height: 78dvh; overflow-y: auto; }

/* 原版图片放大弹窗 + 左右圆形切换按钮 + 平滑切换动效 */
#zoom-dialog { width: min(680px, calc(100% - 24px)); }
.zoom-counter {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 2px 10px;
  border-radius: 99px;
  font-variant-numeric: tabular-nums;
}
.zoom-body {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  max-height: calc(92dvh - 124px);
  overflow: auto;
  background: var(--white);
}
.zoom-stage {
  display: grid;
  place-items: center;
  min-width: 0;
}
.zoom-stage.is-next { animation: zoomSlideNext 240ms var(--ease) both; }
.zoom-stage.is-prev { animation: zoomSlidePrev 240ms var(--ease) both; }
@keyframes zoomSlideNext {
  from { opacity: 0.25; transform: translateX(22px) scale(0.985); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes zoomSlidePrev {
  from { opacity: 0.25; transform: translateX(-22px) scale(0.985); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
.zoom-body .marked-shot { width: fit-content; max-width: 100%; margin: auto; }
.zoom-body img {
  margin: auto;
  max-height: calc(92dvh - 160px);
  width: auto;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}
.zoom-nav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: #f2f4f7;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  flex: none;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s var(--ease), opacity 0.16s ease;
}
.zoom-nav:hover:not(:disabled) { background: var(--ink); color: #fff; transform: scale(1.07); }
.zoom-nav:disabled { opacity: 0.26; cursor: not-allowed; }
.zoom-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 20px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--white);
}
.zoom-hint { font-size: 12.5px; color: var(--muted); }

/* 江西官方咨询电话与问话速查弹窗 */
#hotline-dialog { width: min(780px, calc(100% - 24px)); }
.city-picker-box {
  background: #f6f8fb;
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.city-picker-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.city-picker-head strong { font-size: 13.5px; color: var(--ink); }
.city-picker-head span { font-size: 12px; color: var(--muted); }
.city-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.city-pill {
  padding: 5px 11px;
  border-radius: 99px;
  border: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.city-pill:not([aria-pressed="true"]):hover { background: #e9eef7; }
.city-pill[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 113, 227, 0.24);
}
.city-pill small { font-variant-numeric: tabular-nums; opacity: 0.78; margin-left: 3px; font-weight: 500; }

.hotline-list { display: grid; gap: 11px; }
.hotline-card {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-left: 4px solid var(--sec-accent);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}
.hotline-card.is-focus {
  border-color: var(--sec-accent);
  box-shadow: 0 0 0 2px rgba(var(--sec-rgb), 0.16), var(--shadow);
}
.hotline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.hotline-dept { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hotline-dept strong { font-size: 15px; color: var(--ink); }
.hotline-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--sec-soft);
  color: var(--sec-accent);
}
.hotline-dial-group { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.hotline-num {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--sec-soft);
  color: var(--sec-accent);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.hotline-num:hover { background: var(--sec-accent); color: #fff; text-decoration: none; }
.hotline-scope { font-size: 13px; color: var(--muted); line-height: 1.58; }
.hotline-scope strong { color: var(--ink); }
.hotline-script {
  background: #f6f8fb;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.hotline-script p { font-size: 12.5px; color: var(--ink); line-height: 1.55; margin: 0; flex: 1; }
.hotline-script-copy {
  flex: none;
  border: 0;
  background: var(--white);
  color: var(--sec-accent);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  transition: background 140ms ease, color 140ms ease;
}
.hotline-script-copy:hover { background: var(--sec-accent); color: #fff; }

/* 原版 10 秒速测弹窗样式（.q-group / .q-pills / .quiz-steps） */
#quiz-dialog { width: min(740px, calc(100% - 24px)); }
.quiz-controls { display: grid; gap: 14px; margin-bottom: 18px; }
.q-group {
  display: grid;
  grid-template-columns: 210px 1fr;
  align-items: center;
  gap: 8px 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.055);
}
.q-group:last-child { padding-bottom: 0; border-bottom: 0; }
.q-label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.q-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.q-pills button {
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 0;
  background: #f2f4f8;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.q-pills button:not([aria-pressed="true"]):hover { background: #e6ebf4; color: var(--ink); }
.q-pills button[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.26);
}
.q-pills button[aria-pressed="true"]:hover {
  background: var(--blue-hover);
  color: #fff;
}
.quiz-output { background: #f6f8fb; border-radius: 20px; padding: 18px; }
.quiz-output h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.quiz-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quiz-step {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--white);
  border-radius: 16px;
  padding: 15px 16px;
  box-shadow: var(--shadow-sm);
}
.qs-head { display: flex; align-items: center; gap: 8px; }
.qs-num {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
}
.qs-head small { font-size: 12.5px; font-weight: 700; color: var(--blue); line-height: 1.3; }
.quiz-step p { font-size: 13.2px; color: var(--ink); line-height: 1.62; }
.quiz-step-link {
  margin-top: auto;
  align-self: flex-start;
  border: 0;
  background: transparent;
  padding: 4px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}
.quiz-step-link:hover { text-decoration: underline; }

/* 原版产品速览 / 扫码弹窗样式 */
#info-dialog { width: min(440px, calc(100% - 24px)); }
.pop-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: var(--soft);
  color: var(--muted);
  font-size: 19px;
  line-height: 1;
  flex: none;
  display: grid;
  place-items: center;
}
.pop-close:hover { background: #e4e6eb; color: var(--ink); }
.pop-dl { margin: 0; display: grid; gap: 9px; }
.pop-dl dt { font-size: 12.5px; font-weight: 700; color: var(--amber); margin-top: 2px; }
.pop-dl dd { margin: 0; font-size: 13.5px; color: var(--ink); line-height: 1.62; }
.pop-dl dd.is-warn { background: var(--amber-soft); color: var(--amber-text); padding: 9px 11px; border-radius: 12px; }
.pop-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #f7f8fa;
  border-radius: 18px;
  padding: 16px 14px 12px;
}
.pop-qr-wrap img {
  width: 174px;
  height: 174px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.pop-qr-hint { margin-top: 9px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.pop-copy-btn {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s, transform 0.14s;
}
.pop-copy-btn:hover { background: #333336; }
.pop-copy-btn:active { transform: scale(0.99); }

/* 结果报告弹窗 */
#report-dialog { width: min(700px, calc(100% - 24px)); }
.report-sheet { background: #f6f8fb; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.report-banner { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(15, 23, 42, 0.06); }
.report-banner h3 { margin: 4px 0 3px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.report-banner p { font-size: 13px; color: var(--muted); }
.report-badge { font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.report-block { background: var(--white); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-sm); border-top: 3px solid var(--sec-accent); }
.report-block small { display: block; font-size: 12px; font-weight: 700; color: var(--sec-accent); margin-bottom: 4px; }
.report-block strong { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 4px; }
.report-block p { font-size: 12.8px; color: var(--muted); line-height: 1.56; }
.report-todo { background: var(--white); border-radius: 16px; padding: 15px 17px; box-shadow: var(--shadow-sm); }
.report-todo h4 { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.report-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 20px; border-top: 1px solid rgba(15, 23, 42, 0.06); background: #fafbfd; flex-wrap: wrap; }

/* 原版 Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 130;
  background: rgba(29, 29, 31, 0.94);
  color: #fff;
  padding: 11px 20px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  max-width: calc(100% - 32px);
  text-align: center;
}

/* ==================== 新手术语波浪注释 + 悬浮卡 + 词典/FAQ 抽屉（原版保留） ==================== */
.term-note {
  display: inline;
  padding: 0 1px 1px;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: inherit;
  cursor: help;
  text-decoration: underline wavy rgba(0, 113, 227, 0.58);
  text-decoration-thickness: 1.3px;
  text-underline-offset: 3.5px;
  text-decoration-skip-ink: none;
  border-radius: 4px;
  transition: background 0.14s ease, text-decoration-color 0.14s ease;
}
body.step-pension .term-note { text-decoration-color: rgba(29, 131, 72, 0.58); }
body.step-insurance .term-note { text-decoration-color: rgba(200, 82, 27, 0.58); }
body.step-care .term-note { text-decoration-color: rgba(88, 80, 168, 0.56); }

.term-note:hover,
.term-note:focus-visible,
.term-note[aria-expanded="true"] {
  background: rgba(var(--sec-rgb), 0.11);
  text-decoration-color: var(--sec-accent);
  outline: none;
}

.popover-backdrop {
  position: fixed;
  inset: 0;
  z-index: 88;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.product-popover {
  position: fixed;
  z-index: 95;
  background: var(--white);
  border-radius: 20px;
  padding: 18px 20px 16px;
  box-shadow: 0 20px 56px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.06);
  max-height: 78dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.product-popover.is-sheet {
  left: 10px;
  right: 10px;
  bottom: 10px;
  top: auto;
  width: auto !important;
  border-radius: 22px;
  padding: 18px 18px calc(16px + env(safe-area-inset-bottom, 0px));
}
.pop-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}
.pop-head strong { display: block; font-size: 16px; line-height: 1.3; color: var(--ink); }
.pop-head small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.glossary-pop-cat {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  background: #eef5ff;
  color: var(--blue);
  vertical-align: middle;
}
.glossary-pop-cat.is-pension { background: #e8f7ef; color: var(--green); }
.glossary-pop-cat.is-insurance { background: #fff4e5; color: var(--amber); }
.glossary-pop-cat.is-care { background: #f2edff; color: var(--purple); }
.glossary-pop-qa {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f8fb;
  display: grid;
  gap: 8px;
}
.glossary-pop-qa-item strong { display: block; font-size: 12.5px; color: var(--ink); line-height: 1.45; margin-bottom: 2px; }
.glossary-pop-qa-item p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.glossary-pop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.glossary-pop-btn {
  flex: 1 1 auto;
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  background: var(--ink);
  color: #fff;
  transition: background 0.15s;
}
.glossary-pop-btn:hover { background: #333336; color: #fff; }
.glossary-pop-btn.is-soft { background: var(--soft); color: var(--ink); }
.glossary-pop-btn.is-soft:hover { background: #e5e8ee; color: var(--ink); }

.guide-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.guide-drawer {
  position: fixed;
  top: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 125;
  width: min(460px, calc(100vw - 24px));
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.gd-head { flex: 0 0 auto; padding: 15px 18px 11px; border-bottom: 1px solid rgba(15, 23, 42, 0.07); background: #fbfcfe; }
.gd-head-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.gd-head-top strong { display: block; font-size: 16.5px; color: var(--ink); line-height: 1.25; }
.gd-head-top small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.gd-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: #eff2f6; padding: 3px; border-radius: 12px; margin-bottom: 9px; }
.gd-tab { border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; padding: 7px 8px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.gd-tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08); }
.gd-search { width: 100%; min-height: 38px; padding: 7px 12px; border: 1px solid rgba(15, 23, 42, 0.12); border-radius: 10px; background: #fff; color: var(--ink); font-size: 13.5px; outline: none; }
.gd-search:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12); }
.gd-cats { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.gd-cats::-webkit-scrollbar { display: none; }
.gd-cat { border: 0; background: #f2f4f7; color: var(--muted); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; white-space: nowrap; cursor: pointer; }
.gd-cat[aria-pressed="true"] { background: var(--ink); color: #fff; }
.gd-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 16px 24px; }
.gd-empty { text-align: center; color: var(--muted); font-size: 13.5px; padding: 28px 12px; }
.gd-item { display: block; margin-bottom: 10px; border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 14px; background: #fff; }
.gd-item[open] { border-color: rgba(0, 113, 227, 0.28); box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06); }
.gd-item.is-highlight { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14); }
.gd-item > summary { list-style: none; cursor: pointer; padding: 12px 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.gd-item > summary::-webkit-details-marker { display: none; }
.gd-item > summary::after { content: "▾"; flex: none; color: var(--muted); font-size: 13px; margin-top: 2px; transition: transform 0.16s; }
.gd-item[open] > summary::after { transform: rotate(180deg); color: var(--blue); }
.gd-item-body { padding: 0 14px 14px; border-top: 1px solid rgba(15, 23, 42, 0.05); font-size: 13.5px; color: #34373f; line-height: 1.65; }
.gd-item-body p { margin: 10px 0 0; }
.gd-steps { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.gd-script-box { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #f4f8ff; border: 1px dashed rgba(0, 113, 227, 0.28); }
.gd-script-head strong { font-size: 12px; color: var(--blue); }
.gd-script-box p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink); line-height: 1.55; }
.gd-term-warn { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--amber-soft); color: var(--amber-text); font-size: 12.5px; line-height: 1.55; }

/* ==================== Responsive Breakpoints ==================== */
@media (max-width: 1199px) and (min-width: 980px) {
  body.is-detail .workspace { grid-template-columns: 208px minmax(0, 1fr) 252px; gap: 14px; }
}

@media (max-width: 979px) {
  .topbar-inner { padding: 0 14px; }
  .app-stage { padding: 16px 14px 26px; gap: 16px; }
  .overview-header { flex-direction: column; align-items: stretch; gap: 14px; }
  .readiness-strip { justify-content: space-between; flex-wrap: wrap; }
  .steps-deck { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; height: auto; }
  .step-cover { min-height: 150px; }

  body.is-detail .workspace { display: flex; flex-direction: column; height: auto; gap: 16px; }
  body.is-detail .steps-column { height: auto; overflow: visible; padding: 0; margin: 0; }
  body.is-detail .steps-deck { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  body.is-detail .step-card,
  body.is-detail .step-card.is-active {
    flex: 0 0 auto;
    padding: 9px 13px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    border-radius: 99px;
  }
  body.is-detail .step-card.is-active .step-cover { display: none; }
  body.is-detail .step-card.is-active .step-content { padding: 0; }
  body.is-detail .step-card.is-active .step-desc,
  body.is-detail .step-card.is-active .step-live-note,
  body.is-detail .step-card.is-active .step-card-foot { display: none; }
  body.is-detail .step-card.is-active .step-title { font-size: 14px; }
  body.is-detail .rail-report-card { display: none; }

  .detail-panel { height: auto; overflow: visible; }
  .detail-body { overflow: visible; padding: 16px; }
  .detail-head { padding: 14px 16px 0; }
  .detail-foot { padding: 12px 16px; flex-wrap: wrap; }
  .grid-2, .grid-3, .grid-4, .grid-split, .big-stats, .pension-formula, .calc-showcase, .plan-grid-3, .quiz-steps, .report-grid, .ins-row { grid-template-columns: 1fr; }
  .q-group { grid-template-columns: 1fr; gap: 8px; }
  .pf-op { justify-self: center; }
  .phone-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .phone-gallery.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-with-phone { grid-template-columns: 1fr; }
  .steps-with-phone .phone-gallery.is-1 { max-width: 170px; margin-inline: auto; }

  body.is-detail .dock-slot { height: auto; }
  .dock-panel { height: auto; padding: 0; margin: 0; overflow: visible; }
  .dock-body { overflow: visible; }
}

@media (max-width: 560px) {
  .steps-deck { grid-template-columns: 1fr; }
  .phone-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-pill { display: none; }
  .zoom-body { grid-template-columns: 1fr; padding: 10px; }
  .zoom-nav { display: none !important; }
  .zoom-hint { display: none; }
  .guide-drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: min(86dvh, 720px); border-radius: 22px 22px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
