/* ============================================================
   掌相 · PALM ORACLE — 样式
   ============================================================ */

:root {
  --bg0: #07060B;
  --bg1: #0E0B14;
  --bg2: #15111E;
  --gold: #C9A063;
  --gold-hi: #EBD3A3;
  --gold-dim: rgba(201, 160, 99, .16);
  --text: #EBE4D9;
  --text-2: #B8AFA1;
  --muted: #857E73;
  --rose: #B97A83;
  --jade: #6E9C88;
  --line: rgba(201, 160, 99, .18);
  --card: rgba(255, 255, 255, .032);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --r: 16px;
}

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

html, body {
  margin: 0; padding: 0;
  background: var(--bg0);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(201,160,99,.10), transparent 60%),
    radial-gradient(90% 50% at 90% 110%, rgba(110,156,136,.07), transparent 60%),
    radial-gradient(80% 50% at 0% 90%, rgba(185,122,131,.06), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0) 55%);
  background-attachment: fixed;
}

/* 细颗粒噪点，压住渐变的塑料感 */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.app {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 22px 64px;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0 14px;
  background: linear-gradient(180deg, var(--bg1) 40%, rgba(14,11,20,0));
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: baseline; gap: 9px; }
.brand-cn {
  font-family: var(--serif);
  font-size: 21px; letter-spacing: .22em;
  color: var(--gold-hi);
  text-shadow: 0 0 22px rgba(201,160,99,.35);
}
.brand-en {
  font-size: 9.5px; letter-spacing: .3em;
  color: var(--muted); text-transform: uppercase;
}
.lang-switch {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; background: rgba(255,255,255,.02);
}
.lang-switch button {
  border: 0; background: none; cursor: pointer;
  font-family: var(--sans); font-size: 11px; letter-spacing: .06em;
  color: var(--muted); padding: 6px 11px;
  transition: color .2s, background .2s;
}
.lang-switch button.on { color: #14101A; background: var(--gold); font-weight: 600; }

/* ---------- 屏 ---------- */
.screen { animation: fadeUp .55s cubic-bezier(.2,.7,.3,1) both; }
.screen[hidden] { display: none; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 首页 ---------- */
.hero { padding: 26px 0 8px; text-align: center; }
.hero-seal {
  width: 62px; height: 62px; margin: 0 auto 26px;
  border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 26px; color: var(--gold);
  position: relative;
}
.hero-seal::before {
  content: ''; position: absolute; inset: 7px;
  border: 1px solid rgba(201,160,99,.22); border-radius: 50%;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 34px; line-height: 1.42; font-weight: 400;
  margin: 0 0 18px; letter-spacing: .04em;
  color: #F2ECE2;
}
.hero h1 em { font-style: normal; color: var(--gold-hi); }
.hero-desc {
  font-size: 13.5px; line-height: 2; color: var(--text-2);
  margin: 0 auto 30px; max-width: 340px;
}
.hero-points {
  list-style: none; padding: 0; margin: 0 0 34px;
  display: grid; gap: 11px; text-align: left;
  max-width: 320px; margin-inline: auto;
}
.hero-points li {
  font-size: 12.5px; color: var(--muted);
  padding-left: 20px; position: relative; line-height: 1.7;
}
.hero-points li::before {
  content: ''; position: absolute; left: 3px; top: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); opacity: .75;
}

/* ---------- 按钮 ---------- */
.btn {
  display: block; width: 100%;
  border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 14.5px; letter-spacing: .1em;
  padding: 16px 20px; border-radius: 999px;
  transition: transform .18s, box-shadow .25s, opacity .2s;
}
.btn:active { transform: scale(.985); }
.btn-primary {
  color: #14101A; font-weight: 600;
  background: linear-gradient(100deg, #E3C795, #C9A063 55%, #B08A4E);
  box-shadow: 0 10px 30px -10px rgba(201,160,99,.6), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:disabled { opacity: .35; box-shadow: none; cursor: not-allowed; }
.btn-ghost {
  color: var(--text-2); background: transparent;
  border: 1px solid var(--line); margin-top: 12px;
}
.btn-quiet {
  color: var(--muted); background: none; border: 0;
  font-size: 12.5px; letter-spacing: .06em;
  padding: 12px; width: 100%; cursor: pointer;
}

/* ---------- 上传 ---------- */
.sec-head { text-align: center; padding: 20px 0 24px; }
.sec-head h2 {
  font-family: var(--serif); font-size: 22px; font-weight: 400;
  margin: 0 0 10px; letter-spacing: .08em; color: #F0E9DE;
}
.sec-head p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.8; }

.up-actions { display: grid; gap: 10px; margin: 4px 0 16px; }
.up-actions .btn { width: 100%; }
.up-actions .btn-ghost { border-color: rgba(255,255,255,.1); }

.dropzone {
  display: block; cursor: pointer;
  border: 1px dashed rgba(201,160,99,.3);
  border-radius: 22px;
  padding: 34px 20px;
  text-align: center;
  background: radial-gradient(80% 80% at 50% 0%, rgba(201,160,99,.05), transparent 70%);
  transition: border-color .25s, background .25s;
}
.dropzone:active, .dropzone.hot { border-color: var(--gold); background: rgba(201,160,99,.06); }
.dz-icon { width: 46px; height: 46px; margin: 0 auto 16px; opacity: .85; }
.dz-title { font-size: 14px; color: var(--text); letter-spacing: .08em; margin-bottom: 8px; }
.dz-sub { font-size: 11.5px; color: var(--muted); }

.tips { margin: 26px 0 0; padding: 20px 18px; border-radius: var(--r);
  background: var(--card); border: 1px solid rgba(255,255,255,.045); }
.tips h3 { font-size: 12px; letter-spacing: .14em; color: var(--gold); margin: 0 0 14px; font-weight: 500; }
.tips ol { margin: 0; padding-left: 16px; }
.tips li { font-size: 12.5px; color: var(--text-2); line-height: 1.95; }

/* ---------- 扫描 ---------- */
.scan-wrap {
  position: relative; margin: 8px auto 0;
  border-radius: 20px; overflow: hidden;
  background: #0A0810;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.9);
}
.scan-wrap::before, .conf-preview::before {
  content: ''; position: absolute; inset: -12%; z-index: 0;
  background-image: var(--bgimg, none);
  background-size: cover; background-position: center;
  filter: blur(22px) saturate(.65) brightness(.55);
  opacity: .55;
}
.scan-wrap canvas, .conf-preview canvas { position: relative; z-index: 1; }
#scan-canvas { display: block; width: 100%; height: auto; }
.scan-line {
  position: absolute; left: 0; right: 0; height: 2px; z-index: 3;
  background: linear-gradient(90deg, transparent, var(--gold-hi), transparent);
  box-shadow: 0 0 24px 4px rgba(201,160,99,.55);
  animation: sweep 1.9s cubic-bezier(.5,0,.5,1) infinite;
}
@keyframes sweep {
  0% { top: 4%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 96%; opacity: 0; }
}
.scan-hud {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(60% 60% at 50% 50%, transparent 40%, rgba(7,6,11,.55));
  pointer-events: none;
}
.scan-status { text-align: center; padding: 22px 0 0; }
.scan-status .pct {
  font-family: var(--serif); font-size: 28px; color: var(--gold-hi);
  letter-spacing: .06em; margin-bottom: 6px;
}
.scan-steps { list-style: none; margin: 16px auto 0; padding: 0; max-width: 260px; }
.scan-steps li {
  font-size: 12px; color: var(--muted); line-height: 2.3;
  display: flex; align-items: center; gap: 10px;
  opacity: .35; transition: opacity .4s, color .4s;
}
.scan-steps li.done { opacity: .8; color: var(--text-2); }
.scan-steps li.now { opacity: 1; color: var(--gold); }
.scan-steps li i {
  width: 5px; height: 5px; border-radius: 50%; background: currentColor;
  flex: 0 0 auto;
}

/* ---------- 确认 ---------- */
.conf-preview {
  position: relative; border-radius: 18px; overflow: hidden;
  margin-bottom: 22px; background: #0A0810;
  display: flex; align-items: center; justify-content: center;
}
#conf-canvas { display: block; width: 100%; height: auto; }
.conf-badge {
  position: absolute; left: 12px; top: 12px; z-index: 3;
  font-size: 10px; letter-spacing: .1em;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(7,6,11,.7); border: 1px solid var(--line);
  color: var(--gold); backdrop-filter: blur(4px);
}
.conf-badge.low { color: var(--rose); border-color: rgba(185,122,131,.35); }

.group { margin-bottom: 12px; border: 1px solid rgba(255,255,255,.05); border-radius: var(--r); overflow: hidden; background: var(--card); }
.group-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px; cursor: pointer; user-select: none;
}
.group-head h3 {
  font-size: 12.5px; letter-spacing: .16em; margin: 0;
  color: var(--gold); font-weight: 500;
}
.group-head .chev { transition: transform .3s; color: var(--muted); font-size: 11px; }
.group.open .group-head .chev { transform: rotate(180deg); }
.group-body { display: none; padding: 0 14px 16px; }
.group.open .group-body { display: block; animation: fadeUp .35s both; }

.q { margin-bottom: 18px; }
.q:last-child { margin-bottom: 2px; }
.q-label {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 12px; color: var(--text-2); margin-bottom: 10px; letter-spacing: .04em;
}
.q-label small { font-size: 10px; color: var(--muted); letter-spacing: 0; }
.q-label .auto {
  font-size: 9px; letter-spacing: .08em; padding: 2px 7px; border-radius: 999px;
  background: rgba(110,156,136,.14); color: var(--jade); border: 1px solid rgba(110,156,136,.3);
}
/* 必填但还空着 —— 部分预判会刻意留白手型与指比，得让用户一眼看到缺哪两项 */
.q-label .manual {
  font-size: 9px; letter-spacing: .08em; padding: 2px 7px; border-radius: 999px;
  background: rgba(198,168,106,.10); color: var(--gold); border: 1px solid rgba(198,168,106,.28);
}

.opts { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.opts.one { grid-template-columns: 1fr; }
.opts.three { grid-template-columns: repeat(3, 1fr); }
.opt {
  position: relative; cursor: pointer;
  border: 1px solid rgba(255,255,255,.07); border-radius: 12px;
  background: rgba(255,255,255,.022);
  padding: 11px 12px; text-align: left;
  transition: border-color .2s, background .2s, transform .15s;
  display: flex; align-items: center; gap: 10px;
  min-height: 54px;
}
.opt:active { transform: scale(.98); }
.opt.on {
  border-color: rgba(201,160,99,.75);
  background: rgba(201,160,99,.09);
  box-shadow: inset 0 0 0 1px rgba(201,160,99,.18), 0 0 22px -8px rgba(201,160,99,.5);
}
.opt-txt { min-width: 0; }
.opt-name { font-size: 12.5px; color: var(--text); line-height: 1.4; }
.opt.on .opt-name { color: var(--gold-hi); }
.opt-sub { font-size: 10px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.opt-ico { flex: 0 0 auto; width: 30px; height: 30px; opacity: .8; }
.opt.on .opt-ico { opacity: 1; }

.opt-suggest::after {
  content: '·';
  position: absolute; right: 9px; top: 7px;
  color: var(--jade); font-size: 16px; line-height: 1;
}

.conf-foot { margin-top: 22px; }
.metrics {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 10.5px; color: var(--muted);
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.022); margin-bottom: 18px;
}
.metrics b { color: var(--text-2); font-weight: 500; }

/* ---------- 报告 ---------- */
.rep-hero {
  text-align: center; padding: 14px 0 26px;
  border-bottom: 1px solid rgba(255,255,255,.05); margin-bottom: 22px;
}
.rep-hand {
  font-family: var(--serif); font-size: 30px; color: var(--gold-hi);
  letter-spacing: .16em; margin-bottom: 8px;
}
.rep-tag { font-size: 11px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }

/* 判读来源标记 */
.rep-source { margin-top: 12px; display: flex; justify-content: center; }
.src-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.09);
  color: var(--muted); background: rgba(255,255,255,.022);
}
.src-pill::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; opacity: .8;
}
.src-pill.ai {
  color: var(--gold-hi); border-color: rgba(201,160,99,.34);
  background: rgba(201,160,99,.08);
}

/* 掌相师的第一眼（AI 观察） */
.ai-note {
  position: relative;
  margin: 0 0 24px; padding: 16px 18px 17px;
  border: 1px solid rgba(201,160,99,.20); border-radius: var(--r);
  background: linear-gradient(160deg, rgba(201,160,99,.075), rgba(201,160,99,.018));
  animation: fadeUp .5s both;
}
.ai-note::before {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px;
  border-radius: 2px; background: linear-gradient(180deg, var(--gold-hi), rgba(201,160,99,0));
}
.ai-note h4 {
  font-size: 10.5px; letter-spacing: .18em; font-weight: 500;
  color: var(--gold); margin: 0 0 9px; text-transform: uppercase;
}
.ai-note p {
  font-family: var(--serif); font-size: 13.5px; line-height: 2.05;
  color: var(--text-2); margin: 0; text-align: justify;
}

.rep-sum {
  font-family: var(--serif); font-size: 14px; line-height: 2.1;
  color: var(--text-2); margin: 20px auto 0; max-width: 330px;
}
.kw-row { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 20px; }
.kw {
  font-size: 11px; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--gold);
}

.traits { display: grid; gap: 10px; margin: 0 0 26px; padding: 18px 16px;
  border: 1px solid rgba(255,255,255,.05); border-radius: var(--r); background: var(--card); }
.traits h4 { font-size: 11px; letter-spacing: .16em; color: var(--muted); margin: 0 0 4px; font-weight: 500; }
.trait { display: flex; align-items: center; gap: 12px; }
.trait-name { font-size: 11.5px; color: var(--text-2); width: 52px; flex: 0 0 auto; }
.trait-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.trait-bar i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, rgba(201,160,99,.45), var(--gold-hi));
  width: 0; transition: width 1s cubic-bezier(.2,.7,.3,1);
}
.trait-val { font-size: 10.5px; color: var(--muted); width: 24px; text-align: right; }

.tabbar {
  display: flex; gap: 6px; overflow-x: auto; padding: 0 0 14px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tabbar::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; cursor: pointer;
  font-size: 11.5px; letter-spacing: .06em;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.02); color: var(--muted);
  transition: all .2s;
}
.tab.on { color: #14101A; background: var(--gold); border-color: var(--gold); font-weight: 600; }

.panel { animation: fadeUp .4s both; }
.panel h3 {
  font-family: var(--serif); font-size: 19px; font-weight: 400;
  color: var(--gold-hi); letter-spacing: .1em; margin: 4px 0 18px;
}
.panel p {
  font-size: 14px; line-height: 2.15; color: var(--text);
  margin: 0 0 16px; text-align: justify;
  letter-spacing: .01em;
}
.panel p:first-letter { color: var(--gold-hi); }
.evidence {
  margin-top: 22px; padding-top: 16px;
  border-top: 1px dashed rgba(201,160,99,.18);
  font-size: 10.5px; color: var(--muted); line-height: 1.9;
}
.evidence b { color: var(--gold); font-weight: 500; letter-spacing: .08em; margin-right: 6px; }

.advice {
  margin: 30px 0 0; padding: 22px 20px; border-radius: var(--r);
  border: 1px solid rgba(201,160,99,.22);
  background: linear-gradient(160deg, rgba(201,160,99,.07), transparent 70%);
  text-align: center;
}
.advice h4 { font-size: 10.5px; letter-spacing: .2em; color: var(--gold); margin: 0 0 12px; font-weight: 500; }
.advice p { font-family: var(--serif); font-size: 15px; line-height: 2; color: var(--text); margin: 0; }

.rep-foot { margin-top: 26px; }

/* ---------- 海报 ---------- */
.poster-wrap { text-align: center; padding: 6px 0 0; }
#poster-canvas {
  width: 100%; height: auto; border-radius: 14px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.9);
  background: #0B0912;
}

/* ---------- 杂项 ---------- */
.disclaimer {
  font-size: 10.5px; line-height: 1.95; color: #6A645C;
  text-align: center; margin: 36px auto 0; max-width: 340px;
}
.foot-rule {
  height: 1px; margin: 30px auto;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
  background: rgba(20,16,26,.95); border: 1px solid var(--line);
  color: var(--text); font-size: 12.5px; padding: 12px 20px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: all .3s; z-index: 999;
  backdrop-filter: blur(8px); max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.spinner {
  width: 26px; height: 26px; margin: 0 auto;
  border: 1.5px solid rgba(201,160,99,.2); border-top-color: var(--gold);
  border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 取景器 ---------- */
.cam-sheet {
  position: fixed; inset: 0; z-index: 500;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  animation: camIn .28s ease both;
}
@keyframes camIn { from { opacity: 0; } to { opacity: 1; } }
.cam-sheet[hidden] { display: none; }

#camVideo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;   /* 所见即所拍，避免 cover 裁切后手掌在成片里变小 */
  background: #000;
}

/* 取景遮罩：中间开窗，四周压暗 */
.cam-mask {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
/* 暗角：把注意力收到中央，同时让金色虚线在亮背景上也能看清 */
.cam-mask::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(56% 42% at 50% 50%, transparent 34%, rgba(0,0,0,.62) 100%);
}
.cam-guide {
  position: relative;
  width: 68vw; max-width: 300px; height: auto;
  filter: drop-shadow(0 0 10px rgba(0,0,0,.85));
}

.cam-top {
  position: absolute; top: 0; left: 0; right: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 16px;
  display: flex; align-items: flex-start; gap: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,.72), transparent);
}
.cam-close {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35); color: #EDE7DC;
  display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(6px);
}
.cam-close svg { width: 17px; height: 17px; }
.cam-hint {
  flex: 1; padding-top: 9px;
  font-size: 12px; line-height: 1.65; color: rgba(237,231,220,.82);
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
  text-align: center;
}
.cam-hint.warn { color: #E8B07A; }

.cam-bottom {
  position: absolute; left: 0; right: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 26px);
  display: flex; justify-content: center;
}
.cam-shot {
  width: 74px; height: 74px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.85);
  background: rgba(255,255,255,.1);
  display: grid; place-items: center; cursor: pointer;
  transition: transform .12s, background .2s;
}
.cam-shot i {
  display: block; width: 58px; height: 58px; border-radius: 50%;
  background: #F5F1E8;
  transition: transform .12s;
}
.cam-shot:active { transform: scale(.94); }
.cam-shot:active i { transform: scale(.9); }

@media (min-width: 720px) {
  .cam-guide { width: 240px; }
  .cam-hint { font-size: 13px; }
}

/* ---------- 付费墙 ---------- */
.pay-sheet {
  position: fixed; inset: 0; z-index: 600;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(8, 6, 12, .74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: payFade .22s ease both;
}
.pay-sheet[hidden] { display: none; }
@keyframes payFade { from { opacity: 0; } to { opacity: 1; } }

.pay-panel {
  position: relative;
  width: 100%; max-width: 460px;
  padding: 30px 22px calc(env(safe-area-inset-bottom, 0px) + 20px);
  border: 1px solid rgba(201, 160, 99, .22);
  border-bottom: none;
  border-radius: 26px 26px 0 0;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(201, 160, 99, .10), transparent 70%),
    linear-gradient(180deg, #191420, #0F0C14);
  box-shadow: 0 -18px 60px rgba(0, 0, 0, .6);
  animation: payUp .32s cubic-bezier(.2, .85, .2, 1) both;
}
@keyframes payUp { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (min-width: 720px) {
  .pay-sheet { align-items: center; }
  .pay-panel { border-radius: 26px; border-bottom: 1px solid rgba(201, 160, 99, .22); }
}

.pay-x {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(237, 231, 220, .14);
  background: rgba(255, 255, 255, .03);
  color: rgba(237, 231, 220, .72);
}
.pay-x svg { width: 15px; height: 15px; }

.pay-kicker {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: #C9A063;
}
.pay-title {
  margin: 9px 0 8px;
  font-size: 23px; line-height: 1.3; font-weight: 600;
  color: #F3EDE1;
  letter-spacing: .01em;
}
.pay-sub {
  margin: 0 0 4px;
  font-size: 13px; line-height: 1.75;
  color: rgba(237, 231, 220, .58);
}

.pay-plans { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 14px; }

.pay-plan {
  position: relative;
  display: flex; align-items: center; gap: 13px;
  width: 100%; text-align: left;
  padding: 14px 16px;
  border-radius: 16px; cursor: pointer;
  border: 1px solid rgba(201, 160, 99, .18);
  background: rgba(255, 255, 255, .022);
  color: inherit; font: inherit;
  transition: border-color .2s, background .2s, transform .12s;
}
.pay-plan:hover { border-color: rgba(201, 160, 99, .46); background: rgba(201, 160, 99, .05); }
.pay-plan:active { transform: scale(.988); }
.pay-plan.best { border-color: rgba(201, 160, 99, .5); background: rgba(201, 160, 99, .07); }
.pay-plan[disabled] { opacity: .5; cursor: default; }

.pay-plan-main { flex: 1; min-width: 0; }
.pay-plan-name {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: #F3EDE1;
}
.pay-badge {
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 999px;
  color: #1A1410; background: #C9A063;
  font-weight: 700;
}
.pay-plan-note {
  margin-top: 4px;
  font-size: 12px; color: rgba(237, 231, 220, .48);
}
.pay-plan-price { text-align: right; flex: 0 0 auto; }
.pay-plan-amount { font-size: 18px; font-weight: 600; color: #E4C48C; }
.pay-plan-per { margin-top: 3px; font-size: 11px; color: rgba(237, 231, 220, .42); }

.pay-foot {
  margin-top: 4px;
  font-size: 11px; line-height: 1.7;
  color: rgba(237, 231, 220, .34);
  text-align: center;
}
.pay-skip {
  display: block; width: 100%;
  margin-top: 14px; padding: 12px;
  border: none; background: none; cursor: pointer;
  font: inherit; font-size: 13px;
  color: rgba(237, 231, 220, .5);
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: rgba(237, 231, 220, .22);
}
.pay-skip:hover { color: rgba(237, 231, 220, .8); }

/* ---------- 法务链接 ---------- */
.site-foot {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 6px 16px;
  margin: 22px auto 8px;
  font-size: 11px;
}
.site-foot a,
.pay-legal a {
  color: rgba(237, 231, 220, .34);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-foot a:hover,
.pay-legal a:hover {
  color: #C9A063;
  border-bottom-color: rgba(201, 160, 99, .45);
}

.pay-legal {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
  color: rgba(237, 231, 220, .3);
}
