:root {
  --primary: #0d47a1;
  --primary-dark: #082d6b;
  --primary-light: #1565c0;
  --accent: #2196f3;
  --text: #1a1a2e;
  --text-muted: #5a6278;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --border: #e2e8f0;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(13, 71, 161, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--accent); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo img { height: 36px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }

.main-nav a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active { color: var(--primary); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover { background: var(--primary); color: #fff; }

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1a237e 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-brand {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(22px, 4vw, 32px);
  color: rgba(255,255,255,0.95);
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-tags span {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
}

/* Stats */
.stats {
  background: var(--bg-alt);
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-num small { font-size: 24px; }

.stat-label {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 15px;
}

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 48px; }

.section-header h2 {
  font-size: clamp(24px, 4vw, 36px);
  color: var(--text);
  margin-bottom: 16px;
  font-weight: 700;
}

.section-header p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 16px;
}

.section-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: rgba(13,71,161,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg { width: 24px; height: 24px; fill: var(--primary); }

.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); }

/* Payment */
.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.payment-badge {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Reviews */
.reviews-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 0 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.review-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.review-text {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.7;
}

.review-author { font-weight: 700; font-size: 15px; }
.review-role { font-size: 13px; color: var(--text-muted); }
.review-plan {
  display: inline-block;
  margin-top: 8px;
  background: rgba(13,71,161,0.08);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
}

/* News grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.news-card:hover { box-shadow: var(--shadow); }

.news-card-body { padding: 20px; }

.news-card h3 { font-size: 16px; margin-bottom: 8px; line-height: 1.4; }
.news-card h3 a { color: var(--text); }
.news-card h3 a:hover { color: var(--primary); }

.news-date { font-size: 13px; color: var(--text-muted); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item .faq-answer {
  padding: 0 24px 18px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.faq-category { margin-bottom: 40px; }
.faq-category h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--primary);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 80px 0;
  text-align: center;
  color: #fff;
}

.cta-section h2 { font-size: 32px; margin-bottom: 16px; }
.cta-section p { opacity: 0.85; margin-bottom: 32px; font-size: 17px; }

/* Footer */
.site-footer {
  background: #0a1628;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,0.65); font-size: 14px; }
.footer-grid a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-muted);
  background: var(--bg-alt);
}

.breadcrumb a { color: var(--primary); }

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 60px 0;
  color: #fff;
  text-align: center;
}

.page-hero h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 12px; }
.page-hero p { opacity: 0.85; max-width: 600px; margin: 0 auto; }

/* Download cards */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.download-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.download-card:hover { box-shadow: var(--shadow); }

.download-card h3 { font-size: 20px; margin-bottom: 12px; color: var(--primary); }
.download-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

.download-card .btn { margin: 4px; }

/* Article */
.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.article-content h1 { font-size: 32px; margin-bottom: 12px; }
.article-meta { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.article-content h2 { font-size: 22px; margin: 32px 0 12px; color: var(--primary); }
.article-content p { margin-bottom: 16px; line-height: 1.8; }
.article-content ul { margin: 0 0 16px 24px; }
.article-content li { margin-bottom: 8px; }

/* Perks list */
.perks-list { list-style: none; margin: 24px 0; }
.perks-list li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  font-size: 15px;
}
.perks-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Game demo */
.game-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

/* Fixed download bar */
.download-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  color: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 90;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.download-bar.visible { transform: translateY(0); }

.download-bar-text { font-size: 14px; }
.download-bar-text strong { display: block; font-size: 16px; }

/* Responsive */
@media (max-width: 900px) {
  .two-col, .game-demo, .footer-grid { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
  .features-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .features-grid, .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero { min-height: 440px; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .review-card { flex: 0 0 280px; }
}
