/* 开云体育APP下载中心 - 全局样式 */
:root {
  --primary: #1a6b3c;
  --primary-dark: #0f4a28;
  --primary-light: #2d9a5a;
  --accent: #f5a623;
  --bg: #f7f9f8;
  --bg-dark: #0d1f14;
  --text: #1e2a22;
  --text-muted: #5a6b60;
  --white: #ffffff;
  --border: #dde8e2;
  --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); 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(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  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;
}

.logo-link { display: flex; align-items: center; gap: 12px; }
.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; }
.logo-text span { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 6px; }

.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 { color: var(--white); background: rgba(255,255,255,.1); }

.nav-cta {
  background: var(--primary-light) !important;
  color: var(--white) !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--primary) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 60%, var(--primary) 100%);
  color: var(--white);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.1rem;
  opacity: .9;
  margin-bottom: 32px;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-primary { background: var(--accent); color: var(--bg-dark); }
.btn-secondary { background: rgba(255,255,255,.15); color: var(--white); border: 2px solid rgba(255,255,255,.3); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

.hero-img { border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.4); }

/* Sections */
section { padding: 64px 0; }

.section-header { text-align: center; margin-bottom: 48px; }

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.section-header p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

.section-alt { background: var(--white); }

/* 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);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .2s;
}

.card:hover { transform: translateY(-4px); }

.card-icon { font-size: 2rem; margin-bottom: 16px; }

.card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--primary-dark); }

.card p { color: var(--text-muted); font-size: .95rem; }

/* Feature with image */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-img { border-radius: var(--radius); box-shadow: var(--shadow); }

.feature-content h3 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.feature-content p { color: var(--text-muted); margin-bottom: 12px; }

/* Download section */
.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.download-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.download-card img { width: 100%; height: 200px; object-fit: cover; }

.download-card-body { padding: 24px; }

.download-card h3 { margin-bottom: 12px; color: var(--primary-dark); }

/* Partners */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  align-items: center;
}

.partner-item {
  background: var(--white);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  min-height: 80px;
}

.partner-item img { max-height: 50px; width: auto; object-fit: contain; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-dark);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  display: none;
}

.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question::after { content: "−"; }
.faq-question::after { content: "+"; font-size: 1.2rem; color: var(--primary); }

/* Content article */
.content-page { padding: 48px 0 80px; }

.content-page .container { max-width: 900px; }

.breadcrumb {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--primary); }

.page-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.page-meta { color: var(--text-muted); font-size: .9rem; margin-bottom: 32px; }

.article-body h2 {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.article-body h3 { font-size: 1.1rem; margin: 24px 0 12px; color: var(--text); }

.article-body p { margin-bottom: 16px; color: var(--text-muted); }

.article-body ul, .article-body ol { margin: 0 0 16px 24px; color: var(--text-muted); }
.article-body li { margin-bottom: 8px; }

.article-body a { text-decoration: underline; }

/* Form pages */
.form-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 20px; }

.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);
  box-shadow: 0 0 0 3px rgba(26,107,60,.15);
}

.form-submit { width: 100%; margin-top: 8px; }

.form-links {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: .9rem;
}

.seo-sidebar h2 { font-size: 1.3rem; color: var(--primary-dark); margin-bottom: 16px; }
.seo-sidebar p { color: var(--text-muted); margin-bottom: 12px; font-size: .95rem; }

/* Stats bar */
.stats-bar {
  background: var(--primary-dark);
  color: var(--white);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-num { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: .9rem; opacity: .85; margin-top: 4px; }

/* Internal links box */
.internal-links {
  background: linear-gradient(135deg, #eef5f0, #f0f8f3);
  border-radius: var(--radius);
  padding: 32px;
  margin: 40px 0;
  border-left: 4px solid var(--primary);
}

.internal-links h3 { color: var(--primary-dark); margin-bottom: 16px; }

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.link-grid a {
  padding: 10px 14px;
  background: var(--white);
  border-radius: 6px;
  font-size: .9rem;
  border: 1px solid var(--border);
  transition: background .2s;
}

.link-grid a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img { width: 56px; border-radius: 8px; margin-bottom: 16px; }
.footer-brand p { font-size: .9rem; line-height: 1.7; }

.footer-col h4 { color: var(--white); margin-bottom: 16px; font-size: 1rem; }

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.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: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code { font-size: 6rem; font-weight: 800; color: var(--primary); line-height: 1; }
.error-title { font-size: 1.5rem; margin: 16px 0; color: var(--primary-dark); }
.error-desc { color: var(--text-muted); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* TOC */
.toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}

.toc h3 { font-size: 1rem; margin-bottom: 12px; color: var(--primary-dark); }
.toc ol { margin-left: 20px; color: var(--text-muted); }
.toc a { color: var(--primary); }

/* Screenshot gallery */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.screenshot-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .2s;
}

.screenshot-item:hover { transform: translateY(-4px); }

.screenshot-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.screenshot-caption {
  padding: 16px;
}

.screenshot-caption h3 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.screenshot-caption p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Promo grid */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.promo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 220px;
}

.promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

.promo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: var(--white);
}

.promo-overlay h3 { font-size: 1.15rem; margin-bottom: 6px; }
.promo-overlay p { font-size: .9rem; opacity: .9; }

/* Image text block */
.img-text-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.img-text-block:nth-child(even) { direction: rtl; }
.img-text-block:nth-child(even) > * { direction: ltr; }

.img-text-block img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

.img-text-block h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.img-text-block p {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: .95rem;
}

/* Supplier logos */
.supplier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.supplier-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}

.supplier-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.supplier-item img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.supplier-item span {
  font-size: .8rem;
  color: var(--text-muted);
}

/* Brand timeline */
.brand-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.brand-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.brand-card img { width: 100%; height: 200px; object-fit: cover; }

.brand-card-body { padding: 20px; }

.brand-card-body h3 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.brand-card-body p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Wide banner */
.wide-banner {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 32px 0;
  box-shadow: var(--shadow);
}

.wide-banner img { width: 100%; display: block; }

.wide-banner figcaption {
  background: var(--white);
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-top: none;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.7;
}

.wide-banner figcaption strong { color: var(--primary-dark); }

/* Responsive */
@media (max-width: 900px) {
  .promo-grid, .brand-showcase, .img-text-block { grid-template-columns: 1fr; }
  .img-text-block:nth-child(even) { direction: ltr; }
  .hero-grid, .feature-row, .form-section { grid-template-columns: 1fr; }
  .feature-row.reverse { direction: ltr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }

  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; text-align: center; }

  .hero { padding: 40px 0 60px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
