/* 开云体育官方站 - kai-yun.qpon */
:root {
  --brand: #0b3d2e;
  --brand-deep: #062820;
  --accent: #c8a44a;
  --accent-soft: #e8d5a3;
  --surface: #0f1f1a;
  --surface-2: #143028;
  --text: #f3f6f4;
  --text-muted: #a8b8b1;
  --line: rgba(200, 164, 74, 0.28);
  --danger: #c45c4a;
  --ok: #2db87a;
  --radius: 12px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --header-h: 72px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Noto Serif SC", "Songti SC", "SimSun", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(200, 164, 74, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 0%, rgba(45, 184, 122, 0.12), transparent 50%),
    linear-gradient(180deg, #071610 0%, #0b1c16 40%, #0a1612 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 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(6, 40, 32, 0.92);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.logo span {
  font-size: 1.05rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  color: var(--text-muted);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(200, 164, 74, 0.12);
}

.nav-cta {
  display: flex;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #c8a44a, #a8842e);
  color: #1a1408;
}

.btn-primary:hover {
  color: #1a1408;
}

.btn-outline {
  border-color: var(--line);
  color: var(--accent-soft);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.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;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-soft);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero-meta strong {
  color: var(--accent);
  display: block;
  font-size: 1.2rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -10% -12% 20%;
  height: 40%;
  background: radial-gradient(ellipse, rgba(200, 164, 74, 0.25), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 46rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin: 0 0 0.65rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.prose {
  color: var(--text-muted);
}

.prose h2,
.prose h3 {
  color: var(--text);
  font-family: var(--display);
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Feature / cards grid — interaction containers */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-item {
  padding: 1.35rem;
  background: linear-gradient(160deg, rgba(20, 48, 40, 0.9), rgba(10, 28, 22, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
}

.feature-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.category-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 160px;
}

.category-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  opacity: 0.85;
}

.category-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-weight: 700;
}

.download-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.download-box {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(200, 164, 74, 0.08), transparent 45%),
    var(--surface-2);
}

.download-box h3 {
  margin: 0 0 0.75rem;
}

.download-box p {
  color: var(--text-muted);
  margin: 0 0 1.15rem;
}

.download-box .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
}

.partner-grid img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.shot-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.shot-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.shot-grid figcaption {
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(200, 164, 74, 0.18);
  color: var(--accent);
  font-weight: 700;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 0.7rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.85rem 1.1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--accent-soft);
  margin-bottom: 0.55rem;
}

.faq p {
  margin: 0;
  color: var(--text-muted);
}

.cta-band {
  margin: 1rem 0 0;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(200, 164, 74, 0.15), transparent 55%),
    var(--surface-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

.cta-band p {
  margin: 0;
  color: var(--text-muted);
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.internal-links a {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.internal-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Auth pages */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0 3.5rem;
}

.auth-panel {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 31, 26, 0.88);
}

.auth-panel h1 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: 1.7rem;
}

.auth-panel .lead {
  color: var(--text-muted);
  margin: 0 0 1.35rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.form-group input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  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(200, 164, 74, 0.45);
  border-color: var(--accent);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.75rem 0 1.15rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-tip {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.auth-side h2 {
  font-family: var(--display);
  margin: 0 0 0.85rem;
}

.auth-side img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}

.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.65rem;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 42rem;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.breadcrumb a {
  color: var(--accent-soft);
}

.content-wrap {
  padding-bottom: 3.5rem;
}

.content-wrap .prose {
  max-width: 52rem;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 220px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-family: var(--display);
}

.error-page p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(4, 22, 17, 0.95);
  padding: 2.5rem 0 1.5rem;
  margin-top: 1rem;
}

.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.85rem;
  font-size: 1rem;
  color: var(--accent-soft);
}

.site-footer p,
.site-footer li {
  color: var(--text-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 {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-grid,
  .feature-item,
  .download-box,
  .category-item {
    animation: rise 0.7s ease both;
  }

  .feature-item:nth-child(2),
  .download-box:nth-child(2) {
    animation-delay: 0.08s;
  }

  .feature-item:nth-child(3) {
    animation-delay: 0.16s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .auth-layout,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-wrap {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(6, 40, 32, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-wrap.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav a {
    padding: 0.85rem 1rem;
  }

  .nav-cta {
    margin: 0.5rem 0 0;
    flex-direction: column;
  }

  .nav-cta .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .shot-grid,
  .footer-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .logo span {
    font-size: 0.95rem;
  }

  .hero {
    padding-top: 2rem;
  }
}

/* 顶部广告入口 */
.ads-wrap {
  padding: 0.85rem 0 0.25rem;
  position: relative;
  z-index: 5;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.5rem 0.55rem;
  margin: 0;
}

#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(0, 0, 0, 0.28);
  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(0, 0, 0, 0.35);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 0.3rem;
}
