/* ============================================================
 * style.css — 姓名打分 H5 样式（古风主题）
 * 12 时辰主题通过 body[data-shichen] 切换 CSS 变量
 * ============================================================ */

:root {
  --primary: #c94f2f;
  --primary2: #9e3216;
  --gold: #b8860b;
  --gold-light: #f3d68a;
  --text: #4a2e1a;
  --text-dim: #7a5a3a;
  --card-bg: rgba(255, 255, 255, .96);
  --card-border: rgba(184, 134, 11, .28);
  --shadow: 0 14px 38px rgba(80, 45, 18, .22);
  --radius: 20px;
  --page-bg1: #f9eac2;
  --page-bg2: #f0d49a;
  --ink: #3d2414;
  --paper: #fffdf6;
}

/* ---------- 12 时辰主题（国潮暖金基调） ---------- */
body[data-shichen="zi"]  { --primary: #b5452f; --primary2: #7a2b1d; }
body[data-shichen="chou"]{ --primary: #8a6d4b; --primary2: #4c3820; }
body[data-shichen="yin"] { --primary: #3f6f8f; --primary2: #1f3a4d; }
body[data-shichen="mao"] { --primary: #c9973a; --primary2: #7a5a1a; }
body[data-shichen="chen"]{ --primary: #2f7d6b; --primary2: #15403a; }
body[data-shichen="si"]  { --primary: #c98f2a; --primary2: #7a5410; }
body[data-shichen="wu"]  { --primary: #c2533a; --primary2: #7a2c1c; }
body[data-shichen="wei"] { --primary: #b5893c; --primary2: #6d4a1a; }
body[data-shichen="shen"]{ --primary: #c98f2a; --primary2: #7a5410; }
body[data-shichen="you"] { --primary: #c25d45; --primary2: #7a3123; }
body[data-shichen="xu"]  { --primary: #9c5f8f; --primary2: #5c3052; }
body[data-shichen="hai"] { --primary: #6d5a9c; --primary2: #3a2c52; }

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

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--page-bg1) 0%, var(--page-bg2) 55%, #e8c88a 100%);
  color: var(--text);
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  overflow-x: hidden;
  position: relative;
  transition: background .6s ease;
}

/* ---------- 国潮暖金背景 ---------- */
.aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(255,255,255,.55) 0%, transparent 55%),
    radial-gradient(ellipse 80% 40% at 80% 10%, rgba(255,235,190,.45) 0%, transparent 50%),
    radial-gradient(ellipse 80% 40% at 20% 15%, rgba(255,235,190,.35) 0%, transparent 50%);
}
.clouds {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(60px 18px at 15% 9%, rgba(255,255,255,.55) 50%, transparent 53%),
    radial-gradient(70px 20px at 85% 7%, rgba(255,255,255,.5) 50%, transparent 53%),
    radial-gradient(50px 16px at 55% 5%, rgba(255,255,255,.4) 50%, transparent 53%),
    radial-gradient(80px 22px at -5% 18%, rgba(255,255,255,.42) 50%, transparent 53%),
    radial-gradient(90px 24px at 105% 16%, rgba(255,255,255,.38) 50%, transparent 53%);
}

/* ---------- 通用 ---------- */
.screen { display: none; min-height: 100vh; position: relative; z-index: 1; }
.screen.active { display: block; }
.hidden { display: none !important; }

.brand-tag {
  display: inline-block; padding: 5px 16px; border-radius: 999px;
  border: 1px solid var(--card-border); background: rgba(255,255,255,.85);
  font-size: 12px; letter-spacing: 2px; color: var(--text-dim);
  box-shadow: 0 2px 10px rgba(120,70,30,.08);
}

.disclaimer {
  margin-top: 22px; text-align: center; font-size: 11px; color: rgba(80,50,30,.48);
  line-height: 1.6; padding: 0 24px;
}

/* ---------- 落地页头部（国潮牌匾） ---------- */
.landing-wrap { padding: 34px 18px 28px; text-align: center; }

.hero {
  position: relative;
  margin: 0 auto 18px;
  padding: 18px 0 14px;
  max-width: 360px;
}
.hero-shine {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255,255,255,.55) 0%, rgba(255,230,170,.25) 35%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-cloud {
  position: absolute; top: 24px; width: 70px; height: 28px;
  background: rgba(255,255,255,.55); border-radius: 50%;
  box-shadow: 0 0 18px rgba(255,255,255,.4);
}
.hero-cloud::before, .hero-cloud::after {
  content: ''; position: absolute; background: rgba(255,255,255,.55); border-radius: 50%;
}
.hero-cloud::before { width: 36px; height: 20px; top: -8px; left: 10px; }
.hero-cloud::after { width: 28px; height: 16px; top: -4px; right: 8px; }
.hero-cloud-left { left: 8px; }
.hero-cloud-right { right: 8px; }

.plaque {
  position: relative;
  width: 220px; margin: 0 auto;
  padding: 6px;
  background: linear-gradient(135deg, #b8860b 0%, #f3d68a 35%, #d4a038 65%, #b8860b 100%);
  border-radius: 16px;
  box-shadow:
    0 0 0 2px #8a6410,
    0 16px 36px rgba(100,55,20,.25),
    inset 0 2px 8px rgba(255,255,255,.45);
}
.plaque::before, .plaque::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0%, #b8860b 45%, #6d4a0e 90%);
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  top: 50%; transform: translateY(-50%);
}
.plaque::before { left: 10px; }
.plaque::after { right: 10px; }
.plaque-inner {
  background: linear-gradient(180deg, #b52c1a 0%, #8f1f10 100%);
  border-radius: 12px;
  padding: 18px 28px 14px;
  border: 1px solid rgba(255,215,130,.35);
  box-shadow: inset 0 0 22px rgba(0,0,0,.25);
  position: relative;
}
.plaque-year {
  position: absolute; right: 10px; top: 16px; bottom: 16px; width: 18px;
  writing-mode: vertical-rl; text-orientation: upright;
  font-size: 12px; color: #ffe082; letter-spacing: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.plaque-title {
  font-size: 46px; font-weight: 800; letter-spacing: 6px;
  color: #ffe9a8; line-height: 1.1;
  text-shadow:
    0 2px 0 #6d1208,
    0 4px 8px rgba(0,0,0,.35);
  background: linear-gradient(180deg, #fff6c8 0%, #ffd66b 50%, #e6a63e 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.plaque-sub {
  display: inline-block; margin-top: 8px;
  padding: 3px 12px; border: 1px solid rgba(255,215,130,.45);
  border-radius: 4px; font-size: 12px; color: #ffe082;
  letter-spacing: 3px; background: rgba(0,0,0,.12);
}
.hero-slogan {
  margin-top: 14px; font-size: 18px; letter-spacing: 3px;
  color: var(--primary); font-weight: 700;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}

.landing-title {
  margin: 12px auto 8px; font-size: 22px; font-weight: 700; line-height: 1.4;
  letter-spacing: 1px; max-width: 340px; color: var(--ink);
}
.landing-sub {
  font-size: 13px; color: var(--text-dim); letter-spacing: 1px; margin-bottom: 22px;
}

.form-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 22px 18px 18px;
  text-align: left; box-shadow: var(--shadow);
}

.field { margin-bottom: 16px; }
.field-label {
  display: block; font-size: 14px; color: var(--text-dim);
  margin-bottom: 8px; letter-spacing: 2px; font-weight: 600;
}

.field-input {
  width: 100%; height: 48px; border-radius: 12px; padding: 0 14px;
  background: #fff8ea; border: 1px solid rgba(184,134,11,.35);
  color: var(--ink); font-size: 16px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(201,79,47,.12); }
.field-input::placeholder { color: #b8a080; }

.name-group { display: flex; gap: 10px; }
.name-group .field-input { text-align: center; letter-spacing: 2px; }

.gender-group { display: flex; gap: 12px; }
.gender-item {
  flex: 1; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  gap: 8px; background: #fff8ea; border: 1px solid rgba(184,134,11,.35);
  font-size: 15px; color: var(--ink); cursor: pointer; transition: all .2s;
}
.gender-item i {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(184,134,11,.5);
  display: inline-block; position: relative; transition: all .2s;
}
.gender-item.active { border-color: var(--primary); background: rgba(201,79,47,.08); color: var(--primary); }
.gender-item.active i { border-color: var(--primary); }
.gender-item.active i::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--primary);
}

.birth-group { display: flex; gap: 10px; }
.birth-select {
  flex: 1; height: 48px; border-radius: 12px; padding: 0 8px;
  background: #fff8ea; border: 1px solid rgba(184,134,11,.35);
  color: var(--ink); font-size: 15px; outline: none; text-align: center;
  -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
                    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 14px) 22px, calc(100% - 10px) 22px;
  background-size: 4px 4px; background-repeat: no-repeat;
}
.birth-select option { background: #fff8ea; color: var(--ink); }

.btn-main {
  width: 100%; height: 52px; border: none; border-radius: 26px;
  background: linear-gradient(180deg, #e05a38 0%, #c13f22 100%);
  color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 4px;
  cursor: pointer; box-shadow: 0 8px 20px rgba(190,60,30,.35), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .15s, opacity .2s; margin-top: 4px;
}
.btn-main:active { transform: scale(.97); opacity: .9; }
.btn-main:disabled { opacity: .5; }

.form-note { text-align: center; font-size: 11px; color: rgba(120,80,50,.5); margin-top: 10px; }

/* ---------- 合规元素 ---------- */
.pay-notice {
  display: inline-block; font-size: 12px; letter-spacing: 1px;
  color: #7a4a1a; background: rgba(255,255,255,.7);
  border: 1px solid rgba(184,134,11,.35); border-radius: 999px;
  padding: 5px 16px; margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(100,55,20,.08);
}
.agree-row {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: rgba(80,50,30,.65);
  margin-top: 12px; line-height: 1.6; cursor: pointer;
  justify-content: center; flex-wrap: wrap;
}
.agree-row input[type="checkbox"] {
  width: 15px; height: 15px; margin-top: 2px; accent-color: var(--primary);
  cursor: pointer; flex-shrink: 0;
}
.pay-note {
  font-size: 11.5px; color: var(--gold); text-align: center;
  margin-bottom: 10px; letter-spacing: .5px;
}

/* ---------- 生成动画屏 ---------- */
.loading-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; padding: 0 24px;
}
.loading-ring {
  width: 72px; height: 72px; border-radius: 50%;
  border: 3px solid rgba(242,232,213,.14);
  border-top-color: var(--primary);
  animation: spin 1.1s linear infinite;
  box-shadow: 0 0 44px rgba(194, 85, 58, .35);
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-text { font-size: 16px; letter-spacing: 2px; text-align: center; }
.loading-sub { font-size: 12px; color: var(--text-dim); letter-spacing: 4px; }

/* ---------- 结果页（一屏紧凑版） ---------- */
.result-wrap { padding: 16px 16px 22px; }

.result-head { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 6px 0 4px; }

.score-ring { position: relative; flex: none; width: 112px; height: 112px; margin: 0; }
.score-ring svg { transform: rotate(-90deg); display: block; }
.ring-bg { fill: none; stroke: rgba(80,50,30,.12); stroke-width: 9; }
.ring-fg {
  fill: none; stroke: url(#scoreGrad); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1.4s cubic-bezier(.2,.7,.2,1);
}
.score-num {
  position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center;
  gap: 2px; padding-top: 36px;
}
.score-num b { font-size: 36px; font-weight: 800; color: var(--primary); }
.score-num span { font-size: 12px; color: var(--text-dim); }

.head-info { min-width: 0; text-align: left; }.result-title { font-size: 20px; font-weight: 700; letter-spacing: 2px; margin-bottom: 5px; color: var(--ink); }
.result-meta { font-size: 11px; color: var(--text-dim); letter-spacing: 1px; line-height: 1.6; }

.radar-card, .report-section, .card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius);
}
.radar-card { padding: 10px 10px 4px; margin-top: 10px; }
#radar { width: 150px; height: 150px; display: block; margin: 0 auto; }
.card-title { font-size: 13px; color: var(--text-dim); letter-spacing: 2px; margin-bottom: 2px; text-align: center; }

.report { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.report-section { padding: 10px 14px; line-height: 1.65; font-size: 13.5px; color: var(--text); }

.report-title { font-size: 15px; font-weight: 700; letter-spacing: 1px; margin-bottom: 4px; color: var(--ink); }
.report-sub { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }

.sum-line {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; color: var(--text);
}

.locked-preview {
  position: relative; margin-bottom: 10px;
}
.locked-preview .lp-item {
  padding: 8px 0; border-bottom: 1px dashed rgba(80,50,30,.12);
  font-size: 12.5px; color: var(--text-dim); line-height: 1.7;
}
.locked-preview.blur .lp-item {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.locked-preview .lp-item:last-child { border-bottom: none; }
.locked-preview.blur .lp-item:first-child {
  filter: blur(5px); user-select: none;
}

.report-kv { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed rgba(80,50,30,.12); }
.report-kv:last-child { border-bottom: none; }
.report-kv b { font-weight: 600; color: var(--ink); }

/* 雷达图文字 */
#radar text { fill: var(--text-dim); font-size: 10px; }

.footer-note { text-align: center; font-size: 11px; color: rgba(80,50,30,.45); margin-top: 16px; letter-spacing: 1px; }

/* ---------- 解锁弹层 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 50; display: none;
  align-items: center; justify-content: center; padding: 0 32px;
  background: rgba(60,40,20,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal-mask.show { display: flex; }

.modal {
  width: 100%; max-width: 320px; background: #fffdf6;
  border: 1px solid rgba(184,134,11,.28); border-radius: 20px;
  padding: 28px 22px 18px; text-align: center; box-shadow: var(--shadow);
}
.modal-icon { font-size: 34px; margin-bottom: 10px; }
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.modal-text { font-size: 13px; color: var(--text-dim); line-height: 1.8; margin-bottom: 16px; }

.copy-box {
  background: #fff8ea; border: 1px dashed rgba(184,134,11,.4);
  border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--text-dim);
  margin-bottom: 16px; cursor: pointer; line-height: 1.6; word-break: break-all;
}
.copy-box.copied { border-color: var(--primary); color: var(--primary); }

.btn-done { margin-bottom: 10px; }
.modal-cancel { background: none; border: none; color: var(--text-dim); font-size: 13px; cursor: pointer; padding: 6px 12px; }
.modal-code {
  background: rgba(255,215,130,.15); border: 1px solid rgba(184,134,11,.35);
  border-radius: 10px; padding: 9px 12px; font-size: 13px; color: var(--gold);
  margin-bottom: 12px; letter-spacing: 1px;
}
.modal-code b { font-size: 17px; letter-spacing: 3px; margin-left: 4px; color: var(--primary); }

/* 锁定区解锁码输入 */
.unlock-code-row {
  display: flex; gap: 8px; margin-top: 12px;
}
.unlock-input {
  flex: 1; background: #fff8ea; border: 1px solid rgba(184,134,11,.35);
  border-radius: 12px; padding: 11px 14px; color: var(--ink); font-size: 15px;
  letter-spacing: 2px; text-transform: uppercase; outline: none; min-width: 0;
}
.unlock-input:focus { border-color: var(--primary); }
.unlock-input::placeholder { color: #b8a080; letter-spacing: 0; font-size: 13px; }
.btn-unlock {
  flex-shrink: 0; background: var(--primary); color: #fff; border: none;
  border-radius: 12px; padding: 0 18px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.btn-unlock:active { transform: scale(.96); opacity: .9; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px);
  background: rgba(60,40,20,.92); border: 1px solid rgba(184,134,11,.35);
  color: #fff; font-size: 13px; padding: 10px 18px; border-radius: 999px;
  opacity: 0; transition: all .3s; z-index: 99; pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 适配 ---------- */
@media (min-width: 480px) {
  body { border-left: 1px solid rgba(120,80,30,.08); border-right: 1px solid rgba(120,80,30,.08); }
}

/* ============================================================
 * 协议页（用户协议 / 隐私政策）
 * ============================================================ */
.proto-page {
  min-height: 100vh; padding: 28px 18px 48px;
  background: linear-gradient(180deg, var(--page-bg1) 0%, var(--page-bg2) 100%);
}
.proto-card {
  max-width: 640px; margin: 0 auto; padding: 30px 22px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.proto-title {
  font-size: 22px; letter-spacing: 4px; text-align: center;
  color: var(--primary); margin-bottom: 6px;
}
.proto-updated {
  font-size: 12px; text-align: center; color: var(--text-dim);
  letter-spacing: 1px; margin-bottom: 22px; padding-bottom: 16px;
  border-bottom: 1px solid var(--card-border);
}
.proto-body { font-size: 14px; line-height: 1.9; color: var(--text); }
.proto-body h2 {
  font-size: 15px; color: var(--primary); letter-spacing: 2px;
  margin: 22px 0 8px;
}
.proto-body p { margin-bottom: 8px; color: var(--text-dim); }
.proto-body p b { color: var(--ink); font-weight: 600; }
.proto-body .proto-contact { margin-top: 24px; color: var(--text-dim); font-size: 12px; }
.proto-back {
  display: block; width: 180px; margin: 28px auto 0; padding: 11px 0;
  text-align: center; font-size: 14px; letter-spacing: 2px;
  color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  border-radius: 24px;
}

/* 主站内协议链接 */
.proto-link { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.proto-footer {
  margin: 10px auto 0; text-align: center; font-size: 12px;
  color: var(--text-dim); letter-spacing: 1px;
}
.proto-footer a { color: var(--text-dim); text-decoration: none; }
.proto-footer a:active { color: var(--primary); }
.proto-footer span { margin: 0 8px; opacity: .5; }

/* ============================================================
 * 四神兽主题（?theme=dragon/tiger/bird/tortoise）
 * 优先级高于时辰配色：封面、按钮、页面底色随神兽切换
 * ============================================================ */
body[data-beast="dragon"]  { --primary: #2a9d7a; --primary2: #15664b; --page-bg1: #e6f5ec; --page-bg2: #c8ead6; --gold: #1f7a5c; }
body[data-beast="tiger"]   { --primary: #bfa05f; --primary2: #7a6535; --page-bg1: #f7f0e0; --page-bg2: #ead9b6; --gold: #8f753f; }
body[data-beast="bird"]    { --primary: #d5533a; --primary2: #9e3216; --page-bg1: #fff0e6; --page-bg2: #ffd9c2; --gold: #b8452a; }
body[data-beast="tortoise"]{ --primary: #4a6fa5; --primary2: #2a4870; --page-bg1: #e8eef7; --page-bg2: #ccd9ec; --gold: #355a8a; }

/* ---------- 封面神兽徽记（落地区） ---------- */
.hero-beast {
  position: absolute; left: 50%; top: 2px; transform: translateX(-50%);
  width: 180px; height: 180px; pointer-events: none; z-index: 2;
}
.hero-beast svg { width: 100%; height: 100%; display: block; }
.beast-emblem {
  width: 120px; height: 120px; margin: 0 auto 6px; position: relative;
}
.beast-emblem svg { width: 100%; height: 100%; display: block; }
.beast-ring {
  fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: .35;
  transform-origin: 50% 50%; animation: spin 24s linear infinite;
}
.beast-glyph { fill: var(--primary); opacity: .16; }
.beast-glyph2 { fill: var(--gold); opacity: .22; }
@keyframes spin { to { transform: rotate(360deg); } }
.beast-name {
  font-size: 13px; letter-spacing: 8px; color: var(--gold);
  opacity: .8; margin: 8px 0 0; text-indent: 8px;
}

/* ---------- 付费解锁按钮（结果页，分享旁） ---------- */
.btn-pay {
  display: block; width: 100%; margin-top: 12px; padding: 13px 0;
  font-size: 15px; letter-spacing: 2px; color: var(--primary);
  background: #fff8ea; border: 1px solid rgba(184,134,11,.45);
  border-radius: 26px; cursor: pointer; text-decoration: none; text-align: center;
}
.btn-pay:active { opacity: .8; }
.btn-pay-hint { font-size: 11px; color: var(--text-dim); text-align: center; margin-top: 6px; }

/* ============================================================
 * 付费入口页 pay.html
 * ============================================================ */
.pay-wrap { max-width: 480px; margin: 0 auto; padding: 40px 22px 36px; position: relative; z-index: 1; }

.order-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px 20px 20px; margin-bottom: 16px;
}
.order-goods { display: flex; align-items: center; gap: 12px; }
.order-goods-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
}
.order-goods-info { flex: 1; min-width: 0; }
.order-goods-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.order-goods-desc { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.order-price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--card-border);
}
.order-price-label { font-size: 13px; color: var(--text-dim); }
.order-price { font-size: 30px; font-weight: 700; color: var(--primary); }
.order-price small { font-size: 14px; }
.order-price-origin { font-size: 12px; color: var(--text-dim); text-decoration: line-through; }

.pay-methods { margin: 0 0 16px; }
.pay-methods-title {
  font-size: 13px; color: var(--text-dim); letter-spacing: 2px; margin-bottom: 10px;
}
.pay-method {
  display: flex; align-items: center; gap: 12px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 10px;
  cursor: pointer; transition: border-color .2s;
}
.pay-method.selected { border-color: var(--primary); background: rgba(201,79,47,.06); }
.pay-method-icon { width: 30px; height: 30px; flex-shrink: 0; }
.pay-method-name { flex: 1; font-size: 15px; color: var(--ink); }
.pay-method-check {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--card-border);
}
.pay-method.selected .pay-method-check {
  border-color: var(--primary); background: var(--primary);
  box-shadow: inset 0 0 0 3px #fff;
}
.btn-paynow {
  display: block; width: 100%; padding: 15px 0; margin-top: 4px;
  font-size: 16px; letter-spacing: 3px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  border: none; border-radius: 26px; cursor: pointer;
}
.btn-paynow:active { opacity: .85; }
.btn-paynow:disabled { opacity: .5; }
.pay-legal {
  font-size: 11px; color: var(--text-dim); line-height: 1.7;
  text-align: center; margin-top: 14px;
}
.pay-back {
  display: block; width: 160px; margin: 22px auto 0; padding: 10px 0;
  text-align: center; font-size: 13px; color: var(--text-dim);
  border: 1px solid var(--card-border); border-radius: 22px; text-decoration: none;
}

.coupon-row {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(224,46,36,.08); border: 1px dashed rgba(224,46,36,.4);
  border-radius: 12px; padding: 10px 14px; margin-bottom: 14px;
  font-size: 14px; color: var(--ink);
}
.coupon-row span:last-child {
  color: #e02e24; font-weight: 700;
}

/* ---------- ICP 备案号页脚 ---------- */
.icp-line {
  text-align: center; font-size: 11px; padding: 10px 0 22px;
  color: rgba(120,80,40,.45); letter-spacing: 1px;
}
.icp-line a {
  color: rgba(120,80,40,.55); text-decoration: none; border-bottom: 1px solid rgba(120,80,40,.18);
}
.icp-line a:active { opacity: .7; }
.legal-wrap .icp-line { padding: 18px 0 30px; }

/* ============================================================
 * 生辰选择器（公历/农历弹窗）
 * ============================================================ */
.birth-trigger {
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; padding: 0 16px;
  background: #fff8ea; border: 1px solid rgba(184,134,11,.35);
  border-radius: 14px; color: var(--ink); font-size: 15px; cursor: pointer;
}
.birth-trigger:empty::before, .birth-trigger span:empty::before {
  content: '请选择出生日期'; color: #b8a080;
}
.birth-arrow {
  width: 8px; height: 8px; border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim); transform: rotate(45deg);
  opacity: .7;
}

.birth-picker-mask {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: flex-end; justify-content: center;
  background: rgba(30, 20, 10, .55); backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.birth-picker-mask.show { display: flex; }

.birth-picker {
  width: 100%; max-width: 480px; background: #fffdf6;
  border-radius: 24px 24px 0 0; padding: 24px 20px 28px;
  box-shadow: 0 -10px 40px rgba(80,45,20,.25);
  animation: slideUp .3s ease;
}
@keyframes slideUp {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.bp-title {
  text-align: center; font-size: 18px; font-weight: 700;
  color: var(--ink); letter-spacing: 2px; margin-bottom: 4px;
}
.bp-hint {
  text-align: center; font-size: 12px; color: var(--text-dim);
  margin-bottom: 14px; letter-spacing: 1px;
}
.bp-mode {
  display: flex; gap: 10px; margin-bottom: 14px;
}
.bp-mode button {
  flex: 1; height: 40px; border-radius: 20px; border: 1px solid var(--card-border);
  background: #fff8ea; color: var(--text-dim); font-size: 15px; cursor: pointer;
}
.bp-mode button.active {
  background: linear-gradient(180deg, #e05a38 0%, #c13f22 100%);
  color: #fff; border-color: transparent;
}
.bp-wheel {
  display: flex; gap: 8px; margin-bottom: 14px;
}
.bp-select {
  flex: 1; height: 120px; border-radius: 12px;
  background: #fff8ea; border: 1px solid rgba(184,134,11,.25);
  color: var(--ink); font-size: 16px; text-align: center;
  -webkit-appearance: none; appearance: none;
  overflow-y: auto; padding: 8px 0;
}
.bp-select option { font-size: 15px; padding: 6px 0; }
.bp-select:focus { border-color: var(--primary); outline: none; }

.bp-toggles {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 16px; font-size: 13px; color: var(--text-dim);
}
.bp-toggles label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.bp-toggles input { width: 16px; height: 16px; accent-color: var(--primary); }
.bp-ok {
  width: 100%; height: 48px; border: none; border-radius: 24px;
  background: linear-gradient(180deg, #e05a38 0%, #c13f22 100%);
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 2px; cursor: pointer;
}
.bp-ok:active { opacity: .9; }

/* ============================================================
 * 毛笔书写加载动画
 * ============================================================ */
.brush-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 0 24px;
  position: relative; z-index: 1;
}
.brush-title {
  font-size: 20px; font-weight: 700; color: var(--ink);
  letter-spacing: 3px; margin-bottom: 28px;
}
.brush-paper {
  display: flex; gap: 18px; align-items: center; justify-content: center;
  width: 100%; max-width: 320px; min-height: 150px;
  background: #fffdf6; border: 1px solid rgba(184,134,11,.28);
  border-radius: 22px; padding: 24px 16px;
  box-shadow: var(--shadow), inset 0 0 40px rgba(184,134,11,.06);
}
.mizige {
  width: 80px; height: 80px; position: relative;
  background:
    linear-gradient(rgba(184,134,11,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,134,11,.18) 1px, transparent 1px),
    linear-gradient(45deg, transparent 49.5%, rgba(184,134,11,.12) 49.5%, rgba(184,134,11,.12) 50.5%, transparent 50.5%),
    linear-gradient(-45deg, transparent 49.5%, rgba(184,134,11,.12) 49.5%, rgba(184,134,11,.12) 50.5%, transparent 50.5%);
  background-size: 100% 50%, 50% 100%, 100% 100%, 100% 100%;
  border: 1px solid rgba(184,134,11,.35);
  display: flex; align-items: center; justify-content: center;
}
.mizige::before, .mizige::after {
  content: ''; position: absolute; background: rgba(184,134,11,.12);
}
.mizige::before { width: 100%; height: 1px; top: 50%; left: 0; transform: translateY(-50%); }
.mizige::after { width: 1px; height: 100%; top: 0; left: 50%; transform: translateX(-50%); }
.brush-char {
  font-family: "STKaiti", "KaiTi", "Kaiti SC", "Hiragino Sans GB", serif;
  font-size: 52px; color: var(--ink); opacity: 0;
  transform: scaleX(0); transform-origin: left center;
}
@keyframes brushWrite {
  0% { opacity: 0; transform: scaleX(0); filter: blur(2px); }
  30% { opacity: 1; filter: blur(1px); }
  100% { opacity: 1; transform: scaleX(1); filter: blur(0); }
}
.brush-char.written { opacity: 1; transform: scaleX(1); filter: none; }
.brush-progress {
  width: 100%; max-width: 280px; height: 8px; margin-top: 28px;
  background: rgba(184,134,11,.15); border-radius: 4px; overflow: hidden;
}
.brush-progress-bar {
  height: 100%; width: 0%; border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}
.brush-step {
  margin-top: 16px; font-size: 14px; color: var(--primary); font-weight: 600;
  letter-spacing: 1px;
}
.brush-sub {
  margin-top: 8px; font-size: 12px; color: var(--text-dim); letter-spacing: 1px;
}

/* ============================================================
 * 红包挽留弹窗
 * ============================================================ */
.retention-mask {
  position: fixed; inset: 0; z-index: 120; display: none;
  align-items: center; justify-content: center; padding: 0 32px;
  background: rgba(20, 10, 5, .72); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.retention-mask.show { display: flex; }
.retention-modal {
  width: 100%; max-width: 320px; position: relative;
  background: linear-gradient(180deg, #fff8ea 0%, #fff 55%, #fff0f0 100%);
  border-radius: 24px; padding: 36px 22px 28px; text-align: center;
  box-shadow: 0 0 0 4px rgba(255,215,130,.45), 0 20px 50px rgba(80,30,20,.4);
  overflow: hidden;
}
.retention-modal::before {
  content: ''; position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 60px; background: #e02e24;
  border-radius: 0 0 50px 50px; z-index: 1;
  box-shadow: 0 4px 10px rgba(160,20,10,.3);
}
.retention-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 180%; height: 180%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255,215,0,.12) 0deg 20deg, transparent 20deg 40deg);
  animation: glowSpin 8s linear infinite; opacity: .35;
}
@keyframes glowSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.retention-title {
  position: relative; z-index: 2; font-size: 18px; font-weight: 700;
  color: #c13f22; margin-top: 18px; margin-bottom: 12px; letter-spacing: 1px;
}
.retention-amount {
  position: relative; z-index: 2; display: flex; align-items: baseline;
  justify-content: center; gap: 4px; margin-bottom: 8px;
}
.retention-amount span { font-size: 16px; color: #e02e24; font-weight: 700; }
.retention-amount b { font-size: 52px; color: #e02e24; font-weight: 800; line-height: 1; }
.retention-sub {
  position: relative; z-index: 2; font-size: 14px; color: var(--text-dim); margin-bottom: 22px;
}
.retention-sub b { color: #e02e24; font-weight: 600; }
.retention-main {
  position: relative; z-index: 2; width: 100%; height: 48px; border: none; border-radius: 24px;
  background: linear-gradient(180deg, #ff8a4c 0%, #e02e24 100%);
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 2px; cursor: pointer;
  box-shadow: 0 6px 16px rgba(224,46,36,.35); margin-bottom: 12px;
}
.retention-main:active { opacity: .9; }
.retention-cancel {
  position: relative; z-index: 2; width: 100%; height: 42px; border: 1px solid rgba(180,80,60,.35);
  border-radius: 21px; background: transparent; color: var(--text-dim); font-size: 14px; cursor: pointer;
}
.retention-legal {
  position: relative; z-index: 2; font-size: 11px; color: rgba(120,80,50,.5);
  margin-top: 16px; letter-spacing: .5px;
}

/* ============================================================
 * 华南民俗装饰（潮汕/闽南）
 * ============================================================ */
.folk-decor {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
/* 红砖厝纹理（顶部淡入） */
.folk-brick {
  position: absolute; top: 0; left: 0; right: 0; height: 160px;
  background:
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(180,70,50,.05) 22px 23px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(180,70,50,.05) 46px 47px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, transparent 100%);
}
/* 厝角头（屋顶轮廓） */
.folk-roof {
  position: absolute; top: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(135deg, transparent 40%, rgba(180,70,50,.08) 40%, rgba(180,70,50,.08) 60%, transparent 60%),
              linear-gradient(45deg, transparent 40%, rgba(180,70,50,.08) 40%, rgba(180,70,50,.08) 60%, transparent 60%);
  background-size: 80px 60px, 80px 60px; background-position: 0 0, 40px 0;
}
/* 灯笼 */
.folk-lantern {
  position: absolute; top: 12px; width: 24px; height: 32px;
  background: radial-gradient(ellipse at 50% 50%, rgba(224,46,36,.35), rgba(224,46,36,.1) 70%);
  border-radius: 50% 50% 45% 45%;
  box-shadow: 0 0 12px rgba(224,46,36,.25);
  animation: lanternSwing 3s ease-in-out infinite alternate;
}
.folk-lantern.left { left: 18px; }
.folk-lantern.right { right: 18px; animation-delay: .6s; }
@keyframes lanternSwing {
  from { transform: rotate(-4deg); } to { transform: rotate(4deg); }
}
/* 剪纸祥云 */
.folk-clouds {
  position: absolute; bottom: 90px; left: 0; right: 0; height: 40px;
  background:
    radial-gradient(ellipse 60px 20px at 10% 50%, rgba(224,46,36,.12) 0%, transparent 70%),
    radial-gradient(ellipse 80px 24px at 90% 50%, rgba(224,46,36,.12) 0%, transparent 70%),
    radial-gradient(ellipse 50px 16px at 50% 60%, rgba(201,162,75,.15) 0%, transparent 70%);
}

/* ---------- 结果页返回按钮 ---------- */
.result-back {
  position: absolute; top: 10px; left: 12px; z-index: 5;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.85); border: 1px solid rgba(184,134,11,.35);
  border-radius: 20px; padding: 5px 11px; font-size: 12px;
  color: var(--ink); cursor: pointer; box-shadow: 0 2px 8px rgba(80,45,20,.1);
}
.result-back:active { opacity: .85; }

/* ---------- 结果页底部合规区压缩（仅结果页） ---------- */
#screen-result .disclaimer { margin-top: 10px; padding: 0 8px; font-size: 10px; line-height: 1.5; }
#screen-result .footer-note { display: none; }
#screen-result .proto-footer { margin-top: 4px; font-size: 11px; }
#screen-result .icp-line { padding: 4px 0 4px; font-size: 10px; }
#screen-result .pay-note { margin-top: 6px; font-size: 10.5px; }
#screen-result .btn-pay { margin-top: 10px; padding: 12px 0; }
#screen-result .locked-preview { margin-bottom: 8px; }

/* 已解锁：完整报告入口 */
.report-entry {
  display: block; margin-top: 8px; padding: 9px 0; text-align: center;
  font-size: 13px; letter-spacing: 1px; color: var(--gold); text-decoration: none;
  background: rgba(217,179,106,.1); border: 1px solid rgba(217,179,106,.4); border-radius: 22px;
}
.report-entry:active { opacity: .8; }

/* 小屏（iPhone SE 等 ≤700px 高）结果页再压一档 */
@media (max-height: 700px) {
  .result-wrap { padding-top: 12px; }
  .result-head { gap: 12px; }
  .score-ring { width: 96px; height: 96px; }
  .score-num { padding-top: 30px; }
  .score-num b { font-size: 30px; }
  .result-title { font-size: 17px; }
  #radar { width: 124px; height: 124px; }
  .radar-card { padding: 8px 8px 2px; margin-top: 8px; }
  .report { margin-top: 8px; gap: 8px; }
  .report-section { padding: 10px 12px; font-size: 12.5px; }
  .sum-line { -webkit-line-clamp: 2; }
  .locked-preview.blur .lp-item { -webkit-line-clamp: 1; }
  .result-title, .report-title { letter-spacing: 1px; }
  #screen-result .pay-note { display: none; }
  #screen-result .btn-pay { padding: 11px 0; margin-top: 8px; }
}

/* ============================================================
 * 生辰选择器 —— 自定义滚轮（公历/农历）
 * ============================================================ */
.bp-wheel-col {
  flex: 1; height: 160px; position: relative; overflow: hidden;
  background: #fff8ea; border-radius: 12px;
  border: 1px solid rgba(184,134,11,.25);
}
.bp-wheel-col::before, .bp-wheel-col::after {
  content: ''; position: absolute; left: 0; right: 0; height: 58px; z-index: 2; pointer-events: none;
}
.bp-wheel-col::before { top: 0; background: linear-gradient(to bottom, rgba(255,248,234,1), rgba(255,248,234,0)); }
.bp-wheel-col::after { bottom: 0; background: linear-gradient(to top, rgba(255,248,234,1), rgba(255,248,234,0)); }
.bp-wheel-items {
  height: 100%; overflow-y: auto; scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 58px 0;
}
.bp-wheel-items::-webkit-scrollbar { display: none; }
.bp-wheel-item {
  height: 44px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--text-dim); scroll-snap-align: center;
  transition: color .2s, transform .2s, font-weight .2s;
}
.bp-wheel-item.active {
  color: var(--primary); font-weight: 700; font-size: 16px;
}
.bp-wheel-mask {
  position: absolute; left: 0; right: 0; top: 58px; height: 44px;
  border-top: 1px solid rgba(184,134,11,.25); border-bottom: 1px solid rgba(184,134,11,.25);
  pointer-events: none; z-index: 3;
}
.bp-select { display: none; }

/* ============================================================
 * 毛笔书写动画增强
 * ============================================================ */
.brush-char {
  font-family: "Ma Shan Zheng", "STKaiti", "KaiTi", "Kaiti SC", "Hiragino Sans GB", serif;
  font-size: 56px; color: var(--ink); opacity: 0;
  transform: scale(1.05); transform-origin: center;
  filter: blur(1px);
  clip-path: inset(0 0 100% 0);
}
@keyframes brushWrite {
  0% { opacity: 0; clip-path: inset(0 0 100% 0); transform: scale(1.08); filter: blur(2px); }
  20% { opacity: 1; }
  100% { opacity: 1; clip-path: inset(0 0 0 0); transform: scale(1); filter: blur(0); }
}
.brush-char.written {
  opacity: 1; clip-path: inset(0 0 0 0); transform: scale(1); filter: blur(0);
}
.brush-cursor {
  position: fixed; width: 18px; height: 28px; pointer-events: none; z-index: 200;
  background: linear-gradient(135deg, #5a3a22 0%, #3d2414 100%);
  border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
  box-shadow: 0 4px 10px rgba(61,36,20,.35);
  opacity: 0; transition: opacity .15s, left .3s ease-in-out, top .3s ease-in-out;
}
.brush-cursor.writing { opacity: 1; }
.brush-ink-box {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 280px; height: 120px; pointer-events: none; z-index: 3;
}
.brush-ink {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(61,36,20,.18); transform: scale(0);
  animation: inkDrop .5s ease-out forwards;
}
@keyframes inkDrop {
  to { transform: scale(1.4); opacity: 0; }
}
.brush-paper {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(184,134,11,.06) 0%, transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(184,134,11,.06) 0%, transparent 35%),
    #fffdf6;
}

/* ============================================================
 * 华南民俗装饰增强（燕尾脊 / 花砖 / 海浪）
 * ============================================================ */
.folk-ridge {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 320px; height: 46px; pointer-events: none;
  background:
    radial-gradient(circle at 30% 100%, rgba(224,46,36,.18) 0%, transparent 45%),
    radial-gradient(circle at 70% 100%, rgba(224,46,36,.18) 0%, transparent 45%);
  clip-path: polygon(0 0, 8% 0, 12% 70%, 18% 0, 82% 0, 88% 70%, 92% 0, 100% 0, 94% 100%, 6% 100%);
}
.folk-tile {
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background:
    radial-gradient(circle at 10% 80%, rgba(224,46,36,.08) 0%, transparent 30%),
    radial-gradient(circle at 90% 70%, rgba(224,46,36,.08) 0%, transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(201,162,75,.10) 0%, transparent 35%);
}
.folk-wave {
  position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background:
    radial-gradient(ellipse 80px 24px at 15% 100%, rgba(74,111,165,.12) 0%, transparent 60%),
    radial-gradient(ellipse 100px 30px at 50% 100%, rgba(74,111,165,.12) 0%, transparent 60%),
    radial-gradient(ellipse 80px 24px at 85% 100%, rgba(74,111,165,.12) 0%, transparent 60%);
}


/* ============================================================
 * v16 追加：单输入姓名 / 思考计算步骤 / 生辰二次确认
 * ============================================================ */

/* 单输入姓名：占满整行 */
#input-name { width: 100%; }

/* ---------- 思考计算步骤 ---------- */
.think-steps {
  display: flex; flex-direction: column; align-items: center;
  gap: 13px; margin-top: 24px;
}
.think-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; letter-spacing: 1px;
  animation: thinkIn .38s ease both;
}
.think-row .think-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary, #e05a38);
  animation: thinkPulse 1s ease-in-out infinite;
}
.think-row.done .think-dot { animation: none; background: #3fae6a; }
.think-row .think-mark {
  color: #3fae6a; font-weight: 700; min-width: 1.2em; text-align: center;
}
@keyframes thinkIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes thinkPulse {
  0%, 100% { transform: scale(1); opacity: .55; }
  50% { transform: scale(1.6); opacity: 1; }
}

/* ---------- 生辰二次确认（公历/农历对照） ---------- */
.bp-confirm { padding: 6px 4px 2px; }
.bpc-title {
  text-align: center; font-size: 17px; font-weight: 700;
  color: var(--ink); letter-spacing: 2px; margin-bottom: 14px;
}
.bpc-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 2px; border-bottom: 1px dashed rgba(184,134,11,.28);
  font-size: 15px; color: var(--ink);
}
.bpc-tag {
  flex: 0 0 auto; font-size: 12px; padding: 2px 9px; border-radius: 5px;
  background: rgba(184,134,11,.14); color: var(--text-dim); letter-spacing: 1px;
}
.bpc-tag.solar { background: rgba(224,90,56,.14); color: #c13f22; }
.bpc-tag.lunar { background: rgba(90,60,20,.14); color: #7a4a1e; }
.bpc-hint {
  font-size: 12px; color: var(--text-dim);
  margin-top: 10px; text-align: center; letter-spacing: 1px;
}
.bpc-btns { display: flex; gap: 12px; margin-top: 16px; }
.bpc-btns button {
  flex: 1; height: 46px; border-radius: 23px; font-size: 15px;
  font-weight: 600; letter-spacing: 2px; cursor: pointer; border: none;
}
.bpc-back {
  background: #fff8ea; color: var(--text-dim);
  border: 1px solid var(--card-border, rgba(184,134,11,.25));
}
.bpc-ok {
  background: linear-gradient(180deg, #e05a38 0%, #c13f22 100%);
  color: #fff;
}

/* ============================================================
 * v17 追加：六维测算全屏转场（cinema）
 * ============================================================ */
.brush-wrap.cinema-on > *:not(.cinema) {
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.cinema {
  position: fixed; inset: 0; z-index: 40;
  display: none;
  background: #15121d;
  transition: background 900ms ease;
}
.cinema.on { display: block; }
.cin-scene {
  position: absolute; left: 50%; top: 42%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 15px; width: 86%; text-align: center;
}
.cin-scene.in  { animation: cinIn .65s cubic-bezier(.22,.8,.3,1) both; }
.cin-scene.out { animation: cinOut .6s ease both; }
@keyframes cinIn {
  from { opacity: 0; transform: translate(-50%, -45%) scale(.84); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes cinOut {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to   { opacity: 0; transform: translate(-50%, -57%) scale(1.22); }
}
.cin-orbit {
  position: relative; width: 150px; height: 150px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.cin-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.22);
  border-top-color: var(--primary, #e05a38);
  animation: cinSpin 3.2s linear infinite;
}
.cin-ring2 {
  position: absolute; inset: 15px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.13);
  animation: cinSpin 5.2s linear infinite reverse;
}
.cin-glyph {
  font-size: 58px; line-height: 1;
  color: var(--primary, #e05a38);
  text-shadow: 0 0 26px rgba(224,90,56,.6);
  animation: cinGlyph 1.6s ease-in-out infinite;
}
@keyframes cinSpin  { to { transform: rotate(360deg); } }
@keyframes cinGlyph { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.cin-title {
  font-size: 27px; font-weight: 700;
  letter-spacing: 7px; text-indent: 7px;
  color: #fff;
}
.cin-sub {
  font-size: 14px; letter-spacing: 2px;
  color: rgba(255,255,255,.55);
}
.cin-calc {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px; letter-spacing: 1px;
  color: rgba(255,255,255,.38);
}
.cin-foot {
  position: absolute; bottom: 9%; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.cin-dots { display: flex; gap: 11px; }
.cin-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  transition: background .35s ease, transform .35s ease;
}
.cin-dot.hit { background: var(--primary, #e05a38); transform: scale(1.4); }
.cin-pct {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: 2px;
  color: rgba(255,255,255,.45);
}

/* ============================================================
 * v18 全局主题：暗色玄学风（参照六维转场 cinema 风格）
 * 深底 + 光晕 + 玻璃卡片；时辰/神兽主色逻辑保留
 * ============================================================ */
:root {
  --primary: #e05a38;
  --primary2: #b03418;
  --gold: #d9b36a;
  --gold-light: #f3d68a;
  --text: #ece3d2;
  --text-dim: #a89880;
  --card-bg: rgba(36, 30, 46, .92);
  --card-border: rgba(224, 90, 56, .22);
  --shadow: 0 16px 44px rgba(0, 0, 0, .5);
  --page-bg1: #14111c;
  --page-bg2: #191426;
  --ink: #f4ecda;
  --paper: #221c2e;
}

/* ---------- 页面底色：深空 + 顶缘火光晕 ---------- */
body {
  background:
    radial-gradient(130% 70% at 50% -8%, rgba(224, 90, 56, .16) 0%, transparent 55%),
    linear-gradient(180deg, #17131f 0%, #14111c 45%, #191323 100%);
  color: var(--text);
}
.aurora {
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(224, 90, 56, .13) 0%, transparent 55%),
    radial-gradient(ellipse 80% 40% at 80% 10%, rgba(217, 179, 106, .08) 0%, transparent 50%),
    radial-gradient(ellipse 80% 40% at 20% 15%, rgba(110, 80, 200, .07) 0%, transparent 50%);
}
.clouds { opacity: .14; }
.folk-decor { opacity: .55; }

/* ---------- 落地页头部 ---------- */
.brand-tag { background: rgba(255, 255, 255, .06); }
.hero-shine {
  background: radial-gradient(circle, rgba(224, 90, 56, .22) 0%, rgba(217, 179, 106, .1) 35%, transparent 70%);
}
.hero-cloud {
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 0 18px rgba(224, 90, 56, .12);
}
.hero-slogan { text-shadow: 0 0 18px rgba(224, 90, 56, .45); }

/* ---------- 表单卡与输入（玻璃质感） ---------- */
.field-input, .gender-item, .birth-select, .birth-trigger,
.bp-mode button, .bp-select, .unlock-input, .copy-box, .bpc-back {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--ink);
}
.field-input::placeholder, .unlock-input::placeholder { color: #8d7f6a; }
.birth-select option, .bp-select option { background: #241e30; color: var(--ink); }
.birth-trigger:empty::before, .birth-trigger span:empty::before { color: #8d7f6a; }
.gender-item.active { background: rgba(224, 90, 56, .16); }
.pay-method.selected { background: rgba(224, 90, 56, .12); }

/* ---------- 合规与辅助文字 ---------- */
.pay-notice {
  background: rgba(255, 255, 255, .06);
  color: var(--text-dim);
  border-color: rgba(217, 179, 106, .28);
  box-shadow: none;
}
.agree-row { color: rgba(236, 227, 210, .62); }
.form-note { color: rgba(236, 227, 210, .42); }
.disclaimer { color: rgba(236, 227, 210, .45); }
.footer-note { color: rgba(236, 227, 210, .4); }
.icp-line { color: rgba(236, 227, 210, .38); }
.icp-line a { color: rgba(236, 227, 210, .48); border-bottom-color: rgba(236, 227, 210, .18); }

/* ---------- 结果页细节 ---------- */
.ring-bg { stroke: rgba(255, 255, 255, .1); }
.locked-preview .lp-item { border-bottom-color: rgba(255, 255, 255, .1); }
.report-kv { border-bottom-color: rgba(255, 255, 255, .1); }

/* ---------- 支付 CTA：光晕强调 ---------- */
.btn-pay {
  background: linear-gradient(180deg, #e05a38 0%, #c13f22 100%);
  color: #fff; border: none; font-weight: 700;
  box-shadow: 0 8px 24px rgba(190, 60, 30, .42), 0 0 30px rgba(224, 90, 56, .22);
}

/* ---------- 弹层（解锁/生辰）暗色 ---------- */
.modal, .birth-picker {
  background: #221c2e;
  border: 1px solid rgba(255, 255, 255, .1);
}

/* ---------- 毛笔书写：玄学暗纸 ---------- */
.brush-paper {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(224, 90, 56, .3);
  box-shadow: var(--shadow), 0 0 40px rgba(224, 90, 56, .12);
}
.mizige {
  background:
    linear-gradient(rgba(224, 90, 56, .2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 90, 56, .2) 1px, transparent 1px),
    linear-gradient(45deg, transparent 49.5%, rgba(224, 90, 56, .13) 49.5%, rgba(224, 90, 56, .13) 50.5%, transparent 50.5%),
    linear-gradient(-45deg, transparent 49.5%, rgba(224, 90, 56, .13) 49.5%, rgba(224, 90, 56, .13) 50.5%, transparent 50.5%);
  background-size: 100% 50%, 50% 100%, 100% 100%, 100% 100%;
  border-color: rgba(224, 90, 56, .35);
}
.mizige::before, .mizige::after { background: rgba(224, 90, 56, .15); }
.brush-char {
  color: #f5b98b;
  text-shadow: 0 0 16px rgba(224, 90, 56, .55);
}
.brush-progress { background: rgba(255, 255, 255, .08); }

/* ---------- 红包挽留：暗色锦盒 ---------- */
.retention-modal {
  background: linear-gradient(180deg, #2c2233 0%, #221c2e 55%, #2a1c22 100%);
  box-shadow: 0 0 0 4px rgba(217, 179, 106, .28), 0 20px 50px rgba(0, 0, 0, .6);
}
.retention-title { color: #ff9a7a; }
.retention-amount span, .retention-amount b, .retention-sub b { color: #ff7a5c; }
.retention-cancel { border-color: rgba(255, 255, 255, .22); color: var(--text-dim); }

/* ---------- 生成屏 loading 兼容 ---------- */
.loading-ring { border-color: rgba(255, 255, 255, .12); border-top-color: var(--primary); }

/* ============================================================
 * V23 转化逻辑重构：指数环打码 / 旗子锁 / sticky 支付条 /
 * 支付页红包通栏 + 温馨提示 + 倒计时 + 社会证明 + 已支付找回
 * ============================================================ */

/* ---------- 结果屏：六面旗子内容锁 ---------- */
.flag-lock {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 12px 0 4px;
}
.flag-item {
  position: relative; padding: 9px 4px 10px; text-align: center;
  background: linear-gradient(180deg, rgba(217,179,106,.16), rgba(217,179,106,.05));
  border: 1px solid rgba(217,179,106,.3);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
  animation: flagIn .45s cubic-bezier(.2,.7,.2,1) backwards;
}
.flag-item:nth-child(2) { animation-delay: .08s; }
.flag-item:nth-child(3) { animation-delay: .16s; }
.flag-item:nth-child(4) { animation-delay: .24s; }
.flag-item:nth-child(5) { animation-delay: .32s; }
.flag-item:nth-child(6) { animation-delay: .4s; }
@keyframes flagIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.flag-text { display: block; font-size: 12px; color: var(--gold); font-weight: 600; letter-spacing: 1px; writing-mode: horizontal-tb; }
.flag-lockicon { display: block; font-size: 11px; font-style: normal; margin-top: 2px; opacity: .85; }

/* ---------- 结果屏：底部 sticky 支付条 ---------- */
.sticky-pay {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  max-width: 560px; margin: 0 auto;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 246, .97);
  box-shadow: 0 -6px 24px rgba(80,45,18,.16);
  border-top: 1px solid var(--card-border);
}
.sticky-pay .sp-info { flex: 1; display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.sticky-pay .sp-info b { font-size: 21px; color: var(--primary); font-weight: 800; }
.sticky-pay .sp-origin { font-size: 12px; color: var(--text-dim); text-decoration: line-through; }
.sticky-pay .sp-count { font-size: 11px; color: var(--text-dim); }
.sticky-pay .sp-btn {
  flex: none; padding: 11px 22px; border-radius: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; letter-spacing: 1px;
  box-shadow: 0 6px 16px rgba(201,79,47,.4);
}
.sticky-pay .sp-btn:active { opacity: .9; }
#screen-result { padding-bottom: 78px; }

/* ---------- 算分动画：五维指数环（cinema 末幕） ---------- */
.idx-row { display: flex; justify-content: center; gap: 9px; margin: 16px 0 10px; flex-wrap: nowrap; }
.idx-item { text-align: center; flex: 1; max-width: 66px; }
.idx-ring {
  position: relative; width: 50px; height: 50px; margin: 0 auto 6px;
  border-radius: 50%;
  border: 3px solid rgba(226,183,101,.85);
  box-shadow: 0 0 14px rgba(226,183,101,.35), inset 0 0 10px rgba(226,183,101,.2);
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, rgba(226,183,101,.14), rgba(21,18,29,.4));
}
.idx-val { font-size: 14px; font-weight: 800; color: #f3d68a; font-variant-numeric: tabular-nums; }
.idx-val.masked { color: #e2b765; letter-spacing: 1px; }
.idx-lock {
  position: absolute; right: -4px; bottom: -2px; font-size: 12px; font-style: normal;
  opacity: 0; transform: scale(.5); transition: all .25s cubic-bezier(.2,.7,.2,1);
}
.idx-lock.on { opacity: 1; transform: scale(1); }
.idx-name { font-size: 11.5px; color: rgba(236,227,210,.72); letter-spacing: 2px; }

/* ---------- 支付页：红包抵扣通栏 ---------- */
.coupon-banner {
  display: none; align-items: center; justify-content: center; gap: 6px;
  margin: -6px -6px 12px; padding: 9px 10px;
  background: linear-gradient(135deg, #e02e24, #ff5a3c);
  border-radius: 12px; color: #ffe9c8;
  font-size: 13.5px; font-weight: 700; letter-spacing: .5px;
  box-shadow: 0 6px 16px rgba(224,46,36,.35);
}
.coupon-banner.show { display: flex; }
.coupon-banner b { font-size: 18px; color: #fff; font-weight: 800; }
.coupon-banner .cb-tag {
  font-size: 10.5px; font-weight: 600; color: #e02e24;
  background: #ffe9c8; border-radius: 4px; padding: 1px 6px; margin-left: 4px;
}

/* ---------- 支付页：温馨提示弹窗 ---------- */
.tip-mask {
  display: none; position: fixed; inset: 0; z-index: 60;
  background: rgba(10, 6, 4, .66); align-items: center; justify-content: center; padding: 30px;
}
.tip-mask.show { display: flex; }
.tip-modal {
  position: relative; width: 100%; max-width: 320px;
  background: linear-gradient(180deg, #fffdf6, #fdf3df);
  border: 2px solid rgba(217,179,106,.6); border-radius: 18px;
  padding: 24px 22px 20px; text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,.4);
  animation: tipIn .3s cubic-bezier(.2,.7,.2,1);
}
@keyframes tipIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
.tip-deco { font-size: 12px; color: var(--gold); letter-spacing: 4px; margin-bottom: 8px; }
.tip-title { font-size: 19px; font-weight: 800; color: var(--primary2); margin-bottom: 10px; letter-spacing: 1px; }
.tip-text { font-size: 14px; color: var(--text); line-height: 1.8; margin-bottom: 16px; }
.tip-text b { color: #e02e24; font-weight: 800; }
.tip-btn {
  display: block; width: 100%; padding: 12px 0; border: none; border-radius: 26px;
  background: linear-gradient(135deg, #ff5a3c, #e02e24);
  color: #fff; font-size: 15.5px; font-weight: 700; letter-spacing: 2px; cursor: pointer;
  box-shadow: 0 8px 20px rgba(224,46,36,.4);
}
.tip-btn:active { opacity: .9; }

/* ---------- 支付页：社会证明 + 倒计时 + 已支付找回 ---------- */
.social-proof {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 10px 0 2px; font-size: 11.5px; color: var(--text-dim);
}
.social-proof b { color: #e02e24; font-weight: 700; }
.social-proof .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(122,90,58,.4); }
.cd-row { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 4px; }
.cd-label { font-size: 12px; color: var(--text-dim); }
.cd-time { font-size: 15px; color: #e02e24; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.paid-find {
  display: block; text-align: center; margin: 10px 0 0;
  font-size: 12.5px; color: var(--text-dim); text-decoration: none;
}
.paid-find b { color: var(--gold); font-weight: 600; }
