/* 「为你」网页预览版样式 —— 手机上竖屏优先，桌面居中成手机宽度 */
:root {
  --nav: #1e293b;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #fff7f3;
  --card: #ffffff;
  --brand: #d94a6a;
  --brand-soft: #fdf2f5;
  --ok: #15803d;
  --warn: #b45309;
  --bad: #b91c1c;
  --radius: 16px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: #f2eaee;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.phone {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, #fff6f1 0%, #fdf2f6 52%, #f8f4fc 100%);
  box-shadow: 0 0 40px rgba(15, 23, 42, .12);
  display: flex;
  flex-direction: column;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--nav);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-title { font-size: 17px; font-weight: 600; letter-spacing: .5px; }
.navbar-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #e2e8f0;
}

.app { flex: 1; padding-bottom: 32px; }

/* ── 顶部主视觉 ── */
.hero {
  background: linear-gradient(160deg, #1e293b 0%, #334155 60%, #4c1d32 100%);
  color: #fff;
  padding: 26px 20px 30px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #f1f5f9;
  margin-bottom: 14px;
}
.hero-title { font-size: 24px; font-weight: 700; line-height: 1.35; }
.hero-sub { font-size: 13px; color: #cbd5e1; margin-top: 8px; }
/* 痛点共鸣：三行短句 + 一句反转，首页最关键的情绪钩子 */
.hero-pains { margin-top: 18px; }
.hero-pain-line { font-size: 13.5px; color: #dbe3ee; line-height: 1.95; }
.hero-pain-punch { margin-top: 6px; font-size: 15.5px; font-weight: 700; color: #ff9db1; letter-spacing: 1px; }
.hero-count { margin: 18px 0 20px; display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.hero-count .n { font-size: 40px; font-weight: 700; line-height: 1; color: #fff; }
.hero-count .l { font-size: 12px; color: #cbd5e1; }

/* ── 通用 ── */
.container { padding: 14px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(199, 122, 143, .09);
}
.card.center { text-align: center; }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.card-title.outside { padding: 0 4px; margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 500; }
.card-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
b, .strong { font-weight: 600; }

.btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
}
.btn:active { opacity: .78; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary.big { padding: 14px; font-size: 16px; }
.btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  margin-top: 10px;
  font-weight: 500;
  font-size: 14px;
}
.btn.tiny {
  width: auto;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-top: 6px;
  font-weight: 600;
}
.link {
  background: none;
  border: 0;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  padding: 6px 0;
  cursor: pointer;
  text-decoration: underline;
}
.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 10px;
  background: #fbfbfc;
  color: var(--ink);
}
.input:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }

/* ── 年龄段 ── */
.age-list { display: flex; flex-direction: column; gap: 10px; }
.age-item {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  font-family: inherit;
  cursor: pointer;
}
.age-item.on { border-color: var(--brand); background: var(--brand-soft); }
.age-icon { font-size: 24px; }
.age-main { flex: 1; display: flex; flex-direction: column; }
.age-title { font-size: 15px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.age-tick {
  font-style: normal;
  font-size: 11px;
  color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 999px;
  padding: 0 6px;
}
.age-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.age-price { font-size: 12px; color: var(--brand); margin-top: 4px; font-weight: 600; }
.age-lock { font-size: 11.5px; color: var(--warn); margin-top: 4px; }
.age-skip {
  display: block;
  width: 100%;
  margin-top: 14px;
  background: none;
  border: 0;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  text-align: center;
  padding: 6px;
  cursor: pointer;
  text-decoration: underline;
}

/* ── 步骤 / 入口 ── */
.step { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid #f3f4f6; }
.step:first-of-type { border-top: 0; }
.step-no {
  width: 22px; height: 22px; flex: 0 0 22px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.step-title { font-size: 14px; font-weight: 600; }
.step-desc { font-size: 12.5px; color: var(--muted); }

.entry {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  border-top: 1px solid #f3f4f6;
  padding: 13px 0;
  font-family: inherit;
  cursor: pointer;
}
.entry:first-of-type { border-top: 0; }
.entry.locked { opacity: .55; }
.entry-icon { font-size: 20px; }
.entry-main { flex: 1; display: flex; flex-direction: column; }
.entry-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.entry-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.entry-arrow { color: var(--muted); font-size: 18px; }

/* 高亮入口（「为你好物」）：用主视觉那套红色，一眼就能看到 */
.entry-hot {
  margin: 9px 0 2px;
  padding: 14px;
  border-radius: 14px;
  border-top: 0;
  background: linear-gradient(135deg, #f2617a 0%, #e11d48 100%);
  box-shadow: 0 6px 16px rgba(225, 29, 72, .22);
}
.entry-hot .entry-title { color: #fff; }
.entry-hot .entry-desc { color: rgba(255, 255, 255, .88); }
.entry-hot .entry-arrow { color: rgba(255, 255, 255, .85); }
.entry-hot-tag {
  margin-left: 7px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .26);
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  vertical-align: middle;
}
/* 未满 18 岁：退回灰色锁定态，不诱导点击 */
.entry-hot.locked {
  background: #f1f5f9;
  box-shadow: none;
  opacity: 1;
}
.entry-hot.locked .entry-title { color: var(--ink); }
.entry-hot.locked .entry-desc { color: var(--muted); }
.entry-hot.locked .entry-arrow { color: #cbd5e1; }
.entry-hot.locked .entry-hot-tag { background: #e2e8f0; color: #64748b; }

.disclaimer {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 13px;
  margin-bottom: 14px;
}
.disclaimer-title { font-size: 13px; font-weight: 700; color: var(--warn); margin-bottom: 4px; }
.disclaimer-text { font-size: 12.5px; color: #92400e; }
.footer { text-align: center; font-size: 11.5px; color: #9ca3af; padding: 6px 0 20px; }

/* ── 答题 ── */
.quiz { padding-top: 18px; }
.progress { height: 6px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--brand); border-radius: 999px; transition: width .25s; }
.q-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 10px 2px 14px; }
.q-text { font-size: 19px; font-weight: 600; line-height: 1.5; margin-bottom: 18px; }
.opt-list { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}
.opt:active { background: var(--brand-soft); border-color: var(--brand); }
.opt-key {
  width: 22px; height: 22px; flex: 0 0 22px;
  border-radius: 50%;
  background: #f3f4f6;
  color: var(--muted);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.opt-text { flex: 1; }
.q-foot { display: flex; justify-content: space-between; margin-top: 18px; }
.q-foot.center { justify-content: center; }

/* ── 半程结论（第一段答完后）── */
.mid-done {
  text-align: center;
  font-size: 12.5px;
  color: var(--ok);
  letter-spacing: .3px;
}
.mid-lead {
  margin: 10px 0 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  text-align: center;
}
.mid-card {
  padding: 20px 16px 18px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fff7f9 0%, #ffffff 46%);
  border: 1px solid #ffe0e7;
  box-shadow: 0 6px 20px rgba(225, 29, 72, .07);
  margin-bottom: 14px;
}
.mid-card-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: #e11d48;
  font-size: 10.5px;
}
.mid-guess { margin-top: 14px; }
.mid-guess-pre { font-size: 14px; color: var(--muted); }
.mid-guess-type {
  margin-left: 6px;
  font-size: 27px;
  font-weight: 700;
  color: #be123c;
  letter-spacing: 1px;
}
.mid-tie {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.6;
}
.mid-quote {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
  font-weight: 500;
}
.mid-meter { margin-top: 18px; }
.mid-meter-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px; }
.mid-meter-seen { font-size: 12px; color: #e11d48; font-weight: 600; margin-right: 6px; }
.mid-meter-rest { font-size: 11.5px; color: #94a3b8; }
.mid-meter-track {
  margin-top: 7px;
  height: 7px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}
.mid-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9db1, #f2617a);
}
.mid-peek {
  margin-top: 16px;
  padding: 12px 13px;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 13.5px;
  line-height: 1.7;
  color: #334155;
}
.mid-blur { margin-left: 4px; color: #cbd5e1; letter-spacing: 2px; }
.mid-peek-note { margin-top: 7px; font-size: 11.5px; color: #94a3b8; line-height: 1.6; }
.mid-facts { display: flex; margin-bottom: 14px; }
.mid-fact {
  flex: 1;
  padding: 13px 6px;
  margin-right: 9px;
  border-radius: 12px;
  background: var(--card);
  text-align: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.mid-fact:last-child { margin-right: 0; }
.mid-fact-num { font-size: 23px; font-weight: 700; color: #f2617a; line-height: 1.2; }
.mid-fact-label { margin-top: 3px; font-size: 10.5px; color: var(--muted); line-height: 1.5; }
.mid-elim { text-align: center; font-size: 11.5px; color: #94a3b8; margin-bottom: 14px; }
.mid-next-hint {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.mid-next-em { color: #e11d48; font-weight: 600; }

.seg-chip {
  display: inline-block;
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.intro-text { font-size: 14.5px; color: #374151; margin: 10px 0 14px; }
.phase-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }

/* ── 结果 ── */
.type-card {
  background: linear-gradient(150deg, #4c1d32 0%, #1e293b 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
}
.type-kicker { font-size: 12px; color: #f9a8c0; letter-spacing: 1px; }
/* 一句话戳中：左侧竖线做成"金句"质感，整页最容易被截图的一屏 */
.type-quote {
  margin-top: 12px;
  padding-left: 10px;
  border-left: 3px solid #f472b6;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: #ffe4ea;
}
.type-name { font-size: 28px; font-weight: 700; margin: 6px 0 4px; }
.type-title { font-size: 14px; color: #e2e8f0; margin-bottom: 12px; }
.type-desc { font-size: 14px; line-height: 1.7; color: #f1f5f9; }
.type-advice {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
}
.advice-label { font-size: 11.5px; color: #f9a8c0; margin-bottom: 4px; }
.advice-text { font-size: 13.5px; line-height: 1.65; color: #fff; }

.bar-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.bar-name { width: 58px; font-size: 13px; color: var(--muted); flex: 0 0 58px; }
.bar-name.hit { color: var(--brand); font-weight: 700; }
.bar-track { flex: 1; height: 8px; background: #f1f2f4; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: #cbd5e1; border-radius: 999px; }
.bar-fill.hit { background: var(--brand); }
.bar-count { width: 18px; text-align: right; font-size: 12px; color: var(--muted); }

.score-wrap { text-align: center; padding: 8px 0 4px; }
.score-verdict { font-size: 34px; font-weight: 700; color: var(--brand); line-height: 1.15; letter-spacing: 1px; }
.score-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }
.level-pill {
  margin: 12px 0 8px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 8px;
}
.level-headline { margin: 10px 0 2px; font-size: 16.5px; font-weight: 700; color: #1f2937; line-height: 1.6; }
.level-desc { font-size: 13.5px; color: #374151; line-height: 1.7; }
.talk-text { font-size: 14px; line-height: 1.75; color: #374151; }
.talk-item { font-size: 13.5px; color: #374151; margin-top: 6px; padding-left: 4px; }

/* ── 付费 ── */
.price-big { font-size: 40px; font-weight: 700; color: var(--brand); margin: 6px 0 2px; }
/* 付费按钮下面那句「看完之后还能得到什么协助」 */
.price-soft { margin-top: 10px; font-size: 12.5px; color: #b06a7e; }

/* 付费说明：原价、降价规则与进度（与小程序 pages/service 同一套） */
.cut-hero {
  display: flex; align-items: baseline; gap: 8px;
  margin: 12px 0 8px; padding: 12px 14px;
  background: linear-gradient(135deg, #fff1f5, #ffe9f0);
  border: 1px solid #ffd9e4; border-radius: 14px;
}
.cut-hero-num { font-size: 22px; font-weight: 700; color: var(--brand); }
.cut-hero-text { font-size: 12.5px; color: #9f1239; }
.rule-item { padding: 3px 0; font-size: 12.5px; color: #475569; line-height: 1.65; text-align: left; }
.rule-dot { color: var(--brand); margin-right: 6px; }
.cut-progress { margin: 14px 0 4px; }
.cut-progress-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12.5px; color: #475569; margin-bottom: 6px;
}
.cut-progress-cut { color: var(--brand); font-weight: 600; }
.cut-track { height: 8px; border-radius: 999px; background: #ffe3eb; overflow: hidden; }
.cut-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ff9db1, #e11d48); transition: width .3s; }
.cut-progress-foot { margin-top: 6px; font-size: 12px; color: var(--muted); }
.fee-lines { margin-top: 6px; }
.fee-line { display: flex; justify-content: space-between; font-size: 12.5px; color: #9f1239; }
.fee-line-label { color: var(--muted); }
.benefit-list { text-align: left; margin: 18px 0; font-size: 13.5px; line-height: 1.9; color: #374151; }
.notice {
  text-align: left;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 12px;
  font-size: 12.5px;
  color: #92400e;
  margin-bottom: 14px;
}
.review-row { border-top: 1px solid #f3f4f6; padding: 12px 0; }
.review-row:first-of-type { border-top: 0; }
.review-q { font-size: 14px; font-weight: 600; }
.review-a { font-size: 13px; color: #374151; margin: 5px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.score-dot { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #f3f4f6; color: var(--muted); }
.score-dot.s3 { background: #dcfce7; color: var(--ok); }
.score-dot.s2 { background: #ecfdf5; color: #047857; }
.score-dot.s1 { background: #fef3c7; color: var(--warn); }
.score-dot.s0 { background: #fee2e2; color: var(--bad); }
.review-signal { font-size: 12.5px; border-radius: 10px; padding: 8px 10px; }
.review-signal.good { background: #f0fdf4; color: #166534; }
.review-signal.ok { background: #f8fafc; color: #334155; }
.review-signal.warn { background: #fffbeb; color: #92400e; }
.review-signal.bad { background: #fef2f2; color: #991b1b; }
.cross-line { font-size: 13.5px; color: #374151; line-height: 1.75; margin-bottom: 6px; }

/* ── 商品 ── */
.goods { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid #f3f4f6; }
.goods:first-of-type { border-top: 0; }
.goods-emoji {
  width: 42px; height: 42px; flex: 0 0 42px;
  border-radius: 12px;
  background: #f8fafc;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.goods-main { flex: 1; min-width: 0; }
.goods-name { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.goods-tag {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  background: #f3f4f6;
  border-radius: 6px;
  padding: 1px 6px;
}
.goods-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.goods-reason { font-size: 12.5px; color: var(--brand); margin-top: 6px; line-height: 1.6; }
.goods-side { text-align: right; flex: 0 0 auto; }
.goods-price { font-size: 15px; font-weight: 700; color: var(--brand); }
.order-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  padding: 7px 0;
  border-top: 1px solid #f3f4f6;
}
.order-row:first-of-type { border-top: 0; }

/* ── 记录 ── */
.record { padding: 14px 16px; }
.record-top { display: flex; justify-content: space-between; align-items: baseline; }
.record-label { font-size: 15px; font-weight: 600; }
.record-mid { font-size: 13.5px; color: #374151; margin: 6px 0 4px; display: flex; align-items: center; gap: 8px; }
.level-chip {
  font-size: 11px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 1px 8px;
}

/* ── 折扣券卡 ── */
.cp {
  margin-top: 12px;
  padding: 14px 14px 12px;
  border-radius: 12px;
  background: linear-gradient(150deg, #fff8fa 0%, #ffffff 60%);
  border: 1px solid #ffe0e7;
}
.cp:first-child { margin-top: 4px; }
.cp-top { display: flex; align-items: center; }
.cp-face { flex: none; width: 62px; text-align: center; color: #e11d48; }
.cp-yen { font-size: 13px; font-weight: 600; }
.cp-num { font-size: 27px; font-weight: 700; line-height: 1; letter-spacing: -.5px; }
.cp-mid {
  flex: 1;
  min-width: 0;
  padding-left: 12px;
  border-left: 1px dashed #fbcfe8;
}
.cp-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.cp-code { margin-top: 3px; font-size: 12px; color: var(--muted); letter-spacing: .5px; }
.cp-meta { margin-top: 3px; font-size: 11px; color: #94a3b8; }
.cp-tag {
  flex: none;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  background: #f1f5f9;
  color: var(--muted);
}
.cp-tag-usable { background: #ffe4e6; color: #e11d48; }
.cp-tag-given { background: #e0f2fe; color: #0369a1; }
.cp-tag-used { background: #f1f5f9; color: #94a3b8; }
.cp-tag-cash { background: #fef3c7; color: #b45309; }
.cp-tag-expired { background: #f1f5f9; color: #cbd5e1; }
.cp-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f8fafc;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.7;
}
.cp-ops { display: flex; margin-top: 11px; }
.cp-btn {
  flex: 1;
  padding: 9px 0;
  margin-right: 9px;
  border-radius: 999px;
  text-align: center;
  font-size: 13px;
  background: var(--card);
  border: 1px solid var(--line);
  color: #475569;
}
.cp-btn:last-child { margin-right: 0; }
.cp-btn-main {
  background: #e11d48;
  border-color: #e11d48;
  color: #fff;
  font-weight: 600;
}

/* ── 付费页的券抵扣行 ── */
.cp-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px 0 14px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fff5f7;
  border: 1px solid #ffe0e7;
}
.cp-line-empty { background: #f8fafc; border-color: var(--line); cursor: pointer; }
.cp-line-tag {
  flex: none;
  margin-right: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 10.5px;
}
.cp-line-text { flex: 1; min-width: 0; font-size: 12px; color: #9f1239; text-align: left; }
.cp-line-empty .cp-line-text { color: var(--muted); }
.cp-line-act {
  flex: none;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid #fbcfe8;
  color: #e11d48;
  font-size: 11.5px;
  cursor: pointer;
}
.price-origin {
  margin-left: 8px;
  font-size: 15px;
  color: #cbd5e1;
  text-decoration: line-through;
}

/* ── 商品页的券提示 ── */
.cp-hint {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 2px 0 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fff5f7;
  border: 1px solid #ffe0e7;
}
.cp-hint-soft { background: #f8fafc; border-color: var(--line); cursor: pointer; }
.cp-hint-tag {
  flex: none;
  margin-right: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 10.5px;
}
.cp-hint-text { flex: 1; min-width: 0; font-size: 11.5px; color: #9f1239; line-height: 1.6; }
.cp-hint-soft .cp-hint-text { color: var(--muted); }

/* ── 提示条 ── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, .92);
  color: #fff;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 18px;
  z-index: 60;
  max-width: 88vw;
  text-align: center;
  line-height: 1.6;
  word-break: break-all;
  animation: toast-in .18s ease-out;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── 付费墙（未解锁的打码区） ── */
.lock-teaser {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.7;
}
.lock-teaser .muted { font-size: 12.5px; margin-top: 6px; }

.unlock-card {
  border: 1px solid #fbcfe0;
  background: linear-gradient(180deg, #fff7fa 0%, #ffffff 45%);
}
.lock-head { display: flex; align-items: center; gap: 10px; }
.lock-icon { font-size: 26px; flex: 0 0 auto; }
.lock-head-main { flex: 1; display: flex; flex-direction: column; }
.lock-title { font-size: 16px; font-weight: 600; }
.lock-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.lock-price { font-size: 20px; font-weight: 700; color: var(--brand); }
.lock-benefit { margin: 14px 0; font-size: 13px; color: #475569; line-height: 1.95; }
.lock-note { margin-top: 10px; text-align: center; font-size: 11.5px; color: var(--muted); }

.unlocked-tip { font-size: 14px; font-weight: 600; color: var(--ok); margin-bottom: 10px; }

/* ── 推荐给朋友 ── */
.invite-card { border: 1px solid #e2e8f0; }
.invite-line { font-size: 14px; color: #475569; line-height: 1.7; margin-bottom: 10px; }
.invite-strong { font-size: 16px; color: var(--brand); }
.invite-stat {
  font-size: 12.5px;
  color: var(--muted);
  background: #f8fafc;
  border-radius: 10px;
  padding: 9px 11px;
  margin-bottom: 12px;
}
.invite-card .entry { border-top: 1px solid #f3f4f6; }
.invite-card .btn.primary { margin-bottom: 4px; }

.code-line {
  margin-top: 10px;
  font-size: 12.5px;
  color: #e2e8f0;
  text-align: center;
}
.code-line b { color: #fff; letter-spacing: 1px; }
.hero.small { padding: 22px 18px 24px; }
.hero.small .hero-title { font-size: 20px; }
.hero.small .hero-sub { margin-bottom: 16px; }

.stat-grid { display: flex; flex-wrap: wrap; }
.stat { width: 50%; padding: 8px 0; }
.stat-num { font-size: 22px; font-weight: 700; color: var(--brand); line-height: 1.2; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

.rule { display: flex; padding: 4px 0; }
.rule-no { flex: 0 0 22px; font-size: 13px; color: var(--brand); font-weight: 600; }
.rule-text { flex: 1; font-size: 13px; color: var(--muted); line-height: 1.7; }

.ok-text { color: var(--ok); font-weight: 600; }
.warn-text { color: var(--warn); }

/* ── L2 付费深度内容：感情的分数 / 具体分析 / 对策建议 ──────────────
   内容由小程序 utils/playbook.js 生成（shared.js 打包），这里只管版式。
   免费区不给内容、只给「盖住态」，让人知道有什么、拿不到什么。 */
.deep-block { margin-top: 16px; padding-top: 14px; border-top: 1px solid #f3e6ea; }
.deep-label { font-size: 11.5px; letter-spacing: 1px; color: #c1849a; font-weight: 600; }

.deep-score { display: flex; align-items: baseline; flex-wrap: wrap; margin-top: 6px; }
.deep-score-num { font-size: 30px; font-weight: 700; color: var(--brand); letter-spacing: 1px; }
.deep-score-stars { margin-left: 8px; font-size: 15px; color: #f59e0b; letter-spacing: 2px; }

.deep-item { margin-top: 12px; }
.deep-item-title { font-size: 13.5px; font-weight: 600; color: #111827; line-height: 1.5; }
.deep-item-choice { margin-top: 3px; font-size: 12px; color: var(--muted); }
.deep-item-text {
  margin-top: 5px;
  padding-left: 9px;
  border-left: 3px solid #e5e7eb;
  font-size: 12.5px;
  line-height: 1.7;
  color: #4b5563;
}
.deep-item-text.tone-warn { border-left-color: #f43f5e; color: #9f1239; }
.deep-item-text.tone-good { border-left-color: #10b981; color: #065f46; }

.deep-act { margin-top: 12px; }
.deep-act-title { font-size: 13.5px; font-weight: 600; color: #111827; line-height: 1.5; }
.deep-act-text { margin-top: 4px; font-size: 12.5px; line-height: 1.7; color: #4b5563; }

.deep-note { margin-top: 14px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }

/* 未付费不再摆「盖住态」的分数/分析/对策（2026-10-13 用户定：免费区只给一句模糊说法）*/

/* ── 仿微信收银台（纯演示，2026-10-13）─────────────────────────────
   加它的原因：用户实测发现"点了就解锁，完全没有收费这一环"。
   真收钱要等企业主体 + 微信支付商户号 + 服务端下单/回调；
   在那之前，至少让演示看起来是在收钱。
   ⚠️ 纯前端表演，不产生真实订单、不扣钱；接真实支付时整段可删。 */
.cashier-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  z-index: 60;
  animation: cashier-fade .18s ease-out;
}
.cashier-wrap {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 61;
  display: flex;
  justify-content: center;
  padding: 0 10px 10px;
  pointer-events: none;
}
.cashier {
  pointer-events: auto;
  width: 100%;
  max-width: 410px;
  background: #fff;
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow: 0 -8px 40px rgba(15, 23, 42, .22);
  animation: cashier-up .24s cubic-bezier(.22, .9, .3, 1);
}
@keyframes cashier-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes cashier-up { from { transform: translateY(24px); opacity: .4 } to { transform: none; opacity: 1 } }

.cashier-head { display: flex; align-items: center; justify-content: space-between; }
.cashier-title { font-size: 13.5px; font-weight: 600; color: #111827; }
.cashier-x { font-size: 15px; color: #94a3b8; padding: 0 4px; cursor: pointer; }

.cashier-amount {
  margin-top: 12px;
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  color: #111827;
  letter-spacing: .5px;
}
.cashier-sub { margin-top: 2px; text-align: center; font-size: 12.5px; color: var(--muted); }

.cashier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 2px;
  font-size: 13px;
  color: #475569;
  border-top: 1px solid #f1f5f9;
}
.cashier-row:first-of-type { margin-top: 14px; }
.cashier-row-val { color: #111827; }

.cashier .btn { margin-top: 12px; }
.cashier-note {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

/* ── 演示重置出口（2026-10-13）──────────────────────────────────
   背景：解锁状态存在本机，测过一次后每次打开都是解锁态，付费页压根不出现，
   用户会误以为"没有收费这一环"。所以在页面最底部常驻一条说明 + 一个重置按钮，
   链接后加 ?reset=1 也能达到同样效果（见 app.js 的 clearDemoData）。 */
.demo-reset-card {
  margin-top: 6px;
  padding: 14px 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed #e5e7eb;
}
.demo-reset-text {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}
.demo-reset-card .btn {
  margin-top: 10px;
  width: 100%;
  font-size: 13px;
  padding: 10px 14px;
}

/* ── ¥9 线下联系：机器人聊天卡 + 联系方式表单（2026-10-14）──────── */
.chat-card { border: 1px solid #fce7f3; }
.chat-head { display: flex; align-items: center; }
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fdf2f8; text-align: center; line-height: 36px; font-size: 19px;
  flex: none;
}
.chat-head-main { margin-left: 9px; display: flex; flex-direction: column; }
.chat-name { font-size: 13.5px; font-weight: 600; color: #111827; }
.chat-status { font-size: 11px; color: #94a3b8; margin-top: 1px; }
.chat-body { margin-top: 10px; }
.chat-line {
  max-width: 92%;
  margin-top: 7px;
  padding: 9px 11px;
  background: #fdf2f8;
  border-radius: 3px 12px 12px 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #4b5563;
}
.chat-typing { margin-top: 7px; font-size: 11px; color: #cbd5e1; }
/* 真人聊天室（演示）：输入框 + 发送按钮并排 */
.composer { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.composer .input { flex: 1; }
.composer .btn { width: auto; margin-top: 0; white-space: nowrap; }
/* 用户自己的回答：靠右、换底色，和机器人的左侧气泡区分开 */
.chat-line.mine {
  margin-left: auto;
  background: #ede9fe;
  border-radius: 12px 3px 12px 12px;
  color: #5b21b6;
}
/* 一问一答的点选按钮：像聊天快捷回复 */
.chat-options { margin-top: 9px; }
.chat-option {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px 11px;
  border: 1px solid #f9a8d4;
  border-radius: 999px;
  font-size: 12.5px;
  color: #be185d;
  background: #fff;
  cursor: pointer;
}
.chat-actions { margin-top: 12px; }
.chat-actions .btn { margin-top: 7px; width: 100%; }
.chat-done {
  margin-top: 10px;
  padding: 9px 10px;
  background: #ecfdf5;
  border-radius: 8px;
  font-size: 12.5px;
  color: #047857;
  line-height: 1.6;
}
.chat-note { margin-top: 8px; font-size: 11px; line-height: 1.6; color: #94a3b8; }

.off-field { margin-top: 11px; }
.off-label { font-size: 12px; color: #64748b; }
.off-field .input { margin-top: 5px; width: 100%; }
.off-privacy { margin-top: 10px; font-size: 11px; line-height: 1.6; color: #94a3b8; }
.off-privacy b { color: #475569; }
.off-error { margin-top: 7px; font-size: 11.5px; color: #e11d48; }
