/* 开云体育官网 - kai-yun.love */
:root {
  --primary: #1a5f2a;
  --primary-dark: #0d3d18;
  --primary-light: #2d8a3e;
  --accent: #f5c518;
  --accent-hover: #e6b800;
  --bg: #f8faf8;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #555;
  --border: #e0e6e0;
  --shadow: 0 2px 12px rgba(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: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-light); text-decoration: underline; }

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.logo-link:hover { color: var(--accent); text-decoration: none; }
.logo-link img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.logo-text { font-size: 1.25rem; font-weight: 700; letter-spacing: .5px; }

.main-nav { display: flex; gap: 4px; list-style: none; flex-wrap: wrap; }
.main-nav a {
  color: rgba(255,255,255,.9);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(255,255,255,.15);
  color: #fff;
  text-decoration: none;
}

.nav-cta {
  background: var(--accent);
  color: var(--primary-dark) !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-hover) !important; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.hero-inner { max-width: var(--max-width); margin: 0 auto; }
.hero h1 { font-size: 2.2rem; margin-bottom: 16px; line-height: 1.3; }
.hero p { font-size: 1.1rem; opacity: .92; max-width: 720px; margin: 0 auto 28px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.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: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-alt { background: #fff; }
.section-title {
  font-size: 1.75rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
  text-align: center;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s;
}
.card:hover { transform: translateY(-4px); }
.card-img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.15rem; color: var(--primary-dark); margin-bottom: 10px; }
.card-body p { color: var(--text-muted); font-size: .95rem; }

/* Feature blocks */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-img { border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-text h2 { font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 16px; }
.feature-text p { color: var(--text-muted); margin-bottom: 12px; }

/* Content article */
.content-article {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  margin-bottom: 32px;
}
.content-article h2 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.content-article h2:first-child { margin-top: 0; }
.content-article h3 { font-size: 1.15rem; color: var(--primary); margin: 24px 0 12px; }
.content-article p { margin-bottom: 16px; color: var(--text-muted); }
.content-article ul, .content-article ol { margin: 0 0 16px 24px; color: var(--text-muted); }
.content-article li { margin-bottom: 8px; }

/* FAQ */
.faq-list { list-style: none; }
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-q {
  padding: 18px 24px;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-a { padding: 0 24px 18px; color: var(--text-muted); }

/* Partners */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}
.partner-logos img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter .2s;
}
.partner-logos img:hover { filter: none; }

/* Form pages */
.form-page {
  max-width: 520px;
  margin: 40px auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}
.form-page h1 { font-size: 1.6rem; color: var(--primary-dark); margin-bottom: 8px; text-align: center; }
.form-page .form-desc { text-align: center; color: var(--text-muted); margin-bottom: 28px; font-size: .95rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--text); }
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color .2s;
}
.form-group input:focus { outline: none; border-color: var(--primary); }
.form-submit { width: 100%; margin-top: 8px; }
.form-links { text-align: center; margin-top: 20px; font-size: .9rem; color: var(--text-muted); }

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: .9rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--primary); }

/* Error pages */
.error-page {
  text-align: center;
  padding: 80px 20px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.error-page h1 { font-size: 5rem; color: var(--primary); line-height: 1; }
.error-page h2 { font-size: 1.5rem; margin: 16px 0; color: var(--primary-dark); }
.error-page p { color: var(--text-muted); margin-bottom: 28px; max-width: 480px; }

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.8);
  padding: 48px 20px 24px;
  margin-top: 56px;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.75); font-size: .9rem; text-decoration: none; }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 20px;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}

/* Download section */
.download-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.download-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
}
.download-card img { width: 80px; height: 80px; margin: 0 auto 16px; border-radius: 12px; }
.download-card h3 { color: var(--primary-dark); margin-bottom: 12px; }

/* TOC */
.toc {
  background: #f0f7f1;
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  margin-bottom: 32px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.toc h3 { font-size: 1rem; color: var(--primary-dark); margin-bottom: 12px; }
.toc ol { margin-left: 20px; }
.toc li { margin-bottom: 6px; }

/* 广告推荐栏 */
.ads-wrap {
  background: linear-gradient(180deg, #fff 0%, #f5faf6 100%);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px 10px;
  box-shadow: 0 2px 8px rgba(26, 95, 42, 0.06);
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px 18px;
  max-width: var(--max-width);
  margin: 0 auto;
  background: transparent;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 78px;
  box-sizing: border-box;
}

#ads figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#ads img {
  width: 72px;
  height: 72px;
  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: 2px solid #fff;
  background: linear-gradient(135deg, #fff, #f0f7f1);
  cursor: pointer;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 18px;
  line-height: 0;
}

#ads a:hover img,
#ads a:focus img {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 12px 28px rgba(26, 95, 42, 0.22);
}

#ads .caption {
  margin-top: 6px;
  height: 16px;
  font-size: 11px;
  color: #555;
  text-align: center;
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 16px;
}

@media (max-width: 768px) {
  .ads-wrap { padding: 12px 10px 8px; }
  #ads { gap: 10px 14px; }
  #ads > div { width: 68px; }
  #ads img { width: 64px; height: 64px; }
  #ads .caption { max-width: 68px; font-size: 10px; }
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; height: auto; padding: 12px 20px; gap: 12px; }
  .main-nav { justify-content: center; }
  .hero h1 { font-size: 1.6rem; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse { direction: ltr; }
  .content-article { padding: 24px; }
  .form-page { margin: 20px; padding: 28px; }
}
