/* ========================================
   爱游戏体育 - 专业体育赛事平台
   版式原型：杂志分栏 + 双栏内容
   色板：深蓝 #0d1b2a | 主蓝 #1b3a5c | 绿色 #00c853 | 灰白 #f5f7fa
   字体：Outfit, system-ui
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a2e;
  background: #f5f7fa;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #1b3a5c; text-decoration: none; transition: color 0.2s; }
a:hover { color: #00c853; }

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Site Header --- */
.site-header {
  background: #0d1b2a;
  border-bottom: 3px solid #00c853;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img { height: 36px; width: auto; }
.logo-text {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* --- Navigation --- */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: #c0c8d4;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(0, 200, 83, 0.15);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* --- Footer --- */
.site-footer {
  background: #0d1b2a;
  color: #8892a4;
  padding: 40px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.footer-col p { font-size: 0.88rem; line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { color: #8892a4; font-size: 0.88rem; }
.footer-col ul li a:hover { color: #00c853; }
.footer-bottom {
  border-top: 1px solid #1e3044;
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
}

/* --- Hero Section (Index) --- */
.hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b3a5c 50%, #0d1b2a 100%);
  color: #fff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(0,200,83,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.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.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero h1 span { color: #00c853; }
.hero p {
  font-size: 1.1rem;
  color: #b0bec5;
  margin-bottom: 24px;
  max-width: 90%;
}
.hero-cta {
  display: inline-block;
  background: #00c853;
  color: #0d1b2a;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
}
.hero-cta:hover { background: #00e676; color: #0d1b2a; transform: translateY(-2px); }
.hero-img { border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }

/* --- Sections (Index) --- */
.section-block {
  padding: 48px 0;
}
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0d1b2a;
  margin-bottom: 8px;
}
.section-sub {
  font-size: 0.95rem;
  color: #607d8b;
  margin-bottom: 28px;
}
.section-dark {
  background: #0d1b2a;
  color: #fff;
}
.section-dark .section-title { color: #fff; }
.section-dark .section-sub { color: #8892a4; }

/* --- Feature Cards (Magazine grid) --- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
.feature-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.feature-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.feature-card img { width: 100%; height: 200px; object-fit: cover; }
.feature-card-body { padding: 20px; }
.feature-card-body h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.feature-card-body p { font-size: 0.88rem; color: #607d8b; line-height: 1.5; }

/* --- Article List (Index) --- */
.article-list-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.article-item {
  display: flex;
  gap: 16px;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}
.article-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.article-item img {
  width: 160px;
  min-height: 100px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.article-item-info { flex: 1; }
.article-item-info .cat-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #00c853;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.article-item-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.article-item-info h3 a { color: #1a1a2e; }
.article-item-info h3 a:hover { color: #00c853; }
.article-item-info p { font-size: 0.84rem; color: #607d8b; line-height: 1.5; }
.article-item-info .date {
  display: block;
  font-size: 0.78rem;
  color: #90a4ae;
  margin-top: 6px;
}

/* --- Stats / Trust Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
  padding: 20px 0;
}
.stat-item h3 { font-size: 2rem; font-weight: 800; color: #00c853; }
.stat-item p { font-size: 0.85rem; color: #8892a4; }

/* --- Guide Section --- */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.guide-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-align: center;
}
.guide-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 14px;
}
.guide-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.guide-card p { font-size: 0.86rem; color: #607d8b; }

/* --- CTA Block --- */
.cta-block {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, #1b3a5c, #0d1b2a);
  border-radius: 16px;
  margin: 48px 0;
}
.cta-block h2 { font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.cta-block p { color: #b0bec5; margin-bottom: 20px; font-size: 1rem; }
.cta-block .btn-cta {
  display: inline-block;
  background: #00c853;
  color: #0d1b2a;
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 8px;
  font-size: 1.05rem;
  transition: all 0.3s;
}
.cta-block .btn-cta:hover { background: #00e676; transform: translateY(-2px); }

/* --- Article Page (Left main + Right aside) --- */
.article-page { padding: 32px 0; }
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.article-main { background: #fff; border-radius: 12px; padding: 32px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.article-main .article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 24px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: #78909c;
}
.article-meta .tag {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.article-main h1 { font-size: 1.8rem; font-weight: 700; line-height: 1.3; margin-bottom: 20px; color: #0d1b2a; }
.article-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #0d1b2a;
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e0e7ef;
}
.article-content h3 { font-size: 1.1rem; font-weight: 600; color: #1b3a5c; margin: 20px 0 10px; }
.article-content p { margin-bottom: 14px; color: #37474f; }
.article-content ul, .article-content ol { margin: 10px 0 16px 20px; color: #37474f; }
.article-content li { margin-bottom: 6px; }
.article-content img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 10px;
  margin: 16px 0;
}
.breadcrumb {
  font-size: 0.82rem;
  color: #78909c;
  margin-bottom: 16px;
  padding: 8px 0;
}
.breadcrumb a { color: #1b3a5c; }
.breadcrumb a:hover { color: #00c853; }
.breadcrumb span { color: #90a4ae; }

/* --- Article Aside (Related) --- */
.article-aside {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 88px;
}
.article-aside h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0d1b2a;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #00c853;
}
.aside-list { list-style: none; }
.aside-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f2f5;
}
.aside-list li:last-child { border-bottom: none; }
.aside-list li a {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a2e;
  line-height: 1.4;
}
.aside-list li a:hover { color: #00c853; }
.aside-list li .aside-date {
  display: block;
  font-size: 0.76rem;
  color: #90a4ae;
  margin-top: 4px;
}

/* --- Category Page --- */
.category-page { padding: 32px 0; }
.category-header {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.category-header h1 { font-size: 1.8rem; font-weight: 700; color: #0d1b2a; margin-bottom: 8px; }
.category-header p { color: #607d8b; font-size: 0.95rem; }
.category-articles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* --- About --- */
.about-page { padding: 32px 0; }
.about-content {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  max-width: 800px;
  margin: 0 auto;
}
.about-content h1 { font-size: 1.8rem; font-weight: 700; color: #0d1b2a; margin-bottom: 20px; }
.about-content h2 { font-size: 1.3rem; margin: 24px 0 12px; color: #0d1b2a; }
.about-content p { margin-bottom: 12px; color: #37474f; }

/* --- Mobile --- */
@media (max-width: 768px) {
  .header-inner { height: 60px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #0d1b2a;
    flex-direction: column;
    padding: 12px;
    border-bottom: 2px solid #00c853;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; width: 100%; border-radius: 0; }

  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { max-width: 100%; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid-2 { grid-template-columns: 1fr; }
  .article-list-2col { grid-template-columns: 1fr; }
  .article-item { flex-direction: column; }
  .article-item img { width: 100%; height: 160px; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .guide-grid { grid-template-columns: 1fr; }

  .article-layout { grid-template-columns: 1fr; }
  .article-main { padding: 20px; }
  .article-aside { position: static; margin-top: 24px; }
  .article-main h1 { font-size: 1.4rem; }

  .category-articles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}