/* ====================================================
   【流量收割机】新站首页专属样式 - PC与移动端终极纯净版
   ==================================================== */

/* --- 1. 全局与结构 --- */
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; }
.hub-tabs li.tab-focus { color: #d63638; }
.hub-tabs li.tab-focus.active { color: #fff; }

/* --- 2. 顶部跑马灯 --- */
.jzt-top-live-ticker { margin-bottom: 20px; background: #fff; padding: 15px 0; border-bottom: 1px solid #e8e8e8; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.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: all 0.3s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.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; font-family: Arial, sans-serif; }
.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, Tahoma, 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; display: flex; align-items: center; justify-content: center; gap: 3px; 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; background: #fff; }
.tc-btn i { font-size: 11px; }
.tc-btn:hover { background: #d63638; color: #fff; border-color: #d63638; }
.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; box-shadow: 0 2px 8px rgba(0,0,0,0.05); top: 50%; margin-top: -30px !important; border-radius: 2px; }
.ticker-btn-prev:after, .ticker-btn-next:after { font-size: 12px !important; font-weight: bold; }
.ticker-btn-prev { left: -15px !important; }
.ticker-btn-next { right: -15px !important; }
.ticker-btn-prev:hover, .ticker-btn-next:hover { color: #d63638 !important; border-color: #d63638; }

/* --- 3. 头条新闻矩阵 --- */
.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: var(--theme-primary); }
.hn-feature-info p { font-size: 13px; color: #777; margin: 0; line-height: 1.5; 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 li:hover .hn-dot { background: var(--theme-primary); }
.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: var(--theme-primary); }
.hn-date { font-size: 12px; color: #aaa; margin-left: 15px; flex-shrink: 0; }

/* --- 4. 体育直播大厅列表 --- */
.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; letter-spacing: 1px; }
.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; }

/* --- 5. 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-links-grid a:hover i { color: #fff; }
.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; }
.seo-article-block strong { color: #d63638; }

/* --- 6. 侧边栏及内部组件 --- */
/* 极简大厂风侧栏标题 */
.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; }
.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; }

.nba-standings-mini { width: 100%; border-collapse: collapse; font-size: 13px; text-align: center; }
.nba-standings-mini th { background: #fdfdfd; color: #888; font-weight: normal; padding: 10px 5px; border-bottom: 1px solid #eee; text-align: center; }
.nba-standings-mini td { padding: 12px 5px; 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; }

.sw-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px; }
.sw-tags a { padding: 5px 12px; background: #f5f6f7; border: 1px solid #eaeaea; color: #555; font-size: 12px; border-radius: 4px; text-decoration: none; transition: 0.2s; }
.sw-tags a:hover { background: #d63638; color: #fff; border-color: #d63638; }

/* 底部蜘蛛网图谱 */
.jzt-global-spider-net { margin: 30px auto; background: #fff; border: 1px dashed #d63638; border-radius: 8px; padding: 20px; box-sizing: border-box;}
.gsn-header { font-size: 16px; font-weight: bold; color: #222; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #f0f0f0; padding-bottom: 12px; }
.gsn-header i { color: #d63638; font-size: 18px; }
.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); }

/* --- Pad 端过渡 --- */
@media (max-width: 992px) {
    .layout-grid { flex-direction: column; }
    .col-side-data { width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; gap: 15px; }
    .col-side-data .side-widget { flex: 1; min-width: 300px; margin-bottom: 0; }
}


/* ====================================================
   🚨 唯一的移动端总控台 (彻底修复截断、撑爆、Tab红块问题) 🚨
   ==================================================== */
@media (max-width: 768px) {
    /* 0. 基础重置：彻底改变盒模型，绝对不允许任何元素宽于屏幕 */
    html, body { overflow-x: hidden; width: 100%; margin: 0; padding: 0; background-color: #f5f6f7; }
    *, *::before, *::after { box-sizing: border-box !important; }
    .site-container { padding: 0 15px; width: 100%; box-sizing: border-box; }
    
    /* 1. 整体骨架 */
    .nba-seo-h1-wrap { display: none; }
    .nba-home-main { padding: 10px 0; width: 100%; overflow: hidden; }
    .layout-grid { flex-direction: column; padding: 0; gap: 12px; width: 100%; margin: 0; box-sizing: border-box; }
    .col-live-hub, .col-side-data { width: 100%; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
    
    /* 2. 通用容器去边满宽 */
    .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; overflow: hidden; }
    .hub-hd { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 15px 15px 0; gap: 10px; border-bottom: none; }
    .hd-title { font-size: 17px; padding-bottom: 0; margin: 0; }
    .hub-hd .hd-more { font-size: 13px; padding-bottom: 0; margin-left: auto; }
    
    /* 修复大厅 Tab (解决截图中的实心红块和截断问题) */
    .hub-tabs { width: calc(100% + 30px); margin-left: -15px; padding-left: 15px; 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 !important; color: #666; border-radius: 0; }
    .hub-tabs li.active { color: #d63638; border-bottom: 2px solid #d63638; font-weight: bold; }

    /* 3. 完美复刻：独立赛程卡片流 (解决断行、重叠、无样式) */
    .hub-bd { background: transparent; padding: 0 15px 15px; width: 100%; box-sizing: border-box; }
    .live-row { 
        display: flex; 
        position: relative; 
        padding: 40px 15px 15px !important; 
        margin-top: 12px;
        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%;
        box-sizing: border-box;
    }
    .live-row:last-child { border-bottom: 1px solid #f5f5f5; }
    
    /* 时间和状态：挂在左上角 */
    .l-time { position: absolute; top: 12px; left: 15px; 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: 95px; width: auto; text-align: left; }
    .l-status .badge { padding: 3px 6px; font-size: 10px; border-radius: 4px; display: inline-block; }
    
    /* 队伍排版：Logo 在上，文字在下，强制居中且防撑破 */
    .l-team { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-start !important; text-align: center !important; gap: 6px; margin: 0; padding: 0; }
    .l-team img { order: 1; width: 32px !important; height: 32px !important; margin: 0 auto; flex-shrink: 0; }
    .l-team span { order: 2; width: 100%; font-size: 12px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80px; margin: 0 auto; display: block; }
    
    /* 比分区：给够宽度，锁死不换行 */
    .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; display: flex; justify-content: flex-end; }
    .l-action span { display: inline-block; padding: 6px 0; width: 100%; font-size: 12px; border-radius: 20px; text-align: center; font-weight: normal; }

    /* 4. 新闻列表修复：强制截断，绝不溢出屏幕 */
    .hn-body { padding: 15px; width: 100%; box-sizing: border-box; }
    .hn-grid { flex-direction: column; gap: 15px; width: 100%; }
    .hn-left-feature { width: 100%; }
    .hn-feature-info h3 { font-size: 15px; white-space: normal; line-height: 1.4; word-break: break-all; }
    .hn-text-ul li { padding: 12px 0; display: flex; align-items: center; width: 100%; overflow: hidden; box-sizing: border-box; }
    .hn-text-ul a { flex: 1; display: block; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 5px; }
    .hn-date { margin-left: auto; font-size: 11px; flex-shrink: 0; }

    /* 5. 顶部跑马灯：隐藏 */
    .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; }

    /* 6. SEO 矩阵与文案修复：强制换行防撑爆 */
    .seo-links-grid { grid-template-columns: repeat(2, 1fr); padding: 15px; gap: 10px; width: 100%; box-sizing: border-box; }
    .seo-links-grid a { font-size: 12px; padding: 8px 10px; width: 100%; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; }
    
    .seo-article-block { padding: 15px; margin: 15px 0 0; border-radius: 6px; width: 100%; word-wrap: break-word; overflow-wrap: break-word; box-sizing: border-box; }
    .seo-article-block p { font-size: 13px; line-height: 1.6; white-space: normal; word-break: break-all; margin-bottom: 10px; }

    /* 7. 侧栏防溢出 */
    .sw-tags { padding: 15px; width: 100%; box-sizing: border-box; }
    .side-team-grid-new, .side-player-list { gap: 10px; padding: 15px; width: 100%; box-sizing: border-box; }
    .s-p-name { font-size: 13px; width: 100%; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    
    .jzt-global-spider-net { margin: 15px 0; padding: 15px; border-radius: 6px; width: 100%; word-wrap: break-word; box-sizing: border-box; }
    .gsn-body { gap: 8px; flex-wrap: wrap; }
    .gsn-body a { font-size: 12px; padding: 6px 12px; display: inline-block; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; }
}