:root {
  --bg: #0a1628;
  --bg-soft: #102038;
  --bg-card: #132846;
  --surface: #f4f7fb;
  --surface-alt: #e8eef6;
  --text: #132033;
  --text-muted: #5a6b82;
  --text-inv: #f2f6fc;
  --brand: #0d9f6e;
  --brand-dark: #087a54;
  --brand-light: #19c48a;
  --accent: #c9a227;
  --line: rgba(19, 32, 51, 0.12);
  --line-inv: rgba(242, 246, 252, 0.14);
  --shadow: 0 18px 40px rgba(8, 22, 44, 0.18);
  --radius: 12px;
  --max: 1120px;
  --font-display: "Oswald", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand);
}

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-inv);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-inv);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-text span {
  font-size: 0.72rem;
  color: rgba(242, 246, 252, 0.65);
  font-weight: 400;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-inv);
  border-radius: 10px;
  background: transparent;
  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(--text-inv);
  transition: transform 0.25s ease, opacity 0.25s 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: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: rgba(242, 246, 252, 0.88);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--brand-light);
}

.nav-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-inv);
  color: var(--text-inv);
}

.btn-ghost:hover {
  color: #fff;
  border-color: var(--brand-light);
}

.btn-outline {
  background: #fff;
  border-color: rgba(13, 159, 110, 0.35);
  color: var(--brand-dark);
}

.btn-outline:hover {
  background: rgba(13, 159, 110, 0.08);
  color: var(--brand-dark);
}

.btn-dark {
  background: var(--bg);
  color: #fff;
}

.btn-dark:hover {
  color: #fff;
  background: #152a48;
}

/* Hero */
.hero {
  position: relative;
  color: var(--text-inv);
  background:
    linear-gradient(120deg, rgba(8, 22, 44, 0.88) 0%, rgba(8, 55, 42, 0.72) 48%, rgba(8, 22, 44, 0.82) 100%),
    url("/开云体育首页.jpg") center/cover no-repeat;
  min-height: min(92vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(to top, var(--surface), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 5rem;
  max-width: 720px;
  animation: rise 0.8s ease both;
}

.hero-kicker {
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-light);
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}

.hero h1 {
  margin-bottom: 1rem;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  font-size: 1.08rem;
  color: rgba(242, 246, 252, 0.9);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fade-up 0.7s ease both;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #eef3f9 0%, #f7f9fc 100%);
}

.section-dark {
  background:
    radial-gradient(circle at 20% 20%, rgba(25, 196, 138, 0.16), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(201, 162, 39, 0.12), transparent 35%),
    var(--bg);
  color: var(--text-inv);
}

.section-dark a {
  color: var(--brand-light);
}

.section-head {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-head p {
  color: var(--text-muted);
}

.section-dark .section-head p {
  color: rgba(242, 246, 252, 0.72);
}

.eyebrow {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.prose {
  max-width: 820px;
}

.prose h2 {
  margin-top: 2rem;
}

.prose h3 {
  margin-top: 1.5rem;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 8px 24px rgba(15, 35, 60, 0.04);
}

.feature h3 {
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.96rem;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(13, 159, 110, 0.12);
  color: var(--brand-dark);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.media-block {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2rem;
  align-items: center;
}

.media-block img,
.shot {
  border-radius: 14px;
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  min-height: 180px;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 1.1rem;
  background: #123;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 18, 34, 0.88), rgba(8, 18, 34, 0.15));
}

.category-card:hover img {
  transform: scale(1.06);
}

.category-card span {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 1.15rem;
}

.partner-grid,
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.partner-item,
.provider-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  display: grid;
  place-items: center;
  min-height: 96px;
}

.partner-item img,
.provider-item img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--brand-dark);
  margin-bottom: 0.6rem;
}

.faq p {
  color: var(--text-muted);
  margin: 0;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem;
  border-radius: 16px;
  background:
    linear-gradient(120deg, rgba(13, 159, 110, 0.18), rgba(201, 162, 39, 0.12)),
    var(--bg-soft);
  border: 1px solid var(--line-inv);
}

.cta-band h2 {
  margin: 0 0 0.4rem;
}

.cta-band p {
  margin: 0;
  color: rgba(242, 246, 252, 0.75);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.page-hero {
  background:
    linear-gradient(120deg, rgba(10, 22, 40, 0.92), rgba(8, 55, 42, 0.78)),
    url("/足球.jpg") center/cover no-repeat;
  color: #fff;
  padding: 3.5rem 0 2.75rem;
}

.page-hero h1 {
  margin-bottom: 0.6rem;
}

.page-hero p {
  margin: 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.86);
}

.content-wrap {
  padding: 2.5rem 0 4rem;
}

.legal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.75rem;
}

.legal h2 {
  margin-top: 1.75rem;
  font-size: 1.25rem;
}

.legal p,
.legal li {
  color: var(--text-muted);
}

/* Auth */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.auth-card label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.auth-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  margin-bottom: 1rem;
  font: inherit;
  background: #fff;
}

.auth-card input:focus {
  outline: 2px solid rgba(13, 159, 110, 0.25);
  border-color: var(--brand);
}

.auth-note {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.auth-side h2 {
  margin-top: 0;
}

.auth-side p {
  color: var(--text-muted);
}

.auth-side ul {
  color: var(--text-muted);
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(13, 159, 110, 0.12), transparent 45%),
    var(--surface);
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: #07111f;
  color: rgba(242, 246, 252, 0.78);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.site-footer a {
  color: rgba(242, 246, 252, 0.72);
  display: inline-block;
  margin-bottom: 0.45rem;
}

.site-footer a:hover {
  color: var(--brand-light);
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.85rem;
  color: #fff;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.related-links a {
  background: rgba(13, 159, 110, 0.1);
  color: var(--brand-dark);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.88rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
  text-align: left;
  font-size: 0.95rem;
}

th {
  background: #eef5f1;
}

@media (max-width: 960px) {
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-block,
  .auth-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: #0c1a30;
    border-bottom: 1px solid var(--line-inv);
    padding: 1rem;
    display: none;
  }

  .nav-panel.open {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    margin-bottom: 1rem;
  }

  .nav-menu a {
    display: block;
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
  }

  .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-actions {
    width: 100%;
  }

  .nav-actions .btn {
    flex: 1;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 3.25rem 0 3.5rem;
  }
}

/* Ads bar — top of content, easy to tap */
.ads-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0.5rem 0.35rem;
  position: relative;
  z-index: 20;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  background: transparent;
  margin: 0;
  max-width: var(--max);
  margin-inline: auto;
}

#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;
}
