:root {
  --brand: #0b7a3e;
  --brand-dark: #065c2e;
  --brand-light: #e8f6ee;
  --ink: #14201a;
  --muted: #5a6b62;
  --line: #d7e3db;
  --bg: #f4f8f5;
  --surface: #ffffff;
  --warn: #b45309;
  --danger: #b91c1c;
  --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: "ZCOOL QingKe HuangYou", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(11, 122, 62, 0.12), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(20, 80, 50, 0.08), transparent 55%),
    linear-gradient(180deg, #eef6f1 0%, var(--bg) 240px, #f7faf8 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(215, 227, 219, 0.9);
}

.nav-bar {
  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.15rem;
}

.brand:hover {
  text-decoration: none;
  color: var(--brand-dark);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-text {
  font-family: var(--display);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--brand-light);
  color: var(--brand-dark);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  gap: 8px;
  margin-left: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s ease;
  font-family: inherit;
  font-size: 0.95rem;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 8px 18px rgba(11, 122, 62, 0.25);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(6, 50, 28, 0.88), rgba(11, 122, 62, 0.72)),
    url("/开云体育首页.jpg") center/cover no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-inner {
  padding: 72px 0 64px;
  display: grid;
  gap: 28px;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.25;
  font-weight: 400;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.hero-lead {
  margin: 0;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 42em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}

.hero-meta span::before {
  content: "✓ ";
  color: #9dffc2;
}

/* Sections */
main {
  display: block;
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.35;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 52em;
}

.prose {
  max-width: 760px;
}

.prose h2,
.prose h3 {
  line-height: 1.4;
  scroll-margin-top: 90px;
}

.prose h2 {
  margin: 2em 0 0.7em;
  font-size: 1.45rem;
}

.prose h3 {
  margin: 1.5em 0 0.55em;
  font-size: 1.15rem;
}

.prose p {
  margin: 0 0 1em;
  color: #24352c;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
  color: #24352c;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose strong {
  color: var(--ink);
}

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 28px;
  box-shadow: var(--shadow);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.toc a {
  text-decoration: none;
}

.grid-3,
.grid-2,
.grid-4 {
  display: grid;
  gap: 18px;
}

.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,
.guide-card,
.partner-card,
.faq-item,
.panel,
.auth-card,
.error-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature,
.guide-card,
.faq-item,
.panel {
  padding: 22px;
}

.feature h3,
.guide-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.feature p,
.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 14px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.step {
  position: relative;
  padding: 18px 18px 18px 64px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.media-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.media-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0a2f1b;
}

.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.partners {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.partner-card {
  padding: 14px;
  display: grid;
  place-items: center;
  min-height: 84px;
}

.partner-card img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.category-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 160px;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.category-card:hover {
  text-decoration: none;
  color: #fff;
  transform: translateY(-2px);
  transition: 0.2s ease;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.category-card span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding: 16px;
  background: linear-gradient(transparent 20%, rgba(0, 0, 0, 0.72));
  font-weight: 700;
  font-size: 1.1rem;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.cta-band {
  background:
    linear-gradient(120deg, rgba(6, 70, 36, 0.94), rgba(11, 122, 62, 0.88)),
    url("/足球.jpg") center/cover;
  color: #fff;
  border-radius: 18px;
  padding: 36px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36em;
}

.breadcrumb {
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--muted);
}

.page-hero {
  padding: 28px 0 8px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.3;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 48em;
}

/* Auth */
.auth-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
  padding: 28px 0 56px;
}

.auth-card {
  padding: 28px;
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.auth-card .sub {
  margin: 0 0 22px;
  color: var(--muted);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}

.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-tip {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-side .panel {
  margin-bottom: 16px;
}

.auth-side h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.auth-side p,
.auth-side li {
  color: var(--muted);
}

.auth-side ul {
  margin: 0;
  padding-left: 1.2em;
}

/* Error pages */
.error-wrap {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  padding: 48px 0;
}

.error-card {
  width: min(100%, 560px);
  padding: 36px 28px;
  text-align: center;
}

.error-code {
  font-family: var(--display);
  font-size: 4rem;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 8px;
}

.error-card h1 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

.error-card p {
  margin: 0 0 22px;
  color: var(--muted);
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: #0d2418;
  color: rgba(255, 255, 255, 0.82);
  padding: 48px 0 28px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1rem;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.legal-note {
  background: #fff8eb;
  border: 1px solid #f3dfb8;
  color: #7a4d12;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 18px 0 0;
  font-size: 0.92rem;
}

.highlight-box {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  padding: 14px 16px;
  border-radius: 0 10px 10px 0;
  margin: 0 0 1.2em;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.4em;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: #f3faf6;
  font-weight: 700;
}

tr:last-child td {
  border-bottom: none;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
}

.chip:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  text-decoration: none;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner,
  .feature,
  .guide-card,
  .step,
  .category-card {
    animation: rise 0.7s ease both;
  }

  .feature:nth-child(2),
  .guide-card:nth-child(2),
  .step:nth-child(2) {
    animation-delay: 0.08s;
  }

  .feature:nth-child(3),
  .guide-card:nth-child(3),
  .step:nth-child(3) {
    animation-delay: 0.16s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* Mobile */
@media (max-width: 960px) {
  .grid-3,
  .grid-4,
  .partners,
  .category-grid,
  .footer-grid,
  .media-row,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .partners {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 18px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 12px 14px;
  }

  .nav-actions {
    margin: 8px 0 0;
    width: 100%;
  }

  .nav-actions .btn {
    flex: 1;
  }

  .hero-inner {
    padding: 48px 0 42px;
  }

  .section {
    padding: 42px 0;
  }
}

@media (max-width: 560px) {
  .partners,
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .brand-text {
    font-size: 1rem;
  }
}

/* Top ads strip */
.ads-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(11, 40, 24, 0.06);
  backdrop-filter: blur(10px);
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 4px;
  background: transparent;
  margin: 10px 0;
  min-height: 0;
}

#ads:empty {
  display: none;
  margin: 0;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
  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;
}
