/* 统一样式 - 颜色由 static11/theme/N.css 的 :root 变量控制 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; }
body { 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.5; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
img { display: block; object-fit: cover; }
ul, li { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; width: 100%; }

body > header, header.site-header { background: var(--header-bg); color: var(--header-text); border-bottom: 3px solid var(--header-border); box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: relative; z-index: 1000; }
.header-box { display: flex; justify-content: space-between; align-items: center; height: 50px; }
.logo .site-name, .logo h1.site-name { font-size: 22px; font-weight: bold; letter-spacing: 1px; flex-shrink: 0; margin: 0; color: var(--logo-color); text-decoration: none; display: inline-block; }
.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%; }
#mainNav a { color: var(--header-nav); font-weight: bold; font-size: 15px; padding: 0 16px; display: flex; align-items: center; height: 100%; text-decoration: none; }
#mainNav a.active, #mainNav a:hover { color: var(--header-text); background: var(--header-nav-active); text-decoration: none; }
.menu-toggle { display: none; font-size: 24px; color: var(--header-text); cursor: pointer; user-select: none; width: 40px; height: 40px; align-items: center; justify-content: center; }

.league-nav-section { background: var(--card-bg); border: 1px solid var(--border); border-top: none; padding: 10px 15px; display: flex; flex-wrap: wrap; gap: 8px; }
.league-item { display: flex; align-items: center; gap: 6px; padding: 4px 12px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: bold; color: var(--text-muted); border-radius: 2px; transition: all 0.2s; text-decoration: none; }
.league-item img { width: 26px; max-height: 26px; }
.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; }

.main-section { background: var(--card-bg); border: 1px solid var(--border); margin-top: 12px; padding: 15px; border-radius: 2px; }
.section-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--section-border); padding-bottom: 8px; margin-bottom: 12px; }
.section-header h2, .section-header h3 { font-size: 16px; font-weight: bold; color: var(--text-dark); position: relative; }
.section-header h2::after, .section-header h3::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 100%; height: 2px; background: var(--primary); }
.section-header .more { font-size: 12px; color: var(--text-muted); }

.schedule-block { margin-bottom: 15px; }
.schedule-block:last-child { margin-bottom: 0; }
.schedule-sub-title { font-size: 14px; font-weight: bold; color: var(--text); background: var(--surface); padding: 6px 12px; border: 1px solid var(--border); border-left: 4px solid var(--primary); margin-bottom: 5px; }
.schedule-list { width: 100%; border: 1px solid var(--border-light); margin-bottom: 10px; }
.match-row { display: flex; align-items: center; padding: 10px 15px; border-bottom: 1px solid var(--border-light); background: var(--card-bg); cursor: pointer; }
.match-row:last-child { border-bottom: none; }
.match-row:nth-child(even) { background: var(--surface-hover); }
.match-row:hover { background: var(--row-hover); }
.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; }
.m-cell.meta { width: 24%; justify-content: flex-start; gap: 10px; color: var(--text-muted); font-size: 14px; }
.meta-top { display: flex; align-items: center; gap: 6px; }
.sport-badge { font-size: 14px; flex-shrink: 0; }
.m-league { font-weight: bold; color: var(--text); text-decoration: none; display: inline-block; }
.m-league:hover { color: var(--link-hover); text-decoration: underline; }
.m-time { color: var(--text-light); display: flex;align-items: center;}
.m-cell.teams { width: 62%; justify-content: center; gap: 20px; font-size: 15px; }
.t-wrap { display: flex; align-items: center; gap: 8px; width: 42%; }
.t-wrap.home { justify-content: flex-end; text-align: right; }
.t-wrap.away { justify-content: flex-start; }
.t-wrap img { width: 25px; max-height: 25px; }
.t-name { font-weight: bold; color: var(--text-dark); }
.t-score { width: 70px; text-align: center; font-family: Arial, sans-serif; font-weight: bold; font-size: 16px; color: var(--primary); background: var(--primary-bg); padding: 2px 0; border-radius: 2px; border: 1px solid var(--primary-border); }
.t-score.unstart { color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; font-weight: normal; }
.m-cell.action { width: 13%; justify-content: flex-end; flex-shrink: 0; }
.status-btn { display: inline-block; font-size: 12px; padding: 4px 12px; border-radius: 2px; text-align: center; font-weight: 500; white-space: nowrap; text-decoration: none; }
.status-btn.live { background: var(--primary); color: #fff; }
.status-btn.preview { background: var(--card-bg); color: var(--btn-preview-text); border: 1px solid var(--btn-preview-border); }
.status-btn.over { background: var(--card-bg); color: var(--btn-over-text); border: 1px solid var(--btn-over-border); }
.status-btn:hover { text-decoration: none; }

.portal-layout { display: grid; grid-template-columns: 7.5fr 4.5fr; gap: 12px; margin-top: 4px; }
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item { display: flex; gap: 15px; border-bottom: 1px dashed var(--border); padding-bottom: 12px; }
.news-item:last-child { border-bottom: none; padding-bottom: 0; }
.news-pic { width: 140px; height: 90px; flex-shrink: 0; border: 1px solid var(--border); padding: 2px; background: var(--card-bg); }
.news-pic img { width: 100%; height: 100%; }
.news-txt { display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.news-title { font-size: 16px; font-weight: bold; line-height: 1.4; margin-bottom: 4px; }
.news-title a { color: var(--text-dark); }
.news-title a:hover { color: var(--link-hover); }
.news-description { font-size: 13px; 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: 12px; color: var(--text-lighter); margin-top: 4px; }
/* 侧栏新闻（集锦/录像内容页等）：标题描述各限两行 */
.inner-side .news-item { gap: 10px; }
.inner-side .news-pic { width: 90px; height: 60px; flex-shrink: 0; }
.inner-side .news-txt { min-width: 0; }
.inner-side .news-title { font-size: 14px; line-height: 1.45; margin-bottom: 4px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-all; }
.inner-side .news-title a { color: var(--text-dark); font-weight: bold; }
.inner-side .news-description { font-size: 12px; line-height: 1.45; -webkit-line-clamp: 2; display: none;}
.news-info .tag { color: var(--primary); margin-right: 10px; font-weight: bold; }

.text-list-box { display: flex; flex-direction: column; gap: 10px; }
.text-links-list li { border-bottom: 1px solid var(--border-light); padding: 6px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-size: 13px; }
.text-links-list li:last-child { border-bottom: none; }
.text-links-list a:hover { color: var(--link-hover); }
.link-main { display: flex; align-items: flex-start; gap: 6px; flex: 1; min-width: 0; overflow: hidden; }
.type-badge { font-size: 11px; padding: 1px 4px; border-radius: 2px; color: #fff; flex-shrink: 0; line-height: 1.4; margin-top: 1px; }
.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.45; word-break: break-all; }
.link-time { font-size: 11px; color: var(--text-lighter); font-family: monospace; flex-shrink: 0; white-space: nowrap; padding-top: 1px; }

.wiki-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; padding: 4px 0; }
.wiki-item { display: block; background: var(--surface); border: 1px solid var(--border); text-align: center; padding: 8px 6px; font-size: 13px; color: var(--text-muted); border-radius: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.wiki-item:hover { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }
.flink-grid { display: flex; flex-wrap: wrap; gap: 15px; padding: 5px 0; }
.flink-grid a { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.flink-grid a:hover { color: var(--link-hover); }

footer.site-footer { background: var(--footer-bg); color: var(--footer-text); text-align: center; padding: 20px 0; margin-top: 15px; font-size: 13px; line-height: 1.8; }
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: 8px; font-size: 12px; }
footer.site-footer .footer-nav { margin: 8px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }

.breadcrumb { margin: 12px 0 8px; font-size: 13px; 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 8px; color: var(--border); }
.breadcrumb li span { color: var(--link); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; padding: 0; font-weight: normal; font-size: 13px; 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 { font-size: 18px; font-weight: bold; color: var(--text-dark); border-left: 4px solid var(--primary); padding-left: 10px; margin: 0 0 6px; letter-spacing: 0; }
.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: 1fr 320px; gap: 12px; margin-top: 12px; }
.inner-main, .inner-side { min-width: 0; }

.inner-side .schedule-list { border: none; margin-bottom: 0; }
.inner-side .match-row { display: grid; grid-template-areas: "meta action" "teams teams"; grid-template-columns: 1fr max-content; row-gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.inner-side .match-row:last-child { border-bottom: none; }
.inner-side .match-row:nth-child(even) { background: transparent; }
.inner-side .m-cell.meta { grid-area: meta; width: auto; flex-direction: column; align-items: flex-start; gap: 3px; font-size: 12px; }
.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: 18px; height: 18px; flex-shrink: 0; }
.inner-side .t-name { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inner-side .t-score { width: 42px; font-size: 11px; flex-shrink: 0; }
.inner-side .status-btn { padding: 3px 8px; font-size: 11px; }
.inner-side .m-league { font-size: 12px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.article-box { background: var(--card-bg); border: 1px solid var(--border); padding: 20px; border-radius: 2px; }
.article-box h1 { font-size: 22px; font-weight: bold; line-height: 1.4; margin-bottom: 12px; color: var(--text-dark); }
.article-meta { color: var(--text-lighter); font-size: 13px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px dashed var(--border); }
.article-body { line-height: 1.9; font-size: 15px; color: var(--text); }
.article-body p { margin-bottom: 14px; }
.article-body img { margin: 12px auto; max-width: 100%; }
nav.article-nav { margin-top: 20px; padding-top: 12px; border-top: 1px dashed var(--border); color: var(--text-muted); font-size: 13px; background: transparent; border-bottom: none; box-shadow: none; text-align: left; display: block; height: auto; position: static; }
nav.article-nav a { color: var(--link); text-decoration: none; padding: 0; font-weight: normal; background: transparent; display: inline; height: auto; }
nav.article-nav a:hover { color: var(--link-hover); text-decoration: underline; 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; }
.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: 2px; color: var(--link); display: block; font-size: 13px; padding: 5px 12px; text-decoration: none; }
.fenye a:hover, .fenye .active a{ background: var(--primary); border-color: var(--primary); color: #fff; }
.empty-tip { color: var(--text-lighter); padding: 30px; text-align: center; font-size: 14px; }
.live-detail { margin-top: 12px; }
.live-scoreboard { background: var(--card-bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 20px; margin-bottom: 12px; }
.live-team { text-align: center; flex: 1; min-width: 100px; }
.live-team img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 8px; }
.live-team a { font-weight: bold; font-size: 15px; color: var(--text-dark); text-decoration: none; }
.live-center { text-align: center; }
.live-status-tag { background: var(--primary); color: #fff; display: inline-block; font-size: 12px; font-weight: bold; padding: 3px 10px; border-radius: 2px; margin-bottom: 6px; }
.live-vs { display: block; font-size: 20px; font-weight: bold; margin: 4px 0; color: var(--live-vs); }
.live-player-box { background: #fff; border: 1px solid var(--border); margin-bottom: 12px; /*min-height: 220px;*/color: var(--text-light); padding:10px;}
.live-desc-box { background: var(--card-bg); border: 1px solid var(--border); padding: 18px; }
.live-desc-box h1 { font-size: 18px; font-weight: bold; display: inline; color: var(--text-dark); }
.live-facts { list-style: none; margin: 12px 0; padding: 0; }
.live-facts li { font-size: 13px; margin-bottom: 6px; }
.live-facts b { color: var(--text-muted); margin-right: 6px; }
.live-desc-box p { color: var(--text-muted); font-size: 13px; line-height: 1.8; margin-bottom: 8px; }
.live-tags a { color: var(--link-hover); margin-right: 8px; text-decoration: none; }
.stream-sources__bar{border:0 !important;}
.stream-sources__row{grid-template-columns:1fr 1fr 1fr 1fr !important;}
.src-pill{border-radius: 3px !important;}
.src-pill.is-recommended {
  background: var(--primary) !important;border-color: var(--primary) !important;
  animation: slideSideToSide 2.5s ease-in-out infinite;
}
@keyframes slideSideToSide {
    0% {
        transform: scale(0.95);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 1;
    }
    /* 100% {
        transform: scale(1);
        opacity: 1;
    } */
}
@media (max-width: 1100px) {
  .stream-sources__row{grid-template-columns:1fr 1fr !important;}
}
@media (max-width: 768px) {
  .stream-sources__row{grid-template-columns:1fr !important;}
  .header-box { display: flex; flex-direction: row; height: 50px; justify-content: space-between; align-items: center; position: relative; }
  .menu-toggle { display: flex; }
  #mainNav { display: none; position: absolute; top: 50px; right: 15px; background: var(--header-bg); width: 160px; flex-direction: column; border-radius: 4px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); border: 1px solid var(--header-drop-border); overflow: hidden; height: auto; }
  #mainNav.open { display: flex; }
  #mainNav a { width: 100%; height: auto; padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--header-drop-border); justify-content: flex-start; flex-shrink: 0; }
  #mainNav a:last-child { border-bottom: none; }
  #mainNav a.active { background: var(--header-nav-active); }
  .league-nav-section { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 8px 0; gap: 6px; }
  .league-nav-section::-webkit-scrollbar { display: none; }
  .league-item { flex-shrink: 0; padding: 4px 10px; font-size: 12px; }
  .match-row { display: grid; grid-template-areas: "meta action" "teams teams"; grid-template-columns: 1fr max-content; row-gap: 10px; padding: 12px 12px; }
  .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: 4px; }
  .m-league { background: var(--surface-2); padding: 2px 7px; border-radius: 2px; font-weight: bold; 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-block; 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: 14px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .t-wrap img { width: 18px; height: 18px; flex-shrink: 0; }
  .t-score { width: 55px; font-size: 14px; padding: 2px 0; flex-shrink: 0; }
  .portal-layout, .inner-layout { grid-template-columns: 1fr; }
  .wiki-grid { grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); gap: 6px; }
  .wiki-item { padding: 6px 4px; font-size: 12px; }
  .news-pic { width: 110px; height: 75px; }
  .news-title { font-size: 14px; }
  .news-description { display: none; }
}
