/* 开云体育 k-y.life 全局样式 */
:root {
  --primary: #1a6b3c;
  --primary-dark: #0f4a28;
  --primary-light: #2d9a5a;
  --accent: #f5a623;
  --bg: #f4f7f5;
  --bg-white: #ffffff;
  --text: #1e2a24;
  --text-muted: #5a6b62;
  --border: #dce5df;
  --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: -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 .2s; }
a:hover { color: var(--primary-light); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.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: 10px; flex-shrink: 0; }
.logo-link img { height: 44px; width: auto; border-radius: 4px; }
.logo-text { color: #fff; font-size: 1.15rem; font-weight: 700; white-space: nowrap; }

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: rgba(255,255,255,.88);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: .9rem;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.15); color: #fff; }

.header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn {
  display: inline-block;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #1a1a1a; }
.btn-primary:hover { background: #e09510; color: #1a1a1a; }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-green { background: var(--primary-light); color: #fff; }
.btn-green:hover { background: var(--primary); color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: #fff;
  padding: 56px 20px;
  text-align: center;
}
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 16px; line-height: 1.3; }
.hero p { font-size: 1.05rem; opacity: .92; max-width: 720px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Breadcrumb */
.breadcrumb {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: .85rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* Main content */
.main-content { padding: 40px 0 60px; }

.page-title {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary-light);
}

.section { margin-bottom: 48px; }
.section-title {
  font-size: 1.45rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.card-img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 10px; }
.card-body p { font-size: .92rem; color: var(--text-muted); }

/* Feature boxes */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.feature-box {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-light);
}
.feature-box h3 { font-size: 1rem; color: var(--primary-dark); margin-bottom: 8px; }
.feature-box p { font-size: .9rem; color: var(--text-muted); }

/* Content article */
.article-content {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.article-content h2 { font-size: 1.3rem; color: var(--primary-dark); margin: 28px 0 14px; }
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { font-size: 1.1rem; color: var(--text); margin: 20px 0 10px; }
.article-content p { margin-bottom: 14px; color: var(--text); }
.article-content ul, .article-content ol { margin: 10px 0 16px 24px; }
.article-content li { margin-bottom: 6px; }

/* Partners */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  align-items: center;
}
.partner-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow);
}
.partner-item img { max-height: 60px; margin: 0 auto; object-fit: contain; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}
.faq-item h3 { font-size: 1rem; color: var(--primary-dark); margin-bottom: 8px; }
.faq-item p { font-size: .92rem; color: var(--text-muted); }

/* Form pages */
.form-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.form-box {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-box h1 { font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 8px; }
.form-box .subtitle { color: var(--text-muted); margin-bottom: 24px; font-size: .92rem; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  transition: border-color .2s;
}
.form-group input:focus { outline: none; border-color: var(--primary-light); }
.form-footer { margin-top: 16px; font-size: .88rem; color: var(--text-muted); }
.form-side img { border-radius: var(--radius); box-shadow: var(--shadow); }
.form-side-content { margin-top: 24px; }
.form-side-content h2 { font-size: 1.2rem; color: var(--primary-dark); margin-bottom: 12px; }
.form-side-content p { font-size: .92rem; color: var(--text-muted); margin-bottom: 10px; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin: 40px 0;
}
.cta-banner h2 { font-size: 1.4rem; margin-bottom: 12px; }
.cta-banner p { opacity: .9; margin-bottom: 20px; }

/* Internal links block */
.internal-links {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-top: 32px;
}
.internal-links h3 { font-size: 1rem; color: var(--primary-dark); margin-bottom: 12px; }
.internal-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.internal-links a { font-size: .9rem; }

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.8);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.75); font-size: .88rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 20px;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}

/* Error pages */
.error-page {
  min-height: 60vh;
  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-light); line-height: 1; }
.error-title { font-size: 1.6rem; color: var(--primary-dark); margin: 16px 0 12px; }
.error-desc { color: var(--text-muted); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* Image + text rows */
.img-text-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.img-text-row.reverse { direction: rtl; }
.img-text-row.reverse > * { direction: ltr; }
.img-text-row img { border-radius: var(--radius); width: 100%; }
.img-text-row h3 { font-size: 1.15rem; color: var(--primary-dark); margin-bottom: 10px; }
.img-text-row p { font-size: .92rem; color: var(--text-muted); margin-bottom: 10px; }

/* Promo cards */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.promo-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.promo-card img { width: 100%; height: 160px; object-fit: cover; }
.promo-card-body { padding: 16px 18px; }
.promo-card-body h3 { font-size: 1rem; color: var(--primary-dark); margin-bottom: 8px; }
.promo-card-body p { font-size: .88rem; color: var(--text-muted); }

/* Supplier logos */
.supplier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}
.supplier-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow);
}
.supplier-item img { max-height: 48px; margin: 0 auto 8px; object-fit: contain; }
.supplier-item span { font-size: .75rem; color: var(--text-muted); display: block; }

/* Sponsor detail */
.sponsor-list { display: flex; flex-direction: column; gap: 20px; }
.sponsor-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}
.sponsor-item img { border-radius: var(--radius); width: 100%; }
.sponsor-item h3 { font-size: 1.05rem; color: var(--primary-dark); margin-bottom: 8px; }
.sponsor-item p { font-size: .9rem; color: var(--text-muted); }

/* APP 广告推荐栏 */
.ad-banner-wrap {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 68px;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

#applist { text-align: center; }

#applist .applist-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
  letter-spacing: .5px;
}

#applist .applist-title::before { content: "📲 "; }

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px 16px;
  background: transparent;
}

#ads .ad-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
}

#ads a {
  display: block;
  text-decoration: none;
  border-radius: 18px;
  padding: 2px;
  transition: transform .18s ease;
}

#ads a:active { transform: scale(.96); }

#ads img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(26,107,60,.18);
  border: 2px solid #fff;
  display: block;
  transition: transform .18s ease, box-shadow .18s ease;
  background: #fff;
}

#ads a:hover img {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 22px rgba(26,107,60,.28);
}

#ads .caption {
  margin-top: 6px;
  font-size: .72rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

#ads figure { margin: 0; }

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; justify-content: center; }
  .form-page { grid-template-columns: 1fr; }
  .article-content { padding: 20px; }
  .hero { padding: 36px 20px; }
  .img-text-row, .sponsor-item { grid-template-columns: 1fr; }
  .img-text-row.reverse { direction: ltr; }
  .ad-banner-wrap { top: 0; position: relative; padding: 12px 0; }
  #ads .ad-item { width: 72px; }
  #ads img { width: 64px; height: 64px; }
  #ads { gap: 10px 12px; }
}
.container p a{
  color: #e09510;
}