/* 天机阁现代国风暗色玄学样式 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  --bg-primary: #0a0e17;
  --bg-card: #121927;
  --bg-card-hover: #1a2336;
  --border-gold: rgba(217, 119, 6, 0.3);
  --gold-glow: rgba(245, 158, 11, 0.4);
  --text-gold: #f59e0b;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  background-color: var(--bg-primary);
  color: #e2e8f0;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 40%);
  min-height: 100vh;
}

.font-serif-sc {
  font-family: 'Noto Serif SC', serif;
}

/* 金色高光边框卡片 */
.glass-card {
  background: rgba(18, 25, 39, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 35px -8px rgba(245, 158, 11, 0.15);
}

/* 八字干支专用大字 */
.ganzhi-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(245, 158, 11, 0.25);
  position: relative;
  overflow: hidden;
}

.ganzhi-box::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #f59e0b, transparent);
}

/* 五行专用色彩 */
.wx-gold { color: #facc15; }     /* 金 - 耀金 */
.wx-wood { color: #4ade80; }     /* 木 - 翠木 */
.wx-water { color: #38bdf8; }    /* 水 - 沧水 */
.wx-fire { color: #f87171; }     /* 火 - 赤火 */
.wx-earth { color: #fb923c; }    /* 土 - 坤土 */

.bg-wx-gold { background-color: rgba(250, 204, 21, 0.15); border-color: rgba(250, 204, 21, 0.4); }
.bg-wx-wood { background-color: rgba(74, 222, 128, 0.15); border-color: rgba(74, 222, 128, 0.4); }
.bg-wx-water { background-color: rgba(56, 189, 248, 0.15); border-color: rgba(56, 189, 248, 0.4); }
.bg-wx-fire { background-color: rgba(248, 113, 113, 0.15); border-color: rgba(248, 113, 113, 0.4); }
.bg-wx-earth { background-color: rgba(251, 146, 60, 0.15); border-color: rgba(251, 146, 60, 0.4); }

/* 塔罗牌翻转特效 */
.tarot-card-container {
  perspective: 1000px;
}

.tarot-card {
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

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

.tarot-front, .tarot-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.tarot-front {
  transform: rotateY(180deg);
}

/* 签筒晃动动画 */
@keyframes shake-barrel {
  0% { transform: rotate(0deg) translateY(0); }
  20% { transform: rotate(-8deg) translateY(-8px); }
  40% { transform: rotate(8deg) translateY(-14px); }
  60% { transform: rotate(-6deg) translateY(-8px); }
  80% { transform: rotate(6deg) translateY(-12px); }
  100% { transform: rotate(0deg) translateY(0); }
}

.barrel-shake {
  animation: shake-barrel 0.6s infinite ease-in-out;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}
