/* 开云体育官网 - 全局样式 */
:root {
  --primary: #1a8f4a;
  --primary-dark: #0f6b35;
  --primary-light: #2ecc71;
  --accent: #f5a623;
  --bg-dark: #0d1117;
  --bg-card: #161b22;
  --bg-light: #f8faf9;
  --text: #1a1a2e;
  --text-muted: #5a6270;
  --text-light: #e8eaed;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --max-width: 1140px;
  --header-h: 72px;
}

*, *::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: var(--bg-light);
}

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

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

ul, ol { padding-left: 1.4em; }
li + li { margin-top: 0.4em; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-link img {
  height: 44px;
  width: auto;
  border-radius: 6px;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.logo-text span { color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(26, 143, 74, 0.1);
  color: var(--primary);
}

.header-cta {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.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;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 143, 74, 0.35);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 143, 74, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid 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;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text);
  padding: 4px 8px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0d2818 0%, #1a5c32 50%, #0f3d22 100%);
  color: var(--text-light);
  padding: 60px 20px 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/开云体育背景.avif") center/cover no-repeat;
  opacity: 0.15;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.3;
  margin-bottom: 16px;
  font-weight: 800;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tag {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* Sections */
.section {
  padding: 64px 20px;
}

.section-alt { background: #fff; }

.section-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

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

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
  color: inherit;
}

.section-header p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-dark .section-header p { color: rgba(255,255,255,0.65); }

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Content blocks */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}

.content-block:last-child { margin-bottom: 0; }

.content-block.reverse { direction: rtl; }
.content-block.reverse > * { direction: ltr; }

.content-block img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-block h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--primary-dark);
}

.content-block p { color: var(--text-muted); margin-bottom: 12px; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  position: relative;
  padding-top: 48px;
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 16px;
  left: 20px;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.step-card h4 { font-size: 1rem; margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; color: var(--text-muted); }

/* Partners */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.partner-grid img {
  height: 48px;
  width: auto;
  opacity: 0.75;
  filter: grayscale(30%);
  transition: all 0.2s;
}

.partner-grid img:hover {
  opacity: 1;
  filter: none;
  transform: scale(1.05);
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  font-family: inherit;
}

.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open .faq-question::after { content: "−"; }

.faq-answer {
  display: none;
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.open .faq-answer { display: block; }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-align: center;
  padding: 56px 20px;
  border-radius: var(--radius);
  margin: 0 20px;
  max-width: calc(var(--max-width) - 40px);
  margin-left: auto;
  margin-right: auto;
}

.cta-banner h2 { font-size: 1.8rem; margin-bottom: 12px; }
.cta-banner p { opacity: 0.9; margin-bottom: 24px; font-size: 1.05rem; }
.cta-banner .btn-primary { background: #fff; color: var(--primary-dark); box-shadow: none; }
.cta-banner .btn-primary:hover { background: var(--accent); color: #fff; }

/* Page hero (sub pages) */
.page-hero {
  background: linear-gradient(135deg, #0d2818, #1a5c32);
  color: #fff;
  padding: 48px 20px;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 10px; }
.page-hero p { opacity: 0.85; max-width: 600px; margin: 0 auto; }

.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* Article / Legal content */
.article-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.article-content h2 {
  font-size: 1.35rem;
  margin: 36px 0 14px;
  color: var(--primary-dark);
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(26, 143, 74, 0.15);
}

.article-content h2:first-child { margin-top: 0; }

.article-content h3 {
  font-size: 1.1rem;
  margin: 24px 0 10px;
  color: var(--text);
}

.article-content p { margin-bottom: 14px; color: var(--text-muted); }

.article-content ul, .article-content ol { margin-bottom: 16px; color: var(--text-muted); }

/* Auth pages */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-h) - 200px);
}

.auth-visual {
  background: linear-gradient(135deg, #0d2818, #1a5c32);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  color: #fff;
}

.auth-visual img {
  border-radius: var(--radius);
  margin-top: 24px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.auth-visual h2 { font-size: 1.6rem; margin-bottom: 12px; }
.auth-visual p { opacity: 0.88; line-height: 1.8; }

.auth-form-wrap {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.auth-form-wrap h1 { font-size: 1.6rem; margin-bottom: 8px; }
.auth-form-wrap .subtitle { color: var(--text-muted); margin-bottom: 28px; font-size: 0.95rem; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 143, 74, 0.12);
}

.form-footer {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.auth-seo-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  background: var(--bg-light);
}

.auth-seo-content h2 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.auth-seo-content h3 {
  font-size: 1.1rem;
  margin: 24px 0 10px;
}

.auth-seo-content p, .auth-seo-content li { color: var(--text-muted); }

/* Download cards */
.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.download-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: all 0.2s;
}

.download-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.download-card .icon { font-size: 2.5rem; margin-bottom: 12px; }
.download-card h3 { margin-bottom: 8px; }
.download-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 20px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand img { height: 40px; border-radius: 6px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-col a:hover { color: var(--primary-light); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
}

.mobile-nav.open { display: block; }

.mobile-nav-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(300px, 85vw);
  background: #fff;
  padding: 24px;
  overflow-y: auto;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  float: right;
  color: var(--text);
}

.mobile-nav-panel nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 40px;
}

.mobile-nav-panel nav a {
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
}

.mobile-nav-panel nav a:hover { background: rgba(26,143,74,0.1); color: var(--primary); }

.mobile-nav-cta {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }

  .hero-inner,
  .content-block,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .content-block.reverse { direction: ltr; }

  .hero-image { order: -1; }

  .auth-visual { padding: 32px 24px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .hero { padding: 40px 16px 50px; }
  .section { padding: 48px 16px; }
  .auth-form-wrap { padding: 32px 20px; }
}

/* APP 推荐广告 */
.ads-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 16px 12px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.ads-bar .applist-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 10px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 4px;
  background: transparent;
  max-width: var(--max-width);
  margin: 0 auto;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  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;
  cursor: pointer;
}

#ads a:hover img {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  line-height: 15px;
  font-size: 12px;
  color: #666;
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}
