/* ========== 基础重置 ========== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --primary:#1966ff;
  --primary-soft:rgba(25,102,255,.08);
  --text:#15181e;
  --text-2:#666b76;
  --text-3:#9aa0ab;
  --line:#ecedf1;
  --bg:#f4f5f7;
  --card:#fff;
  --radius:12px;
  --shadow:0 6px 24px rgba(15,23,42,.08);
}
html{-webkit-text-size-adjust:100%}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  background:var(--bg);color:var(--text);font-size:14px;line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
button{font-family:inherit}
img{display:block;max-width:100%}
ul{list-style:none}

/* ========== 顶部导航 ========== */
.site-header{
  position:sticky;top:0;z-index:200;background:#fff;
  border-bottom:1px solid var(--line);transition:box-shadow .25s;
}
.site-header.is-scrolled{box-shadow:0 4px 18px rgba(15,23,42,.07)}
.header-inner{
  max-width:1240px;margin:0 auto;height:64px;padding:0 16px;
  display:flex;align-items:center;gap:4px;
}
.logo{display:flex;align-items:center;gap:8px;margin-right:12px;flex:none}
.logo-mark{
  width:32px;height:32px;border-radius:9px;
  background:linear-gradient(135deg,#1966ff,#5b9dff);
  display:grid;place-items:center;color:#fff;font-weight:800;font-size:16px;
  box-shadow:0 4px 12px rgba(25,102,255,.3);
}
.logo-text{font-size:18px;font-weight:800;letter-spacing:.5px}

.main-nav{display:flex;align-items:center;height:100%;flex:1;min-width:0}
.nav-item{position:relative;height:64px;display:flex;align-items:center}
.nav-item > a{
  padding:0 15px;font-size:15px;font-weight:500;color:var(--text);
  height:64px;display:flex;align-items:center;transition:color .18s;
}
.nav-item > a::after{
  content:"";position:absolute;left:50%;bottom:0;width:0;height:2px;
  background:var(--primary);transform:translateX(-50%);transition:width .22s;
}
.nav-item:hover > a{color:var(--primary)}
.nav-item:hover > a::after{width:26px}

.nav-dropdown{
  position:absolute;top:100%;left:50%;
  transform:translateX(-50%) translateY(10px);
  background:#fff;border-radius:12px;padding:10px;
  box-shadow:0 12px 40px rgba(15,23,42,.14);
  display:grid;grid-template-columns:repeat(3,minmax(72px,1fr));gap:2px;
  opacity:0;visibility:hidden;transition:.22s ease;z-index:10;
}
.nav-item:hover .nav-dropdown{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}
.nav-dropdown a{
  padding:8px 14px;border-radius:8px;font-size:14px;color:var(--text-2);
  white-space:nowrap;transition:.15s;
}
.nav-dropdown a:hover{background:var(--primary-soft);color:var(--primary)}

.header-action{flex:none}
.btn-app{
  padding:8px 18px;border-radius:999px;border:1px solid var(--primary);
  background:var(--primary);color:#fff;font-size:13px;font-weight:600;
  cursor:pointer;transition:.2s;white-space:nowrap;
}
.btn-app:hover{background:#0d4fd6;border-color:#0d4fd6}

/* ========== 轮播 ========== */
.hero-wrap{max-width:1240px;margin:16px auto 0;padding:0 16px}
.hero{
  position:relative;height:400px;border-radius:16px;overflow:hidden;
  background:#0b1220;box-shadow:var(--shadow);
}
.hero-slide{
  position:absolute;inset:0;opacity:0;pointer-events:none;
  transition:opacity .7s ease;display:block;
}
.hero-slide.is-active{opacity:1;pointer-events:auto}
.hero-bg{
  position:absolute;inset:0;display:block;
  background:linear-gradient(135deg,#1e3a8a,#3b82f6);
}
.hero-bg img{width:100%;height:100%;object-fit:cover}
.hero-shade{
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(6,10,20,.02) 20%, rgba(6,10,20,.88) 100%);
}
.hero-body{position:absolute;left:0;right:0;bottom:0;padding:32px 36px;color:#fff;max-width:780px}
.hero-tag{
  display:inline-block;font-size:12px;font-weight:600;letter-spacing:.5px;
  padding:4px 12px;border-radius:999px;
  background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.24);
  backdrop-filter:blur(6px);
}
.hero-title{font-size:26px;line-height:1.38;font-weight:700;margin:12px 0;text-shadow:0 2px 14px rgba(0,0,0,.45)}
.hero-meta{display:flex;align-items:center;gap:8px;font-size:13px;color:rgba(255,255,255,.85)}
.avatar{
  width:24px;height:24px;border-radius:50%;flex:none;
  background:rgba(255,255,255,.22);display:grid;place-items:center;
  font-size:12px;font-style:normal;font-weight:600;
}
.hero-cta{
  display:inline-flex;align-items:center;gap:6px;margin-top:16px;
  font-size:13px;padding:7px 16px;border-radius:999px;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.26);
  transition:.2s;
}
.hero-cta:hover{background:rgba(255,255,255,.26)}
.hero-arrow{
  position:absolute;top:50%;transform:translateY(-50%);
  width:40px;height:40px;border-radius:50%;border:none;
  background:rgba(255,255,255,.18);color:#fff;font-size:22px;line-height:1;
  cursor:pointer;display:grid;place-items:center;
  backdrop-filter:blur(8px);opacity:0;transition:.25s;z-index:3;
}
.hero:hover .hero-arrow{opacity:1}
.hero-arrow:hover{background:rgba(255,255,255,.34)}
.hero-arrow--prev{left:16px}
.hero-arrow--next{right:16px}
.hero-dots{position:absolute;right:28px;bottom:26px;display:flex;gap:8px;z-index:3}
.hero-dot{
  width:8px;height:8px;padding:0;border:none;border-radius:999px;
  background:rgba(255,255,255,.45);cursor:pointer;transition:.25s;
}
.hero-dot.is-active{width:22px;background:#fff}

/* ========== 布局 ========== */
.layout{
  max-width:1240px;margin:0 auto;padding:16px;
  display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start;
}
.content{min-width:0}
.sidebar{min-width:0}

/* ========== 通用面板 ========== */
.panel{background:var(--card);border-radius:var(--radius);margin-bottom:16px;overflow:hidden}
.panel-head{
  padding:16px 20px;border-bottom:1px solid var(--line);
  display:flex;align-items:center;justify-content:space-between;
}
.panel-title{font-size:18px;font-weight:700;position:relative;padding-left:13px}
.panel-title::before{
  content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:4px;height:16px;border-radius:2px;
  background:linear-gradient(180deg,#1966ff,#5b9dff);
}
.panel-body{padding:16px 20px}

/* ========== 图片容器（关键：display:block） ========== */
.thumb{
  position:relative;
  display:block;              /* ← 关键修复：span 默认 inline，宽高失效 */
  overflow:hidden;
  border-radius:10px;
  background:linear-gradient(135deg,#334155,#64748b); /* 兜底底色 */
}
.thumb img{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .45s ease;
}
.thumb::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.20) 100%);
}
a:hover > .thumb img,
.news-item:hover .thumb img,
.top-news:hover .thumb img,
.topic-card:hover .thumb img{
  transform:scale(1.06);
}

/* 球队小徽标 */
.tlogo{
  width:20px;height:20px;border-radius:50%;flex:none;
  display:grid;place-items:center;font-size:10px;font-weight:700;
  color:#fff;background:var(--c,#64748b);font-style:normal;
}

/* ========== 最新资讯 ========== */
.top-news-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:8px}
.top-news{position:relative;display:block;border-radius:10px}
.top-news .thumb{width:100%;aspect-ratio:16/10}
.top-news-title{
  font-size:13px;line-height:1.45;margin-top:8px;height:38px;overflow:hidden;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  transition:color .18s;
}
.top-news:hover .top-news-title{color:var(--primary)}
.badge-top{
  position:absolute;top:8px;left:8px;z-index:2;
  font-size:11px;font-weight:600;color:#fff;padding:2px 8px;border-radius:6px;
  background:rgba(25,102,255,.92);backdrop-filter:blur(4px);
}

.news-list{margin-top:6px}
.news-item{
  display:flex;align-items:center;gap:14px;
  padding:13px 0;border-bottom:1px solid var(--line);
  transition:background .16s;
}
.news-item:last-child{border-bottom:none}
.news-item:hover .news-title{color:var(--primary)}
.news-item .thumb{width:96px;aspect-ratio:16/10;flex:none}
.news-main{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:16px}
.news-title{flex:1;min-width:0;font-size:14.5px;line-height:1.5;transition:color .16s}
.news-time{font-size:13px;color:var(--text-3);white-space:nowrap;flex:none}
.tag{
  display:inline-block;font-size:12px;font-weight:500;color:var(--primary);
  background:var(--primary-soft);padding:1px 7px;border-radius:5px;margin-right:7px;
  vertical-align:1px;
}
.news-item.is-hidden{display:none}
.news-list.is-expanded .news-item.is-hidden{display:flex}

.more-btn{
  width:100%;padding:14px;border:none;background:#fff;color:var(--text-2);
  font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;
  gap:6px;transition:.2s;border-top:1px solid var(--line);
}
.more-btn:hover{color:var(--primary);background:#f8f9fb}
.more-btn .caret{transition:transform .25s;font-size:11px}
.more-btn.is-expanded .caret{transform:rotate(180deg)}

/* ========== 比赛列表 ========== */
.match-day{border-bottom:1px solid var(--line)}
.match-day:last-child{border-bottom:none}
.match-day > summary{
  list-style:none;cursor:pointer;
  display:flex;align-items:center;justify-content:space-between;
  padding:11px 20px;background:#f7f8fa;font-size:14px;font-weight:600;
  transition:background .18s;
}
.match-day > summary::-webkit-details-marker{display:none}
.match-day > summary:hover{background:#f0f2f6}
.match-day > summary .cnt{color:var(--text-3);font-weight:400;font-size:13px;margin-left:4px}
.match-day > summary .caret{color:var(--text-3);font-size:12px;transition:transform .25s}
.match-day[open] > summary .caret{transform:rotate(90deg)}

.match-row{
  display:flex;align-items:center;gap:12px;
  padding:12px 20px;border-top:1px solid var(--line);
  font-size:13px;transition:background .16s;
}
.match-row:hover{background:#fafbfd}
.match-league{width:80px;flex:none;color:var(--text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.match-time{width:86px;flex:none;color:var(--text-3)}
.match-status{width:58px;flex:none;text-align:center;font-size:12px;color:var(--text-3)}
.match-status.is-live{color:#e8322d;font-weight:600}
.match-teams{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:16px}
.match-team{flex:1;min-width:0;display:flex;align-items:center;gap:7px}
.match-team.home{justify-content:flex-end;text-align:right}
.match-team.away{justify-content:flex-start;text-align:left}
.match-team span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.match-score{
  flex:none;min-width:56px;text-align:center;
  font-size:15px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--primary);
}
.match-score.is-vs{font-size:13px;font-weight:500;color:var(--text-3)}
.match-ops{width:138px;flex:none;display:flex;gap:6px;justify-content:flex-end}
.op-btn{
  font-size:12px;padding:4px 11px;border-radius:6px;
  border:1px solid var(--line);color:var(--text-2);transition:.18s;white-space:nowrap;
}
.op-btn:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-soft)}

/* ========== 侧栏：推荐比赛 ========== */
.rec-game{display:block;padding:14px 20px;border-bottom:1px solid var(--line);transition:background .16s}
.rec-game:last-of-type{border-bottom:none}
.rec-game:hover{background:#fafbfd}
.rec-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.rec-meta{font-size:12px;color:var(--text-3)}
.rec-meta b{color:var(--primary);font-weight:600}
.rec-btn{
  font-size:12px;padding:3px 12px;border-radius:999px;
  border:1px solid var(--line);color:var(--text-2);transition:.18s;
}
.rec-game:hover .rec-btn{border-color:var(--primary);color:var(--primary);background:var(--primary-soft)}
.rec-team{display:flex;align-items:center;gap:9px;padding:5px 0;font-size:14px}
.rec-team + .rec-team{border-top:1px dashed #f0f1f4}

/* ========== 排行榜 ========== */
.board-tabs,.sub-tabs{
  display:flex;gap:4px;padding:12px 20px;border-bottom:1px solid var(--line);
  overflow-x:auto;scrollbar-width:none;
}
.board-tabs::-webkit-scrollbar,.sub-tabs::-webkit-scrollbar{display:none}
.board-tab,.sub-tab{
  flex:none;border:none;background:transparent;cursor:pointer;
  font-size:13.5px;color:var(--text-2);padding:5px 14px;border-radius:999px;
  transition:.18s;font-weight:500;
}
.board-tab:hover,.sub-tab:hover{color:var(--primary)}
.board-tab.is-active,.sub-tab.is-active{background:var(--primary);color:#fff}
.board-pane,.sub-pane{display:none}
.board-pane.is-active,.sub-pane.is-active{display:block}
.sub-tabs{padding:10px 20px 4px;border-bottom:none;gap:2px}
.sub-tab{padding:4px 12px;font-size:13px}

.rank-table{width:100%;border-collapse:collapse;font-size:13px}
.rank-table th{
  font-weight:400;font-size:12px;color:var(--text-3);text-align:left;
  padding:8px 20px;background:#fafbfc;border-bottom:1px solid var(--line);
}
.rank-table td{padding:9px 20px;border-bottom:1px solid var(--line)}
.rank-table tr:last-child td{border-bottom:none}
.rank-table tbody tr{transition:background .16s}
.rank-table tbody tr:hover{background:#fafbfd}
.rank-table .col-num{text-align:right;font-variant-numeric:tabular-nums}
.rank-no{
  display:inline-grid;place-items:center;width:19px;height:19px;border-radius:6px;
  font-size:12px;font-weight:600;background:#f1f2f5;color:var(--text-2);
}
.rank-no.top{background:var(--primary);color:#fff}
.rank-team{display:flex;align-items:center;gap:8px;min-width:0}
.rank-team span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ========== 专题推荐 ========== */
.topic-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px 20px}
.topic-card{display:block}
.topic-card .thumb{aspect-ratio:16/10}
.topic-tag{
  display:inline-block;font-size:11px;color:#e8752b;background:rgba(232,117,43,.1);
  padding:1px 7px;border-radius:5px;margin:8px 0 5px;
}
.topic-title{
  font-size:13px;line-height:1.45;height:38px;overflow:hidden;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  transition:color .18s;
}
.topic-card:hover .topic-title{color:var(--primary)}

/* ========== 页脚 ========== */
.site-footer{background:#fff;border-top:1px solid var(--line);margin-top:8px}
.footer-inner{max-width:1240px;margin:0 auto;padding:34px 16px 20px}
.footer-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:40px}
.footer-box-title{display:block;font-size:14px;font-weight:700;margin-bottom:14px;color:var(--text)}
.footer-links{display:flex;flex-wrap:wrap;gap:8px 22px}
.footer-links a{font-size:13px;color:var(--text-2);transition:color .16s}
.footer-links a:hover{color:var(--primary)}
.footer-bottom{
  margin-top:28px;padding-top:18px;border-top:1px solid var(--line);
  display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;
  font-size:12.5px;color:var(--text-3);
}
.footer-bottom a{color:var(--text-3)}
.footer-bottom a:hover{color:var(--primary)}

/* ========== 响应式 ========== */
@media (max-width:1080px){
  .layout{grid-template-columns:1fr}
  .main-nav{display:none}
  .header-inner{justify-content:space-between}
}
@media (max-width:860px){
  .hero{height:320px}
  .hero-body{padding:24px}
  .hero-title{font-size:20px}
  .top-news-grid{grid-template-columns:repeat(2,1fr)}
  .footer-cols{grid-template-columns:1fr;gap:26px}
}
@media (max-width:720px){
  .match-row{flex-wrap:wrap;row-gap:10px;padding:12px 16px}
  .match-league,.match-time,.match-status{width:auto}
  .match-teams{order:3;flex-basis:100%;justify-content:space-between;gap:10px}
  .match-team.home{justify-content:flex-start;text-align:left}
  .match-ops{width:auto;margin-left:auto}
  .match-ops .op-btn:first-child{display:none}
  .panel-body{padding:14px 16px}
  .news-item .thumb{width:78px}
  .hero-dots{right:16px;bottom:16px}
  .hero-arrow{display:none}
}
@media (max-width:480px){
  .top-news-grid{grid-template-columns:1fr 1fr;gap:10px}
  .news-title{font-size:14px}
  .topic-grid{grid-template-columns:1fr}
}