/* 开云体育官方 - k-y.rest */
:root {
  --primary: #0d4f3c;
  --primary-light: #1a7a5e;
  --accent: #f0b429;
  --accent-hover: #d9a020;
  --bg: #f7f9f8;
  --bg-dark: #0a2e24;
  --text: #1a1a2e;
  --text-muted: #5a6270;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --radius: 12px;
  --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;
}

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

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

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

/* Ads bar */
.ads-bar {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 10px 0 6px;
  position: sticky;
  top: 72px;
  z-index: 90;
}
.ads-bar-label {
  text-align: center;
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: .05em;
}
#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 12px;
  background: transparent;
  margin: 0;
  padding: 4px 0 8px;
}
#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  box-sizing: border-box;
}
#ads img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  transition: transform .18s ease, box-shadow .18s ease;
  display: block;
  border: 2px solid #fff;
  background: #fff;
  cursor: pointer;
}
#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 16px;
  line-height: 0;
}
#ads a:hover img,
#ads a:focus img {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 22px rgba(13,79,60,.22);
}
#ads figcaption,
#ads .caption {
  height: 16px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 5px;
  line-height: 16px;
}
#ads figure { margin: 0; }

/* Header */
.site-header {
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.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: 8px; object-fit: cover; }
.logo-text { color: var(--white); font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.logo-text span { display: block; font-size: .75rem; color: var(--accent); font-weight: 400; }

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: rgba(255,255,255,.85);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: .95rem;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.1); color: var(--accent); }

.nav-cta { display: flex; gap: 8px; flex-shrink: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.btn-primary { background: var(--accent); color: var(--bg-dark); }
.btn-primary:hover { background: var(--accent-hover); color: var(--bg-dark); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.4); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.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(--bg-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/开云体育首页.jpg') center/cover no-repeat;
  opacity: .15;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 2.4rem; line-height: 1.3; margin-bottom: 16px; }
.hero p { font-size: 1.1rem; opacity: .9; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* Sections */
section { padding: 60px 0; }
section:nth-child(even) { background: var(--white); }

.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 1.9rem; color: var(--bg-dark); margin-bottom: 12px; }
.section-header p { color: var(--text-muted); max-width: 680px; margin: 0 auto; font-size: 1.05rem; }

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

/* Feature list */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-item {
  background: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
}
.feature-item h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--primary); }
.feature-item p { color: var(--text-muted); font-size: .93rem; }

/* Content article */
.content-article { max-width: 900px; margin: 0 auto; }
.content-article h2 { font-size: 1.6rem; color: var(--bg-dark); margin: 36px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.content-article h3 { font-size: 1.2rem; color: var(--primary); margin: 24px 0 12px; }
.content-article p { margin-bottom: 16px; color: var(--text); }
.content-article ul, .content-article ol { margin: 0 0 16px 24px; color: var(--text); }
.content-article li { margin-bottom: 8px; }

/* TOC */
.toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 36px;
}
.toc h2 { font-size: 1.1rem; margin-bottom: 12px; color: var(--bg-dark); border: none; padding: 0; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--primary-light); }

/* Partners */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.partner-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border);
  transition: box-shadow .2s;
}
.partner-item:hover { box-shadow: var(--shadow); }
.partner-item img { width: 100%; height: 100px; object-fit: contain; margin: 0 auto 8px; }
.partner-item span { font-size: .85rem; color: var(--text-muted); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--bg-dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { background: var(--primary); color: var(--white); }
.faq-answer { padding: 16px 24px 20px; color: var(--text-muted); border-top: 1px solid var(--border); }

/* Form pages */
.page-hero-sm {
  background: linear-gradient(135deg, var(--bg-dark), var(--primary));
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}
.page-hero-sm h1 { font-size: 2rem; margin-bottom: 8px; }
.page-hero-sm p { opacity: .85; }

.form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding: 50px 0; }
.form-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-box h2 { font-size: 1.3rem; margin-bottom: 24px; color: var(--bg-dark); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9rem; }
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color .2s;
}
.form-group input:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(26,122,94,.15); }
.form-footer { margin-top: 16px; font-size: .9rem; color: var(--text-muted); }
.form-footer a { font-weight: 600; }

.seo-sidebar { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); }
.seo-sidebar h2 { font-size: 1.2rem; margin-bottom: 16px; color: var(--bg-dark); }
.seo-sidebar p { color: var(--text-muted); font-size: .93rem; margin-bottom: 12px; }
.seo-sidebar ul { margin: 0 0 16px 18px; color: var(--text-muted); font-size: .93rem; }
.seo-sidebar li { margin-bottom: 6px; }

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

/* 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.8rem; margin: 16px 0; color: var(--bg-dark); }
.error-page p { color: var(--text-muted); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.75);
  padding: 50px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand img { width: 56px; border-radius: 8px; margin-bottom: 12px; }
.footer-brand p { font-size: .9rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); margin-bottom: 14px; font-size: .95rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

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

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: -30px auto 0;
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  padding: 0 20px;
}
.stat-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-item strong { display: block; font-size: 1.8rem; color: var(--primary); }
.stat-item span { font-size: .88rem; color: var(--text-muted); }

/* Image-rich content blocks */
.img-text-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin: 36px 0;
}
.img-text-row.reverse { direction: rtl; }
.img-text-row.reverse > * { direction: ltr; }
.img-text-row figure { margin: 0; }
.img-text-row img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.img-text-row figcaption {
  margin-top: 10px;
  font-size: .85rem;
  color: var(--text-muted);
  text-align: center;
}
.img-text-body h3 { font-size: 1.25rem; color: var(--bg-dark); margin-bottom: 12px; }
.img-text-body p { color: var(--text-muted); margin-bottom: 12px; font-size: .95rem; }

.figure-full {
  margin: 28px 0;
  text-align: center;
}
.figure-full img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.figure-full figcaption {
  margin-top: 10px;
  font-size: .88rem;
  color: var(--text-muted);
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 28px 0;
}
.promo-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.promo-card img { width: 100%; height: 200px; object-fit: cover; }
.promo-card .promo-body { padding: 20px; }
.promo-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--bg-dark); }
.promo-card p { font-size: .9rem; color: var(--text-muted); }

.supplier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.supplier-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.supplier-item img { height: 56px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto 6px; }
.supplier-item span { font-size: .75rem; color: var(--text-muted); display: block; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.gallery-item img { width: 100%; height: 180px; object-fit: cover; }
.gallery-item .gallery-cap { padding: 12px 14px; font-size: .85rem; color: var(--text-muted); }

.platform-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}
.platform-item {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
}
.platform-item img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.platform-item h3 { font-size: 1rem; margin-bottom: 6px; color: var(--bg-dark); }
.platform-item p { font-size: .85rem; color: var(--text-muted); }

/* Responsive */
@media (max-width: 900px) {
  .img-text-row, .promo-grid, .gallery-grid, .platform-showcase { grid-template-columns: 1fr; }
  .img-text-row.reverse { direction: ltr; }
  .hero-grid, .form-layout, .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
  .header-inner { flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; justify-content: center; }
  .hero h1 { font-size: 1.8rem; }
}
@media (max-width: 600px) {
  .stats-bar { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
  .ads-bar { top: 110px; padding: 8px 0 4px; }
  #ads > div { width: 68px; }
  #ads img { width: 60px; height: 60px; }
  #ads .caption { max-width: 68px; }
}
