/* ============================================
   极光游戏盒 — 暗黑电竞风主题
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #06060f;
  --bg-secondary: #0d0d1a;
  --bg-card: #12122a;
  --bg-card-hover: #1a1a3e;
  --text-primary: #eeeef5;
  --text-secondary: #9d9db8;
  --accent-purple: #7c3aed;
  --accent-blue: #2563eb;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --gradient-main: linear-gradient(135deg, #7c3aed, #2563eb, #06b6d4);
  --gradient-hot: linear-gradient(135deg, #ec4899, #f97316);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-glow: 0 0 30px rgba(124, 58, 237, .25);
  --font-stack: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-stack);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- Utility ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-label {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(6,182,212,.1);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
}
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-stack);
}
.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124,58,237,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,.5);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 10px 20px;
  font-size: .875rem;
}
.btn-icon {
  width: 20px;
  height: 20px;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(6,6,15,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 10px 0;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
}
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: .9rem;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}
.nav a:hover { color: var(--text-primary); }
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: var(--transition);
}
.nav a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 12px; }

/* Mobile menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(124,58,237,.2) 0%, transparent 70%);
  animation: float-orb 8s ease-in-out infinite;
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6,182,212,.15) 0%, transparent 70%);
  animation: float-orb 10s ease-in-out infinite reverse;
}
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, -40px); }
}

/* Grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 100%);
}

.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 700px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(124,58,237,.12);
  border: 1px solid rgba(124,58,237,.25);
  border-radius: 50px;
  font-size: .8rem;
  color: var(--accent-purple);
  font-weight: 600;
  margin-bottom: 24px;
  animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,.2); }
  50% { box-shadow: 0 0 0 8px rgba(124,58,237,0); }
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 1.5s steps(1) infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -.5px;
}
.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-buttons .btn-primary { padding: 16px 36px; font-size: 1.05rem; }

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stat {}
.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label {
  font-size: .8rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

/* ---------- Compare ---------- */
.compare { background: var(--bg-secondary); }
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.06);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.compare-table th,
.compare-table td {
  padding: 18px 24px;
  text-align: center;
  font-size: .95rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.compare-table thead th {
  background: rgba(124,58,237,.08);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: 1px;
  color: var(--text-secondary);
}
.compare-table thead th:first-child { text-align: left; }
.compare-table thead th.highlight {
  color: var(--accent-cyan);
  position: relative;
}
.compare-table thead th.highlight::before {
  content: '推荐';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-main);
  color: #fff;
  font-size: .65rem;
  padding: 2px 10px;
  border-radius: 0 0 6px 6px;
  letter-spacing: 2px;
}
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
}
.compare-table tbody tr { transition: var(--transition); }
.compare-table tbody tr:hover { background: rgba(124,58,237,.04); }
.compare-table .col-ours {
  background: rgba(124,58,237,.05);
  color: var(--accent-cyan);
  font-weight: 700;
}
.check { color: #22c55e; font-weight: 700; }
.cross { color: #ef4444; font-weight: 700; }
.mid { color: #f59e0b; }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
  opacity: 0;
  transition: var(--transition);
}
.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(124,58,237,.2);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.feature-icon.purple { background: rgba(124,58,237,.15); }
.feature-icon.blue { background: rgba(37,99,235,.15); }
.feature-icon.cyan { background: rgba(6,182,212,.15); }
.feature-icon.pink { background: rgba(236,72,153,.15); }
.feature-icon.green { background: rgba(34,197,94,.15); }
.feature-icon.orange { background: rgba(249,115,22,.15); }
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Games ---------- */
.games { background: var(--bg-secondary); }
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.game-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
  border-color: rgba(124,58,237,.3);
}
.game-cover {
  height: 180px;
  position: relative;
  overflow: hidden;
}
.game-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: var(--transition);
}
.game-card:hover .game-cover img {
  transform: scale(1.05);
}
.game-cover-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255,255,255,.15);
  letter-spacing: 2px;
}
.game-cover-bg.g1 { background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); }
.game-cover-bg.g2 { background: linear-gradient(135deg, #2d1b69, #11998e); }
.game-cover-bg.g3 { background: linear-gradient(135deg, #b91c1c, #f97316); }
.game-cover-bg.g4 { background: linear-gradient(135deg, #064e3b, #059669); }
.game-cover-bg.g5 { background: linear-gradient(135deg, #312e81, #6366f1); }
.game-cover-bg.g6 { background: linear-gradient(135deg, #7c2d12, #ea580c); }
.game-cover-bg.g7 { background: linear-gradient(135deg, #134e4a, #2dd4bf); }
.game-cover-bg.g8 { background: linear-gradient(135deg, #581c87, #a855f7); }
.game-discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gradient-hot);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
}
.game-info { padding: 16px; }
.game-name {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-genre {
  font-size: .78rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.game-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.game-price { display: flex; align-items: baseline; gap: 6px; }
.game-price-old {
  font-size: .78rem;
  color: var(--text-secondary);
  text-decoration: line-through;
}
.game-price-new {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

/* ---------- Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.stat-card {
  text-align: center;
  padding: 36px 20px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-md);
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 6px;
  line-height: 1;
}
.stat-label {
  font-size: .85rem;
  color: var(--text-secondary);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-md);
  padding: 28px;
}
.review-stars { color: #f59e0b; font-size: .9rem; margin-bottom: 14px; letter-spacing: 2px; }
.review-text {
  font-size: .92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
}
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
}
.review-name { font-size: .85rem; font-weight: 600; }
.review-date { font-size: .75rem; color: var(--text-secondary); }

/* ---------- CTA ---------- */
.cta {
  background: var(--bg-secondary);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(124,58,237,.1) 0%, transparent 70%);
}
.cta .container { position: relative; z-index: 1; }
.cta-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-left { display: flex; flex-direction: column; gap: 8px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.footer-brand .logo-icon { width: 28px; height: 28px; font-size: .85rem; border-radius: 8px; }
.footer-copy { font-size: .8rem; color: var(--text-secondary); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: .85rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--accent-cyan); }

/* ---------- Scroll Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .header-cta .btn { display: none; }
  .mobile-toggle { display: flex; }

  /* Mobile nav open */
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(6,6,15,.97);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 999;
  }
  .nav.open a { font-size: 1.3rem; color: var(--text-primary); }

  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 24px; }
  .hero-stat-value { font-size: 1.5rem; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: 1fr; }
  .game-cover { height: 160px; }
  .hero-stats { flex-direction: column; gap: 16px; }
}

/* ---------- Privacy Page ---------- */
.privacy-page {
  padding: 120px 0 80px;
  min-height: 100vh;
}
.privacy-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.privacy-page .update-date {
  font-size: .85rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
}
.privacy-page h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--accent-cyan);
}
.privacy-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
}
.privacy-page p,
.privacy-page li {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}
.privacy-page ul { padding-left: 20px; }
.privacy-page ul li { list-style: disc; margin-bottom: 8px; }
.privacy-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 56px 0;
}
