/* W88体育 - Dark Sports Theme */
:root {
  --bg-primary: #0a0f0a;
  --bg-card: #0f1a0f;
  --bg-section: #0d1510;
  --accent: #39ff14;
  --accent-dim: #1a7a0a;
  --gold: #f5a623;
  --text-primary: #e8f5e8;
  --text-secondary: #8ba88b;
  --border: #1a2f1a;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100dvh;
}

/* --- Header / Nav --- */
.site-header {
  background: rgba(10, 15, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img {
  height: 36px;
  width: auto;
}
.site-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  flex: 1;
}
.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--accent);
  background: rgba(57, 255, 20, 0.08);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--text-primary);
  margin-left: auto;
}
.mobile-menu-btn svg { width: 22px; height: 22px; }

/* --- Footer --- */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.footer-brand .footer-logo img { height: 28px; }
.footer-brand .footer-logo span { color: var(--accent); font-weight: 700; font-size: 1.1rem; }
.footer-brand p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; max-width: 320px; }
.footer-links h4 { color: var(--text-primary); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 0.4rem; }
.footer-links ul li a { color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links ul li a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1280px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.78rem;
}

/* --- Container --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* --- Hero Section --- */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,15,10,0.85) 0%, rgba(10,15,10,0.5) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero-badge {
  display: inline-block;
  background: rgba(57, 255, 20, 0.15);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 2rem; max-width: 540px; }
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #0a0f0a;
  font-weight: 700;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* --- Sections --- */
.section { padding: 4rem 0; }
.section-dark { background: var(--bg-section); }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.section-desc { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 2.5rem; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: var(--accent-dim); transform: translateY(-3px); }
.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-category {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  flex: 1;
}
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-meta { font-size: 0.78rem; color: var(--text-secondary); margin-top: auto; }
.card-excerpt { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0.75rem; }

/* --- Stats bar --- */
.stats-bar {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 3rem;
}
.stat-item { text-align: center; flex: 1; min-width: 120px; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; }
.stat-label { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* --- Article layout --- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  padding: 3rem 0;
  align-items: start;
}
.article-main { min-width: 0; }
.article-sidebar { position: sticky; top: 88px; }

/* --- Article content --- */
.article-content h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.article-meta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.5rem; font-size: 0.82rem; color: var(--text-secondary); }
.article-meta .cat-tag { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.72rem; }
.article-featured-img { width: 100%; border-radius: 12px; margin-bottom: 2rem; aspect-ratio: 16/9; object-fit: cover; }
.article-body { font-size: 1rem; line-height: 1.85; color: var(--text-primary); }
.article-body h2 { font-size: 1.35rem; font-weight: 700; color: #fff; margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.article-body h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin: 1.5rem 0 0.75rem; }
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1.5rem 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--gold); font-weight: 600; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body .inline-img { width: 100%; border-radius: 8px; margin: 1.5rem 0; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  background: rgba(57,255,20,0.05);
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* --- Sidebar widget --- */
.widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.widget-title { font-size: 0.85rem; font-weight: 700; color: #fff; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); padding-bottom: 0.75rem; }
.related-list { list-style: none; }
.related-list li { margin-bottom: 0.85rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--border); }
.related-list li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.related-list a { color: var(--text-secondary); text-decoration: none; font-size: 0.88rem; line-height: 1.4; display: block; transition: color 0.2s; }
.related-list a:hover { color: var(--accent); }
.related-list .related-date { font-size: 0.72rem; color: var(--text-secondary); opacity: 0.7; margin-top: 0.2rem; display: block; }

/* --- Category page --- */
.category-hero {
  background: var(--bg-section);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.category-hero h1 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.category-hero p { color: var(--text-secondary); }

/* --- Breadcrumb --- */
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 1.5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { opacity: 0.5; }

/* --- FAQ accordion --- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
  gap: 1rem;
}
.faq-question:hover { color: var(--accent); }
.faq-icon { flex-shrink: 0; width: 20px; height: 20px; transition: transform 0.3s; color: var(--accent); }
.faq-answer { display: none; padding: 0 0 1.1rem; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.75; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-answer { display: block; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--accent-dim) 0%, #0d2a0d 100%);
  border: 1px solid var(--accent-dim);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  margin: 3rem 0;
}
.cta-banner h2 { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 0.75rem; }
.cta-banner p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* --- Pagination --- */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2.5rem; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
}
.pagination a:hover, .pagination .current { border-color: var(--accent); color: var(--accent); background: rgba(57,255,20,0.08); }

/* --- JSON-LD --- */
json-ld { display: none; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .header-inner { height: auto; min-height: 60px; padding: 0.75rem 1rem; flex-wrap: wrap; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,15,10,0.97);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    z-index: 99;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.6rem 1rem; }
  .mobile-menu-btn { display: flex; }
  .hero-content h1 { font-size: 1.8rem; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr; }
  .stats-bar { gap: 1.5rem; padding: 1.5rem; }
  .stat-number { font-size: 1.5rem; }
  .section { padding: 2.5rem 0; }
  .container { padding: 0 1rem; }
  .hero-section { min-height: 400px; }
  .cta-banner { padding: 2rem 1.5rem; }
}
