/* ============================================================
   星命阁 · ASTRAL ARCANA  ——  全局样式
   主题：暗黑神秘风 Dark Mystic（深紫 / 墨黑 / 暗金）
   ============================================================ */

/* ---------- 主题变量 ---------- */
:root {
  --color-bg-deep:     #0a0612;   /* 墨黑底色 */
  --color-bg-mid:      #150b24;   /* 深紫过渡 */
  --color-bg-purple:   #1f1140;   /* 深紫 */
  --color-gold:        #d4af37;   /* 暗金主色 */
  --color-gold-light:  #f5d97a;   /* 烫金高亮 */
  --color-gold-dark:   #8b6914;   /* 暗金阴影 */
  --color-star-blue:   #6ea8fe;   /* 星蓝点缀 */
  --color-moon-silver: #c8cfe0;   /* 月光银 */
  --color-text:        #e8dcc8;   /* 羊皮纸正文色 */
  --color-text-dim:    #9a8f7a;   /* 次级文字 */
  --color-text-mute:   #6b6252;   /* 弱化文字 */
  --color-danger:      #c0392b;   /* 警示牌红 */

  --font-display: 'Cinzel', 'Pirata One', serif;
  --font-gothic:  'Pirata One', 'Cinzel', serif;
  --font-serif:   'Noto Serif SC', 'Songti SC', serif;

  --gold-gradient: linear-gradient(135deg, #f5d97a 0%, #d4af37 45%, #8b6914 100%);
  --gold-text:     linear-gradient(180deg, #fff3c4 0%, #d4af37 60%, #8b6914 100%);
  --shadow-gold:   0 0 18px rgba(212, 175, 55, 0.45);
  --shadow-card:   0 10px 40px rgba(0, 0, 0, 0.7), 0 0 22px rgba(212, 175, 55, 0.15);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-serif);
  color: var(--color-text);
  background: radial-gradient(ellipse at 50% 0%, #1f1140 0%, #150b24 45%, #0a0612 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* 烫金文字通用类 */
.text-gold {
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 毛玻璃卡片 */
.glass {
  background: rgba(21, 11, 36, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* 烫金按钮 */
.btn-gold {
  position: relative;
  padding: 12px 32px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 3px;
  color: #0a0612;
  background: var(--gold-gradient);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.3);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212, 175, 55, 0.55); }
.btn-gold:active { transform: translateY(0); }
.btn-gold::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.btn-gold:hover::after { transform: translateX(120%); }

.btn-ghost {
  padding: 10px 26px;
  font-family: var(--font-display);
  letter-spacing: 2px;
  color: var(--color-gold-light);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}
.btn-ghost:hover { background: rgba(212, 175, 55, 0.12); box-shadow: var(--shadow-gold); }

/* ============================================================
   开场加载动画
   ============================================================ */
.loading-screen {
  position: fixed; inset: 0;
  background: #000;
  z-index: 9999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
}

/* 水晶球 */
.crystal-ball-wrap {
  position: relative;
  width: 220px; height: 220px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 40px;
}
.crystal-ball {
  position: relative;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4a2d7a 0%, #1a0f2e 60%, #000 100%);
  box-shadow: inset 0 0 60px rgba(110, 168, 254, 0.4), 0 0 80px rgba(110, 168, 254, 0.3);
  animation: ballPulse 3s ease-in-out infinite;
}
.crystal-inner {
  position: absolute; inset: 20%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(245, 217, 122, 0.3) 0%, transparent 60%),
    radial-gradient(circle at 30% 70%, rgba(110, 168, 254, 0.4) 0%, transparent 50%);
  animation: innerRotate 8s linear infinite;
}
.crystal-glow {
  position: absolute; inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 70%);
  animation: glowPulse 2.5s ease-in-out infinite;
}
@keyframes ballPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
@keyframes innerRotate { to { transform: rotate(360deg); } }
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

/* 水晶球裂开状态 */
.crystal-ball.cracked {
  animation: ballCrack 0.8s ease-out forwards;
}
@keyframes ballCrack {
  0%   { transform: scale(1); box-shadow: inset 0 0 60px rgba(110,168,254,0.4), 0 0 80px rgba(110,168,254,0.3); }
  40%  { transform: scale(1.25); box-shadow: 0 0 160px rgba(245,217,122,0.9), inset 0 0 80px rgba(245,217,122,0.8); }
  100% { transform: scale(0); opacity: 0; }
}

/* 符文飘散层 */
.rune-layer {
  position: absolute; inset: 0;
  pointer-events: none;
}
.rune-particle {
  position: absolute;
  color: var(--color-gold-light);
  font-size: 18px;
  text-shadow: 0 0 8px var(--color-gold);
  animation: runeFloat 2.2s ease-out forwards;
}
@keyframes runeFloat {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.5); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(1.4) rotate(var(--rot)); }
}

/* Logo 标题 */
.loading-title-wrap {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}
.loading-title-wrap.show { animation: titleFadeIn 1.2s ease forwards; }
@keyframes titleFadeIn {
  to { opacity: 1; transform: translateY(0); }
}
.loading-logo {
  font-family: var(--font-gothic);
  font-size: 64px;
  letter-spacing: 12px;
  background: var(--gold-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(212,175,55,0.6));
}
.loading-sub {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 8px;
  color: var(--color-moon-silver);
  margin-top: 8px;
  opacity: 0.8;
}
.loading-slogan {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 6px;
  color: var(--color-text-dim);
  margin-top: 24px;
  min-height: 28px;
}

/* 加载层淡出 */
.loading-screen.fade-out { animation: loadingFadeOut 1s ease forwards; }
@keyframes loadingFadeOut {
  to { opacity: 0; visibility: hidden; }
}

/* ============================================================
   3D 星盘背景
   ============================================================ */
.star-bg {
  position: fixed;
  top: 50%; left: 50%;
  width: 140vmin; height: 140vmin;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.zodiac-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.15);
}
.zodiac-ring::before, .zodiac-ring::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 0, var(--color-gold) 0 2px, transparent 3px),
    radial-gradient(circle at 0 50%, var(--color-star-blue) 0 2px, transparent 3px),
    radial-gradient(circle at 100% 50%, var(--color-moon-silver) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 100%, var(--color-gold) 0 2px, transparent 3px);
}
.zodiac-ring.r1 { width: 100%; height: 100%; transform: translate(-50%, -50%) rotate(0deg); animation: spin 120s linear infinite; }
.zodiac-ring.r2 { width: 78%; height: 78%; transform: translate(-50%, -50%) rotate(45deg); animation: spin 90s linear infinite reverse; border-color: rgba(110,168,254,0.18); }
.zodiac-ring.r3 { width: 56%; height: 56%; transform: translate(-50%, -50%) rotate(0deg); animation: spin 60s linear infinite; border-color: rgba(200,207,224,0.12); }
.zodiac-ring.r4 { width: 34%; height: 34%; transform: translate(-50%, -50%) rotate(30deg); animation: spin 40s linear infinite reverse; }
.star-center {
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  transform: translate(-50%, -50%);
  background: var(--color-gold-light);
  border-radius: 50%;
  box-shadow: 0 0 30px var(--color-gold), 0 0 60px var(--color-gold);
  animation: centerPulse 3s ease-in-out infinite;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes centerPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50%      { transform: translate(-50%, -50%) scale(1.6); opacity: 1; }
}

/* tsParticles 容器 */
#tsparticles {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   点击特效层
   ============================================================ */
.fx-layer {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9000;
  overflow: hidden;
}
.stardust {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--color-gold-light);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--color-gold);
  pointer-events: none;
}
.rune-burst {
  position: absolute;
  color: var(--color-gold-light);
  font-size: 16px;
  text-shadow: 0 0 8px var(--color-gold);
  pointer-events: none;
  animation: burstOut 0.9s ease-out forwards;
}
@keyframes burstOut {
  0%   { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--bx), var(--by)) scale(0.3) rotate(var(--brot)); }
}

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  background: linear-gradient(180deg, rgba(10,6,18,0.85) 0%, transparent 100%);
  backdrop-filter: blur(6px);
}
.logo-mark { cursor: pointer; display: flex; flex-direction: column; line-height: 1.2; }
.logo-cn { font-family: var(--font-gothic); font-size: 22px; letter-spacing: 4px; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo-en { font-family: var(--font-display); font-size: 10px; letter-spacing: 4px; color: var(--color-text-dim); margin-top: 2px; }
.main-nav { display: flex; gap: 36px; }
.nav-item {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--color-text-dim);
  cursor: pointer;
  position: relative;
  padding: 6px 2px;
  transition: color 0.3s;
}
.nav-item:hover, .nav-item.active { color: var(--color-gold-light); }
.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 1px;
  background: var(--gold-gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-item:hover::after, .nav-item.active::after { width: 100%; }

/* ============================================================
   主内容区
   ============================================================ */
.app-main {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 100px 40px 60px;
}

/* 首页 */
.home-hero {
  max-width: 1100px;
  margin: 40px auto 0;
  text-align: center;
}
.home-title {
  font-family: var(--font-gothic);
  font-size: clamp(40px, 7vw, 80px);
  letter-spacing: 14px;
  background: var(--gold-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(212,175,55,0.4));
  margin-bottom: 10px;
}
.home-subtitle {
  font-family: var(--font-display);
  font-size: clamp(12px, 2vw, 18px);
  letter-spacing: 10px;
  color: var(--color-moon-silver);
  opacity: 0.8;
  margin-bottom: 30px;
}
.home-slogan {
  font-family: var(--font-serif);
  font-size: clamp(14px, 2vw, 20px);
  letter-spacing: 8px;
  color: var(--color-text-dim);
  margin-bottom: 50px;
}

/* 功能卡片网格 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-card {
  position: relative;
  padding: 28px 22px;
  border-radius: var(--radius-md);
  background: rgba(21, 11, 36, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.18);
  backdrop-filter: blur(10px);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.feature-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(212,175,55,0.12), transparent 70%);
  opacity: 0; transition: opacity 0.35s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: var(--shadow-card);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  font-size: 34px;
  margin-bottom: 12px;
  display: block;
}
.feature-name {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 2px;
  color: var(--color-gold-light);
  margin-bottom: 6px;
}
.feature-desc {
  font-size: 13px;
  color: var(--color-text-dim);
  line-height: 1.6;
}

/* 每日箴言卡片 */
.daily-quote {
  max-width: 600px;
  margin: 50px auto 0;
  padding: 24px 30px;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  background: rgba(10, 6, 18, 0.4);
  position: relative;
}
.daily-quote::before, .daily-quote::after {
  content: '✦';
  position: absolute;
  color: var(--color-gold);
  font-size: 14px;
}
.daily-quote::before { top: -10px; left: 50%; transform: translateX(-50%); background: var(--color-bg-deep); padding: 0 12px; }
.daily-quote-text {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--color-text);
  font-style: italic;
  letter-spacing: 1px;
}
.daily-quote-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--color-gold);
  margin-top: 10px;
}

/* ============================================================
   塔罗牌样式（核心）
   ============================================================ */
.tarot-card {
  position: relative;
  width: 120px; height: 200px;
  perspective: 1000px;
  cursor: pointer;
}
.card-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.tarot-card.flipped .card-inner { transform: rotateY(180deg); }
.tarot-card.reversed.flipped .card-inner { transform: rotateY(180deg) rotate(180deg); }

.card-face {
  position: absolute; inset: 0;
  border-radius: 8px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: var(--shadow-card);
}
/* 牌背：星盘纹样 */
.card-back {
  background:
    radial-gradient(circle at 50% 50%, rgba(212,175,55,0.15) 0%, transparent 60%),
    linear-gradient(135deg, #1a0f2e 0%, #2a1654 50%, #1a0f2e 100%);
  display: flex; align-items: center; justify-content: center;
}
.card-back::before {
  content: '';
  position: absolute; inset: 8px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 4px;
}
.card-back-symbol {
  width: 70%; height: 70%;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%);
}
.card-back-symbol::before, .card-back-symbol::after {
  content: '';
  position: absolute; inset: 15%;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 50%;
}
.card-back-symbol::after { transform: rotate(45deg); border-radius: 0; }
.card-back-symbol span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-gothic);
  font-size: 28px;
  color: var(--color-gold-light);
  text-shadow: 0 0 10px var(--color-gold);
}

/* 牌面：正面 */
.card-front {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, #f0e6d2 0%, #e8dcc8 100%);
  color: #2a1654;
  display: flex; flex-direction: column;
  padding: 12px 10px;
  text-align: center;
}
.card-front .card-num {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--color-gold-dark);
  letter-spacing: 2px;
}
.card-front .card-art {
  flex: 1;
  margin: 8px 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  border: 1px solid rgba(139, 105, 20, 0.3);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(200,207,224,0.08));
}
.card-front .card-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #4a2d7a;
  line-height: 1.3;
}
.card-front .card-suit {
  font-size: 10px;
  color: var(--color-text-mute);
  margin-top: 2px;
}

/* 牌 hover 浮起发光 */
.tarot-card.selectable:hover {
  transform: translateY(-14px);
  filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.7));
}
.tarot-card.selectable { transition: transform 0.3s ease, filter 0.3s ease; }

/* ============================================================
   抽牌舞台
   ============================================================ */
.draw-stage {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* 魔法阵 */
.magic-circle {
  position: absolute;
  top: 50%; left: 50%;
  width: 460px; height: 460px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.magic-circle.active { animation: circleActivate 2s ease forwards; }
.magic-circle::before, .magic-circle::after {
  content: '';
  position: absolute; inset: 20px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.4);
}
.magic-circle::after { inset: 60px; border-style: solid; border-color: rgba(110, 168, 254, 0.3); }
.magic-circle .rune-text {
  position: absolute;
  width: 100%; height: 100%;
  animation: spin 20s linear infinite;
}
@keyframes circleActivate {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  50%  { opacity: 1; }
  100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
}

/* 牌扇形排布容器 */
.fan-cards {
  position: relative;
  display: flex;
  gap: 8px;
  z-index: 2;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 90%;
}

/* 已选中的牌悬停在空中 */
.tarot-card.selected {
  transform: translateY(-40px) !important;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.9));
  pointer-events: none;
}

/* 未选中的牌飞散 */
.tarot-card.disperse {
  animation: disperse 0.8s ease forwards;
}
@keyframes disperse {
  to { opacity: 0; transform: translateY(60px) scale(0.4); }
}

/* ============================================================
   结果区
   ============================================================ */
.result-section {
  max-width: 900px;
  margin: 40px auto 0;
  animation: fadeInUp 0.8s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.result-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.result-card-item {
  text-align: center;
}
.result-position {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--color-gold);
  margin-bottom: 10px;
}
.result-meaning {
  margin-top: 14px;
  font-size: 14px;
  color: var(--color-text);
  max-width: 180px;
  line-height: 1.7;
}
.reversed-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(192, 57, 43, 0.2);
  color: #e8a090;
  letter-spacing: 1px;
  margin-top: 6px;
}
.upright-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--color-gold-light);
  letter-spacing: 1px;
  margin-top: 6px;
}

/* 星级 */
.stars { display: inline-flex; gap: 3px; }
.star { color: var(--color-gold); font-size: 16px; text-shadow: 0 0 6px rgba(212,175,55,0.6); }
.star.dim { color: rgba(212,175,55,0.2); text-shadow: none; }

/* 运势详情网格 */
.fortune-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.fortune-cell {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(21, 11, 36, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.15);
}
.fortune-cell-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--color-text-dim);
  margin-bottom: 8px;
}
.fortune-cell-value {
  font-size: 15px;
  color: var(--color-gold-light);
}

/* 页面标题 */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}
.page-title {
  font-family: var(--font-gothic);
  font-size: 36px;
  letter-spacing: 8px;
  background: var(--gold-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.page-subtitle {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--color-text-dim);
}

/* 模态框 */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 6, 18, 0.85);
  backdrop-filter: blur(8px);
  z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  max-width: 560px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  animation: modalIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-title {
  font-family: var(--font-gothic);
  font-size: 24px;
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: 20px;
  background: var(--gold-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 22px;
  color: var(--color-text-dim);
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--color-gold-light); }

/* 表单 */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--color-gold);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(10, 6, 18, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}
.form-select option { background: #150b24; }

/* 冷却提示 */
.cooldown-msg {
  text-align: center;
  padding: 30px;
  color: var(--color-text-dim);
  font-size: 14px;
}
.cooldown-msg .countdown {
  color: var(--color-gold-light);
  font-family: var(--font-display);
  font-size: 20px;
  margin: 10px 0;
}

/* 按钮 hover 星轨光环(用于 .btn-gold 外的交互元素) */
.glow-hover { transition: box-shadow 0.3s ease; }
.glow-hover:hover { box-shadow: 0 0 0 2px rgba(212,175,55,0.3), 0 0 24px rgba(212,175,55,0.35); }

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-mute);
}
.empty-state-icon { font-size: 48px; opacity: 0.4; margin-bottom: 16px; }

/* 档案卷轴 */
.scroll-paper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(240,230,210,0.92) 0%, rgba(232,220,200,0.92) 100%);
  color: #2a1654;
  padding: 36px 40px;
  border-radius: 4px;
  box-shadow: 0 12px 50px rgba(0,0,0,0.6);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
  .site-header { padding: 0 18px; height: 56px; }
  .main-nav { gap: 16px; }
  .nav-item { font-size: 12px; letter-spacing: 1px; }
  .app-main { padding: 80px 16px 40px; }
  .home-title { letter-spacing: 6px; }
  .tarot-card { width: 95px; height: 158px; }
  .fan-cards { gap: 4px; }
  .magic-circle { width: 320px; height: 320px; }
  .loading-logo { font-size: 44px; letter-spacing: 8px; }
}

/* 性能模式(简化动画) */
body.perf-mode .zodiac-ring,
body.perf-mode .crystal-inner,
body.perf-mode .magic-circle .rune-text { animation: none !important; }
body.perf-mode #tsparticles { display: none !important; }
