/* 开云体育官网 - kai-yun.diy */
:root {
  --primary: #0d4f2b;
  --primary-light: #1a7a42;
  --accent: #d4af37;
  --dark: #0a1628;
  --text: #2c3e50;
  --text-light: #5a6c7d;
  --bg: #f5f7fa;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 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.8;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px 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;
  gap: 16px;
}

.logo-link { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-link img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; }
.logo-text { color: var(--white); font-size: 1.25rem; font-weight: 700; white-space: nowrap; }
.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: var(--radius);
  font-size: 0.95rem;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(255,255,255,0.15);
  color: var(--accent);
}

.header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary { background: var(--accent); color: var(--dark); }
.btn-primary:hover { background: #e8c547; color: var(--dark); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-green { background: var(--primary-light); color: var(--white); }
.btn-green:hover { background: var(--primary); color: var(--white); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}
.hero h1 { font-size: 2.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: 12px; justify-content: center; flex-wrap: wrap; }

/* Breadcrumb */
.breadcrumb {
  background: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-light);
}
.breadcrumb a { color: var(--primary-light); }
.breadcrumb span { margin: 0 6px; }

/* Main content */
.main-content { padding: 40px 0 60px; }
.page-title { font-size: 1.8rem; color: var(--dark); margin-bottom: 24px; padding-bottom: 12px; border-bottom: 3px solid var(--accent); }

.content-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.content-card h2 { font-size: 1.4rem; color: var(--primary); margin: 28px 0 14px; }
.content-card h2:first-child { margin-top: 0; }
.content-card h3 { font-size: 1.15rem; color: var(--dark); margin: 20px 0 10px; }
.content-card p { margin-bottom: 14px; color: var(--text); }
.content-card ul, .content-card ol { margin: 10px 0 16px 24px; }
.content-card li { margin-bottom: 8px; }

/* Section blocks */
.section { padding: 50px 0; }
.section-alt { background: var(--white); }
.section-title {
  text-align: center;
  font-size: 1.75rem;
  color: var(--dark);
  margin-bottom: 12px;
}
.section-desc {
  text-align: center;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 36px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card img { width: 100%; height: 180px; object-fit: cover; }
.feature-card-body { padding: 20px; }
.feature-card-body h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 10px; }
.feature-card-body p { font-size: 0.95rem; color: var(--text-light); line-height: 1.7; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 24px 0; }
.step-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.step-num {
  width: 40px; height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  font-weight: 700;
}

/* Partner logos */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  align-items: center;
}
.partner-grid img {
  background: var(--white);
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  max-height: 80px;
  object-fit: contain;
  margin: 0 auto;
}

/* FAQ */
.faq-list { margin-top: 16px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  background: var(--bg);
  padding: 16px 20px;
  font-weight: 600;
  color: var(--dark);
}
.faq-a { padding: 16px 20px; color: var(--text); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
  border-radius: var(--radius);
  margin: 32px 0;
}
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { opacity: 0.9; margin-bottom: 20px; }

/* Forms */
.form-page { max-width: 520px; margin: 0 auto; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--dark); }
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: var(--primary-light); }
.form-note { font-size: 0.85rem; color: var(--text-light); margin-top: 6px; }
.form-footer { text-align: center; margin-top: 20px; font-size: 0.95rem; }

/* Error pages */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.error-code { font-size: 6rem; font-weight: 800; color: var(--primary); line-height: 1; }
.error-title { font-size: 1.5rem; color: var(--dark); margin: 16px 0; }
.error-desc { color: var(--text-light); margin-bottom: 24px; }

/* Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  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(--white); 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.7); 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;
}

/* Internal links highlight */
.inline-links a { font-weight: 600; border-bottom: 1px dashed var(--primary-light); }

/* 广告栏 */
.ads-bar {
  background: linear-gradient(180deg, #fff 0%, #f8faf9 100%);
  border-bottom: 1px solid var(--border);
  padding: 14px 0 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ads-bar-label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}

.ads-bar-label::before,
.ads-bar-label::after {
  content: "—";
  margin: 0 8px;
  opacity: 0.4;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 12px;
  background: transparent;
  min-height: 0;
}

.ads-bar--loaded #ads {
  min-height: 88px;
}

#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: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(13, 79, 43, 0.15);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: 2px solid #fff;
  background: #fff;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 16px;
  cursor: pointer;
}

#ads a:hover img,
#ads a:focus img {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 22px rgba(13, 79, 43, 0.22);
}

#ads .caption {
  height: 16px;
  line-height: 16px;
  font-size: 11px;
  color: #555;
  text-align: center;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 6px;
}

/* Responsive */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; justify-content: center; }
  .hero h1 { font-size: 1.6rem; }
  .content-card { padding: 20px; }
  .page-title { font-size: 1.4rem; }
  .two-col-layout { grid-template-columns: 1fr; }
}
