:root {
  --bg-deep: #0b0914;
  --bg-card-deck: #151226;
  --gold-primary: #dfba73;
  --gold-glow: rgba(223, 186, 115, 0.25);
  --gold-border: #4a3b1d;
  --text-gold: #f3e5ab;
  --text-muted: #9f9bb3;
  --card-purple: #231d3d;
  --font-serif: "Cinzel", "Times New Roman", "Songti SC", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(88, 71, 37, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(35, 29, 61, 0.3) 0%, transparent 60%);
  color: #fff;
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.6;
}

/* 顶部与总站返回条 */
.top-hub-nav {
  background: #06050b;
  color: var(--text-muted);
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--gold-border);
}
.top-hub-nav a {
  color: var(--gold-primary);
  text-decoration: none;
  font-weight: 600;
}

/* 品牌区 */
.labyrinthos-header {
  text-align: center;
  padding: 40px 20px 20px;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold-primary);
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 6px;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}

/* 占卜台桌面 (Tarot Altar) */
.altar-board {
  background: var(--bg-card-deck);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 40px 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  margin-bottom: 36px;
  text-align: center;
  position: relative;
}

.spread-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.spread-hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* 3牌牌阵容器 */
.spread-cards-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  perspective: 1200px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.card-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.slot-label {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  color: var(--gold-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* 3D 翻转卡牌 */
.tarot-flip-card {
  width: 170px;
  height: 270px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border-radius: 12px;
}

.tarot-flip-card.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* 牌背：几何圣光纹样 */
.card-back {
  background: linear-gradient(135deg, #181330 0%, #0d0a1c 100%);
  border: 2px solid var(--gold-primary);
  color: var(--gold-primary);
  position: relative;
  overflow: hidden;
}

.card-back::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px dashed var(--gold-border);
  border-radius: 50%;
  pointer-events: none;
}

.card-back-icon {
  font-size: 36px;
  filter: drop-shadow(0 0 10px var(--gold-glow));
}

.card-back-text {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  margin-top: 10px;
  opacity: 0.8;
}

/* 牌面：高颜值神秘插画 */
.card-front {
  background: linear-gradient(180deg, #241c42 0%, #15102a 100%);
  border: 2px solid var(--gold-primary);
  transform: rotateY(180deg);
  color: #fff;
  text-align: center;
}

.front-art-box {
  width: 100%;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.front-card-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1.2;
}

.front-card-state {
  font-size: 0.75rem;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}
.state-upright {
  background: rgba(52, 211, 153, 0.2);
  color: #6ee7b7;
}
.state-reversed {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
}

/* 控制按钮 */
.altar-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-primary), #b45309);
  color: #1a1405;
  border: none;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 12px 28px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--gold-glow);
  transition: all 0.2s;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(223, 186, 115, 0.45);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--gold-border);
  color: var(--gold-primary);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost:hover {
  background: rgba(223, 186, 115, 0.1);
}

/* 牌阵完整解读区 */
.reading-sheet {
  display: none;
  background: var(--bg-card-deck);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 36px 32px;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.sheet-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold-primary);
  border-bottom: 1px solid var(--gold-border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.spread-analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.analysis-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(223, 186, 115, 0.2);
  border-radius: 10px;
  padding: 20px;
}

.analysis-pos {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--gold-primary);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.analysis-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.analysis-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.synthesis-box {
  background: rgba(223, 186, 115, 0.05);
  border-left: 3px solid var(--gold-primary);
  padding: 20px;
  border-radius: 0 8px 8px 0;
  line-height: 1.8;
  color: #e2e8f0;
}

@media (max-width: 768px) {
  .spread-analysis-grid { grid-template-columns: 1fr; }
  .tarot-flip-card { width: 130px; height: 210px; }
}
