/* 霸榜专属 Home.css - 流量收割机模式 */
body { background-color: #f0f2f5; }

/* 隐形 H1 SEO 提权池，包装成专业的数据监控状态栏 */
.nba-seo-h1-wrap { 
    background: #fdfdfd; 
    border-bottom: 1px solid #e5e5e5; 
    padding: 12px 15px; /* 强制左右留白15px，绝对不会再贴边 */
}
.nba-seo-h1-wrap .site-container {
    display: flex;
    justify-content: space-between; /* 核心魔法：让H1靠左，时间栏靠右，完美对齐1200px的骨架 */
    align-items: center;
    flex-wrap: wrap; /* 移动端防重叠自动换行 */
    gap: 10px;
}
.nba-seo-h1-wrap h1 { 
    font-size: 14px; /* 字号缩小一点，避免抢戏，但依然有H1的最高SEO权重 */
    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; 
}

/* 移动端特殊适配：居中堆叠 */
@media (max-width: 768px) {
    .nba-seo-h1-wrap { display: none; } /* 移动端屏幕寸土寸金，直接隐身，不影响PC端拉权 */
}

.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; }

.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-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; }

.hub-bd { padding: 0; background: #fff; }
.empty-data { padding: 60px 0; text-align: center; color: #999; font-size: 14px; }

/* 赛事列表，极具冲击力 */
.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; }

/* 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; }

/* 侧边栏样式 */
.sw-hd { padding: 15px 20px; background: #fafafa; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: bold; color: #222; border-left: 4px solid #d63638; }
.sw-hd a { font-size: 12px; font-weight: normal; color: #888; text-decoration: none; }
.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; }
.nba-standings-mini td { padding: 12px 5px; border-bottom: 1px dashed #f5f5f5; color: #333; }
.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-news-list { list-style: none; padding: 15px 20px; margin: 0; }
.sw-news-list li { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed #eee; position: relative; padding-left: 15px; }
.sw-news-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sw-news-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; background: #d63638; border-radius: 50%; }
.sw-news-list a { color: #444; font-size: 14px; text-decoration: none; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: 0.2s; }
.sw-news-list a:hover { color: #d63638; }

.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; }

@keyframes blink { 50% { opacity: 0.5; } }

/* 移动端极限适配 */
@media (max-width: 992px) {
    .layout-grid { flex-direction: column; }
    .col-side-data { width: 100%; display: flex; gap: 15px; }
    .col-side-data .side-widget { flex: 1; min-width: 300px; }
}

@media (max-width: 768px) {
    .nba-seo-h1-wrap { display: none; } /* 移动端隐藏大段SEO字，节省空间 */
    .nba-home-main { padding: 10px 0; }
    .hub-box { border-radius: 0; border-left: none; border-right: none; margin-bottom: 10px; }
    .hub-hd { flex-direction: column; align-items: flex-start; padding: 10px 15px 0; gap: 10px; }
    .hub-tabs { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .hub-tabs li { padding: 8px 15px; font-size: 14px; white-space: nowrap; }
    
    .live-row { padding: 12px 10px; flex-wrap: wrap; justify-content: space-between; gap: 5px; }
    .l-time { width: 40px; }
    .l-time .d { font-size: 10px; }
    .l-time .t { font-size: 13px; }
    .l-league { display: none; }
    .l-status { width: 45px; }
    .l-status .badge { padding: 2px 4px; font-size: 10px; width: 100%; box-sizing: border-box; }
    .l-team { font-size: 13px; gap: 4px; }
    .l-team img { width: 20px; height: 20px; }
    .l-team span { max-width: 80px; }
    .l-score { width: 50px; font-size: 15px; }
    .l-score.is-live { font-size: 16px; }
    .l-action { width: 100%; margin-top: 8px; border-top: 1px dashed #f0f0f0; padding-top: 10px; text-align: center; }
    .l-action span { width: 80%; padding: 8px 0; }
    
    .seo-links-grid { grid-template-columns: repeat(2, 1fr); padding: 15px; gap: 8px; }
    .seo-links-grid a { font-size: 12px; padding: 6px; }
    .seo-article-block { padding: 15px; margin: 10px 15px; }
    
    .col-side-data { flex-direction: column; padding: 0 15px; }
}