/* 开云体育 ky-sportsclub.com — 全站样式 */
:root {
  --bg: #0a1628;
  --bg-2: #0f2137;
  --bg-3: #132a45;
  --surface: rgba(18, 42, 68, 0.72);
  --text: #eef4fb;
  --muted: #9bb0c7;
  --brand: #1ae0a1;
  --brand-dark: #0fb87f;
  --accent: #f0c14b;
  --line: rgba(255, 255, 255, 0.1);
  --danger: #ff6b6b;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font-display: "Oswald", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "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(26, 224, 161, 0.16), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(240, 193, 75, 0.1), transparent 50%),
    linear-gradient(180deg, #07101c 0%, var(--bg) 35%, #08131f 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: var(--accent);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(7, 16, 28, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.brand span {
  font-size: 1.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  color: var(--muted);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  display: flex;
  gap: 0.5rem;
  margin-left: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  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), #12b88a);
  color: #042217;
  box-shadow: 0 8px 24px rgba(26, 224, 161, 0.28);
}

.btn-primary:hover {
  color: #042217;
  box-shadow: 0 12px 28px rgba(26, 224, 161, 0.38);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #d4a22e);
  color: #2a1d00;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  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: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(7, 16, 28, 0.35) 0%, rgba(7, 16, 28, 0.78) 55%, rgba(7, 16, 28, 0.96) 100%),
    url("/开云体育首页.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(26, 224, 161, 0.08));
}

.hero-content {
  padding: 4.5rem 0 3.5rem;
  max-width: 720px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: 0.06em;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff 20%, var(--brand) 70%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.35;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero-lead {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36em;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeUp 0.8s ease 0.3s both;
}

/* Sections */
.section {
  padding: 4.2rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(19, 42, 69, 0.35), rgba(10, 22, 40, 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.5rem, 3vw, 2rem);
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.prose {
  color: var(--muted);
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.prose h2 {
  font-size: 1.55rem;
}

.prose h3 {
  font-size: 1.25rem;
}

.prose p,
.prose li {
  font-size: 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

.prose strong {
  color: #dce9f7;
}

.lead {
  font-size: 1.08rem;
  color: #c5d5e8;
}

/* Feature mosaic — not card-heavy */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.feature-item {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.feature-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}

.feature-item:hover img {
  transform: scale(1.06);
}

.feature-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.1rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(4, 12, 22, 0.92));
}

.feature-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step {
  padding: 1.25rem 1rem 1.25rem 0;
  border-top: 2px solid var(--brand);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  color: var(--brand);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Partners */
.partner-row,
.provider-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: flex-start;
}

.partner-row img,
.provider-row img {
  height: 52px;
  width: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.partner-row img:hover,
.provider-row img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.partner-row img.partner-photo {
  height: 72px;
  padding: 0;
  object-fit: cover;
  width: 120px;
}

/* Promo strip */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.promo-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.promo-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.promo-grid figcaption {
  padding: 0.9rem 1rem 1.1rem;
  background: var(--bg-2);
}

.promo-grid h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.promo-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--brand);
  font-size: 1.2rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0.75rem 0 0.2rem;
  color: var(--muted);
}

/* Auth pages */
.auth-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: stretch;
  padding: 3rem 0 4rem;
}

.auth-visual {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--line);
}

.auth-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.auth-visual .overlay-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(4, 12, 22, 0.92));
}

.auth-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.6rem 1.4rem 1.8rem;
  box-shadow: var(--shadow);
}

.auth-panel h1 {
  margin: 0 0 0.5rem;
  font-size: 1.55rem;
}

.auth-panel .sub {
  margin: 0 0 1.3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: #c8d7e8;
}

.form-group input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
}

.form-group input:focus {
  outline: 2px solid rgba(26, 224, 161, 0.45);
  border-color: var(--brand);
}

.form-actions {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.7rem;
}

.form-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-seo {
  padding-bottom: 3.5rem;
}

/* Legal / content pages */
.page-hero {
  padding: 2.8rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 46rem;
}

.breadcrumb {
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.content-wrap {
  padding: 2.2rem 0 4rem;
  max-width: 820px;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 220px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 7rem);
  line-height: 1;
  color: var(--brand);
  margin: 0;
  letter-spacing: 0.04em;
}

.error-page h1 {
  margin: 0.6rem 0 0.8rem;
  font-size: 1.6rem;
}

.error-page p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #060d17;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  color: #fff;
}

.site-footer p,
.site-footer li {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--brand);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  color: #7f93aa;
  font-size: 0.85rem;
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-top: 1.2rem;
}

.internal-links a {
  color: var(--muted);
  font-size: 0.9rem;
  border-bottom: 1px dashed rgba(155, 176, 199, 0.35);
}

.internal-links a:hover {
  color: var(--brand);
}

/* Top ads bar — 利于点击 */
.site-ads-wrap {
  position: relative;
  z-index: 20;
  background: rgba(6, 13, 23, 0.92);
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0 0.45rem;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  background: transparent;
  margin: 0;
  min-height: 0;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  box-sizing: border-box;
}

#ads figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 18px;
  line-height: 0;
}

#ads img {
  width: 65px;
  height: 65px;
  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);
}

#ads img:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 12px 28px rgba(26, 224, 161, 0.28);
}

#ads figcaption,
#ads .caption {
  height: 16px;
  font-size: 11px;
  color: #c5d5e8;
  text-align: center;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .feature-grid,
  .steps,
  .promo-grid,
  .auth-wrap,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(6, 13, 23, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

  .nav-wrap.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-cta {
    margin: 0.6rem 0 0;
    flex-direction: column;
  }

  .feature-grid,
  .steps,
  .promo-grid,
  .auth-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 78vh;
  }

  .partner-row img.partner-photo {
    width: calc(50% - 0.4rem);
    height: 64px;
  }
}
