:root {
  --bg: #071018;
  --bg-soft: #0e1a26;
  --bg-card: #122233;
  --surface: #f4f7fa;
  --text: #e8eef4;
  --text-muted: #9bb0c3;
  --text-dark: #1a2b3c;
  --text-body: #334455;
  --brand: #e11d2e;
  --brand-dark: #b01422;
  --accent-teal: #1a9e8f;
  --line: rgba(255, 255, 255, 0.08);
  --line-dark: rgba(15, 35, 55, 0.12);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius: 12px;
  --container: 1180px;
  --header-h: 72px;
  --font-display: "ZCOOL QingKe HuangYou", "Noto Sans SC", sans-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(--text-dark);
  background: var(--surface);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--brand-dark);
}

ul {
  padding-left: 1.2em;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  font-weight: 400;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(7, 16, 24, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  flex-shrink: 0;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.logo-text span {
  color: var(--brand);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 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;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--brand);
  border-color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  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 */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 16, 24, 0.35) 0%, rgba(7, 16, 24, 0.82) 70%, rgba(7, 16, 24, 0.96) 100%),
    url("/开云体育首页.jpg") center / cover no-repeat;
  transform: scale(1.02);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 72px 0 80px;
  max-width: 720px;
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  color: #fff;
}

.hero-brand em {
  font-style: normal;
  color: var(--brand);
}

.hero h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-weight: 600;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-dark {
  background: var(--bg);
  color: var(--text);
}

.section-dark .section-title,
.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-dark p,
.section-dark li {
  color: var(--text-muted);
}

.section-alt {
  background:
    radial-gradient(ellipse at top right, rgba(26, 158, 143, 0.08), transparent 45%),
    linear-gradient(180deg, #eef3f7 0%, #f7fafc 100%);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-body);
  max-width: 720px;
  margin-bottom: 36px;
}

.section-dark .section-desc {
  color: var(--text-muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-block h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.feature-block p {
  color: var(--text-body);
  margin-bottom: 0.8em;
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.category-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #fff;
  background: var(--bg-card);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.78) 100%);
}

.category-tile:hover img {
  transform: scale(1.06);
}

.category-tile span {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.partner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.partner-row img {
  height: 56px;
  width: auto;
  object-fit: contain;
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-dark);
}

.provider-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}

.provider-row img {
  width: 100%;
  height: 64px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}

.promo-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.promo-item {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: #fff;
}

.promo-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.promo-item .promo-body {
  padding: 16px 18px 20px;
}

.promo-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.promo-item p {
  color: var(--text-body);
  margin: 0;
  font-size: 0.95rem;
}

.seo-article {
  max-width: 860px;
}

.seo-article h2 {
  margin-top: 1.8em;
  font-size: 1.55rem;
}

.seo-article h3 {
  margin-top: 1.4em;
  font-size: 1.2rem;
}

.seo-article p,
.seo-article li {
  color: var(--text-body);
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.internal-links a {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(225, 29, 46, 0.08);
  color: var(--brand);
  border: 1px solid rgba(225, 29, 46, 0.18);
  font-size: 0.9rem;
}

.internal-links a:hover {
  background: var(--brand);
  color: #fff;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.cta-band {
  background:
    linear-gradient(120deg, rgba(225, 29, 46, 0.92), rgba(176, 20, 34, 0.88)),
    url("/足球.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 64px 0;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin: 0 auto 24px;
}

.page-hero {
  background:
    linear-gradient(135deg, rgba(7, 16, 24, 0.92), rgba(18, 40, 58, 0.88)),
    url("/电子.jpg") center / cover no-repeat;
  color: #fff;
  padding: 72px 0 56px;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
}

.content-page {
  padding: 48px 0 72px;
}

.content-page .prose {
  max-width: 860px;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 36px 40px;
}

.prose h2 {
  margin-top: 1.6em;
  font-size: 1.4rem;
}

.prose h3 {
  margin-top: 1.2em;
  font-size: 1.15rem;
}

.prose p,
.prose li {
  color: var(--text-body);
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 10px 30px rgba(15, 35, 55, 0.06);
}

.auth-card h2 {
  margin-bottom: 8px;
}

.auth-card .form-note {
  color: var(--text-body);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.92rem;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fbfcfe;
}

.form-group input:focus {
  outline: 2px solid rgba(225, 29, 46, 0.25);
  border-color: var(--brand);
}

.form-actions {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.auth-side h2 {
  margin-bottom: 12px;
}

.auth-side img {
  border-radius: var(--radius);
  margin: 20px 0;
  box-shadow: var(--shadow);
}

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 80px 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(225, 29, 46, 0.12), transparent 40%),
    var(--surface);
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--brand);
  line-height: 1;
  margin-bottom: 12px;
}

.error-page h1 {
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-body);
  max-width: 480px;
  margin: 0 auto 28px;
}

/* Footer */
.site-footer {
  background: var(--bg);
  color: var(--text-muted);
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.site-footer a {
  color: var(--text-muted);
  display: block;
  padding: 4px 0;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #fff;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.9rem;
}

.mobile-nav {
  display: none;
}

@media (max-width: 980px) {
  .grid-2,
  .auth-layout,
  .footer-grid,
  .promo-list {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .nav,
  .header-actions .btn-ghost {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(7, 16, 24, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 16px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
    z-index: 999;
  }

  .mobile-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav a {
    display: block;
    color: var(--text);
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav .mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
  }

  .content-page .prose {
    padding: 24px 20px;
  }
}

@media (max-width: 640px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 48px 0 56px;
  }

  .section {
    padding: 52px 0;
  }
}

/* Top ads bar */
.ads-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
  box-shadow: 0 6px 18px rgba(15, 35, 55, 0.06);
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 4px;
  background: transparent;
  margin: 0;
  padding: 10px 8px 8px;
}

#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;
}
