@charset "utf-8";
/* ============================================================
 * seo.css —— SEO 结构护栏 + 内链枢纽样式
 * 2026-09-20 新增；必须作为本站最后一个样式表加载
 * 目的：让新增的语义标签（h1/h2）与内链区块不改变既有视觉
 * ============================================================ */

/* ① h1 护栏：base.css 里 h1{font-size:60px}，这里让语义化标题完全继承父级样式 */
h1.ph1{
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    font-family: inherit;
    margin: 0;
    padding: 0;
    display: inline;
    vertical-align: baseline;
}

/* ② 文章页标题 div.mod-title 改成 h1 后保持原样（统一兜底） */
h1.mod-title{
    font-family: inherit;
}

/* ③ 文章页「相关标签」区块 */
.seo-tags{
    clear: both;
    margin: 14px 0 6px;
    padding: 10px 0 0;
    border-top: 1px dashed #e5e5e5;
    font-size: 13px;
    line-height: 26px;
    color: #666;
}
.seo-tags strong{ font-weight: bold; color: #333; }
.seo-tags a{
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 1px 9px;
    border: 1px solid #e2e2e2;
    border-radius: 2px;
    color: #0e6fb8;
    text-decoration: none;
    transition: all .2s;
}
.seo-tags a:hover{ background: #0e6fb8; border-color: #0e6fb8; color: #fff; }

/* ④ 文章页「同栏目更多内容」内链块 */
.seo-sametype{
    clear: both;
    margin: 16px 0 6px;
    padding: 12px 14px;
    background: #f8f9fa;
    border: 1px solid #ececec;
    font-size: 13px;
    line-height: 26px;
}
.seo-sametype strong{ display: block; margin-bottom: 4px; color: #333; }
.seo-sametype ul{ margin: 0; padding: 0; list-style: none; }
.seo-sametype li{
    float: left;
    width: 50%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: 12px;
    box-sizing: border-box;
}
.seo-sametype li a{ color: #555; text-decoration: none; }
.seo-sametype li a:hover{ color: #0e6fb8; }
.seo-sametype:after{ content: ""; display: block; clear: both; }

/* ⑤ 页脚内链枢纽（全站每页共用） */
.seo-hub{
    clear: both;
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 10px 18px;
    font-size: 12px;
    line-height: 24px;
    color: #888;
    text-align: left;
    border-top: 1px solid #ececec;
}
.seo-hub-row{ margin-bottom: 4px; word-break: break-all; }
.seo-hub strong{ color: #666; font-weight: bold; }
.seo-hub a{ color: #888; text-decoration: none; margin-right: 6px; }
.seo-hub a:hover{ color: #0e6fb8; }

/* ⑥ 标签聚合页 */
.seo-tag-h1{
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
    padding: 0;
    display: inline;
}
.seo-related-tags{
    margin: 14px 0;
    padding: 12px 14px;
    background: #f8f9fa;
    border: 1px solid #ececec;
    font-size: 13px;
    line-height: 26px;
}
.seo-related-tags strong{ color: #333; }

/* ⑦ 移动端：内链块两列改单列 */
@media screen and (max-width: 767px){
    .seo-sametype li{ float: none; width: auto; }
    .seo-hub{ padding: 10px 8px 14px; }
}

/* ⑧ 语义化标题：视觉与原标签完全一致，仅提升语义层级 */
h2.seo-h5{
    background-color: #3eadf2;
    color: #FFFFFF;
    display: block;
    font-family: "Microsoft YaHei", Simsun, Arial;
    font-size: 16px;
    font-weight: 700;
    height: 36px;
    line-height: 40px;
    margin: 20px 0 0;
    padding: 0 0 0 20px;
}
h2.seo-h2i{
    display: inline;
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: bold;
    line-height: inherit;
}
h2.seo-h2i-hub{ color: #666; }
h2.seo-h2i-rel{ color: #333; }

/* ⑨ 响应式图片：约束最大宽度，避免大图溢出容器（移动端关键） */
img{ max-width: 100%; height: auto; }

/* ⑩ 移动端：正文小标题自适应 */
@media screen and (max-width: 767px){
    h2.seo-h5{
        height: auto;
        line-height: 1.6;
        padding: 8px 10px;
        font-size: 15px;
        margin: 14px 0 0;
    }
}
