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

:root {
  --color-primary: #0a1628;
  --color-secondary: #0d1f3c;
  --color-gold: #f0a500;
  --color-gold-light: #ffc844;
  --color-accent: #e8530e;
  --color-accent-light: #ff6b2b;
  --color-text: #ffffff;
  --color-text-muted: #c0c8d8;
  --color-card: rgba(255, 255, 255, 0.06);
  --color-card-hover: rgba(255, 255, 255, 0.1);
  --color-border: rgba(255, 255, 255, 0.1);
  --font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-height: 70px;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--color-primary);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-gold);
}

.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: 6px;
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-gold);
  background: rgba(240, 165, 0, 0.08);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 1px;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-family);
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-accent));
  color: var(--color-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 165, 0, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}

.btn-outline:hover {
  background: rgba(240, 165, 0, 0.1);
  transform: translateY(-2px);
}

.btn-large {
  padding: 14px 36px;
  font-size: 16px;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
  border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero {
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.4) 0%, rgba(10, 22, 40, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 24px;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(240, 165, 0, 0.15);
  border: 1px solid rgba(240, 165, 0, 0.3);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--color-text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Section Styles ===== */
.section {
  padding: 80px 24px;
}

.section-alt {
  background: var(--color-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--color-text);
}

.section-title .highlight {
  color: var(--color-gold);
}

.section-desc {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Feature Cards ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--color-card-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(240, 165, 0, 0.2);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(240, 165, 0, 0.15), rgba(232, 83, 14, 0.15));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--color-darker, #0a1628);
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ===== Stats ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 32px 20px;
}

.stat-number {
  font-size: 42px;
  font-weight: 900;
  color: var(--color-gold);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ===== Download Section ===== */
.download-section {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  position: relative;
  overflow: hidden;
}

.download-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(240, 165, 0, 0.05) 0%, transparent 50%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.download-content {
  position: relative;
  z-index: 1;
}

.download-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
}

.download-desc {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.download-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.download-info span {
  font-size: 13px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.contact-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 165, 0, 0.2);
}

.contact-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(240, 165, 0, 0.15), rgba(232, 83, 14, 0.15));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}

.contact-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== Recharge Page ===== */
.recharge-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.plan-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.plan-card.featured {
  border-color: var(--color-gold);
  background: rgba(240, 165, 0, 0.05);
}

.plan-card.featured::before {
  content: '推荐';
  position: absolute;
  top: 16px;
  right: -28px;
  background: var(--color-gold);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 32px;
  transform: rotate(45deg);
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.plan-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 36px;
  font-weight: 900;
  color: var(--color-gold);
  margin-bottom: 4px;
}

.plan-price .currency {
  font-size: 18px;
  font-weight: 600;
}

.plan-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.plan-features {
  text-align: left;
  margin-bottom: 24px;
}

.plan-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li::before {
  content: '✓';
  color: var(--color-gold);
  font-weight: 700;
  font-size: 14px;
}

/* ===== Login Page ===== */
.auth-container {
  min-height: calc(100vh - var(--nav-height));
  margin-top: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.auth-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 48px;
  width: 100%;
  max-width: 440px;
  backdrop-filter: blur(12px);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-header p {
  font-size: 14px;
  color: var(--color-text-muted);
}

.auth-tabs {
  display: flex;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}

.auth-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition);
  border-bottom: 2px solid transparent;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-family);
}

.auth-tab.active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 15px;
  color: var(--color-text);
  font-family: var(--font-family);
  transition: all var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.1);
}

.form-input::placeholder {
  color: rgba(192, 200, 216, 0.5);
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.form-footer a {
  color: var(--color-gold);
}

.form-footer a:hover {
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--color-text-muted);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ===== Privacy Page ===== */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--color-gold);
}

.privacy-content h2:first-child {
  margin-top: 0;
}

.privacy-content p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.privacy-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.privacy-content ul li {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
  list-style: disc;
}

/* ===== Footer ===== */
.footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--color-border);
  padding: 48px 24px 24px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.footer-links a {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--color-text-muted);
}

.footer-bottom a {
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--color-gold);
}

/* ===== Page Banner ===== */
.page-banner {
  margin-top: var(--nav-height);
  padding: 80px 24px 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(240, 165, 0, 0.08) 0%, transparent 70%);
}

.page-banner h1 {
  position: relative;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  margin-bottom: 12px;
}

.page-banner p {
  position: relative;
  font-size: 16px;
  color: var(--color-text-muted);
}

/* ===== Game Info Cards ===== */
.game-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.game-info-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.game-info-card .info-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(240, 165, 0, 0.15), rgba(232, 83, 14, 0.15));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.game-info-card .info-text h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.game-info-card .info-text p {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== Mobile Nav Overlay ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(12px);
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  padding: 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-muted);
  border-radius: 10px;
  transition: all var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--color-gold);
  background: rgba(240, 165, 0, 0.08);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links,
  .nav-auth {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    padding: 40px 20px;
  }

  .auth-card {
    padding: 32px 24px;
  }

  .section {
    padding: 60px 20px;
  }

  .features-grid,
  .gallery-grid,
  .contact-grid,
  .recharge-plans {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .download-info {
    flex-direction: column;
    gap: 12px;
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(240, 165, 0, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 165, 0, 0.5);
}
