/* Wanbo Sports - Style Sheet */
/* Design: Magazine Split Layout with Sports Vibe */
/* Prototype: Magazine multi-column + large hero */

:root {
  --primary: #1a3a6b;
  --primary-light: #2a5a9e;
  --accent: #e85d2c;
  --accent-light: #f07a4a;
  --bg: #f8f9fc;
  --bg-card: #ffffff;
  --bg-dark: #1a1a2e;
  --text: #1a1a2e;
  --text-light: #555577;
  --text-muted: #8888aa;
  --border: #e0e3ed;
  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--accent); }

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

/* Header / Navigation */
header.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

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

header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

header .logo img {
  height: 34px;
  width: auto;
}

header .logo span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

header nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

header nav.main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.25rem 0;
}

header nav.main-nav a:hover,
header nav.main-nav a.active {
  color: var(--accent-light);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Footer */
footer.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 1rem 1.5rem;
  margin-top: 3rem;
}

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

footer .footer-brand p {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
}

footer ul { list-style: none; }

footer ul li { margin-bottom: 0.4rem; }

footer ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

footer ul a:hover { color: var(--accent-light); }

footer .copyright {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* Layout Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Homepage */
.hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  margin-bottom: 2rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,58,107,0.8), rgba(232,93,44,0.6));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.hero .btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}

.hero .btn-primary:hover { background: var(--accent-light); }

/* Home Sections */
.home-section {
  padding: 2.5rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

/* Feature Grid - Home */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.feature-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.feature-card .card-body {
  padding: 1rem;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* Article List (Home) */
.article-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.article-card {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.article-card:hover { transform: translateY(-2px); }

.article-card img {
  width: 180px;
  min-height: 130px;
  object-fit: cover;
  flex-shrink: 0;
}

.article-card .card-text {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.article-card .meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.article-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* Trust / Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
}

.stat-item .num {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.stat-item .label {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary), #0f2347);
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: var(--radius);
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.cta-section p {
  opacity: 0.85;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 2.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.05rem;
  transition: background 0.2s;
}

.cta-section .btn-cta:hover { background: var(--accent-light); }

/* Category Page */
.page-header {
  padding: 2rem 0 1rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--primary);
}

.page-header p {
  color: var(--text-light);
  margin-top: 0.5rem;
}

.category-articles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1rem 0 2rem;
}

/* Article Detail */
.article-detail {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  padding: 1.5rem 0 2.5rem;
}

.article-main .article-header {
  margin-bottom: 1.5rem;
}

.article-main .article-header h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.article-main .article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.article-main .article-meta .category-tag {
  color: var(--accent);
  font-weight: 600;
}

.article-main .article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.article-main .article-body p {
  margin-bottom: 1rem;
}

.article-main .article-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--primary);
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--border);
}

.article-main .article-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary-light);
  margin: 1.2rem 0 0.5rem;
}

.article-main .article-body ul,
.article-main .article-body ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

.article-main .article-body li {
  margin-bottom: 0.3rem;
}

.article-main .article-body img {
  margin: 1rem 0;
  border-radius: var(--radius);
  width: 100%;
}

.article-main .article-body .inline-figure {
  margin: 1rem 0;
}

.article-main .article-body .inline-figure.float-right {
  float: right;
  width: 45%;
  margin: 0.5rem 0 1rem 1.5rem;
}

.article-main .article-body .inline-figure.float-left {
  float: left;
  width: 45%;
  margin: 0.5rem 1.5rem 1rem 0;
}

/* Related Aside */
.article-aside {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 80px;
}

.article-aside h3 {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.article-aside ul { list-style: none; }

.article-aside li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.article-aside li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.article-aside a {
  font-size: 0.9rem;
  font-weight: 500;
  display: block;
  line-height: 1.4;
}

.article-aside .aside-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Breadcrumb */
nav.breadcrumb {
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

nav.breadcrumb a {
  color: var(--primary-light);
}

nav.breadcrumb span {
  color: var(--text);
}

/* Guide section (home) */
.guide-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.guide-item {
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.guide-item h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.guide-item p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* FAQ Section */
.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.faq-item h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.faq-item p {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
  header .header-inner { height: 54px; }

  header nav.main-nav {
    display: none;
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  header nav.main-nav.open { display: block; }

  header nav.main-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .menu-toggle { display: block; }

  .hero { min-height: 300px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.95rem; }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .article-list {
    grid-template-columns: 1fr;
  }

  .article-card {
    flex-direction: column;
  }

  .article-card img {
    width: 100%;
    height: 160px;
  }

  .article-detail {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }

  .article-main .article-body .inline-figure.float-right,
  .article-main .article-body .inline-figure.float-left {
    float: none;
    width: 100%;
    margin: 1rem 0;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.25rem;
  }

  .guide-section {
    grid-template-columns: 1fr;
  }

  footer .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

@media (max-width: 480px) {
  .hero h1 { font-size: 1.3rem; }
  .section-title { font-size: 1.2rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}