/* 开云体育官网 - kai-yun.xin */
:root {
  --primary: #1a3a6b;
  --primary-dark: #0f2447;
  --accent: #d4a017;
  --accent-hover: #e8b82a;
  --text: #2c3e50;
  --text-light: #5a6c7d;
  --bg: #f5f7fa;
  --white: #ffffff;
  --border: #e1e8ef;
  --shadow: 0 2px 12px rgba(26, 58, 107, 0.08);
  --radius: 8px;
  --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;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
}

a { color: var(--primary); 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: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-link { display: flex; align-items: center; gap: 12px; }
.logo-link img { width: 48px; height: 48px; border-radius: 8px; }
.logo-text { color: var(--white); font-size: 1.25rem; font-weight: 700; }
.logo-text span { color: var(--accent); }

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: rgba(255,255,255,0.9);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(255,255,255,0.12);
  color: var(--accent);
}

.nav-cta { display: flex; gap: 8px; }
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary { background: var(--accent); color: var(--primary-dark); }
.btn-primary:hover { background: var(--accent-hover); color: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #2a5298 100%);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}
.hero h1 { font-size: 2rem; margin-bottom: 16px; line-height: 1.3; }
.hero p { font-size: 1.1rem; opacity: 0.92; max-width: 720px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Breadcrumb */
.breadcrumb {
  background: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-light);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* Main content */
.main-content { padding: 40px 0 60px; }
.content-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 28px;
}
.content-card h2 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent);
}
.content-card h3 {
  color: var(--primary-dark);
  font-size: 1.2rem;
  margin: 24px 0 12px;
}
.content-card p { margin-bottom: 14px; color: var(--text); }
.content-card ul, .content-card ol { margin: 12px 0 16px 24px; }
.content-card li { margin-bottom: 8px; }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.feature-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s;
}
.feature-item:hover { transform: translateY(-4px); }
.feature-item img { width: 100%; height: 180px; object-fit: cover; }
.feature-body { padding: 20px; }
.feature-body h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.1rem; }
.feature-body p { font-size: 0.9rem; color: var(--text-light); }

/* Download section */
.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 28px 0;
}
.download-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: border-color 0.2s;
}
.download-card:hover { border-color: var(--accent); }
.download-card h3 { color: var(--primary); margin-bottom: 12px; }
.download-card p { color: var(--text-light); margin-bottom: 20px; font-size: 0.95rem; }

/* Partners */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}
.partner-logos img {
  height: 48px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
  filter: grayscale(20%);
}
.partner-logos img:hover { opacity: 1; filter: none; }

/* FAQ */
.faq-list { margin-top: 16px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq-item h3 { font-size: 1rem; margin: 0 0 8px; color: var(--primary); }
.faq-item p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* Internal links */
.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
  padding: 20px;
  background: #eef3f9;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}
.internal-links a {
  background: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Form pages */
.form-section { max-width: 520px; margin: 0 auto; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--primary); }
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: var(--primary); }
.form-hint { font-size: 0.85rem; color: var(--text-light); margin-top: 6px; }
.form-footer { text-align: center; margin-top: 20px; font-size: 0.9rem; }

.seo-content { margin-top: 40px; }
.seo-content h2 { font-size: 1.3rem; color: var(--primary); margin-bottom: 14px; }
.seo-content p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 12px; }

/* Error pages */
.error-page {
  text-align: center;
  padding: 80px 20px;
  min-height: 50vh;
}
.error-page h1 { font-size: 6rem; color: var(--primary); line-height: 1; }
.error-page h2 { font-size: 1.5rem; margin: 16px 0; color: var(--text); }
.error-page p { color: var(--text-light); margin-bottom: 28px; }

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 { color: var(--accent); margin-bottom: 14px; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* TOC */
.toc {
  background: #f0f4f8;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
}
.toc h2 { font-size: 1rem; color: var(--primary); margin-bottom: 12px; }
.toc ol { margin-left: 20px; }
.toc li { margin-bottom: 6px; }
.toc a { font-size: 0.9rem; }

/* Responsive */
/* 顶部广告条 */
.ads-strip {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  position: relative;
  z-index: 10;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  background: transparent;
  max-width: var(--max-width);
  margin: 0 auto;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  box-sizing: border-box;
}

#ads img {
  width: 70px;
  height: 70px;
  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);
  cursor: pointer;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 24px rgba(212, 160, 23, 0.35);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 6px;
}

@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 12px; }
  .main-nav { justify-content: center; }
  .hero h1 { font-size: 1.5rem; }
  .content-card { padding: 20px; }
  #ads { gap: 12px; }
  #ads > div { width: 68px; }
  #ads img { width: 64px; height: 64px; }
}
