/* 开云体育官方 - k-y.fit */
:root {
  --primary: #1a5f2a;
  --primary-dark: #0d3d18;
  --primary-light: #2d8a3e;
  --accent: #f5a623;
  --accent-hover: #e09510;
  --bg: #f8faf9;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5a6270;
  --border: #e2e8f0;
  --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.7;
}

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

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-light); }

.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: 0 2px 8px rgba(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;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}
.logo-link:hover { color: var(--accent); }
.logo-link img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; }

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

.header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
}
.btn-outline { color: #fff; border-color: rgba(255,255,255,.5); background: transparent; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.btn-primary { background: var(--accent); color: #1a1a2e; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #1a1a2e; }
.btn-lg { padding: 12px 28px; font-size: 1rem; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: #fff;
  padding: 60px 0 70px;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 2.2rem; line-height: 1.3; margin-bottom: 16px; }
.hero .lead { font-size: 1.1rem; opacity: .92; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img { border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.25); }

/* Sections */
section { padding: 56px 0; }
section:nth-child(even) { background: #fff; }

.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 1.75rem; color: var(--primary-dark); margin-bottom: 10px; }
.section-header p { color: var(--text-muted); max-width: 640px; margin: 0 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, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.card-img { height: 180px; object-fit: cover; width: 100%; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--primary-dark); }
.card-body p { color: var(--text-muted); font-size: .95rem; }

/* Feature list */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.feature-item { text-align: center; padding: 28px 20px; background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-icon { font-size: 2.5rem; margin-bottom: 12px; }
.feature-item h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary-dark); }
.feature-item p { color: var(--text-muted); font-size: .93rem; }

/* Content article */
.content-article { max-width: 860px; margin: 0 auto; }
.content-article h2 { font-size: 1.5rem; color: var(--primary-dark); margin: 32px 0 14px; }
.content-article h3 { font-size: 1.2rem; color: var(--primary); margin: 24px 0 10px; }
.content-article p { margin-bottom: 16px; color: var(--text); }
.content-article ul, .content-article ol { margin: 0 0 16px 24px; }
.content-article li { margin-bottom: 6px; }

/* Partners */
.partner-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; }
.partner-grid img { height: 60px; width: auto; object-fit: contain; filter: grayscale(20%); transition: filter .2s; }
.partner-grid img:hover { filter: none; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-card); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-dark);
}
.faq-item summary::after { content: "+"; font-size: 1.2rem; color: var(--primary); }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-answer { padding: 0 20px 16px; color: var(--text-muted); font-size: .95rem; }

/* Breadcrumb */
.breadcrumb { padding: 16px 0; font-size: .9rem; color: var(--text-muted); }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.page-header h1 { font-size: 1.8rem; margin-bottom: 8px; }
.page-header p { opacity: .88; font-size: 1rem; }

/* Forms */
.form-page { max-width: 480px; margin: 0 auto; }
.form-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin: 40px auto;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .93rem; }
.form-group input {
  width: 100%;
  padding: 10px 14px;
  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); box-shadow: 0 0 0 3px rgba(26,95,42,.15); }
.form-footer { text-align: center; margin-top: 16px; font-size: .93rem; color: var(--text-muted); }

/* SEO content block */
.seo-content { padding: 48px 0; }
.seo-content .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.seo-content img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Media block - alternating image + text */
.media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 48px;
}
.media-block:last-child { margin-bottom: 0; }
.media-block.reverse { direction: rtl; }
.media-block.reverse > * { direction: ltr; }
.media-figure { margin: 0; }
.media-figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.media-figure figcaption {
  margin-top: 10px;
  font-size: .88rem;
  color: var(--text-muted);
  text-align: center;
}
.media-text h3 { font-size: 1.25rem; color: var(--primary-dark); margin-bottom: 12px; }
.media-text p { margin-bottom: 12px; color: var(--text); }
.media-text p:last-child { margin-bottom: 0; }

/* Wide card grid */
.wide-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.wide-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.wide-card img { width: 100%; height: 200px; object-fit: cover; }
.wide-card .wide-card-body { padding: 20px; flex: 1; }
.wide-card h3 { font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 8px; }
.wide-card p { font-size: .93rem; color: var(--text-muted); }

/* Showcase strip */
.showcase-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.showcase-item { text-align: center; }
.showcase-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 8px;
}
.showcase-item span { font-size: .85rem; color: var(--text-muted); }

/* Provider logos */
.provider-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  padding: 24px 0;
}
.provider-grid img {
  height: 44px;
  width: auto;
  object-fit: contain;
  opacity: .85;
  transition: opacity .2s;
}
.provider-grid img:hover { opacity: 1; }

/* Article list */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.article-card img { width: 100%; height: 170px; object-fit: cover; }
.article-card .article-body { padding: 18px; }
.article-card h3 { font-size: 1.05rem; color: var(--primary-dark); margin-bottom: 8px; line-height: 1.4; }
.article-card p { font-size: .9rem; color: var(--text-muted); margin-bottom: 10px; }
.article-card .read-more { font-size: .88rem; font-weight: 600; }

/* Ad bar */
.ads-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  background: transparent;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0 20px;
}
#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}
#ads img {
  width: 65px;
  height: 65px;
  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);
}
#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}
#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24,24,24,0.18);
}
#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

.internal-links {
  background: #eef5f0;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.internal-links h3 { font-size: 1.1rem; margin-bottom: 14px; color: var(--primary-dark); }
.link-list { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.link-list a { font-size: .93rem; }

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.8);
  padding: 48px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand img { width: 56px; border-radius: 6px; margin-bottom: 12px; }
.footer-brand p { font-size: .9rem; line-height: 1.6; }
.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: .9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  text-align: center;
  font-size: .85rem;
  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); line-height: 1; }
.error-page h1 { font-size: 1.6rem; margin: 16px 0 10px; }
.error-page p { color: var(--text-muted); margin-bottom: 24px; }

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; justify-content: center; }
  .hero-inner, .seo-content .two-col, .footer-grid, .media-block, .showcase-strip { grid-template-columns: 1fr; }
  .media-block.reverse { direction: ltr; }
  .hero h1 { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions { width: 100%; justify-content: center; }
}
