/* 开云体育官网 - kysports.life */
:root {
  --brand: #1a6bb5;
  --brand-dark: #0d4a82;
  --brand-light: #2b8fd9;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f4f7fb;
  --bg-alt: #e8f1fa;
  --surface: #ffffff;
  --accent: #e8a317;
  --ok: #0d9488;
  --danger: #dc2626;
  --radius: 10px;
  --shadow: 0 12px 40px rgba(13, 74, 130, 0.12);
  --max: 1120px;
  --header-h: 72px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-dark);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 0.75em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

ul, ol { padding-left: 1.25em; color: var(--ink-soft); }
li { margin-bottom: 0.45em; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}

.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(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.logo img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
  background: var(--bg-alt);
}

.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: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
  font-family: inherit;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(26, 107, 181, 0.35);
}

.btn-primary:hover { color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #1a1a1a;
}

.btn-lg {
  padding: 0.95rem 1.6rem;
  font-size: 1.05rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  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: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(13, 74, 130, 0.92) 0%, rgba(26, 107, 181, 0.75) 45%, rgba(15, 23, 42, 0.55) 100%),
    url("/开云体育首页.jpg") center/cover no-repeat;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(43, 143, 217, 0.35), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 4rem 0 5rem;
  max-width: 680px;
}

.hero .brand-name {
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  animation: fadeUp 0.7s ease both;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 600;
  margin: 0 0 1rem;
  opacity: 0.95;
  animation: fadeUp 0.7s ease 0.1s both;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeUp 0.7s ease 0.3s both;
}

.hero .btn-primary {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.hero .btn-outline:hover {
  background: #fff;
  color: var(--brand-dark);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--surface);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 720px;
}

.section-head p {
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

/* Cards / grids — used only for interactive/content blocks */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  transition: border-color 0.2s ease, transform 0.25s ease;
}

.feature-item:hover {
  border-color: var(--brand-light);
  transform: translateY(-3px);
}

.feature-item h3 {
  margin-bottom: 0.5rem;
  color: var(--brand-dark);
}

.feature-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-light);
  margin-bottom: 0.6rem;
}

/* Download */
.download-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.download-visual {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.download-visual img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.75rem;
}

.download-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.75rem;
  border-bottom: 1px solid var(--line);
  margin: 0;
  color: var(--ink-soft);
}

.download-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

/* Game categories */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.game-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 200px;
  isolation: isolate;
}

.game-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.4s ease;
}

.game-item:hover img {
  transform: scale(1.06);
}

.game-item .label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(8, 30, 55, 0.92));
  color: #fff;
  z-index: 1;
}

.game-item .label h3 {
  color: #fff;
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.game-item .label p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
}

/* Partners */
.partner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.partner-row img {
  height: 56px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  filter: grayscale(0.15);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.partner-row img:hover {
  filter: none;
  transform: translateY(-2px);
}

.partner-row.clubs img {
  height: 72px;
}

/* Promo strip */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.promo-grid img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  aspect-ratio: 1;
  object-fit: cover;
}

/* Content prose */
.prose {
  max-width: 820px;
}

.prose h2 {
  margin-top: 2.2rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.prose h2:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.prose h3 { margin-top: 1.5rem; }

.toc {
  background: var(--bg-alt);
  border-left: 4px solid var(--brand);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.toc a {
  display: block;
  padding: 0.2rem 0;
  font-weight: 600;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.faq-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.faq-item p { margin: 0; }

/* Auth pages */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 3rem 0 4rem;
}

.auth-form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-size: 0.92rem;
}

.form-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26, 107, 181, 0.15);
}

.form-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.form-footer {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-aside h2 { margin-top: 0; }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.85rem 0 0.85rem 3rem;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-light));
  color: #fff;
  padding: 3rem 0 2.5rem;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 640px;
}

.breadcrumb {
  font-size: 0.88rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a { color: #fff; opacity: 0.9; }
.breadcrumb span { margin: 0 0.4rem; opacity: 0.6; }

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex;
  align-items: center;
  text-align: center;
  padding: 4rem 0;
}

.error-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
  margin: 0 0 0.5rem;
}

/* Footer */
.site-footer {
  background: #0b1c2e;
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  display: block;
  padding: 0.25rem 0;
  font-size: 0.92rem;
}

.site-footer a:hover { color: #fff; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 800;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255, 255, 255, 0.9); margin-bottom: 1.5rem; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--brand-dark);
}

/* Internal link chips */
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.link-row a {
  background: var(--bg-alt);
  color: var(--brand-dark);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.link-row a:hover {
  border-color: var(--brand);
  background: #fff;
}

/* Ambassadors */
.ambassador-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ambassador-grid figure {
  margin: 0;
  text-align: center;
}

.ambassador-grid img {
  width: 100%;
  max-width: 180px;
  margin: 0 auto 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.ambassador-grid figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

/* Mobile */
@media (max-width: 960px) {
  .feature-grid,
  .game-grid,
  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-grid,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ambassador-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav-wrap {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav-wrap.is-open { display: flex; }

  .nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav a {
    padding: 0.85rem 1rem;
    border-radius: 8px;
  }

  .nav-cta {
    flex-direction: column;
    margin: 0.5rem 0 0;
    width: 100%;
  }

  .nav-cta .btn { width: 100%; }

  .feature-grid,
  .game-grid,
  .promo-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner { padding: 3rem 0; }
}

/* 顶部广告位 */
.ads-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 900;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(13, 74, 130, 0.06);
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  background: transparent;
  margin: 0;
  padding: 10px 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(24, 24, 24, 0.12);
  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(24, 24, 24, 0.18);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
