/* 开云体育 kai-yun.club — 站点样式 */
:root {
  --bg-deep: #071520;
  --bg-mid: #0c2436;
  --bg-card: rgba(14, 42, 62, 0.55);
  --brand: #1ec8a5;
  --brand-dim: #149a7c;
  --gold: #f0b429;
  --text: #e8f1f6;
  --text-muted: #9bb3c4;
  --line: rgba(30, 200, 165, 0.22);
  --danger: #e85d5d;
  --radius: 10px;
  --max: 1120px;
  --header-h: 68px;
  --font-display: "Oswald", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

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(--gold);
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(7, 21, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.logo span {
  background: linear-gradient(90deg, #fff, var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  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);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  color: var(--text-muted);
  padding: 0.45rem 0.7rem;
  font-size: 0.92rem;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(30, 200, 165, 0.12);
}

.nav-cta {
  display: flex;
  gap: 0.5rem;
  margin-left: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dim));
  color: #042018;
  box-shadow: 0 4px 20px rgba(30, 200, 165, 0.35);
}

.btn-primary:hover {
  color: #042018;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #d4920f);
  color: #1a1200;
}

.btn-gold:hover {
  color: #1a1200;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(7, 21, 32, 0.88) 0%, rgba(7, 21, 32, 0.55) 45%, rgba(12, 36, 54, 0.7) 100%),
    url("/images/足球.jpg") center/cover no-repeat;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(30, 200, 165, 0.18), transparent),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(240, 180, 41, 0.08), transparent);
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero-content {
  padding: 3.5rem 0 4rem;
  max-width: 640px;
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.hero-brand em {
  font-style: normal;
  color: var(--brand);
}

.hero h1 {
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.45;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 1.75rem;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ——— Sections ——— */
.section {
  padding: 4rem 0;
  position: relative;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(12, 36, 54, 0.65), rgba(7, 21, 32, 0.4)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 40px,
      rgba(30, 200, 165, 0.03) 40px,
      rgba(30, 200, 165, 0.03) 41px
    );
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}

.section-title span {
  color: var(--brand);
}

.section-desc {
  color: var(--text-muted);
  max-width: 42em;
  margin-bottom: 2rem;
}

.prose {
  color: var(--text-muted);
}

.prose p {
  margin-bottom: 1.1rem;
}

.prose h2,
.prose h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 2rem 0 0.85rem;
}

.prose h2 {
  font-size: 1.45rem;
}

.prose h3 {
  font-size: 1.2rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2rem 1.25rem;
  color: var(--text-muted);
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* Feature / content grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  animation: fadeUp 0.7s ease both;
}

.feature-item:nth-child(2) { animation-delay: 0.1s; }
.feature-item:nth-child(3) { animation-delay: 0.2s; }

.feature-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.shot-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.shot-row.reverse {
  grid-template-columns: 1fr 1.1fr;
}

.shot-row.reverse .shot-media {
  order: 2;
}

.shot-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.category-item {
  text-align: center;
}

.category-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 0.6rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.category-item:hover img {
  transform: translateY(-4px);
  border-color: var(--brand);
}

.category-item figcaption {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.partner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
}

.partner-row img {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.85;
  filter: brightness(1.05);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.partner-row img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  padding: 1.25rem 0;
  border-top: 2px solid var(--brand);
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brand);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--brand);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cta-band {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(30, 200, 165, 0.15), transparent),
    var(--bg-mid);
  border-block: 1px solid var(--line);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.cta-band .hero-actions {
  justify-content: center;
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-top: 1.5rem;
}

.internal-links a {
  font-size: 0.92rem;
}

/* ——— Auth pages ——— */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(30, 200, 165, 0.08), transparent 60%),
    var(--bg-mid);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 40em;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0 4rem;
}

.auth-form-wrap {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.auth-form-wrap h2 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(7, 21, 32, 0.7);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand);
}

.auth-form-wrap .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.auth-note {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}

.auth-side img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

/* ——— Error pages ——— */
.error-page {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 28em;
  margin-inline: auto;
}

/* ——— Footer ——— */
.site-footer {
  background: #050f18;
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  margin-bottom: 0.85rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .feature-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .shot-row,
  .shot-row.reverse {
    grid-template-columns: 1fr;
  }

  .shot-row.reverse .shot-media {
    order: 0;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(7, 21, 32, 0.98);
    padding: 1.25rem;
    gap: 0.25rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav a {
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-cta {
    flex-direction: column;
    margin: 1rem 0 0;
  }

  .nav-cta .btn {
    width: 100%;
  }

  body.nav-open {
    overflow: hidden;
  }

  .feature-grid,
  .steps,
  .category-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 2.5rem 0 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-bg {
    transform: none;
  }
}

/* ——— Top ads bar ——— */
.ads-bar {
  position: relative;
  z-index: 50;
  background: rgba(5, 15, 24, 0.95);
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0 0.35rem;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  background: transparent;
  margin: 0;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#ads figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#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: none;
  background: #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(30, 200, 165, 0.28);
}

#ads figcaption,
#ads .caption {
  height: 18px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
