/* ============================================================
 * Harbour 港险工作台 — 设计系统
 * 移动端 H5 优先，≥1024px 切换为桌面侧栏布局
 * ============================================================ */

:root {
  --ink: #0a1f1a;
  --ink-2: #1c332c;
  --jade: #0f5a4a;
  --jade-2: #0b4034;
  --jade-soft: #e7efea;
  --gold: #b3894b;
  --gold-2: #d9b87c;
  --gold-soft: #f6eddc;
  --paper: #f5f1e8;
  --card: #ffffff;
  --line: #e4ded0;
  --line-2: #efeae0;
  --muted: #6e7d76;
  --muted-2: #97a39d;
  --red: #a8442d;
  --red-soft: #fbeae5;
  --green: #2e6b4e;
  --green-soft: #e8f2ec;
  --amber: #96631c;
  --amber-soft: #fbf0dc;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(10, 31, 26, 0.04), 0 10px 30px -18px rgba(10, 31, 26, 0.3);
  --shadow-lg: 0 2px 6px rgba(10, 31, 26, 0.05), 0 24px 60px -28px rgba(10, 31, 26, 0.4);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

/* 图标默认尺寸，各组件可覆盖 */
svg { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.15em; flex: 0 0 auto; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------------- 骨架 ---------------- */
.app { display: flex; min-height: 100vh; min-height: 100dvh; }

.rail {
  display: none;
  width: 250px;
  flex: 0 0 250px;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  background: var(--ink);
  color: #e8efe9;
  flex-direction: column;
  padding: 22px 16px;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 18px; }

/* ---------------- 品牌 ---------------- */
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 38px;
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
  color: #23180a; display: grid; place-items: center;
  font-weight: 700; font-size: 17px; letter-spacing: -0.04em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 12px -4px rgba(179,137,75,.7);
}
.brand-name { font-size: 16px; font-weight: 650; letter-spacing: .01em; }
.brand-sub { font-size: 11px; color: var(--muted-2); letter-spacing: .12em; text-transform: uppercase; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: rgba(245, 241, 232, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.topbar .grow { flex: 1; min-width: 0; }
.topbar-title { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- 模式开关 ---------------- */
.mode {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: #e9e3d6; border: 1px solid #ded7c7; flex: 0 0 auto;
}
.mode button {
  padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 550;
  color: #6d7a73; white-space: nowrap; transition: .18s;
}
.mode button.on { background: var(--ink); color: #f2ede3; box-shadow: 0 2px 8px -2px rgba(10,31,26,.4); }

/* ---------------- 底部标签栏 ---------------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid var(--line-2);
}
.tabbar button {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px; border-radius: 12px; font-size: 10.5px; color: #7e8b84;
  transition: color .16s;
}
.tabbar button svg { width: 21px; height: 21px; stroke-width: 1.7; }
.tabbar button.on { color: var(--jade); }
.tabbar button.on svg { stroke-width: 2.1; }

/* ---------------- 侧栏导航 ---------------- */
.rail-brand { padding: 4px 6px 22px; }
.rail-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.rail-nav button {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  color: #a9bbb2; font-size: 14px; text-align: left; transition: .16s;
}
.rail-nav button svg { width: 19px; height: 19px; stroke-width: 1.7; flex: 0 0 auto; }
.rail-nav button:hover { background: rgba(255,255,255,.05); color: #dbe6df; }
.rail-nav button.on { background: rgba(217,184,124,.14); color: #f0d8ab; }
.rail-nav button.on svg { stroke-width: 2.1; }
.rail-foot { border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; margin-top: 14px; }
.rail-card {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 12px;
}
.rail-card .k { font-size: 11px; color: #8fa398; letter-spacing: .06em; }
.rail-card .v { font-size: 13px; color: #e6ded0; margin-top: 3px; font-weight: 550; }

/* ---------------- 通用排版 ---------------- */
.section { padding: 20px 0 4px; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.section-head h2 { font-size: 16px; font-weight: 650; }
.section-head .sub { font-size: 12px; color: var(--muted); }
.section-head .more { margin-left: auto; font-size: 12.5px; color: var(--jade); font-weight: 550; }

.eyebrow {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); font-weight: 650;
}

.page { padding: 18px 0 40px; animation: fade .26s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .page { animation: none; } }

.page-title { font-size: 25px; font-weight: 680; letter-spacing: -0.035em; line-height: 1.25; }
.page-sub { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
}
.card-pad { padding: 16px; }
.card-hover { transition: transform .18s, box-shadow .18s, border-color .18s; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #d6cdb8; }
.card-hover:active { transform: translateY(0) scale(.995); }

.stack { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }

/* ---------------- 首页 Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: 20px; padding: 22px 20px 20px;
  background:
    radial-gradient(120% 90% at 100% 0%, #1d5c4c 0%, rgba(29,92,76,0) 55%),
    linear-gradient(160deg, #0d2b23 0%, #0a1f1a 62%, #071713 100%);
  color: #eee7d9;
  box-shadow: 0 18px 44px -26px rgba(10,31,26,.75);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(115deg, rgba(217,184,124,.08) 0 1px, transparent 1px 13px);
  mask-image: linear-gradient(200deg, #000 10%, transparent 70%);
  -webkit-mask-image: linear-gradient(200deg, #000 10%, transparent 70%);
}
.hero > * { position: relative; z-index: 1; }
.hero .date { font-size: 11.5px; color: #9fb6aa; letter-spacing: .1em; }
.hero h1 { font-size: 23px; margin-top: 8px; letter-spacing: -0.02em; color: #f6f1e6; }
.hero h1 em { font-style: normal; color: #e2b467; font-weight: 700; }
.hero .lede { font-size: 13px; color: #b6c8bf; margin-top: 8px; max-width: 30em; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.hero-stat {
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px; padding: 10px 10px 9px;
}
.hero-stat .v { font-size: 21px; font-weight: 650; color: #f4e9d4; letter-spacing: -0.02em; line-height: 1.1; }
.hero-stat .v small { font-size: 11px; font-weight: 500; color: #a9bdb2; margin-left: 2px; }
.hero-stat .k { font-size: 10.5px; color: #93a89d; margin-top: 3px; letter-spacing: .04em; }

/* ---------------- 徽标 / 胶囊 ---------------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 550; letter-spacing: .01em;
  background: #f1ece0; color: #6c7a72; border: 1px solid #e6dfd0;
  white-space: nowrap;
}
.chip.jade { background: var(--jade-soft); color: var(--jade); border-color: #d3e3da; }
.chip.gold { background: var(--gold-soft); color: #8a6526; border-color: #ecdcbd; }
.chip.red { background: var(--red-soft); color: var(--red); border-color: #f2d6cd; }
.chip.amber { background: var(--amber-soft); color: var(--amber); border-color: #f0dfc0; }
.chip.green { background: var(--green-soft); color: var(--green); border-color: #d2e6d9; }
.chip.ghost { background: transparent; }
.chip svg { width: 12px; height: 12px; }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 6px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 18px; border-radius: 11px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  background: var(--ink); color: #f3eee4; transition: .16s;
  border: 1px solid var(--ink);
}
.btn:active { transform: scale(.985); }
.btn:hover { background: #14312a; }
.btn.gold { background: linear-gradient(150deg, var(--gold-2), var(--gold)); color: #2a1e0b; border-color: #c49a58; }
.btn.gold:hover { filter: brightness(1.04); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: #fff; border-color: #d6cdb8; }
.btn.sm { padding: 7px 13px; font-size: 12.5px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg { width: 16px; height: 16px; }

/* ---------------- 列表行 ---------------- */
.row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 13px 16px; border-bottom: 1px solid var(--line-2);
}
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-size: 14.5px; font-weight: 550; }
.row .d { font-size: 12px; color: var(--muted); margin-top: 2px; }
.row .arrow { color: #c3cbc6; flex: 0 0 auto; }

/* ---------------- 产品卡 ---------------- */
.p-card { padding: 15px 16px; display: block; width: 100%; text-align: left; }
.p-top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.p-logo {
  width: 30px; height: 30px; border-radius: 8px; flex: 0 0 30px;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: var(--jade-soft); color: var(--jade); letter-spacing: -0.02em;
  border: 1px solid #d8e6de;
}
.p-name { font-size: 15.5px; font-weight: 620; letter-spacing: -0.01em; line-height: 1.35; }
.p-insurer { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.p-summary {
  font-size: 12.5px; color: #5d6b64; margin-top: 8px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.p-metric { background: #faf7f0; border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 8px; }
.p-metric .k { font-size: 9.5px; color: var(--muted-2); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-metric .v { font-size: 14px; font-weight: 650; letter-spacing: -0.02em; margin-top: 1px; color: var(--ink); }
.p-metric .v small { font-size: 9px; color: var(--muted-2); font-weight: 500; }
.p-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 11px; }

/* ---------------- 优惠卡 ---------------- */
.o-card { padding: 14px 15px; display: block; width: 100%; text-align: left; position: relative; overflow: hidden; }
.o-card.dead { opacity: .58; filter: grayscale(.5); }
.o-top { display: flex; align-items: flex-start; gap: 8px; }
.o-headline { font-size: 16px; font-weight: 660; letter-spacing: -0.015em; line-height: 1.35; }
.o-title { font-size: 12px; color: var(--muted); margin-top: 3px; }
.o-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.o-note { font-size: 11px; color: var(--muted-2); }
.o-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); }
.o-card.dead .o-bar { background: #c9c2b2; }

/* ---------------- 动态时间线 ---------------- */
.tl { position: relative; padding-left: 18px; }
.tl::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -18px; top: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--gold); box-shadow: 0 0 0 3px var(--paper);
}
.tl-date { font-size: 10.5px; color: var(--muted-2); letter-spacing: .05em; }
.tl-title { font-size: 14.5px; font-weight: 600; margin-top: 3px; line-height: 1.45; }
.tl-sum { font-size: 12.5px; color: #5d6b64; margin-top: 5px; line-height: 1.6; }
.tl-impact {
  font-size: 12px; margin-top: 8px; padding: 8px 10px; border-radius: 8px;
  background: var(--gold-soft); color: #7a5a20; border: 1px solid #eddfc4;
}

/* ---------------- 搜索 / 筛选 ---------------- */
.search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
  padding: 9px 12px; box-shadow: var(--shadow);
}
.search svg { width: 16px; height: 16px; color: var(--muted-2); flex: 0 0 16px; }
.search input { border: 0; outline: 0; background: none; width: 100%; font-size: 14px; }
.search input::placeholder { color: var(--muted-2); }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 550;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  white-space: nowrap; transition: .16s;
}
.tabs button.on { background: var(--ink); border-color: var(--ink); color: #f2ede3; }

/* ---------------- 提示条 ---------------- */
.banner {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 13px; border-radius: 11px; font-size: 12px; line-height: 1.55;
  background: var(--amber-soft); border: 1px solid #eedcbb; color: #7a5a20;
}
.banner svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1px; }
.banner.info { background: var(--jade-soft); border-color: #d3e3da; color: #24584a; }
.banner.plain { background: #faf7f0; border-color: var(--line); color: #6c7a72; }

/* ---------------- 明细表 ---------------- */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 550; }

.benefit { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.benefit:last-child { border-bottom: 0; }
.benefit .k { color: var(--muted); flex: 0 0 auto; }
.benefit .v { font-weight: 600; text-align: right; }

.bullets { display: flex; flex-direction: column; gap: 8px; }
.bullets li { display: flex; gap: 9px; font-size: 13px; line-height: 1.6; color: #40524a; }
.bullets li::before {
  content: ""; flex: 0 0 6px; width: 6px; height: 6px; margin-top: 8px;
  border-radius: 2px; background: var(--jade); transform: rotate(45deg);
}
.bullets.warn li::before { background: var(--red); }

/* ---------------- 分享页 ---------------- */
.client-wrap { max-width: 620px; margin: 0 auto; }
.client-hero { background: var(--ink); color: #eee7d9; padding: 26px 22px; border-radius: 18px; }
.client-hero h1 { font-size: 22px; color: #f6f1e6; letter-spacing: -0.02em; }
.client-hero .who { font-size: 12.5px; color: #a9bdb2; margin-top: 10px; line-height: 1.7; }
.client-hero .who strong { color: #e9dcc3; font-weight: 600; }

.adviser-card { display: flex; align-items: center; gap: 12px; padding: 14px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 44px;
  display: grid; place-items: center; font-weight: 650; font-size: 15px;
  background: linear-gradient(150deg, #d9b87c, #b3894b); color: #2a1e0b;
}
.fineprint { font-size: 11px; line-height: 1.7; color: #8a9691; }
.fineprint strong { color: #6c7a72; }

/* ---------------- 定价 ---------------- */
.price-card { padding: 18px 17px; position: relative; }
.price-card.hot { border-color: #d9b87c; box-shadow: 0 0 0 1px #d9b87c, var(--shadow-lg); }
.price-name { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.price { font-size: 28px; font-weight: 700; letter-spacing: -0.04em; margin-top: 6px; }
.price span { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-desc { font-size: 12.5px; color: var(--muted); margin-top: 6px; min-height: 2.6em; }
.price-feats { margin: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.price-feats li { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.55; color: #40524a; }
.price-feats svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 2px; color: var(--jade); }
.hot-flag {
  position: absolute; top: -10px; right: 14px; padding: 3px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 650; letter-spacing: .06em;
  background: linear-gradient(150deg, var(--gold-2), var(--gold)); color: #2a1e0b;
}

/* ---------------- 表单 ---------------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.field label { font-size: 12px; font-weight: 550; color: var(--muted); }
.field input, .field textarea {
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; outline: 0; font-size: 14px; transition: border-color .16s, box-shadow .16s;
}
.field input:focus, .field textarea:focus { border-color: var(--jade); box-shadow: 0 0 0 3px rgba(15,90,74,.1); }
.field textarea { resize: vertical; min-height: 110px; font-family: var(--mono); font-size: 12px; line-height: 1.6; }

/* ---------------- 空状态 ---------------- */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 13px; }
.empty svg { width: 34px; height: 34px; color: #c9d1cb; margin-bottom: 10px; }

/* ---------------- 桌面端 ---------------- */
@media (min-width: 720px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
  .hero { padding: 28px 26px 24px; }
  .hero h1 { font-size: 27px; }
  .page-title { font-size: 29px; }
}

@media (min-width: 1024px) {
  .rail { display: flex; }
  .main { padding-bottom: 0; }
  .tabbar { display: none; }
  .topbar { padding: 16px 30px; background: rgba(245,241,232,.9); }
  .wrap { padding: 0 30px; }
  .page { padding: 26px 0 64px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .hero-stats { max-width: 460px; }
  .o-card, .p-card { padding: 17px 18px; }
  .price-card { padding: 22px 20px; }
}

/* ---------------- 打印（存 PDF 给客户） ---------------- */
@media print {
  body { background: #fff; }
  .rail, .tabbar, .topbar, .no-print { display: none !important; }
  .main { padding: 0; }
  .wrap { padding: 0; max-width: 100%; }
  .card { box-shadow: none; break-inside: avoid; }
  .client-hero { border-radius: 0; }
  .page { padding: 0; animation: none; }
  a[href]::after { content: ""; }
}

/* ---------------- 补充组件 ---------------- */
.only-mobile { display: flex; }
@media (min-width: 1024px) { .only-mobile { display: none; } }

.icon-btn {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--jade);
  box-shadow: 0 1px 2px rgba(10,31,26,.04); transition: .16s;
}
.icon-btn:hover { background: var(--jade-soft); border-color: #cfe0d7; }
.icon-btn svg { width: 18px; height: 18px; }

.tab-link {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px; font-size: 10.5px; color: #7e8b84;
}
.tab-link svg { width: 21px; height: 21px; }

.pick-box {
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: 6px;
  border: 1.5px solid #d5cec0; background: #fff;
  display: grid; place-items: center; color: #fff; transition: .16s;
}
.pick-box svg { width: 13px; height: 13px; stroke-width: 3; }
.pick-box.on { background: var(--jade); border-color: var(--jade); }

details summary::-webkit-details-marker { display: none; }
details[open] summary span:last-child { transform: rotate(45deg); }
details summary span:last-child { transition: transform .18s; }

.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translate(-50%, 10px); z-index: 200;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(10, 31, 26, 0.94); color: #f2ede3;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 12px 30px -10px rgba(10,31,26,.6);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  max-width: calc(100vw - 40px); overflow: hidden; text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 1024px) {
  .toast { bottom: 32px; }
}

/* 两行截断 */
.clamp2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.tl-impact.clamp2 { display: -webkit-box; margin-top: 8px; }

/* 侧栏底部按钮与导航同款 */
.rail-foot button {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 12px; border-radius: 10px; text-align: left;
  color: #a9bbb2; font-size: 14px; transition: .16s;
}
.rail-foot button svg { width: 19px; height: 19px; stroke-width: 1.7; }
.rail-foot button:hover { background: rgba(255,255,255,.05); color: #dbe6df; }
.rail-foot button.on { background: rgba(217,184,124,.14); color: #f0d8ab; }

/* 指标备注 */
.p-metric .v small { margin-left: 3px; font-weight: 500; }

/* 桌面端 Hero：文案与数据分两栏，避免右侧大片留白 */
@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 372px;
    grid-template-rows: auto auto auto;
    align-items: center;
    column-gap: 40px;
    padding: 30px 30px 28px;
  }
  .hero > .date { grid-column: 1; grid-row: 1; }
  .hero > h1 { grid-column: 1; grid-row: 2; margin-top: 10px; }
  .hero > .lede { grid-column: 1; grid-row: 3; }
  .hero .hero-stats { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; max-width: none; }
  .hero .hero-stat { padding: 14px 14px 13px; }
  .hero .hero-stat .v { font-size: 25px; }
}

.main.no-tab { padding-bottom: 24px; }
@media print { .main.no-tab { padding-bottom: 0; } }

/* ---------------- 5 年缴优惠总表 ---------------- */
.promo-src {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 14px;
  font-size: 12px; color: #d9b87c; border-bottom: 1px solid rgba(217,184,124,.35);
  padding-bottom: 2px;
}
.promo-src svg { width: 12px; height: 12px; }

.promo-entry {
  display: flex; align-items: center; gap: 12px; width: 100%;
  text-align: left; padding: 14px 16px;
}

.premium-input {
  display: flex; align-items: center; gap: 6px; margin-top: 6px;
  border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; background: #fff;
  transition: border-color .16s, box-shadow .16s;
}
.premium-input:focus-within { border-color: var(--jade); box-shadow: 0 0 0 3px rgba(15,90,74,.1); }
.premium-input span { color: var(--muted); font-size: 15px; }
.premium-input input {
  border: 0; outline: 0; width: 100%; background: transparent;
  font-size: 20px; font-weight: 650; letter-spacing: -0.02em;
}
.premium-input input::-webkit-outer-spin-button,
.premium-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.premium-input input[type=number] { -moz-appearance: textfield; }

.tabs button.on[data-act="prem"] { background: var(--ink); border-color: var(--ink); color: #f2ede3; }

.plan-card { padding: 14px 15px; }
.plan-top { display: flex; align-items: flex-start; gap: 10px; }
.plan-mark {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px;
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: var(--jade-soft); color: var(--jade); border: 1px solid #d8e6de;
}
.plan-name { font-size: 14.5px; font-weight: 620; letter-spacing: -0.01em; }
.plan-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.plan-value {
  font-size: 17px; font-weight: 700; text-align: right; max-width: 46%;
  line-height: 1.3; letter-spacing: -0.02em; color: var(--ink);
}
.plan-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.plan-link { margin-top: 10px; font-size: 12px; color: var(--jade); font-weight: 600; padding: 0; }
.plan-card.dim { opacity: .6; }

.ladder { padding: 4px 0; }
.ladder-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 14px; border-bottom: 1px solid var(--line-2); font-size: 12.5px;
}
.ladder-row:last-child { border-bottom: 0; }
.ladder-band { color: var(--muted); }
.ladder-val { font-weight: 600; text-align: right; }
.ladder-val.muted { color: var(--muted-2); }

.matrix-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.matrix { border-collapse: separate; border-spacing: 0; min-width: 880px; width: 100%; font-size: 11px; }
.matrix th, .matrix td {
  padding: 8px 9px; border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2);
  text-align: center; vertical-align: middle;
}
.matrix thead th { position: sticky; top: 0; background: #faf7f0; z-index: 2; font-size: 10.5px; }
.matrix .band-col {
  position: sticky; left: 0; background: #faf7f0; z-index: 1;
  text-align: left; font-size: 10.5px; color: var(--muted); white-space: nowrap; min-width: 96px;
}
.matrix thead .band-col { z-index: 3; }
.matrix td.blank { background: #fcfaf5; }
.matrix .th-mark { display: block; font-weight: 700; color: var(--jade); font-size: 11.5px; }
.matrix .th-prod { display: block; font-weight: 400; color: var(--muted); font-size: 9.5px; margin-top: 1px; white-space: nowrap; }
.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }
.matrix th:last-child, .matrix td:last-child { border-right: 0; }

@media (min-width: 1024px) {
  .promo-hero { grid-template-rows: auto auto auto auto; }
  .promo-hero .promo-src { grid-column: 1; grid-row: 4; justify-self: start; }
  .matrix { font-size: 11.5px; }
}

.matrix-hint {
  font-size: 11px; color: var(--muted-2); margin: 0 0 6px 2px; letter-spacing: .02em;
}

@media (min-width: 720px) {
  .premium-input { max-width: 340px; }
  .promo-hero + .card { margin-top: 16px; }
}

/* 优惠金额换算 */
.plan-money {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line-2);
}
.pm-total { font-size: 15px; font-weight: 700; color: var(--jade); letter-spacing: -0.02em; }
.pm-detail { font-size: 11.5px; color: var(--muted); }

/* ---------------- 档位对比页 ---------------- */
.cmp-meta {
  display: flex; gap: 14px; flex-wrap: wrap; margin: 14px 0 10px;
  font-size: 12px; color: var(--muted);
}
.cmp-meta b { color: var(--ink); font-weight: 650; }

.cmp-table { overflow: hidden; }
.cmp-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--line-2);
}
.cmp-row:last-child { border-bottom: 0; }
.cmp-main { flex: 1; min-width: 0; }
.cmp-name {
  font-size: 14px; font-weight: 600; line-height: 1.4;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.cmp-best { font-size: 9.5px; padding: 1px 6px; }
.cmp-sub { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.cmp-bar { height: 3px; background: #f0ebe0; border-radius: 2px; margin-top: 7px; overflow: hidden; }
.cmp-bar span { display: block; height: 100%; background: linear-gradient(90deg, #d9b87c, #b3894b); border-radius: 2px; }
.cmp-amt { text-align: right; flex: 0 0 auto; }
.cmp-money { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.cmp-pct { font-size: 10.5px; color: var(--muted-2); margin-top: 1px; }

@media print {
  .cmp-bar { display: none; }
}

.cmp-money small {
  display: inline-block; margin-left: 4px; font-size: 9.5px; font-weight: 500;
  color: var(--muted-2); letter-spacing: 0;
}

/* ---------------- 一屏对比表 ---------------- */
.hidden { display: none !important; }

.cmp-toggle {
  display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px;
  background: #e9e3d6; border: 1px solid #ded7c7; margin-left: auto;
}
.cmp-toggle button {
  padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 550; color: #6d7a73;
}
.cmp-toggle button.on { background: var(--ink); color: #f2ede3; }

.cmp-grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp-grid { width: 100%; border-collapse: collapse; font-size: 12px; }
.cmp-grid th {
  font-size: 10px; color: var(--muted); font-weight: 600; text-align: right;
  padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.cmp-grid th.col-plan { text-align: left; }
.cmp-grid td {
  padding: 10px; border-bottom: 1px solid var(--line-2);
  text-align: right; vertical-align: middle;
}
.cmp-grid tr:last-child td { border-bottom: 0; }
.cmp-grid td.col-plan { text-align: left; }
.cmp-grid td.num { font-variant-numeric: tabular-nums; }
.cg-name { font-size: 13px; font-weight: 600; line-height: 1.35; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.cg-best {
  font-size: 9px; font-weight: 650; color: #8a6526; background: var(--gold-soft);
  border: 1px solid #ecdcbd; border-radius: 999px; padding: 0 5px; line-height: 1.5;
}
.cg-sub { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.cmp-grid .col-total b { display: block; font-size: 14.5px; letter-spacing: -0.02em; }
.cmp-grid .col-total span { display: block; font-size: 10px; color: var(--muted); font-weight: 500; }

@page { size: A4 portrait; margin: 12mm; }

@media print {
  .cmp-toggle { display: none !important; }
  .cmp-grid { font-size: 9pt; }
  .cmp-grid th { font-size: 7.5pt; }
  .cmp-grid td { padding: 7px 8px; }
  .cmp-grid .col-total b { font-size: 11pt; }
}

@media print {
  .client-wrap { max-width: 100% !important; }
  .cmp-grid-wrap { overflow: visible; }
}

.cg-bonus { font-size: 10px; color: #8a6526; margin-top: 2px; }

/* ---------------- 首页/优惠页的可点区域 ---------------- */
button.hero-stat {
  text-align: left; cursor: pointer; transition: background .16s, border-color .16s;
}
button.hero-stat:hover { background: rgba(255,255,255,.1); border-color: rgba(217,184,124,.45); }
button.hero-stat .k { color: #c8d8cf; }

.setup-tip { cursor: pointer; border-style: dashed; }
.setup-tip u { text-decoration: underline; }
.setup-tip:hover { background: #fdf0d8; }

/* 优惠总表入口：醒目版 */
.promo-entry2 {
  display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 16px 18px 14px; border-radius: 16px; border: 1px solid #0b4034;
  background: linear-gradient(150deg, #12483c 0%, #0b2b23 70%);
  color: #eee7d9; box-shadow: 0 12px 30px -18px rgba(10,31,26,.8);
  transition: transform .16s, box-shadow .16s;
}
.promo-entry2:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -18px rgba(10,31,26,.9); }
.promo-entry2:active { transform: none; }
.pe-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pe-badge {
  font-size: 10.5px; letter-spacing: .08em; color: #d9b87c;
  border: 1px solid rgba(217,184,124,.4); border-radius: 999px; padding: 2px 8px;
}
.pe-go { font-size: 11.5px; color: #d9b87c; display: inline-flex; align-items: center; gap: 2px; }
.pe-go svg { width: 12px; height: 12px; }
.pe-title { font-size: 19px; font-weight: 700; margin-top: 10px; letter-spacing: -0.02em; color: #f6f1e6; }
.pe-sub { font-size: 12px; color: #a9bdb2; margin-top: 4px; }
.pe-cta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 12px; padding: 9px 12px; border-radius: 10px;
  background: linear-gradient(150deg, #d9b87c, #b3894b); color: #2a1e0b;
  font-size: 13px; font-weight: 650;
}
.pe-cta svg { width: 14px; height: 14px; }
