:root {
  --bg: #f3f6f4;
  --bg-deep: #e6efe9;
  --surface: #ffffff;
  --ink: #122018;
  --ink-soft: #3d5246;
  --muted: #5f7468;
  --brand: #0b6b3a;
  --brand-dark: #074d2a;
  --accent: #c8a24a;
  --line: rgba(18, 32, 24, 0.12);
  --shadow: 0 18px 40px rgba(11, 40, 24, 0.08);
  --radius: 14px;
  --max: 1120px;
  --nav-h: 72px;
  --font-display: "ZCOOL QingKe HuangYou", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(200, 162, 74, 0.18), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(11, 107, 58, 0.12), transparent 32%),
    linear-gradient(180deg, #f7faf8 0%, var(--bg) 38%, #eef4f0 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(14px);
  background: rgba(247, 250, 248, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
}

.nav-cta {
  display: flex;
  gap: 0.55rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.65rem 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, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(11, 107, 58, 0.35);
  color: var(--brand);
}

.btn-ghost:hover {
  background: rgba(11, 107, 58, 0.08);
  color: var(--brand-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  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;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 28, 18, 0.82) 0%, rgba(7, 28, 18, 0.55) 48%, rgba(7, 28, 18, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 28, 18, 0.15) 0%, rgba(7, 28, 18, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.5rem;
  max-width: 720px;
  animation: riseIn 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: 0.03em;
}

.hero h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  font-weight: 700;
  line-height: 1.35;
}

.hero p {
  margin: 0 0 1.6rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section {
  padding: 4.2rem 0;
}

.section-head {
  margin-bottom: 1.8rem;
  max-width: 46rem;
}

.section-head h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.2;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--ink);
}

.prose h2 {
  margin: 2.2rem 0 0.9rem;
  font-size: 1.7rem;
}

.prose h3 {
  margin: 1.6rem 0 0.7rem;
  font-size: 1.25rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.45rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.feature-item {
  padding: 0.2rem 0 0.8rem;
  border-top: 2px solid var(--brand);
}

.feature-item h3 {
  margin: 0.9rem 0 0.45rem;
  font-size: 1.15rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
}

.media-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.6rem;
  align-items: center;
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.game-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 180px;
}

.game-item img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.game-item:hover img {
  transform: scale(1.06);
}

.game-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(8, 24, 16, 0.82));
  color: #fff;
  font-weight: 600;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.9rem;
}

.partner-grid img,
.provider-grid img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 0.95rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin: 0.7rem 0 0.2rem;
  color: var(--muted);
}

.cta-band {
  margin: 1rem 0 0;
  padding: 2.2rem;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(11, 107, 58, 0.95), rgba(7, 77, 42, 0.92)),
    url("/images/足球.jpg") center/cover;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  align-items: start;
  padding-bottom: 3rem;
}

.auth-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.auth-panel h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-group input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  background: #fbfcfb;
}

.form-group input:focus {
  outline: 2px solid rgba(11, 107, 58, 0.25);
  border-color: var(--brand);
}

.form-note {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.error-page {
  min-height: calc(100vh - var(--nav-h) - 220px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4.5rem);
}

.breadcrumb {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--muted);
}

.site-footer {
  margin-top: 2rem;
  padding: 2.6rem 0 1.6rem;
  background: #0d1a14;
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.4rem;
}

.site-footer h3 {
  margin: 0 0 0.8rem;
  color: #fff;
  font-size: 1rem;
}

.site-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.45rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-copy {
  margin-top: 1.8rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.58);
}

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
}

.toc a {
  display: inline-block;
  margin: 0.2rem 0.7rem 0.2rem 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes heroZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 960px) {
  .feature-grid,
  .game-grid,
  .provider-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-grid,
  .footer-grid,
  .media-row,
  .auth-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .mobile-panel {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: rgba(247, 250, 248, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    z-index: 99;
  }

  .mobile-panel.is-open {
    display: flex;
    animation: riseIn 0.25s ease both;
  }

  .mobile-panel a {
    padding: 0.75rem 0.5rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    font-weight: 500;
  }

  .mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-top: 0.6rem;
  }

  .hero {
    min-height: 78vh;
  }

  .feature-grid,
  .game-grid,
  .partner-grid,
  .provider-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 1.5rem;
  }
}

/* Partner ads strip */
.ads-wrap {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  background: transparent;
  margin: 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.12);
  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.18);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
