/* 开云体育 kai-yun.online 全局样式 */
:root {
  --primary: #1a8f4a;
  --primary-dark: #0d6b35;
  --primary-light: #2ecc71;
  --accent: #f5c518;
  --bg-dark: #0a1628;
  --bg-card: #112240;
  --bg-section: #0d1b33;
  --text: #e8edf5;
  --text-muted: #94a3b8;
  --border: rgba(255,255,255,0.08);
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.35);
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}

a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
}

.logo-link { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-link img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.logo-text { font-size: 1.15rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.logo-text span { color: var(--primary-light); }

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); background: rgba(26,143,74,0.15); }

.header-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(26, 143, 74, 0.12);
  border: 1px solid rgba(26, 143, 74, 0.3);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  transition: background 0.2s, border-color 0.2s;
}
.hamburger-btn:hover { background: rgba(26, 143, 74, 0.22); border-color: var(--primary-light); }
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
body.menu-open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .hamburger-line:nth-child(2) { opacity: 0; }
body.menu-open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-overlay {
  display: none;
}

.menu-close-btn {
  display: none;
}

.header-actions { display: flex; gap: 10px; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: rgba(26,143,74,0.15); color: var(--text); }

.btn-accent { background: var(--accent); color: #0a1628; }
.btn-accent:hover { background: #e6b800; color: #0a1628; }

.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0a1628 0%, #0d2b1a 50%, #0a1628 100%);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(26,143,74,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.3;
  margin-bottom: 20px;
  color: #fff;
}

.hero-content h1 em { color: var(--primary-light); font-style: normal; }

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.hero-features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-feature::before {
  content: '✓';
  color: var(--primary-light);
  font-weight: 700;
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-section); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
  margin-bottom: 12px;
}
.section-header p { color: var(--text-muted); max-width: 640px; margin: 0 auto; font-size: 1rem; }

.section-header .tag {
  display: inline-block;
  background: rgba(26,143,74,0.2);
  color: var(--primary-light);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  margin-bottom: 12px;
  font-weight: 600;
}

/* Cards Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-img { height: 180px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 24px; }
.card-body h3 { font-size: 1.1rem; color: #fff; margin-bottom: 10px; }
.card-body p { color: var(--text-muted); font-size: 0.92rem; }

/* Feature boxes */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.feature-icon { font-size: 2.2rem; margin-bottom: 14px; }
.feature-box h3 { font-size: 1rem; color: #fff; margin-bottom: 8px; }
.feature-box p { color: var(--text-muted); font-size: 0.88rem; }

/* Content article */
.article-content { max-width: 860px; margin: 0 auto; }
.article-content h2 { font-size: 1.5rem; color: #fff; margin: 40px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.article-content h3 { font-size: 1.15rem; color: var(--primary-light); margin: 28px 0 12px; }
.article-content p { color: var(--text-muted); margin-bottom: 16px; }
.article-content ul, .article-content ol { color: var(--text-muted); margin: 0 0 16px 24px; }
.article-content li { margin-bottom: 8px; }
.article-content a { color: var(--primary-light); }

/* FAQ */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 18px 24px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q::after { content: '+'; color: var(--primary-light); font-size: 1.2rem; flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { padding: 0 24px 18px; color: var(--text-muted); font-size: 0.92rem; display: none; }
.faq-item.open .faq-a { display: block; }

/* Partners */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  align-items: center;
}

.partner-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}
.partner-item img { max-height: 48px; width: auto; object-fit: contain; filter: brightness(0.9); }

/* Sponsor cards */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.sponsor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.sponsor-card img { width: 100%; height: 200px; object-fit: cover; }
.sponsor-card .sponsor-body { padding: 20px; }
.sponsor-card h3 { font-size: 1rem; color: #fff; margin-bottom: 8px; }
.sponsor-card p { color: var(--text-muted); font-size: 0.88rem; }

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb span { color: var(--primary-light); }

/* Page hero (sub pages) */
.page-hero {
  background: linear-gradient(135deg, var(--bg-dark), #0d2b1a);
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); max-width: 600px; }

/* Form pages */
.form-section { padding: 60px 0; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.form-card h2 { font-size: 1.3rem; color: #fff; margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 6px; }
.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--primary); }
.form-footer { margin-top: 20px; font-size: 0.88rem; color: var(--text-muted); text-align: center; }
.form-side h2 { font-size: 1.4rem; color: #fff; margin-bottom: 16px; }
.form-side p { color: var(--text-muted); margin-bottom: 16px; }
.form-side ul { list-style: none; margin-bottom: 24px; }
.form-side li { color: var(--text-muted); padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.form-side li::before { content: '✓ '; color: var(--primary-light); }

/* Internal links block */
.internal-links {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 40px;
}
.internal-links h3 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.link-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.link-grid a {
  background: rgba(26,143,74,0.12);
  color: var(--primary-light);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  border: 1px solid rgba(26,143,74,0.25);
}
.link-grid a:hover { background: rgba(26,143,74,0.25); color: #fff; }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  margin: 40px 0;
}
.cta-banner h2 { color: #fff; font-size: 1.6rem; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 24px; }

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.error-code { font-size: 6rem; font-weight: 800; color: var(--primary); line-height: 1; }
.error-title { font-size: 1.6rem; color: #fff; margin: 16px 0; }
.error-desc { color: var(--text-muted); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer {
  background: #060e1a;
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img { width: 56px; border-radius: 8px; margin-bottom: 14px; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; }

.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); font-size: 0.88rem; }
.footer-col a:hover { color: var(--primary-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.82rem; }

/* Ad bar */
.ads-bar-wrap {
  background: rgba(17, 34, 64, 0.6);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.ads-bar-wrap .container {
  display: flex;
  justify-content: center;
}
#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  background: transparent;
  margin: 0;
  min-height: 90px;
}
#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;
}
#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: 2px solid rgba(46, 204, 113, 0.25);
  background: #fff;
}
#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 16px;
  line-height: 0;
}
#ads a:hover img {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 8px 24px rgba(46, 204, 113, 0.35);
  border-color: var(--primary-light);
}
#ads .caption {
  height: 16px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 6px;
  line-height: 16px;
}

/* Two column layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* App download tabs */
.app-tabs { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; justify-content: center; }
.app-tab {
  padding: 10px 24px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.app-tab.active, .app-tab:hover { background: rgba(26,143,74,0.2); color: var(--primary-light); border-color: var(--primary); }

/* Showcase rows - alternating image/text */
.showcase-list { display: flex; flex-direction: column; gap: 48px; }
.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.showcase-item.reverse { direction: rtl; }
.showcase-item.reverse > * { direction: ltr; }
.showcase-item .showcase-img { height: 100%; min-height: 280px; overflow: hidden; }
.showcase-item .showcase-img img { width: 100%; height: 100%; object-fit: cover; }
.showcase-item .showcase-text { padding: 36px; }
.showcase-item .showcase-text h3 { font-size: 1.2rem; color: #fff; margin-bottom: 14px; }
.showcase-item .showcase-text p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 12px; }

/* Promo gallery */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.promo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s;
}
.promo-card:hover { transform: translateY(-3px); }
.promo-card img { width: 100%; height: 220px; object-fit: cover; }
.promo-card .promo-body { padding: 20px; }
.promo-card h3 { font-size: 1rem; color: #fff; margin-bottom: 8px; }
.promo-card p { color: var(--text-muted); font-size: 0.88rem; }

/* Figure gallery with caption */
.figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.figure-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.figure-item img { width: 100%; height: 200px; object-fit: cover; }
.figure-item figcaption {
  padding: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.figure-item figcaption strong { color: #fff; display: block; margin-bottom: 6px; font-size: 0.95rem; }

/* Wide banner image */
.banner-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 32px 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.banner-img img { width: 100%; max-height: 400px; object-fit: cover; }

/* Steps guide */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  position: relative;
}
.step-num {
  width: 36px; height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin: 0 auto 14px;
  font-size: 0.95rem;
}
.step-card h3 { font-size: 0.95rem; color: #fff; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 900px) {
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .hero-grid, .two-col, .form-grid, .footer-grid, .showcase-item { grid-template-columns: 1fr; }
  .showcase-item.reverse { direction: ltr; }
  .hero-image { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
  }

  .hamburger-btn { display: flex; }

  .header-menu {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(300px, 85vw);
    max-width: 85vw;
    height: 100%;
    height: 100dvh;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 60px 20px 32px;
    background: var(--bg-dark);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45);
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, visibility 0.3s ease;
    z-index: 1002;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.menu-open .header-menu {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  .menu-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
  }
  .menu-close-btn:hover {
    background: rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.4);
    color: #ff6b6b;
  }
  .menu-close-btn span {
    display: block;
    margin-top: -2px;
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }
  .main-nav a {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .header-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }
  .header-actions .btn {
    width: 100%;
    padding: 14px 22px;
  }

  .menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  body.menu-open .menu-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.menu-open { overflow: hidden; }

  .logo-text { font-size: 1rem; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 32px 20px; }
  .logo-text { font-size: 0.92rem; }
  .logo-link img { width: 40px; height: 40px; }
}
