/* ysb体育站点样式 - 杂志分栏暗色运动风 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

:root {
  --c-bg: #0b0e17;
  --c-surface: #131829;
  --c-surface2: #1a2035;
  --c-border: #2a3050;
  --c-text: #e8eaf0;
  --c-muted: #8891aa;
  --c-accent: #f5921e;
  --c-accent2: #ffd166;
  --c-blue: #3b82f6;
  --font: 'Noto Sans SC', 'PingFang SC', sans-serif;
}

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

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

body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  min-height: 100dvh;
}

/* 导航 */
.site-header {
  background: rgba(11,14,23,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.site-logo img { height: 36px; width: auto; display: block; }
.site-logo .logo-text { font-size: 1.15rem; font-weight: 700; color: var(--c-accent); letter-spacing: -0.02em; }

.main-nav { display: flex; align-items: center; gap: 0; list-style: none; }
.main-nav a {
  display: block;
  padding: 0.5rem 1.1rem;
  color: var(--c-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  border-radius: 6px;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--c-accent); }
.main-nav a[aria-current="page"] { background: rgba(245,146,30,0.1); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--c-text);
}
.mobile-toggle svg { width: 24px; height: 24px; display: block; }

.mobile-nav {
  display: none;
  position: absolute;
  top: 64px;
  left: 0; right: 0;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: 1rem 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block;
  padding: 0.75rem 0.5rem;
  color: var(--c-muted);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--c-border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--c-accent); }

/* Footer */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 2.5rem 1.5rem 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: start;
}
.footer-brand .logo-text { font-size: 1.1rem; font-weight: 700; color: var(--c-accent); margin-bottom: 0.5rem; display: block; }
.footer-brand p { color: var(--c-muted); font-size: 0.85rem; max-width: 280px; }
.footer-links h4 { font-size: 0.8rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: var(--c-text); text-decoration: none; font-size: 0.88rem; }
.footer-links a:hover { color: var(--c-accent); }
.footer-bottom { max-width: 1280px; margin: 1.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--c-border); text-align: center; color: var(--c-muted); font-size: 0.8rem; }

/* Hero */
.hero-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,14,23,0.9) 0%, rgba(11,14,23,0.5) 60%, rgba(245,146,30,0.1) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  width: 100%;
}
.hero-eyebrow { font-size: 0.8rem; color: var(--c-accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 1rem; }
.hero-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; line-height: 1.2; margin-bottom: 1rem; color: var(--c-text); }
.hero-title span { color: var(--c-accent); }
.hero-desc { font-size: 1rem; color: var(--c-muted); max-width: 500px; margin-bottom: 1.5rem; line-height: 1.7; }
.hero-cta { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--c-accent); color: #fff; padding: 0.7rem 1.5rem; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 0.9rem; transition: transform 0.15s, background 0.2s; }
.hero-cta:hover { background: #e07d10; transform: translateY(-1px); }

/* Sections */
.section { padding: 3.5rem 1.5rem; max-width: 1280px; margin: 0 auto; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.5rem; gap: 1rem; }
.section-title { font-size: 1.4rem; font-weight: 700; color: var(--c-text); }
.section-title span { color: var(--c-accent); }
.section-more { font-size: 0.85rem; color: var(--c-accent); text-decoration: none; white-space: nowrap; }

/* Cards grid */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: var(--c-accent); transform: translateY(-2px); }
.card-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 0.72rem; color: var(--c-accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.4rem; }
.card-title { font-size: 1rem; font-weight: 700; color: var(--c-text); margin-bottom: 0.5rem; line-height: 1.4; text-decoration: none; display: block; }
.card-title:hover { color: var(--c-accent); }
.card-excerpt { font-size: 0.83rem; color: var(--c-muted); line-height: 1.6; flex: 1; margin-bottom: 0.75rem; }
.card-meta { font-size: 0.75rem; color: var(--c-muted); opacity: 0.7; }

/* Article page */
.article-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}
.article-main { min-width: 0; }
.article-header { margin-bottom: 1.5rem; }
.article-breadcrumb { font-size: 0.8rem; color: var(--c-muted); margin-bottom: 1rem; }
.article-breadcrumb a { color: var(--c-muted); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--c-accent); }
.article-breadcrumb span { margin: 0 0.4rem; }
.article-h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; line-height: 1.25; margin-bottom: 0.75rem; color: var(--c-text); }
.article-meta-row { display: flex; align-items: center; gap: 1rem; font-size: 0.8rem; color: var(--c-muted); flex-wrap: wrap; }
.article-cat-tag { background: rgba(245,146,30,0.15); color: var(--c-accent); padding: 0.2rem 0.6rem; border-radius: 4px; font-weight: 600; }

.article-hero-img { width: 100%; height: 360px; object-fit: cover; border-radius: 10px; margin-bottom: 1.5rem; display: block; }

.article-body { font-size: 0.95rem; line-height: 1.8; color: var(--c-text); }
.article-body h2 { font-size: 1.25rem; font-weight: 700; color: var(--c-text); margin: 2rem 0 0.75rem; padding-top: 1rem; border-top: 1px solid var(--c-border); }
.article-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--c-accent); margin: 1.5rem 0 0.5rem; }
.article-body p { margin-bottom: 1rem; color: #c8ccd8; }
.article-body ul, .article-body ol { margin: 0.75rem 0 1rem 1.5rem; }
.article-body li { margin-bottom: 0.4rem; color: #c8ccd8; }
.article-body strong { color: var(--c-text); font-weight: 600; }
.article-body figure { margin: 1.5rem 0; }
.article-body figure img { width: 100%; border-radius: 8px; display: block; margin-bottom: 0.4rem; }
.article-body figcaption { font-size: 0.78rem; color: var(--c-muted); text-align: center; font-style: italic; }
.article-body .inline-figure { float: right; margin: 0 0 1rem 1.5rem; max-width: 45%; }
.article-body .inline-figure img { width: 100%; }
.article-body .split-figure { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.article-body .split-figure img { width: 100%; border-radius: 8px; display: block; }

/* Sidebar */
.article-sidebar { position: sticky; top: 80px; }
.sidebar-box { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 10px; padding: 1.1rem; margin-bottom: 1rem; }
.sidebar-box h3 { font-size: 0.85rem; font-weight: 700; color: var(--c-text); margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--c-border); text-transform: uppercase; letter-spacing: 0.05em; }
.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 0; }
.sidebar-links a { display: block; padding: 0.5rem 0; color: var(--c-muted); text-decoration: none; font-size: 0.85rem; border-bottom: 1px solid rgba(42,48,80,0.5); transition: color 0.15s; line-height: 1.4; }
.sidebar-links li:last-child a { border-bottom: none; }
.sidebar-links a:hover { color: var(--c-accent); }
.sidebar-links .sidebar-cat { font-size: 0.7rem; color: var(--c-accent); font-weight: 600; display: block; margin-bottom: 0.15rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* Category page */
.cat-hero { background: var(--c-surface); border-bottom: 1px solid var(--c-border); padding: 2.5rem 1.5rem; text-align: center; }
.cat-hero h1 { font-size: 1.8rem; font-weight: 900; color: var(--c-text); margin-bottom: 0.5rem; }
.cat-hero p { color: var(--c-muted); font-size: 0.9rem; }

/* Data strip */
.data-strip { background: var(--c-surface); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); padding: 1.5rem; }
.data-strip-inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-around; gap: 1rem; flex-wrap: wrap; }
.data-item { text-align: center; }
.data-num { font-size: 1.6rem; font-weight: 900; color: var(--c-accent); display: block; }
.data-label { font-size: 0.75rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* About section */
.about-section { background: var(--c-surface); border-radius: 12px; border: 1px solid var(--c-border); padding: 2rem; margin: 2rem 0; }
.about-section h2 { font-size: 1.3rem; font-weight: 700; color: var(--c-text); margin-bottom: 1rem; }
.about-section p { color: var(--c-muted); font-size: 0.9rem; line-height: 1.8; }

/* FAQ section */
.faq-item { border-bottom: 1px solid var(--c-border); padding: 1rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 700; color: var(--c-text); font-size: 0.95rem; margin-bottom: 0.4rem; cursor: pointer; }
.faq-a { color: var(--c-muted); font-size: 0.88rem; line-height: 1.7; }

/* About/Contact page */
.page-content { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; }
.page-content h1 { font-size: 2rem; font-weight: 900; margin-bottom: 1rem; color: var(--c-text); }
.page-content h2 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 0.5rem; color: var(--c-text); }
.page-content p { color: var(--c-muted); margin-bottom: 0.75rem; line-height: 1.8; }

/* Feature cards */
.card-grid.three-col { grid-template-columns: repeat(3, 1fr); }
.feature-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; padding: 1.5rem; text-align: center; transition: border-color 0.2s; }
.feature-card:hover { border-color: var(--c-accent); }
.feature-icon { margin-bottom: 0.75rem; display: flex; justify-content: center; }
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--c-text); margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.83rem; color: var(--c-muted); line-height: 1.6; }

/* FAQ */
.faq-list { max-width: 700px; }
.faq-item { border-bottom: 1px solid var(--c-border); padding: 1rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 700; color: var(--c-text); font-size: 0.95rem; margin-bottom: 0.5rem; cursor: pointer; }
.faq-a { color: var(--c-muted); font-size: 0.88rem; line-height: 1.7; }

/* Responsive */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.three-col { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .hero-section { min-height: 380px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid.three-col { grid-template-columns: 1fr; }
  .article-hero-img { height: 220px; }
  .article-body .inline-figure { float: none; max-width: 100%; margin: 1rem 0; }
  .article-body .split-figure { grid-template-columns: 1fr; }
  .data-strip-inner { gap: 0.5rem; }
}
