:root {
  --bg: #071018;
  --bg-2: #0d1a28;
  --surface: #122233;
  --line: rgba(255, 255, 255, 0.1);
  --text: #e8eef5;
  --muted: #9aadbf;
  --brand: #d4a017;
  --accent: #c8102e;
  --accent-2: #1f8f5f;
  --max: 1180px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --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);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(200, 16, 46, 0.22), transparent 55%),
    radial-gradient(900px 500px at 95% 0%, rgba(212, 160, 23, 0.16), transparent 50%),
    linear-gradient(180deg, #050b12 0%, var(--bg) 40%, #08131f 100%);
  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: #f0c14b;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(7, 16, 24, 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.7rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  color: var(--muted);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  display: flex;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 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(--accent), #8f0b20);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-gold {
  background: linear-gradient(135deg, #e6b422, #b8860b);
  color: #1a1200;
}

.btn-gold: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.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.hero-copy .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-meta span {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.section {
  padding: 3rem 0;
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 46rem;
}

.section-head h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.section-head p {
  color: var(--muted);
}

.prose h2,
.prose h3 {
  margin: 1.6rem 0 0.75rem;
  line-height: 1.35;
}

.prose h2 {
  font-size: 1.55rem;
}

.prose h3 {
  font-size: 1.2rem;
  color: #f3f7fb;
}

.prose p,
.prose li {
  color: #d5e0ec;
  margin-bottom: 0.9rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.prose strong {
  color: #fff;
  font-weight: 700;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card,
.content-card,
.partner-card,
.faq-item {
  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.2rem;
}

.feature-card h3,
.content-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
}

.feature-card p,
.content-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.game-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 180px;
}

.game-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.game-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.8rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-weight: 700;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.92);
}

.partner-card img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.club-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.club-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.club-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.club-card p {
  padding: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.shot-grid figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.shot-grid img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.shot-grid figcaption {
  padding: 0.8rem 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.faq-item p {
  color: var(--muted);
}

.cta-band {
  margin: 1rem 0 2rem;
  padding: 1.6rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(212, 160, 23, 0.35);
  background:
    linear-gradient(120deg, rgba(200, 16, 46, 0.18), rgba(212, 160, 23, 0.12)),
    var(--bg-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-band h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.cta-band p {
  color: var(--muted);
}

.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  margin-bottom: 0.7rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 46rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--brand);
}

.auth-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 3rem;
}

.auth-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-group input {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
}

.form-group input:focus {
  outline: 2px solid rgba(212, 160, 23, 0.45);
  border-color: transparent;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.8rem;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 0.5rem;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 1.4rem;
  max-width: 32rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.site-footer h3 {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  display: block;
  margin-bottom: 0.45rem;
}

.site-footer 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;
  justify-content: space-between;
  gap: 0.6rem;
}

.toc {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1.2rem 0 1.6rem;
}

.toc h2 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.toc ol {
  padding-left: 1.1rem;
  color: var(--muted);
}

.toc a {
  color: var(--muted);
}

.toc a:hover {
  color: var(--brand);
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.internal-links a {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.03);
}

.internal-links a:hover {
  color: var(--text);
  border-color: rgba(212, 160, 23, 0.45);
}

.media-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem;
  align-items: center;
  margin: 1.75rem 0;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.media-row.reverse {
  grid-template-columns: 1.15fr 1fr;
}

.media-row.reverse .media-copy {
  order: -1;
}

.media-row figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.media-row img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.media-row figcaption {
  padding: 0.65rem 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
  background: rgba(0, 0, 0, 0.25);
}

.media-copy h3 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
  line-height: 1.35;
}

.media-copy p {
  color: #d5e0ec;
  margin-bottom: 0.75rem;
  font-size: 0.98rem;
}

.media-copy ul {
  padding-left: 1.1rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.media-copy li {
  margin-bottom: 0.35rem;
}

.offer-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.offer-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.offer-block img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.offer-block h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.offer-block p {
  color: var(--muted);
  font-size: 0.96rem;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1.2rem 0 1.6rem;
}

.gallery-strip figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.gallery-strip img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.92);
}

.gallery-strip figcaption {
  padding: 0.45rem 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.ads-wrap {
  padding: 0.75rem 0 0.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  background: transparent;
  margin: 0;
  padding: 0.35rem 0;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 78px;
  box-sizing: border-box;
}

#ads figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 18px;
  line-height: 0;
}

#ads img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #fff, #f3f3f3);
}

#ads img:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

#ads figcaption,
#ads .caption {
  height: auto;
  min-height: 16px;
  margin-top: 0.35rem;
  font-size: 11px;
  color: #c5d2e0;
  text-align: center;
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .hero-grid,
  .auth-layout,
  .footer-grid,
  .media-row,
  .media-row.reverse,
  .offer-block {
    grid-template-columns: 1fr;
  }

  .media-row.reverse .media-copy {
    order: 0;
  }

  .media-row img {
    height: 220px;
  }

  .card-grid,
  .game-grid,
  .club-grid,
  .shot-grid,
  .gallery-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.8rem 1rem 1rem;
    background: rgba(7, 16, 24, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-cta {
    margin-left: 0;
    flex-direction: column;
  }

  .nav a {
    padding: 0.85rem 0.9rem;
  }
}

@media (max-width: 640px) {
  .card-grid,
  .game-grid,
  .club-grid,
  .shot-grid,
  .partner-grid,
  .gallery-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .game-item img,
  .shot-grid img,
  .offer-block img {
    height: 190px;
  }
}
