/* ========================================================
   AETHER TAROT / 灵境塔罗
   配色: #0B0816 主底 | #C5A880 香槟金 | #5D5470 暮光紫 | #1D2A4A 极光蓝
   字体: CN 纤细无衬线 | EN Playfair Display + Georgia
   ======================================================== */

:root {
  --bg: #0B0816;
  --bg-2: #0F0B1E;
  --gold: #C5A880;
  --gold-2: #E8D5A8;
  --gold-dim: rgba(197, 168, 128, 0.4);
  --purple: #5D5470;
  --aurora: #1D2A4A;
  --text: #E8E4D8;
  --text-dim: #8B8478;
  --glass: rgba(197, 168, 128, 0.06);
  --glass-border: rgba(197, 168, 128, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: 0.5px;
}

body.en { font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif; }
body.en * { font-family: 'Playfair Display', 'Georgia', serif; }
body.cn { font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; }

/* === 星空背景层 === */
body::before {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(93, 84, 112, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(29, 42, 74, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(197, 168, 128, 0.08) 0%, transparent 40%);
  z-index: -2;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(232, 213, 168, 0.6), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(232, 213, 168, 0.4), transparent),
    radial-gradient(1px 1px at 60% 20%, rgba(232, 213, 168, 0.5), transparent),
    radial-gradient(1px 1px at 80% 50%, rgba(232, 213, 168, 0.3), transparent),
    radial-gradient(1px 1px at 10% 80%, rgba(232, 213, 168, 0.4), transparent),
    radial-gradient(1px 1px at 90% 10%, rgba(232, 213, 168, 0.5), transparent);
  background-size: 200% 200%;
  z-index: -1;
  pointer-events: none;
  animation: starTwinkle 8s ease-in-out infinite;
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

/* === 顶部导航 === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(180deg, rgba(11, 8, 22, 0.85) 0%, rgba(11, 8, 22, 0) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.logo {
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(197, 168, 128, 0.3);
  cursor: pointer;
}
body.en .logo { letter-spacing: 6px; font-size: 15px; font-style: italic; }
.logo .glyph {
  display: inline-block; width: 24px; height: 24px; vertical-align: middle;
  margin-right: 8px; opacity: 0.85;
}
.lang-switch {
  display: flex; gap: 4px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 4px;
  backdrop-filter: blur(10px);
}
.lang-switch button {
  background: transparent; border: none; color: var(--text-dim);
  font-size: 12px; letter-spacing: 1px;
  padding: 6px 14px; cursor: pointer; border-radius: 30px;
  transition: all 0.5s ease;
  font-family: inherit;
}
.lang-switch button.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--bg);
  box-shadow: 0 0 20px rgba(197, 168, 128, 0.4);
}

/* === Connect Wallet (EN only) === */
.nav-actions {
  display: flex; align-items: center; gap: 10px;
}
.wallet-btn {
  display: none;
  align-items: center; gap: 6px;
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-size: 11px; letter-spacing: 2px;
  padding: 7px 14px; border-radius: 30px;
  cursor: pointer;
  font-family: inherit;
  font-style: italic;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}
body.en .wallet-btn { display: inline-flex; }
.wallet-btn:hover {
  background: rgba(197, 168, 128, 0.1);
  box-shadow: 0 0 20px rgba(197, 168, 128, 0.25);
  border-color: var(--gold);
}
.wallet-btn svg { width: 14px; height: 14px; }

/* === Crypto row under price (EN only) === */
.crypto-row {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--glass-border);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 2px;
  font-style: italic;
  justify-content: center;
  align-items: center;
  gap: 12px;
  opacity: 0.7;
}
body.en .crypto-row { display: flex; }
.crypto-row .crypto-label {
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 9px;
  opacity: 0.9;
}
.crypto-row .crypto-item { white-space: nowrap; }

/* === 主体 === */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 100px 24px 40px;
  text-align: center;
  position: relative;
}
.hero-slogan {
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 6px;
  margin-bottom: 8px;
  text-shadow: 0 0 16px rgba(197, 168, 128, 0.3);
  animation: breathIn 4s ease-in-out infinite;
}
body.en .hero-slogan { letter-spacing: 4px; font-style: italic; font-size: 17px; }
.hero-sub {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 8px;
  margin-bottom: 60px;
  text-transform: uppercase;
}
body.en .hero-sub { letter-spacing: 6px; }

/* === 神圣几何: 命运星盘 === */
.cosmic-wheel {
  position: relative;
  width: 320px; height: 320px;
  margin: 0 auto 50px;
  perspective: 1000px;
}
.cosmic-wheel svg {
  width: 100%; height: 100%;
  animation: rotateWheel 30s linear infinite;
  filter: drop-shadow(0 0 20px rgba(197, 168, 128, 0.3));
}
@keyframes rotateWheel {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.cosmic-wheel .wheel-outer {
  position: absolute;
  inset: -30px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  animation: rotateWheel 60s linear infinite reverse;
  opacity: 0.4;
}
.cosmic-wheel .wheel-inner {
  position: absolute;
  inset: 30px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  animation: rotateWheel 20s linear infinite;
  opacity: 0.3;
}

/* === 触摸按钮 === */
.btn-touch {
  position: relative;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(197, 168, 128, 0.15), rgba(11, 8, 22, 0.9));
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 6px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  font-family: inherit;
  box-shadow:
    0 0 30px rgba(197, 168, 128, 0.2),
    inset 0 0 20px rgba(197, 168, 128, 0.1);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  animation: breath 5s ease-in-out infinite;
  margin: 0 auto 36px;
}
body.en .btn-touch { letter-spacing: 4px; font-style: italic; }
.btn-touch:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 60px rgba(197, 168, 128, 0.4),
    inset 0 0 30px rgba(197, 168, 128, 0.2);
}
.btn-touch:active { transform: scale(0.98); }
.btn-touch .ring {
  position: absolute;
  inset: -10px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  animation: rotateWheel 15s linear infinite;
}
.btn-touch .ring-2 {
  position: absolute;
  inset: -20px;
  border: 1px solid rgba(197, 168, 128, 0.15);
  border-radius: 50%;
  animation: rotateWheel 25s linear infinite reverse;
}
.btn-touch .core {
  font-size: 11px; color: var(--text-dim); letter-spacing: 3px; margin-top: 4px;
  text-transform: uppercase;
}
@keyframes breath {
  0%, 100% { box-shadow: 0 0 30px rgba(197, 168, 128, 0.2), inset 0 0 20px rgba(197, 168, 128, 0.1); }
  50% { box-shadow: 0 0 50px rgba(197, 168, 128, 0.4), inset 0 0 30px rgba(197, 168, 128, 0.2); }
}
@keyframes breathIn {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* === 副信息 === */
.hero-meta {
  display: flex; gap: 24px; justify-content: center;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 2px;
}
.hero-meta .dot { color: var(--gold); opacity: 0.6; }

/* === 分割线 === */
.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 36px auto;
  max-width: 280px;
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 4px;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

/* === 行动按钮组 === */
.action-grid {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 320px; margin: 0 auto;
}
.btn-line {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 3px;
  padding: 16px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(10px);
  transition: all 0.5s ease;
  overflow: hidden;
}
body.en .btn-line { letter-spacing: 2px; font-style: italic; }
.btn-line::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(197, 168, 128, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}
.btn-line:hover::before { transform: translateX(100%); }
.btn-line:hover {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(197, 168, 128, 0.2);
}
.btn-line .arrow {
  opacity: 0.5; font-size: 18px;
  transition: all 0.5s ease;
}
.btn-line:hover .arrow { opacity: 1; transform: translateX(4px); }
.btn-line.primary {
  background: linear-gradient(135deg, rgba(197, 168, 128, 0.15), rgba(197, 168, 128, 0.05));
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(197, 168, 128, 0.15);
}

/* === 价格/分类网格 === */
.spreads {
  padding: 40px 24px;
  max-width: 1200px; margin: 0 auto;
}
.section-title {
  text-align: center;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 6px;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 3px;
  margin-bottom: 36px;
  text-transform: uppercase;
}
.spread-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.spread-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.6s ease;
}
.spread-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(197, 168, 128, 0.15);
}
.spread-card .glyph {
  width: 36px; height: 36px;
  color: var(--gold);
  margin-bottom: 12px;
  opacity: 0.85;
}
.spread-card h3 {
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 6px;
  font-weight: normal;
}
body.en .spread-card h3 { font-style: italic; letter-spacing: 1px; }
.spread-card p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 14px;
}
.spread-card .price {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 2px;
  display: flex; align-items: center; gap: 8px;
}
.spread-card .price-tag {
  background: rgba(197, 168, 128, 0.1);
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 10px;
}

/* === 页脚 === */
.footer {
  padding: 40px 24px 30px;
  text-align: center;
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 3px;
  border-top: 1px solid var(--glass-border);
  margin-top: 60px;
}
.footer .links { margin-bottom: 12px; }
.footer a { color: var(--text-dim); text-decoration: none; margin: 0 12px; transition: color 0.3s; }
.footer a:hover { color: var(--gold); }

/* === 弹窗 === */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(11, 8, 22, 0.85);
  backdrop-filter: blur(20px);
  display: none; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.modal-overlay.show { display: flex; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: linear-gradient(135deg, var(--bg-2), var(--bg));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 40px 32px;
  max-width: 480px; width: 100%;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(197, 168, 128, 0.1);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: transparent; border: 1px solid var(--glass-border);
  color: var(--text-dim);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.modal-close:hover { color: var(--gold); border-color: var(--gold); }

/* === Loading 圆环 === */
.loader {
  width: 60px; height: 60px;
  border: 1px solid rgba(197, 168, 128, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  margin: 30px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === 响应式 === */
@media (max-width: 600px) {
  .cosmic-wheel { width: 240px; height: 240px; }
  .btn-touch { width: 180px; height: 180px; }
  .hero-slogan { font-size: 15px; letter-spacing: 4px; }
  .hero-sub { font-size: 10px; letter-spacing: 5px; }
  .nav { padding: 14px 18px; }
  .logo { font-size: 14px; }
}
