/* ==========================================================
   小亿选保险 · 问卷与推荐
   浅色主题 / 移动优先 / 全部视觉变量集中在 :root
   ========================================================== */

:root {
  /* —— 底色：暖米白，比冷灰更亲近 —— */
  --bg: #fbfaf7;
  --bg-2: #f4f1ea;
  --surface: #ffffff;

  /* —— 文字：暖墨，不是纯黑 —— */
  --ink: #242a33;
  --ink-2: #575f6e;
  --ink-3: #8a91a0;

  /* —— 线条：暖灰 —— */
  --line: #eae5dc;
  --line-strong: #dbd4c8;

  /* —— 品牌色：取自已确认的品牌资产 亿保集团 VI —— */
  /* 主色 #EC5733 来自 ppt 模板全片高频填充（116 处）；#44546A 为标题与英文字色 */
  --brand: #ec5733;
  --brand-cta: #dd4b22;
  --brand-soft: #fdeee8;
  --brand-deep: #b83c1a;

  /* —— 结构色：品牌深蓝灰，用于深色区块与标识 —— */
  --structure: #44546a;
  --structure-2: #56637a;

  /* —— 产品色（结果页动态注入） —— */
  --prod-medical: #44546a;
  --prod-cancer: #0f766e;

  --warn: #a5641a;
  --warn-soft: #fdf5e8;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-card: 0 1px 2px rgba(52, 44, 36, 0.04), 0 22px 44px -30px rgba(52, 44, 36, 0.24);
  --shadow-soft: 0 1px 3px rgba(52, 44, 36, 0.05);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --font-num: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --maxw: 720px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  background-image: radial-gradient(1100px 540px at 50% -260px, #fdeee8 0%, rgba(251, 250, 247, 0) 72%);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px 12px;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(251, 250, 247, 0.95), rgba(251, 250, 247, 0.7));
}

.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* 品牌图形：单独裁出的圆形徽标，47×47 位图，显示高度不超过 32 保证 2x 屏不糊 */
.brand-mark-img {
  display: block;
  height: 32px;
  width: auto;
  flex: 0 0 auto;
}

/* App 名称：全站唯一的品牌词，字号高于正文与导航链接，作为视觉锚点 */
.brand-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
}

.restart {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.18s ease;
}

.restart:hover {
  color: var(--brand);
  border-color: #b9cbfa;
  background: #fff;
}

/* ---------- 主容器 ---------- */
#stage {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 24px 96px;
}

/* ---------- 进度 ---------- */
.progress {
  margin: 18px 0 26px;
}

.progress-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
  margin-bottom: 9px;
}

.progress-meta b {
  color: var(--ink);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
}

.progress-meta .remain {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(236, 87, 51, 0.09);
  color: var(--brand-deep);
  font-weight: 500;
}

.progress-track {
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f08a6c, var(--brand));
  transition: width 0.42s cubic-bezier(0.22, 0.68, 0.32, 1);
}

/* ---------- 题目卡片 ---------- */
.qcard {
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 36px 34px 26px;
}

.enter {
  animation: rise 0.42s cubic-bezier(0.22, 0.68, 0.32, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.qmeta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.qno {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brand-deep);
  background: var(--brand-soft);
  padding: 2px 9px 3px;
  border-radius: 7px;
  font-variant-numeric: tabular-nums;
}

.qkicker {
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

.qtitle {
  font-size: 25px;
  line-height: 1.42;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}

.qhint {
  margin: 0 0 26px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ---------- 选项 ---------- */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opt {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 17px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #fffdfb;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.opt:hover {
  border-color: #e9b7a3;
  background: #fffdfb;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -14px rgba(58, 42, 26, 0.5);
}

.opt:active {
  transform: scale(0.995);
}

.opt:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.opt-dot {
  position: relative;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid #c3cbdb;
  background: #fff;
  transition: 0.16s ease;
}

.opt-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform 0.16s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.opt-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.opt-label {
  font-size: 15.5px;
  font-weight: 550;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.opt-desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
}

.opt.is-picked {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(236, 87, 51, 0.09), 0 10px 22px -18px rgba(58, 42, 26, 0.6);
}

.opt.is-picked .opt-dot {
  border-color: var(--brand);
  background: var(--brand);
}

.opt.is-picked .opt-dot::after {
  transform: scale(1);
}

.opt.is-picked .opt-label {
  color: var(--brand-deep);
}

.opt.is-picked .opt-desc {
  color: #8a6a4c;
}

/* ---------- 底部操作 ---------- */
.qfoot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.btn {
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 550;
  border-radius: 10px;
  padding: 11px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.18s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn.primary {
  background: var(--brand-cta);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(221, 75, 34, 0.55);
}

.btn.primary:hover {
  background: var(--brand-deep);
}

.btn.primary:disabled {
  background: #ddd6cb;
  box-shadow: none;
  cursor: not-allowed;
  color: #fff;
}

.btn.ghost {
  background: #fffdfb;
  border-color: var(--line-strong);
  color: var(--ink-2);
}

.btn.ghost:hover {
  border-color: #e9b7a3;
  color: var(--brand-deep);
}

.btn.ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn.text {
  background: transparent;
  color: var(--brand-deep);
  padding: 11px 4px;
  margin-left: auto;
}

.btn.text:hover {
  color: var(--brand-deep);
}

.btn.text:disabled {
  color: #b9c2d4;
  cursor: not-allowed;
}

.btn.lg {
  padding: 14px 28px;
  font-size: 15.5px;
  border-radius: 12px;
}

.autotip {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-left: 2px;
}

.foot-note {
  margin: 18px 2px 0;
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
}

/* ==========================================================
   结果页
   ========================================================== */
.result {
  padding-top: 10px;
}

.hero {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 34px 30px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 58%, rgba(255, 255, 255, 0) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -110px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, rgba(255, 255, 255, 0) 68%);
  opacity: 0.9;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 18px 0 12px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-tag {
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 14px;
  font-weight: 500;
}

.hero-name {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0 0 2px;
  line-height: 1.6;
}

.hero-insurer {
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions .btn.primary {
  background: var(--brand-cta);
  box-shadow: 0 12px 24px -14px rgba(221, 75, 34, 0.55);
}

.hero-actions .btn.primary:hover {
  background: var(--brand-deep);
}

.hero-sub {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------- 提示条 ---------- */
.notices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.notice {
  display: flex;
  gap: 12px;
  padding: 15px 18px;
  border-radius: var(--radius-md);
  background: #fdf7f4;
  border: 1px solid #f6e3da;
  font-size: 13.5px;
  color: var(--ink-2);
}

.notice.warn {
  background: var(--warn-soft);
  border-color: #f2e0c6;
}

.notice-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--structure);
  color: #fbf5ea;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
}

.notice.warn .notice-mark {
  background: var(--warn);
}

.notice strong {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  margin-bottom: 3px;
}

.notice p {
  margin: 0;
  line-height: 1.7;
}

/* ---------- 通用区块 ---------- */
.block {
  margin-top: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  box-shadow: var(--shadow-soft);
}

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.block-head h2 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0;
}

.block-sub {
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------- 理由链 ---------- */
.reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reason {
  padding: 16px 0 16px 18px;
  border-left: 2px solid var(--line);
  position: relative;
}

.reason:first-child {
  padding-top: 0;
}

.reason:last-child {
  padding-bottom: 0;
}

.reason.support {
  border-left-color: var(--brand);
}

.reason.against {
  border-left-color: #c9b48a;
}

.reason.neutral {
  border-left-color: #d9dfeb;
}

.r-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.r-q {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

.r-tag {
  /* 状态位始终贴右：放得下就是同一行的右侧，放不下换行后仍靠右 */
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-2);
  font-weight: 500;
}

.reason.support .r-tag {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.reason.against .r-tag {
  background: #fbf3e6;
  color: #8a6420;
}

.r-insight {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.65;
}

.r-evidence {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.75;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.r-evidence span {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  margin-right: 8px;
  padding: 1px 6px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid var(--line);
}

/* ---------- 保障责任网格 ---------- */
.cov-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cov {
  padding: 18px 18px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--accent-soft), #fff 72%);
  border: 1px solid var(--line);
}

.cov-no {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.cov h3 {
  font-size: 14.5px;
  font-weight: 650;
  margin: 6px 0 7px;
  color: var(--ink);
}

.cov p {
  margin: 0 0 9px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.68;
}

.cov-note {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.55;
  padding-top: 8px;
  border-top: 1px dashed var(--line-strong);
}

/* ---------- 清单 ---------- */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: ck;
}

.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ck-no {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

.checklist strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 3px;
}

.checklist p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.72;
}

/* ---------- 边界提示 ---------- */
.warn-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.warn-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.warn-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.warn-list strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.warn-list span {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.72;
}

/* ---------- 备选 ---------- */
.alt {
  margin-top: 22px;
  padding: 26px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fdfaf7, #f8f3ec);
  border: 1px dashed var(--line-strong);
}

.alt-kicker {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  font-weight: 600;
}

.alt h3 {
  font-size: 15.5px;
  font-weight: 600;
  margin: 6px 0 12px;
  color: var(--ink);
}

.alt p {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.75;
}

.alt-when {
  padding: 12px 14px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.alt-note {
  margin: 0 !important;
  font-size: 12.5px !important;
  color: var(--ink-3) !important;
}

/* ---------- 终点 CTA ---------- */
.final-cta {
  margin-top: 30px;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #1d2430 0%, #2c3546 55%, #44546a 100%);
  color: #fff;
  text-align: center;
}

.final-cta h3 {
  font-size: 20px;
  font-weight: 650;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.final-cta p {
  margin: 0 auto 20px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 42ch;
  line-height: 1.7;
}

.final-cta .btn.primary {
  background: #fff;
  color: #2a2f39;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.6);
}

.final-cta .btn.primary:hover {
  background: #fdf1ea;
}

/* ---------- 声明 ---------- */
.disclaimer {
  margin: 26px 4px 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-3);
  text-align: center;
}

/* ==========================================================
   适配层 · 触控优先，其次才是视觉
   断点：900（平板）/ 640（手机）/ 380（小屏）/ 横屏矮屏
   ========================================================== */

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

button,
a,
label {
  touch-action: manipulation;
}

/* 触控目标：可点元素一律 ≥ 44px */
.btn {
  min-height: 46px;
}

.opt {
  min-height: 64px;
}

/* ==========================================================
   投保协助弹层
   没有真实投保链接时的降级出口：给出可复制的推荐摘要，
   而不是一个点了没反应的按钮。
   ========================================================== */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sheet.is-on {
  opacity: 1;
}

.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(36, 42, 51, 0.42);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.sheet-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 26px 22px calc(22px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 48px -24px rgba(52, 44, 36, 0.4);
  transform: translateY(14px);
  transition: transform 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);
  outline: none;
}

.sheet.is-on .sheet-card {
  transform: translateY(0);
}

.sheet-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-3);
  cursor: pointer;
  font-family: inherit;
}

.sheet-x:hover {
  background: var(--bg-2);
  color: var(--ink-2);
}

/* 只在键盘导航时显示焦点环，且用品牌色而不是浏览器默认的黑色 */
.sheet-x:focus {
  outline: none;
}

.sheet-x:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.sheet-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--brand-deep);
  background: var(--brand-soft);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.sheet-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.sheet-lead {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
}

.sheet-summary {
  padding: 16px 16px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  margin-bottom: 16px;
}

.sheet-summary p.sm-prod {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.sheet-summary strong {
  color: var(--ink);
}

.sheet-summary ul.sm-profile {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sheet-summary ul.sm-profile li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  font-size: 13px;
  line-height: 1.55;
  border-top: 1px solid var(--line);
}

.sheet-summary ul.sm-profile li:first-child {
  border-top: 0;
  padding-top: 0;
}

.sheet-summary ul.sm-profile span {
  flex: 0 0 72px;
  color: var(--ink-3);
}

.sheet-summary ul.sm-profile b {
  color: var(--ink);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.sheet-actions {
  margin-bottom: 14px;
}

.sheet-actions .btn {
  width: 100%;
}

/* 复制成功后的完成态：保留主色但明显不可再点 */
.sheet-actions .btn[disabled] {
  opacity: 0.72;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.sheet-contact {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}

.sheet-contact b {
  color: var(--ink);
  font-weight: 600;
}

.sheet-contact-empty {
  color: var(--ink-3);
}

.sheet-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-3);
}

/* 弹层打开时锁住背景滚动，避免移动端穿透 */
body.sheet-open {
  overflow: hidden;
}

@media (min-width: 641px) {
  .sheet {
    align-items: center;
  }
  .sheet-card {
    border-radius: 22px;
    padding: 30px 28px 26px;
    max-height: calc(100dvh - 96px);
  }
}

/* 长文本兜底：产品全名、条款引文不能撑破卡片 */
.hero-name,
.r-evidence,
.notice p,
.alt p,
.disclaimer,
.cov p,
.warn-list span,
.checklist p {
  overflow-wrap: anywhere;
}
.qtitle,
.hero-title {
  overflow-wrap: break-word;
}

/* 移动端 hover 会「粘住」上一次点击的样式，这里统一抹平 */
@media (hover: none) {
  .opt:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--line-strong);
    background: #fffdfb;
  }
  .opt.is-picked:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: 0 0 0 3px rgba(236, 87, 51, 0.09);
  }
  .btn:hover {
    filter: none;
  }
}

/* ---------- 结果页底部固定投保条（仅手机） ---------- */
.sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 251, 0.97);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    transform: translateY(120%);
    transition: transform 0.3s cubic-bezier(0.22, 0.68, 0.32, 1);
  }
  .sticky-cta.is-on {
    transform: translateY(0);
  }
  .sticky-cta .st-info {
    flex: 1 1 auto;
    min-width: 0;
  }
  .sticky-cta .st-kicker {
    display: block;
    font-size: 12px;
    color: var(--ink-3);
    line-height: 1.4;
  }
  .sticky-cta .st-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sticky-cta .btn {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 18px;
    font-size: 14.5px;
  }
  .result {
    padding-bottom: 84px;
  }
}

/* ---------- 平板：问卷区保持 720 的阅读宽度，不做满宽拉伸 ---------- */
@media (max-width: 900px) {
  .topbar,
  #stage {
    max-width: 720px;
  }
}

/* ---------- 手机 ---------- */
@media (max-width: 640px) {
  .topbar {
    padding: calc(12px + env(safe-area-inset-top)) 16px 10px;
    gap: 8px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand-mark-img {
    height: 28px;
  }

  .brand-name {
    font-size: 17.5px;
  }

  .brand span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #stage {
    padding: 4px 16px calc(84px + env(safe-area-inset-bottom));
  }

  /* 进度 */
  .progress {
    margin: 14px 0 20px;
  }

  .progress-meta {
    font-size: 12.5px;
  }

  .progress-meta b {
    font-size: 14px;
  }

  /* 题目卡 */
  .qcard {
    padding: 24px 18px 18px;
    border-radius: 18px;
  }

  .qtitle {
    font-size: clamp(20px, 5.6vw, 24px);
    line-height: 1.45;
    margin-bottom: 8px;
  }

  .qhint {
    font-size: 13.5px;
    line-height: 1.65;
    margin-bottom: 20px;
  }

  .options {
    gap: 9px;
  }

  .opt {
    padding: 15px 15px;
    gap: 11px;
    border-radius: 14px;
  }

  .opt-dot {
    width: 20px;
    height: 20px;
    margin-top: 1px;
  }

  .opt-label {
    font-size: 15.5px;
    line-height: 1.45;
  }

  .opt-desc {
    font-size: 12.5px;
    line-height: 1.5;
  }

  /* 底部操作：主按钮占满剩余宽度，拇指够得到 */
  .qfoot {
    margin-top: 22px;
    padding-top: 18px;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .qfoot .btn.ghost {
    flex: 0 0 auto;
    padding: 0 16px;
  }

  .qfoot .btn.primary,
  .qfoot .btn.text {
    flex: 1 1 auto;
    margin-left: 0;
  }

  .qfoot .btn.text {
    justify-content: flex-end;
    padding-right: 4px;
  }

  .autotip {
    display: none;
  }

  .foot-note {
    font-size: 12px;
    margin-top: 14px;
  }

  /* 结果页 */
  .hero {
    padding: 24px 18px 22px;
    border-radius: 18px;
  }

  .hero::after {
    width: 220px;
    height: 220px;
    top: -100px;
    right: -90px;
  }

  .hero-title {
    font-size: clamp(23px, 7vw, 28px);
    margin: 16px 0 10px;
  }

  .hero-tag {
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn.primary {
    flex: 1 1 100%;
  }

  .hero-actions .btn.ghost {
    flex: 1 1 100%;
  }

  .block {
    padding: 22px 18px;
    border-radius: 18px;
    margin-top: 20px;
  }

  .block-head {
    margin-bottom: 16px;
  }

  .block-head h2 {
    font-size: 16.5px;
  }

  .cov-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .reason {
    padding-left: 14px;
  }

  .r-q {
    font-size: 12.5px;
  }

  .r-insight {
    font-size: 14.5px;
  }

  .r-evidence {
    padding: 9px 12px;
    font-size: 12.5px;
  }

  .r-evidence span {
    margin-right: 6px;
  }

  .alt {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .final-cta {
    padding: 26px 18px;
    border-radius: 18px;
  }

  .final-cta h3 {
    font-size: 18px;
  }

  .final-cta .btn.primary {
    width: 100%;
  }

  .disclaimer {
    font-size: 12px;
    line-height: 1.75;
  }
}

/* ---------- 小屏（iPhone SE / 360dp） ---------- */
@media (max-width: 380px) {
  #stage {
    padding-left: 13px;
    padding-right: 13px;
  }

  .qcard {
    padding: 20px 15px 15px;
  }

  .qkicker {
    display: none;
  }

  .opt-label {
    font-size: 15px;
  }

  .btn {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-title {
    font-size: 22px;
  }

  .cov {
    padding: 15px 15px 13px;
  }
}

/* ---------- 横屏矮屏：优先保证一屏能看到选项 ---------- */
@media (orientation: landscape) and (max-height: 520px) {
  .topbar {
    position: static;
    padding-top: 10px;
    padding-bottom: 6px;
  }

  .qcard {
    padding: 18px 20px 14px;
  }

  .qtitle {
    font-size: 19px;
  }

  .qhint {
    margin-bottom: 14px;
  }

  .opt {
    min-height: 52px;
    padding: 11px 14px;
  }

  .progress {
    margin: 8px 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
