/* 开云体育 k-y.onl - 全局样式 */
:root {
  --primary: #1a5f2a;
  --primary-dark: #0f3d1a;
  --primary-light: #2d8a42;
  --accent: #f5a623;
  --accent-hover: #e09510;
  --bg: #f8faf9;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5a6b5e;
  --border: #e2ebe4;
  --shadow: 0 2px 12px rgba(26, 95, 42, 0.08);
  --radius: 10px;
  --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); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); text-decoration: underline; }

.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,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: 10px; text-decoration: none; }
.logo-link:hover { text-decoration: none; }
.logo-img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.logo-text { color: #fff; font-size: 1.25rem; font-weight: 700; white-space: nowrap; }

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: rgba(255,255,255,0.9);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
}

.nav-cta { display: flex; gap: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #1a1a1a; }
.btn-primary:hover { background: var(--accent-hover); color: #1a1a1a; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.1); 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: 60px 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: 0.92; max-width: 720px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 56px 0; }
section:nth-child(even) { background: var(--bg-card); }

.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.section-header p { color: var(--text-muted); max-width: 680px; 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;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(26,95,42,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 { color: var(--text-muted); font-size: 0.92rem; }

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

/* Content article */
.content-article { max-width: 860px; margin: 0 auto; }
.content-article h2 { font-size: 1.5rem; color: var(--primary-dark); margin: 36px 0 14px; }
.content-article h3 { font-size: 1.15rem; 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; color: var(--text); }
.content-article li { margin-bottom: 8px; }

/* Download section */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  align-items: start;
}
.download-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}
.download-card img { border-radius: 8px; margin: 0 auto 16px; max-height: 200px; object-fit: contain; }
.download-card h3 { color: var(--primary-dark); margin-bottom: 12px; }

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

/* FAQ */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary-dark);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "＋ "; color: var(--primary-light); }
.faq-item[open] summary::before { content: "－ "; }
.faq-answer { padding: 0 20px 16px; color: var(--text-muted); font-size: 0.93rem; }

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

/* Page hero (subpages) */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 10px; }
.page-hero p { opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* Form pages */
.form-section { padding: 48px 0 64px; }
.form-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-wrapper h2 { text-align: center; color: var(--primary-dark); margin-bottom: 8px; }
.form-wrapper .form-desc { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(45,138,66,0.15); }
.form-actions { margin-top: 24px; }
.form-actions .btn { width: 100%; padding: 13px; font-size: 1rem; }
.form-footer { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--text-muted); }

.seo-content {
  max-width: 860px;
  margin: 40px auto 0;
  padding: 0 20px;
}
.seo-content h2 { font-size: 1.3rem; color: var(--primary-dark); margin-bottom: 12px; }
.seo-content p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 12px; }

/* 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; color: var(--primary-dark); }
.error-page p { color: var(--text-muted); margin-bottom: 28px; }

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 48px 20px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto 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,0.75); font-size: 0.88rem; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Hero with banner image */
.hero-with-banner {
  position: relative;
  overflow: hidden;
  padding: 0;
}
.hero-banner-wrap {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,61,26,0.88) 0%, rgba(26,95,42,0.75) 50%, rgba(15,61,26,0.85) 100%);
}
.hero-banner-content {
  position: relative;
  z-index: 2;
  padding: 60px 20px;
  text-align: center;
  color: #fff;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Alternating image + text rows */
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}
.media-row:last-child { margin-bottom: 0; }
.media-row.reverse .media-img-wrap { order: 2; }
.media-row.reverse .media-text { order: 1; }
.media-img-wrap img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.media-text h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 14px;
}
.media-text p { color: var(--text-muted); margin-bottom: 12px; font-size: 0.95rem; }

/* Screenshot showcase grid */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.screenshot-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.screenshot-item:hover { transform: translateY(-3px); }
.screenshot-item img { width: 100%; height: 200px; object-fit: cover; object-position: top; }
.screenshot-item figcaption {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.screenshot-item figcaption strong { display: block; color: var(--primary-dark); margin-bottom: 4px; }

/* Wide banner image section */
.img-banner-section {
  padding: 0;
  line-height: 0;
}
.img-banner-section img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

/* Supplier logo grid */
.supplier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.supplier-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  transition: box-shadow 0.2s;
}
.supplier-item:hover { box-shadow: var(--shadow); }
.supplier-item img { max-height: 48px; width: auto; object-fit: contain; }

/* Steps guide */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  counter-increment: step;
  position: relative;
}
.step-card::before {
  content: counter(step);
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  z-index: 2;
}
.step-card img { width: 100%; height: 160px; object-fit: cover; object-position: top; }
.step-card-body { padding: 16px; }
.step-card-body h3 { font-size: 1rem; color: var(--primary-dark); margin-bottom: 8px; }
.step-card-body p { font-size: 0.88rem; color: var(--text-muted); }

/* APP 推荐广告栏 */
.ads-top-bar {
  background: linear-gradient(180deg, #fff 0%, #f0f7f2 100%);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 10px;
  text-align: center;
  position: sticky;
  top: 72px;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(26, 95, 42, 0.06);
}

.ads-top-bar .applist-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

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

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
}

#ads img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.14);
  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: 18px;
  padding: 2px;
}

#ads a:hover img,
#ads a:active img {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 24px rgba(26, 95, 42, 0.22);
}

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

@media (max-width: 768px) {
  .ads-top-bar {
    top: 0;
    position: relative;
    padding: 10px 12px 8px;
  }
  #ads > div { width: 72px; }
  #ads img { width: 64px; height: 64px; }
}

/* Internal links box */
.internal-links {
  background: #edf5ef;
  border-left: 4px solid var(--primary-light);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0;
}
.internal-links h3 { font-size: 1rem; color: var(--primary-dark); margin-bottom: 10px; }
.internal-links ul { margin: 0; padding-left: 20px; }
.internal-links li { margin-bottom: 6px; font-size: 0.92rem; }

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; justify-content: center; }
  .nav-cta { margin-left: auto; }
  section { padding: 40px 0; }
  .hero { padding: 40px 20px; }
  .media-row { grid-template-columns: 1fr; gap: 24px; }
  .media-row.reverse .media-img-wrap,
  .media-row.reverse .media-text { order: unset; }
  .hero-banner-wrap { min-height: 320px; }
  .hero-banner-content { padding: 40px 20px; }
}
.hero-banner-content p a{
  color: var(--accent);
}
