/* ==========================================================
   体育直播系统 - 前台样式（白色清爽风）
   ========================================================== */
:root {
    --bg: #f4f7fb;
    --bg-soft: #ffffff;
    --card: #ffffff;
    --card-2: #f1f5f9;
    --card-hover: #f8fafc;
    --border: #e2e8f0;
    --border-soft: #ecf1f7;
    --border-2: #cbd5e1;
    --text: #101828;
    --text-2: #475467;
    --text-3: #667085;
    --hover: rgba(15, 23, 42, .045);
    --tag-bg: #f2f5f9;
    --primary: #0a8f68;
    --primary-2: #087a58;
    --primary-soft: rgba(10, 143, 104, .09);
    --primary-line: rgba(10, 143, 104, .30);
    --red: #e5484d;
    --red-soft: rgba(229, 72, 77, .09);
    --red-line: rgba(229, 72, 77, .24);
    --amber: #b45309;
    --amber-soft: rgba(180, 83, 9, .09);
    --amber-line: rgba(180, 83, 9, .22);
    --blue: #2563eb;
    --blue-soft: rgba(37, 99, 235, .09);
    --on-dark: #e9f0f7;
    --on-dark-2: #a2b3c4;
    --on-dark-3: #7d8fa1;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; vertical-align: middle; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }
::selection { background: var(--primary-line); color: var(--text); }
::-webkit-scrollbar { width: 9px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.page-main { padding-top: 22px; padding-bottom: 46px; min-height: 60vh; }
.tip-muted { color: var(--text-3); font-size: 12.5px; }

/* ---------------- 顶部条 ---------------- */
.top-strip { background: var(--bg-soft); border-bottom: 1px solid var(--border-soft); font-size: 12px; color: var(--text-3); }
.strip-inner { display: flex; align-items: center; justify-content: space-between; height: 32px; gap: 12px; }
.strip-inner span:first-child { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-right { white-space: nowrap; }

/* ---------------- 头部 ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 90;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--border-soft);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 21px; background: linear-gradient(135deg, var(--primary-soft), #ffffff); border: 1px solid var(--primary-line);
}
.brand-mark.small { width: 32px; height: 32px; font-size: 16px; border-radius: 10px; }
.brand-logo { width: 40px; height: 40px; border-radius: 12px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 16.5px; letter-spacing: .3px; }
.brand-text small { font-size: 10.5px; color: var(--text-3); letter-spacing: .5px; }

.main-nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.main-nav::-webkit-scrollbar { display: none; }
.nav-pill {
    white-space: nowrap; padding: 7px 13px; border-radius: 999px; font-size: 13.5px; color: var(--text-2);
    transition: all .18s ease; border: 1px solid transparent;
}
.nav-pill:hover { color: var(--text); background: var(--hover); }
.nav-pill.active { color: var(--primary); background: var(--primary-soft); border-color: var(--primary-soft); font-weight: 600; }

.search-form {
    display: flex; align-items: center; background: var(--card); border: 1px solid var(--border);
    border-radius: 999px; padding: 3px 5px 3px 14px; transition: border .2s;
}
.search-form:focus-within { border-color: var(--primary-line); box-shadow: 0 0 0 3px var(--primary-soft); }
.search-form input {
    width: 148px; background: transparent; border: 0; outline: none; color: var(--text); font-size: 13px;
}
.search-form input::placeholder { color: var(--text-3); }
.search-form button {
    width: 30px; height: 30px; border: 0; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 13px;
}
.nav-toggle {
    display: none; width: 36px; height: 36px; border-radius: 999px; align-items: center; justify-content: center;
    background: var(--card); border: 1px solid var(--border); color: var(--text-2); font-size: 16px;
}
.nav-toggle:hover { color: var(--primary); border-color: var(--primary-line); }
@media (max-width: 900px) { .nav-toggle { display: inline-flex; } }

/* ---------------- 区块 ---------------- */
.section { margin-top: 30px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title { font-size: 18px; font-weight: 700; letter-spacing: .3px; display: flex; align-items: center; gap: 8px; }
.section-sub { color: var(--text-3); font-size: 12.5px; }
.section-more { color: var(--text-3); font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid transparent; transition: all .18s; }
.section-more:hover { color: var(--primary); background: var(--primary-soft); }
.live-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block;
    box-shadow: 0 0 0 0 rgba(229, 72, 77, .42); animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .38); }
    70% { box-shadow: 0 0 0 7px rgba(229, 72, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); }
}

/* ---------------- 热门推荐 ---------------- */
.hero-section { margin-top: 20px; }
.hero-tools { display: flex; align-items: center; gap: 10px; }
.hero-nav { display: none; align-items: center; gap: 6px; }
.hero-nav.is-on { display: inline-flex; }
.hero-arrow {
    width: 30px; height: 30px; padding: 0; border-radius: 50%; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--card); border: 1px solid var(--border); color: var(--text-2);
    transition: all .18s;
}
.hero-arrow:hover:not(:disabled) { color: var(--primary); border-color: var(--primary-line); background: var(--primary-soft); }
.hero-arrow:active:not(:disabled) { transform: scale(.94); }
.hero-arrow:disabled { opacity: .35; cursor: default; }
.hero-arrow:focus-visible { outline: 2px solid var(--primary-line); outline-offset: 2px; }
.hero-scroll {
    display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 10px;
    scroll-snap-type: x mandatory; scrollbar-width: none;
}
.hero-scroll::-webkit-scrollbar { display: none; }
.hero-card {
    position: relative; flex: 0 0 330px; min-height: 176px; border-radius: var(--radius);
    border: 1px solid var(--border); background: linear-gradient(155deg, #ffffff 0%, #f6f9fd 70%);
    padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
    overflow: hidden; scroll-snap-align: start; transition: all .22s ease;
}
.hero-card:hover { border-color: var(--primary-line); transform: translateY(-2px); box-shadow: var(--shadow); }
.hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(420px 180px at 88% -20%, var(--primary-soft), transparent 65%),
        radial-gradient(280px 160px at -10% 110%, var(--primary-soft), transparent 60%);
}
.hero-top { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.hero-teams { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; z-index: 1; }
.hero-team { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 1; min-width: 0; }
.hero-team b { font-size: 13.5px; font-weight: 600; text-align: center; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-vs { flex: 0 0 auto; color: var(--text-3); font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.hero-score { font-size: 22px; color: var(--primary); font-weight: 800; letter-spacing: 1px; }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.hero-time { font-size: 12px; color: var(--text-2); }
.hero-play { font-size: 12.5px; color: var(--primary); font-weight: 600; }

/* ---------------- 状态胶囊 ---------------- */
.status-pill {
    display: inline-flex; align-items: center; gap: 5px; padding: 2.5px 9px; border-radius: 999px;
    font-size: 11.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent;
}
.status-pill.live { color: var(--red); background: var(--red-soft); border-color: var(--red-line); }
.status-pill.live::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite;
}
.status-pill.soon { color: var(--amber); background: var(--amber-soft); border-color: var(--amber-line); }
.status-pill.end { color: var(--text-3); background: var(--tag-bg); border-color: var(--border); }
.status-pill.mini { font-size: 10.5px; padding: 1.5px 7px; }
.league-tag {
    display: inline-flex; align-items: center; padding: 2.5px 9px; border-radius: 999px; font-size: 11.5px;
    color: var(--text-2); background: var(--tag-bg); border: 1px solid var(--border); white-space: nowrap;
}
.league-tag.link:hover { color: var(--primary); border-color: var(--primary-line); }

/* ---------------- 分类胶囊 ---------------- */
.cat-strip { margin-top: 18px; }
.cat-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat-pills.scroll-x { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cat-pills.scroll-x::-webkit-scrollbar { display: none; }
.cat-pill {
    white-space: nowrap; padding: 6.5px 15px; border-radius: 999px; font-size: 13px; color: var(--text-2);
    background: var(--card); border: 1px solid var(--border); transition: all .18s;
}
.cat-pill:hover { color: var(--text); border-color: var(--border-2); }
.cat-pill.active { color: var(--primary); background: var(--primary-soft); border-color: var(--primary-line); font-weight: 600; }

/* ---------------- 赛事列表 ---------------- */
.match-list { display: flex; flex-direction: column; gap: 9px; }
.schedule-note { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border: 1px solid var(--primary-line); border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--text-2); font-size: 12.5px; line-height: 1.6; margin-bottom: 10px; }
.match-group { display: flex; flex-direction: column; gap: 8px; }
.match-group + .match-group { margin-top: 14px; }
.match-group-head { display: flex; align-items: center; gap: 8px; padding: 4px 2px 2px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.match-group-head::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex: 0 0 auto; }
.match-group-count { margin-left: auto; font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.match-group-list { display: flex; flex-direction: column; gap: 9px; }
.match-row {
    display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 14px;
    background: var(--card); border: 1px solid var(--border-soft); border-radius: 14px;
    padding: 12px 16px; transition: all .18s ease;
}
.match-row:hover { background: var(--card-hover); border-color: var(--border-2); transform: translateX(2px); }
.match-time { display: flex; flex-direction: column; gap: 2px; }
.mt-label { font-size: 13px; font-weight: 600; color: var(--text); }
.mt-league { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 96px; }
.match-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.match-teams.channels { display: flex; }
.match-teams.channels .team { gap: 9px; }
.match-teams.channels .team-name { text-align: left; }
.team { display: flex; align-items: center; gap: 9px; min-width: 0; }
.team.home { justify-content: flex-end; }
.team.home .team-name { text-align: right; }
.team.away { justify-content: flex-start; }
.team-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-logo-wrap { flex-shrink: 0; display: inline-flex; }
.team-logo {
    width: 30px; height: 30px; border-radius: 50%; object-fit: contain; background: var(--card); border: 1px solid var(--border-soft); padding: 2px;
}
.team-logo.ph {
    width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--card-2); border: 1px solid var(--border); color: var(--text-3); font-size: 13px; font-weight: 700;
}
.score-box {
    display: inline-flex; align-items: center; gap: 6px; min-width: 64px; justify-content: center;
    background: var(--card-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px 10px;
}
.score-box b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.score-box i { font-style: normal; color: var(--text-3); font-size: 12px; }
.score-box em { font-style: normal; color: var(--text-3); font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.match-right { display: flex; align-items: center; gap: 12px; }
.play-hint {
    width: 30px; height: 30px; border-radius: 999px; background: var(--primary-soft); color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center; font-size: 11px; border: 1px solid var(--primary-line);
}
.play-hint.wide {
    width: auto; padding: 0 10px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
}

/* ---------------- 频道 ---------------- */
.channel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.channel-card {
    display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 14px;
    background: var(--card); border: 1px solid var(--border-soft); transition: all .18s;
}
.channel-card:hover { background: var(--card-hover); border-color: var(--border-2); }
.ch-logo {
    width: 38px; height: 38px; border-radius: 12px; background: var(--card); border: 1px solid var(--border-soft); display: inline-flex; align-items: center; justify-content: center;
    font-size: 19px; flex-shrink: 0; overflow: hidden;
}
.ch-logo img { width: 100%; height: 100%; object-fit: contain; }
.ch-info { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.ch-info b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-info small { font-size: 11px; color: var(--text-3); }
.channel-grid .status-pill { flex-shrink: 0; margin-left: auto; }

/* ---------------- 新闻 ---------------- */
.news-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; align-items: start; }
.news-feature { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 14px; }
.news-feature-list { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; border-top: 1px dashed var(--border); padding-top: 8px; }
.news-side { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 8px; }
.news-card { display: flex; flex-direction: column; gap: 10px; }
.nc-cover { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--card-2); }
.nc-cover img, .nc-cover .cover-ph { width: 100%; height: 100%; object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--text-3); background: linear-gradient(135deg, #eef3f9, #e3eaf4); }
.nc-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px; }
.nc-title { font-size: 15px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nc-meta { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.news-item { display: flex; gap: 11px; padding: 10px; border-radius: 12px; transition: background .16s; }
.news-item:hover { background: var(--hover); }
.ni-thumb {
    flex: 0 0 96px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--card-2);
    display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--text-3);
}
.ni-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ni-thumb .cover-ph { font-size: 22px; }
.ni-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ni-title { font-size: 14px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ni-summary { font-size: 12px; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ni-meta { font-size: 11px; color: var(--text-3); margin-top: auto; }
.cover-ph { display: flex; align-items: center; justify-content: center; }

/* ---------------- 分页 ---------------- */
.pager-wrap { margin-top: 24px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; }
.page-btn {
    min-width: 36px; height: 36px; padding: 0 11px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--card); border: 1px solid var(--border); color: var(--text-2); font-size: 13px; transition: all .16s;
}
.page-btn:hover { color: var(--text); border-color: var(--border-2); }
.page-btn.active { color: var(--primary); background: var(--primary-soft); border-color: var(--primary-line); font-weight: 700; }
.page-gap { color: var(--text-3); padding: 0 2px; }

/* ---------------- 页脚 ---------------- */
.site-footer { margin-top: 46px; border-top: 1px solid var(--border-soft); background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding: 34px 20px 24px; }
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 15px; }
.footer-about p { color: var(--text-3); font-size: 12.5px; line-height: 1.8; max-width: 420px; }
.footer-col h4 { font-size: 13.5px; margin-bottom: 12px; color: var(--text-2); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-links a { color: var(--text-3); font-size: 12.5px; transition: color .16s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    border-top: 1px solid var(--border-soft); padding: 15px 20px 22px; color: var(--text-3); font-size: 12px;
}
.footer-bottom a { color: var(--text-3); }
.footer-bottom a:hover { color: var(--text-2); }

/* ---------------- 移动端底部导航 ---------------- */
.mobile-tabbar {
    display: none; position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%);
    z-index: 95; gap: 3px; padding: 6px; border-radius: 999px;
    background: rgba(255, 255, 255, .95); border: 1px solid var(--border); backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .14); width: min(92vw, 400px); justify-content: space-between;
}
.tab-pill {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 6px;
    border-radius: 999px; font-size: 12px; color: var(--text-3); transition: all .18s; white-space: nowrap;
}
.tab-pill span { font-size: 14px; line-height: 1; }
.tab-pill.active { color: var(--primary); background: var(--primary-soft); font-weight: 600; }

/* ---------------- 通用小组件 ---------------- */
.breadcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); margin-bottom: 14px; }
.crumb:hover { color: var(--primary); }
.crumb.current { color: var(--text-2); }
.crumb-sep { color: var(--text-3); }
.page-hero { padding: 6px 0 16px; }
.page-title { font-size: 24px; font-weight: 800; letter-spacing: .3px; margin-bottom: 6px; }
.page-desc { color: var(--text-3); font-size: 13px; }
.empty-box {
    text-align: center; padding: 46px 16px; border: 1px dashed var(--border); border-radius: var(--radius);
    color: var(--text-3); display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.empty-icon { font-size: 36px; opacity: .8; }
.btn-ghost {
    display: inline-block; margin-top: 6px; padding: 8px 20px; border-radius: 999px; font-size: 13px;
    color: var(--primary); background: var(--primary-soft); border: 1px solid var(--primary-line);
}
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; padding: 9px 22px; border-radius: 999px;
    background: var(--primary); border: 1px solid var(--primary); color: #fff; font-size: 13px; font-weight: 700;
}
.btn-primary:hover { background: var(--primary-2); }

/* 提示 toast */
.toast {
    position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 16px); z-index: 300;
    background: var(--card); color: var(--text); border: 1px solid var(--border);
    padding: 10px 20px; border-radius: 999px; font-size: 13px; opacity: 0; pointer-events: none;
    transition: all .25s ease; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 筛选栏 ---------------- */
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; min-width: 0; }
/* 分类胶囊限制在筛选栏内横向滑动，避免长列表把页面撑宽 */
.filter-bar .cat-pills.scroll-x { flex: 1 1 auto; min-width: 0; }
.date-pills { display: flex; gap: 5px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 4px; flex-shrink: 0; }
.date-pill { padding: 5px 13px; border-radius: 999px; font-size: 12.5px; color: var(--text-3); transition: all .16s; white-space: nowrap; }
.date-pill:hover { color: var(--text); }
.date-pill.active { color: var(--primary); background: var(--primary-soft); font-weight: 600; }

/* ---------------- 新闻列表页 ---------------- */
.news-hero { padding-bottom: 8px; }
.featured-news {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0; overflow: hidden;
    background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); margin-bottom: 18px;
    transition: border .2s;
}
.featured-news:hover { border-color: var(--primary-line); }
.featured-news.no-cover { grid-template-columns: 1fr; }
.fn-cover { display: block; min-height: 210px; background: var(--card-2); position: relative; overflow: hidden; }
.fn-cover img, .fn-cover .cover-ph { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 44px; color: var(--text-3); background: linear-gradient(135deg, #eef3f9, #e3eaf4); }
.fn-body { display: flex; flex-direction: column; gap: 9px; padding: 22px 24px; justify-content: center; }
.fn-tag { align-self: flex-start; font-size: 11.5px; color: var(--red); background: var(--red-soft); border: 1px solid var(--red-line); padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.fn-title { font-size: 19px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fn-summary { font-size: 13px; color: var(--text-2); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fn-meta { font-size: 11.5px; color: var(--text-3); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.news-grid .news-card { background: var(--card); border: 1px solid var(--border-soft); border-radius: 14px; padding: 11px; transition: all .18s; }
.news-grid .news-card:hover { background: var(--card-hover); border-color: var(--border-2); transform: translateY(-2px); }
.news-grid .nc-body { flex-direction: column; align-items: flex-start; gap: 4px; }
.news-grid .nc-title { font-size: 14px; }
.search-result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0 16px; border-bottom: 1px dashed var(--border); }
.search-news { max-height: none; }

/* 搜索页 */
.search-hero-form {
    display: flex; align-items: center; gap: 8px; margin-top: 14px; max-width: 620px;
    background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 5px 5px 5px 18px;
}
.search-hero-form:focus-within { border-color: var(--primary-line); box-shadow: 0 0 0 3px var(--primary-soft); }
.search-hero-form input { flex: 1; background: transparent; border: 0; outline: none; color: var(--text); font-size: 14px; min-width: 0; }
.search-hero-form button { border: 0; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 700; padding: 9px 22px; font-size: 13.5px; }

/* ---------------- 播放页 ---------------- */
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: 20px; align-items: start; }
.watch-main { min-width: 0; }
.player-shell {
    background: #05080c; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}
.player-box { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player-box video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.player-cover {
    position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
    background: #000; transition: opacity .3s ease;
}
.player-cover.hide { opacity: 0; pointer-events: none; }
.player-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .48; }
.pc-bg { position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 0%, var(--primary-line), transparent 65%), linear-gradient(160deg, #12211c, #05080c); }
.big-play {
    position: relative; z-index: 2; display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
    background: transparent; border: 0; color: var(--on-dark); font-size: 13.5px;
}
.big-play span {
    width: 72px; height: 72px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary); color: #fff; font-size: 26px; padding-left: 5px;
    box-shadow: 0 0 0 10px var(--primary-soft); transition: transform .2s;
}
.big-play:hover span { transform: scale(1.06); }
.player-tip { position: relative; z-index: 2; font-size: 11.5px; color: var(--on-dark-2); }
.player-error {
    position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 20px; background: rgba(5, 8, 12, .94); color: var(--on-dark-2); font-size: 13px; line-height: 1.8;
}
.player-frame { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; border: 0; }
.player-placeholder {
    aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    text-align: center; padding: 26px; color: var(--on-dark); background: radial-gradient(600px 280px at 50% 0%, var(--primary-line), transparent 65%), linear-gradient(160deg, #101a22, #05080c);
}
.pp-icon { font-size: 40px; }
.player-placeholder b { font-size: 16px; }
.player-placeholder p { font-size: 12.5px; color: var(--on-dark-3); max-width: 420px; }
.player-bar {
    display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: #0b1016; border-top: 1px solid #141d27;
    flex-wrap: wrap;
}
.pb-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.pb-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--on-dark-3); }
.pb-status.live { color: #f87171; } .pb-status.live i { background: #f87171; animation: pulse 1.6s infinite; }
.pb-status.soon { color: #fbbf24; } .pb-status.soon i { background: #fbbf24; }
.pb-status.end { color: var(--on-dark-3); }
.pb-line { font-size: 11.5px; color: var(--on-dark-3); }
.pb-btn {
    margin-left: auto; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: var(--on-dark-2);
    border-radius: 999px; font-size: 11.5px; padding: 4px 12px; transition: all .16s;
}
.pb-btn:hover { color: var(--primary); border-color: var(--primary-line); }
.pb-btn + .pb-btn { margin-left: 0; }

/* 详情页数据源面板 */
.source-panel {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px 22px; box-shadow: var(--shadow);
}
.source-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.source-head h2 { font-size: 16px; font-weight: 800; }
.source-count {
    font-size: 11.5px; color: var(--primary); background: var(--primary-soft); border: 1px solid var(--primary-line);
    border-radius: 999px; padding: 2px 9px; font-weight: 600;
}
.source-copy {
    margin-left: auto; border: 1px solid var(--border); background: var(--card-2); color: var(--text-2);
    border-radius: 999px; padding: 5px 12px; font-size: 12px; cursor: pointer; transition: all .16s;
}
.source-copy:hover { border-color: var(--primary-line); color: var(--primary); background: var(--primary-soft); }
.source-tip { margin: 10px 0 14px; font-size: 12.5px; color: var(--text-3); line-height: 1.7; }
.source-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.source-btn {
    display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 14px;
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card-2);
    color: var(--text); text-decoration: none; transition: border-color .16s, background .16s, transform .16s, box-shadow .16s;
}
.source-btn:hover {
    border-color: var(--primary-line); background: var(--primary-soft);
    transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}
.source-idx {
    flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
}
.source-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-go { flex: 0 0 auto; font-size: 11.5px; color: var(--primary); font-weight: 600; }
.source-empty { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; padding: 34px 16px 30px; color: var(--text-3); }
.source-empty .se-icon { font-size: 38px; line-height: 1; }
.source-empty b { color: var(--text-2); font-size: 15px; }
.source-empty p { max-width: 480px; font-size: 12.5px; line-height: 1.8; }
.source-empty .source-list { width: min(100%, 320px); margin-top: 6px; }
.source-btn-empty { width: 100%; font: inherit; text-align: left; cursor: pointer; }
@media (max-width: 640px) {
    .source-panel { padding: 16px 14px; }
    .source-list { grid-template-columns: 1fr; }
    .source-copy { width: 100%; margin-left: 0; }
}
.watch-head { margin-top: 16px; }
.watch-title { font-size: 20px; font-weight: 800; line-height: 1.4; letter-spacing: .2px; }
.watch-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.watch-views { font-size: 11.5px; color: var(--text-3); margin-left: auto; }
.scoreboard {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 16px;
    background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px 22px;
}
.sb-team { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.sb-team .team-logo, .sb-team .team-logo.ph { width: 54px; height: 54px; font-size: 22px; }
.sb-team b { font-size: 15px; }
.sb-team small { font-size: 11px; color: var(--text-3); }
.sb-center { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.sb-score { font-size: 30px; font-weight: 800; letter-spacing: 2px; font-variant-numeric: tabular-nums; color: var(--primary); }
.sb-score.vs { font-size: 20px; color: var(--text-3); letter-spacing: 3px; }
.sb-time { font-size: 12px; color: var(--text-2); }
.sb-status { font-size: 11.5px; padding: 1.5px 10px; border-radius: 999px; }
.sb-status.live { color: var(--red); background: var(--red-soft); }
.sb-status.soon { color: var(--amber); background: var(--amber-soft); }
.sb-status.end { color: var(--text-3); background: var(--tag-bg); }
.watch-desc { margin-top: 16px; background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 18px 20px; }
.watch-desc h2 { font-size: 15px; margin-bottom: 10px; }
.watch-desc .rich-text { font-size: 13.5px; color: var(--text-2); }
.rel-block { margin-top: 22px; }
.rel-block .news-side { background: transparent; border: 0; padding: 0; }
.rel-block .news-item { background: var(--card); border: 1px solid var(--border-soft); margin-bottom: 2px; }
.watch-side { display: flex; flex-direction: column; gap: 14px; }
.side-card { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 14px; }
.side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.side-head h3 { font-size: 14px; font-weight: 700; }
.side-list { display: flex; flex-direction: column; gap: 2px; }
.side-match { display: flex; flex-direction: column; gap: 3px; padding: 9px 8px; border-radius: 10px; transition: background .16s; }
.side-match:hover { background: var(--hover); }
.sm-teams { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-teams i { font-style: normal; color: var(--text-3); font-weight: 400; padding: 0 4px; }
.sm-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-3); }
.side-channel { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 10px; transition: background .16s; }
.side-channel:hover { background: var(--hover); }
.sc-logo { width: 30px; height: 30px; border-radius: 9px; background: var(--card); border: 1px solid var(--border-soft); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; font-size: 15px; flex-shrink: 0; }
.sc-logo img { width: 100%; height: 100%; object-fit: contain; }
.sc-name { font-size: 12.5px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-go { color: var(--text-3); }
.side-empty { color: var(--text-3); font-size: 12.5px; padding: 12px 8px; }
.side-cta { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 20px 16px; background: linear-gradient(160deg, var(--primary-soft), var(--card) 60%); }
.side-cta b { font-size: 15px; }
.side-cta p { font-size: 12px; color: var(--text-3); }

/* ---------------- 文章页 ---------------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: 22px; align-items: start; }
.article-main { min-width: 0; background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 24px 26px; }
.article-title { font-size: 24px; font-weight: 800; line-height: 1.45; letter-spacing: .2px; }
.article-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); margin-top: 12px; padding-bottom: 16px; border-bottom: 1px dashed var(--border); }
.article-cat { color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 2px 10px; font-size: 11.5px; font-weight: 600; }
.article-summary { margin-top: 16px; background: var(--hover); border-left: 3px solid var(--primary); border-radius: 0 10px 10px 0; padding: 12px 16px; color: var(--text-2); font-size: 13.5px; line-height: 1.8; }
.article-match {
    display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 16px; border-radius: 12px;
    background: var(--primary-soft); border: 1px solid var(--primary-line); transition: background .16s;
}
.article-match:hover { background: var(--primary-line); }
.am-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; padding-left: 2px; flex-shrink: 0; }
.am-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.4; }
.am-text b { font-size: 13.5px; }
.am-text small { font-size: 11.5px; color: var(--text-3); }
.am-go { font-size: 12.5px; color: var(--primary); font-weight: 600; white-space: nowrap; }
.article-content { margin-top: 20px; }
.rich-text { font-size: 14.5px; line-height: 1.9; color: var(--text-2); word-break: break-word; }
.rich-text p { margin: 0 0 14px; }
.rich-text h2 { font-size: 18px; margin: 24px 0 10px; color: var(--text); }
.rich-text h3 { font-size: 16px; margin: 20px 0 8px; color: var(--text); }
.rich-text ul, .rich-text ol { padding-left: 22px; margin: 0 0 14px; }
.rich-text ul { list-style: disc; } .rich-text ol { list-style: decimal; }
.rich-text li { margin-bottom: 5px; }
.rich-text img { border-radius: 10px; margin: 8px 0; }
.rich-text a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.rich-text blockquote { border-left: 3px solid var(--border); padding: 6px 14px; color: var(--text-2); background: var(--card-2); border-radius: 0 8px 8px 0; margin: 0 0 14px; }
.rich-text strong { color: var(--text); }
.article-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 26px; padding-top: 16px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--text-3); }
.article-share { display: flex; align-items: center; gap: 8px; }
.share-btn { background: var(--primary-soft); border: 1px solid var(--primary-line); color: var(--primary); border-radius: 999px; font-size: 12px; padding: 5px 14px; }
.article-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 18px; font-size: 13px; }
.an-link { color: var(--text-2); max-width: 48%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-link:hover { color: var(--primary); }
.an-link.next { text-align: right; margin-left: auto; }
.article-side { display: flex; flex-direction: column; gap: 14px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
    .channel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .watch-layout, .article-layout { grid-template-columns: minmax(0, 1fr) 290px; }
}
@media (max-width: 900px) {
    .top-strip { display: none; }
    .header-inner { height: 60px; gap: 12px; }
    .main-nav { order: 4; width: 100%; position: absolute; top: 60px; left: 0; right: 0; background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--border-soft); padding: 8px 16px; display: none; }
    .site-header.nav-open .main-nav { display: flex; }
    .search-form { display: none; }
    .news-layout { grid-template-columns: 1fr; }
    .watch-layout, .article-layout { grid-template-columns: 1fr; }
    .watch-side { display: grid; grid-template-columns: 1fr 1fr; }
    .article-side { display: grid; grid-template-columns: 1fr; }
    .mobile-tabbar { display: flex; }
    .page-main { padding-bottom: 96px; }
}
@media (max-width: 720px) {
    .container { padding: 0 14px; }
    .header-inner { height: 56px; }
    .main-nav { top: 56px; }
    .brand-mark { width: 34px; height: 34px; font-size: 18px; border-radius: 11px; }
    .brand-text b { font-size: 15px; }
    .brand-text small { display: none; }
    .section { margin-top: 24px; }
    .section-title { font-size: 16px; }
    .page-title { font-size: 20px; }
    .hero-card { flex: 0 0 82vw; min-height: 160px; }
    .hero-section .section-sub { display: none; }
    .match-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; padding: 11px 13px; }
    .match-time { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 8px; }
    .mt-league { max-width: 150px; }
    .mt-label { font-size: 12px; color: var(--text-2); }
    .match-teams { gap: 6px; }
    .team-name { font-size: 13px; }
    .team-logo, .team-logo.ph { width: 26px; height: 26px; font-size: 11px; }
    .score-box { min-width: 54px; padding: 2px 8px; }
    .score-box b { font-size: 14px; }
    .play-hint { display: none; }
    .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .channel-card { padding: 9px 10px; }
    .ch-logo { width: 32px; height: 32px; border-radius: 10px; font-size: 16px; }
    .ch-info b { font-size: 12px; }
    .channel-card .status-pill { display: none; }
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .featured-news { grid-template-columns: 1fr; }
    .fn-cover { min-height: 170px; position: relative; }
    .fn-cover img, .fn-cover .cover-ph { position: absolute; }
    .fn-body { padding: 14px 16px 18px; }
    .fn-title { font-size: 16.5px; }
    .ni-thumb { flex-basis: 84px; height: 58px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; padding: 26px 14px 18px; }
    .footer-about { grid-column: 1 / -1; }
    .footer-bottom { padding: 14px 14px 20px; justify-content: center; text-align: center; }
    .watch-side { grid-template-columns: 1fr; }
    .scoreboard { padding: 16px 14px; }
    .sb-team .team-logo, .sb-team .team-logo.ph { width: 42px; height: 42px; font-size: 17px; }
    .sb-score { font-size: 24px; }
    .watch-title { font-size: 17px; }
    .article-main { padding: 18px 16px; }
    .article-title { font-size: 20px; }
    .rich-text { font-size: 14px; }
    .player-bar { gap: 8px; }
    .pb-btn { padding: 3px 10px; }
    .filter-bar { align-items: stretch; flex-direction: column; }
    .filter-bar .cat-pills.scroll-x { width: 100%; max-width: 100%; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
    .date-pills { align-self: stretch; justify-content: space-between; overflow-x: auto; }
    .date-pill { flex: 1 0 auto; text-align: center; }
    .pagination { gap: 5px; }
    .page-btn { min-width: 32px; height: 32px; font-size: 12.5px; }
}
@media (max-width: 400px) {
    .news-grid { grid-template-columns: 1fr; }
    .channel-grid { gap: 8px; }
}

/* ==========================================================
   差异化方案样式（后台 · 差异化设置）
   body.theme-vN 与 vN-* class 由 includes/site_header.php 输出
   ========================================================== */

/* ---- V2 碧海电光：小圆角、左侧色条、紧凑字距 ---- */
body.theme-v2 .site-header { background: rgba(255, 255, 255, .92); }
body.theme-v2 .top-strip { background: #f3f7fd; border-bottom-color: #e2ebf7; }
body.theme-v2 .v2-hero-card { background: linear-gradient(155deg, #ffffff 0%, #f2f7fe 70%); }
body.theme-v2 .v2-match-row,
body.theme-v2 .v2-channel-card { border-left: 3px solid var(--primary-line); border-radius: 8px; }
body.theme-v2 .v2-news-item { border-radius: 8px; }
body.theme-v2 .nc-cover { border-radius: 6px; }
body.theme-v2 .v2-section-title { letter-spacing: 1px; font-weight: 800; }
body.theme-v2 .v2-nav-pill { border-radius: 8px; }
body.theme-v2 .v2-cat-pill,
body.theme-v2 .v2-date-pill,
body.theme-v2 .page-btn { border-radius: 8px; }
body.theme-v2 .v2-news-feature,
body.theme-v2 .v2-news-side { border-radius: 8px; }
body.theme-v2 .site-footer { background: #f7faff; }
body.theme-v2 .mobile-tabbar { border-radius: 12px; }
body.theme-v2 .v2-tab-pill { border-radius: 8px; }

/* ---- V3 熔岩活力：大圆角、标题竖条、渐变标题 ---- */
body.theme-v3 .site-header { background: rgba(255, 255, 255, .93); }
body.theme-v3 .top-strip { background: #fdf7f2; border-bottom-color: #f3e6da; }
body.theme-v3 .v3-hero-card { border-radius: 22px; background: linear-gradient(155deg, #ffffff 0%, #fdf4ec 70%); }
body.theme-v3 .v3-match-row,
body.theme-v3 .v3-channel-card { border-radius: 20px; }
body.theme-v3 .v3-news-item { border-radius: 18px; }
body.theme-v3 .v3-search-form { border-radius: 14px; }
body.theme-v3 .v3-section-title { position: relative; padding-left: 15px; }
body.theme-v3 .v3-section-title::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 5px; height: 19px; border-radius: 99px; background: linear-gradient(180deg, var(--primary), var(--amber));
}
body.theme-v3 .v3-page-title { background: linear-gradient(92deg, var(--text), var(--primary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
body.theme-v3 .v3-news-side { background: transparent; border-style: dashed; }
body.theme-v3 .site-footer { background: #fffaf6; }

/* ---- V4 星紫极简：直角细边框、菱形标记、去阴影 ---- */
body.theme-v4 .site-header { background: rgba(255, 255, 255, .94); border-bottom-color: #e9e2f7; }
body.theme-v4 .top-strip { background: #f8f6fd; border-bottom-color: #ece5f8; }
body.theme-v4 .v4-hero-card { background: linear-gradient(155deg, #ffffff 0%, #f7f3ff 70%); border-color: #e6dff5; }
body.theme-v4 .v4-match-row,
body.theme-v4 .v4-channel-card { border-radius: 3px; box-shadow: none; }
body.theme-v4 .v4-news-item,
body.theme-v4 .nc-cover { border-radius: 2px; }
body.theme-v4 .v4-nav-pill,
body.theme-v4 .v4-cat-pill,
body.theme-v4 .v4-date-pill,
body.theme-v4 .page-btn { border-radius: 2px; }
body.theme-v4 .v4-section-title::after { content: ""; width: 6px; height: 6px; background: var(--primary); transform: rotate(45deg); display: inline-block; margin-left: 4px; }
body.theme-v4 .v4-featured-news { border-radius: 0; }
body.theme-v4 .v4-search-form { border-radius: 3px; }
body.theme-v4 .site-footer { background: #faf8ff; }
body.theme-v4 .mobile-tabbar { border-radius: 6px; }
body.theme-v4 .v4-tab-pill { border-radius: 4px; }

/* ---- V5 珊瑚落日：大圆角、渐变竖条、暖粉层次 ---- */
body.theme-v5 .site-header { background: rgba(255, 255, 255, .93); }
body.theme-v5 .top-strip { background: #fdf6f4; border-bottom-color: #f6e3dd; }
body.theme-v5 .v5-hero-card { border-radius: 20px; background: linear-gradient(155deg, #ffffff 0%, #fdf0eb 70%); }
body.theme-v5 .v5-match-row,
body.theme-v5 .v5-channel-card { border-radius: 16px; }
body.theme-v5 .v5-news-item { border-radius: 14px; }
body.theme-v5 .v5-search-form { border-radius: 12px; }
body.theme-v5 .v5-section-title { position: relative; padding-left: 14px; }
body.theme-v5 .v5-section-title::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 5px; height: 18px; border-radius: 99px; background: linear-gradient(180deg, var(--primary), #fb923c);
}
body.theme-v5 .v5-news-side { background: transparent; border-style: dashed; }
body.theme-v5 .site-footer { background: #fffaf8; }
body.theme-v5 .mobile-tabbar { border-radius: 14px; }
body.theme-v5 .v5-tab-pill { border-radius: 12px; }

/* ---- V6 极光青岚：胶囊搜索框、标题下划线、细边框 ---- */
body.theme-v6 .site-header { background: rgba(255, 255, 255, .9); }
body.theme-v6 .top-strip { background: #f2fbf9; border-bottom-color: #dff0eb; }
body.theme-v6 .v6-hero-card { border-radius: 16px; background: linear-gradient(150deg, #ffffff 0%, #edfaf6 75%); }
body.theme-v6 .v6-match-row,
body.theme-v6 .v6-channel-card { border-radius: 12px; border-color: #d9ece7; }
body.theme-v6 .v6-news-item { border-radius: 12px; }
body.theme-v6 .v6-search-form { border-radius: 99px; }
body.theme-v6 .v6-section-title { position: relative; padding-bottom: 7px; }
body.theme-v6 .v6-section-title::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 34px; height: 3px; border-radius: 99px; background: linear-gradient(90deg, var(--primary), #22c55e);
}
body.theme-v6 .v6-cat-pill,
body.theme-v6 .v6-date-pill,
body.theme-v6 .page-btn { border-radius: 99px; }
body.theme-v6 .site-footer { background: #f7fdfb; }
body.theme-v6 .v6-tab-pill { border-radius: 99px; }

/* ---- V7 琥珀金曜：小圆角、方点标记、报表感 ---- */
body.theme-v7 .site-header { background: rgba(255, 255, 255, .94); }
body.theme-v7 .top-strip { background: #fdfaf1; border-bottom-color: #f0e5cc; }
body.theme-v7 .v7-hero-card { border-radius: 8px; background: linear-gradient(155deg, #ffffff 0%, #fdf7e8 70%); }
body.theme-v7 .v7-match-row,
body.theme-v7 .v7-channel-card { border-radius: 6px; }
body.theme-v7 .v7-news-item { border-radius: 6px; }
body.theme-v7 .v7-search-form { border-radius: 5px; }
body.theme-v7 .v7-section-title::before {
    content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px;
    background: var(--primary); border-radius: 2px; vertical-align: 2px;
}
body.theme-v7 .v7-cat-pill,
body.theme-v7 .v7-date-pill,
body.theme-v7 .page-btn { border-radius: 5px; }
body.theme-v7 .site-footer { background: #fffdf6; }
body.theme-v7 .v7-tab-pill { border-radius: 5px; }

/* ---- V8 石墨蓝调：字母间距、标题短横线、轻阴影 ---- */
body.theme-v8 .site-header { background: rgba(255, 255, 255, .92); }
body.theme-v8 .top-strip { background: #f5f7fa; border-bottom-color: #e3e9f0; }
body.theme-v8 .v8-hero-card { border-radius: 12px; background: linear-gradient(155deg, #ffffff 0%, #f2f6fb 75%); }
body.theme-v8 .v8-match-row,
body.theme-v8 .v8-channel-card { border-radius: 12px; box-shadow: 0 8px 20px rgba(16, 24, 40, .06); }
body.theme-v8 .v8-news-item { border-radius: 12px; }
body.theme-v8 .v8-search-form { border-radius: 10px; }
body.theme-v8 .v8-section-title { letter-spacing: .5px; }
body.theme-v8 .v8-section-title::after {
    content: ""; display: inline-block; width: 22px; height: 3px; margin-left: 8px;
    border-radius: 99px; background: var(--primary); vertical-align: 4px;
}
body.theme-v8 .site-footer { background: #f8fafc; }
body.theme-v8 .mobile-tabbar { border-radius: 10px; }
body.theme-v8 .v8-tab-pill { border-radius: 10px; }

/* ==========================================================
   左侧菜单布局（固定侧栏 + 右侧内容区）
   ========================================================== */
.side-nav {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
    width: 236px; display: flex; flex-direction: column;
    background: var(--bg-soft); border-right: 1px solid var(--border-soft);
    transition: width .22s ease, transform .26s ease;
}
.sn-head { display: flex; align-items: center; gap: 10px; padding: 15px 14px 14px; border-bottom: 1px solid var(--border-soft); }
.sn-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sn-brand-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.sn-brand-text b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-brand-text small { font-size: 10.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-close {
    display: none; align-items: center; justify-content: center; margin-left: auto;
    width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px;
    background: var(--card); border: 1px solid var(--border); color: var(--text-2); font-size: 12px;
}
.sn-nav { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 10px 16px; }
.sn-group { display: block; padding: 15px 11px 7px; font-size: 11px; letter-spacing: 1.2px; color: var(--text-3); }
.sn-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 11px; margin-bottom: 2px;
    border-radius: 10px; border: 1px solid transparent; color: var(--text-2); font-size: 13.5px;
    transition: all .16s ease;
}
.sn-item:hover { background: var(--hover); color: var(--text); }
.sn-item.active { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--primary); font-weight: 600; }
.sn-ico { width: 20px; flex-shrink: 0; text-align: center; font-size: 14px; }
.sn-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-caret { margin-left: auto; font-size: 10px; color: var(--text-3); line-height: 1; }
.sn-sub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 2px 6px 8px 31px; }
.sn-sub-item {
    display: block; padding: 5px 7px; border-radius: 7px; border: 1px solid var(--border-soft);
    background: var(--card); color: var(--text-2); font-size: 12px; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: all .16s ease;
}
.sn-sub-item:hover { background: var(--hover); color: var(--text); }
.sn-sub-item.active { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--primary); font-weight: 600; }
.sn-foot { border-top: 1px solid var(--border-soft); padding: 12px 15px 16px; display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--text-3); }
.sn-copy { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.side-main { margin-left: 236px; min-height: 100vh; display: flex; flex-direction: column; transition: margin-left .22s ease; }
.side-main .page-main { flex: 1 0 auto; }
.side-backdrop { display: none; }

.top-bar .header-inner { height: 60px; gap: 12px; }
.side-toggle {
    width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--card); border: 1px solid var(--border); color: var(--text-2); font-size: 15px; transition: all .16s;
}
.side-toggle:hover { color: var(--primary); border-color: var(--primary-line); }
.top-brand { display: none; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; flex-shrink: 0; }
/* 头部顺序：logo 居左，搜索栏靠右，菜单按钮居右 */
.top-bar .header-inner .top-brand { order: 1; margin-right: auto; }
.top-bar .header-inner .search-form { order: 2; }
.top-bar .header-inner .side-toggle { order: 3; }
.top-bar .search-form { margin-left: auto; flex: 0 1 320px; }
.top-bar .search-form input { width: 100%; }

/* 桌面：折叠为纯图标栏 */
@media (min-width: 901px) {
    body.side-collapsed .side-nav { width: 76px; }
    body.side-collapsed .side-main { margin-left: 76px; }
    body.side-collapsed .sn-head { justify-content: center; padding: 15px 8px 14px; }
    body.side-collapsed .sn-brand-text,
    body.side-collapsed .sn-label,
    body.side-collapsed .sn-group,
    body.side-collapsed .sn-sub,
    body.side-collapsed .sn-caret,
    body.side-collapsed .sn-foot { display: none; }
    body.side-collapsed .sn-item { justify-content: center; padding: 10px 0; }
    body.side-collapsed .sn-ico { width: auto; font-size: 16px; }
}

/* 移动端：侧栏抽屉化 */
@media (max-width: 900px) {
    .side-nav {
        width: 272px; max-width: 84vw; transform: translateX(-100%);
        border-right: 0; box-shadow: 0 0 40px rgba(15, 23, 42, .18);
    }
    body.side-open .side-nav { transform: translateX(0); }
    .side-main { margin-left: 0; }
    .sn-close { display: inline-flex; }
    .side-backdrop {
        display: block; position: fixed; inset: 0; z-index: 99;
        background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .2s ease;
    }
    body.side-open .side-backdrop { opacity: 1; pointer-events: auto; }
    body.side-open { overflow: hidden; }
    .top-brand { display: inline-flex; }
    .side-toggle { border-radius: 999px; }
    .top-bar .search-form { display: none; }
    .top-bar .header-inner { height: 60px; }
}

/* 差异化：侧栏随方案微调 */
body.theme-v2 .v2-sn-item { border-radius: 7px; }
body.theme-v3 .v3-sn-item { border-radius: 13px; }
body.theme-v3 .sn-group { letter-spacing: 2px; }
body.theme-v4 .v4-sn-item { border-radius: 2px; }
body.theme-v4 .side-nav { border-right-color: var(--border); }
body.theme-v4 .sn-foot { border-top-style: dashed; }
