/* ====================================================
   千万级体育门户：核心 SEO 大词聚合页 (完美响应式版)
   ==================================================== */
.core-hub-wrap { background-color: #f5f6f7; padding-bottom: 50px; font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif; }

/* --- 1. 面包屑与霸屏 H1 --- */
.core-seo-breadcrumb { font-size: 14px; color: #666; padding: 15px 0 5px; display: flex; align-items: center; }
.core-seo-breadcrumb i { color: var(--theme-primary, #d63638); margin-right: 6px; }
.core-seo-breadcrumb a { color: #555; text-decoration: none; transition: 0.2s; font-weight: 500; }
.core-seo-breadcrumb a:hover { color: var(--theme-primary, #d63638); }
.core-seo-breadcrumb .sep { margin: 0 10px; color: #ccc; font-size: 12px; }
.core-seo-breadcrumb .cur { color: #999; }

.core-seo-h1 { font-size: 26px; font-weight: 900; color: #222; margin: 15px 0 25px; line-height: 1.4; text-shadow: 1px 1px 0 #fff; }

/* --- 2. 顶部超级枢纽区 --- */
.core-hero { 
    /* 移除之前的纯渐变背景 */
    /* background: linear-gradient(135deg, #111827 0%, var(--theme-primary, #d63638) 100%); */
    
    background-color: #111827; /* 兜底底色 */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    
    padding: 25px; 
    border-radius: 12px;
    margin-bottom: 30px; 
    box-shadow: 0 10px 30px rgba(214,54,56,0.15); 
    position: relative; 
    overflow: hidden; 
}

/* 新增：深色渐变遮罩，保证背景图上的文字能看清 */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(214, 54, 56, 0.7) 100%);
    z-index: 1;
}

/* 新增：提升内容层级 */
.hero-content-zindex {
    position: relative;
    z-index: 2;
}
.hero-top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.15); padding: 0 10px 15px 10px; }
.hero-title { font-size: 20px; font-weight: bold; color: #fff; display: flex; align-items: center; gap: 8px; }
.hero-pulse-time { font-size: 13px; color: rgba(255,255,255,0.8); background: rgba(0,0,0,0.2); padding: 5px 12px; border-radius: 4px; }

/* --- 焦点走马灯 --- */
.core-ticker-swiper { margin-bottom: 25px; }
.core-ticker-card { 
    display: flex; flex-direction: column; background: rgba(255,255,255,0.95); 
    border-radius: 8px; padding: 15px; text-decoration: none; color: #333; 
    transition: 0.3s; border: 2px solid transparent; 
}
.core-ticker-card:hover { transform: translateY(-4px); border-color: var(--theme-primary, #d63638); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.core-ticker-card.is-live { border-color: #fca5a5; background: #fff; }
.ct-status { font-size: 12px; font-weight: bold; color: #666; text-align: center; margin-bottom: 10px; background: #f1f5f9; padding: 4px 0; border-radius: 4px; }
.is-live .ct-status { background: #fee2e2; color: #e11d48; animation: coreBlink 1.5s infinite; }
.ct-teams { display: flex; justify-content: space-between; align-items: center; }
.ct-team { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ct-team img { width: 36px; height: 36px; object-fit: contain; }
.ct-team span { font-size: 13px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80px; text-align: center; }
.ct-vs { font-size: 14px; font-weight: bold; color: #cbd5e1; }
.ct-time { text-align: center; font-size: 12px; color: #94a3b8; margin-top: 12px; font-family: Arial, sans-serif; }
@keyframes coreBlink { 50% { opacity: 0.5; } }

/* --- 快捷按钮区 (修正对齐) --- */
.core-global-sources { display: flex; align-items: center; background: rgba(0,0,0,0.2); padding: 15px 20px; border-radius: 8px; flex-wrap: wrap; gap: 15px; }
.source-label { color: #fde047; font-weight: bold; font-size: 15px; flex-shrink: 0; }
.source-btns { display: flex; flex-wrap: wrap; gap: 12px; flex: 1; }
.cg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); color: #fff; padding: 10px 20px; border-radius: 6px; font-size: 14px; font-weight: bold; text-decoration: none; transition: 0.3s; }
.cg-btn:hover { background: #fff; color: var(--theme-primary, #d63638); box-shadow: 0 0 15px rgba(255,255,255,0.3); }

/* --- 主体区块 --- */
.core-section { background: #fff; border-radius: 8px; border: 1px solid #e2e8f0; margin-bottom: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); overflow: hidden; }
.core-sec-hd { display: flex; justify-content: space-between; align-items: center; padding: 18px 25px; background: #fdfdfd; border-bottom: 1px solid #e2e8f0; }
.core-sec-hd h2 { margin: 0; font-size: 18px; font-weight: bold; color: #1e293b; border-left: 4px solid var(--theme-primary, #d63638); padding-left: 12px; }
.core-sec-hd a { font-size: 13px; color: #64748b; text-decoration: none; }
.core-sec-hd a:hover { color: var(--theme-primary, #d63638); }
.core-sec-bd { padding: 25px; }

.seo-article-area .content-format { font-size: 15px; line-height: 1.8; color: #334155; text-align: justify; }
.seo-article-area .content-format p { margin-bottom: 15px; }
.seo-article-area .content-format h2, .seo-article-area .content-format h3 { font-size: 18px; font-weight: bold; color: #0f172a; margin: 25px 0 15px; padding-bottom: 8px; border-bottom: 1px dashed #e2e8f0; }

/* 赛程列表 */
.core-match-row { display: flex; align-items: center; padding: 15px 25px; border-bottom: 1px dashed #f1f5f9; text-decoration: none; color: #334155; transition: 0.2s; }
.core-match-row:hover { background: #f8fafc; transform: scale(1.002); }
.core-match-row:last-child { border-bottom: none; }
.cm-time { width: 100px; color: #64748b; font-size: 14px; flex-shrink: 0; }
.cm-team { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: bold; min-width: 0; }
.cm-team img { width: 28px; height: 28px; object-fit: contain; }
.cm-team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.core-match-row .cm-team:nth-child(2) { justify-content: flex-end; text-align: right; }
.core-match-row .cm-team:nth-child(4) { justify-content: flex-start; text-align: left; }
.cm-vs { width: 80px; text-align: center; font-size: 13px; color: #94a3b8; font-weight: bold; flex-shrink: 0; }
.cm-vs.is-live { color: #e11d48; animation: coreBlink 1.5s infinite; }
.cm-act { width: 100px; text-align: right; flex-shrink: 0; }
.act-btn { display: inline-block; padding: 6px 14px; font-size: 13px; color: #64748b; background: #f1f5f9; border-radius: 4px; transition: 0.2s; }
.core-match-row:hover .act-btn { background: #e2e8f0; color: #334155; }
.act-btn.live { background: var(--theme-primary, #d63638); color: #fff; font-weight: bold; border-radius: 20px; }
.core-match-row:hover .act-btn.live { background: #b02a2b; color: #fff; }

.core-bottom-matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 10px; }
.matrix-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); overflow: hidden; }
.mc-hd { padding: 18px 25px; background: #fdfdfd; border-bottom: 1px solid #f1f5f9; font-size: 16px; font-weight: bold; color: #1e293b; }
.mc-bd { padding: 25px; }

.core-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.core-team-card { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 8px; 
    padding: 12px 5px; 
    background: #f8fafc; 
    border: 1px solid #f1f5f9; 
    border-radius: 6px; 
    text-decoration: none; 
    color: #334155; 
    transition: 0.2s; 
    min-width: 0; 
    overflow: hidden; 
    box-sizing: border-box; 
}
.core-team-card:hover { border-color: var(--theme-primary, #d63638); background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.05); transform: translateY(-3px); }
.core-team-card img { width: 40px; height: 40px; object-fit: contain; }
.core-team-card span { font-size: 13px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; text-align: center; }

.core-tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.core-tag-cloud a { padding: 8px 16px; font-size: 13px; color: #475569; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 4px; text-decoration: none; transition: 0.2s; }
.core-tag-cloud a:hover { background: var(--theme-primary, #d63638); color: #fff; border-color: var(--theme-primary, #d63638); }

/* --- 📱 移动端极限优化适配 --- */
@media (max-width: 768px) {
    /* 1. H1 标题进一步缩小，防止折行太丑 */
    .core-seo-h1 { font-size: 16px; margin: 10px 0 15px; line-height: 1.5; }
    .core-seo-breadcrumb { font-size: 12px; padding: 10px 0 5px; }

    /* 2. 顶部大厅：处理贴边和内边距 */
    .core-hero { padding: 20px 15px; border-radius: 8px; margin-bottom: 15px; }
    .hero-top-bar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 5px 15px 5px; }
    .hero-title { font-size: 18px; }
    .hero-pulse-time { font-size: 12px; padding: 4px 10px; }

    /* 3. 直播线路：强制 2列网格，完美对齐 */
    .core-global-sources { flex-direction: column; align-items: flex-start; padding: 15px; gap: 12px; }
    .source-label { font-size: 14px; margin-bottom: 5px; display: block; }
    .source-btns { 
        display: grid; 
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px; 
        width: 100%; 
    }
    .cg-btn { 
        padding: 10px 0; 
        font-size: 13px; 
        width: 100%; 
        box-sizing: border-box; 
        justify-content: center; 
    }

    /* 4. 底部矩阵：完美解决右侧没有边距溢出的 BUG */
    .core-bottom-matrix { grid-template-columns: 1fr; gap: 15px; }
    
    .csw-bd { padding: 15px !important; box-sizing: border-box; width: 100%; overflow: hidden; }
    
    .core-team-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 8px; 
        width: 100%; 
        box-sizing: border-box;
    }
    
    /* 5. 赛程列表压缩 */
    .core-section { margin-bottom: 15px; border-radius: 6px; }
    .core-sec-hd { padding: 12px 15px; }
    .core-sec-hd h2 { font-size: 15px; }
    .core-match-row { padding: 12px 10px; }
    .cm-time { width: 65px; font-size: 11px; }
    .cm-team { font-size: 12px; gap: 5px; }
    .cm-team img { width: 20px; height: 20px; }
    .cm-vs { width: 45px; font-size: 11px; }
    .cm-act { display: none; } /* 移动端去掉操作按钮以节省空间 */
}