/* =========================================================
   站点主样式 · 「数据台 + 卡片化」视觉语言
   颜色全部由 static11/theme/N.css 的 CSS 变量控制
   路径保持不变：/static11/css/site.min.css
   ========================================================= */

/* ---------------------------------------------------------
   1. 设计令牌（缺省值 = 主题 1，主题文件会覆盖颜色）
   --------------------------------------------------------- */
:root {
  /* 强调色 */
  --primary: #e4393c;
  --primary-soft: #fff4f4;
  --primary-bg: #ffebeb;
  --primary-border: #ffd1d1;

  /* 头部 / 底部 */
  --header-bg: #2c3e50;
  --header-bg-glass: #2c3e50;
  --header-border: #e4393c;
  --header-text: #ffffff;
  --header-nav: #eeeeee;
  --header-nav-active: #e4393c;
  --header-nav-hover: rgba(255, 255, 255, .08);
  --header-drop-border: #34495e;
  --logo-color: #ffffff;

  --footer-bg: #2c3e50;
  --footer-text: #95a5a6;
  --footer-link: #bdc3c7;

  /* 文本 */
  --body-bg: #f5f6f8;
  --text: #222222;
  --text-dark: #111111;
  --text-muted: #525b66;
  --text-light: #616a75;
  --text-lighter: #6f7882;
  --link: #333333;
  --link-hover: #e4393c;

  /* 表面与线条 */
  --card-bg: #ffffff;
  --border: #e2e4e8;
  --border-light: #eeeeee;
  --section-border: #eaebed;
  --surface: #f8f9fa;
  --surface-2: #f1f3f5;
  --surface-hover: #fbfbfc;
  --row-hover: #fff4f4;

  /* 联赛条 */
  --league-hover-bg: #2c3e50;
  --league-hover-text: #ffffff;

  /* 按钮 */
  --btn-preview-text: #007bff;
  --btn-preview-border: #007bff;
  --btn-over-text: #888888;
  --btn-over-border: #cccccc;

  /* 徽标 */
  --badge-jj: #f39c12;
  --badge-lx: #27ae60;

  /* 直播 */
  --live: #e4393c;
  --live-vs: #e4393c;
  --player-bg: #111111;

  /* 文章阅读面（深色主题下保持浅色纸面） */
  --paper-bg: #ffffff;
  --paper-text: #222222;
  --paper-muted: #6b7280;
  --paper-link: #b32d30;

  /* 形状 / 间距 / 动效 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --gap: 14px;
  --header-h: 54px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 26px -22px rgba(15, 23, 42, .45);
  --shadow-pop: 0 18px 40px -20px rgba(15, 23, 42, .35);
  --font-num: ui-monospace, SFMono-Regular, "Roboto Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

/* ---------------------------------------------------------
   2. 基础
   --------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { width: 100%; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
  width: 100%;
  overflow-x: clip; /* clip 不影响 sticky；旧浏览器回退到 html 的 hidden */
  font-family: -apple-system, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--body-bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--link); text-decoration: none; transition: color .16s var(--ease); }
a:hover { color: var(--link-hover); text-decoration: none; }
img { display: block; object-fit: cover; max-width: 100%; }
ul, li { list-style: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--primary); color: #fff; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 16px; width: 100%; }

/* 等宽数字：比分、时间、日期不抖动 */
.t-score, .m-time, .live-vs, .link-time, .article-meta, .live-facts {
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------
   3. 头部
   --------------------------------------------------------- */
body > header,
header.site-header {
  background: var(--header-bg-glass);
  color: var(--header-text);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px -26px rgba(0, 0, 0, .9);
  position: sticky;
  top: 0;
  z-index: 1000;
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}
.header-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-h);
  gap: 12px;
}
.logo { flex-shrink: 0; min-width: 0; }
.logo .site-name,
.logo h1.site-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .4px;
  flex-shrink: 0;
  margin: 0;
  color: var(--logo-color);
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46vw;
}
.logo h1.site-name a { color: var(--logo-color); text-decoration: none; }
.logo .site-name:hover,
.logo h1.site-name a:hover { color: var(--logo-color); text-decoration: none; }

#mainNav { display: flex; height: 100%; align-items: center; gap: 2px; }
#mainNav a {
  position: relative;
  color: var(--header-nav);
  font-weight: 600;
  font-size: 14px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  height: 34px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s var(--ease), background .16s var(--ease);
}
#mainNav a.active,
#mainNav a:hover { color: var(--header-text); background: var(--header-nav-hover); text-decoration: none; }
#mainNav a.active { background: var(--header-nav-active); }

.menu-toggle {
  display: none;
  font-size: 20px;
  color: var(--header-text);
  cursor: pointer;
  user-select: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--header-drop-border);
  transition: background .16s var(--ease);
}
.menu-toggle:hover,
.menu-toggle:active { background: var(--header-nav-hover); }

/* 联赛条：胶囊 chips，始终单行横向滚动 */
.league-nav-section {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 0 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
  padding-right: 4px;
}
.league-nav-section::-webkit-scrollbar { display: none; }
.league-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px 5px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
  transition: all .18s var(--ease);
}
.league-item img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--card-bg);
  padding: 1px;
}
.league-item:hover,
.league-item.active {
  background: var(--league-hover-bg);
  color: var(--league-hover-text);
  border-color: var(--league-hover-bg);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   4. 卡片 / 区块标题
   --------------------------------------------------------- */
.main-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: var(--gap);
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.section-header h2,
.section-header h3 {
  position: relative;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
  padding-left: 11px;
  border: 0;
}
.section-header h2::before,
.section-header h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 15px;
  margin-top: -7.5px;
  border-radius: 2px;
  background: var(--primary);
}
.section-header h2::after,
.section-header h3::after { content: none; }
.section-header .more {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all .16s var(--ease);
}
.section-header .more:hover {
  color: var(--primary);
  border-color: var(--primary-border);
  background: var(--primary-bg);
}

/* ---------------------------------------------------------
   5. 赛程 / 比分行
   --------------------------------------------------------- */
.schedule-block { margin-bottom: 14px; }
.schedule-block:last-child { margin-bottom: 0; }
.schedule-sub-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface);
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 8px;
}
.schedule-list {
  width: 100%;
  border: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.match-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.match-row:last-child { border-bottom: 1px solid transparent; }
.match-row:nth-child(even) { background: var(--surface); }
.match-row:hover {
  background: var(--row-hover);
  border-color: var(--primary-border);
  transform: translateY(-1px);
}
.match-row .m-league { position: relative; z-index: 1; }
.match-row .status-btn { position: relative; z-index: 1; }
.m-cell { display: flex; align-items: center; min-width: 0; }
.m-cell.meta {
  width: 25%;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: nowrap;
  color: var(--text-muted);
  font-size: 12.5px;
  min-width: 0;
}
.meta-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 62%;
}
.sport-badge {
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
  filter: saturate(1.1);
}
.m-league {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-league:hover { color: var(--link-hover); text-decoration: none; }
.m-time {
  color: var(--text-lighter);
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 12px;
}
.m-cell.teams {
  width: 60%;
  justify-content: center;
  gap: 12px;
  font-size: 14.5px;
  min-width: 0;
}
.t-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 42%;
  min-width: 0;
}
.t-wrap.home { justify-content: flex-end; text-align: right; }
.t-wrap.away { justify-content: flex-start; text-align: left; }
.t-wrap img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--card-bg);
  padding: 2px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.t-name {
  font-weight: 600;
  color: var(--text-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.t-score {
  min-width: 58px;
  padding: 3px 10px;
  text-align: center;
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .5px;
  color: var(--primary);
  background: var(--primary-bg);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.t-score.unstart {
  color: var(--text-lighter);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.m-cell.action { width: 15%; justify-content: flex-end; flex-shrink: 0; }
.status-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: all .18s var(--ease);
}
.status-btn.live {
  background: var(--live);
  color: #fff;
  box-shadow: 0 6px 16px -10px var(--live);
}
.status-btn.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: liveDot 1.4s ease-in-out infinite;
}
.status-btn.live:hover { color: #fff; filter: brightness(1.08); text-decoration: none; }
.status-btn.preview {
  background: transparent;
  color: var(--btn-preview-text);
  border: 1px solid var(--btn-preview-border);
}
.status-btn.preview:hover { background: var(--primary-bg); text-decoration: none; }
.status-btn.over {
  background: var(--surface-2);
  color: var(--btn-over-text);
  border: 1px solid transparent;
}
.status-btn.over:hover { color: var(--text-muted); text-decoration: none; }
@keyframes liveDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.7); }
}

/* ---------------------------------------------------------
   6. 首页两栏 / 新闻 / 文字列表
   --------------------------------------------------------- */
.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 7.2fr) minmax(0, 4.8fr);
  gap: var(--gap);
  margin-top: var(--gap);
}
.news-list { display: flex; flex-direction: column; gap: 6px; }
.news-item {
  display: flex;
  gap: 12px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.news-item:hover {
  background: var(--surface-hover);
  border-color: var(--border);
  transform: translateY(-1px);
}
.news-item:last-child { border-bottom: 1px solid transparent; padding-bottom: 9px; }
.news-pic {
  width: 132px;
  height: 88px;
  flex-shrink: 0;
  border: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
}
.news-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.news-item:hover .news-pic img { transform: scale(1.04); }
.news-txt { display: flex; flex-direction: column; justify-content: space-between; flex: 1; min-width: 0; }
.news-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-title a { color: var(--text-dark); }
.news-title a:hover { color: var(--link-hover); }
.news-description {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-info { font-size: 11.5px; color: var(--text-lighter); margin-top: 3px; display: flex; align-items: center; gap: 10px; }
.news-info .tag {
  color: var(--primary);
  font-weight: 700;
  background: var(--primary-bg);
  border: 1px solid var(--primary-border);
  padding: 0 6px;
  border-radius: var(--radius-pill);
  margin-right: 0;
  line-height: 1.7;
}
.news-info .time { font-family: var(--font-num); }

/* 侧栏新闻 */
.inner-side .news-list { gap: 2px; }
.inner-side .news-item { gap: 10px; padding: 7px; }
.inner-side .news-pic { width: 84px; height: 56px; border-radius: 8px; }
.inner-side .news-txt { min-width: 0; }
.inner-side .news-title {
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 2px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.inner-side .news-title a { color: var(--text-dark); font-weight: 600; }
.inner-side .news-description { display: none; }

/* 文字列表（集锦 / 录像 / 词条） */
.text-list-box { display: flex; flex-direction: column; gap: 2px; }
.text-links-list li {
  border-bottom: 0;
  padding: 7px 8px;
  margin: 0 -8px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  transition: background .16s var(--ease);
}
.text-links-list li:hover { background: var(--surface-hover); }
.text-links-list li:last-child { border-bottom: 0; }
.text-links-list a:hover { color: var(--link-hover); }
.link-main { display: flex; align-items: flex-start; gap: 7px; flex: 1; min-width: 0; overflow: hidden; }
.type-badge {
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 6px;
  color: #fff;
  flex-shrink: 0;
  line-height: 1.5;
  margin-top: 1px;
  font-weight: 700;
}
.type-badge.jj { background: var(--badge-jj); }
.type-badge.lx { background: var(--badge-lx); }
.link-title {
  font-weight: 500;
  color: var(--link);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  white-space: normal;
  line-height: 1.5;
  word-break: break-word;
}
.link-time {
  font-size: 11px;
  color: var(--text-lighter);
  font-family: var(--font-num);
  flex-shrink: 0;
  white-space: nowrap;
  padding-top: 2px;
}

/* 词条 / 标签云 */
.wiki-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 8px;
  padding: 2px 0;
}
.wiki-item {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  padding: 9px 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  border-radius: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  transition: all .18s var(--ease);
}
.wiki-item:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -12px var(--primary);
}

/* 友情链接 */
.flink-grid { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0; }
.flink-grid a {
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all .16s var(--ease);
}
.flink-grid a:hover { color: var(--primary); border-color: var(--primary-border); background: var(--primary-bg); }

/* ---------------------------------------------------------
   7. 页脚
   --------------------------------------------------------- */
footer.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 28px 0;
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.9;
  border-top: 1px solid var(--border);
}
footer.site-footer p { max-width: 900px; margin: 0 auto; }
footer.site-footer a { color: var(--footer-link); text-decoration: none; margin: 0 8px; }
footer.site-footer a:hover { color: var(--header-text); text-decoration: none; }
footer.site-footer .copyright { margin-top: 10px; font-size: 12px; opacity: .8; }
footer.site-footer .footer-nav { margin: 8px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }

/* ---------------------------------------------------------
   8. 面包屑 / 页头 / 内页布局
   --------------------------------------------------------- */
.breadcrumb {
  margin: 14px 0 8px;
  font-size: 12.5px;
  line-height: 1.6;
  display: block;
  height: auto;
  position: static;
  background: transparent;
  border: none;
  box-shadow: none;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; padding: 0; margin: 0; }
.breadcrumb li { display: inline-flex; align-items: center; color: var(--text-light); }
.breadcrumb li + li::before { content: '/'; margin: 0 7px; color: var(--border); }
.breadcrumb li span { color: var(--text-muted); }
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0;
  font-weight: 500;
  font-size: 12.5px;
  display: inline;
  height: auto;
  background: transparent;
}
.breadcrumb a:hover { color: var(--link-hover); text-decoration: none; background: transparent; }

.page-head {
  background: transparent;
  border: none;
  box-shadow: none;
  position: static;
  z-index: auto;
  color: var(--text);
  padding: 0;
  margin-bottom: 12px;
}
.page-head h1 {
  position: relative;
  font-size: 23px;
  font-weight: 800;
  color: var(--text-dark);
  border-left: 0;
  padding-left: 0;
  margin: 0 0 12px;
  letter-spacing: -.2px;
  line-height: 1.3;
}
.page-head h1::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: var(--primary);
  margin-top: 9px;
}
.page-head h1 a { color: var(--text-dark); text-decoration: none; }
.page-head h1 a:hover { color: var(--link-hover); text-decoration: none; background: transparent; }
.page-head p { font-size: 13px; color: var(--text-muted); margin: 0; }

.inner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--gap);
  margin-top: var(--gap);
}
.inner-main, .inner-side { min-width: 0; }
.inner-side { display: flex; flex-direction: column; gap: 0; }

/* 侧栏内的赛程：紧凑两行网格 */
.inner-side .main-section { padding: 14px; }
.inner-side .schedule-list { border: none; margin-bottom: 0; gap: 2px; }
.inner-side .match-row {
  display: grid;
  grid-template-areas: "meta action" "teams teams";
  grid-template-columns: minmax(0, 1fr) max-content;
  row-gap: 8px;
  padding: 11px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--border-light);
  transform: none;
}
.inner-side .match-row:last-child { border-bottom: none; }
.inner-side .match-row:nth-child(even) { background: transparent; }
.inner-side .match-row:hover { background: transparent; border-color: transparent; border-bottom-color: var(--border-light); }
.inner-side .m-cell.meta {
  grid-area: meta;
  width: auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-size: 12px;
}
.inner-side .meta-top { max-width: 100%; }
.inner-side .m-cell.action { grid-area: action; width: auto; align-self: start; }
.inner-side .m-cell.teams {
  grid-area: teams;
  width: 100%;
  justify-content: space-between;
  gap: 6px;
  border-top: 1px dashed var(--border-light);
  padding-top: 8px;
  font-size: 13px;
}
.inner-side .t-wrap { width: 42%; min-width: 0; gap: 4px; }
.inner-side .t-wrap.home { justify-content: flex-end; text-align: right; }
.inner-side .t-wrap.away { justify-content: flex-start; text-align: left; }
.inner-side .t-wrap img { width: 20px; height: 20px; flex-shrink: 0; padding: 1px; }
.inner-side .t-name { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inner-side .t-score { width: auto; min-width: 40px; font-size: 11px; flex-shrink: 0; padding: 2px 6px; }
.inner-side .status-btn { padding: 3px 9px; font-size: 11px; gap: 4px; }
.inner-side .status-btn.live::before { width: 5px; height: 5px; }
.inner-side .m-league { font-size: 12px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------
   9. 文章 / 内容页（浅色纸面，深色主题下也易读）
   --------------------------------------------------------- */
.article-box {
  background: var(--paper-bg);
  color: var(--paper-text);
  border: 1px solid var(--border);
  padding: 26px 30px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.article-box h1 {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--paper-text);
  letter-spacing: -.2px;
}
.article-meta {
  color: var(--paper-muted);
  font-size: 12.5px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}
.article-body {
  line-height: 1.95;
  font-size: 15px;
  color: var(--paper-text);
  word-break: break-word;
}
.article-body p { margin-bottom: 14px; }
.article-body img { margin: 14px auto; max-width: 100%; border-radius: 10px; }
.article-body a { color: var(--paper-link); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--primary); }
.article-body h2, .article-body h3 { margin: 18px 0 10px; color: var(--paper-text); }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 14px; }
.article-body li { list-style: disc; margin-bottom: 6px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 8px 10px; }
.article-body .jianjie { color: var(--paper-link); font-weight: 600; }

nav.article-nav {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  color: var(--paper-muted);
  font-size: 13px;
  background: transparent;
  border-radius: 0;
  border-bottom: none;
  box-shadow: none;
  text-align: left;
  display: block;
  height: auto;
  position: static;
}
nav.article-nav a { color: var(--paper-link); text-decoration: none; padding: 0; font-weight: 500; background: transparent; display: inline; height: auto; }
nav.article-nav a:hover { color: var(--primary); text-decoration: none; background: transparent; }
nav.article-nav p { margin: 0; }
nav.article-nav p + p { margin-top: 6px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------
   10. 分页 / 空状态
   --------------------------------------------------------- */
.fenye ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 16px 0; }
.fenye a, .fenye span {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--link);
  display: block;
  font-size: 13px;
  padding: 5px 13px;
  text-decoration: none;
  transition: all .16s var(--ease);
}
.fenye a:hover { border-color: var(--primary-border); color: var(--primary); }
.fenye a:hover, .fenye .active a { background: var(--primary); border-color: var(--primary); color: #fff; }
.empty-tip { color: var(--text-lighter); padding: 34px; text-align: center; font-size: 13.5px; }

/* ---------------------------------------------------------
   11. 直播详情
   --------------------------------------------------------- */
.live-detail { margin-top: 12px; }
.live-scoreboard {
  background: var(--card-bg);
  background-image: radial-gradient(120% 130% at 50% -30%, var(--primary-bg), transparent 62%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 20px;
  margin-bottom: var(--gap);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.live-team { text-align: center; flex: 1; min-width: 100px; }
.live-team img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px;
}
.live-team a { font-weight: 700; font-size: 15px; color: var(--text-dark); text-decoration: none; }
.live-team a:hover { color: var(--link-hover); }
.live-center { text-align: center; }
.live-status-tag {
  background: var(--live);
  color: #fff;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
  letter-spacing: .5px;
}
.live-vs {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 6px 0;
  color: var(--live-vs);
  font-family: var(--font-num);
}
.live-center time { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }

.live-player-box {
  background: var(--player-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--gap);
  color: var(--text-light);
  padding: 10px;
  min-height: 220px;
  overflow: hidden;
}
.live-player-box img { border-radius: 8px; }
/* 播放器顶部那张深色小 logo，在深色底上垫一层浅色底片 */
.live-player-box img[src*="sigpic"] {
  width: auto;
  height: 30px;
  padding: 4px 10px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.live-desc-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.live-desc-box h1 { font-size: 18px; font-weight: 700; display: inline; color: var(--text-dark); }
.live-desc-title { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.live-facts { list-style: none; margin: 12px 0; padding: 0; }
.live-facts li {
  font-size: 13px;
  padding: 7px 0;
  margin-bottom: 0;
  border-bottom: 1px dashed var(--border-light);
  display: flex;
  gap: 6px;
}
.live-facts li:last-child { border-bottom: 0; }
.live-facts b { color: var(--text-muted); margin-right: 6px; font-weight: 600; flex-shrink: 0; }
.live-desc-box p { color: var(--text-muted); font-size: 13px; line-height: 1.85; margin-bottom: 8px; }
.live-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.live-tags a {
  color: var(--link-hover);
  margin-right: 0;
  text-decoration: none;
  background: var(--primary-bg);
  border: 1px solid var(--primary-border);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
}
.live-tags a:hover { background: var(--primary); color: #fff; }

/* 第三方播放源组件（深色兜底） */
.stream-sources__bar { border: 0 !important; background: transparent !important; }
.stream-sources__row { grid-template-columns: 1fr 1fr 1fr 1fr !important; }
.src-pill {
  border-radius: var(--radius-pill) !important;
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  transition: all .18s var(--ease);
}
.src-pill:hover { border-color: var(--primary-border) !important; color: var(--primary) !important; }
.src-pill.is-recommended {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  animation: slideSideToSide 2.5s ease-in-out infinite;
}
@keyframes slideSideToSide {
  0%, 100% { transform: scale(.96); }
  50% { transform: scale(1.04); }
}

/* ---------------------------------------------------------
   12. 响应式
   --------------------------------------------------------- */
@media (max-width: 1080px) {
  .stream-sources__row { grid-template-columns: 1fr 1fr !important; }
  .inner-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 900px) {
  .inner-layout { grid-template-columns: 1fr; }
  .inner-side { display: block; }
  .inner-side .main-section { margin-top: var(--gap); }
}

@media (max-width: 768px) {
  :root { --gap: 12px; --header-h: 50px; --radius-lg: 14px; }

  .header-box {
    display: flex;
    flex-direction: row;
    height: var(--header-h);
    justify-content: space-between;
    align-items: center;
    position: relative;
  }
  .logo .site-name, .logo h1.site-name { font-size: 18px; max-width: 52vw; }
  .menu-toggle { display: flex; }

  #mainNav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) + 6px);
    right: 10px;
    background: var(--card-bg);
    width: 210px;
    max-height: calc(100vh - var(--header-h) - 24px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-pop);
    border: 1px solid var(--header-drop-border);
    overflow: hidden;
    height: auto;
    z-index: 1001;
  }
  #mainNav.open { display: flex; }
  #mainNav a {
    width: 100%;
    height: auto;
    padding: 11px 12px;
    font-size: 14px;
    justify-content: flex-start;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    color: var(--text);
  }
  #mainNav a.active, #mainNav a:hover { color: var(--primary); background: var(--primary-bg); }
  #mainNav a.active::after { content: none; }

  .league-nav-section { padding: 0 0 9px; gap: 6px; }
  .league-item { padding: 4px 10px 4px 6px; font-size: 12px; }
  .league-item img { width: 18px; height: 18px; }

  .container { padding: 0 12px; }
  .main-section { padding: 13px; }

  .match-row {
    display: grid;
    grid-template-areas: "meta action" "teams teams";
    grid-template-columns: minmax(0, 1fr) max-content;
    row-gap: 9px;
    padding: 11px 11px;
    background: var(--surface);
  }
  .match-row:nth-child(even) { background: var(--surface); }
  .m-cell.meta {
    grid-area: meta;
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    font-size: 12px;
  }
  .meta-top { display: flex; align-items: center; gap: 5px; max-width: none; }
  .m-league {
    background: var(--surface-2);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none !important;
  }
  .m-league:hover, .m-league:active { background: var(--primary); color: #fff; }
  .m-time { color: var(--text-lighter); display: flex; }
  .m-cell.action { grid-area: action; display: flex; justify-content: flex-end; align-items: center; min-width: max-content; }
  .status-btn { padding: 4px 12px; font-size: 12px; white-space: nowrap !important; display: inline-flex; width: auto; }
  .m-cell.teams {
    grid-area: teams;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px dashed var(--border-light);
    padding-top: 10px;
    margin-top: 2px;
  }
  .t-wrap { width: 42%; min-width: 0; gap: 6px; }
  .t-wrap.home { justify-content: flex-end; text-align: right; }
  .t-wrap.away { justify-content: flex-start; text-align: left; }
  .t-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .t-wrap img { width: 20px; height: 20px; flex-shrink: 0; padding: 1px; }
  .t-score { min-width: 54px; font-size: 13px; padding: 2px 8px; flex-shrink: 0; }

  .portal-layout { grid-template-columns: 1fr; }
  .wiki-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
  .wiki-item { padding: 7px 5px; font-size: 12px; }
  .news-item { padding: 8px; gap: 10px; }
  .news-pic { width: 108px; height: 74px; }
  .news-title { font-size: 14px; }
  .news-description { display: none; }
  .section-header h2, .section-header h3 { font-size: 15px; }
  .page-head h1 { font-size: 20px; }
  .article-box { padding: 18px 16px 22px; border-radius: var(--radius-md); }
  .article-box h1 { font-size: 20px; }
  .article-body { font-size: 14.5px; line-height: 1.9; }
  .live-scoreboard { padding: 18px 12px; gap: 8px; }
  .live-team img { width: 58px; height: 58px; padding: 4px; }
  .live-team a { font-size: 13.5px; }
  .live-vs { font-size: 18px; }
  .live-desc-box { padding: 16px; }
  .stream-sources__row { grid-template-columns: 1fr !important; }
}

/* ---------------------------------------------------------
   13. 可访问性
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  header.site-header, footer.site-footer, .inner-side, .breadcrumb, .fenye { display: none !important; }
  .article-box { box-shadow: none; border: 0; padding: 0; }
}
