:root {
  --bg: #0b1220;
  --bg-2: #121b2e;
  --bg-3: #182338;
  --surface: #1a2740;
  --text: #e8eef8;
  --muted: #9aabc4;
  --brand: #1db954;
  --brand-2: #0e9f45;
  --accent: #f0c14b;
  --line: rgba(255, 255, 255, 0.08);
  --danger: #ef4444;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(29, 185, 84, 0.18), transparent 55%),
    radial-gradient(900px 500px at 95% 5%, rgba(240, 193, 75, 0.12), transparent 50%),
    linear-gradient(180deg, #0a101c 0%, var(--bg) 40%, #0d1524 100%);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  padding-left: 1.2rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  color: var(--muted);
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #04140a;
}

.btn-primary:hover {
  color: #04140a;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-accent {
  background: linear-gradient(135deg, #f0c14b, #d4a017);
  color: #1a1200;
}

.btn-accent:hover {
  color: #1a1200;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-brand {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 0.8rem;
  background: linear-gradient(90deg, #fff 10%, #b8f5cb 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 38rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.hero-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(11, 18, 32, 0.82);
  border: 1px solid var(--line);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--accent);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.8rem;
  max-width: 46rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.6rem;
}

.section-head p {
  color: var(--muted);
}

.prose h2,
.prose h3,
.prose h4 {
  margin: 1.6rem 0 0.7rem;
  line-height: 1.35;
}

.prose h2 {
  font-size: 1.55rem;
}

.prose h3 {
  font-size: 1.25rem;
}

.prose p {
  margin-bottom: 1rem;
  color: #c7d3e6;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  color: #c7d3e6;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose strong {
  color: #fff;
}

/* Cards / grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.game-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 185, 84, 0.45);
}

.game-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.game-card .body {
  padding: 0.9rem 1rem 1.1rem;
}

.game-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.game-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.8rem;
}

.partner-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
}

.partner-item img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.shot-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.shot-card .cap {
  padding: 0.8rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.faq details {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.95rem 1.1rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--brand);
  margin-bottom: 0.55rem;
}

.faq details p {
  color: var(--muted);
}

.cta-band {
  margin: 1rem 0 0;
  padding: 1.6rem;
  border-radius: 16px;
  border: 1px solid rgba(29, 185, 84, 0.35);
  background:
    linear-gradient(120deg, rgba(29, 185, 84, 0.16), rgba(240, 193, 75, 0.08)),
    var(--bg-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-band h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.cta-band p {
  color: var(--muted);
}

.breadcrumb {
  padding: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.page-hero {
  padding: 2rem 0 1rem;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 44rem;
}

/* Auth */
.auth-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0 3rem;
}

.auth-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.auth-card .sub {
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  color: #d5deed;
}

.form-group input {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0f1728;
  color: var(--text);
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.18);
}

.form-tips {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-content h2 {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
}

.auth-content h3 {
  margin: 1.3rem 0 0.55rem;
  font-size: 1.1rem;
}

.auth-content p,
.auth-content li {
  color: #c7d3e6;
}

.auth-content ul {
  margin-bottom: 1rem;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.6rem;
}

.error-page h1 {
  margin-bottom: 0.6rem;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 1.4rem;
  max-width: 28rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #070c16;
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.4rem;
}

.footer-col h4 {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.footer-col a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: space-between;
}

.toc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
}

.toc h2 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.toc a {
  display: inline-block;
  margin: 0.2rem 0.8rem 0.2rem 0;
  color: var(--muted);
}

.toc a:hover {
  color: var(--brand);
}

@media (max-width: 980px) {
  .hero-grid,
  .auth-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .game-grid {
    grid-template-columns: 1fr 1fr;
  }

  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .menu-toggle {
    display: inline-flex;
    display: inline-flex;
    position: relative;
    right: -100px;
  }

  .nav-wrap {
    position: fixed;
    inset: 72px 0 auto 0;
    background: rgba(8, 13, 24, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-wrap.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav a {
    padding: 0.85rem 1rem;
  }

  .header-actions .btn {
    display: none;
  }

  .mobile-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
  }

  .mobile-actions .btn {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .shot-grid,
  .game-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .cta-band {
    text-align: left;
  }
}

@media (min-width: 981px) {
  .mobile-actions {
    display: none;
  }
}

/* Top ads bar */
.ads-top {
  position: sticky;
  top: 72px;
  z-index: 900;
  background: rgba(8, 13, 24, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0.35rem 0;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  background: transparent;
  margin: 6px 0;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#ads figure {
  margin: 0;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.35);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: #9aabc4;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}
