:root {
  --bg: #0b0d17;
  --bg-2: #12152a;
  --surface: #171a30;
  --surface-2: #1f2340;
  --border: #2a2f52;
  --text: #e9ebff;
  --muted: #9aa0c7;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --gold: #ffcf6b;

  --r-legendary: #ffb347;
  --r-epic: #b98bff;
  --r-rare: #58c6ff;
  --r-common: #9aa0c7;

  --radius: 16px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, #1a1f45 0%, transparent 60%),
              radial-gradient(900px 500px at 0% 10%, #16233f 0%, transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1160px, 92vw); margin: 0 auto; }
a { color: inherit; text-decoration: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 34px; font-size: 17px; }
.btn-primary {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #fff; box-shadow: 0 12px 30px -10px rgba(124, 92, 255, 0.8);
}
.btn-ghost { border-color: var(--border); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }

/* ---------- 导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 13, 23, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 1px; }
.brand-mark { font-size: 22px; color: var(--gold); filter: drop-shadow(0 0 10px rgba(255, 207, 107, 0.6)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text small { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 3px; margin-top: 4px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { flex-shrink: 0; }

/* ---------- 英雄区 ---------- */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(600px 320px at 50% 0%, rgba(124, 92, 255, 0.35), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.eyebrow { color: var(--accent-2); letter-spacing: 5px; font-size: 12px; font-weight: 700; margin: 0 0 16px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.1; margin: 0 0 20px; font-weight: 800; }
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 60%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); font-size: clamp(15px, 2vw, 19px); max-width: 640px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-badges { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hero-badges span { white-space: nowrap; }

/* ---------- 数据亮点 ---------- */
.stats { padding: 10px 0 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; text-align: center;
}
.stat b {
  display: block; font-size: 38px; font-weight: 800;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { color: var(--muted); font-size: 13px; letter-spacing: 1px; }

/* ---------- 通用区块 ---------- */
.section { padding: 80px 0; }
.section.alt { background: linear-gradient(180deg, transparent, rgba(31, 35, 64, 0.35), transparent); }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.kicker { color: var(--accent-2); letter-spacing: 3px; font-size: 12px; font-weight: 700; text-transform: uppercase; margin: 0 0 12px; }
.section-head h2 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 14px; font-weight: 800; }
.lead { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0; }

/* ---------- 功能特色 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s, border-color .25s, box-shadow .25s;
}
.feature:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 24px 46px -22px rgba(124, 92, 255, 0.6); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font-size: 28px; margin-bottom: 18px;
  background: radial-gradient(circle at 30% 30%, rgba(124, 92, 255, 0.35), rgba(34, 211, 238, 0.15));
  border: 1px solid var(--border);
}
.feature h3 { margin: 0 0 8px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- 使用流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative; padding: 32px 26px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
}
.step-num {
  font-size: 40px; font-weight: 800; line-height: 1;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { margin: 16px 0 8px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- 稀有度 ---------- */
.rarity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rarity-card {
  position: relative; padding: 28px 24px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-top: 3px solid var(--rc);
  transition: transform .2s, box-shadow .25s;
}
.rarity-card:hover { transform: translateY(-6px); box-shadow: 0 24px 46px -22px var(--rc); }
.rarity-card.legendary { --rc: var(--r-legendary); }
.rarity-card.epic { --rc: var(--r-epic); }
.rarity-card.rare { --rc: var(--r-rare); }
.rarity-card.common { --rc: var(--r-common); }
.rarity-tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 1px;
  background: var(--rc); color: #0b0d17; margin-bottom: 14px;
}
.rarity-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--rc); letter-spacing: 1px; }
.rarity-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- CTA ---------- */
.cta { padding: 30px 0 80px; }
.cta-inner {
  text-align: center; padding: 64px 40px; border-radius: 28px;
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.18), rgba(34, 211, 238, 0.12));
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.cta-inner h2 { font-size: clamp(26px, 4vw, 42px); margin: 0 0 14px; font-weight: 800; }
.cta-inner p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; font-size: 17px; }

/* ---------- 关于 ---------- */
.about-inner {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center;
  background: linear-gradient(120deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: 20px; padding: 48px;
}
.about-inner h2 { margin: 6px 0 0; font-size: 32px; }
.about-inner > p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.copy { color: var(--muted); font-size: 13px; }
.footer-legal { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.beian { color: var(--muted); font-size: 13px; transition: color .2s; }
.beian:hover { color: var(--text); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .rarity-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
