/* ================================================================
   命运之轮 Wheel of Fortune · 暗黑神秘风主题
   配色：深紫基底 #1a0a1e / #2d1b3d · 金色 #d4af37 / #c9a84c
   ================================================================ */

:root {
  --bg0: #1a0a1e;
  --bg1: #2d1b3d;
  --bg2: #241232;
  --gold: #d4af37;
  --gold2: #c9a84c;
  --gold-soft: rgba(212, 175, 55, 0.32);
  --gold-faint: rgba(212, 175, 55, 0.12);
  --txt: #ece6f4;
  --muted: #a99fb8;
  --muted2: #7c7190;
  --cream: #f4ecd9;
  --line: rgba(212, 175, 55, 0.22);
  --danger: #e08a8a;
  --ok: #9ad4a8;
  --radius: 16px;
  --font-sans: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', '思源黑体', system-ui, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--txt);
  background:
    radial-gradient(1200px 700px at 50% -12%, #341c46 0%, transparent 62%),
    radial-gradient(900px 600px at 108% 108%, #22122f 0%, transparent 55%),
    radial-gradient(700px 500px at -8% 92%, #2c163a 0%, transparent 50%),
    linear-gradient(160deg, var(--bg0) 0%, var(--bg1) 46%, var(--bg0) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  overflow-x: hidden;
}

/* 防盗：禁选（输入框除外） */
body, body * { user-select: none; -webkit-user-select: none; }
input, textarea, [contenteditable] { user-select: text; -webkit-user-select: text; }

/* 星尘背景（两层静态 + 微动） */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 68%, rgba(212,175,55,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 57% 18%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 71% 47%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 84% 76%, rgba(212,175,55,.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 88%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 12%, rgba(255,255,255,.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 44% 42%, rgba(255,255,255,.22) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 8% 55%, rgba(212,175,55,.3) 50%, transparent 51%);
  animation: twinkle 9s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }

a { color: var(--gold); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; letter-spacing: .02em; }

::selection { background: rgba(212,175,55,.35); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg0); }
::-webkit-scrollbar-thumb { background: #4a3557; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold2); }

.container { width: min(1120px, 94vw); margin: 0 auto; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .72em 1.55em; border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s;
  letter-spacing: .04em;
}
.btn:active { transform: scale(.965); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-gold {
  background: linear-gradient(135deg, #ecd27c 0%, var(--gold) 48%, #a8842a 100%);
  color: #251228; font-weight: 700; box-shadow: 0 8px 26px rgba(212, 175, 55, .28);
}
.btn-gold:hover { filter: brightness(1.08); box-shadow: 0 10px 32px rgba(212, 175, 55, .42); transform: translateY(-1px); }
.btn-ghost { border-color: var(--gold-soft); color: var(--gold); background: transparent; }
.btn-ghost:hover { background: var(--gold-faint); border-color: var(--gold); }
.btn-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255,255,255,.14); color: var(--txt); }
.btn-dark:hover { background: rgba(255,255,255,.11); }
.btn-plain { background: none; color: var(--muted); padding: .4em .8em; }
.btn-plain:hover { color: var(--txt); }
.btn-sm { padding: .5em 1.1em; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-danger-ghost { border-color: rgba(224,138,138,.4); color: var(--danger); background: transparent; }
.btn-danger-ghost:hover { background: rgba(224,138,138,.12); }

/* ---------- 顶部导航 ---------- */
#site-header {
  position: sticky; top: 0; z-index: 90;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(22, 9, 26, .62);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.h-logo { display: flex; align-items: center; gap: 10px; cursor: pointer; border: 0; background: none; color: inherit; font-family: inherit; min-width: 0; }
.h-logo svg { width: 30px; height: 30px; flex: none; }
.h-logo .name { font-size: 20px; font-weight: 700; letter-spacing: .12em; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-logo .name em { font-style: normal; color: var(--gold); }
.h-nav { display: flex; align-items: center; gap: 6px; }
.nav-btn {
  background: none; border: 0; color: var(--muted); cursor: pointer; font-family: inherit;
  font-size: 14.5px; padding: .55em .9em; border-radius: 10px; transition: color .2s, background .2s; letter-spacing: .06em;
}
.nav-btn:hover { color: var(--gold); background: var(--gold-faint); }
#acct-chip {
  display: inline-flex; align-items: center; gap: .5em; padding: .5em 1em;
  border: 1px solid var(--gold-soft); border-radius: 999px; color: var(--gold);
  font-size: 13.5px; cursor: pointer; background: rgba(212,175,55,.08); transition: background .2s, transform .2s;
}
#acct-chip:hover { background: rgba(212,175,55,.16); transform: translateY(-1px); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid transparent;
  background: rgba(255,255,255,.05); color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: .2s; font-size: 15px;
}
.icon-btn:hover { color: var(--gold); border-color: var(--gold-soft); background: var(--gold-faint); }

/* ---------- 视图切换 ---------- */
.view { display: none; animation: viewIn .5s ease both; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
section { padding: 34px 0; }

/* ================================================================
   首页
   ================================================================ */
.hero { text-align: center; padding: 26px 0 10px; position: relative; }
.hero-en {
  font-family: var(--font-serif); font-size: clamp(15px, 2.4vw, 21px);
  letter-spacing: .55em; color: var(--gold2); text-transform: uppercase; margin-bottom: 18px;
  text-shadow: 0 0 18px rgba(212,175,55,.35);
}
.hero h1 {
  font-size: clamp(44px, 9vw, 92px); font-weight: 800; letter-spacing: .28em; color: var(--txt);
  text-shadow: 0 0 42px rgba(255,255,255,.14), 0 6px 30px rgba(0,0,0,.5);
  white-space: nowrap;   /* “命运之轮”四个字恒在同一行 */
}
.hero h1 i { font-style: normal; }
.hero-sub { margin-top: 12px; color: var(--muted); font-size: 15px; letter-spacing: .1em; }

/* 金色轮盘 */
#wheel-zone { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 26px 0 4px; }
.wheel-wrap { position: relative; width: min(64vw, 380px); aspect-ratio: 1; filter: drop-shadow(0 0 34px rgba(212,175,55,.22)); }
.wheel-wrap svg { width: 100%; height: 100%; display: block; animation: spinSlow 90s linear infinite; }
.wheel-wrap:hover svg { animation-play-state: paused; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.wheel-glow { position: absolute; inset: -11%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(212,175,55,.16) 0%, transparent 66%);
  animation: breathe 5s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(.96); opacity: .7; } to { transform: scale(1.04); opacity: 1; } }

.slogan {
  font-family: var(--font-serif); font-size: clamp(24px, 5vw, 40px); color: var(--gold);
  letter-spacing: .3em; text-shadow: 0 0 26px rgba(212,175,55,.5); text-align: center;
}
.slogan small { display: block; font-family: var(--font-sans); font-size: 12.5px; letter-spacing: .22em; color: var(--muted2); margin-top: 12px; }
.hero-cta { margin-top: 20px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.compliance-strip { text-align: center; color: var(--muted2); font-size: 12.5px; padding: 10px 0 4px; letter-spacing: .06em; }

/* 分隔装饰 */
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 18px auto 6px; }
.divider::before, .divider::after { content: ''; height: 1px; width: min(180px, 24vw); background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); }
.divider i { font-size: 14px; opacity: .85; }
.sec-title { text-align: center; font-size: clamp(24px, 4.5vw, 34px); letter-spacing: .16em; color: var(--txt); }
.sec-title small { display: block; font-size: 13px; color: var(--muted); letter-spacing: .28em; margin-top: 10px; font-weight: 400; }

/* 牌阵分组 */
.spread-group { margin-bottom: 40px; }
.group-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.group-head h3 { font-size: 20px; color: var(--gold); letter-spacing: .14em; font-weight: 600; }
.group-head .g-en { font-family: var(--font-serif); color: var(--muted2); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; }
.group-head .g-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-faint), transparent); }
.spread-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }

.spread-card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px 18px; cursor: pointer; overflow: hidden;
  background: linear-gradient(165deg, rgba(45,27,61,.72), rgba(26,10,30,.9));
  transition: transform .22s ease, border-color .22s ease, box-shadow .3s ease;
  text-align: left;
}
.spread-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0; transition: opacity .3s;
}
.spread-card:hover { transform: translateY(-5px); border-color: var(--gold-soft); box-shadow: var(--shadow-soft); }
.spread-card:hover::before { opacity: 1; }
.sc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.sc-icon {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--gold);
  background: radial-gradient(circle at 30% 25%, rgba(212,175,55,.24), rgba(212,175,55,.05));
  border: 1px solid var(--gold-faint);
}
.sc-name { font-size: 19px; font-weight: 700; letter-spacing: .1em; color: var(--txt); }
.sc-en { font-family: var(--font-serif); font-size: 12px; color: var(--muted2); letter-spacing: .22em; text-transform: uppercase; }
.sc-count { font-size: 12.5px; color: var(--gold); }
.sc-fit { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-bottom: 8px; }
.sc-fit b { color: var(--cream); font-weight: 500; }
.sc-cta { font-size: 13px; color: var(--gold); display: inline-flex; gap: .4em; align-items: center; }
.sc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tag { font-size: 11.5px; padding: .2em .8em; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); color: var(--muted); letter-spacing: .06em; }
.tag.gold { border-color: var(--gold-faint); color: var(--gold); }

/* 信任条 / FAQ */
.info-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 8px; }
.info-item { border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 18px; background: rgba(255,255,255,.025); }
.info-item i { color: var(--gold); font-size: 18px; margin-bottom: 10px; }
.info-item h4 { font-size: 15px; letter-spacing: .08em; margin-bottom: 6px; }
.info-item p { font-size: 13px; color: var(--muted); }

.faq details { border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; background: rgba(255,255,255,.02); }
.faq summary { cursor: pointer; font-weight: 600; letter-spacing: .05em; color: var(--cream); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: '▾'; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq p { color: var(--muted); font-size: 14px; margin-top: 10px; line-height: 1.9; }

/* ================================================================
   抽牌界面
   ================================================================ */
.draw-top { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.draw-title { font-size: clamp(22px, 4vw, 30px); letter-spacing: .12em; }
.draw-title small { display: block; font-size: 12.5px; color: var(--muted); letter-spacing: .3em; margin-top: 4px; font-weight: 400; }
.draw-note {
  text-align: center; padding: 26px 10px 6px; font-size: clamp(17px, 3.4vw, 21px);
  color: var(--cream); letter-spacing: .1em; animation: pulseTxt 3s ease-in-out infinite alternate;
}
@keyframes pulseTxt { from { opacity: .82; } to { opacity: 1; } }
.draw-note i { color: var(--gold); margin-right: .4em; }
.draw-subnote { text-align: center; color: var(--muted2); font-size: 13px; margin-top: 8px; letter-spacing: .14em; }

/* 牌桌 */
.deal-zone { margin-top: 18px; }
.deal-stage {
  position: relative; min-height: clamp(340px, 56vh, 560px);
  background:
    radial-gradient(600px 300px at 50% 78%, rgba(212,175,55,.07), transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.03), transparent 65%);
  border: 1px solid rgba(212,175,55,.14); border-radius: 22px;
  overflow: hidden;
}
.deal-stage::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(212,175,55,.1) 1px, transparent 1.4px);
  background-size: 26px 26px; opacity: .4;
}
.deck-spot {
  position: absolute; left: 50%; bottom: -60px; transform: translateX(-50%);
  width: 74px; height: 104px; border-radius: 9px; z-index: 1;
  background: repeating-linear-gradient(45deg, #241232 0 6px, #2c1a3c 6px 12px);
  border: 1px solid rgba(212,175,55,.6); box-shadow: 0 10px 24px rgba(0,0,0,.5);
}
.slot-tag {
  position: absolute; transform: translate(-50%, 0); z-index: 0;
  font-size: 11.5px; letter-spacing: .18em; color: var(--muted2); text-align: center; pointer-events: none;
  text-shadow: 0 1px 6px #000;
}
.slot-tag b { display: block; color: var(--muted); font-weight: 500; font-size: 12px; letter-spacing: .1em; }

/* 塔罗牌 3D 元素 */
.tcard { position: absolute; z-index: 3; width: var(--cw, 92px); height: calc(var(--cw, 92px) * 1.4);
  perspective: 900px; transform-style: preserve-3d; will-change: transform;
  box-shadow: 0 0 calc(var(--glow-on, 0) * 26px) calc(var(--glow-on, 0) * 10px) rgba(212, 175, 55, .55); }
.tcard-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; will-change: transform; transition: transform .62s cubic-bezier(.3,1.1,.4,1); }
.tcard.flipped .tcard-inner { transform: rotateY(180deg); }
.tcard-face, .tcard-back {
  position: absolute; inset: 0; border-radius: 9px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.tcard-back {
  background: radial-gradient(circle at 50% 42%, #4a2f63 0%, #241232 68%);
  border: 1px solid rgba(212,175,55,.62); box-shadow: 0 8px 22px rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
}
.tcard-back::before { content: ''; position: absolute; inset: 9%; border: 1px solid rgba(212,175,55,.4); border-radius: 5px;
  background: repeating-conic-gradient(from 0deg, rgba(212,175,55,.06) 0deg 5deg, transparent 5deg 22.5deg); }
.tcard-back::after { content: '✦'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: calc(var(--cw, 92px) * .42); color: rgba(212,175,55,.85); text-shadow: 0 0 14px rgba(212,175,55,.6); }
.tcard-face { transform: rotateY(180deg); background: linear-gradient(155deg, #f6efdc 0%, #e8dcc0 100%); color: #3a2a1a;
  border: 1px solid #b8a06a; box-shadow: 0 8px 22px rgba(0,0,0,.5); display: flex; flex-direction: column; }
.face-art { position: relative; flex: 1; margin: 7px; border-radius: 12px; overflow: hidden;
  background: radial-gradient(circle at 50% 32%, #3b2146 0%, #241232 68%, #150a1c 100%);
  border: 1px solid rgba(212,175,55,.55); }
.face-art img { width: 100%; height: 100%; object-fit: cover; }
.face-glyph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.face-glyph .fg-sym { font-size: calc(var(--cw, 92px) * .4); color: #d4af37; line-height: 1; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.face-glyph .fg-suit { font-size: calc(var(--cw, 92px) * .5); color: #d4af37; line-height: 1; }
.face-glyph .fg-letter { font-family: 'Cormorant Garamond', Georgia, serif; font-size: calc(var(--cw, 92px) * .5); font-weight: 600; color: #d4af37; line-height: 1; }
/* 站内自产牌图：铺满牌面，加载成功后隐藏符号兜底 */
.tcard-face img.rws { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; z-index: 2; border-radius: 12px; }
.tcard-face img.rws.loaded + .face-glyph { display: none; }
/* 秘仪组（右上）与正逆位（顶中）角标：代码精确渲染 */
.arc-tag { position: absolute; top: 6px; right: 6px; font-size: calc(var(--cw, 92px) * .078); font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: .12em; color: #8a6d2f; text-transform: uppercase; }
.ori-tag { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); font-size: calc(var(--cw, 92px) * .068);
  letter-spacing: .08em; color: #8a6d2f; white-space: nowrap; }
.face-name { position: absolute; left: 4px; right: 4px; bottom: 3px; text-align: center; font-weight: 700;
  font-size: clamp(9px, 1.6vw, 13px); letter-spacing: .05em; color: #4a3414; text-shadow: 0 1px 0 rgba(255,255,255,.5); white-space: nowrap; overflow: hidden; }
.face-en { position: absolute; top: 4px; left: 6px; right: 6px; text-align: center; font-family: var(--font-serif);
  font-size: calc(var(--cw, 92px) * .1); letter-spacing: .12em; color: #9c7f43; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.tcard .corner { position: absolute; font-size: calc(var(--cw, 92px) * .18); line-height: 1; color: #7a5c22; }
.corner.tl { top: 5px; left: 5px; }
.corner.br { bottom: 5px; right: 5px; transform: rotate(180deg); }

.ori-badge {
  position: absolute; z-index: 4; left: 50%; bottom: -8px; transform: translateX(-50%);
  padding: 2px 12px; border-radius: 999px; font-size: 11.5px; letter-spacing: .22em; white-space: nowrap;
  background: rgba(20,8,26,.92); border: 1px solid var(--gold-soft); color: var(--gold);
  box-shadow: 0 4px 14px rgba(0,0,0,.5); pointer-events: none;
}
.ori-badge.rev { color: #cfb7ea; border-color: rgba(207,183,234,.4); }

.spark { position: fixed; z-index: 200; pointer-events: none; animation: sparkFly .9s ease-out forwards; }
@keyframes sparkFly { to { transform: translateY(-46px) scale(.2); opacity: 0; } }

/* 翻牌提示条 */
#flip-hint { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 16px; letter-spacing: .16em; animation: pulseTxt 2.6s infinite alternate; }
#flip-hint b { color: var(--gold); }
.draw-actions { display: flex; justify-content: center; gap: 14px; padding: 20px 0 8px; flex-wrap: wrap; }
.draw-actions .btn { font-size: 16px; padding: .85em 2.2em; }

/* 亲手选牌：牌背扇形堆（居中；小屏可横向滑动） */
.draw-fan-wrap {
  position: absolute; left: 0; right: 0; bottom: 24px; z-index: 6;
  display: flex; justify-content: center;
}
.draw-fan {
  display: flex; gap: 10px; max-width: 100%;
  overflow-x: auto; padding: 8px 14px;
  scroll-snap-type: x proximity; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.draw-fan::-webkit-scrollbar { display: none; }
.draw-fan .fan-card {
  flex: none; scroll-snap-align: center;
  transition: transform .25s ease, opacity .35s ease, box-shadow .25s ease;
}
.draw-fan .fan-card.picked { opacity: 0; pointer-events: none; transform: scale(.7) translateY(10px); }
.draw-fan.fade .fan-card { opacity: 0; pointer-events: none; transform: scale(.92); }

/* ================================================================
   解读结果
   ================================================================ */
.r-head { text-align: center; margin-bottom: 6px; }
.r-badge { display: inline-block; padding: .3em 1.1em; border-radius: 999px; font-size: 12px; letter-spacing: .2em;
  border: 1px solid var(--gold-soft); color: var(--gold); background: rgba(212,175,55,.08); margin-bottom: 14px; }
.r-badge.pro { background: linear-gradient(120deg, rgba(212,175,55,.22), rgba(212,175,55,.08)); }
.r-head h2 { font-size: clamp(24px, 4.6vw, 34px); letter-spacing: .18em; }
.r-meta { color: var(--muted2); font-size: 13px; margin-top: 6px; letter-spacing: .1em; }
.r-question { font-size: 14.5px; color: var(--cream); background: rgba(212,175,55,.07); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 18px; margin: 16px auto; max-width: 720px; letter-spacing: .04em; }
.r-question b { color: var(--gold); }

.r-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 22px 0 10px; }
.r-card { width: 112px; }
.r-card .mini-card { border-radius: 8px; overflow: hidden; border: 1px solid rgba(212,175,55,.5); box-shadow: 0 10px 26px rgba(0,0,0,.5); }
.r-card .pos { text-align: center; font-size: 11.5px; color: var(--gold); letter-spacing: .12em; margin-top: 8px; }
.r-card .cname { text-align: center; font-size: 13px; margin-top: 2px; letter-spacing: .06em; }
.r-card .cori { text-align: center; font-size: 11px; color: var(--muted); margin-top: 2px; }

.r-paper {
  max-width: 780px; margin: 26px auto 0; padding: 28px 30px; border-radius: 18px;
  background: linear-gradient(170deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.1);
}
.md-h { font-size: 16px; letter-spacing: .12em; color: var(--gold); margin: 18px 0 8px; display: flex; gap: 8px; align-items: center; }
.md-h:first-child { margin-top: 0; }
.md-h::before { content: '◆'; font-size: 10px; }
.r-paper p { color: #d9d2e4; font-size: 15px; line-height: 2; margin-bottom: 6px; }
.md-li { color: #c9c1d8; }
.r-paper strong { color: var(--gold); }
.ai-footer-note {
  margin-top: 16px; padding-top: 12px; border-top: 1px dashed rgba(212,175,55,.3);
  color: var(--muted2); font-size: 12.5px; text-align: center; letter-spacing: .08em;
}
.ai-tagline { text-align: center; color: var(--gold); font-size: 13px; letter-spacing: .2em; margin: 10px 0 0; }

.r-actions { display: flex; justify-content: center; gap: 12px; margin: 26px 0 8px; flex-wrap: wrap; }

/* 追问聊天 */
.chat-box { max-width: 780px; margin: 22px auto 0; }
.chat-box h4 { color: var(--gold); letter-spacing: .18em; font-size: 16px; margin-bottom: 4px; }
.chat-sub { color: var(--muted2); font-size: 12.5px; margin-bottom: 12px; }
.chat-log { display: flex; flex-direction: column; gap: 10px; max-height: 330px; overflow-y: auto; padding: 4px 2px; }
.msg { max-width: 82%; padding: 11px 16px; border-radius: 15px; font-size: 14px; line-height: 1.85; animation: viewIn .35s ease both; }
.msg.user { align-self: flex-end; background: linear-gradient(135deg, #3d2b55, #2c1a3c); border: 1px solid rgba(255,255,255,.12); }
.msg.ai { align-self: flex-start; background: rgba(212,175,55,.1); border: 1px solid var(--gold-faint); color: #e2dbee; }
.chat-input-row { display: flex; gap: 10px; margin-top: 12px; }
.chat-input-row input { flex: 1; }
.chat-input-row .btn { flex: none; }
#chat-left { color: var(--muted2); font-size: 12px; margin-top: 8px; }

/* 反馈 */
.feedback-box { max-width: 780px; margin: 20px auto 0; border: 1px dashed rgba(212,175,55,.3); border-radius: 14px; padding: 16px 18px; }
.feedback-box h4 { font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: .1em; margin-bottom: 10px; }
.fb-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.fb-row textarea { flex: 1; min-width: 220px; }
.fb-emoji { display: flex; gap: 4px; }
.fb-emoji button { font-size: 20px; width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: rgba(255,255,255,.05); cursor: pointer; filter: grayscale(.9); opacity: .55; transition: .2s; }
.fb-emoji button.on { filter: none; opacity: 1; border-color: var(--gold-soft); background: rgba(212,175,55,.14); }
#fb-status { font-size: 12.5px; color: var(--ok); margin-top: 8px; min-height: 1.2em; }

/* ================================================================
   会员账户
   ================================================================ */
.acct-panel { max-width: 820px; margin: 0 auto; }
.acct-hero { border: 1px solid var(--line); border-radius: 18px; padding: 24px; text-align: center;
  background: radial-gradient(400px 160px at 50% 0%, rgba(212,175,55,.12), transparent 70%); }
.acct-hero .avatar { width: 66px; height: 66px; margin: 0 auto 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--gold);
  background: radial-gradient(circle at 30% 25%, rgba(212,175,55,.3), rgba(212,175,55,.06));
  border: 1px solid var(--gold-soft); }
.acct-hero h2 { letter-spacing: .14em; font-size: 22px; }
.acct-hero .mail { color: var(--muted); font-size: 13.5px; margin-top: 4px; word-break: break-all; }
.member-badge { display: inline-flex; align-items: center; gap: .4em; margin-top: 10px; padding: .3em 1em; border-radius: 999px;
  font-size: 12.5px; letter-spacing: .12em; }
.member-badge.member { color: #2a1620; background: linear-gradient(120deg, #f0d77c, var(--gold)); font-weight: 700; }
.member-badge.free { color: var(--muted); border: 1px solid rgba(255,255,255,.14); }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 18px; }
.acct-card { border: 1px solid rgba(255,255,255,.09); border-radius: 15px; padding: 18px; background: rgba(255,255,255,.025); }
.acct-card h4 { font-size: 14px; color: var(--muted); letter-spacing: .14em; margin-bottom: 10px; font-weight: 600; }
.acct-card h4 i { color: var(--gold); margin-right: .4em; }
.big-num { font-family: var(--font-serif); font-size: 34px; color: var(--gold); }
.big-num small { font-size: 14px; color: var(--muted2); font-family: var(--font-sans); }
.quota-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); margin: 12px 0 8px; overflow: hidden; }
.quota-bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold2), var(--gold)); transition: width .5s ease; }
.acct-list { font-size: 13px; color: var(--muted); }
.acct-list li { list-style: none; padding: 4px 0; }
.acct-list li span { color: var(--txt); }
.history-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px dashed rgba(255,255,255,.07); font-size: 13px; }
.history-item:last-child { border: 0; }
.history-item .q { color: var(--txt); max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item .meta { color: var(--muted2); text-align: right; font-size: 12px; }
.upload-zone { margin-top: 12px; }
.upload-zone .up-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; border: 1px dashed var(--gold-soft);
  border-radius: 12px; cursor: pointer; color: var(--muted); font-size: 13px; transition: .2s; background: rgba(212,175,55,.04); }
.upload-zone .up-btn:hover { color: var(--gold); border-color: var(--gold); }
.up-hint { font-size: 11.5px; color: var(--muted2); margin-top: 8px; text-align: center; }

/* ================================================================
   弹窗 / 表单
   ================================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center;
  background: rgba(8, 3, 12, .8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 18px;
}
.modal-overlay.open { display: flex; }
.modal {
  --m-pad-x: 26px;   /* 弹窗左右内距（.m-foot 全出血时按此做负边距） */
  --m-pad-b: 24px;   /* 弹窗底部内距 */
  position: relative; width: min(94vw, 560px); max-height: 88vh; overflow-y: auto;
  background: linear-gradient(165deg, #33204a 0%, #1c0c26 55%, #170a20 100%);
  border: 1px solid rgba(212,175,55,.38); border-radius: 20px; padding: 28px var(--m-pad-x) var(--m-pad-b);
  box-shadow: 0 30px 80px rgba(0,0,0,.65), inset 0 0 60px rgba(212,175,55,.04);
  animation: modalIn .34s cubic-bezier(.2,.9,.3,1.2) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.modal.wide { width: min(96vw, 980px); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid transparent;
  background: rgba(255,255,255,.05); color: var(--muted); cursor: pointer; font-size: 15px; transition: .2s; z-index: 2; }
.modal-close:hover { color: var(--gold); border-color: var(--gold-soft); background: var(--gold-faint); }
.modal h3 { font-size: 22px; letter-spacing: .2em; text-align: center; margin: 4px 0 8px; }
.modal .m-sub { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.modal .m-sub i { color: var(--gold); margin: 0 .2em; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; letter-spacing: .08em; }
.inp { width: 100%; padding: .78em 1.05em; border-radius: 11px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05); color: var(--txt); font-family: inherit; font-size: 15px; transition: border .2s, box-shadow .2s; outline: none; }
.inp:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.14); }
textarea.inp { resize: vertical; min-height: 96px; line-height: 1.8; }
.inp::placeholder { color: var(--muted2); }
.msg-line { font-size: 13.5px; min-height: 1.4em; margin: 8px 0 4px; text-align: center; }
.msg-line.err { color: var(--danger); }
.msg-line.ok { color: var(--ok); }
.tabs { display: flex; background: rgba(255,255,255,.05); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.tabs button { flex: 1; border: 0; background: transparent; color: var(--muted); padding: .6em; border-radius: 999px;
  cursor: pointer; font-family: inherit; font-size: 14px; letter-spacing: .14em; transition: .2s; }
.tabs button.on { background: linear-gradient(135deg, #ecd27c, var(--gold)); color: #251228; font-weight: 700; }
.mini-note { font-size: 12px; color: var(--muted2); text-align: center; margin-top: 12px; line-height: 1.8; }
.mini-note a { color: var(--gold); }

/* 弹窗底部操作区：在可滚动的弹窗里钉在底部，
   保证「生成解读」等主按钮在任何屏幕高度下都可见、可点 */
.m-foot {
  position: sticky; z-index: 3;
  bottom: calc(var(--m-pad-b, 24px) * -1);
  margin: 6px -26px calc(var(--m-pad-b, 24px) * -1);
  padding: 14px 26px var(--m-pad-b, 24px);
  background: linear-gradient(180deg, rgba(23, 10, 32, 0) 0%, #170a20 34%);
}

/* 免责确认弹窗 */
.consent-star { text-align: center; font-size: 44px; color: var(--gold); margin-bottom: 6px; text-shadow: 0 0 26px rgba(212,175,55,.6); }
.consent-list { margin: 14px 0 6px; padding: 0; }
.consent-list li { list-style: none; font-size: 13.5px; color: var(--muted); padding: 5px 0 5px 26px; position: relative; }
.consent-list li::before { content: '✦'; position: absolute; left: 2px; color: var(--gold); font-size: 11px; top: 9px; }
.consent-actions { display: flex; gap: 12px; margin-top: 18px; }
.consent-actions .btn { flex: 1; }

/* 方案对比弹窗 */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 12px; margin-top: 6px; }
.plan-col { position: relative; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; padding: 18px 16px 16px;
  background: rgba(255,255,255,.03); display: flex; flex-direction: column; gap: 8px; transition: .2s; }
.plan-col:hover { border-color: var(--gold-soft); transform: translateY(-3px); }
.plan-col.hot { border-color: var(--gold); background: radial-gradient(220px 120px at 50% 0%, rgba(212,175,55,.16), transparent 75%); box-shadow: 0 12px 34px rgba(212,175,55,.12); }
.plan-col .p-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: linear-gradient(120deg, #ecd27c, var(--gold));
  color: #251228; font-size: 11px; font-weight: 700; padding: .18em .9em; border-radius: 999px; letter-spacing: .12em; white-space: nowrap; }
.plan-col h4 { font-size: 15.5px; letter-spacing: .16em; color: var(--txt); }
.plan-col .p-price { font-family: var(--font-serif); font-size: 26px; color: var(--gold); line-height: 1.2; }
.plan-col .p-price small { font-family: var(--font-sans); font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.plan-col ul { flex: 1; padding: 0; }
.plan-col ul li { list-style: none; font-size: 12.5px; color: var(--muted); padding: 3.5px 0 3.5px 18px; position: relative; line-height: 1.7; }
.plan-col ul li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.plan-col ul li.no { opacity: .45; }
.plan-col ul li.no::before { content: '—'; }
.plan-col .btn { margin-top: 6px; }
.plan-foot { font-size: 12px; color: var(--muted2); text-align: center; margin-top: 14px; line-height: 1.9; }

/* 分享海报 */
.poster-box { text-align: center; margin: 6px 0 10px; }
.poster-box canvas { width: min(340px, 78vw); border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 16px 44px rgba(0,0,0,.5); }

/* Toast */
#toast { position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px); z-index: 400;
  background: linear-gradient(135deg, #3a2450, #251232); border: 1px solid var(--gold-soft); color: var(--cream);
  padding: .85em 1.6em; border-radius: 999px; font-size: 14px; letter-spacing: .05em; opacity: 0; pointer-events: none;
  transition: .35s ease; box-shadow: 0 12px 34px rgba(0,0,0,.5); max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast i { color: var(--gold); margin-right: .4em; }

/* ---------- 页脚 ---------- */
footer { margin-top: 60px; border-top: 1px solid var(--line); background: rgba(16, 6, 20, .55); padding: 34px 0 22px; }
.foot-brand { text-align: center; font-size: 22px; letter-spacing: .34em; color: var(--gold); font-family: var(--font-serif); white-space: nowrap; }
.foot-links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin: 16px 0; font-size: 13px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--gold); }
.fineprint { text-align: center; color: var(--muted2); font-size: 12.5px; line-height: 2.1; letter-spacing: .05em; padding: 0 12px; }
.fineprint .f1 { color: var(--gold2); letter-spacing: .12em; }
.fineprint .f2 { color: #6a5e7a; font-size: 11.5px; letter-spacing: .04em; }

/* 加载动画 */
.loading { display: inline-flex; align-items: center; gap: .7em; }
.spinner { width: 17px; height: 17px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.25); border-top-color: var(--gold); animation: spinS .8s linear infinite; }
@keyframes spinS { to { transform: rotate(360deg); } }
.writing-dots::after { content: ''; animation: dots 1.4s steps(4, end) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* 响应式 */
@media (max-width: 720px) {
  .header-inner { height: 56px; }
  .h-logo .name { font-size: 17px; }
  .nav-btn { padding: .5em .55em; font-size: 13px; }
  #acct-chip span.t { display: none; }
  section { padding: 22px 0; }
  .deal-stage { min-height: clamp(320px, 60vh, 480px); }
  .modal { padding: 22px 16px 18px; }
  .r-paper { padding: 20px 16px; }
  .fb-row { flex-direction: column; }
}
@media (max-width: 480px) {
  .hero h1 { letter-spacing: .14em; font-size: clamp(40px, 12vw, 60px); }
  .wheel-wrap { width: 76vw; }
}

/* ============ 补充交互样式 ============ */
.deal-stage { touch-action: manipulation; }
.deal-stage .tcard { cursor: pointer; }
.deal-stage .tcard.flipped { cursor: default; }
#q-chips .tag { cursor: pointer; background: transparent; font-family: inherit; transition: .2s; }
#q-chips .tag:hover { color: var(--gold); border-color: var(--gold-faint); }
.r-card .tcard { border-radius: 9px; box-shadow: 0 10px 26px rgba(0, 0, 0, .5); }
.r-card .cname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-input-row input { min-width: 0; }
#deal-actions { min-height: 56px; align-items: center; }
#btn-afterpay { margin-top: 8px; }
.modal .p-price small { display: block; }
@media print { body { display: none; } }

/* ============ 多语言切换 ============ */
.lang-sw { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; overflow: hidden; margin-right: 6px; }
.lang-sw button { border: 0; background: transparent; color: var(--muted); padding: .42em .75em; cursor: pointer; font-family: inherit; font-size: 12.5px; letter-spacing: .08em; transition: .2s; }
.lang-sw button:hover { color: var(--gold); }
.lang-sw button.on { background: linear-gradient(135deg, #ecd27c, var(--gold)); color: #251228; font-weight: 700; }

/* ============ 每日钩子 / 随机捞 入口卡 ============ */
.hook-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 22px auto 4px; max-width: 940px; }
.hook-card { position: relative; display: flex; gap: 16px; align-items: flex-start; border-radius: 18px; padding: 20px 18px; cursor: pointer;
  border: 1px solid var(--line); transition: transform .22s ease, border-color .22s, box-shadow .3s; overflow: hidden; text-align: left; }
.hook-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0; transition: opacity .3s; }
.hook-card:hover { transform: translateY(-4px); border-color: var(--gold-soft); box-shadow: var(--shadow-soft); }
.hook-card:hover::before { opacity: 1; }
.hook-gold { background: radial-gradient(300px 150px at 0% 0%, rgba(212,175,55,.18), transparent 70%), linear-gradient(160deg, rgba(45,27,61,.65), rgba(26,10,30,.92)); }
.hook-purple { background: radial-gradient(300px 150px at 100% 0%, rgba(122,72,160,.22), transparent 70%), linear-gradient(160deg, rgba(45,27,61,.65), rgba(26,10,30,.92)); }
.hook-icon { flex: none; width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 23px;
  color: var(--gold); background: radial-gradient(circle at 30% 25%, rgba(212,175,55,.3), rgba(212,175,55,.06)); border: 1px solid var(--gold-faint); }
.hook-tag { display: inline-block; padding: .18em .9em; border-radius: 999px; font-size: 11px; letter-spacing: .16em;
  color: var(--gold); border: 1px solid var(--gold-faint); background: rgba(212,175,55,.08); }
.hook-body h3 { font-size: 17px; color: var(--txt); margin: 8px 0 4px; letter-spacing: .08em; }
.hook-body p { font-size: 13px; color: var(--muted); line-height: 1.75; margin-bottom: 8px; }
.hook-cta { color: var(--gold); font-size: 13px; letter-spacing: .06em; }
.hook-cta::after { content: '→'; margin-left: .5em; }

/* ============ 每日钩子：五张选一（小屏横向滑动，居中时不裁切） ============ */
.daily-fan { display: flex; gap: 12px; flex-wrap: nowrap; padding: 20px 2px 14px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.daily-fan::-webkit-scrollbar { display: none; }
.daily-fan .fan-card { flex: none; scroll-snap-align: center; }
.daily-fan .fan-card:first-child { margin-left: auto; }
.daily-fan .fan-card:last-child { margin-right: auto; }
.fan-card { position: relative; width: var(--cw, 88px); height: calc(var(--cw, 88px) * 1.4); border-radius: 10px; cursor: pointer;
  background: radial-gradient(circle at 50% 42%, #4a2f63 0%, #241232 68%);
  border: 1px solid rgba(212,175,55,.6); box-shadow: 0 10px 24px rgba(0,0,0,.5); transition: transform .18s ease, box-shadow .2s; }
.fan-card::before { content: ''; position: absolute; inset: 8%; border: 1px solid rgba(212,175,55,.4); border-radius: 5px;
  background: repeating-conic-gradient(from 0deg, rgba(212,175,55,.06) 0deg 5deg, transparent 5deg 22.5deg); }
.fan-card::after { content: '✦'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; color: rgba(212,175,55,.9); }
.fan-card .fn-idx { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); font-size: 10px; letter-spacing: .2em; color: rgba(212,175,55,.75); z-index: 2; }
.fan-card:not(.done):hover { transform: translateY(-10px) rotate(-2deg); box-shadow: 0 18px 36px rgba(212,175,55,.22); }
.fan-card.done { cursor: default; pointer-events: none; }
.fan-card.done::before, .fan-card.done::after { display: none; }
.daily-reveal { text-align: center; margin: 4px 0 10px; }
.daily-reveal .dr-name { font-size: 17px; letter-spacing: .14em; color: var(--cream); margin-top: 10px; }
.daily-reveal .dr-ori { font-size: 12px; color: var(--gold); letter-spacing: .2em; margin-top: 2px; }
@keyframes cardPop { 0% { transform: scale(.6) rotateY(90deg); opacity: 0; } 60% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
.daily-pop { animation: cardPop .6s cubic-bezier(.2,.9,.3,1.2) both; }

/* 深度对话头部 */
.chat-head { text-align: center; margin-bottom: 12px; }
.chat-head .ch-avatar { width: 46px; height: 46px; margin: 0 auto 6px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px;
  color: var(--gold); background: radial-gradient(circle at 30% 25%, rgba(212,175,55,.3), rgba(212,175,55,.05)); border: 1px solid var(--gold-soft); }
.chat-head .ch-line { font-size: 13.5px; color: var(--muted); letter-spacing: .04em; line-height: 1.8; }

/* ============ 随机捞 · 指引卡 ============ */
.lucky-stage { text-align: center; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lucky-stage .ls-btn { font-size: 18px; padding: 1em 2.4em; }
.lucky-card { width: min(320px, 82vw); margin: 6px auto 4px; border-radius: 18px; padding: 30px 22px 22px; text-align: center;
  background: radial-gradient(240px 120px at 50% 0%, rgba(212,175,55,.16), transparent 72%), linear-gradient(165deg, #33204a, #170a20 78%);
  border: 1px solid rgba(212,175,55,.6); box-shadow: 0 22px 60px rgba(0,0,0,.6), inset 0 0 40px rgba(212,175,55,.05); position: relative; }
.lucky-card::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(212,175,55,.35); border-radius: 12px; pointer-events: none; }
.lc-glyph { font-family: Georgia, serif; font-size: 56px; line-height: 1; color: var(--gold); text-shadow: 0 0 22px rgba(212,175,55,.5); }
.lc-name { font-size: 24px; letter-spacing: .3em; color: var(--cream); margin-top: 10px; }
.lc-en { font-family: var(--font-serif); color: var(--gold2); letter-spacing: .22em; text-transform: uppercase; font-size: 13px; margin-top: 4px; }
.lc-divider { display: flex; align-items: center; gap: 8px; color: var(--gold); margin: 14px 0; font-size: 11px; }
.lc-divider::before, .lc-divider::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.lc-divider::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }
.lc-quote { font-size: 15px; line-height: 2.05; color: #e6dfee; letter-spacing: .03em; }
.lc-no { font-family: Georgia, monospace; font-size: 12px; letter-spacing: .18em; color: var(--muted2); margin-top: 16px; }
.lc-note { font-size: 11px; color: var(--muted2); margin-top: 4px; letter-spacing: .08em; }
.lucky-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.lucky-history { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.lh-chip { font-size: 11px; padding: .25em .9em; border-radius: 999px; border: 1px solid rgba(255,255,255,.13); color: var(--muted); cursor: pointer; background: transparent; font-family: inherit; transition: .2s; }
.lh-chip:hover { color: var(--gold); border-color: var(--gold-faint); }
.lucky-loading { text-align: center; padding: 30px 0; }
.lucky-loading .spinner { width: 30px; height: 30px; border-width: 3px; }

/* ============ 语言选择层 ============ */
.lang-modal { max-width: 380px; }
.lang-options { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 6px; }
.lang-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  background: rgba(212, 175, 55, .07); border: 1px solid rgba(212, 175, 55, .28); color: var(--cream);
  border-radius: 16px; padding: 15px 18px; cursor: pointer; font-family: inherit;
  font-size: 15px; transition: .2s;
}
.lang-opt:hover { background: rgba(212, 175, 55, .18); border-color: var(--gold); transform: translateY(-1px); }
.lang-opt .lo-name { font-weight: 700; letter-spacing: .1em; }
.lang-opt .lo-sub { font-size: 11.5px; color: var(--muted2); text-align: right; }
.lang-opt .lo-name::before { content: '🌐 '; }

/* ============ 移动端触控与表单体验 ============ */
/* 防止 iOS 聚焦输入框自动放大：输入元素字号 ≥16px */
input, textarea, .inp, #q-text, #a-email, #a-pw, #fb-text, #chat-input, #daily-chat-input {
  font-size: 16px !important;
}
/* 触屏设备：加大点按目标 ≥44px */
@media (pointer: coarse) {
  .icon-btn { width: 44px; height: 44px; font-size: 17px; }
  .nav-btn { min-height: 40px; padding: .6em .7em; }
  .lang-sw button { min-height: 34px; padding: .5em .85em; }
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .btn-sm { min-height: 36px; }
  .spread-card, .hook-card, .lang-opt, .lh-chip { cursor: pointer; }
}
/* 占卜历史：可点击查看完整解读 */
.history-item { cursor: pointer; }
.history-item:hover .q { color: var(--gold); }
.history-row-actions { display: flex; justify-content: flex-end; margin-top: 8px; }

/* ============ 解读“总结”金色标题 ============ */
.md-summary {
  color: #ffd97a !important;
  background: linear-gradient(90deg, rgba(212, 175, 55, .22), rgba(212, 175, 55, .05));
  border-left: 4px solid #ffcf52;
  border-radius: 8px;
  padding: .35em .6em .35em .5em;
  letter-spacing: .08em;
  box-shadow: 0 0 18px rgba(212, 175, 55, .18);
}
.md-summary::before { content: '🎯 '; font-size: .9em; }

/* 页面 H1 语义与层级（每视图一个 H1，标题从 h1>h2>h3 不跳级） */
h1.draw-title { margin: 0; }
.r-h1 { font-size: clamp(22px, 4.6vw, 30px); letter-spacing: .14em; color: var(--txt); margin: 8px 0 2px; white-space: nowrap; }
.r-sub { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: .12em; margin: 0 0 4px; }
.r-head h1, .r-head h2 { text-align: center; }

.streak-pill { margin-top: 6px; font-size: 12px; color: #e8c34a; letter-spacing: .06em; text-align: center; min-height: 18px; }

/* 今日能量卡片 */
.today-energy-card { max-width: 680px; margin: 18px auto 6px; display: flex; gap: 18px; align-items: center;
  background: linear-gradient(165deg, rgba(45,27,61,.7), rgba(26,10,30,.85));
  border: 1px solid rgba(212,175,55,.28); border-radius: 18px; padding: 16px 18px; }
.te-media { flex: none; }
.te-body { text-align: left; }
.te-tag { display: inline-block; font-size: 10.5px; letter-spacing: .2em; color: var(--gold); border: 1px solid var(--gold-faint); padding: .15em .7em; border-radius: 999px; }
.te-body h3 { font-size: 20px; color: var(--cream); margin: 8px 0 2px; }
.te-body h3 small { display: block; font-family: var(--font-serif); font-size: 12px; color: var(--muted2); letter-spacing: .16em; font-weight: 400; }
.te-body p { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin: 8px 0 12px; }
@media (max-width: 480px) { .today-energy-card { flex-direction: column; align-items: center; text-align: center; } .te-body { text-align: center; } }

/* ============ 命运酱数字形象头像（可配置替换） ============ */
.fate-ava {
  width: 1.7em; height: 1.7em; border-radius: 50%; vertical-align: middle; display: inline-block;
  object-fit: cover; border: 1px solid rgba(212, 175, 55, .55); background: radial-gradient(circle at 32% 28%, #6a4c8c, #2b1a3f 70%);
  box-shadow: 0 0 12px rgba(212, 175, 55, .25);
}
.ch-avatar .fate-ava { width: 46px; height: 46px; }
.msg.ai .fate-ava { width: 30px; height: 30px; margin-right: 6px; float: left; }
#busy-line .fate-ava { width: 22px; height: 22px; margin-right: 6px; }

/* ============ 解读骨架屏（深色渐变轮廓 → 内容渐入） ============ */
#reading-wrap.is-loading { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; }
.sk { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin: 0 auto; width: 100%; padding: 8px 4px; }
.sk > * { background: linear-gradient(100deg, rgba(55, 34, 74, .55) 30%, rgba(90, 60, 120, .5) 48%, rgba(55, 34, 74, .55) 66%);
  background-size: 220% 100%; border-radius: 10px; animation: skShine 1.5s linear infinite; }
.sk-badge { width: 46%; height: 22px; border-radius: 999px; margin: 0 auto; }
.sk-title { width: 42%; height: 30px; margin: 4px auto 0; }
.sk-meta { width: 60%; height: 13px; margin: 0 auto; }
.sk-cards { display: flex; gap: 12px; justify-content: center; }
.sk-card { width: 82px; height: 118px; border-radius: 10px; flex: none; }
.sk-lines { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.sk-lines i { height: 12px; border-radius: 6px; }
.sk-lines i:nth-child(odd) { width: 92%; }
.sk-lines i:nth-child(3n) { width: 84%; }
.sk-lines i:nth-child(4n) { width: 70%; }
@keyframes skShine { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
#reading-wrap.content-in .r-head,
#reading-wrap.content-in .r-cards,
#reading-wrap.content-in .r-paper,
#reading-wrap.content-in .chat-box,
#reading-wrap.content-in .feedback-box { animation: fadeIn .5s ease both; }

/* ============ 生成解读：模拟进度条 + 动态文案 ============ */
.reading-progress { max-width: 460px; width: 100%; margin: 22px auto 0; text-align: center; }
.rp-track {
  position: relative; height: 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(212, 175, 55, .18);
  overflow: hidden;
}
.rp-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c9a84c, #f3e3a2, #d4af37);
  box-shadow: 0 0 14px rgba(212, 175, 55, .5);
  transition: width .2s ease;
}
.rp-pct {
  display: block; margin-top: 8px; font-size: 12px; letter-spacing: .12em;
  color: var(--gold); font-variant-numeric: tabular-nums;
}
.rp-line { margin-top: 10px; color: var(--muted); font-size: 13.5px; letter-spacing: .1em; animation: pulseTxt 2.2s infinite alternate; }

/* ============ AI 人格选择卡片（命运酱 / 凛） ============ */
.q-persona-label { flex-basis: 100%; font-size: 12px; color: var(--muted2); letter-spacing: .08em; }
.persona-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
#q-persona .persona-cards { flex: 1 1 100%; margin-top: 2px; }
.persona-card {
  display: flex; align-items: center; gap: 10px; text-align: left; width: 100%;
  padding: 12px; border-radius: 14px; cursor: pointer;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  color: var(--txt); font-family: inherit;
  transition: border-color .2s, transform .2s, box-shadow .25s, background .2s;
}
.persona-card:hover { transform: translateY(-2px); border-color: var(--gold-soft); }
.persona-card.on {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, .16), rgba(212, 175, 55, .04));
  box-shadow: 0 0 0 1px var(--gold-soft), 0 10px 26px rgba(0, 0, 0, .3);
}
.pc-avatar {
  flex: none; width: 44px; height: 44px; font-size: 23px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: radial-gradient(circle at 30% 25%, rgba(212, 175, 55, .28), rgba(212, 175, 55, .05));
  border: 1px solid var(--gold-faint);
}
.pc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pc-body b { font-size: 14px; letter-spacing: .04em; }
.pc-body small { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.pc-body i { font-style: normal; font-size: 10.5px; color: var(--muted2); }
.pc-check { flex: none; color: var(--muted2); font-size: 16px; }
.persona-card.on .pc-check { color: var(--gold); }
@media (max-width: 480px) { .persona-cards { grid-template-columns: 1fr; } }

/* ============ 成长体系：Tab / 签到 / 等级 / 成就 / 日历 ============ */
.acct-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.acct-tab { flex: 1; padding: .7em 1em; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); cursor: pointer; font-family: inherit; font-size: 14px; letter-spacing: .1em; transition: .2s; }
.acct-tab:hover { color: var(--gold); border-color: var(--gold-soft); }
.acct-tab.on { background: linear-gradient(135deg, #ecd27c, var(--gold)); color: #251228; font-weight: 700; border-color: transparent; }
.growth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .growth-grid { grid-template-columns: 1fr; } }
.reward-ladder { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.reward-step { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.reward-step.done { border-color: var(--gold-soft); background: rgba(212,175,55,.08); }
.rs-flag { flex: none; min-width: 34px; text-align: center; font-size: 12px; color: var(--gold); border: 1px solid var(--gold-faint); border-radius: 999px; padding: 2px 6px; }
.reward-step.done .rs-flag { background: var(--gold); color: #251228; }
.rs-name { font-size: 13px; color: var(--cream); }
.xp-track { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(212,175,55,.18); overflow: hidden; margin: 10px 0 6px; }
.xp-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #c9a84c, #f3e3a2, #d4af37); box-shadow: 0 0 10px rgba(212,175,55,.5); transition: width .4s ease; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; }
.ach { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); text-align: center; }
.ach.got { border-color: var(--gold-soft); background: rgba(212,175,55,.07); }
.ach-icon { font-size: 20px; color: var(--muted2); }
.ach.got .ach-icon { color: var(--gold); }
.ach-name { font-size: 12.5px; color: var(--cream); }
.ach.got .ach-name { color: var(--gold); }
.ach-desc { font-size: 10.5px; color: var(--muted2); line-height: 1.4; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 10px; }
.cal-week span { text-align: center; font-size: 11px; color: var(--muted2); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 4px; }
.cal-cell { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid transparent; background: rgba(255,255,255,.02); color: var(--muted); font-size: 13px; cursor: default; font-family: inherit; }
.cal-cell.empty { background: transparent; }
.cal-cell.has { cursor: pointer; border-color: var(--gold-faint); color: var(--cream); background: rgba(212,175,55,.08); }
.cal-cell.has:hover { border-color: var(--gold); }
.cal-cell.has i { position: absolute; bottom: 2px; font-size: 8px; color: var(--gold); font-style: normal; }
.cal-cell:disabled { opacity: .5; }

/* 回头看：回顾打分星星 */
.lb-stars { display: flex; gap: 6px; }
.lb-star { flex: none; width: 40px; height: 40px; font-size: 22px; line-height: 1; color: var(--muted2);
  background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: .15s; font-family: inherit; }
.lb-star:hover { color: var(--gold); border-color: var(--gold-soft); }

/* ============ 命运酱数字人（会动头像：呼吸/眨眼/说话口型） ============ */
.fate-dh { display: block; width: 100%; height: 100%; animation: dhBreathe 3.2s ease-in-out infinite; }
.fate-dh .dh-eyes { transform-origin: 64px 58px; animation: dhBlink 4.6s infinite; }
.fate-dh .dh-mouth-open { opacity: 0; }
.fate-dh .dh-mouth-closed { opacity: 1; }
.fate-dh.speaking .dh-mouth-open { opacity: 1; animation: dhTalk .24s ease-in-out infinite alternate; }
.fate-dh.speaking .dh-mouth-closed { opacity: 0; }
.dh-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dh-ava { flex: none; width: 58px; height: 58px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 2px var(--gold-soft), 0 0 22px rgba(212, 175, 55, .35); }
.dh-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.dh-name { font-size: 12px; color: var(--muted2); letter-spacing: .1em; }
@keyframes dhBreathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-2px) scale(1.02); } }
@keyframes dhBlink { 0%, 45%, 50%, 100% { transform: scaleY(1); } 47.5% { transform: scaleY(.12); } }
@keyframes dhTalk { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

/* ============ 触控细节：去掉首击延迟与高亮、全局点按反馈 ============ */
a, button, [role="button"], .hook-card, .spread-card, .fan-card, .lang-opt, .lh-chip {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(212, 175, 55, .18);
}
@media (pointer: coarse) {
  .btn, .btn-sm { padding: 12px 20px; }
  .wheel-wrap { min-width: 150px; }
}

/* 弹窗高度：长内容（聊天/指引卡等）在小屏可滚动不截断。
   移动端 vh 按「地址栏收起」的大视口计算，88vh 会把弹窗底部（如「生成解读」按钮）
   顶到浏览器工具栏下方导致点不到 → 优先用 dvh（动态视口）并预留安全区。 */
.modal {
  max-height: 88vh;
  max-height: calc(88dvh - env(safe-area-inset-bottom, 0px));
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  --m-pad-b: calc(24px + env(safe-area-inset-bottom, 0px));
  padding-bottom: var(--m-pad-b);
}
