/* kysports.lol — 开云体育官网 */
:root {
  --bg: #0b1f17;
  --bg-2: #123028;
  --bg-3: #1a3d32;
  --surface: rgba(18, 48, 40, 0.88);
  --text: #f2f7f4;
  --muted: #a8c4b8;
  --brand: #d4a017;
  --brand-2: #f0c14b;
  --accent: #2ecc71;
  --line: rgba(212, 160, 23, 0.28);
  --danger: #e74c3c;
  --radius: 12px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --max: 1120px;
  --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;
}

*,
*::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(46, 204, 113, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(212, 160, 23, 0.16), transparent 50%),
    linear-gradient(180deg, #071510 0%, var(--bg) 35%, #0e241c 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(7, 21, 16, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  justify-content: flex-end;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  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[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);
}

.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: #fff;
  background: rgba(46, 204, 113, 0.12);
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  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, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #b8860b);
  color: #1a1200;
}

.btn-primary:hover {
  color: #000;
}

.btn-outline {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand-2);
}

.btn-ghost {
  background: rgba(46, 204, 113, 0.12);
  color: var(--accent);
  border-color: rgba(46, 204, 113, 0.35);
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(7, 21, 16, 0.92) 0%, rgba(7, 21, 16, 0.55) 45%, rgba(7, 21, 16, 0.35) 100%),
    url("/开云体育首页.jpg") center / cover no-repeat;
  z-index: -1;
  animation: heroFade 1.2s ease both;
}

@keyframes heroFade {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}

.hero-brand {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fff 20%, var(--brand-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: riseIn 0.7s ease both;
}

.hero h1 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 600;
  margin: 0 0 0.85rem;
  color: #e8f5ee;
  max-width: 36rem;
  animation: riseIn 0.7s ease 0.1s both;
}

.hero-lead {
  max-width: 38rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  animation: riseIn 0.7s ease 0.18s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: riseIn 0.7s ease 0.26s both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-title {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin: 0 0 0.6rem;
  color: #fff;
}

.section-desc {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 46rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(26, 61, 50, 0.7), rgba(11, 31, 23, 0.7));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 160, 23, 0.55);
}

.feature h3 {
  margin: 0.7rem 0 0.4rem;
  font-size: 1.1rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.partners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
}

.partners figure {
  margin: 0;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  text-align: center;
}

.partners img {
  height: 52px;
  width: auto;
  margin: 0 auto 0.45rem;
  object-fit: contain;
}

.partners figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.provider-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-start;
}

.provider-logos img {
  height: 36px;
  width: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
}

.prose h2,
.prose h3 {
  color: #fff;
  scroll-margin-top: 5rem;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

.prose h3 {
  font-size: 1.15rem;
  margin: 1.4rem 0 0.55rem;
}

.prose p {
  margin: 0 0 1rem;
  color: #d7e8df;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: #d7e8df;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose strong {
  color: #fff;
}

.toc {
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.25);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
}

.toc h2 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  border: 0;
  padding: 0;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.toc a {
  color: var(--muted);
}

.toc a:hover {
  color: var(--brand-2);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.steps li {
  position: relative;
  padding: 0.9rem 0.9rem 0.9rem 3.2rem;
  margin-bottom: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(18, 48, 40, 0.6);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--brand);
  color: #1a1200;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  background: rgba(18, 48, 40, 0.55);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
}

.faq p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.cta-band {
  margin: 1.5rem 0;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(212, 160, 23, 0.18), rgba(46, 204, 113, 0.12));
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cta-band p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2.5rem 0 3rem;
}

.auth-form {
  display: grid;
  gap: 0.85rem;
}

.auth-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.auth-form input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(7, 21, 16, 0.75);
  color: #fff;
  font: inherit;
}

.auth-form input:focus {
  outline: 2px solid rgba(212, 160, 23, 0.45);
  border-color: var(--brand);
}

.auth-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 800;
  line-height: 1;
  margin: 0;
  background: linear-gradient(135deg, var(--brand-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.breadcrumb {
  padding: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb span {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.page-hero {
  padding: 1.75rem 0 0.5rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 44rem;
}

/* 顶部广告栏 */
.ads-bar {
  position: relative;
  z-index: 50;
  padding: 0.65rem 0 0.35rem;
  background: rgba(7, 21, 16, 0.72);
  border-bottom: 1px solid var(--line);
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  background: transparent;
  margin: 6px 0;
  min-height: 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.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;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: rgba(4, 14, 10, 0.85);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: #fff;
}

.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;
}

.footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
}

.related-links a {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
}

.related-links a:hover {
  color: var(--brand-2);
  border-color: var(--brand);
}

@media (max-width: 960px) {
  .grid-4,
  .grid-3,
  .footer-grid,
  .auth-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(7, 21, 16, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    flex: none;
    justify-content: flex-start;
  }

  .nav-panel.open {
    display: flex;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav a {
    padding: 0.75rem 0.85rem;
  }

  .header-actions {
    width: 100%;
    padding-top: 0.35rem;
  }

  .header-actions .btn {
    flex: 1;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    flex-wrap: wrap;
  }
}
