:root {
  --bg: #0b1220;
  --bg-soft: #121a2b;
  --bg-card: #162033;
  --line: rgba(255, 255, 255, 0.1);
  --text: #e8eef8;
  --muted: #9aabc4;
  --brand: #1db954;
  --brand-2: #0ea5e9;
  --accent: #f59e0b;
  --danger: #ef4444;
  --radius: 14px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(29, 185, 84, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(14, 165, 233, 0.16), transparent 50%),
    linear-gradient(180deg, #0a101c 0%, #0b1220 40%, #0d1524 100%);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.logo span {
  font-size: 1.05rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(29, 185, 84, 0.15);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #16a34a);
  color: #04140a;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(29, 185, 84, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(29, 185, 84, 0.5);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.2s 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 {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 14, 26, 0.92) 0%, rgba(8, 14, 26, 0.72) 45%, rgba(8, 14, 26, 0.35) 100%),
    url("/开云体育首页.jpg") center / cover no-repeat;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  padding: 72px 0 80px;
  min-height: calc(100vh - 72px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 56ch;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-points li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-points strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
}

.hero-panel {
  background: rgba(15, 23, 40, 0.78);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-panel img {
  border-radius: 14px;
  margin-bottom: 16px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-panel h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.hero-panel p {
  color: var(--muted);
  margin-bottom: 16px;
}

.section {
  padding: 72px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 18px;
}

.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));
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 185, 84, 0.35);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.card p,
.card li {
  color: var(--muted);
}

.card ul {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.card ul li::before {
  content: "•";
  color: var(--brand);
  margin-right: 8px;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.feature-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.partners {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.partners img,
.brand-row img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.brand-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.prose {
  display: grid;
  gap: 16px;
  color: var(--muted);
}

.prose h2,
.prose h3 {
  color: #fff;
  margin-top: 8px;
}

.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ol,
.prose ul {
  padding-left: 1.2rem;
}

.prose ol {
  list-style: decimal;
}

.prose ul {
  list-style: disc;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #fff;
}

.faq p {
  color: var(--muted);
  margin-top: 10px;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
  padding: 48px 0 72px;
}

.auth-visual {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 420px;
  background: #111827 center / cover no-repeat;
  position: relative;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 14, 26, 0.15), rgba(8, 14, 26, 0.78));
}

.auth-visual .overlay-text {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
}

.auth-box {
  background: rgba(18, 26, 43, 0.9);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-box h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.auth-box .lead {
  color: var(--muted);
  margin-bottom: 22px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #d7e2f2;
  font-size: 0.92rem;
}

.form-group input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 0 14px;
  outline: none;
}

.form-group input:focus {
  border-color: rgba(29, 185, 84, 0.7);
  box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.15);
}

.form-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 12px 0 18px;
}

.page-hero {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted);
  max-width: 70ch;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--brand);
}

.error-page {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}

.error-page h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 12px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 24px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 22, 0.9);
  padding: 48px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-grid h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-grid a,
.footer-grid p {
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.footer-grid a:hover {
  color: var(--brand);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.toc a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.toc a:hover {
  color: #fff;
  border-color: rgba(29, 185, 84, 0.45);
}

.cta-band {
  margin: 20px 0 0;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(29, 185, 84, 0.28);
  background:
    linear-gradient(120deg, rgba(29, 185, 84, 0.14), rgba(14, 165, 233, 0.1));
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.cta-band h3 {
  margin-bottom: 6px;
}

.cta-band p {
  color: var(--muted);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.steps li::before {
  content: counter(step);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(29, 185, 84, 0.18);
  color: var(--brand);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero-inner,
  .auth-layout,
  .footer-grid,
  .grid-4,
  .grid-3,
  .partners,
  .brand-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav,
  .header-actions {
    display: none;
  }

  .mobile-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: rgba(10, 16, 28, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 16px;
  }

  .mobile-panel.is-open {
    display: block;
  }

  .mobile-panel a {
    display: block;
    padding: 12px 10px;
    border-radius: 10px;
    color: var(--muted);
  }

  .mobile-panel a:hover,
  .mobile-panel a.active {
    background: rgba(29, 185, 84, 0.12);
    color: #fff;
  }

  .mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  .hero-inner,
  .auth-layout,
  .grid-2,
  .grid-3,
  .grid-4,
  .partners,
  .brand-row,
  .footer-grid,
  .feature-item {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 42px 0 56px;
    min-height: auto;
  }

  .auth-visual {
    min-height: 260px;
  }
}

/* Top ads bar */
.ads-bar {
  position: relative;
  z-index: 20;
  padding: 12px 0 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 14, 26, 0.92);
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px 18px;
  background: transparent;
  margin: 0;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 78px;
  box-sizing: border-box;
}

#ads figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 18px;
  line-height: 0;
}

#ads img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #fff, #f3f3f3);
  max-width: none;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 28px rgba(29, 185, 84, 0.28);
}

#ads figcaption,
#ads .caption {
  height: 16px;
  font-size: 11px;
  color: #c5d2e6;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
