/* 开云体育官网 - 全局样式 */
:root {
  --primary: #1a5f2a;
  --primary-dark: #0d3d18;
  --primary-light: #2d8a42;
  --accent: #f5c518;
  --accent-hover: #e0b010;
  --bg: #f8faf8;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5a6b5e;
  --border: #e0e8e2;
  --shadow: 0 4px 20px rgba(26, 95, 42, 0.08);
  --radius: 12px;
  --max-width: 1200px;
  --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;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.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: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.logo-link:hover { color: var(--accent); }
.logo-link img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: rgba(255,255,255,0.9);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(255,255,255,0.12);
  color: var(--accent);
}

.header-actions { display: flex; gap: 10px; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--primary-dark); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-green {
  background: var(--primary);
  color: #fff;
}
.btn-green:hover { background: var(--primary-light); color: #fff; }

.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(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: #fff;
  padding: 60px 20px 70px;
  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-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.3;
  margin-bottom: 16px;
  font-weight: 800;
}

.hero-text p {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 28px;
  line-height: 1.8;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  border: 3px solid rgba(255,255,255,0.15);
}

/* Main content */
main { flex: 1; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-alt { background: #fff; }

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary-dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.section-title p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1rem;
}

.section-title .title-line {
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  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 8px 30px rgba(26, 95, 42, 0.12);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Game grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.game-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.game-card:hover { transform: translateY(-3px); }

.game-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.game-card-body { padding: 20px; }

.game-card-body h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.game-card-body p { color: var(--text-muted); font-size: 0.92rem; }

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step-card {
  text-align: center;
  padding: 28px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}

.step-card h3 { font-size: 1.05rem; color: var(--primary-dark); margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 0.9rem; }

/* Partners */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  align-items: center;
}

.partner-item {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.partner-item:hover { box-shadow: var(--shadow); }
.partner-item img {
  height: 60px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

/* FAQ */
.faq-list { max-width: 860px; margin: 0 auto; }

.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); }
.faq-item[open] summary::after { content: "−"; }

.faq-item .faq-answer {
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* Content article */
.content-article {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin: 40px auto;
  max-width: var(--max-width);
}

.content-article h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--primary-dark);
  margin-bottom: 20px;
  line-height: 1.35;
}

.content-article h2 {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.content-article h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin: 24px 0 10px;
}

.content-article p {
  margin-bottom: 16px;
  color: var(--text);
  text-align: justify;
}

.content-article ul, .content-article ol {
  margin: 12px 0 16px 24px;
  color: var(--text-muted);
}

.content-article li { margin-bottom: 8px; }

.content-article a { text-decoration: underline; }

.breadcrumb {
  padding: 16px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--primary); }

/* Auth pages */
.auth-section {
  padding: 50px 20px 70px;
}

.auth-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.auth-form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.auth-form-card h1 {
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.auth-form-card .subtitle {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  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);
  box-shadow: 0 0 0 3px rgba(26, 95, 42, 0.1);
}

.form-actions { margin-top: 24px; }
.form-actions .btn { width: 100%; padding: 14px; font-size: 1rem; }

.form-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-info {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
}

.auth-info h2 { font-size: 1.4rem; margin-bottom: 16px; }
.auth-info p { opacity: 0.9; margin-bottom: 14px; font-size: 0.95rem; }
.auth-info ul { list-style: none; margin-top: 20px; }
.auth-info li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 0.92rem;
}
.auth-info li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

.auth-preview img {
  border-radius: var(--radius);
  margin-top: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: #fff;
  padding: 50px 20px;
  text-align: center;
}

.cta-banner h2 { font-size: 1.6rem; margin-bottom: 12px; }
.cta-banner p { opacity: 0.9; margin-bottom: 24px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* Error pages */
.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.error-code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 { font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 12px; }
.error-page p { color: var(--text-muted); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 50px 20px 24px;
  margin-top: auto;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand img { width: 48px; border-radius: 8px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; opacity: 0.85; }

.footer-col h4 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Two column content */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.two-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Internal links highlight */
.internal-links {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  margin: 30px 0;
}

.internal-links h3 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.internal-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.internal-links a {
  font-size: 0.9rem;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .auth-grid, .two-col, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-img { order: -1; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 12px 16px; }

  .header-actions { display: none; }
  .header-actions.mobile-show {
    display: flex;
    position: absolute;
    top: calc(var(--header-h) + 200px);
    left: 16px;
    right: 16px;
    flex-direction: column;
  }

  .content-article { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* 顶部广告栏 */
.ads-bar {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 10px;
}

.ads-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px 14px;
  background: transparent;
}

#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(26, 95, 42, 0.15);
  transition: transform 180ms ease, box-shadow 180ms 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(26, 95, 42, 0.25);
}

#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: 6px;
  line-height: 16px;
}

#ads figure {
  margin: 0;
}
