/* ====================================================
   【24直播网】首页专属样式 - PC与移动端终极整合版
   ==================================================== */

/* --- 全局与结构 --- */
body { background-color: #f0f2f5; }
.nba-home-main { padding: 20px 0 50px; }
.layout-grid { display: flex; gap: 20px; align-items: flex-start; }
.col-live-hub { flex: 1; min-width: 0; }
.col-side-data { width: 340px; flex-shrink: 0; }
.mt-20 { margin-top: 20px; }

/* 隐形 H1 SEO 提权池 */
.nba-seo-h1-wrap { background: #fdfdfd; border-bottom: 1px solid #e5e5e5; padding: 12px 15px; }
.nba-seo-h1-wrap .site-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.nba-seo-h1-wrap h1 { font-size: 14px; color: #555; margin: 0; font-weight: 600; }
.seo-pulse-time { font-size: 12px; color: #777; display: flex; align-items: center; gap: 6px; background: #f5f6f7; padding: 5px 12px; border-radius: 4px; border: 1px solid #eaeaea; }
.seo-pulse-time i { color: #10b981; animation: blink 1.5s infinite; }
@keyframes blink { 50% { opacity: 0.5; } }

/* 通用模块盒子 */
.hub-box, .side-widget { background: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); margin-bottom: 20px; overflow: hidden; border: 1px solid #e5e5e8; }
.hub-hd { display: flex; justify-content: space-between; align-items: flex-end; background: #fff; padding: 15px 20px 0; border-bottom: 2px solid #d63638; }
.hd-title { font-size: 20px; font-weight: 900; color: #222; padding-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.hd-title i { color: #d63638; font-size: 22px; }
.hub-hd .hd-more { font-size: 13px; color: #888; text-decoration: none; padding-bottom: 12px; transition: 0.2s; }
.hub-hd .hd-more:hover { color: #d63638; }
.hub-bd { padding: 0; background: #fff; }
.empty-data { padding: 60px 0; text-align: center; color: #999; font-size: 14px; }

/* 大厅 Tabs */
.hub-tabs { list-style: none; padding: 0; margin: 0; display: flex; gap: 5px; }
.hub-tabs li { padding: 10px 20px; font-size: 15px; font-weight: bold; background: #f5f6f7; color: #555; cursor: pointer; border-radius: 6px 6px 0 0; transition: 0.2s; border: 1px solid #e5e5e8; border-bottom: none; }
.hub-tabs li.active { background: #d63638; color: #fff; border-color: #d63638; }

/* --- 1. 顶部跑马灯 --- */
.jzt-top-live-ticker { margin-bottom: 20px; background: #fff; padding: 15px 0; border-bottom: 1px solid #e8e8e8; }
.jzt-ticker-swiper { padding: 5px 0 !important; }
.ticker-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #f0f0f0; border-radius: 4px; padding: 0; transition: 0.3s; }
.ticker-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: #ddd; }
.ticker-card.live { border-color: #fca5a5; }
.tc-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; border-bottom: 1px solid #f9f9f9; }
.tc-head-left { display: flex; align-items: center; gap: 8px; }
.tc-league { font-size: 14px; font-weight: 900; color: #222; }
.tc-time { font-size: 12px; color: #999; }
.tc-status { font-size: 11px; padding: 2px 8px; border-radius: 12px; font-weight: bold; }
.tc-status.ns { background: #fdf6ec; color: #f59e0b; }
.tc-status.live { background: #fee2e2; color: #e11d48; animation: blink 1.5s infinite; }
.tc-status.ft { background: #f3f4f6; color: #6b7280; }
.tc-teams { padding: 12px 15px; display: flex; flex-direction: column; gap: 10px; }
.tc-team { display: flex; align-items: center; gap: 10px; }
.tc-team img { width: 24px; height: 24px; object-fit: contain; }
.tc-name { font-size: 14px; color: #333; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-score-inline { font-size: 16px; font-weight: 900; color: #333; font-family: Impact, sans-serif; }
.ticker-card.live .tc-score-inline { color: #e11d48; }
.tc-actions { display: flex; justify-content: space-between; padding: 0 15px 12px; gap: 8px; }
.tc-btn { flex: 1; text-align: center; font-size: 12px; color: #d63638; border: 1px solid rgba(214, 54, 56, 0.4); border-radius: 3px; padding: 3px 0; text-decoration: none; transition: 0.2s; }
.tc-btn:hover { background: #d63638; color: #fff; }
.jzt-top-live-ticker .site-container { position: relative; }
.ticker-btn-prev, .ticker-btn-next { width: 30px !important; height: 60px !important; background: #fff; border: 1px solid #eaeaea; color: #999 !important; top: 50%; margin-top: -30px !important; border-radius: 2px; }
.ticker-btn-prev:hover, .ticker-btn-next:hover { color: #d63638 !important; border-color: #d63638; }

/* --- 2. 体坛头条新闻矩阵 --- */
.hn-body { padding: 20px; }
.hn-grid { display: flex; gap: 25px; align-items: stretch; }
.hn-left-feature { width: 45%; flex-shrink: 0; }
.hn-feature-card { display: block; text-decoration: none; border-radius: 6px; overflow: hidden; background: #fafafa; border: 1px solid #eee; transition: 0.3s; }
.hn-feature-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.08); transform: translateY(-2px); border-color: #ddd; }
.hn-thumb { width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.hn-thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s ease; }
.hn-feature-card:hover .hn-thumb img { transform: scale(1.05); }
.hn-feature-info { padding: 15px; }
.hn-feature-info h3 { font-size: 16px; font-weight: bold; color: #222; margin: 0 0 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hn-feature-card:hover .hn-feature-info h3 { color: #d63638; }
.hn-feature-info p { font-size: 13px; color: #777; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hn-right-list { flex: 1; min-width: 0; }
.hn-text-ul { list-style: none; padding: 0; margin: 0; }
.hn-text-ul li { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px dashed #f0f0f0; }
.hn-text-ul li:first-child { padding-top: 0; }
.hn-text-ul li:last-child { border-bottom: none; padding-bottom: 0; }
.hn-dot { width: 4px; height: 4px; background: #ccc; border-radius: 50%; margin-right: 12px; flex-shrink: 0; }
.hn-text-ul a { flex: 1; font-size: 15px; color: #444; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: 0.2s; }
.hn-text-ul a:hover { color: #d63638; }
.hn-date { font-size: 12px; color: #aaa; margin-left: 15px; flex-shrink: 0; }

/* --- 3. 体育直播大厅列表 --- */
.live-row { display: flex; align-items: center; padding: 15px 20px; border-bottom: 1px solid #f0f0f0; text-decoration: none; color: #333; transition: 0.2s; }
.live-row:hover { background: #fdfdfd; box-shadow: 0 4px 12px rgba(0,0,0,0.04); transform: scale(1.002); z-index: 2; position: relative; border-color: transparent; }
.live-row:last-child { border-bottom: none; }
.l-time { width: 60px; text-align: center; flex-shrink: 0; line-height: 1.2; }
.l-time .d { display: block; font-size: 12px; color: #999; }
.l-time .t { display: block; font-size: 15px; font-weight: bold; color: #222; font-family: Arial, sans-serif; }
.l-league { width: 70px; text-align: center; color: #777; font-size: 13px; font-weight: 500; }
.l-status { width: 60px; text-align: center; }
.l-status .badge { display: inline-block; padding: 3px 6px; font-size: 11px; border-radius: 4px; font-weight: bold; }
.l-status .ns { background: #f0f2f5; color: #666; }
.l-status .live { background: #d63638; color: #fff; animation: blink 1.5s infinite; }
.l-status .ft { background: #198754; color: #fff; }
.l-team { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: bold; color: #222; min-width: 0; }
.l-team.h { justify-content: flex-end; text-align: right; }
.l-team.a { justify-content: flex-start; text-align: left; }
.l-team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.l-team img { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.l-score { width: 80px; text-align: center; font-size: 20px; font-weight: 900; color: #333; font-family: Impact, sans-serif; }
.l-score.is-live { color: #d63638; font-size: 22px; }
.l-action { width: 110px; text-align: right; flex-shrink: 0; }
.l-action span { display: inline-block; padding: 8px 16px; font-size: 13px; font-weight: bold; border-radius: 30px; transition: 0.3s; }
.btn-play { background: #d63638; color: #fff; border: 1px solid #d63638; box-shadow: 0 4px 10px rgba(214,54,56,0.3); }
.live-row:hover .btn-play { background: #b02a2b; transform: translateY(-2px); }
.btn-replay { background: #fdfdfd; color: #198754; border: 1px solid #198754; }
.live-row:hover .btn-replay { background: #198754; color: #fff; }
.btn-pre { background: #fdfdfd; color: #555; border: 1px solid #ccc; }
.live-row:hover .btn-pre { background: #222; color: #fff; border-color: #222; }

/* --- 4. SEO与推荐矩阵 --- */
.seo-links-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 20px; }
.seo-links-grid a { display: block; padding: 8px 10px; background: #f8f9fa; border: 1px solid #eee; border-radius: 4px; color: #444; font-size: 13px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: 0.2s; }
.seo-links-grid a i { color: #d63638; font-size: 10px; margin-right: 4px; }
.seo-links-grid a:hover { background: #d63638; color: #fff; border-color: #d63638; }
.seo-article-block { background: #fff; border: 1px dashed #d63638; border-radius: 8px; padding: 25px; margin-top: 20px; }
.seo-article-block h2 { font-size: 18px; font-weight: bold; color: #222; margin-top: 0; margin-bottom: 12px; }
.seo-article-block p { font-size: 14px; color: #555; line-height: 1.8; margin: 0; text-align: justify; }

/* --- 5. 侧边栏 --- */
.sw-hd { padding: 15px 20px; background: #fff; display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 800; color: #222; position: relative; border-bottom: 1px solid #f8f9fa; border-left: none; }
.sw-hd::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 16px; background: linear-gradient(to bottom, #f43f5e, #be123c); border-radius: 0 4px 4px 0; }
.sw-hd span { display: flex; align-items: center; gap: 6px; }
.sw-hd a { font-size: 12px; font-weight: normal; color: #94a3b8; text-decoration: none; transition: 0.2s; }
.sw-hd a:hover { color: #d63638; }

.side-tabs-mini { display: flex; background: #fff; border-bottom: 1px solid #f0f0f0; margin-bottom: 12px; position: relative; }
.side-tabs-mini span { flex: 1; text-align: center; padding: 14px 0; font-size: 14px; cursor: pointer; color: #64748b; font-weight: bold; border: none !important; background: transparent !important; margin: 0 !important; position: relative; transition: color 0.2s; }
.side-tabs-mini span.active { color: #d63638; }
.side-tabs-mini span.active::after { content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); width: 24px; height: 3px; background: #d63638; border-radius: 3px 3px 0 0; }

.side-tab-content { min-height: 380px; position: relative; }
.s-tab-pane { display: none; width: 100%; }
.s-tab-pane.active { display: block !important; }

.nba-standings-mini { width: 100%; border-collapse: collapse; font-size: 13px; text-align: center; }
.nba-standings-mini thead th { font-size: 11px; color: #999; padding: 8px 4px; border-bottom: 1px solid #eee; text-align: center; font-weight: normal; }
.nba-standings-mini td { padding: 10px 4px; border-bottom: 1px dashed #f5f5f5; color: #333; font-family: Arial; }
.nba-standings-mini .tl { text-align: left; font-weight: bold; }
.nba-standings-mini .tl a { color: #333; text-decoration: none; transition: 0.2s; }
.nba-standings-mini .tl a:hover { color: #d63638; }
.nba-standings-mini .pct { font-weight: bold; color: #d63638; }
.rank-num { display: inline-block; width: 20px; height: 20px; line-height: 20px; background: #eee; color: #666; border-radius: 3px; font-size: 12px; font-weight: bold; }
.rank-num.top4 { background: #d63638; color: #fff; }

.side-team-grid-new { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.s-t-card { display: flex; align-items: center; gap: 8px; padding: 10px; background: #f9fafb; border-radius: 6px; border: 1px solid #f1f5f9; text-decoration: none; transition: 0.2s; }
.s-t-card:hover { background: #fff; border-color: #d63638; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.s-t-card img { width: 32px !important; height: 32px !important; object-fit: contain !important; flex-shrink: 0; background: #fff; border-radius: 4px; padding: 2px; }
.s-t-card span { font-size: 13px; font-weight: bold; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.side-player-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.s-p-item { display: flex; align-items: center; gap: 10px; padding: 8px; text-decoration: none; background: #fff; border: 1px solid #f1f5f9; border-radius: 6px; transition: 0.2s; }
.s-p-item:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.s-p-item img { width: 38px !important; height: 38px !important; border-radius: 50%; object-fit: cover; background: #f1f5f9; flex-shrink: 0; border: 1px solid #eee; }
.s-p-name { font-size: 12px; color: #1e293b; font-weight: bold; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-p-pos { font-size: 11px; color: #94a3b8; margin-top: 2px; }

.side-tag-cloud-dense { display: flex; flex-wrap: wrap; gap: 6px; }
.side-tag-cloud-dense a { font-size: 12px; color: #475569; background: #f1f5f9; border: 1px solid #e2e8f0; padding: 5px 12px; border-radius: 20px; text-decoration: none; transition: 0.2s; }
.side-tag-cloud-dense a:hover { background: #d63638; color: #fff; border-color: #d63638; }

@media (min-width: 992px) {
    .jzt-sticky-sidebar { position: -webkit-sticky; position: sticky; top: 20px; z-index: 10; }
}

/* --- 6. 底部蜘蛛网图谱 --- */
.jzt-global-spider-net { margin: 30px auto; background: #fff; border: 1px dashed #d63638; border-radius: 8px; padding: 20px; }
.gsn-body { display: flex; flex-wrap: wrap; gap: 12px; }
.gsn-body a { padding: 6px 14px; background: #f8f9fa; color: #555; font-size: 13px; border-radius: 30px; text-decoration: none; border: 1px solid #eaeaea; transition: 0.2s; white-space: nowrap; }
.gsn-body a:hover { background: #d63638; color: #fff; transform: translateY(-2px); }


/* ====================================================
   🚨 移动端终极重构版 (去除冗余，完美收缩防断行) 🚨
   ==================================================== */
@media (max-width: 768px) {
    html, body { overflow-x: hidden; width: 100%; margin: 0; padding: 0; background-color: #f5f6f7; }
    * { box-sizing: border-box; }
    .site-container { padding: 0 10px; width: 100%; }
    
    .nba-seo-h1-wrap { display: none; }
    .nba-home-main { padding: 10px 0; }
    .layout-grid { flex-direction: column; padding: 0; gap: 12px; width: 100%; margin: 0; }
    .col-live-hub, .col-side-data { width: 100%; display: flex; flex-direction: column; gap: 12px; }
    
    .hub-box { border-radius: 8px; margin-bottom: 0; width: 100%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.02); border: none; }
    
    .hub-hd { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 12px 12px 0; gap: 10px; border-bottom: none; }
    .hd-title { font-size: 16px; padding-bottom: 0; margin: 0; }
    .hub-hd .hd-more { font-size: 12px; padding-bottom: 0; margin-left: auto; }
    
    .hub-tabs { width: calc(100% + 24px); margin-left: -12px; padding-left: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; display: flex; flex-wrap: nowrap; border-bottom: 1px solid #f0f0f0; margin-top: 5px; }
    .hub-tabs li { padding: 10px 15px; font-size: 14px; white-space: nowrap; flex-shrink: 0; border: none; background: transparent; color: #666; border-bottom: 2px solid transparent; border-radius: 0; }
    .hub-tabs li.active { color: #d63638; border-bottom: 2px solid #d63638; font-weight: bold; background: transparent; }

    .hub-bd { background: transparent; padding: 0 10px 10px; }
    
    .live-row { 
        display: flex; 
        position: relative; 
        padding: 35px 12px 15px !important; 
        margin-top: 10px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        border: 1px solid #f5f5f5;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .live-row:last-child { border-bottom: 1px solid #f5f5f5; }
    
    .l-team { 
        flex: 1; 
        min-width: 0; 
        gap: 6px; 
        margin: 0; 
        padding: 0; 
        flex-direction: column; 
        justify-content: flex-start !important; 
        text-align: center !important; 
    }
    .l-team img { order: 1; width: 28px !important; height: 28px !important; margin: 0 auto; }
    .l-team span { order: 2; width: 100%; font-size: 12px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 75px; margin: 0 auto; display: block;}
    
    .l-time { position: absolute; top: 12px; left: 12px; width: auto; text-align: left; }
    .l-time .d, .l-time .t { display: inline-block; font-size: 12px; color: #888; font-weight: normal; }
    .l-league { display: none !important; }
    
    .l-status { position: absolute; top: 10px; left: 85px; width: auto; text-align: left; }
    .l-status .badge { padding: 3px 6px; font-size: 10px; border-radius: 4px; }
    
    .l-score { 
        width: 75px; 
        font-size: 20px; 
        line-height: 1; 
        text-align: center; 
        margin: 0; 
        padding: 0; 
        white-space: nowrap; 
        flex-shrink: 0; 
    }
    .l-score.is-live { font-size: 22px; color: #d63638; }
    
    .l-action { width: 70px; text-align: right; margin: 0; padding: 0; border: none; flex-shrink: 0; }
    .l-action span { display: inline-block; padding: 6px 0; width: 100%; font-size: 12px; border-radius: 20px; text-align: center; font-weight: normal; }
    .btn-play { background: #ffe4e6; color: #e11d48; border: 1px solid #fecdd3; box-shadow: none; }
    .btn-replay { background: #d1fae5; color: #059669; border: 1px solid #a7f3d0; box-shadow: none; }
    .btn-pre { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

    .hn-body { padding: 12px; }
    .hn-grid { flex-direction: column; gap: 15px; }
    .hn-left-feature { width: 100%; }
    .hn-feature-info h3 { font-size: 15px; white-space: normal; line-height: 1.4; }
    .hn-text-ul li { padding: 10px 0; flex-wrap: nowrap; display: flex; align-items: center; }
    .hn-text-ul a { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .hn-date { margin-left: 10px; font-size: 11px; flex-shrink: 0; }

    .jzt-top-live-ticker { padding: 5px 0; background: transparent; border: none; overflow: hidden; width: 100%; box-shadow: none; margin-bottom: 5px; }
    .ticker-btn-prev, .ticker-btn-next { display: none !important; }

    .seo-links-grid { grid-template-columns: repeat(2, 1fr); padding: 12px; gap: 8px; width: 100%; }
    .seo-links-grid a { font-size: 12px; padding: 8px 10px; width: 100%; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    
    .seo-article-block { padding: 15px; margin: 0; border-radius: 6px; width: 100%; word-wrap: break-word; overflow-wrap: break-word; }
    .seo-article-block p { font-size: 13px; line-height: 1.6; white-space: normal; word-break: break-all; margin-bottom: 10px; }

    .side-team-grid-new, .side-player-list { gap: 10px; padding: 12px; width: 100%; }
    .s-p-item { padding: 8px; border: 1px solid #f0f0f0; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
    .s-p-name { font-size: 13px; width: 100%; display: block; white-space: normal; word-break: break-all; line-height: 1.2; }
    
    .jzt-global-spider-net { margin: 10px 0; padding: 15px; border-radius: 6px; width: 100%; word-break: break-all; }
    .gsn-body { gap: 8px; }
    .gsn-body a { font-size: 12px; padding: 5px 10px; display: inline-block; white-space: normal; }
}