:root {
  --bg: #0a1628;
  --bg-soft: #0f2138;
  --bg-card: #132a45;
  --surface: #173452;
  --text: #eef4fb;
  --muted: #9bb0c7;
  --brand: #1ec98a;
  --brand-deep: #0fa86f;
  --accent: #f0b429;
  --line: rgba(255, 255, 255, 0.1);
  --danger: #ef4444;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font-display: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(30, 201, 138, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(240, 180, 41, 0.12), transparent 50%),
    linear-gradient(180deg, #07101c 0%, var(--bg) 35%, #081422 100%);
  line-height: 1.75;
  min-height: 100vh;
}

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: #5de6b0;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(7, 16, 28, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  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);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  gap: 0.55rem;
  margin-left: 0.4rem;
}

.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: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #042016;
  box-shadow: 0 10px 28px rgba(30, 201, 138, 0.28);
}

.btn-primary:hover {
  color: #02140e;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-accent {
  background: linear-gradient(135deg, #f5c451, #d99912);
  color: #2a1b00;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(30, 201, 138, 0.45);
  color: var(--brand);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(7, 16, 28, 0.92) 0%, rgba(7, 16, 28, 0.72) 42%, rgba(7, 16, 28, 0.35) 100%),
    url("/开云体育首页.jpg") center / cover no-repeat;
  z-index: -1;
}

.hero-inner {
  padding: 4.5rem 0 3.5rem;
  max-width: 640px;
}

.hero-brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  font-weight: 800;
}

.hero-brand span {
  color: var(--brand);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
  color: #f7fbff;
}

.hero-lead {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section {
  padding: 4.2rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(15, 33, 56, 0.55), rgba(15, 33, 56, 0.2));
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 46rem;
}

.section-head h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.25;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature {
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.feature h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.prose h2,
.prose h3 {
  scroll-margin-top: 90px;
}

.prose h2 {
  margin: 2.2rem 0 0.9rem;
  font-size: 1.55rem;
}

.prose h3 {
  margin: 1.6rem 0 0.7rem;
  font-size: 1.2rem;
}

.prose p {
  margin: 0 0 1rem;
  color: #d5e2f0;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
  color: #d5e2f0;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose strong {
  color: #fff;
  font-weight: 700;
}

.media-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.partner-grid,
.provider-grid,
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.9rem;
}

.partner-item,
.provider-item,
.cat-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  text-align: center;
}

.partner-item img,
.provider-item img {
  width: 100%;
  height: 64px;
  object-fit: contain;
  margin: 0 auto 0.55rem;
}

.partner-item span,
.provider-item span,
.cat-item span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.cat-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.6rem;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

.step {
  position: relative;
  padding: 1.2rem 1.2rem 1.2rem 4.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(30, 201, 138, 0.15);
  color: var(--brand);
  font-weight: 800;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 0.75rem;
  padding: 0.2rem 1rem;
}

.faq summary {
  cursor: pointer;
  padding: 0.95rem 0;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--brand);
}

.faq details p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.cta-band {
  margin: 1rem 0 0;
  padding: 2rem;
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(30, 201, 138, 0.18), rgba(240, 180, 41, 0.12)),
    var(--bg-soft);
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cta-band h2 {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  padding: 3.2rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 46rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 3rem;
}

.auth-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 1.6rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  color: #d7e4f2;
}

.form-group input {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  padding: 0.7rem 0.9rem;
  font: inherit;
}

.form-group input:focus {
  outline: 2px solid rgba(30, 201, 138, 0.45);
  border-color: transparent;
}

.form-note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.error-page {
  min-height: calc(100vh - var(--header-h) - 220px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 0;
}

.error-page h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.4rem, 8vw, 4rem);
}

.error-page p {
  margin: 0 0 1.4rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #060d17;
  padding: 2.4rem 0 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.site-footer h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer a:hover {
  color: var(--brand);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: #7f93aa;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: space-between;
}

.toc {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  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;
  color: var(--muted);
  font-size: 0.92rem;
}

.toc a:hover {
  color: var(--brand);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0;
}

.chip {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.03);
}

.chip:hover {
  color: var(--text);
  border-color: rgba(30, 201, 138, 0.45);
}

@media (max-width: 960px) {
  .grid-2,
  .auth-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 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: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(7, 16, 28, 0.97);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-menu a {
    display: block;
    padding: 0.85rem 0.2rem;
  }

  .nav-cta {
    margin: 0.6rem 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(7, 16, 28, 0.88) 0%, rgba(7, 16, 28, 0.78) 55%, rgba(7, 16, 28, 0.92) 100%),
      url("/开云体育首页.jpg") center / cover no-repeat;
  }

  .hero-inner {
    padding-top: 3rem;
  }
}

@media (max-width: 640px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 1.35rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-inner,
.section-head,
.feature,
.auth-card {
  animation: rise-in 0.7s ease both;
}

.feature:nth-child(2) {
  animation-delay: 0.08s;
}

.feature:nth-child(3) {
  animation-delay: 0.16s;
}

/* Top ads strip — 内容顶部，利于点击 */
.ads-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 900;
  padding: 0.75rem 0 0.55rem;
  background: rgba(7, 16, 28, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.ads-bar .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.ads-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  background: transparent;
  margin: 10px 0;
  min-height: 88px;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 78px;
  box-sizing: border-box;
}

#ads figure {
  margin: 0;
}

#ads img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
  cursor: pointer;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
  -webkit-tap-highlight-color: transparent;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 24px rgba(30, 201, 138, 0.32);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  margin-top: 0.35rem;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  #ads {
    gap: 0.45rem 0.65rem;
    margin: 6px 0;
  }

  #ads > div {
    width: 70px;
  }

  #ads img {
    width: 65px;
    height: 65px;
  }
}
