/* 开云体育 kaiyun.lol - 主样式表 */
:root {
  --primary: #1a5f2a;
  --primary-dark: #0d3d18;
  --primary-light: #2d8a3e;
  --accent: #d4af37;
  --accent-hover: #f0c94a;
  --bg-dark: #0a0f0c;
  --bg-card: #121a15;
  --bg-section: #0e1510;
  --text: #e8ebe9;
  --text-muted: #9aab9e;
  --border: rgba(212, 175, 55, 0.2);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --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-dark);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

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

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 15, 12, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.logo-link { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-link img { height: 44px; width: auto; border-radius: 6px; }
.logo-text { font-size: 1.25rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.logo-text span { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); background: rgba(212, 175, 55, 0.08); }

.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-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  box-shadow: 0 2px 12px rgba(45, 138, 62, 0.4);
}
.btn-primary:hover { background: linear-gradient(135deg, #3aa050, var(--primary-light)); color: #fff; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: rgba(212, 175, 55, 0.12); color: var(--accent-hover); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #b8962e);
  color: var(--bg-dark);
}
.btn-accent:hover { background: linear-gradient(135deg, var(--accent-hover), var(--accent)); color: var(--bg-dark); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/开云体育背景.avif') center/cover no-repeat;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,15,12,0.92) 0%, rgba(13,61,24,0.75) 50%, rgba(10,15,12,0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 0;
}

.hero-text h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.25;
  margin-bottom: 20px;
  font-weight: 800;
}
.hero-text h1 em { color: var(--accent); font-style: normal; }

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.badge {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Notice bar */
.notice-bar {
  background: rgba(212, 175, 55, 0.08);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}
.notice-bar strong { color: var(--accent); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-section); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
  color: var(--text);
}
.section-header p { color: var(--text-muted); max-width: 640px; margin: 0 auto; font-size: 1rem; }

.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* App cards */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}
.app-card:hover { transform: translateY(-4px); border-color: rgba(212, 175, 55, 0.4); }

.app-card h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--accent); }
.app-card p { color: var(--text-muted); font-size: 0.92rem; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-unit { font-size: 1rem; color: var(--accent); }
.stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }

/* Games tabs */
.games-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}

.game-tab {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.game-tab:hover, .game-tab.active {
  background: rgba(45, 138, 62, 0.2);
  border-color: var(--primary-light);
  color: var(--text);
}

.game-panel { display: none; }
.game-panel.active { display: block; }

.game-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.game-content h3 { font-size: 1.5rem; margin-bottom: 6px; }
.game-content .subtitle { color: var(--accent); font-size: 0.9rem; margin-bottom: 16px; font-weight: 600; }
.game-content p { color: var(--text-muted); margin-bottom: 12px; font-size: 0.95rem; }
.game-features { list-style: none; margin-top: 16px; }
.game-features li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.game-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-weight: 700;
}

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

.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.partner-card img {
  height: 64px;
  width: auto;
  margin: 0 auto 16px;
  object-fit: contain;
}

.partner-card h3 { font-size: 1rem; margin-bottom: 8px; }
.partner-role { color: var(--accent); font-size: 0.82rem; margin-bottom: 12px; }
.partner-card p { color: var(--text-muted); font-size: 0.88rem; }

/* Providers */
.providers-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 32px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.providers-row img {
  height: 36px;
  width: auto;
  opacity: 0.75;
  transition: opacity 0.2s;
  filter: grayscale(30%);
}
.providers-row img:hover { opacity: 1; filter: none; }

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

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  padding: 20px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question:hover { color: var(--accent); }

.faq-icon { font-size: 1.2rem; color: var(--accent); transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* News/Activity */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s;
}
.news-card:hover { transform: translateY(-3px); }

.news-card img { width: 100%; height: 180px; object-fit: cover; }
.news-body { padding: 20px; }
.news-body h3 { font-size: 1rem; margin-bottom: 10px; line-height: 1.4; }
.news-body p { color: var(--text-muted); font-size: 0.88rem; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--bg-dark));
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Content pages */
.content-page { padding: 56px 0 80px; }
.content-page .prose { max-width: 800px; margin: 0 auto; }
.content-page h2 { font-size: 1.35rem; margin: 36px 0 14px; color: var(--accent); }
.content-page h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.content-page p, .content-page li { color: var(--text-muted); margin-bottom: 12px; font-size: 0.95rem; }
.content-page ul, .content-page ol { padding-left: 24px; margin-bottom: 16px; }
.content-page a { text-decoration: underline; }

/* Auth pages */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 56px 0 80px;
}

.auth-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.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.92rem; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-muted); }
.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--primary-light);
}

.form-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 0.88rem; }
.form-row label { display: flex; align-items: center; gap: 8px; color: var(--text-muted); cursor: pointer; }

.auth-seo {
  padding-top: 8px;
}
.auth-seo h2 { font-size: 1.3rem; margin-bottom: 16px; color: var(--text); }
.auth-seo h3 { font-size: 1.05rem; margin: 24px 0 10px; color: var(--accent); }
.auth-seo p, .auth-seo li { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 10px; }
.auth-seo ul { padding-left: 20px; margin-bottom: 16px; }

.auth-visual img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.benefit-list {
  list-style: none;
  margin: 20px 0;
}
.benefit-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.benefit-list li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--accent); }

/* Footer */
.site-footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img { height: 48px; margin-bottom: 16px; border-radius: 6px; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; max-width: 300px; }

.footer-col h4 { font-size: 0.95rem; margin-bottom: 16px; color: var(--text); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.88rem; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-legal { font-size: 0.8rem; color: var(--text-muted); margin-top: 16px; line-height: 1.6; }

/* Quick links bar */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 24px 0;
}

.quick-link-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  min-width: 120px;
  transition: all 0.2s;
}
.quick-link-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.quick-link-btn .icon { font-size: 1.5rem; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-content, .game-content, .auth-layout { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
  .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: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }

  .header-actions .btn-outline { display: none; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .auth-form-wrap { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
