/* ===== 体育新闻站 ===== */
:root {
  --primary: #c81e1e;
  --primary-dark: #9b1c1c;
  --accent: #1a56db;
  --accent-dark: #1e429f;
  --bg: #f9fafb;
  --surface: #ffffff;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 4rem 0; }
.section-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 2rem; position: relative; padding-bottom: .5rem; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 48px; height: 3px; background: var(--primary); border-radius: 2px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ===== Header ===== */
.site-header { background: var(--surface); border-bottom: 3px solid var(--primary); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.top-bar { background: var(--primary); color: #fff; font-size: .78rem; padding: .3rem 0; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: rgba(255,255,255,.85); margin-left: 1rem; }
.top-bar a:hover { color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; }
.logo .logo-red { color: var(--primary); }
.logo .logo-blue { color: var(--accent); }
.nav { display: flex; gap: 0; }
.nav a { padding: .5rem 1rem; font-size: .92rem; font-weight: 600; color: var(--text); border-radius: var(--radius); transition: all .2s; }
.nav a:hover { color: var(--primary); background: #fef2f2; }
.nav a.active { color: var(--primary); border-bottom: 2px solid var(--primary); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ===== Hero / Feature Story ===== */
.hero { padding: 2rem 0; }
.hero-main { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.hero-feature { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); border-radius: 12px; overflow: hidden; position: relative; min-height: 400px; display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; color: #fff; }
.hero-feature::before { content: '⚽'; position: absolute; top: 1.5rem; right: 1.5rem; font-size: 5rem; opacity: .15; }
.hero-tag { display: inline-block; background: var(--primary); border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: .75rem; font-weight: 700; padding: .25rem .7rem; border-radius: 4px; margin-bottom: .75rem; text-transform: uppercase; }
.hero-feature h2 { font-size: 1.7rem; font-weight: 800; line-height: 1.3; margin-bottom: .75rem; }
.hero-feature p { font-size: .9rem; opacity: .85; margin-bottom: 1rem; }
.hero-meta { font-size: .8rem; opacity: .7; }
.hero-side { display: flex; flex-direction: column; gap: 1rem; }
.hero-side-item { background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); padding: 1rem; display: flex; gap: 1rem; align-items: flex-start; border-left: 3px solid var(--primary); }
.side-num { font-size: 1.5rem; font-weight: 900; color: var(--border); line-height: 1; }
.side-tag { display: block; font-size: .72rem; font-weight: 600; color: var(--primary); text-transform: uppercase; margin-bottom: .3rem; }
.side-title { font-size: .9rem; font-weight: 600; line-height: 1.4; }
.side-meta { font-size: .78rem; color: var(--text-muted); margin-top: .3rem; }

/* ===== Cards ===== */
.card { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-img-box { width: 100%; height: 180px; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 3rem; }
.card-body { padding: 1.25rem; }
.card-category { display: inline-block; background: #fef2f2; color: var(--primary); font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 4px; margin-bottom: .6rem; text-transform: uppercase; letter-spacing: .04em; }
.card-category.blue { background: #eff6ff; color: var(--accent); }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.4; }
.card-title a:hover { color: var(--primary); }
.card-excerpt { font-size: .875rem; color: var(--text-muted); margin-bottom: .75rem; line-height: 1.5; }
.card-meta { font-size: .8rem; color: var(--text-muted); display: flex; gap: 1rem; }

/* ===== News List ===== */
.news-list { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.news-list-header { background: var(--primary); color: #fff; padding: 1rem 1.5rem; font-size: 1rem; font-weight: 700; }
.news-item { display: flex; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); transition: background .15s; }
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: #fef2f2; }
.news-num { font-size: 1.2rem; font-weight: 900; color: var(--border); min-width: 28px; }
.news-num.top3 { color: var(--primary); }
.news-info h4 { font-size: .9rem; font-weight: 600; line-height: 1.4; margin-bottom: .3rem; }
.news-info h4 a:hover { color: var(--primary); }
.news-info span { font-size: .78rem; color: var(--text-muted); }

/* ===== Schedule ===== */
.match-card { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); padding: 1.5rem; transition: box-shadow .2s; }
.match-card:hover { box-shadow: var(--shadow-md); }
.match-league { font-size: .78rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1rem; }
.match-teams { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.match-team { display: flex; flex-direction: column; align-items: center; gap: .35rem; flex: 1; }
.team-flag { font-size: 2rem; }
.team-name { font-size: .875rem; font-weight: 600; text-align: center; }
.match-center { text-align: center; }
.score { font-size: 1.6rem; font-weight: 800; color: var(--text); }
.vs { font-size: 1.1rem; font-weight: 800; color: var(--text-muted); }
.match-info { font-size: .8rem; color: var(--text-muted); text-align: center; }
.status-badge { display: inline-block; padding: .2rem .6rem; border-radius: 20px; font-size: .72rem; font-weight: 600; }
.status-upcoming { background: #eff6ff; color: var(--accent); }
.status-live { background: #fee2e2; color: var(--primary); animation: pulse 1.5s infinite; }
.status-finished { background: #f3f4f6; color: var(--text-muted); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.6} }

/* ===== Team Card ===== */
.team-card { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); padding: 1.75rem 1.5rem; text-align: center; transition: all .2s; }
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.team-card .team-flag { font-size: 3rem; margin-bottom: .75rem; }
.team-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.team-card .team-sport { font-size: .8rem; color: var(--text-muted); margin-bottom: 1rem; }
.team-card .team-tag { display: inline-block; background: #fef2f2; color: var(--primary); font-size: .75rem; padding: .25rem .6rem; border-radius: 4px; font-weight: 600; }

/* ===== Table ===== */
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.data-table th { background: var(--primary); color: #fff; padding: .85rem 1rem; text-align: left; font-size: .875rem; font-weight: 600; }
.data-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); font-size: .875rem; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fef2f2; }

/* ===== Breaking News Ticker ===== */
.ticker { background: var(--primary); color: #fff; padding: .4rem 0; overflow: hidden; }
.ticker-inner { display: flex; align-items: center; gap: 0; }
.ticker-label { background: #000; color: #fff; font-size: .75rem; font-weight: 700; padding: .2rem .75rem; margin-right: 1rem; white-space: nowrap; text-transform: uppercase; letter-spacing: .05em; flex-shrink: 0; }
.ticker-content { overflow: hidden; white-space: nowrap; }
.ticker-scroll { display: inline-block; animation: ticker-scroll 30s linear infinite; font-size: .875rem; }
@keyframes ticker-scroll { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

/* ===== Breadcrumb ===== */
.breadcrumb { padding: 1rem 0; font-size: .875rem; color: var(--text-muted); display: flex; align-items: center; gap: .4rem; }
.breadcrumb a:hover { color: var(--primary); }

/* ===== Page Header ===== */
.page-header { background: var(--surface); border-bottom: 3px solid var(--primary); padding: 2rem 0; margin-bottom: 2rem; }
.page-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: .3rem; }
.page-header p { font-size: .95rem; color: var(--text-muted); }

/* ===== Filter Bar ===== */
.filter-bar { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn { padding: .45rem 1rem; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); font-size: .875rem; cursor: pointer; transition: all .2s; }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Sidebar ===== */
.layout-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
.sidebar-widget { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 1.5rem; }
.sidebar-widget-header { background: var(--primary); color: #fff; padding: .75rem 1.25rem; font-size: .95rem; font-weight: 700; }
.sidebar-widget-body { padding: 1rem 1.25rem; }

/* ===== Btn ===== */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.4rem; border-radius: var(--radius); font-weight: 600; font-size: .875rem; cursor: pointer; transition: all .2s; border: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ===== Footer ===== */
.site-footer { background: #111827; color: #9ca3af; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { font-size: 1.3rem; font-weight: 900; margin-bottom: 1rem; }
.footer-logo .logo-red { color: var(--primary); }
.footer-logo .logo-blue { color: #60a5fa; }
.footer-desc { font-size: .875rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: .95rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a { font-size: .875rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid #374151; padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: .8rem; }

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); border-bottom: 2px solid var(--primary); flex-direction: column; padding: 1rem; gap: .25rem; }
  .nav.open { display: flex; }
  .nav a { padding: .75rem 1rem; }
  .hero-main, .grid-2, .grid-3, .grid-4, .footer-grid, .layout-sidebar { grid-template-columns: 1fr; }
  .top-bar { display: none; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .section { padding: 2.5rem 0; }
}
@media (max-width: 480px) {
  .hero-feature h2 { font-size: 1.3rem; }
}
