/* ========================================
   1. 设计变量 (Tokens)
   ======================================== */
:root {
    --primary: #4f46e5;
    --primary-light: #eef2ff;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    --shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

/* ========================================
   2. 基础重置
   ======================================== */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto; background: var(--bg); color: var(--text-main); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.container { max-width: 1280px; margin: auto; padding: 0 20px; }
a { text-decoration: none; color: var(--primary); }
img { max-width: 100%; border-radius: var(--radius-sm); }

/* ========================================
   3. 布局
   ======================================== */
.main-wrapper { display: flex; gap: 30px; padding: 30px 0; }
main { flex: 1; }
aside { width: 320px; flex-shrink: 0; }

/* ========================================
   4. Header & 导航
   ======================================== */
header { background: var(--card-bg); padding: 16px 0; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(10px); background: rgba(255,255,255,0.8); }
header h1 { margin: 0; font-size: 22px; font-weight: 700; color: var(--primary); }

.sub-nav { background: var(--card-bg); border-bottom: 1px solid var(--border); padding: 12px 0; overflow-x: auto; }
.sub-nav-wrap { display: flex; gap: 10px; }
.sub-nav a { padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 500; color: var(--text-secondary); white-space: nowrap; transition: all 0.2s ease; }
.sub-nav a.active, .sub-nav a:hover { background: var(--primary); color: #fff; }

/* ========================================
   5. 组件：赛事卡片
   ======================================== */
.section-title { font-size: 20px; font-weight: 600; margin: 40px 0 20px; padding-left: 12px; border-left: 4px solid var(--primary); }
.league-block { margin-bottom: 40px; }
.league-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.league-header h3 { margin: 0; font-size: 18px; font-weight: 600; }
.badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: var(--primary-light); color: var(--primary); text-transform: uppercase; }

.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.match-card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); padding: 20px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.match-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.match-time { font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; display: flex; justify-content: space-between; }
.match-teams { display: flex; align-items: center; text-align: center; font-weight: 600; font-size: 16px; }
.match-teams .team { flex: 1; }
.match-teams .vs { padding: 0 12px; font-size: 12px; color: var(--text-secondary); font-weight: 400; }
.match-venue { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; }

/* ========================================
   6. 组件：资讯列表
   ======================================== */
.news-item { background: var(--card-bg); padding: 20px; border-radius: var(--radius-sm); margin-bottom: 15px; border: 1px solid var(--border); }
.news-item h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.news-item h3 a { color: var(--primary); }
.news-item p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* ========================================
   7. 组件：侧边栏
   ======================================== */
.panel { background: var(--card-bg); padding: 15px; border-radius: var(--radius-sm); margin-bottom: 15px; border: 1px solid var(--border); }
.panel h4 { margin: 0 0 10px; font-size: 16px; font-weight: 600; border-left: 3px solid var(--primary); padding-left: 8px; }
.panel ul { padding-left: 20px; font-size: 13px; color: var(--text-secondary); }

/* ========================================
   8. ✅ 精致版 Footer (已封装)
   ======================================== */
footer {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #94a3b8;
    padding: 60px 20px 30px;
    margin-top: 60px;
    font-size: 14px;
}
footer .container {
    max-width: 1280px;
    margin: auto;
}
footer h3 {
    color: #fff;
    font-size: 20px;
    margin: 0 0 10px;
}
footer h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 16px;
}
footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}
footer a:hover {
    color: #fff;
}
footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
footer li {
    margin-bottom: 10px;
}

/* ========================================
   9. 响应式
   ======================================== */
@media (max-width: 1024px) { .main-wrapper { flex-direction: column; } .main-wrapper aside { width: 100%; } }
@media (max-width: 768px) { .match-grid { grid-template-columns: 1fr; } }

/* =========================
   文章页 UI 优化
   ========================= */
body{background:#f5f7fa;color:#222;}
.container{max-width:960px;margin:0 auto;padding:0 16px;}
header{background:#fff;border-bottom:1px solid #eee;padding:16px 0;}
header h1{font-size:18px;color:#1890ff;}

article{background:#fff;border-radius:12px;padding:32px;margin-top:24px;box-shadow:0 4px 20px rgba(0,0,0,.04);}
article h1{font-size:26px;font-weight:700;line-height:1.4;}
.meta{color:#888;font-size:13px;margin:12px 0 24px;}
.content{font-size:16px;line-height:1.9;color:#333;}

.page-nav{display:flex;justify-content:space-between;margin:32px 0;}
.page-nav a{color:#1890ff;text-decoration:none;font-size:14px;}

.related-box{background:#fff;border-radius:12px;padding:24px;margin-top:24px;}
.related-title{font-size:18px;font-weight:600;margin-bottom:16px;}
.related-list{list-style:none;padding:0;}
.related-list li{margin-bottom:12px;}
.related-list a{color:#333;text-decoration:none;font-size:15px;}
.related-list a:hover{color:#1890ff;}

.comment-box{background:#fff;border-radius:12px;padding:24px;margin-top:24px;}
.comment-item{padding:16px 0;border-bottom:1px dashed #eee;}
.comment-user{font-weight:600;font-size:14px;}
.comment-area{font-size:12px;color:#999;margin-left:8px;}
.comment-text{margin-top:8px;font-size:14px;line-height:1.8;}
.comment-like{float:right;color:#ff4d4f;font-size:12px;}
.reply-box{margin-left:40px;margin-top:10px;padding-left:10px;border-left:2px solid #eee;}
.reply-item{font-size:13px;color:#555;margin-top:6px;}
.editor{background:#f0f7ff;border-left:4px solid #1890ff;padding:12px;border-radius:6px;}

footer{text-align:center;color:#aaa;font-size:12px;padding:40px 0;}
.top-nav{margin-top:8px;font-size:14px;}
.top-nav a{color:#333;text-decoration:none;margin-right:16px;}
.top-nav a:hover{color:#1890ff;}

.breadcrumb{font-size:13px;color:#888;margin:24px 0 12px;}
.breadcrumb a{color:#888;text-decoration:none;}
.breadcrumb a:hover{color:#1890ff;}
.breadcrumb span{color:#333;}
.comment-time {
  font-size: 12px;
  color: #bbb;
  margin-left: 8px;
}
.reply-box {
  margin-left: 40px;
  margin-top: 10px;
  padding-left: 10px;
  border-left: 2px solid #eee;
}
.reply-item {
  font-size: 13px;
  color: #555;
  margin-top: 6px;
}
.news-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.news-thumb {
  flex-shrink: 0;
  width: 160px;
}

.news-thumb img {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}

.news-text {
  flex: 1;
}

.news-text h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.news-text p {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}

.team {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
}

.team-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
  background: #f5f5f5;
}

.article-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 20px;
  font-weight: bold;
}

.article-teams .team-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  background: #f5f5f5;
}

.vs {
  font-size: 14px;
  color: #999;
}

.article-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 20px;
  font-weight: bold;
}

.article-teams .team-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  background: #f5f5f5;
}

.article-teams .vs {
  font-size: 14px;
  color: #999;
}