/* 塔罗之镜 · 样式表
 * 无外部资源、无字体请求、无图片：所有视觉元素用 CSS 绘制，可直接 file:// 打开。
 */

:root {
  --bg: #0a0918;
  --bg-2: #120f26;
  --panel: #171430;
  --panel-2: #1e1a3c;
  --line: rgba(217, 178, 106, 0.18);
  --line-soft: rgba(255, 255, 255, 0.08);
  --gold: #d9b26a;
  --gold-dim: #a8874a;
  --violet: #8b6cf0;
  --violet-dim: #5b46a8;
  --text: #ece8f8;
  --muted: #9c94bd;
  --muted-2: #6f688f;
  --ok: #5fd1a0;
  --danger: #e5736f;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(900px 520px at 12% -6%, rgba(139, 108, 240, 0.20), transparent 62%),
    radial-gradient(760px 460px at 92% 4%, rgba(217, 178, 106, 0.12), transparent 60%),
    radial-gradient(900px 700px at 50% 108%, rgba(91, 70, 168, 0.20), transparent 65%);
  background-attachment: fixed;
}

/* 细星点：纯 CSS，无图片 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 18% 22%, rgba(255,255,255,0.65), transparent),
    radial-gradient(1.2px 1.2px at 73% 12%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.6px 1.6px at 41% 68%, rgba(217,178,106,0.55), transparent),
    radial-gradient(1.1px 1.1px at 88% 57%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.3px 1.3px at 7% 84%, rgba(139,108,240,0.6), transparent),
    radial-gradient(1.1px 1.1px at 62% 91%, rgba(255,255,255,0.4), transparent);
  opacity: 0.7;
}

.wrap { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; padding: 28px 18px 64px; }

/* ---------- 顶栏 ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 19px; letter-spacing: 3px; color: var(--gold); }
.brand .mark {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 15px; color: var(--gold);
  background: radial-gradient(circle at 50% 40%, rgba(217,178,106,0.22), transparent 70%);
}
.topbar .mini { font-size: 12.5px; color: var(--muted-2); letter-spacing: 1px; }

/* ---------- 屏幕切换 ---------- */
.screen { display: none; animation: fade .5s ease both; }
.screen.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 通用 ---------- */
.panel {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 16px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: 1px; margin: 0 0 12px; }
h1 { font-size: 30px; line-height: 1.4; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.tiny { font-size: 12.5px; line-height: 1.65; }
.gold { color: var(--gold); }
.center { text-align: center; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 20px 0; }

.btn {
  appearance: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 15.5px; font-weight: 600; letter-spacing: 1px;
  padding: 14px 26px; border-radius: 999px; width: 100%;
  color: #17122b;
  background: linear-gradient(135deg, #e8c886, var(--gold) 55%, var(--gold-dim));
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
  box-shadow: 0 10px 26px rgba(217, 178, 106, 0.24);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; filter: grayscale(.4); }
.btn.ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line); box-shadow: none;
}
.btn.ghost:hover { background: rgba(255,255,255,0.05); }
.btn.violet { background: linear-gradient(135deg, #a48bff, var(--violet) 55%, var(--violet-dim)); color: #fff; box-shadow: 0 10px 26px rgba(139,108,240,0.28); }
.btn.small { padding: 10px 18px; font-size: 14px; width: auto; }

/* ---------- 落地页 ---------- */
.hero { text-align: center; padding: 26px 6px 8px; }
.hero .eyebrow { color: var(--gold); letter-spacing: 5px; font-size: 12px; margin-bottom: 14px; }
.hero h1 { font-size: 34px; margin-bottom: 14px; }
.hero .sub { color: var(--muted); max-width: 560px; margin: 0 auto 8px; }
.hero .candles { font-family: var(--serif); color: var(--gold); letter-spacing: 8px; margin: 18px 0 6px; font-size: 18px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0 4px; }
.chip {
  font-size: 12.5px; color: var(--muted);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 5px 13px;
  background: rgba(255,255,255,0.02);
}

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 7px; letter-spacing: .5px; }
.field input {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.28); border: 1px solid var(--line-soft);
  color: var(--text); font-size: 15px; font-family: var(--sans);
  outline: none; transition: border-color .16s ease;
}
.field input:focus { border-color: var(--gold-dim); }
.field .help { font-size: 12px; color: var(--muted-2); margin-top: 6px; }

.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.topic {
  cursor: pointer; text-align: center; padding: 14px 6px 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.02); transition: all .18s ease;
}
.topic:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.topic .g { font-size: 22px; color: var(--gold); display: block; margin-bottom: 6px; }
.topic .t { font-size: 14px; }
.topic.on {
  border-color: var(--gold); background: rgba(217,178,106,0.10);
  box-shadow: 0 0 0 1px rgba(217,178,106,0.35) inset;
}

/* ---------- 洗牌 ---------- */
.shuffle-stage { display: grid; place-items: center; min-height: 340px; }
.shuffle-stack { position: relative; width: 104px; height: 168px; }
.shuffle-stack span {
  position: absolute; inset: 0; border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #241d4a, #150f2e);
  box-shadow: 0 10px 24px rgba(0,0,0,.5);
  animation: riffle 1.6s ease-in-out infinite;
}
.shuffle-stack span:nth-child(2) { animation-delay: .18s; }
.shuffle-stack span:nth-child(3) { animation-delay: .36s; }
.shuffle-stack span:nth-child(4) { animation-delay: .54s; }
.shuffle-stack span::after {
  content: "✦"; position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(217,178,106,.5); font-size: 20px;
}
@keyframes riffle {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  30% { transform: translate(-26px, -6px) rotate(-7deg); }
  60% { transform: translate(24px, 4px) rotate(6deg); }
}
.shuffle-text { color: var(--muted); letter-spacing: 3px; margin-top: 30px; font-size: 14px; }
.dots::after { content: ""; animation: dots 1.4s steps(4, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "·"; } 50% { content: "··"; } 75% { content: "···"; } }

/* ---------- 抽牌 ---------- */
.pick-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 9px; }
.pick-card {
  position: relative; aspect-ratio: 5 / 8; cursor: pointer; border: none; padding: 0;
  border-radius: 9px; background: linear-gradient(160deg, #241d4a, #140f2c);
  border: 1px solid rgba(217,178,106,.22);
  box-shadow: 0 6px 16px rgba(0,0,0,.45);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  display: grid; place-items: center; color: rgba(217,178,106,.55); font-size: 17px;
}
.pick-card:hover { transform: translateY(-6px); box-shadow: 0 14px 26px rgba(0,0,0,.6); }
.pick-card.picked {
  transform: translateY(-10px) scale(1.03);
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(217,178,106,.55), 0 16px 30px rgba(0,0,0,.6);
  color: var(--gold);
}
.pick-card.picked::after {
  content: attr(data-order);
  position: absolute; top: -8px; right: -8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: #17122b; font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
.pick-card.dimmed { opacity: .35; }

/* ---------- 翻牌 + 报告 ---------- */
.hand { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.flip { perspective: 1200px; }
.flip-inner { position: relative; width: 100%; aspect-ratio: 5 / 8; transform-style: preserve-3d; transition: transform .85s cubic-bezier(.2,.7,.2,1); }
.flip.on .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden; border-radius: 12px;
  display: grid; place-items: center; border: 1px solid var(--line);
  padding: 8px; text-align: center;
}
.flip-back { background: linear-gradient(160deg, #241d4a, #140f2c); color: rgba(217,178,106,.55); font-size: 22px; }
.flip-front {
  transform: rotateY(180deg);
  background: linear-gradient(170deg, #211b44, #151030);
  border-color: rgba(217,178,106,.4);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.flip-front .glyph { font-size: 26px; color: var(--gold); }
.flip-front .nm { font-family: var(--serif); font-size: 13.5px; letter-spacing: 1px; }
.flip-front .en { font-size: 9.5px; color: var(--muted-2); letter-spacing: .5px; }
.flip-front .el { font-size: 10.5px; color: var(--muted); }
.badge-rv {
  position: absolute; top: 6px; left: 6px;
  font-size: 10px; padding: 1px 6px; border-radius: 999px;
  background: rgba(229,115,111,.16); color: var(--danger); border: 1px solid rgba(229,115,111,.35);
}

.score-row { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.score-ring {
  width: 92px; height: 92px; flex: 0 0 92px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--gold) 0deg, rgba(255,255,255,.07) 0deg);
}
.score-ring::after {
  content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--panel);
}
.score-ring .val { position: relative; z-index: 1; text-align: center; line-height: 1.1; }
.score-ring .val b { display: block; font-size: 26px; font-family: var(--serif); color: var(--gold); }
.score-ring .val i { font-style: normal; font-size: 10px; color: var(--muted-2); letter-spacing: 1px; }

.card-read { border-left: 2px solid var(--line); padding: 2px 0 2px 14px; margin-bottom: 16px; }
.card-read .pos { font-size: 12px; color: var(--muted-2); letter-spacing: 1px; }
.card-read .nm { font-family: var(--serif); font-size: 16px; color: var(--text); margin: 2px 0 6px; }
.card-read .nm span.kw { color: var(--gold); font-size: 13px; margin-left: 6px; }
.card-read .tx { color: var(--muted); font-size: 15px; }

.quote {
  border-radius: var(--radius-sm); padding: 16px 18px;
  background: rgba(139,108,240,.08); border: 1px solid rgba(139,108,240,.22);
}
.quote p:last-child { margin-bottom: 0; }

/* ---------- 进度条 + 锁定 ---------- */
.progress-wrap { margin: 22px 0 6px; }
.progress-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted-2); margin-bottom: 8px; letter-spacing: .5px; }
.progress { height: 7px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--violet), var(--gold)); transition: width 1.5s cubic-bezier(.2,.8,.2,1); }
.progress-note { font-size: 12px; color: var(--gold-dim); margin-top: 8px; }

.locked-list { margin-top: 20px; display: grid; gap: 12px; }
.locked-module {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  background: rgba(255,255,255,.018); padding: 16px;
}
.locked-module .lm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.locked-module .lm-icon { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(217,178,106,.12); color: var(--gold); font-size: 15px; }
.locked-module .lm-title { font-family: var(--serif); font-size: 15.5px; }
.locked-module .lm-teaser { font-size: 13.5px; color: var(--muted); }
.locked-module .lm-body {
  margin-top: 10px; font-size: 14px; color: var(--muted);
  filter: blur(5.5px); user-select: none; pointer-events: none; opacity: .6;
}
.locked-module .lock-flag {
  position: absolute; right: 12px; top: 12px; font-size: 11px; color: var(--gold-dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px;
  background: rgba(10,9,24,.7);
}

.cta-block { margin-top: 20px; text-align: center; }
.cta-block .pitch { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.safety { font-size: 12px; color: var(--muted-2); margin-top: 12px; }

/* ---------- 定价 ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.plan {
  position: relative; cursor: pointer; text-align: center; padding: 20px 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.02); transition: all .18s ease;
}
.plan:hover { transform: translateY(-3px); border-color: var(--gold-dim); }
.plan.on { border-color: var(--gold); background: rgba(217,178,106,.09); box-shadow: 0 0 0 1px rgba(217,178,106,.4) inset; }
.plan .tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #e8c886, var(--gold-dim)); color: #17122b;
  font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap;
}
.plan .pname { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.plan .price { font-family: var(--serif); font-size: 27px; color: var(--gold); line-height: 1.2; }
.plan .price small { font-size: 14px; }
.plan .was { font-size: 12px; color: var(--muted-2); text-decoration: line-through; }
.plan ul { list-style: none; padding: 0; margin: 12px 0 0; text-align: left; font-size: 12.5px; color: var(--muted); }
.plan ul li { margin-bottom: 5px; padding-left: 15px; position: relative; }
.plan ul li::before { content: "✦"; position: absolute; left: 0; color: var(--gold-dim); font-size: 10px; top: 3px; }

.countdown {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--gold);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  background: rgba(217,178,106,.07);
}
.countdown b { font-family: var(--serif); letter-spacing: 1px; }

.pay-methods { display: flex; gap: 10px; margin: 16px 0; }
.pay-methods .pm {
  flex: 1; text-align: center; cursor: pointer; padding: 11px 6px; font-size: 13.5px;
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: rgba(255,255,255,.02);
}
.pay-methods .pm.on { border-color: var(--gold); background: rgba(217,178,106,.10); color: var(--gold); }

.demo-note {
  margin-top: 14px; font-size: 12px; color: var(--muted-2);
  border: 1px dashed rgba(217,178,106,.28); border-radius: var(--radius-sm);
  padding: 10px 12px; background: rgba(217,178,106,.04);
}

/* ---------- 完整报告 ---------- */
.full-module { border-top: 1px solid var(--line-soft); padding-top: 18px; margin-top: 18px; }
.full-module:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.full-module .fm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.full-module .fm-icon { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(139,108,240,.14); color: #b9a6ff; font-size: 15px; }
.full-module .fm-body { white-space: pre-line; color: var(--text); font-size: 15px; }
.full-module .fm-body .fine { color: var(--muted); }

.upsell {
  margin-top: 18px; padding: 18px; border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(139,108,240,.14), rgba(217,178,106,.08));
  border: 1px solid rgba(139,108,240,.25);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.upsell .u-text { flex: 1 1 240px; }
.upsell .u-text b { font-family: var(--serif); display: block; margin-bottom: 4px; }

.share-box { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.share-box .btn { flex: 1 1 150px; }

/* 锁定模块的正文要保留换行 */
.locked-module .lm-body { white-space: pre-line; }

/* 支付成功勾选 */
.big-check {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px;
  background: rgba(95, 209, 160, .14); color: var(--ok);
  border: 1px solid rgba(95, 209, 160, .35);
}

/* ---------- 遮罩 / 弹层 ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; display: none;
  background: rgba(6,5,16,.86); backdrop-filter: blur(6px);
  place-items: center; padding: 20px;
}
.overlay.active { display: grid; }
.overlay .box {
  width: 100%; max-width: 380px; text-align: center;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow);
}
.spinner {
  width: 42px; height: 42px; margin: 0 auto 16px; border-radius: 50%;
  border: 2px solid rgba(217,178,106,.2); border-top-color: var(--gold);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.qr {
  width: 168px; height: 168px; margin: 14px auto; border-radius: 12px;
  background:
    repeating-conic-gradient(rgba(255,255,255,.9) 0 25%, transparent 0 50%) 0 0/16px 16px,
    #fff;
  border: 8px solid #fff; opacity: .92;
}
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: rgba(20,17,42,.96); border: 1px solid var(--line);
  color: var(--text); font-size: 13.5px; padding: 11px 18px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 80;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 页脚 ---------- */
.footer { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted-2); line-height: 1.8; }
.footer b { color: var(--muted); }

/* ---------- 响应式 ---------- */
@media (max-width: 620px) {
  .wrap { padding: 20px 14px 52px; }
  h1 { font-size: 25px; }
  .hero h1 { font-size: 27px; }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 7px; }
  .hand { gap: 8px; }
  .score-row { gap: 14px; }
  .score-ring { width: 78px; height: 78px; flex-basis: 78px; }
  .score-ring .val b { font-size: 22px; }
}
