/* ============================================================
 * 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: 28px 18px 40px; }

.result-head { text-align: center; padding: 8px 0 6px; }

.score-ring { position: relative; width: 150px; height: 150px; margin: 0 auto 12px; }
.score-ring svg { transform: rotate(-90deg); }
.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: 52px;
}
.score-num b { font-size: 48px; font-weight: 800; color: var(--primary); }
.score-num span { font-size: 14px; color: var(--text-dim); }

.result-title { font-size: 22px; font-weight: 700; letter-spacing: 2px; margin-bottom: 6px; color: var(--ink); }
.result-meta { font-size: 12px; color: var(--text-dim); letter-spacing: 1px; }

.radar-card, .report-section, .card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius);
}
.radar-card { padding: 16px 16px 10px; margin-top: 18px; }
.card-title { font-size: 14px; color: var(--text-dim); letter-spacing: 2px; margin-bottom: 4px; text-align: center; }

.report { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.report-section { padding: 18px 16px; line-height: 1.9; font-size: 14.5px; color: var(--text); }

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

.locked-preview {
  position: relative; margin-bottom: 14px;
}
.locked-preview .lp-item {
  padding: 10px 0; border-bottom: 1px dashed rgba(80,50,30,.12);
  font-size: 13.5px; color: var(--text-dim); line-height: 1.8;
}
.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;
}

/* ---------- 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; }
