/* ==========================================================================
   保险经纪自营 H5 投保端 · 样式
   移动优先，桌面上以手机外框居中呈现（便于在公众号内预览与评审）
   ========================================================================== */

:root {
  /* 默认品牌色 = 翡翠绿 #0f6e56（与河北国寿财引导系统同基调，平和耐看）
     后台「页面配置 → 调色板」可一键换色，H5 boot 时 applyTheme() 覆盖以下 4 个变量 */
  --brand: #0f6e56;
  --brand-600: #0f6e56;
  --brand-700: #0b5343;
  --brand-50: #e3f2ec;

  --text: #22302b;
  --text-2: #48584f;
  --muted: #6b7a74;
  --muted-2: #9aa8a3;

  --bg: #f5f7f6;
  --card: #ffffff;
  --border: #e3e9e6;
  --border-2: #eef1f0;

  --ok: #047857;
  --ok-bg: #ecfdf5;
  --ok-border: #a7f3d0;

  --warn: #b45309;
  --warn-bg: #fffbeb;
  --warn-border: #fcd34d;

  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;

  --info-bg: #e9f4ef;
  --info-border: #c6e0d5;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 4px 12px rgba(16, 24, 40, .08);

  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body { padding: 0 0 96px; }

/* ---------- 手机外框（仅桌面显示） ---------- */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  padding-bottom: calc(24px + var(--safe-bottom));
}

/* 极窄屏（£360px）：收紧间距与按钮内边距，保证姓名与签名位都不被挤消 */
@media (max-width: 360px) {
  .sig-entry { padding: 11px 10px; gap: 8px; }
  .sig-entry .se-row { gap: 8px; }
  .sig-entry .se-icon { font-size: 22px; }
  .sig-entry .se-btn { font-size: 13px; padding: 8px 12px; }
  .sig-entry .se-foot { gap: 7px; }
}

/* 横屏（手机触屏设备）：容器从 480px 放宽到 760px。
   原因：屏幕宽 844px 但容器锁死 480px，内容被挤小 → 中文逐字换行变成竖排 */
@media (orientation: landscape) and (pointer: coarse) {
  #app { max-width: 760px; }
}

@media (min-width: 640px) {
  body { background: #e8ecf3; padding-top: 24px; }
  #app {
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(16, 24, 40, .14);
    overflow: hidden;
    min-height: calc(100vh - 48px);
    margin-bottom: 24px;
  }
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
}
.nav-back {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; border: none; background: transparent;
  font-size: 19px; color: var(--text-2); cursor: pointer; flex: none;
  margin-left: -6px;
}
.nav-back:active { background: var(--border-2); }
.nav-title { font-size: 16px; font-weight: 600; letter-spacing: .2px; flex: 1; }
.nav-sub { font-size: 11px; color: var(--muted-2); font-weight: 400; }

/* ---------- 通用容器 ---------- */
.wrap { padding: 14px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 12px;
}
.card.tight { padding: 13px 14px; }
.card.plain { box-shadow: none; }

.section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: .3px;
  margin: 20px 14px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title:first-child { margin-top: 6px; }

h1 { font-size: 20px; margin: 0 0 6px; letter-spacing: -.2px; }
h2 { font-size: 16px; margin: 0 0 8px; }
h3 { font-size: 14px; margin: 0 0 6px; }
p  { margin: 0 0 8px; }
p:last-child { margin-bottom: 0; }

.muted { color: var(--muted); font-size: 13px; }
.small { font-size: 12px; }
.tiny  { font-size: 11px; }
.center{ text-align: center; }
.mono  { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.nowrap { white-space: nowrap; }

/* ---------- 合规标示条 ---------- */
.compliance-bar {
  background: var(--info-bg);
  border-bottom: 1px solid var(--info-border);
  color: #1e40af;
  font-size: 11.5px;
  line-height: 1.5;
  padding: 9px 14px;
}
.compliance-bar b { font-weight: 600; }

/* ---------- 产品卡 ---------- */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 12px;
  cursor: pointer;
  transition: box-shadow .18s;
}
.product-card:active { box-shadow: var(--shadow-lg); }
.product-card-head {
  padding: 16px 16px 12px;
  background: linear-gradient(135deg, #0f6e56 0%, #13866a 55%, #17a07f 100%);
  color: #fff;
}
.product-card-head .tag {
  display: inline-block;
  font-size: 10.5px;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .35);
  padding: 1px 7px;
  border-radius: 20px;
  margin-bottom: 7px;
  letter-spacing: .4px;
}
.product-card-head h3 { font-size: 17px; color: #fff; margin-bottom: 3px; font-weight: 600; }
.product-card-head .insurer { font-size: 11.5px; color: rgba(255, 255, 255, .82); }
.product-card-body { padding: 13px 16px; }
.price-row { display: flex; align-items: baseline; gap: 4px; margin-bottom: 10px; }
.price-row .cur { font-size: 13px; color: var(--danger); font-weight: 600; }
.price-row .num { font-size: 26px; color: var(--danger); font-weight: 700; letter-spacing: -.5px; }
.price-row .unit { font-size: 12px; color: var(--muted); }

.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; }
.kv { font-size: 12.5px; color: var(--text-2); }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; color: var(--text); }

/* ---------- 按钮 ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: var(--r);
  font-size: 15.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity .15s, transform .06s;
  letter-spacing: .3px;
}
.btn:active { transform: translateY(1px); opacity: .9; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(26, 86, 219, .3); }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--border); font-weight: 500; }
.btn-soft { background: var(--brand-50); color: var(--brand-700); border: 1px solid #c7d7fd; font-weight: 500; }
.btn-sm { padding: 9px 13px; font-size: 13.5px; width: auto; border-radius: var(--r-sm); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* 底部固定操作条 */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 11px 14px calc(11px + var(--safe-bottom));
  display: flex;
  gap: 10px;
  align-items: center;
}
.action-bar .price-block { flex: none; }
.action-bar .price-block .lbl { font-size: 10.5px; color: var(--muted); line-height: 1.2; }
.action-bar .price-block .val { font-size: 19px; color: var(--danger); font-weight: 700; line-height: 1.2; }
.action-bar .btn { flex: 1; }
@media (min-width: 640px) { .action-bar { border-radius: 0 0 20px 20px; } }

/* ---------- 表单 ---------- */
.field { margin-bottom: 13px; }
.field:last-child { margin-bottom: 0; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 5px;
  font-weight: 500;
}
.field label .req { color: var(--danger); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, .1);
}
.field .hint { font-size: 11.5px; color: var(--muted-2); margin-top: 4px; line-height: 1.45; }
.field .hint.warn { color: var(--warn); }

.radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chip {
  flex: none;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13.5px;
  color: var(--text-2);
  background: #fff;
  cursor: pointer;
  transition: all .15s;
}
.radio-chip.on {
  border-color: var(--brand);
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 600;
}

/* 勾选确认 */
.check-line {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  cursor: pointer;
  padding: 2px 0;
}
/* 修复（第五轮（八））：.field label 的 display:block 特异性更高，会把配置表单里的
   协议勾选行压成 inline（方框仅剩 2px 细线），这里按同等特异性抢回 flex 布局 */
.field label.check-line {
  display: flex;
}
.check-line input[type=checkbox] { display: none; }
.check-box {
  flex: none;
  width: 19px; height: 19px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: #fff;
  margin-top: 1px;
  position: relative;
  transition: all .15s;
}
.check-line input:checked + .check-box {
  background: var(--brand);
  border-color: var(--brand);
}
.check-line input:checked + .check-box::after {
  content: '';
  position: absolute;
  left: 5.5px; top: 2px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check-line .check-text { font-size: 13px; line-height: 1.55; color: var(--text-2); }

/* ---------- 状态与提示 ---------- */
.alert {
  border-radius: var(--r-sm);
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
  border: 1px solid;
}
.alert-danger { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger); }
.alert-warn   { background: var(--warn-bg);   border-color: var(--warn-border);   color: var(--warn); }
.alert-ok     { background: var(--ok-bg);     border-color: var(--ok-border);     color: var(--ok); }
.alert-info   { background: var(--info-bg);   border-color: var(--info-border);   color: #1e40af; }
.alert b { font-weight: 600; }

.badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 500;
  line-height: 1.5;
}
.badge-ok   { background: var(--ok-bg);     color: var(--ok);     border: 1px solid var(--ok-border); }
.badge-warn { background: var(--warn-bg);   color: var(--warn);   border: 1px solid var(--warn-border); }
.badge-info { background: var(--info-bg);   color: #1e40af;        border: 1px solid var(--info-border); }
.badge-gray { background: #f3f4f6;          color: var(--muted);   border: 1px solid var(--border); }
.badge-key  { background: #fef3c7;          color: #92400e;        border: 1px solid #fde68a; }

/* ---------- 版本号徽标 ---------- */
.version-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--muted-2);
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 条款内容块 ---------- */
.block-list { display: flex; flex-direction: column; gap: 10px; }
.block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.block-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 14px;
  cursor: pointer;
  user-select: none;
}
.block-head .idx {
  flex: none;
  width: 21px; height: 21px;
  border-radius: 6px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 11.5px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.block-head .t { flex: 1; font-size: 14.5px; font-weight: 600; }
.block-head .arrow { color: var(--muted-2); font-size: 12px; transition: transform .2s; }
.block.open .block-head .arrow { transform: rotate(90deg); }
.block-body { padding: 0 14px 14px; display: none; }
.block.open .block-body { display: block; }
.block-text {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
}
.block-text strong { color: var(--text); font-weight: 600; }

/* ---------- 条款阅读页 ---------- */
.term-page { background: #fff; }
.term-head {
  padding: 16px 14px 12px;
  border-bottom: 1px solid var(--border-2);
  position: sticky;
  top: 42px;
  background: #fff;
  z-index: 20;
}
.term-head h1 { font-size: 17px; margin-bottom: 4px; }
.term-body {
  padding: 16px 14px 200px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.term-body strong { color: #92400e; }
.read-progress {
  position: fixed;
  left: 0; right: 0; top: 0;
  height: 2.5px;
  background: transparent;
  z-index: 200;
  max-width: 480px;
  margin: 0 auto;
}
.read-progress i { display: block; height: 100%; background: var(--brand); width: 0; transition: width .12s linear; }

.countdown-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--warn);
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--r-sm);
  padding: 9px 11px;
  margin-bottom: 12px;
}

/* ---------- 步骤条 ---------- */
.steps {
  display: flex;
  align-items: center;
  padding: 14px 8px 10px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.steps .st { flex: 1; text-align: center; position: relative; }
.steps .st .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #eef0f4;
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 4px;
  position: relative; z-index: 2;
}
.steps .st .lbl { font-size: 10.5px; color: var(--muted-2); }
.steps .st.done .dot { background: var(--ok); color: #fff; }
.steps .st.done .lbl { color: var(--ok); }
.steps .st.on .dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 3px rgba(26, 86, 219, .15); }
.steps .st.on .lbl { color: var(--brand); font-weight: 600; }
.steps .st:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 11px; left: 50%;
  width: 100%; height: 1.5px;
  background: #eef0f4;
  z-index: 1;
}
.steps .st.done:not(:last-child)::after { background: #a7f3d0; }

/* ---------- 确认项列表 ---------- */
.confirm-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-2);
}
.confirm-item:last-child { border-bottom: none; }
.confirm-item .ci-icon {
  flex: none;
  width: 21px; height: 21px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  margin-top: 2px;
}
.confirm-item .ci-icon.ok   { background: var(--ok);     color: #fff; }
.confirm-item .ci-icon.todo { background: #f3f4f6;       color: var(--muted-2); border: 1px solid var(--border); }
.confirm-item .ci-body { flex: 1; }
.confirm-item .ci-title { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.confirm-item .ci-meta { font-size: 11.5px; color: var(--muted-2); }
.confirm-item .ci-text {
  font-size: 12px;
  color: var(--muted);
  background: #f9fafb;
  border-radius: 6px;
  padding: 7px 9px;
  margin-top: 6px;
  line-height: 1.6;
}

/* ---------- 详情行 ---------- */
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-2);
  font-size: 13.5px;
}
.detail-row:last-child { border-bottom: none; }
.detail-row .k { color: var(--muted); flex: none; }
.detail-row .v { color: var(--text); text-align: right; font-weight: 500; word-break: break-all; }

/* ---------- 客服聊天 ---------- */
.chat-wrap { display: flex; flex-direction: column; height: calc(100vh - 120px); }
.chat-list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; gap: 8px; max-width: 88%; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg .avatar {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; background: var(--brand-50); color: var(--brand-700);
}
.msg.user .avatar { background: #eef0f4; color: var(--muted); }
.msg .bubble {
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.7;
  background: #fff;
  border: 1px solid var(--border);
  white-space: pre-wrap;
  word-break: break-word;
}
.msg.user .bubble { background: var(--brand); color: #fff; border-color: var(--brand); }
.msg .src-tag { font-size: 10px; color: var(--muted-2); margin-top: 5px; }
.chat-input {
  display: flex; gap: 8px; padding: 10px 12px calc(10px + var(--safe-bottom));
  background: #fff; border-top: 1px solid var(--border);
}
.chat-input input {
  flex: 1; padding: 10px 13px; border: 1px solid var(--border);
  border-radius: 20px; font-size: 15px; font-family: inherit; outline: none;
}
.chat-input input:focus { border-color: var(--brand); }
.chat-input button {
  flex: none; padding: 0 16px; border: none; border-radius: 20px;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer;
}
.suggest-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 10px; }
.suggest-chips .chip {
  font-size: 12.5px; padding: 6px 11px; border-radius: 20px;
  background: #fff; border: 1px solid var(--border); color: var(--text-2);
  cursor: pointer;
}

/* ---------- 保单卡 ---------- */
.policy-card {
  background: linear-gradient(135deg, #0a3d31 0%, #0f6e56 100%);
  color: #fff; border-radius: var(--r-lg);
  padding: 17px 16px; margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(15, 110, 86, .22);
}
.policy-card .pc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 13px; }
.policy-card .pc-name { font-size: 15.5px; font-weight: 600; margin-bottom: 3px; }
.policy-card .pc-insurer { font-size: 11.5px; color: rgba(255, 255, 255, .78); }
.policy-card .pc-no { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: rgba(255, 255, 255, .92); }
.policy-card .pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.policy-card .pc-grid .k { font-size: 10.5px; color: rgba(255, 255, 255, .68); }
.policy-card .pc-grid .v { font-size: 13.5px; font-weight: 600; }

/* ---------- 空态 / 加载 ---------- */
.empty { text-align: center; padding: 60px 24px; color: var(--muted-2); }
.empty .ico { font-size: 40px; margin-bottom: 10px; opacity: .5; }
.empty .t { font-size: 14px; margin-bottom: 4px; color: var(--muted); }
.empty .s { font-size: 12.5px; }

.loading { text-align: center; padding: 50px 20px; color: var(--muted-2); font-size: 13.5px; }
.spinner {
  width: 22px; height: 22px; margin: 0 auto 12px;
  border: 2.5px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 页面过渡 ---------- */
.page { animation: fadeUp .22s ease-out; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  left: 50%; bottom: 110px;
  transform: translateX(-50%) translateY(14px);
  background: rgba(17, 24, 39, .93);
  color: #fff;
  font-size: 13.5px;
  padding: 10px 17px;
  border-radius: 9px;
  max-width: 82%;
  text-align: center;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  z-index: 999;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: rgba(185, 28, 28, .95); }

/* ---------- 底部合规信息 ---------- */
.site-footer {
  padding: 20px 14px 12px;
  text-align: center;
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.8;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.site-footer .ln { margin-bottom: 2px; }

/* ---------- 结果页 ---------- */
.result-hero { text-align: center; padding: 34px 20px 22px; }
.result-hero .ico {
  width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin: 0 auto 15px;
}
.result-hero .ico.ok  { background: var(--ok-bg); color: var(--ok); }
.result-hero .ico.wait{ background: var(--warn-bg); color: var(--warn); }
.result-hero h1 { font-size: 19px; margin-bottom: 6px; }
.result-hero p { font-size: 13px; color: var(--muted); }

/* ---------- v2：品牌头图 ---------- */
.brand-header {
  position: relative; height: 120px; overflow: hidden;
  background: linear-gradient(135deg, #123a7a, #1d5bbf);
}
.brand-header .brand-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.brand-header .brand-overlay {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px 18px; color: #fff;
  background: linear-gradient(to top, rgba(6,22,50,.72), rgba(6,22,50,.08));
}
.brand-header.noimg { background: linear-gradient(135deg, #123a7a, #1d5bbf); }
.brand-header .brand-overlay { background: none; justify-content: center; }
.brand-name { font-size: 17px; font-weight: 600; letter-spacing: .5px; }
.brand-scope { font-size: 12px; opacity: .85; margin-top: 4px; }

/* ---------- v2：方案选择 ---------- */
.plan-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 6px; }
.plan-card {
  background: var(--bg-2, #fff); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 14px 16px; cursor: pointer; transition: border-color .15s;
}
.plan-card.on { border-color: var(--primary, #1d5bbf); box-shadow: 0 0 0 3px rgba(29,91,191,.1); }
.plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.plan-name { font-weight: 600; font-size: 15px; }
.plan-tag {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 400; background: var(--warn-bg); color: var(--warn);
}
.plan-price { font-size: 18px; font-weight: 700; color: var(--danger); white-space: nowrap; }
.plan-price .unit { font-size: 11px; font-weight: 400; color: var(--muted); }
.plan-summary { font-size: 12px; color: var(--muted); margin-top: 6px; }
.plan-cov { width: 100%; border-collapse: collapse; margin-top: 10px; }
.plan-cov td {
  font-size: 12px; padding: 6px 0; border-top: 1px dashed var(--border); color: var(--muted);
}
.plan-cov td.v { text-align: right; color: var(--text); font-weight: 600; }

/* ---------- v2：字段级校验提示 ---------- */
.fe {
  display: none; font-size: 12px; color: var(--danger);
  margin-top: 4px; line-height: 1.5;
}
.addr-row { display: flex; gap: 8px; }
.addr-row input, .addr-row select { flex: 1; min-width: 0; }
/* ★ 省市区县三联动：加大上下内边距与触控高度（2026-10-28 天梦老师反馈"点击时有点狭窄"） */
.addr-row.sel-row .sel-trigger { padding: 14px 12px; min-height: 50px; font-size: 16px; }
.addr-row.sel-row .sel-trigger .sel-val { font-weight: 500; }

/* 卡片内直排输入框（学校名称等）：全宽拉长、加大触控高度（2026-10-14 家长反馈） */
.card > input, .card > select, .card > textarea {
  display: block; width: 100%; box-sizing: border-box;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15.5px; font-family: inherit; color: var(--text); background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.card > input:focus, .card > select:focus, .card > textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 110, 86, .1);
}

/* ---------- v2：图片采集 ---------- */
.upload-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px dashed var(--border);
}
.upload-item:last-of-type { border-bottom: none; }
.ui-icon {
  width: 44px; height: 44px; border-radius: 10px; flex: none;
  background: var(--warn-bg); color: var(--warn);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.ui-icon.ok { background: var(--ok-bg); color: var(--ok); }
.ui-body { flex: 1; min-width: 0; }
.ui-title { font-size: 14px; font-weight: 500; }
.ui-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- v2：电子签名板 ---------- */
.sig-wrap { position: relative; border: 1.5px dashed var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.sig-wrap canvas { display: block; width: 100%; height: 180px; touch-action: none; }
.sig-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px; pointer-events: none;
}

/* ---------- v2：弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 18, 34, .55);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 420px;
  max-height: 78vh; display: flex; flex-direction: column; overflow: hidden;
}
.modal-title { font-size: 16px; font-weight: 600; text-align: center; padding: 16px 18px 8px; }
.modal-body { padding: 4px 18px 12px; overflow-y: auto; }
.notice-text { font-size: 13px; line-height: 1.8; color: var(--text); }
.modal-btns {
  display: flex; gap: 10px; padding: 10px 18px 16px;
}
.modal-btns .btn { flex: 1; }

/* ---------- v2：底部 Tab ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; background: #fff; border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .tab {
  flex: 1; text-align: center; padding: 7px 0 9px; cursor: pointer; color: var(--muted);
}
.tabbar .tab.on { color: var(--primary, #1d5bbf); }
.tabbar .t-ico { font-size: 19px; line-height: 1.2; }
.tabbar .t-lbl { font-size: 11px; margin-top: 1px; }
.page.has-tabbar { padding-bottom: 76px; }

/* ==========================================================================
   页面配置栏目块（第四轮优化①：第一页面 / 自定义页）
   ========================================================================== */
.pb-banner {
  position: relative;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff;
  padding: 26px 18px 22px;
  overflow: hidden;
}
.pb-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.pb-banner-txt { position: relative; z-index: 1; }
.pb-banner-title { font-size: 24px; font-weight: 700; letter-spacing: 1px; }
.pb-banner-sub { font-size: 12.5px; margin-top: 7px; opacity: .92; line-height: 1.6; }

.pb-card {
  margin: 12px 14px 0;
  background: #fff;
  border-radius: 12px;
  padding: 15px 16px;
  box-shadow: 0 1px 4px rgba(16, 42, 100, .07);
}
.pb-card-flush { padding: 0; overflow: hidden; }
.pb-card-head {
  font-size: 16.5px;
  font-weight: 700;
  color: #1c2333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid var(--brand);
  padding-left: 9px;
  margin-bottom: 10px;
}
.pb-richtext { white-space: pre-line; font-size: 14px; color: #40485c; line-height: 1.85; }
.pb-img { display: block; width: 100%; height: auto; border-radius: 8px; }
.pb-card-flush .pb-img { border-radius: 0; }

.pb-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.pb-flow-step { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: #333c52; font-weight: 500; }
.pb-flow-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-50); color: var(--brand-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.pb-flow-arrow { color: var(--brand); font-weight: 700; margin: 0 2px; }

.pb-claims { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pb-claims-more { font-size: 12.5px; color: var(--brand); font-weight: 500; }
.pb-claims-txt { color: #6b7280; font-size: 13px; }
.pb-products { padding: 4px 0 12px; }
.pb-products .section-title { padding: 14px 14px 2px; }

.pb-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 16, 32, .72);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.pb-overlay-body { background: #fff; border-radius: 14px; max-width: 480px; width: 100%; max-height: 84vh; overflow: auto; padding: 14px; position: relative; }
.pb-overlay-body img { display: block; width: 100%; height: auto; border-radius: 8px; }
.pb-overlay-close {
  display: block; margin: 0 0 10px auto;
  border: none; background: #eef1f7; color: #40485c;
  border-radius: 999px; padding: 5px 13px; font-size: 13px; cursor: pointer;
}

/* ==========================================================================
   告知文档（第四轮优化②：第二页面三框 + 健康告知书）
   ========================================================================== */
.nd-wrap h2 { margin-bottom: 10px; }
.nd-card { border: 1px solid #e3e9e6; border-radius: 10px; margin-bottom: 9px; overflow: hidden; background: #fbfcfe; }
.nd-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  border: none; background: transparent; padding: 12px 13px;
  font-size: 14.5px; color: #1c2333; cursor: pointer; text-align: left;
}
.nd-title { font-weight: 600; }
.nd-arrow { color: var(--brand, #0b5343); font-size: 13px; }
.nd-body { padding: 2px 13px 12px; border-top: 1px dashed #e3e9e6; }
.nd-text { white-space: pre-line; font-size: 13.5px; color: #40485c; line-height: 1.85; padding-top: 8px; }
.nd-img { display: block; width: 100%; height: auto; border-radius: 8px; margin-top: 9px; }
.nd-health { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.nd-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13.5px; color: #333c52; line-height: 1.7; padding: 5px 0; cursor: pointer;
}
.nd-item input[type="checkbox"] { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand, #0b5343); flex: none; }

/* 【2026-11-19 修订】健康告知书「提示语」（非勾选项）：家长向，字大清晰、加粗，不占勾选框 */
.nd-health-hint { padding: 4px 0 8px; }
.nd-hint-line {
  font-size: 14.5px; font-weight: 700; color: #1c2333; line-height: 1.7;
  padding: 4px 0 8px; letter-spacing: .2px;
}

/* 投保前告知义务 · 小节标题（2026-10-14 修订：更多内容请阅读） */
.nd-wrap .nd-sub {
  font-size: 13px; color: var(--brand-600); font-weight: 700;
  margin: -4px 0 10px; padding-left: 9px; border-left: 3px solid var(--brand);
}
/* 第二步页首「更多内容请阅读」独立卡（第六次修订：四项条款链接自投保前告知义务卡上移至此） */
.nd-more .nd-sub { margin: -2px 0 8px; font-size: 14px; }
.nd-agree {
  margin-top: 8px; padding: 9px 10px; background: var(--brand-50, #e3f2ec); border-radius: 8px;
  font-weight: 600; color: #1c2333;
}

/* ==========================================================================
   第三页面字段增强（第四轮优化③）
   ========================================================================== */
/* 区块标题栏 + 证件采集相机按钮（河北国寿财式样） */
.sec-head { display: flex; align-items: center; justify-content: space-between; }
.sec-head h2 { flex: 1; }
.cam-btn {
  flex: none; border: none; background: var(--brand-50, #e3f2ec); color: var(--brand, #0b5343);
  width: 34px; height: 30px; border-radius: 8px; font-size: 16px; line-height: 1;
  cursor: pointer; margin-left: 10px;
}
.cam-btn:active { transform: scale(.94); }

/* 承保信息卡（T+3 起期） */
.insure-card { border: 1px solid var(--brand-50, #e3f2ec); background: var(--brand-50, #f3faf7); }
.insure-card .detail-row { padding: 7px 0; border-bottom: 1px dashed rgba(15, 110, 86, .12); }
.insure-card .detail-row:last-of-type { border-bottom: none; }
.insure-date { font-variant-numeric: tabular-nums; color: var(--brand, #0b5343); font-weight: 600; }
.date-ico { font-style: normal; margin-left: 5px; font-size: 13px; opacity: .8; }
/* 承保信息「行内下一行」提示（第五轮（十一）：起保提示落入保险起期行、截止提示落入保险期间行） */
.p3-top .p3-body .detail-row,
.insure-card .detail-row { flex-wrap: wrap; }
.dr-sub {
  flex-basis: 100%; text-align: left; margin-top: 3px;
  font-size: 12.8px; color: var(--text); font-weight: 500; line-height: 1.5;
}
/* 双列行各列自带小标签（第五轮（十一）：年级 / 班级 各一行标签，对标设计图） */
.addr-row .pair-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pair-lbl { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.pair-lbl .req { color: #e2483d; margin-left: 2px; }
.addr-row .pair-col input,
.addr-row .pair-col select { flex: none; width: 100%; }

/* 第三页面顶部「产品名 保费」融合条（第五轮（八）对标设计图：绿条 + ⊖ 折叠承保信息） */
.p3-top { padding: 0; overflow: hidden; }
.p3-bar {
  width: 100%; display: flex; align-items: center; gap: 10px;
  border: none; cursor: pointer; text-align: left;
  background: var(--brand, #0f6e56); color: #fff;
  padding: 12px 14px; font-size: 15.5px; font-weight: 700;
}
.p3-bar .p3-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p3-bar .p3-price { color: #ffd76a; font-size: 16.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.p3-bar .p3-fold { flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.p3-top .p3-body { padding: 4px 14px 12px; }
.p3-top .p3-body .detail-row { padding: 7px 0; border-bottom: 1px dashed rgba(15, 110, 86, .12); }
.p3-top .p3-body .detail-row:last-of-type { border-bottom: none; }
.p3-top .p3-body .hint { margin-top: 6px; }

/* 「证件上传、电签信息采集」大按钮（河北国寿财式样：绿色描边，点击展开采集区）
   天梦老师指定：字体居中加粗、栏目加大更醒目 */
.collect-big {
  width: 100%; display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--brand, #0f6e56); background: var(--brand-50, #e3f2ec);
  border-radius: 12px; padding: 19px 14px; cursor: pointer; text-align: center;
}
.collect-big:active { transform: scale(.99); }
.collect-big .cb-title { flex: 1; font-size: 17px; font-weight: 800; letter-spacing: .5px; color: var(--brand-700, #0b5343); text-align: center; }
.collect-big .cb-state { font-size: 12px; color: var(--muted); white-space: nowrap; }
.collect-big .cb-arrow { flex: none; color: var(--brand-700, #0b5343); font-size: 14px; }

/* 声明勾选行《文档名》链接样式（第五轮（八）） */
.doc-link { color: var(--brand-600, #0f6e56); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* 证件上传、电签信息采集入口 */
/* 电签入口：上段（图标 + 姓名 + 签名位 + 按钮）
   + 下段（项目名 + 提示语）——文字横排独占一行，绝不会竖排 */
.sig-entry {
  display: flex; flex-direction: column; gap: 10px;
  border: 1px dashed var(--brand, #0b5343); background: var(--brand-50, #f3faf7);
  border-radius: 12px; padding: 13px 14px; cursor: pointer;
}
.sig-entry:active { transform: scale(.99); }
/* 上段：整组居中（不要两端拉开的距离感） */
.sig-entry .se-row {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; min-width: 0;
}
.sig-entry .se-icon { font-size: 26px; flex: none; }
/* 签名人姓名：最醒目，待签浅灰 / 已签深绿 */
.sig-entry .se-name {
  /* 姓名是这个区块的主角（签签的是人）—— 始终醒目，不用浅灰 */
  font-size: 17px; font-weight: 700; color: var(--brand, #0b5343);
  letter-spacing: .5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  /* 保底 2.6em：极窄屏也不能让姓名完全消失 */
  min-width: 2.6em; flex: 0 1 auto;
}
/* 已签名：加一个已签标记，但字色保持醒目 */
.sig-entry .se-name.signed { color: var(--brand-600, #0f6e56); }
.sig-entry .se-name.signed::after { content: ' ✓'; font-size: 13px; opacity: .8; }
/* 签名位：未签 = 虚线空框 + “待签名”；已签 = 手写签名图 */
.sig-entry .se-signslot {
  /* 签名位放大：高 44→58，宽上限 170→260，窄屏可自动收缩到 100 */
  flex: 1 1 80px; min-width: 80px; max-width: 260px; height: 58px;
  border: 1px dashed var(--brand, #0b5343); border-radius: 8px; background: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.sig-entry .se-signslot.signed { border-style: solid; border-color: var(--border, #e5e7eb); }
.sig-entry .se-signph {
  font-size: 13.5px; color: var(--muted, #9ca3af);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.sig-entry .se-btn {
  background: var(--brand, #0b5343); color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px; white-space: nowrap; flex: none;
}
/* 下段：项目名 + 提示语，一行横排（字符串单行，必须省略而不换行） */
.sig-entry .se-foot {
  display: flex; align-items: baseline; justify-content: center; gap: 10px; min-width: 0;
  border-top: 1px dashed var(--border, #d8e6e0); padding-top: 10px;
}
.sig-entry .se-foot b { font-size: 12.5px; color: var(--brand, #0b5343); white-space: nowrap; flex: none; }
.sig-entry .se-foot small {
  color: var(--muted, #6b7280); font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}

/* 身份证件识别底部弹层 */
#idCamMask { align-items: flex-end; padding: 0; }
.idcam-sheet {
  width: 100%; max-width: 520px; margin: 0 auto; background: #fff;
  border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  animation: sheetUp .22s ease-out;
}
@keyframes sheetUp { from { transform: translateY(40%); opacity: .4; } to { transform: none; opacity: 1; } }
.ic-head {
  display: flex; align-items: center; font-size: 16px; font-weight: 700; color: var(--text);
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.ic-close {
  margin-left: auto; border: none; background: #eef1f7; color: #40485c;
  width: 28px; height: 28px; border-radius: 50%; font-size: 13px; cursor: pointer;
}
.ic-tip { font-size: 12.5px; color: var(--muted); line-height: 1.7; padding: 10px 2px; }
.ic-slots { display: flex; gap: 10px; }
.ic-slot {
  flex: 1; border: 1.5px dashed #c8ded6; border-radius: 12px; background: #f5f9f7;
  padding: 12px 6px; text-align: center; cursor: pointer; min-width: 0;
}
.ic-prev {
  width: 40px; height: 40px; margin: 0 auto 7px; border-radius: 50%;
  background: #e3f2ec; color: var(--brand, #0b5343);
  display: flex; align-items: center; justify-content: center; font-size: 21px; font-weight: 700;
}
.ic-prev.ok { background: #e2f6e9; color: #178a50; }
.ic-name { font-size: 13px; font-weight: 600; color: var(--text); }
.ic-state { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* 横屏电子签名浮层 */
.sign-overlay {
  position: fixed; inset: 0; z-index: 120; background: #f2f5fa; overflow: hidden;
}
/* 竖屏：假横屏 —— 元素转 90° 铺满屏幕（iOS Safari 不支持 orientation.lock 时的降级） */
.sign-overlay .so-inner {
  position: absolute; top: 0; left: 100%; width: 100vh; height: 100vw;
  transform: rotate(90deg); transform-origin: top left;
  display: flex; flex-direction: column; padding: 14px 18px calc(14px + env(safe-area-inset-left));
  box-sizing: border-box;
}
/* ★ 真横屏：不再旋转，签字区真正横向铺满（手机转横后立即生效） */
@media (orientation: landscape) {
  .sign-overlay .so-inner {
    top: 0; left: 0; width: 100%; height: 100%;
    transform: none; transform-origin: center;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }
  .sign-overlay .so-head { font-size: 15px; }
  .so-canvas-wrap { margin: 6px 0; }
}
.so-head {
  display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; color: var(--text);
}
.so-hint { font-size: 12px; color: var(--muted); font-weight: 400; }
/* 签名方向提示：从左往右（用户明确要求"视觉上就知道从左到右"）*/
.so-hint::before { content: "← "; font-weight: 700; color: var(--brand-700, #0b5343); }
.so-hint::after { content: " →"; font-weight: 700; color: var(--brand-700, #0b5343); }
.so-canvas-wrap { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 10px 0; }
.so-canvas-wrap canvas {
  background: #fff; border-radius: 12px; box-shadow: 0 2px 14px rgba(16, 32, 64, .08);
  touch-action: none;              /* 关键：禁掉浏览器的滚动手势，签名才跟手 */
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.so-actions { padding-bottom: 6px; }

/* 第五轮（十五）电签细化：横屏引导层 / 撤销按钮态 / 签名缩略图回显 */
.sign-overlay .so-guide {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: rgba(242, 245, 250, .97); transition: opacity .35s ease;
}
.sign-overlay .so-guide .sg-card {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  background: #fff; border-radius: 20px; padding: 34px 44px;
  box-shadow: 0 6px 30px rgba(16, 32, 64, .12);
}
.sign-overlay .so-guide.out { opacity: 0; pointer-events: none; }
.sign-overlay .so-guide .sg-icon { font-size: 78px; line-height: 1; animation: soRot 1.2s ease-in-out infinite alternate; }
@keyframes soRot { from { transform: rotate(0deg); } to { transform: rotate(90deg); } }
.sign-overlay .so-guide .sg-txt {
  font-size: 24px; font-weight: 800; color: var(--brand-700, #0b5343);
  text-align: center; line-height: 1.6; letter-spacing: 1px;
}
.sign-overlay .so-guide .sg-txt small { display: block; font-weight: 600; color: var(--muted, #6b7280); font-size: 16px; letter-spacing: 0; margin-top: 6px; }
/* 引导层加"左→右"示意图，让用户一眼知道书写方向 */
.sign-overlay .so-guide .sg-arrow { margin-top: 4px; font-size: 30px; letter-spacing: 4px; color: var(--brand-700, #0b5343); }
.sign-overlay .so-guide .sg-arrow span { display: inline-block; animation: soArrow 1.4s ease-in-out infinite; }
@keyframes soArrow { 0%,100% { transform: translateX(0); opacity: .55; } 50% { transform: translateX(10px); opacity: 1; } }
.so-head .btn[disabled], .so-actions .btn[disabled] { opacity: .45; cursor: not-allowed; }
/* 撤销按钮：红色字体（天梦老师指定） */
.so-actions #soUndoBtn { color: #d64545; border-color: #eec3c3; }
.sig-entry .se-sig {
  width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 2px; flex: none;
}

/* 第五轮（十五）证件采集格细化：轮廓示意 / 已拍缩略图 / 合规提示 */
.mat-prev svg, .ic-prev svg { width: 30px; height: 27px; display: block; }
.mat-prev img, .ic-prev img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.mat-note { margin-top: 12px; font-size: 11.5px; color: var(--muted, #6b7280); text-align: center; line-height: 1.6; }

/* 第五轮（十五）支付页细化：倒计时 / 支付方式卡 / 安全条 / 支付中遮罩 */
.pay-countdown {
  margin: 0 0 12px; padding: 10px 14px; border-radius: 10px;
  background: #fff7e8; border: 1px solid #ffe3ad; color: #9a6a12; font-size: 13px;
}
.pay-countdown b { font-size: 15px; font-variant-numeric: tabular-nums; }
.pay-countdown.over { background: #fdecec; border-color: #f5c2c2; color: #b23a3a; }
.pay-channel { padding: 4px 14px 12px; margin-bottom: 12px; }
.pay-channel .pc-row { display: flex; align-items: center; gap: 10px; padding: 12px 2px 4px; }
.pay-channel .pc-ico {
  width: 34px; height: 34px; border-radius: 8px; background: #09bb07; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none;
}
.pay-channel .pc-name { flex: 1; font-size: 14.5px; font-weight: 600; color: var(--text, #1f2937); }
.pay-channel .pc-name b {
  margin-left: 6px; font-size: 10.5px; font-weight: 600; color: #09bb07;
  border: 1px solid #09bb07; border-radius: 4px; padding: 1px 5px; vertical-align: 1px;
}
.pay-channel .pc-check { color: #09bb07; font-weight: 700; font-size: 15px; }
.pay-channel .pc-sub { font-size: 11.5px; color: var(--muted, #6b7280); padding: 2px 2px 0 44px; }
.pay-safe { margin-top: 12px; text-align: center; font-size: 11.5px; color: var(--muted, #6b7280); }
.pay-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(17, 24, 39, .55);
  display: flex; align-items: center; justify-content: center;
}
.pay-mask .pm-box {
  background: #fff; border-radius: 14px; padding: 22px 26px; text-align: center;
  font-size: 13.5px; color: var(--text, #1f2937); display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.pay-mask .pm-spin {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid #d8e5e0; border-top-color: var(--brand, #0f6e56);
  animation: pmSpin .8s linear infinite;
}
@keyframes pmSpin { to { transform: rotate(360deg); } }

/* 采集页「下一步」锁死态（材料/签名未齐禁用） */
.action-bar .btn[disabled] { opacity: .55; cursor: not-allowed; }

/* 第五轮（十五）结果页：保单号一键复制 */
.copy-btn {
  margin-left: 4px; padding: 1px 8px; font-size: 11px; font-weight: 600;
  color: var(--brand-600, #0f6e56); background: var(--brand-50, #e3f2ec);
  border: 1px solid var(--brand, #0f6e56); border-radius: 999px; cursor: pointer;
}
.copy-btn:active { transform: scale(.96); }

/* 联动字段容器 */
.dyn-field { animation: dynIn .18s ease-out; }
@keyframes dynIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   第五轮① 第一页面重构：品牌头 / 产品特色 / 产品详情 / 方案对比 / 重要告知门禁 / 方案选择
   ========================================================================== */

/* 品牌头（河北国寿财式样）：品牌色大块 */
.pb-hero {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff; text-align: center;
  padding: 34px 18px 26px;
}
.pb-hero .ph-t1 { font-size: 26px; font-weight: 800; letter-spacing: 2px; }
.pb-hero .ph-t2 { font-size: 14.5px; opacity: .95; margin-top: 9px; letter-spacing: 1px; }
.pb-hero .ph-line { width: 68%; height: 1px; background: rgba(255,255,255,.35); margin: 15px auto 12px; }
.pb-hero .ph-t3 { font-size: 12.5px; opacity: .85; letter-spacing: .5px; }

/* 产品特色 / 产品详情共用标题 */
.pp-title { font-size: 19px; font-weight: 800; color: var(--text); text-align: center; letter-spacing: 1px; }
.pp-title::after { content: ''; display: block; width: 34px; height: 3px; border-radius: 2px; background: var(--brand); margin: 9px auto 0; }
.pp-sub { font-size: 13px; color: var(--brand-600); text-align: center; margin: 9px 0 4px; font-weight: 600; }
.pp-h { font-size: 14.5px; font-weight: 700; color: var(--text); margin: 14px 0 6px; }
.pp-b { font-size: 13px; color: var(--text-2); line-height: 1.85; margin: 6px 0; text-align: justify; }
.pp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; justify-content: center; }
.pp-tag {
  font-size: 12px; color: var(--brand-600); background: var(--brand-50);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
  padding: 5px 11px; border-radius: 999px; font-weight: 600;
}

/* 产品详情长图按钮 + 浮层 */
.cmp-img-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--border); background: #f5f9f7; border-radius: 12px;
  padding: 12px 14px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--brand-600); cursor: pointer;
}
.cmp-img-btn .cib-a { font-size: 18px; color: var(--muted-2); }
.cmp-f { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 10px; }
.cmp-mask { z-index: 130; display: flex; flex-direction: column; }
.cmp-mask .cmp-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: rgba(17, 24, 39, .92); color: #fff; flex: 0 0 auto;
}
.cmp-mask .cmp-back { border: none; background: none; color: #fff; font-size: 14.5px; cursor: pointer; }
.cmp-mask .cmp-cap { font-size: 13px; opacity: .85; margin-left: auto; }
.cmp-mask .cmp-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px; box-sizing: border-box; }
.cmp-mask .cmp-body img { width: 100%; display: block; border-radius: 8px; }

/* 方案对比表 */
.pvs-scroll { overflow-x: auto; margin-top: 12px; border-radius: 10px; border: 1px solid var(--border-2); }
.pvs-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 300px; }
.pvs-table th, .pvs-table td { border-bottom: 1px solid var(--border-2); padding: 8px 9px; text-align: left; vertical-align: top; }
.pvs-table thead th { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%); color: #fff; font-weight: 700; }
.pvs-table thead th.pvs-l { background: var(--brand-700); }
.pvs-table tbody tr:last-child th, .pvs-table tbody tr:last-child td { border-bottom: none; }
.pvs-l { width: 30%; color: var(--text); font-weight: 600; background: #f5f9f7; }
.pvs-h { text-align: center !important; }
.pvs-v { color: var(--text-2); line-height: 1.6; }
.pvs-foot {
  margin-top: 10px; background: var(--info-bg); border: 1px solid var(--info-border);
  color: var(--brand-700); font-size: 12.5px; font-weight: 600;
  padding: 8px 12px; border-radius: 9px; text-align: center;
}

/* 重要告知（门禁） */
.pb-notice .pn-title { font-size: 17px; font-weight: 800; text-align: center; color: var(--text); margin-bottom: 10px; }
.pb-notice .pn-text { font-size: 13px; color: var(--text-2); line-height: 1.9; }
.pb-notice .pn-tip { font-size: 12px; color: var(--danger); margin-top: 10px; line-height: 1.7; }
.pb-notice .pn-agree { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text); margin-top: 12px; cursor: pointer; }
.pb-notice .pn-agree input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--brand); flex: 0 0 auto; }
.pb-notice-ok { cursor: default; }
.pb-notice-ok .pn-ok-line { font-size: 13px; color: var(--ok); font-weight: 600; cursor: pointer; }
.pb-notice-ok .pn-body { margin-top: 10px; border-top: 1px dashed var(--border); padding-top: 10px; }

/* 方案选择 */
.pb-plans { padding: 4px 14px 10px; }
.pb-plan {
  display: flex; align-items: center; gap: 12px; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
  padding: 14px; margin-bottom: 12px; cursor: pointer; transition: box-shadow .15s ease;
}
.pb-plan:active { box-shadow: 0 3px 14px rgba(16, 32, 64, .12); }
.pb-plan.locked { opacity: .62; cursor: not-allowed; }
.pl-price { flex: 0 0 auto; text-align: center; color: var(--brand-600); }
.pl-price .cur { font-size: 13px; font-weight: 700; }
.pl-price .num { font-size: 26px; font-weight: 800; }
.pl-price .unit { font-size: 11.5px; color: var(--muted); }
.pl-mid { flex: 1; min-width: 0; }
.pl-name { font-size: 15px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pl-rec { font-size: 10.5px; color: #fff; background: var(--brand); border-radius: 4px; padding: 1.5px 6px; font-weight: 600; }
.pl-sub { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.pl-sub .pl-meta { display: block; font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.pl-lock { flex: 0 0 auto; font-size: 18px; }
.pl-go { font-size: 13.5px; font-weight: 700; color: var(--brand-600); white-space: nowrap; }

/* 购买流程（图标横排） */
.pb-flow2 { display: flex; align-items: flex-start; justify-content: space-between; padding: 16px 4px 6px; }
.pf-step { flex: 1; text-align: center; min-width: 0; }
.pf-ico {
  width: 52px; height: 52px; margin: 0 auto; border-radius: 14px; background: var(--brand-50);
  display: flex; align-items: center; justify-content: center; font-size: 25px;
}
.pf-num { font-size: 21px; font-weight: 800; color: var(--brand-600); }
.pf-lbl { font-size: 12.5px; color: var(--text-2); margin-top: 8px; font-weight: 600; }
.pf-dash { flex: 0 0 18px; border-top: 2px dotted var(--border); margin-top: 26px; }

/* 第三页面 · 证件上传平铺卡 */
.mat-card .mat-group { margin-top: 12px; }
.mat-card .mat-glabel { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.mat-slots { display: flex; gap: 10px; }
.mat-slot {
  flex: 1; border: 1.5px dashed #c8ded6; border-radius: 12px; background: #f5f9f7;
  padding: 14px 6px; text-align: center; cursor: pointer; min-width: 0;
}
.mat-prev {
  width: 44px; height: 44px; margin: 0 auto 7px; border-radius: 50%;
  background: #e3f2ec; color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.mat-prev.ok { background: #e2f6e9; color: #178a50; }
.mat-name { font-size: 12.5px; font-weight: 600; color: var(--text); }
.mat-state { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* 告知文档浮层（第一页面） */
.doc-view .dv-title { font-size: 16.5px; font-weight: 800; color: var(--text); text-align: center; margin-bottom: 10px; }
.doc-view img { width: 100%; border-radius: 8px; margin-top: 10px; }

/* 重要告知 · 展示项（延续序号，点击查看文档图片/文本） */
.pb-notice .pn-docs { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.pb-notice .pn-doc {
  display: flex; align-items: center; gap: 4px; cursor: pointer;
  background: var(--brand-50); border: 1px solid color-mix(in srgb, var(--brand) 16%, transparent);
  border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--text);
}
.pb-notice .pn-doc:active { background: color-mix(in srgb, var(--brand) 10%, #fff); }
.pb-notice .pn-doc-num { font-weight: 700; color: var(--brand-600); flex: 0 0 auto; }
.pb-notice .pn-doc-t { flex: 1; min-width: 0; font-weight: 600; line-height: 1.5; }
.pb-notice .pn-doc-view { flex: 0 0 auto; font-size: 12px; color: var(--brand-600); font-weight: 600; }
.pb-notice .pn-doc.viewed .pn-doc-view { color: var(--ok); }

/* 第二步 · 重要提示（结构化渲染：编号段 / 红色强调 / 文档链接 / 我声明勾选） */
.tips-card .tip-p { font-size: 13.5px; color: var(--text-2); line-height: 1.85; margin: 8px 0; text-align: justify; }
.tips-card .tip-hot { color: var(--danger); font-weight: 700; }
.tips-card .tip-link { color: var(--brand-600); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tips-card .check-line { align-items: flex-start; }

/* ==========================================================================
   第五轮（六）第二页面：产品介绍卡 + 更多内容请阅读条款列表（2026-10-14）
   ========================================================================== */

/* 产品介绍卡：标题居中加大（设计图标注「文字居中，加大视觉更好」） */
.wiz-intro .wi-title {
  text-align: center; font-size: 20px; font-weight: 800; color: var(--text);
  letter-spacing: 1px; margin-bottom: 8px;
}
.wiz-intro .wi-price { color: var(--danger); margin-left: 6px; }
.wiz-intro .wi-desc { font-size: 13px; color: var(--text-2); line-height: 1.75; text-align: justify; }
.wiz-intro .wi-sec {
  font-size: 15px; font-weight: 800; color: var(--text); margin: 14px 0 2px;
  padding-left: 8px; border-left: 3px solid var(--brand); line-height: 1.4;
}
.wiz-intro .wi-term { font-size: 12px; color: var(--muted); margin: 6px 0 2px; }
.wiz-intro .wi-cov thead th {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff; font-size: 12.5px; font-weight: 700; text-align: left; padding: 7px 10px;
}
.wiz-intro .wi-cov thead th:last-child { text-align: right; }
.wiz-intro .wi-cov td { font-size: 12.5px; padding: 7px 10px; border-bottom: 1px dashed var(--border-2); color: var(--text-2); }
.wiz-intro .wi-cov td.v { text-align: right; color: var(--brand-600); font-weight: 700; }
.wiz-intro .wi-toggle {
  display: block; margin: 8px auto 0; border: none; background: none; cursor: pointer;
  font-size: 12.5px; color: var(--brand-600); font-weight: 600; padding: 4px 10px;
}
.wiz-intro .wi-detail {
  display: block; margin-top: 10px; text-align: center; cursor: pointer;
  font-size: 13px; color: var(--brand-600); font-weight: 700;
}

/* 更多内容请阅读 · 条款链接列表 */
.nd-wrap .nd-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 2px; border-bottom: 1px dashed var(--border-2); cursor: pointer;
}
.nd-wrap .nd-link:last-of-type { border-bottom: none; }
.nd-wrap .nd-link .nl-t { flex: 1; min-width: 0; font-size: 13px; color: var(--brand-600); font-weight: 600; line-height: 1.55; }
.nd-wrap .nd-link .nl-a { flex: 0 0 auto; color: var(--muted-2); font-size: 14px; }
.nd-wrap .nd-link:active .nl-t { opacity: .7; }
/* 「查看」动作字样（2026-10-30：明示这一行可以点开看，不必自己猜） */
.nd-wrap .nd-link .nl-act {
  flex: 0 0 auto; font-size: 12px; color: var(--brand, #0b5343);
  border: 1px solid var(--border-2); border-radius: 999px;
  padding: 1px 9px; background: #fff; line-height: 1.6;
}
.nd-wrap .nd-link:active .nl-act { background: var(--brand-50, #f2f7f5); }

/* 健康告知书标题旁的「请勾选 / 已勾选」提示（2026-10-30）
   —— 点它会展开卡片并定位到第一个未勾选项，客户不用自己上下翻。 */
.nd-wrap .nd-hint {
  flex: 0 0 auto; font-size: 12px; font-weight: 600; line-height: 1.6;
  color: #b42318; background: #fef3f2; border: 1px solid #fda29b;
  border-radius: 999px; padding: 1px 9px; cursor: pointer;
}
.nd-wrap .nd-hint.nd-hint-ok {
  color: #067647; background: #ecfdf3; border-color: #a6f4c5; cursor: default;
}
.nd-wrap .nd-hint:active { opacity: .75; }

/* ======== 阶段二·体育意外险（2026-10-18）======== */
/* 第二页面：大分类页签 + 卡片（对标「大分类」截图） */
.sp-intro { background: linear-gradient(135deg, var(--brand-600), var(--brand)); color: #fff; }
.sp-intro .wi-title { color: #fff; font-size: 17px; font-weight: 700; }
.sp-intro .wi-desc { color: rgba(255,255,255,.88); font-size: 12.5px; margin-top: 6px; }
.sp-catwrap { margin: 12px 0; }
.sp-cat-head { font-size: 15px; font-weight: 700; padding: 2px 2px 8px; }
.sp-cat-sub { font-size: 11.5px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.sp-pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; -webkit-overflow-scrolling: touch; }
.sp-pills .sp-pill { flex: 0 0 auto; font-size: 12.5px; color: var(--brand-600); background: rgba(15,110,86,.08); border-radius: 999px; padding: 6px 14px; font-weight: 600; }
.sp-group { margin-bottom: 6px; }
.sp-group-title { font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 8px 2px 6px; }
.sp-cat { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.sp-cat.sel { border-color: var(--brand); background: rgba(15,110,86,.04); }
.sp-cat .spc-ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: rgba(217,119,6,.1); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.sp-cat .spc-mid { flex: 1; min-width: 0; }
.sp-cat .spc-name { font-size: 14.5px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sp-cat .spc-risk { font-size: 10px; color: #b45309; background: rgba(217,119,6,.12); border-radius: 4px; padding: 1px 5px; font-weight: 600; }
.sp-cat .spc-risk.r1 { color: var(--ok); background: rgba(22,163,74,.1); }
.sp-cat .spc-desc { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.sp-cat .spc-right { flex: 0 0 auto; text-align: right; }
.sp-cat .spc-price { font-size: 11px; color: var(--danger); }
.sp-cat .spc-price span { font-size: 17px; font-weight: 700; }
.sp-cat .spc-go { font-size: 11px; color: var(--brand-600); margin-top: 3px; font-weight: 600; }
.sp-cat .spc-go.on { color: var(--ok); }

/* 第四页面：保障方案卡 */
.sp-plancard { margin-bottom: 12px; }
.sp-plancard h2 { margin-bottom: 8px; }
.sp-sel-cat { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.sp-sel-cat b { color: var(--text); }
.sp-sec { font-size: 12.5px; font-weight: 700; color: var(--text); margin: 12px 0 6px; }
.sp-sec-sub { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.sp-plancard select, .sp-plancard input[type="number"] { width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; background: #fff; color: var(--text); }
.sp-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sp-plan { position: relative; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; }
.sp-plan.on { border-color: var(--brand); background: rgba(15,110,86,.04); }
.sp-plan .spp-head { font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.sp-plan .spp-rec { font-size: 10px; color: #fff; background: var(--brand); border-radius: 4px; padding: 1px 5px; margin-left: 5px; font-weight: 600; }
.sp-plan .spp-row { font-size: 11px; color: var(--muted); line-height: 1.6; }
.sp-plan .spp-row b { color: var(--text); }
.sp-plan .spp-note { color: var(--muted-2); font-size: 10px; margin-left: 3px; }
.sp-plan .spp-price { margin-top: 6px; font-size: 16px; font-weight: 700; color: var(--danger); }
.sp-plan .spp-per { font-size: 10.5px; color: var(--muted); font-weight: 400; }
.sp-summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: rgba(15,110,86,.06); border-radius: 10px; padding: 10px 12px; margin-top: 12px; }
.sp-summary .sps-unit { font-size: 12px; color: var(--muted); }
.sp-summary .sps-unit b { color: var(--text); font-size: 14px; }
.sp-summary .sps-total { font-size: 12px; color: var(--muted); }
.sp-summary .sps-total b { color: var(--danger); font-size: 17px; }

/* ======== 2026-10-18 老师六点意见 ======== */
/* 购买须知卡（填写页顶部，告知内容迁移至此） */
.sp-buycard { margin-bottom: 12px; }
.sp-buycard .pn-title { font-size: 16px; font-weight: 700; text-align: center; margin-bottom: 10px; }
.sp-buycard .pn-text { font-size: 13px; line-height: 1.75; color: var(--text); }
.sp-buy-docs { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.sp-buy-doc { border: 1.5px solid var(--line); border-radius: 10px; background: rgba(15,110,86,.04); padding: 10px 12px; }
.sp-buy-doc.open { border-color: var(--brand); }
.sp-buy-doc .sbd-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sp-buy-doc .sbd-t { font-size: 13.5px; font-weight: 700; color: var(--brand-600); }
.sp-buy-doc .sbd-a { font-size: 11.5px; color: var(--muted); flex: 0 0 auto; }
.sp-buy-doc.open .sbd-a::after { content: ''; }
.sp-buy-doc .sbd-c { margin-top: 8px; font-size: 12.5px; line-height: 1.7; color: var(--text); border-top: 1px dashed var(--line); padding-top: 8px; }
.sp-buycard .pn-agree { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 13px; font-weight: 600; }
.sp-buycard .pn-agree input { width: 20px; height: 20px; margin-top: 1px; flex: 0 0 auto; }

/* 方案卡锁定（未确认购买须知） */
.sp-plancard.locked { position: relative; }
.sp-plancard.locked .sp-plans, .sp-plancard.locked #spDur, .sp-plancard.locked #spCount { opacity: .45; pointer-events: none; filter: grayscale(.4); }
.sp-locktip { background: rgba(217,119,6,.08); border: 1px dashed rgba(217,119,6,.5); color: #b45309; border-radius: 10px; padding: 9px 12px; font-size: 12.5px; font-weight: 600; margin-bottom: 10px; }

/* 保险天数：醒目提示 + 清晰下拉键 */
.sp-sec-hot { color: var(--danger); font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-pick-tip { display: inline-block; background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.35); color: var(--danger); border-radius: 6px; padding: 2px 8px; font-size: 12.5px; font-weight: 700; animation: spPulse 1.6s ease-in-out infinite; }
@keyframes spPulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.sp-dur-sel { font-size: 15.5px !important; font-weight: 700; color: var(--text); border: 2px solid var(--brand) !important; border-radius: 12px !important; padding: 12px 38px 12px 14px !important; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%230f6e56' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px 10px; appearance: none; -webkit-appearance: none; }
.sp-dur-sel:invalid, .sp-dur-sel option[value=""] { color: var(--muted); font-weight: 500; }

/* ======== 2026-10-19 老师五点意见 ======== */
/* ① 题头风格（二轮）：配色 3 选 × 字体 3 选（后台自由组合）
   配色：默认品牌渐变绿 / -reverse 有边框的反白 / -orange 橘黄渐变 */
.pb-hero-reverse { background: #fff; border: 2.5px solid var(--brand); border-radius: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.pb-hero-reverse .ph-t1 { color: var(--brand-600); }
.pb-hero-reverse .ph-t2 { color: var(--text); }
.pb-hero-reverse .ph-line { background: var(--brand); opacity: .35; }
.pb-hero-reverse .ph-t3 { color: var(--muted); }
.pb-hero-orange { background: linear-gradient(140deg, #d97706 0%, #ea8a1f 55%, #f59e42 100%); }
.pb-hero-orange .ph-line { background: rgba(255,255,255,.55); }
/* 字体：-serif 宋体典雅 / -kai 楷体秀逸（作用于主/副标题） */
.pb-hero-serif .ph-t1, .pb-hero-serif .ph-t2 { font-family: 'SimSun', 'NSimSun', 'Songti SC', serif; font-weight: 700; }
.pb-hero-kai .ph-t1, .pb-hero-kai .ph-t2 { font-family: 'KaiTi', 'STKaiti', 'Kaiti SC', serif; font-weight: 700; }
.pb-hero-serif .ph-t1, .pb-hero-kai .ph-t1 { letter-spacing: 1.5px; }

/* ③ 第二页「重要提示」无框纯文字（迁移到运动项目列表上方） */
.tips-flat { margin: 0 2px 12px; }
.tips-flat .tf-title { font-size: 14.5px; font-weight: 700; color: var(--danger); padding: 2px 0 6px; }
.tips-flat .tip-p { font-size: 12.5px; line-height: 1.7; color: var(--muted); margin: 0 0 6px; }

/* ④ 分类标识图：后台可上传图片，未上传时保持 emoji */
.sp-cat .spc-ico { overflow: hidden; padding: 0; }
.sp-cat .spc-ico img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }

/* ---- B款学生保障计划（2026-10-19）：区县方案产品卡选中态 ---- */
.b-prod { position: relative; border: 2px solid transparent; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.b-prod.sel { border-color: var(--brand, #0f6e56); box-shadow: 0 2px 10px rgba(15,110,86,.12); }
.b-pick { text-align: right; font-size: 12px; color: #8a9490; padding: 2px 10px 8px; }
.b-prod.sel .b-pick { color: var(--brand, #0f6e56); font-weight: 700; }

/* ============================================================================
   自绘地区选择器（nova 12 样式）
   —— 原生 <select> 在不同华为机型上渲染成滚轮/列表两种长相，无法用 CSS 统一；
      这里改为自绘弹层，所有机型一致，且触控区更大。
   ========================================================================== */

/* 触发按钮：外观与输入框一致，但高度更大、更好点 */
.sel-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  width: 100%; box-sizing: border-box;
  padding: 13px 12px; min-height: 46px;
  border: 1px solid var(--border, #e5e7eb); border-radius: 10px;
  background: #fff; color: var(--text, #1f2937);
  font-size: 15.5px; font-family: inherit; line-height: 1.4;
  cursor: pointer; text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.sel-trigger:focus-visible { outline: none; border-color: var(--brand, #0f6e56); box-shadow: 0 0 0 3px rgba(15,110,86,.1); }
.sel-trigger:active { background: #fbfdfc; }
.sel-trigger .sel-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-trigger .sel-val.is-placeholder { color: var(--muted, #9ca3af); }
.sel-trigger .sel-arrow { flex: none; color: var(--muted, #9ca3af); font-size: 11px; line-height: 1; }

/* 三级联动所在的行：留白加大，触控更宽裕 */
.addr-row.sel-row { gap: 10px; }
.addr-row.sel-row .sel-wrap { flex: 1; min-width: 0; }
.addr-row.sel-row select { display: none; }   /* 原生 select 保留在 DOM，仅隐藏 */
/* ★ 兜底：只要被自绘接管过（data-sel-on="1"），无论所在行有没有 .sel-row 类，
   都必须隐藏 —— 否则原生 select 露出来，用户一点就是系统原生选择器。 */
select[data-sel-on="1"] { display: none !important; }

/* 弹层：白底居中圆角（对齐 nova 12 的系统选择器观感） */
.sel-mask {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(10, 18, 34, .55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.sel-sheet {
  background: #fff; border-radius: 14px; width: 100%; max-width: 420px;
  max-height: 82vh; display: flex; flex-direction: column; overflow: hidden;
  animation: selPop .18s ease-out;
}
@keyframes selPop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.sel-sheet-hd {
  padding: 14px 16px 10px; font-size: 15px; font-weight: 700; color: var(--text, #1f2937);
  border-bottom: 1px solid var(--border, #eef1f4); text-align: center;
}
.sel-sheet-bd { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sel-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 18px; min-height: 54px; box-sizing: border-box;
  border-bottom: 1px solid #f2f4f6;
  font-size: 16px; color: var(--text, #1f2937); cursor: pointer;
  background: #fff; transition: background .12s;
}
.sel-opt:last-child { border-bottom: none; }
.sel-opt:active { background: #f4f8f6; }
.sel-opt .sel-opt-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-opt .sel-radio {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #c9d2d8; background: #fff;
  display: flex; align-items: center; justify-content: center;
}
/* ★ 占位项（value 为空，如「省」「市」「区/县」）：灰色显示 —— 对齐 nova 12 系统选择器 */
.sel-opt.is-ph { color: var(--muted, #9ca3af); }
.sel-opt.is-on { color: var(--brand, #0b5343); font-weight: 700; }
.sel-opt.is-on .sel-radio { border-color: var(--brand, #0b5343); background: var(--brand, #0b5343); }
.sel-opt.is-on .sel-radio::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff;
}
.sel-empty { padding: 28px 18px; text-align: center; color: var(--muted, #9ca3af); font-size: 14px; }
.sel-sheet-ft {
  display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border, #eef1f4);
}
.sel-sheet-ft .btn { flex: 1; }

/* ============ B2·健康险选项计费卡 ============ */
.opt-bill-card .opt-intro {
  font-size: 13px; color: var(--muted, #6b7280); line-height: 1.6;
  background: #f3f8f6; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px;
}
.opt-group { margin-bottom: 14px; }
.opt-group-name {
  font-size: 14px; font-weight: 700; color: var(--text, #1f2937); margin-bottom: 8px;
}
.opt-options { display: flex; flex-direction: column; gap: 8px; }
.opt-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1.5px solid #e6eaed; border-radius: 10px;
  background: #fff; cursor: pointer; transition: border-color .12s, background .12s;
}
.opt-row:active { background: #f4f8f6; }
.opt-row input[type=radio] { flex: none; width: 20px; height: 20px; accent-color: var(--brand, #0b5343); }
.opt-label { flex: 1; font-size: 15px; color: var(--text, #1f2937); }
.opt-price { font-size: 16px; font-weight: 700; color: var(--danger, #e23b3b); }
.opt-row:has(input:checked) {
  border-color: var(--brand, #0b5343); background: #f0f7f4;
}
/* 【2026-11-17 老师意见②】性别/年龄 平铺单选 → 下拉选择 */
.opt-select-wrap { position: relative; }
.opt-select {
  width: 100%; height: 46px; padding: 0 38px 0 14px;
  border: 1.5px solid #e6eaed; border-radius: 10px; background: #fff;
  font-size: 15px; color: var(--text, #1f2937); appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' stroke='%236b7280' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.opt-select:focus { border-color: var(--brand, #0b5343); outline: none; }
.opt-summary {
  display: flex; align-items: baseline; justify-content: flex-end; gap: 8px;
  margin-top: 6px; padding-top: 12px; border-top: 1px dashed #e6eaed;
}
.opt-summary .opt-total { font-size: 14px; color: var(--muted, #6b7280); }
.opt-summary .opt-total b { font-size: 22px; color: var(--danger, #e23b3b); margin-left: 4px; }

/* ============================================================
 * 2026-11-16 体育险适老化 + 题头/按钮统一（天梦老师指令）
 * 全部用 body[data-line="sports"] 或专属 class 隔离，A款/健康/B款不受影响
 * ============================================================ */
/* ① 「去选方案」题头：与「理赔服务」pb-card-head 保持同一视觉（绿竖线+加粗+放大） */
.section-title.sec-head-strong {
  font-size: 18px;
  font-weight: 800;
  color: #1c2333;
  letter-spacing: .5px;
  border-left: 5px solid var(--brand, #1e5aa8);
  padding: 2px 0 2px 11px;
  margin: 16px 14px 10px;
}

/* ② 投保按钮：由 13.5px 纯文字升级为实心按钮，扩大展示面积、字体突出 */
body[data-line="sports"] .pb-plan .pl-go {
  display: inline-block;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: var(--brand, #1e5aa8);
  border-radius: 9px;
  padding: 9px 15px;
  white-space: nowrap;
  letter-spacing: .5px;
  box-shadow: 0 2px 7px rgba(30, 90, 168, .28);
}
body[data-line="sports"] .pb-plan .pl-lock { font-size: 16px; }

/* ③ 保障方案卡 · 运动项目细分类解读（醒目色，突出包含的运动） */
.sp-cat-descr {
  font-size: 14px;
  line-height: 1.6;
  color: var(--brand-700, #14427c);
  background: rgba(30, 90, 168, .07);
  border-left: 3px solid var(--brand, #1e5aa8);
  border-radius: 0 7px 7px 0;
  padding: 7px 10px;
  margin: 6px 0 2px;
  font-weight: 600;
}

/* ④ 金额展示放大 + 去支付/下一步按钮加高突出 —— 已并入文末「底部支付条·四款统一」，此处不重复覆盖 */

/* ⑤ 适老化整体字号提升（仅体育线）：关键信息放大，方便 40-50 岁人群阅读 */
body[data-line="sports"] .pb-plan .pl-name { font-size: 16.5px; }
body[data-line="sports"] .pb-plan .pl-sub { font-size: 13.5px; }
body[data-line="sports"] .pb-plan .pl-sub .pl-meta { font-size: 12px; }
body[data-line="sports"] .pb-card-head { font-size: 18px; }
body[data-line="sports"] .pb-card-head .pb-claims-more { font-size: 14px; }
body[data-line="sports"] .pb-richtext { font-size: 15px; }
body[data-line="sports"] .sp-sel-cat { font-size: 15px; }
body[data-line="sports"] .sp-cat-descr { font-size: 15px; }
body[data-line="sports"] .sp-sec { font-size: 14.5px; }
body[data-line="sports"] .sp-dur-cell { font-size: 15px !important; min-height: 46px; }
body[data-line="sports"] .spc-desc { font-size: 13px; }

/* ============================================================
 * 2026-11-16 末步「通读确认」门禁（老师指令⑤，全局生效）
 * ============================================================ */
.read-gate {
  margin: 4px 14px 12px;
  padding: 13px 14px;
  background: #fff8e6;
  border: 1.5px solid #f0c36b;
  border-radius: 11px;
}
.read-gate-line {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; color: #8a5a00;
  cursor: pointer; line-height: 1.5;
}
.read-gate-line input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.read-gate-box {
  flex: none; width: 22px; height: 22px; border: 2px solid #d19b32;
  border-radius: 6px; background: #fff; position: relative;
}
.read-gate-line input:checked + .read-gate-box { background: #d19b32; border-color: #d19b32; }
.read-gate-line input:checked + .read-gate-box::after {
  content: ''; position: absolute; left: 6px; top: 2px;
  width: 5px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.read-gate-line input:disabled + .read-gate-box { opacity: .5; }
.read-gate-line input:disabled ~ .read-gate-txt { opacity: .75; }

/* ============================================================
 * 2026-11-16 多人集体投保（老师指令④）
 * ============================================================ */
.grp-toggle-line {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 11px 12px; margin-bottom: 8px;
  background: #f0f7f4; border: 1.5px solid #b9ddce; border-radius: 10px;
  font-size: 15px; font-weight: 700; color: #0f6e56; line-height: 1.4;
}
.grp-toggle-line input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.grp-toggle-box {
  flex: none; width: 22px; height: 22px; border: 2px solid #0f6e56; border-radius: 6px;
  background: #fff; position: relative;
}
.grp-toggle-line input:checked + .grp-toggle-box { background: #0f6e56; }
.grp-toggle-line input:checked + .grp-toggle-box::after {
  content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.grp-box {
  background: #fafcfb; border: 1px dashed #b9ddce; border-radius: 10px;
  padding: 12px; margin-bottom: 10px;
}
.grp-btn {
  display: inline-block; border: none; border-radius: 8px; padding: 10px 13px;
  font-size: 14px; font-weight: 700; cursor: pointer; margin: 0 6px 8px 0;
}
.grp-btn-dl { background: #eef4fb; color: #1e5aa8; border: 1px solid #b9d2ee; }
.grp-btn-up { background: #0f6e56; color: #fff; }
.grp-status { font-size: 13px; color: #6b7280; line-height: 1.6; margin-top: 4px; }
.grp-preview { margin-top: 10px; background: #fff; border-radius: 8px; padding: 10px; }
.grp-pv-title { font-size: 13px; font-weight: 700; color: #1c2333; margin-bottom: 6px; }
.grp-pv-row { font-size: 12.5px; color: #3b4354; padding: 4px 0; border-bottom: 1px solid #eef0f2; }
.grp-pv-id { color: #9aa2ad; }
.grp-pv-more { font-size: 12px; color: #889; padding-top: 6px; }

/* ===== 底部支付条 · 四款统一（2026-11-17 老师指令：冀童保/体育/健康/B款 全部同款） ===== */
/* 适老化：保险费文字段居中、价格与按钮都放大；一个底层样式服务四款，不按产品线分叉 */
.action-bar .price-block { flex: 1 1 33.33%; min-width: 0; text-align: center; }
.action-bar .price-block .lbl { font-size: 12px; }
.action-bar .price-block .val { font-size: 24px; font-weight: 800; }
.action-bar .btn { flex: 2 1 66.67%; font-size: 18px; font-weight: 800; min-height: 50px; border-radius: 10px; }
/* 支付页两个并排按钮（收银台/微信支付）仍平分，不受上面单按钮 2/3 影响 */
.action-bar .btn-row .btn { flex: 1 1 50%; }
/* 方案卡「请选择方案」文字按钮 */
.pl-go.pl-go-text { font-size: 14px; font-weight: 700; color: #0f6e56; white-space: nowrap; }
/* 第二页「更多内容请阅读」文档卡：点开阅读 → 已阅读 */
.hd-card { display: block; cursor: pointer; }
.hd-card .nd-head { display: flex; align-items: center; width: 100%; gap: 8px; }
.hd-card .hd-hint { margin-left: auto; font-size: 12px; color: #88919c; }
.hd-card.hd-read .hd-hint { color: #0f6e56; font-weight: 700; }

/* ===== 2026-11-18 老师意见③：健康险正式投保页取消模拟金额显示（只改健康线） ===== */
/* 顶部「保险方案」卡右上的 230元：模拟值，隐藏（名字左、折叠符右，布局不受影响） */
body[data-line="health"] .p3-top .p3-price { display: none; }
/* 底部支付条：保留价格块与「保险费」标签，仅隐藏金额数字（transparent 保留占位，不破坏 flex 1/3 布局） */
body[data-line="health"] .action-bar .price-block .val { color: transparent; }

/* ===== 2026-11-19 老师意见①②③：B款入口页 空状态/文档点开即读/健康告知分步门禁 ===== */
/* ① 未开通区域空状态：压缩上下留白（原 .empty padding 60px 太占面积）、主文案加黑加粗 */
.empty.b-empty { padding: 18px 20px; }
.empty.b-empty .ico { font-size: 34px; margin-bottom: 6px; }
.empty.b-empty .t { font-size: 15px; font-weight: 800; color: #1c2333; margin-bottom: 4px; }
.empty.b-empty .s { font-size: 13px; color: #55606f; }
/* ② 四项文档卡：点开即读，标题右侧「请阅读」红字 →「已阅读 ✓」绿字；整行可点 */
.hdoc .nd-head { cursor: pointer; }
.hdoc .hdoc-state { margin-left: auto; margin-right: 8px; flex: none; }
.hdoc .need-read { color: #d4380d; font-size: 13px; font-weight: 800; }
.hdoc .read-done { color: #0f6e56; font-size: 13px; font-weight: 800; }
.hdoc.hdoc-read .nd-title { color: #0f6e56; }
.hdoc .pb-overlay-close { background: #0b5343; color: #fff; font-weight: 700; }
/* ③ 健康告知书：标题右侧红字「请勾选」→ 绿字「已勾选 ✓」；未读完条款时整卡弱化锁定 */
.hdoc.health .nd-head-static { cursor: default; }
.hdoc.health [data-health-state] { margin-left: auto; flex: none; }
.hdoc.health .need-check { color: #d4380d; font-size: 13px; font-weight: 800; }
.hdoc.health.locked { opacity: .55; }
/* 分步门禁红字提示：未完成上一步直接说清还差什么（家长向、字大清晰） */
.b-gate-hint { margin: 10px 2px 4px; font-size: 14px; font-weight: 700; line-height: 1.6; text-align: center; }
.b-gate-hint.gate-block { color: #d4380d; }
.b-gate-hint.gate-ok { color: #0f6e56; }
/* 学校名称标签：家长向字大清晰，红色必填星号（复用 .pair-lbl） */
#bRegionCard .school-lbl { font-size: 14px; font-weight: 700; color: #1c2333; margin: 0 0 6px; }
#bRegionCard .school-lbl .req { font-size: 15px; }
/* B款首页主入口按钮：上下两段、加大视觉面积、更醒目（家长向） */
.b-home-cta {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; min-height: 78px; padding: 14px 12px; line-height: 1.25; border-radius: 14px;
}
.b-home-cta .b-cta-title { font-size: 15px; font-weight: 600; opacity: .95; }
.b-home-cta .b-cta-main { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
/* 2026-11-20 老师反馈①：选区提示条分上下两行、加大面积、加黑醒目 */
.b-region-tip {
  font-size: 15px; line-height: 1.65; font-weight: 700;
  color: var(--brand, #0f6e56); background: rgba(15,110,86,.10);
  border: 1px solid rgba(15,110,86,.22); border-radius: 12px;
  padding: 14px 12px; margin-top: 10px; text-align: center;
}
.b-region-tip b { display: inline-block; margin-top: 2px; font-size: 16px; font-weight: 800; color: #0b5c48; }
/* 2026-11-20 老师反馈③：我要投保按钮扩大面积、加黑加粗 */
#bCtaWrap .b-go-strong {
  min-height: 62px; font-size: 22px; font-weight: 800; letter-spacing: 1px;
  border-radius: 14px; box-shadow: 0 4px 14px rgba(15,110,86,.25);
}
