/* 72电竞 宣传页 — 与产品端一致的深色电竞风 */
:root {
  --purple: #8b5cf6;
  --purple2: #a78bfa;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --green: #10b981;
  --orange: #f97316;
  --gold: #fbbf24;
  --red: #ef4444;

  --bg: #0a0e1a;
  --bg2: #111827;
  --bg3: #1a2235;
  --bg4: #1f2d45;
  --text: #f1f5f9;
  --text2: #94a3b8;
  --text3: #64748b;
  --card-border: rgba(255, 255, 255, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1120px;
  --header-h: 72px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--purple2);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.85;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(100% - 32px, var(--max-w));
  margin-inline: auto;
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff !important;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  color: var(--text);
  cursor: pointer;
  font-size: 20px;
}

/* ─── Hero ─── */
.hero {
  padding: calc(var(--header-h) + 64px) 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text2);
  font-size: 13px;
  margin-bottom: 20px;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--purple2), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  color: var(--text2);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-wrap {
  position: relative;
  width: min(100%, 380px);
}

.hero-logo-wrap::after {
  content: '';
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 20px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

/* ─── Sections ─── */
.section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text2);
  font-size: 16px;
  max-width: 560px;
  margin-inline: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-icon.purple { background: rgba(139, 92, 246, 0.15); }
.feature-icon.blue { background: rgba(59, 130, 246, 0.15); }
.feature-icon.cyan { background: rgba(6, 182, 212, 0.15); }
.feature-icon.green { background: rgba(16, 185, 129, 0.15); }
.feature-icon.orange { background: rgba(249, 115, 22, 0.15); }
.feature-icon.gold { background: rgba(251, 191, 36, 0.15); }

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
}

/* ─── Download ─── */
.download-section {
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.6));
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.download-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg2);
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.download-card.recommended {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2);
}

.download-card.recommended::before {
  content: '推荐';
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.download-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.download-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.download-card h3 {
  font-size: 18px;
  font-weight: 700;
}

.download-card .platform-desc {
  font-size: 13px;
  color: var(--text3);
}

.download-card p {
  font-size: 14px;
  color: var(--text2);
  flex: 1;
}

.download-card .btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
}

.download-card .btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.download-card .btn-loading {
  opacity: 0.7;
  pointer-events: none;
}

.qr-placeholder {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-sm);
  background: var(--bg3);
  border: 1px dashed var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 12px;
  text-align: center;
  padding: 8px;
}

.download-note {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: var(--text2);
  font-size: 13px;
  text-align: center;
}

.download-note.download-status-error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
}

/* ─── Footer ─── */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--card-border);
  background: var(--bg2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text2);
  font-size: 14px;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a,
.footer-col span {
  font-size: 13px;
  color: var(--text2);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
  text-align: center;
}

.compliance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 12px;
}

.compliance a {
  color: var(--text3);
}

.compliance a:hover {
  color: var(--text2);
}

.copyright {
  font-size: 12px;
  color: var(--text3);
}

/* ─── Legal pages ─── */
.legal-page {
  padding: calc(var(--header-h) + 48px) 0 80px;
}

.legal-page h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text3);
  font-size: 13px;
  margin-bottom: 32px;
}

.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 12px;
  line-height: 1.75;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero-grid,
  .features-grid,
  .download-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-logo-wrap {
    width: 220px;
    margin-inline: auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 20px;
    background: var(--bg2);
    border-bottom: 1px solid var(--card-border);
    gap: 16px;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
