:root {
  --primary: #1a7a3c;
  --primary-dark: #0f5a2a;
  --primary-light: #2ea85a;
  --accent: #f5c518;
  --bg-dark: #0d1117;
  --bg-card: #161b22;
  --bg-section: #f8faf9;
  --text: #1a1a2e;
  --text-muted: #5a6270;
  --text-light: #e8eaed;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --radius: 12px;
  --max-w: 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);
  line-height: 1.75;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

.container { max-width: var(--max-w); 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,.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-w);
  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: #fff; 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; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--text-light);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: .9rem;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.1); color: #fff; }

.nav-cta { display: flex; gap: 8px; margin-left: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: var(--bg-dark); }
.btn-accent:hover { background: #e0b010; color: var(--bg-dark); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a3a2a 50%, var(--primary-dark) 100%);
  color: #fff;
  padding: 60px 0 80px;
  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.5rem; line-height: 1.3; margin-bottom: 16px; }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.85); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img { border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.4); }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-section); }
.section-dark { background: var(--bg-dark); color: var(--text-light); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: var(--accent); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 2rem; margin-bottom: 12px; color: var(--text); }
.section-dark .section-header h2 { color: #fff; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 700px; margin: 0 auto; }
.section-dark .section-header p { color: rgba(255,255,255,.7); }

/* Cards Grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.12); }
.card img { border-radius: 8px; margin-bottom: 16px; width: 100%; height: 180px; object-fit: cover; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--text); }
.card p { color: var(--text-muted); font-size: .95rem; }
.card .card-link { display: inline-block; margin-top: 12px; font-weight: 600; font-size: .9rem; }

/* Feature list */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.feature-icon {
  width: 48px; height: 48px; min-width: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.feature-item h3 { font-size: 1rem; margin-bottom: 4px; }
.feature-item p { font-size: .88rem; color: var(--text-muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; counter-reset: step; }
.step {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 16px;
}
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: .88rem; color: var(--text-muted); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--text); }
.faq-item p { color: var(--text-muted); font-size: .95rem; }

/* 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;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* Content page */
.page-hero {
  background: linear-gradient(135deg, var(--bg-dark), var(--primary-dark));
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.page-hero h1 { font-size: 2rem; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.8); }
.breadcrumb { font-size: .85rem; margin-bottom: 12px; color: rgba(255,255,255,.6); }
.breadcrumb a { color: var(--accent); }

.content-body { padding: 48px 0 64px; }
.content-body .container { max-width: 860px; }
.content-body h2 { font-size: 1.5rem; margin: 32px 0 12px; color: var(--text); }
.content-body h3 { font-size: 1.2rem; margin: 24px 0 8px; }
.content-body p { margin-bottom: 16px; color: var(--text-muted); }
.content-body ul, .content-body ol { margin: 0 0 16px 24px; color: var(--text-muted); }
.content-body li { margin-bottom: 8px; }
.content-body img { border-radius: var(--radius); margin: 20px 0; box-shadow: var(--shadow); }

/* Login/Register forms */
.form-section { padding: 48px 0 64px; }
.form-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-wrapper h2 { text-align: center; margin-bottom: 8px; }
.form-wrapper .form-desc { text-align: center; color: var(--text-muted); margin-bottom: 28px; font-size: .95rem; }
.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,122,60,.15); }
.form-footer { text-align: center; margin-top: 20px; font-size: .9rem; color: var(--text-muted); }
.form-wrapper .btn { width: 100%; margin-top: 8px; }

.seo-content { margin-top: 48px; max-width: 860px; margin-left: auto; margin-right: auto; }
.seo-content h2 { font-size: 1.4rem; margin: 28px 0 12px; }
.seo-content p { color: var(--text-muted); margin-bottom: 14px; font-size: .95rem; }

/* 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-page h1 { font-size: 1.5rem; margin: 16px 0 8px; }
.error-page p { color: var(--text-muted); margin-bottom: 24px; }

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
  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: 8px; margin-bottom: 12px; }
.footer-brand p { font-size: .88rem; line-height: 1.6; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.65); font-size: .88rem; }
.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: .82rem;
  color: rgba(255,255,255,.45);
}

/* Two column content */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Internal links block */
.internal-links {
  background: var(--bg-section);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
  border-left: 4px solid var(--primary);
}
.internal-links h3 { font-size: 1rem; margin-bottom: 12px; }
.internal-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.internal-links a { font-size: .9rem; font-weight: 500; }

/* Media block — alternating image + text */
.media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}
.media-block:last-child { margin-bottom: 0; }
.media-block.reverse { direction: rtl; }
.media-block.reverse > * { direction: ltr; }
.media-block img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.media-block h3 { font-size: 1.35rem; margin-bottom: 12px; color: var(--text); }
.media-block p { color: var(--text-muted); margin-bottom: 12px; font-size: .95rem; }

/* Dual image row */
.dual-img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
.dual-img figure { margin: 0; }
.dual-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.dual-img figcaption {
  text-align: center;
  margin-top: 10px;
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Supplier logo grid */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.logo-grid img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  background: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.logo-grid img:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* Image gallery */
.img-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.gallery-item {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.gallery-item:hover { transform: translateY(-3px); }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; }
.gallery-item .gallery-body { padding: 16px 18px; }
.gallery-item h3 { font-size: 1rem; margin-bottom: 6px; }
.gallery-item p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

/* Sponsor cards */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.sponsor-card {
  background: rgba(255,255,255,.06);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
}
.sponsor-card img { width: 100%; height: 180px; object-fit: cover; }
.sponsor-card .sponsor-body { padding: 18px 20px; }
.sponsor-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: #fff; }
.sponsor-card p { font-size: .88rem; color: rgba(255,255,255,.65); line-height: 1.65; }

/* Testimonial */
.testimonial {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.testimonial img { border-radius: var(--radius); width: 100%; }
.testimonial blockquote {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
  border-left: 4px solid var(--primary);
  padding-left: 20px;
}
.testimonial cite { font-style: normal; font-weight: 600; color: var(--text); font-size: .95rem; }

/* Full showcase banner */
.showcase-banner {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 32px 0;
}
.showcase-banner img { width: 100%; display: block; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .two-col, .footer-grid, .media-block, .testimonial { grid-template-columns: 1fr; }
  .media-block.reverse { direction: ltr; }
  .dual-img { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
  }
  .main-nav.open { display: flex; }
  .nav-cta { margin-left: 0; margin-top: 8px; }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 40px 0 56px; }
  .section { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-wrapper { padding: 28px 20px; }
}
