﻿﻿﻿﻿﻿/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== THEME VARIABLES ===== */
:root {
  --bg: #0a0a12;
  --bg-secondary: rgba(26, 26, 46, 0.5);
  --bg-primary: rgba(26, 26, 46, 0.6);
  --bg-card: rgba(26, 26, 46, 0.5);
  --text: #f5f0e8;
  --text-secondary: #a8a4a0;
  --text-muted: #8a8a8a;
  --border: rgba(255,255,255,0.06);
  --accent: #c9a84c;
  --accent-glow: rgba(201, 168, 76, 0.1);
  --accent-light: #e8d5a0;
  --accent-border: rgba(201, 168, 76, 0.2);
  --accent-border-hover: rgba(201, 168, 76, 0.4);
  --success: #5a9a4a;
  --success-bg: rgba(90, 154, 74, 0.1);
  --success-border: rgba(90, 154, 74, 0.3);
  --warning: #d4743a;
  --warning-bg: rgba(212, 116, 58, 0.1);
  --warning-border: rgba(212, 116, 58, 0.3);
  --on-accent: #0a0a12;
  --stars-opacity: 0.5;
  --input-bg: rgba(255,255,255,0.04);
  --bg-overlay: rgba(26,26,46,0.8);
  --bg-nav: rgba(15,15,26,0.96);
  --border-input: rgba(255,255,255,0.1);
  --border-btn: rgba(255,255,255,0.15);
  --shadow-card: rgba(0,0,0,0.3);
  --shadow-hover: rgba(0,0,0,0.25);
  --accent-glow-strong: rgba(201,168,76,0.15);
  --success-bg-strong: rgba(90,154,74,0.2);
  --success-border-strong: rgba(90,154,74,0.5);
  --fade-gradient: rgba(26,26,46,0.95);
}
[data-theme="light"] {
  --bg: #f5f0e8;
  --bg-secondary: rgba(245, 240, 232, 0.8);
  --bg-primary: rgba(255, 255, 255, 0.8);
  --bg-card: rgba(255, 255, 255, 0.7);
  --text: #2a2a2a;
  --text-secondary: #5a5a5a;
  --text-muted: #6a6a6a;
  --border: rgba(0,0,0,0.08);
  --accent: #6f5510;
  --accent-glow: rgba(139, 111, 31, 0.08);
  --accent-light: #6b5510;
  --accent-border: rgba(139, 111, 31, 0.2);
  --accent-border-hover: rgba(139, 111, 31, 0.4);
  --success: #2f6322;
  --success-bg: rgba(61, 122, 48, 0.08);
  --success-border: rgba(61, 122, 48, 0.25);
  --warning: #b5551a;
  --warning-bg: rgba(181, 85, 26, 0.08);
  --warning-border: rgba(181, 85, 26, 0.25);
  --on-accent: #ffffff;
  --stars-opacity: 0.15;
  --input-bg: rgba(0,0,0,0.03);
  --bg-overlay: rgba(255,255,255,0.8);
  --bg-nav: rgba(245,240,232,0.96);
  --border-input: rgba(0,0,0,0.1);
  --border-btn: rgba(0,0,0,0.12);
  --shadow-card: rgba(0,0,0,0.1);
  --shadow-hover: rgba(0,0,0,0.08);
  --accent-glow-strong: rgba(139,111,31,0.12);
  --success-bg-strong: rgba(61,122,48,0.15);
  --success-border-strong: rgba(61,122,48,0.4);
  --fade-gradient: rgba(245,240,232,0.95);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

/* ===== STARS ===== */
.stars {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(1px 1px at 20% 30%, #fff 100%, transparent),
    radial-gradient(1px 1px at 40% 70%, #fff 100%, transparent),
    radial-gradient(1.5px 1.5px at 60% 20%, #fff 100%, transparent),
    radial-gradient(1px 1px at 80% 80%, #fff 100%, transparent),
    radial-gradient(1px 1px at 10% 90%, #fff 100%, transparent),
    radial-gradient(1.5px 1.5px at 50% 50%, #fff 100%, transparent),
    radial-gradient(1px 1px at 30% 10%, #fff 100%, transparent),
    radial-gradient(1px 1px at 70% 40%, #fff 100%, transparent),
    radial-gradient(1.5px 1.5px at 90% 60%, #fff 100%, transparent),
    radial-gradient(1px 1px at 45% 85%, #fff 100%, transparent),
    radial-gradient(1px 1px at 15% 55%, #fff 100%, transparent),
    radial-gradient(1.5px 1.5px at 75% 15%, #fff 100%, transparent);
  background-size: 200px 200px;
  opacity: var(--stars-opacity);
}
.stars::after {
  content: '';
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(ellipse at 50% 0%, rgba(107, 63, 160, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

/* ===== LANG SWITCH ===== */
.lang-switch {
  position: fixed; top: 20px; right: 24px; z-index: 100;
  display: flex; gap: 4px;
}
.lang-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border-btn);
  background: var(--bg-overlay);
  color: var(--text-secondary); font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s; font-family: inherit;
}
.lang-btn:hover { border-color: var(--accent-border-hover); color: var(--accent); }
.lang-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--on-accent); border-color: var(--accent);
}

/* Theme Toggle */
.theme-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border-btn);
  background: var(--bg-overlay);
  color: var(--text); font-size: 1rem;
  cursor: pointer; transition: all 0.3s;
  line-height: 1;
}
.theme-btn:hover {
  border-color: var(--accent);
  transform: scale(1.1);
}

/* ===== WRAPPER ===== */
.wrapper { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0 16px; border-bottom: 1px solid var(--accent-border);
}
.logo {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.375rem; font-weight: 700;
  color: var(--accent); letter-spacing: 2px;
}
.logo span { color: var(--text); }
nav { display: flex; gap: 28px; align-items: center; }
nav a {
  color: var(--text-secondary); text-decoration: none; font-size: 1rem; font-weight: 400;
  transition: color 0.3s;
}
nav a:hover { color: var(--accent); }
.btn-header {
  background: transparent; border: 1px solid var(--accent); color: var(--accent);
  padding: 10px 24px; border-radius: 6px; font-size: 1rem;
  cursor: pointer; transition: all 0.3s; font-family: inherit;
}
.btn-header:hover { background: var(--accent-glow); }

/* ===== HERO ===== */
.hero {
  text-align: center; padding: 64px 0 48px;
}
.hero h1 {
  font-size: 2.5rem; font-weight: 700;
  color: var(--text); margin-bottom: 16px; letter-spacing: 1px;
  line-height: 1.3;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 1.0625rem; color: var(--text-secondary);
  max-width: 600px; margin: 0 auto 32px;
  line-height: 1.8;
}

/* ===== DAILY CARD ===== */
.daily-card {
  display: inline-flex; align-items: center; gap: 20px;
  background: var(--bg-card); border: 1px solid var(--accent-border-hover);
  border-radius: 12px; padding: 16px 28px;
  cursor: pointer; transition: all 0.3s;
}
.daily-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}
.daily-card-icon {
  width: 52px; height: 52px; border-radius: 8px;
  background: linear-gradient(135deg, #6b3fa0, #c9a84c);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.daily-card-text { text-align: left; }
.daily-card-text .label {
  font-size: 0.8125rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 4px;
}
.daily-card-text .title { font-size: 1.125rem; color: var(--text); font-weight: 600; }
.daily-card-text .sub { font-size: 0.875rem; color: var(--text-secondary); margin-top: 2px; }

/* ===== SPREADS ===== */
.section-title {
  font-size: 1.375rem; font-weight: 700; color: var(--text);
  margin-bottom: 8px; letter-spacing: 1px;
}
.section-sub {
  font-size: 1rem; color: var(--text-secondary); margin-bottom: 28px;
}
.spreads-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 40px;
}
.spread-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 22px 18px;
  text-align: center; cursor: pointer;
  transition: all 0.35s; position: relative; overflow: hidden;
}
.spread-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.spread-card:hover {
  border-color: var(--accent-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--shadow-card);
}
.spread-card:hover::before { opacity: 1; }
.spread-card .icon { font-size: 1.75rem; margin-bottom: 10px; display: block; }
.spread-card h3 { font-size: 1.0625rem; color: var(--text); font-weight: 600; margin-bottom: 6px; }
.spread-card p {
  font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6;
}
.spread-card .badge {
  display: inline-block; margin-top: 10px;
  font-size: 0.8125rem; color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 4px 14px; border-radius: 20px;
}
.spread-card .badge-free {
  color: var(--success);
  border-color: var(--success-border-strong);
  background: var(--success-bg-strong);
  font-weight: 600;
}
.spread-card .badge-premium {
  color: var(--accent);
  border-color: var(--accent-border-hover);
  background: var(--accent-glow-strong);
}

/* Restore hint (reading page) */
.restore-hint {
  text-align: center; color: var(--success);
  font-size: 0.85rem; margin: 10px 0; padding: 8px;
  background: var(--success-bg-strong); border-radius: 8px;
}

/* ===== STATS ===== */
.stats-bar {
  display: flex; justify-content: center; gap: 48px;
  padding: 24px 0; margin-bottom: 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-item .number {
  font-family: 'Georgia', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--accent); margin-bottom: 2px;
}
.stat-item .label {
  font-size: 0.875rem; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 1px;
}

/* ===== CTA ===== */
.cta-section {
  text-align: center; padding: 48px 0 56px;
}
.cta-section h2 {
  font-size: 1.625rem; font-weight: 700;
  color: var(--text); margin-bottom: 12px;
}
.cta-section p {
  font-size: 1rem; color: var(--text-secondary);
  margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--on-accent); border: none;
  padding: 16px 44px; border-radius: 6px;
  font-size: 1.0625rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s; font-family: inherit;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow-strong);
}

/* ===== FOOTER ===== */
footer {
  padding: 40px 0 24px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 28px;
}
.footer-brand .logo { font-size: 1.125rem; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }
.footer-col h4 {
  font-size: 1rem; color: var(--text); font-weight: 600; margin-bottom: 14px;
}
.footer-col a {
  display: block; font-size: 0.875rem; color: var(--text-secondary);
  text-decoration: none; margin-bottom: 8px; transition: color 0.3s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center; padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem; color: var(--text-muted);
}

/* Subscribe */
.subscribe {
  display: flex; gap: 8px; margin-top: 16px;
}
.subscribe input {
  flex: 1; background: var(--input-bg);
  border: 1px solid var(--border-input);
  border-radius: 6px; padding: 12px 16px; font-size: 1rem;
  color: var(--text); font-family: inherit;
}
.subscribe input::placeholder { color: var(--text-muted); }
.subscribe button {
  background: var(--accent); color: var(--on-accent); border: none;
  padding: 12px 20px; border-radius: 6px; font-size: 1rem;
  font-weight: 600; cursor: pointer; font-family: inherit;
  white-space: nowrap;
}

/* ===== MOBILE BOTTOM NAV (hidden on desktop) ===== */
.mobile-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; width: 100%;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--accent-border-hover);
  z-index: 200;
  justify-content: space-around;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
}
.mobile-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1; min-height: 52px; padding: 4px 2px;
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.6875rem; gap: 2px; transition: color 0.2s;
}
.mobile-nav a .mn-icon { font-size: 1.25rem; line-height: 1; }
.mobile-nav a.active { color: var(--accent); }
.mobile-nav a:hover { color: var(--accent); }

/* ===== TESTIMONIALS ===== */
.testimonials { padding: 40px 0 32px; }
.testimonials h2 {
  font-size: 1.5rem; font-weight: 700; color: var(--text);
  text-align: center; margin-bottom: 8px; letter-spacing: 1px;
}
.testimonials .section-sub {
  text-align: center; font-size: 0.9375rem; color: var(--text-secondary);
  margin-bottom: 28px;
}
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: 12px; padding: 24px 22px;
  transition: all 0.3s;
}
.testimonial-card:hover {
  border-color: var(--accent-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow-hover);
}
.testimonial-card .t-stars {
  color: var(--accent); font-size: 0.95rem; letter-spacing: 2px; margin-bottom: 12px;
}
.testimonial-card .t-text {
  color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.8;
  margin-bottom: 16px; font-style: italic;
}
.testimonial-card .t-author {
  color: var(--accent); font-size: 0.875rem; font-weight: 600;
  font-style: normal;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .spreads-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 2rem; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .spreads-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 1.625rem; }
  .hero-sub { font-size: 1rem; }
  .stats-bar { flex-wrap: wrap; gap: 24px; }
  nav { display: none; }
  .footer-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .subscribe input { min-width: 0; }
  .footer-col a { min-height: 44px; display: flex; align-items: center; }
  .lang-switch { top: 12px; right: 12px; }
  body { padding-bottom: 64px; }
  .mobile-nav { display: flex; }
}
@media (max-width: 480px) {
  .spreads-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ===== READING PAGE STYLES ===== */

/* Steps */
.steps {
  display: flex; justify-content: center; gap: 8px;
  margin: 28px 0 32px; flex-wrap: wrap;
}
.step {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 6px;
  background: var(--input-bg);
  color: var(--text-muted); font-size: 0.875rem;
  transition: all 0.3s;
}
.step.active {
  background: var(--accent-glow-strong);
  color: var(--accent);
  border: 1px solid var(--accent-border-hover);
}
.step.done { background: var(--accent-glow); color: var(--text-secondary); }
.step .num {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  border: 1px solid currentColor; flex-shrink: 0;
}
.step.active .num { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* Question */
.question-area { text-align: center; margin-bottom: 32px; }
.question-area h2 { font-size: 1.375rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.question-area p { font-size: 1rem; color: var(--text-secondary); margin-bottom: 18px; }
.question-input { max-width: 600px; margin: 0 auto; position: relative; }
.question-input input {
  width: 100%; background: var(--input-bg);
  border: 1px solid var(--border-input); border-radius: 8px;
  padding: 14px 80px 14px 18px; font-size: 1rem; color: var(--text);
  font-family: inherit;
}
.question-input input:focus { outline: none; border-color: var(--accent-border-hover); }
.question-input input::placeholder { color: var(--text-muted); }
.question-input .ask-btn {
  position: absolute; right: 6px; top: 6px;
  background: var(--accent); color: var(--on-accent); border: none;
  padding: 8px 22px; border-radius: 6px; font-size: 0.9375rem;
  font-weight: 600; cursor: pointer; font-family: inherit;
}
.quick-questions {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-top: 12px;
}
.quick-questions button {
  background: var(--input-bg);
  border: 1px solid var(--border-input);
  color: var(--text-secondary); padding: 8px 16px; border-radius: 20px;
  font-size: 0.875rem; cursor: pointer; font-family: inherit;
  transition: all 0.3s;
}
.quick-questions button:hover { border-color: var(--accent-border-hover); color: var(--accent); }

/* Spread display */
.spread-title { text-align: center; margin-bottom: 20px; }
.spread-title h3 { font-size: 1.25rem; color: var(--accent); font-weight: 700; }
.spread-title p { font-size: 0.875rem; color: var(--text-secondary); }

/* ===== CARD LAYOUT ===== */
.card-layout {
  display: flex; justify-content: center; gap: 32px;
  margin: 32px 0; flex-wrap: wrap;
}
.card-layout .card-slot {
  width: 130px; height: 200px;
  perspective: 800px;
  cursor: pointer;
  flex-shrink: 0;
}
.card-layout .card-inner {
  width: 100%; height: 100%;
  position: relative;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}
.card-layout .card-slot.revealed .card-inner {
  transform: rotateY(180deg);
}

/* ---- Card Back (face-down) — 神圣几何 · 日月星辰 美化版 ---- */
.card-back {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  backface-visibility: hidden;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(107, 63, 160, 0.28) 0%, transparent 60%),
    linear-gradient(145deg, #1a1a2e, #2a1a3e);
  border: 2px solid rgba(201, 168, 76, 0.35);
  border-radius: 10px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  overflow: hidden;
}
.card-back::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: url('../images/card-back.png') center/cover no-repeat;
  opacity: 0.35;
  z-index: 0;
}
.card-back::after {
  content: '';
  position: absolute; top: 4px; left: 4px; right: 4px; bottom: 4px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 7px;
  pointer-events: none;
  z-index: 0;
}
/* 神圣几何：中央对称花纹（生命之花意象） */
.card-back .back-geom {
  position: absolute; top: 50%; left: 50%;
  width: 70%; height: 70%;
  transform: translate(-50%, -50%);
  z-index: 0; opacity: 0.22;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 50%, transparent 38%, rgba(201,168,76,0.55) 39%, rgba(201,168,76,0.55) 41%, transparent 42%),
    radial-gradient(circle at 50% 32%, transparent 38%, rgba(201,168,76,0.45) 39%, rgba(201,168,76,0.45) 41%, transparent 42%),
    radial-gradient(circle at 50% 68%, transparent 38%, rgba(201,168,76,0.45) 39%, rgba(201,168,76,0.45) 41%, transparent 42%),
    radial-gradient(circle at 34% 41%, transparent 38%, rgba(201,168,76,0.45) 39%, rgba(201,168,76,0.45) 41%, transparent 42%),
    radial-gradient(circle at 66% 41%, transparent 38%, rgba(201,168,76,0.45) 39%, rgba(201,168,76,0.45) 41%, transparent 42%),
    radial-gradient(circle at 34% 59%, transparent 38%, rgba(201,168,76,0.45) 39%, rgba(201,168,76,0.45) 41%, transparent 42%),
    radial-gradient(circle at 66% 59%, transparent 38%, rgba(201,168,76,0.45) 39%, rgba(201,168,76,0.45) 41%, transparent 42%);
}
/* 日月轨道：太阳与月亮对称分布 */
.card-back .back-orbit {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 38px;
  margin-bottom: 2px;
}
.card-back .back-sun,
.card-back .back-moon {
  font-size: 0.85rem;
  line-height: 1;
  opacity: 0.7;
  text-shadow: 0 0 8px rgba(201,168,76,0.4);
}
.card-back .back-sun { color: rgba(255, 200, 120, 0.85); }
.card-back .back-moon { color: rgba(180, 200, 255, 0.85); }
/* 散落星辰 */
.card-back .back-stars {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.card-back .back-stars span {
  position: absolute;
  width: 2px; height: 2px;
  background: rgba(245, 240, 232, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(245, 240, 232, 0.6);
}
.card-back .back-star {
  font-size: 2.5rem; color: rgba(201, 168, 76, 0.9);
  position: relative; z-index: 1;
  text-shadow: 0 0 16px rgba(201, 168, 76, 0.55), 0 0 30px rgba(201, 168, 76, 0.25);
  line-height: 1;
}
.card-back .back-label {
  font-size: 0.6rem; color: rgba(201, 168, 76, 0.7);
  letter-spacing: 4px; text-transform: uppercase;
  margin-top: 8px; font-weight: 700;
  position: relative; z-index: 1;
  font-family: 'Georgia', serif;
}
.card-back:hover {
  border-color: rgba(201, 168, 76, 0.7);
  box-shadow: 0 12px 40px rgba(201, 168, 76, 0.15);
}
.card-back:hover .back-star {
  color: rgba(201, 168, 76, 1);
  text-shadow: 0 0 20px rgba(201, 168, 76, 0.7), 0 0 40px rgba(201, 168, 76, 0.3);
}
.card-back:hover .back-geom { opacity: 0.35; }
.card-back:hover .back-sun,
.card-back:hover .back-moon { opacity: 0.95; }

/* ---- Card Front (face-up) ---- */
.card-front {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  display: flex; flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transform: rotateY(180deg);
  overflow: hidden;
}
/* Reversed cards: rotate the front content 180° (Z-axis) */
.card-front.reversed { transform: rotateY(180deg) rotate(180deg); }
/* Suit-specific gradients & borders */
.card-front.suit-major {
  background: linear-gradient(145deg, rgba(42, 26, 62, 0.45), rgba(58, 42, 94, 0.45)), url('../images/cards/suit-major.png') center/cover;
  border: 2px solid #c9a84c;
  color: var(--text);
}
.card-front.suit-major .card-suit-icon { color: var(--accent); }
.card-front.suit-major .card-name { color: #e8d5a0; }

.card-front.suit-wands {
  background: linear-gradient(145deg, rgba(42, 26, 26, 0.45), rgba(58, 42, 26, 0.45)), url('../images/cards/suit-wands.png') center/cover;
  border: 2px solid #d4743a;
  color: #f5e8d0;
}
.card-front.suit-wands .card-suit-icon { color: #d4743a; }
.card-front.suit-wands .card-name { color: #f0c8a0; }

.card-front.suit-cups {
  background: linear-gradient(145deg, rgba(26, 42, 58, 0.45), rgba(26, 42, 74, 0.45)), url('../images/cards/suit-cups.png') center/cover;
  border: 2px solid #4a8fc9;
  color: #d0e8f5;
}
.card-front.suit-cups .card-suit-icon { color: #4a8fc9; }
.card-front.suit-cups .card-name { color: #a0d0f0; }

.card-front.suit-swords {
  background: linear-gradient(145deg, rgba(26, 26, 42, 0.45), rgba(42, 42, 58, 0.45)), url('../images/cards/suit-swords.png') center/cover;
  border: 2px solid #8a8a9a;
  color: #e8e8f0;
}
.card-front.suit-swords .card-suit-icon { color: #b0b0c0; }
.card-front.suit-swords .card-name { color: #c0c0d0; }

.card-front.suit-pentacles {
  background: linear-gradient(145deg, rgba(26, 42, 26, 0.45), rgba(42, 58, 42, 0.45)), url('../images/cards/suit-pentacles.png') center/cover;
  border: 2px solid #5a9a4a;
  color: #d0f0d0;
}
.card-front.suit-pentacles .card-suit-icon { color: #5a9a4a; }
.card-front.suit-pentacles .card-name { color: #a0d0a0; }

.card-front .card-suit-icon {
  font-size: 1.125rem;
  margin-top: 4px;
  opacity: 0.8;
}
.card-front .card-name {
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  margin-top: 6px;
  flex: 1;
  display: flex; align-items: center;
  word-break: break-word;
}
.card-front .card-ornament {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.25;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.625rem;
  margin-top: auto;
}
.card-front .card-orientation {
  font-size: 0.5625rem;
  opacity: 0.5;
  margin-top: 2px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.card-front .corner {
  position: absolute;
  font-size: 0.5rem;
  opacity: 0.3;
  font-weight: 700;
}
.card-front .corner-tl { top: 6px; left: 8px; }
.card-front .corner-br { bottom: 6px; right: 8px; transform: rotate(180deg); }

/* Position label below card */
.card-layout .slot-position {
  text-align: center;
  font-size: 0.6875rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}
.card-layout .slot:hover .slot-position {
  color: var(--accent);
  font-weight: 600;
}

/* Legacy cross-layout cards */
.cross-card {
  position: absolute;
  width: 90px; height: 135px;
  border-radius: 8px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 0.6875rem;
  text-align: center; padding: 6px;
  cursor: pointer;
  transition: all 0.4s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  overflow: hidden;
}
.cross-card.back {
  background: linear-gradient(145deg, #1a1a2e, #2a1a3e);
  border: 1px solid rgba(201, 168, 76, 0.18);
  color: var(--accent);
}
.cross-card.back::before {
  content: '✦'; font-size: 1rem;
}
.cross-card.revealed {
  border-color: var(--accent);
  color: var(--text);
  font-weight: 600;
}

/* ============================================================
   专属牌阵布局（按国际塔罗标准排列）
   每张牌绝对定位，牌位标签悬浮于牌下方
   ============================================================ */

/* ---- 通用：专属布局内的牌位 ---- */
[class^="layout-"] {
  position: relative;
  margin: 24px auto 32px;
}
[class^="layout-"] .card-slot {
  position: absolute;
  width: 88px;
  height: 128px;
  perspective: 800px;
  cursor: pointer;
}
[class^="layout-"] .card-inner {
  width: 100%; height: 100%;
  position: relative;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}
[class^="layout-"] .card-slot.revealed .card-inner {
  transform: rotateY(180deg);
}
[class^="layout-"] .slot-position {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  width: 120px;
  text-align: center;
  font-size: 0.625rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[class^="layout-"] .card-slot:hover .slot-position {
  color: var(--accent);
}

/* ---- 五芒星牌阵（5张·星形/五角排列）---- */
.layout-star {
  width: 420px; height: 400px;
}
.layout-star .card-slot { width: 90px; height: 130px; }
.layout-star .card-slot:nth-child(1) { left: 165px; top: 15px; }   /* 顶点·事业 */
.layout-star .card-slot:nth-child(2) { left: 289px; top: 105px; }  /* 右上·财运 */
.layout-star .card-slot:nth-child(3) { left: 241px; top: 250px; }  /* 右下·爱情 */
.layout-star .card-slot:nth-child(4) { left: 89px; top: 250px; }   /* 左下·健康 */
.layout-star .card-slot:nth-child(5) { left: 41px; top: 105px; }   /* 左上·灵性 */

/* ---- 马蹄铁牌阵（7张·弧形∩）---- */
.layout-horseshoe {
  width: 560px; height: 400px;
}
.layout-horseshoe .card-slot { width: 84px; height: 120px; }
.layout-horseshoe .card-slot:nth-child(1) { left: 18px;  top: 257px; }  /* 左端·过去 */
.layout-horseshoe .card-slot:nth-child(2) { left: 48px;  top: 147px; }
.layout-horseshoe .card-slot:nth-child(3) { left: 128px; top: 67px; }
.layout-horseshoe .card-slot:nth-child(4) { left: 238px; top: 37px; }   /* 顶点·现在 */
.layout-horseshoe .card-slot:nth-child(5) { left: 348px; top: 67px; }
.layout-horseshoe .card-slot:nth-child(6) { left: 428px; top: 147px; }
.layout-horseshoe .card-slot:nth-child(7) { left: 458px; top: 257px; }  /* 右端·结果 */

/* ---- 七脉轮牌阵（7张·垂直排列）---- */
.layout-chakra {
  width: 220px; height: 720px;
}
.layout-chakra .card-slot { width: 100px; height: 140px; left: 60px; }
.layout-chakra .card-slot:nth-child(1) { top: 0px; }
.layout-chakra .card-slot:nth-child(2) { top: 96px; }
.layout-chakra .card-slot:nth-child(3) { top: 192px; }
.layout-chakra .card-slot:nth-child(4) { top: 288px; }
.layout-chakra .card-slot:nth-child(5) { top: 384px; }
.layout-chakra .card-slot:nth-child(6) { top: 480px; }
.layout-chakra .card-slot:nth-child(7) { top: 576px; }

/* ---- 凯尔特十字牌阵（10张·十字+权杖）---- */
.layout-cross {
  width: 480px; height: 420px;
}
.layout-cross .card-slot { width: 76px; height: 110px; }
.layout-cross .card-slot:nth-child(1) { left: 112px; top: 115px; }  /* 中心·现状 */
.layout-cross .card-slot:nth-child(2) { left: 112px; top: 115px; transform: rotate(90deg); }  /* 横跨·阻碍 */
.layout-cross .card-slot:nth-child(3) { left: 12px;  top: 115px; }  /* 左·过去 */
.layout-cross .card-slot:nth-child(4) { left: 212px; top: 115px; }  /* 右·未来 */
.layout-cross .card-slot:nth-child(5) { left: 112px; top: 5px; }    /* 上·目标 */
.layout-cross .card-slot:nth-child(6) { left: 112px; top: 225px; }  /* 下·基础 */
.layout-cross .card-slot:nth-child(7)  { left: 322px; top: 285px; } /* 权杖底·建议 */
.layout-cross .card-slot:nth-child(8)  { left: 322px; top: 215px; } /* 环境 */
.layout-cross .card-slot:nth-child(9)  { left: 322px; top: 145px; }   /* 希望/恐惧 */
.layout-cross .card-slot:nth-child(10) { left: 322px; top: 75px; }  /* 权杖顶·结果 */

/* ---- 生命之树牌阵（10张·卡巴拉树形）---- */
.layout-tree {
  width: 420px; height: 540px;
}
.layout-tree .card-slot { width: 84px; height: 120px; }
.layout-tree .card-slot:nth-child(1)  { left: 168px; top: 10px; }   /* Kether·王冠 */
.layout-tree .card-slot:nth-child(2)  { left: 268px; top: 60px; }   /* Chokmah·智慧（右上）*/
.layout-tree .card-slot:nth-child(3)  { left: 68px;  top: 60px; }   /* Binah·理解（左上）*/
.layout-tree .card-slot:nth-child(4)  { left: 268px; top: 160px; }  /* Chesed·慈悲（右中）*/
.layout-tree .card-slot:nth-child(5)  { left: 68px;  top: 160px; }  /* Gevurah·严厉（左中）*/
.layout-tree .card-slot:nth-child(6)  { left: 168px; top: 180px; }  /* Tiferet·美丽（中心）*/
.layout-tree .card-slot:nth-child(7)  { left: 268px; top: 280px; }  /* Netzach·胜利（右下）*/
.layout-tree .card-slot:nth-child(8)  { left: 68px;  top: 280px; }  /* Hod·荣耀（左下）*/
.layout-tree .card-slot:nth-child(9)  { left: 168px; top: 320px; }  /* Yesod·根基（中下）*/
.layout-tree .card-slot:nth-child(10) { left: 168px; top: 420px; }  /* Malkuth·王国（底）*/

/* ---- 黄道十二宫牌阵（12张·圆形钟面）---- */
.layout-zodiac {
  width: 520px; height: 520px;
}
.layout-zodiac .card-slot { width: 76px; height: 110px; }
.layout-zodiac .card-slot:nth-child(1)  { left: 222px; top: 8px; }    /* 第1宫·自我（12点）*/
.layout-zodiac .card-slot:nth-child(2)  { left: 322px; top: 35px; }   /* 第2宫（1点）*/
.layout-zodiac .card-slot:nth-child(3)  { left: 395px; top: 108px; }  /* 第3宫（2点）*/
.layout-zodiac .card-slot:nth-child(4)  { left: 422px; top: 208px; }  /* 第4宫（3点）*/
.layout-zodiac .card-slot:nth-child(5)  { left: 395px; top: 308px; }  /* 第5宫（4点）*/
.layout-zodiac .card-slot:nth-child(6)  { left: 322px; top: 381px; }  /* 第6宫（5点）*/
.layout-zodiac .card-slot:nth-child(7)  { left: 222px; top: 408px; }  /* 第7宫（6点）*/
.layout-zodiac .card-slot:nth-child(8)  { left: 122px; top: 381px; }  /* 第8宫（7点）*/
.layout-zodiac .card-slot:nth-child(9)  { left: 49px;  top: 308px; }  /* 第9宫（8点）*/
.layout-zodiac .card-slot:nth-child(10) { left: 22px;  top: 208px; }  /* 第10宫（9点）*/
.layout-zodiac .card-slot:nth-child(11) { left: 49px;  top: 108px; }  /* 第11宫（10点）*/
.layout-zodiac .card-slot:nth-child(12) { left: 122px; top: 35px; }   /* 第12宫（11点）*/

/* ---- 钻石牌阵（4张·菱形）---- */
.layout-diamond {
  width: 340px; height: 400px;
}
.layout-diamond .card-slot { width: 90px; height: 130px; }
.layout-diamond .card-slot:nth-child(1) { left: 125px; top: 0px; }    /* 顶·核心问题 */
.layout-diamond .card-slot:nth-child(2) { left: 205px; top: 125px; }  /* 右·有利因素 */
.layout-diamond .card-slot:nth-child(3) { left: 125px; top: 255px; }  /* 底·最终结果 */
.layout-diamond .card-slot:nth-child(4) { left: 45px;  top: 125px; }  /* 左·不利因素 */

/* ---- 专属布局响应式：小屏水平滚动 + 缩放 ---- */
@media (max-width: 768px) {
  [class^="layout-"] {
    transform: scale(0.78);
    transform-origin: top center;
  }
}
@media (max-width: 480px) {
  [class^="layout-"] {
    transform: scale(0.62);
    transform-origin: top center;
  }
}

/* Interpretation Preview */
.interpretation-preview {
  background: var(--bg-primary, rgba(26, 26, 46, 0.6));
  border: 1px solid var(--border);
  border-radius: 12px; padding: 28px;
  margin: 32px 0;
}
.interpretation-preview .preview-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 18px;
}
.interpretation-preview .mini-card {
  width: 44px; height: 66px;
  background: linear-gradient(135deg, #6b3fa0, #c9a84c);
  border-radius: 4px; flex-shrink: 0;
}
.interpretation-preview .preview-header h4 { font-size: 1.0625rem; color: var(--text); }
.interpretation-preview .preview-header .pos-label {
  font-size: 0.8125rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1px;
}
.interpretation-preview .preview-text { font-size: 1rem; color: var(--text); line-height: 1.8; }
.interpretation-preview .preview-fade {
  position: relative;
  max-height: 110px; overflow: hidden;
}
.interpretation-preview .preview-fade::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; width: 100%; height: 50px;
  background: linear-gradient(transparent, var(--fade-gradient));
}
/* 免费牌阵：展开完整解读，移除高度限制和渐变遮罩 */
.interpretation-preview .preview-fade.expanded {
  max-height: none; overflow: visible;
}
.interpretation-preview .preview-fade.expanded::after {
  display: none;
}
/* 免费完整解读按钮悬停效果 */
#freePreviewLabel:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90, 154, 74, 0.2);
}
#freePreviewLabel:active {
  transform: translateY(0);
}

/* Paywall */
.paywall {
  text-align: center;
  background: linear-gradient(135deg, rgba(107,63,160,0.1), rgba(201,168,76,0.06));
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 12px;
  padding: 36px 28px;
  margin: 28px 0 40px;
}
.paywall .lock-icon { font-size: 2.25rem; margin-bottom: 10px; display: block; }
.paywall h3 { font-size: 1.25rem; color: var(--text); margin-bottom: 8px; }
.paywall p { font-size: 1rem; color: var(--text-secondary); margin-bottom: 18px; }
.paywall .price {
  font-family: 'Georgia', serif;
  font-size: 2.25rem; font-weight: 700;
  color: var(--accent); margin-bottom: 4px;
}
.paywall .price-sub {
  font-size: 0.875rem; color: var(--text-muted); margin-bottom: 18px;
}
.paywall .pay-btn {
  background: linear-gradient(135deg, #c9a84c, #b8943f);
  color: #0a0a12; border: none;
  padding: 14px 44px; border-radius: 6px;
  font-size: 1.0625rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s; font-family: inherit;
}
.paywall .pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.25);
}
.paywall .payment-logos {
  display: flex; justify-content: center; gap: 16px; margin-top: 14px;
}
.paywall .payment-logos span { font-size: 1.375rem; opacity: 0.5; }

/* Email Delivery */
.email-delivery {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 28px 0;
  display: flex; align-items: center; gap: 18px;
}
.email-delivery .icon { font-size: 1.5rem; flex-shrink: 0; }
.email-delivery .info { flex: 1; }
.email-delivery .info h4 { font-size: 1rem; color: var(--text); margin-bottom: 2px; }
.email-delivery .info p { font-size: 0.875rem; color: var(--text-secondary); }
.email-delivery input {
  background: var(--input-bg);
  border: 1px solid var(--border-input);
  border-radius: 6px; padding: 10px 14px;
  font-size: 1rem; color: var(--text); font-family: inherit;
  min-width: 220px;
}
.email-delivery input::placeholder { color: var(--text-muted); }

/* Result Page */
.success-banner { text-align: center; padding: 40px 24px 28px; margin-bottom: 28px; }
.success-banner .check-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #c9a84c, #b8943f);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 2.25rem; color: #0a0a12;
  box-shadow: 0 0 36px rgba(201, 168, 76, 0.15);
}
.success-banner h2 { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.success-banner p { font-size: 1rem; color: var(--text-secondary); max-width: 500px; margin: 0 auto; }
.success-banner .order-id { font-size: 0.8125rem; color: var(--text-muted); margin-top: 10px; }

.order-summary {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 28px;
  margin-bottom: 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.order-summary .spread-name { font-size: 1.0625rem; color: var(--text); font-weight: 600; }
.order-summary .spread-detail { font-size: 0.875rem; color: var(--text-secondary); margin-top: 4px; }
.order-summary .order-price {
  font-family: 'Georgia', serif;
  font-size: 1.375rem; font-weight: 700; color: var(--accent);
}

.reading-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 18px; overflow: hidden;
  transition: border-color 0.3s;
}
.reading-card:hover { border-color: rgba(201, 168, 76, 0.18); }
.reading-card .card-header {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  background: var(--input-bg);
  border-bottom: 1px solid var(--border-input);
}
.reading-card .card-thumb {
  width: 48px; height: 72px;
  background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--accent); font-weight: 700; flex-shrink: 0;
}
.reading-card .card-header-info h4 { font-size: 1.0625rem; color: var(--text); font-weight: 600; }
.reading-card .card-header-info .position-tag {
  font-size: 0.75rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px;
}
.reading-card .card-body { padding: 22px; }
.reading-card .card-body p { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 10px; }
.reading-card .card-body .key-words {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px;
}
.reading-card .card-body .key-words span {
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.12);
  padding: 5px 12px; border-radius: 20px;
  font-size: 0.8125rem; color: var(--accent);
}

.synthesis {
  background: linear-gradient(135deg, var(--accent-glow-strong), var(--accent-glow));
  border: 1px solid var(--accent-border);
  border-radius: 12px; padding: 28px; margin-bottom: 28px;
}
.synthesis h3 {
  font-size: 1.125rem; color: var(--accent);
  margin-bottom: 14px; text-align: center;
}
.synthesis p { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; }

.action-steps {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 28px; margin-bottom: 28px;
}
.action-steps h3 { font-size: 1.0625rem; color: var(--text); margin-bottom: 14px; }
.action-steps ol { padding-left: 20px; }
.action-steps ol li { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 8px; }
.action-steps ol li strong { color: var(--accent); }

.share-section {
  display: flex; justify-content: center; gap: 12px;
  padding: 28px 0; flex-wrap: wrap;
  border-top: 1px solid var(--border-input);
  margin-bottom: 20px;
}
.share-btn {
  background: var(--input-bg);
  border: 1px solid var(--border-input);
  color: var(--text-secondary); padding: 10px 22px;
  border-radius: 6px; font-size: 1rem;
  cursor: pointer; transition: all 0.3s; font-family: inherit;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Celtic Cross */
.cross-layout {
  position: relative;
  width: 380px; height: 380px;
  margin: 0 auto 32px;
}
.cross-card {
  position: absolute;
  width: 76px; height: 114px;
  background: linear-gradient(145deg, #1a1a2e, #2a1a3e);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--accent);
  cursor: pointer;
  transition: all 0.4s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  text-align: center; padding: 3px;
}
.cross-card:hover {
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.1);
}
.cross-card.revealed {
  background: linear-gradient(145deg, #2a1a3e, #3a2a5e);
  border-color: var(--accent);
  color: var(--text);
  font-weight: 600;
}
.cross-card:nth-child(1) { top: 135px; left: 152px; z-index: 2; }
.cross-card:nth-child(2) { top: 135px; left: 152px; z-index: 1; transform: translateX(14px); }
.cross-card:nth-child(3) { bottom: 16px; left: 152px; }
.cross-card:nth-child(4) { top: 0; left: 152px; }
.cross-card:nth-child(5) { top: 56px; left: 16px; }
.cross-card:nth-child(6) { top: 56px; right: 16px; }
.cross-card:nth-child(7) { bottom: 96px; left: -8px; }
.cross-card:nth-child(8) { bottom: 96px; right: -8px; }
.cross-card:nth-child(9) { top: -16px; left: 96px; }
.cross-card:nth-child(10) { bottom: -16px; right: 96px; }

/* Page Header */
.page-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0 16px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}
.page-header .logo {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.25rem; font-weight: 700; color: var(--accent); letter-spacing: 2px;
}
.page-header .back-link {
  color: var(--text-secondary); text-decoration: none; font-size: 1rem;
}
.page-header .back-link:hover { color: var(--accent); }
/* 返回首页按钮（更醒目） */
.page-header .back-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 18px; border-radius: 20px;
  color: var(--on-accent); text-decoration: none; font-size: 0.9rem; font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  box-shadow: 0 2px 12px var(--accent-glow-strong);
  transition: all 0.3s;
}
.page-header .back-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px var(--accent-glow-strong);
  opacity: 0.92;
}

@media (max-width: 768px) {
  .cross-layout { width: 300px; height: 300px; }
  .cross-card { width: 58px; height: 88px; font-size: 0.625rem; }
  .card-layout { gap: 16px; }
  .card-layout .card-slot { width: 100px; height: 155px; }
  .card-front .card-name { font-size: 0.6rem; }
  .card-front .card-suit-icon { font-size: 0.875rem; }
  .email-delivery { flex-direction: column; }
  .email-delivery input { min-width: 100%; }
  .order-summary { flex-direction: column; text-align: center; gap: 12px; }
}
@media (max-width: 480px) {
  .card-layout .card-slot { width: 80px; height: 125px; }
  .card-front { padding: 8px 4px; }
  .card-front .card-name { font-size: 0.5rem; }
  .card-front .card-suit-icon { font-size: 0.75rem; }
  .card-front .corner { display: none; }
}

/* ===== Shuffle Animation (Step 2) ===== */
@keyframes shuffleSpin {
  0%   { transform: translateX(0) rotate(0deg); }
  25%  { transform: translateX(-30px) rotate(-8deg); }
  50%  { transform: translateX(30px) rotate(8deg); }
  75%  { transform: translateX(-20px) rotate(-4deg); }
  100% { transform: translateX(0) rotate(0deg); }
}
@keyframes shuffleFan {
  0%   { transform: rotate(0deg) translateY(0); }
  50%  { transform: rotate(var(--fan-angle, 0deg)) translateY(-10px); }
  100% { transform: rotate(0deg) translateY(0); }
}
.shuffle-stage {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.88); z-index: 9998;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  animation: fadeIn 0.3s;
}
.shuffle-deck {
  position: relative; width: 120px; height: 170px; margin-bottom: 28px;
}
.shuffle-deck .shuffle-card {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a1a2e, #2a2a4e);
  border: 1px solid #c9a84c;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.6rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  animation: shuffleSpin 0.6s ease-in-out infinite;
}
.shuffle-text {
  color: var(--accent); font-size: 1.1rem; letter-spacing: 2px;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }
.step.shuffling { background: rgba(201, 168, 76, 0.2); color: var(--accent); border: 1px solid rgba(201, 168, 76, 0.4); }
.step.shuffling .num { animation: pulse 0.8s ease-in-out infinite; }

/* ===== Card Detail Modal ===== */
.card-detail-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.25s; padding: 20px; overflow-y: auto;
}
.card-detail-box {
  background: linear-gradient(160deg, #1a1a2e, #16162a);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 16px; padding: 28px 32px;
  max-width: 460px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: slideUp 0.3s;
  max-height: 90vh; overflow-y: auto;
}
.card-detail-img {
  width: 110px; height: 160px; border-radius: 8px; margin: 0 auto 16px;
  background-size: cover; background-position: center;
  border: 1px solid rgba(201,168,76,0.3);
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.card-detail-name { text-align: center; font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.card-detail-orient { text-align: center; font-size: 0.9rem; margin-bottom: 12px; }
.card-detail-pos { text-align: center; font-size: 0.8rem; color: var(--accent); background: rgba(201,168,76,0.1); padding: 4px 14px; border-radius: 12px; display: inline-block; margin: 0 auto 16px; }
.card-detail-pos-wrap { text-align: center; margin-bottom: 16px; }
.card-detail-kw { color: var(--accent); font-size: 0.85rem; margin-bottom: 10px; line-height: 1.6; }
.card-detail-meaning { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.75; }
.card-detail-close {
  display: block; margin: 20px auto 0; background: transparent;
  color: var(--text-secondary); border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 28px; border-radius: 8px; cursor: pointer; font-size: 0.875rem;
}
.card-detail-close:hover { color: var(--accent); border-color: var(--accent); }
.card-slot.revealed { cursor: pointer; }
.card-slot.revealed:hover .card-inner { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(201,168,76,0.25); }

/* ==================== Age Verification Modal（参照 2.60 版本命理站弹窗） ==================== */
.age-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, rgba(42, 26, 62, 0.65) 0%, rgba(10, 10, 26, 0.95) 70%, rgba(0, 0, 0, 0.98) 100%);
  z-index: 20000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.age-modal.active {
  display: flex;
  animation: ageOverlayFade 0.4s ease;
}
@keyframes ageOverlayFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.age-modal-content {
  background: linear-gradient(160deg, rgba(18, 18, 42, 0.96) 0%, rgba(26, 26, 46, 0.96) 50%, rgba(10, 10, 26, 0.98) 100%);
  border: 1px solid var(--accent-border-hover);
  border-radius: 16px;
  padding: 44px 36px 32px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: ageContentRise 0.4s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
@keyframes ageContentRise {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.age-modal-title {
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 1.5rem;
  font-weight: 700;
}
.age-modal-subtitle {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.7;
}
.age-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.age-btn-confirm {
  width: 100%;
  max-width: 320px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--on-accent);
  border: none;
  border-radius: 10px;
  padding: 13px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}
.age-btn-confirm:hover { filter: brightness(1.1); transform: translateY(-1px); }
.age-btn-confirm:active { transform: translateY(1px); }
.age-btn-decline {
  width: 100%;
  max-width: 320px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-btn);
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.age-btn-decline:hover { background: rgba(255,255,255,0.06); color: var(--text); }
