/* ====================================================
   智能SEO长尾词落地页 - 专属 UI 样式 (PC + 移动端终极版)
   ==================================================== */

/* --- 全局与骨架 --- */
.seo-hub-wrap { background: #f5f6f7; padding: 20px 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.clean-breadcrumb { font-size: 14px; color: #666; margin-bottom: 20px; padding: 0 15px; display: flex; align-items: center; flex-wrap: wrap; }
.clean-breadcrumb a { color: #666; text-decoration: none; transition: 0.2s; }
.clean-breadcrumb a:hover { color: var(--theme-primary); }
.clean-breadcrumb .sep { margin: 0 10px; color: #ccc; font-size: 12px; }
.clean-breadcrumb .cur { color: #999; }

.seo-card { background: #fff; border-radius: 8px; padding: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); margin-bottom: 20px; }
.seo-sec-title { font-size: 18px; font-weight: bold; color: #333; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #f0f0f0; display: flex; justify-content: space-between; align-items: baseline; }
.seo-sec-title span { border-bottom: 2px solid var(--theme-primary); padding-bottom: 10px; margin-bottom: -12px; display: inline-block; }

/* --- 1. 顶部 Hero 焦点区 --- */
.seo-hero { display: flex; gap: 25px; align-items: stretch; flex-wrap: wrap; }
.seo-img-box { flex-shrink: 0; width: 400px; height: 260px; border-radius: 8px; overflow: hidden; position: relative; background: #111; cursor: pointer; }
.seo-img-box img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: 0.4s ease; }
.seo-img-box:hover img { opacity: 0.6; transform: scale(1.05); }
.seo-hero-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: rgba(255,255,255,0.9); font-size: 64px; z-index: 2; text-shadow: 0 4px 10px rgba(0,0,0,0.5); pointer-events: none; transition: 0.3s ease; }
.seo-img-box:hover .seo-hero-play { color: #fff; transform: translate(-50%,-50%) scale(1.1); }
.seo-img-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px 15px 15px; background: linear-gradient(transparent,rgba(0,0,0,0.8)); color: #fff; font-size: 13px; z-index: 3; }

.seo-info-box { flex: 1; min-width: 300px; display: flex; flex-direction: column; }
.seo-h1 { font-size: 24px; font-weight: bold; color: #222; margin-top: 0; margin-bottom: 15px; line-height: 1.4; border-left: 4px solid var(--theme-primary); padding-left: 12px; }
.seo-ai-text { font-size: 15px; color: #555; line-height: 1.8; background: #fdfdfd; border: 1px dashed #eee; padding: 15px; border-radius: 6px; flex: 1; text-align: justify; }
.seo-ai-text strong { color: var(--theme-primary); font-weight: bold; }

.seo-live-actions { margin-top: 20px; display: flex; gap: 15px; flex-wrap: wrap; }
.seo-jzt-live-btn { display: inline-flex; gap: 6px; align-items: center; justify-content: center; background: var(--theme-primary); color: #fff; font-size: 16px; font-weight: bold; padding: 12px 30px; border-radius: 50px; text-decoration: none; transition: 0.3s; box-shadow: 0 4px 15px rgba(var(--theme-primary-rgb),0.3); }
.seo-jzt-live-btn:hover { background: var(--theme-primary-hover); color: #fff; transform: translateY(-2px); }

/* --- 2. 相关赛程卡片 --- */
.seo-match-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 15px; }
.sm-card { display: flex; align-items: center; padding: 12px; background: #fafafa; border: 1px solid #eaeaea; border-radius: 6px; text-decoration: none; color: #333; transition: 0.3s; }
.sm-card:hover { background: #fff; border-color: var(--theme-primary); box-shadow: 0 5px 15px rgba(0,0,0,0.05); transform: translateY(-2px); }
.sm-time { font-size: 12px; color: #888; width: 45px; text-align: center; line-height: 1.2; flex-shrink: 0; }
.sm-vs { flex: 1; display: flex; justify-content: space-between; align-items: center; padding: 0 10px; min-width: 0; }
.sm-team { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
.sm-team img { width: 20px; height: 20px; object-fit: contain; }
.sm-status { font-size: 12px; background: #eee; color: #666; padding: 2px 6px; border-radius: 3px; }
.sm-status.live { background: var(--theme-primary); color: #fff; font-weight: bold; }

/* --- 3. 资讯与视频矩阵 --- */
.seo-matrix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.matrix-ul { list-style: none; padding: 0; margin: 0; }
.matrix-ul li { padding: 10px 0; border-bottom: 1px dashed #eee; }
.matrix-ul li a { color: #444; text-decoration: none; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.matrix-ul li a:hover { color: var(--theme-primary); }

.tag-cloud-dense { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud-dense a { padding: 5px 12px; background: #f6f7f7; color: #555; font-size: 13px; border-radius: 4px; text-decoration: none; border: 1px solid #e5e5e5; transition: 0.2s; }
.tag-cloud-dense a:hover { background: var(--theme-primary); color: #fff; border-color: var(--theme-primary); }

/* --- 4. 猜你喜欢模块 (现代独立胶囊条 UI) --- */
.guess-like-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.guess-like-list li { 
    display: flex; align-items: center; justify-content: space-between; 
    /* 🚨 核心杀招1：强杀老代码的15px内边距，强制抽脂！ */
    padding: 8px 15px !important; 
    /* 🚨 核心杀招2：强上浅灰底色，逼出胶囊的轮廓！ */
    background: #f8f9fa !important; 
    border-radius: 6px; 
    transition: all 0.3s ease; 
    border: 1px solid transparent; 
    margin-bottom: 0 !important; 
}
.guess-like-list li:hover { background: #fff !important; border-color: var(--theme-primary); box-shadow: 0 4px 12px rgba(0,0,0,0.05); transform: translateY(-2px); }
.guess-like-list a { display: flex; align-items: center; flex: 1; min-width: 0; color: #444; text-decoration: none; font-size: 14px; transition: all 0.2s ease; }
.guess-like-list a:hover { color: var(--theme-primary); }
.guess-like-list a i { color: var(--theme-primary); margin-right: 8px; font-size: 16px; opacity: 0.8; flex-shrink: 0; }
.guess-like-list a span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guess-like-list .kw-badge { font-size: 11px; background: #fff; color: var(--theme-primary); border: 1px solid var(--theme-primary); padding: 2px 6px; border-radius: 4px; flex-shrink: 0; font-weight: bold; margin-left: 10px; }

/* 404 错误页 */
.error-wrap { padding: 80px 15px; text-align: center; background: #fff; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); margin: 40px auto; max-width: 800px; font-family: -apple-system, sans-serif; }
.error-code { font-size: 100px; font-weight: 900; color: var(--theme-primary); line-height: 1; letter-spacing: -2px; }
.error-text { font-size: 22px; color: #333; font-weight: bold; margin: 15px 0; }
.error-desc { font-size: 15px; color: #666; margin-bottom: 30px; }
.error-actions a { display: inline-block; padding: 12px 30px; background: var(--theme-primary); color: #fff; border-radius: 50px; text-decoration: none; font-weight: bold; transition: 0.3s; box-shadow: 0 4px 15px rgba(249,115,22,0.3); }
.error-actions a:hover { transform: translateY(-3px); background: var(--theme-primary-hover); }
.error-recommend { margin-top: 50px; text-align: left; border-top: 1px dashed #eee; padding-top: 30px; }
.error-recommend h3 { font-size: 16px; font-weight: bold; color: #333; margin-bottom: 15px; border-left: 3px solid var(--theme-primary); padding-left: 10px; }
.error-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.error-tags a { padding: 6px 15px; background: #f5f6f7; color: #555; text-decoration: none; border-radius: 4px; font-size: 13px; transition: 0.2s; }
.error-tags a:hover { background: var(--theme-primary); color: #fff; }


/* ====================================================
   🚨 移动端专属总控台 (防撑爆 + 间距优化) 🚨
   ==================================================== */
@media (max-width: 768px) {
    /* 0. 终极锁死盒模型，绝不允许横向溢出 */
    html, body { overflow-x: hidden; width: 100vw; margin: 0; padding: 0; }
    * { box-sizing: border-box !important; }
    
    .seo-hub-wrap { padding: 10px 0; overflow: hidden; width: 100%; }
    .clean-breadcrumb { margin-bottom: 10px; font-size: 13px; padding: 0 10px; }
    
    /* 🚨 修复卡片 padding 过大问题 🚨 */
    .seo-card { padding: 15px !important; margin-bottom: 12px; margin-left: 10px; margin-right: 10px; width: calc(100% - 20px); border-radius: 6px; }
    .seo-sec-title { font-size: 16px; margin-bottom: 15px; }

    /* 1. 顶部海报紧凑化 */
    .seo-img-box { width: 100%; height: 200px; border-radius: 6px; }
    .seo-hero-play { font-size: 50px; }
    .seo-img-overlay { padding: 20px 10px 10px; font-size: 12px; }
    .seo-info-box { min-width: 100%; }
    .seo-h1 { font-size: 18px; margin-bottom: 10px; }
    
    /* AI文章区强制断行，绝不撑爆 */
    .seo-ai-text { font-size: 14px; padding: 12px; width: 100%; word-wrap: break-word; overflow-wrap: break-word; word-break: break-all; }
    .seo-ai-text p { white-space: normal !important; }
    .seo-jzt-live-btn { width: 100%; font-size: 15px; padding: 10px 0; }

    /* 2. 赛程列表防溢出 */
    .seo-match-grid { grid-template-columns: 1fr; gap: 10px; width: 100%; }
    .sm-card { padding: 10px; width: 100%; justify-content: space-between; }
    .sm-vs { padding: 0 5px; }
    .sm-team { font-size: 12px; max-width: 80px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; text-align: center; }
    .sm-team img { width: 24px; height: 24px; display: block; margin: 0 auto 4px; }
    .sm-time { width: auto; text-align: left; }
    .sm-status { font-size: 10px; padding: 2px 4px; }

    /* 3. 视频和资讯双列变单列/双列适配 */
    .seo-matrix-grid { grid-template-columns: 1fr; gap: 15px; width: 100%; }
    div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr 1fr !important; gap: 10px !important; width: 100%; }
    .matrix-ul li { width: 100%; display: flex; align-items: flex-start; padding: 8px 0; }
    .matrix-ul li a { font-size: 14px; white-space: normal; -webkit-line-clamp: 2; /* 移动端改为2行显示，拒绝硬截断 */ }

/* 🚨 4. 猜你喜欢模块：移动端胶囊条适配 🚨 */
    .guess-like-list { width: 100%; gap: 6px; display: flex; flex-direction: column; overflow: hidden; }
    .guess-like-list li { 
        padding: 8px 10px !important; /* 移动端再次强制抽脂 */
        width: 100%; 
        background: #f8f9fa !important; /* 强制底色 */
        border-radius: 6px; 
        border: none; 
        margin-bottom: 0 !important; 
    }
    .guess-like-list a { font-size: 13px; min-width: 0; }
    .guess-like-list a i { font-size: 14px; margin-right: 6px; }
    .kw-badge { transform: scale(0.9); transform-origin: right center; margin-left: 5px; }

    /* 5. 底部标签云与图谱防溢出 */
    .tag-cloud-dense { width: 100%; gap: 6px; }
    .tag-cloud-dense a { font-size: 12px; padding: 4px 10px; }
    
    .jzt-global-spider-net { margin: 10px; padding: 15px; width: calc(100% - 20px); box-sizing: border-box; }
    .gsn-body { width: 100%; gap: 6px; }
    .gsn-body a { font-size: 12px; padding: 4px 8px; display: inline-block; }
}