:root {
  --brand: #0b7a3e;
  --brand-dark: #065c2e;
  --brand-light: #12a354;
  --ink: #0f1a14;
  --muted: #5a6b60;
  --bg: #f3f7f4;
  --surface: #ffffff;
  --line: #d7e3db;
  --accent: #c9a227;
  --danger: #b42318;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(11, 40, 24, 0.08);
  --max: 1120px;
  --header-h: 72px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.brand:hover {
  text-decoration: none;
  color: var(--brand);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-desktop a {
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  background: #e8f5ee;
  color: var(--brand-dark);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 122, 62, 0.25);
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.05);
}

.btn-outline {
  background: #fff;
  border-color: var(--brand);
  color: var(--brand-dark);
}

.btn-outline:hover {
  background: #e8f5ee;
  color: var(--brand-dark);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: 0.2s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px 20px;
  box-shadow: var(--shadow);
}

.nav-mobile.open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 12px 10px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.nav-mobile .mobile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(6, 40, 22, 0.88), rgba(11, 122, 62, 0.72)),
    url("/足球.jpg") center/cover no-repeat;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(transparent, var(--bg));
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 0 88px;
  max-width: 760px;
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.4;
}

.hero p {
  margin: 0 0 28px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: #fff;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
}

.prose {
  max-width: 820px;
}

.prose h2,
.prose h3 {
  line-height: 1.35;
  margin-top: 1.8em;
}

.prose p,
.prose li {
  color: #24312a;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.feature,
.category,
.partner,
.faq-item,
.stat,
.step,
.auth-card,
.info-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.feature h3,
.category h3,
.step h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.feature p,
.category p,
.step p,
.faq-item p {
  margin: 0;
  color: var(--muted);
}

.category img,
.shot img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 14px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  text-align: center;
  background: linear-gradient(180deg, #fff, #f4faf6);
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--brand-dark);
  line-height: 1.2;
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

.partners {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 12px;
}

.partner img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.providers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.providers .partner {
  min-height: 72px;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.shot {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.shot img {
  margin: 0;
  border-radius: 0;
  aspect-ratio: 4 / 3;
}

.shot figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-item + .faq-item {
  margin-top: 12px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  margin-bottom: 10px;
  color: var(--brand-dark);
}

.cta-band {
  background:
    linear-gradient(120deg, rgba(6, 92, 46, 0.95), rgba(18, 163, 84, 0.9)),
    url("/电竞.jpg") center/cover no-repeat;
  color: #fff;
  border-radius: 18px;
  padding: 42px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
}

.breadcrumb {
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-hero {
  padding: 36px 0 10px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.auth-card h2 {
  margin: 0 0 8px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  font: inherit;
  background: #fff;
}

.form-group input:focus {
  outline: 2px solid rgba(11, 122, 62, 0.25);
  border-color: var(--brand);
}

.form-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.error-page {
  min-height: calc(100vh - var(--header-h) - 180px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 16px;
}

.error-page h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.error-page p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 24px;
}

.site-footer {
  background: #0c1b13;
  color: rgba(255, 255, 255, 0.86);
  padding: 48px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-copy {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc a {
  display: inline-block;
  margin: 4px 12px 4px 0;
}

.inline-links a {
  margin-right: 10px;
}

@media (max-width: 960px) {
  .grid-4,
  .stats,
  .shot-grid,
  .providers {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners {
    grid-template-columns: repeat(3, 1fr);
  }

  .auth-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.ads-wrap {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 8px 0 4px;
}

.ads-wrap .container,
.ads-wrap.container {
  width: min(100% - 16px, var(--max));
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 4px;
  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.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;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .nav-desktop,
  .nav-actions {
    display: none;
  }

  .hamburger {
    display: inline-flex;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .stats,
  .shot-grid,
  .providers,
  .partners {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 56px 0 72px;
  }

  .section {
    padding: 48px 0;
  }
}
