/*
Theme Name:   MH Magazine Child
Template:     mh-magazine
Version:      1.0.4
*/

/* =========================================================
   0. 字体：必须放在所有规则最前面
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700;900&display=swap');

/* =========================================================
   1. 首页：保持最宽
   ========================================================= */
.home .mh-container-outer,
.home .mh-container,
.home .mh-container-inner,
.page-template-template-homepage .mh-container-outer,
.page-template-template-homepage .mh-container,
.page-template-template-homepage .mh-container-inner {
    max-width: 1431px;
}

/* =========================================================
   2. 除首页和栏目页外：整站容器收窄并居中（页头 + 正文 + 页脚）
   ========================================================= */
body:not(.home):not(.archive) .mh-container-outer,
body:not(.home):not(.archive) .mh-container,
body:not(.home):not(.archive) .mh-container-inner {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

body:not(.home):not(.archive) .mh-container-outer {
    margin-top: 25px;
    margin-bottom: 25px;
}

/* =========================================================
   3. 除首页和栏目页外：内部区域占满收窄后的容器
   ========================================================= */
body:not(.home):not(.archive) .mh-main,
body:not(.home):not(.archive) .mh-content {
    width: 100%;
    max-width: 100%;
    float: none;
    margin: 0 auto;
}

body:not(.home):not(.archive) .mh-wrapper {
    box-sizing: border-box;
}

/* =========================================================
   4. 除首页和栏目页外：隐藏侧边栏
   ========================================================= */
body:not(.home):not(.archive) .mh-sidebar,
body:not(.home):not(.archive) .mh-sidebar-2 {
    display: none;
}

/* =========================================================
   5. 移动端不做限制
   ========================================================= */
@media (max-width: 900px) {
    body:not(.home):not(.archive) .mh-container-outer,
    body:not(.home):not(.archive) .mh-container,
    body:not(.home):not(.archive) .mh-container-inner {
        max-width: 100%;
    }
}

/* ============================================================
   每日经济 · 商业频道 文章页样式
   ============================================================ */

/* ========== 6. 文章标题：宋体 + 放大居中 ========== */
h1.entry-title {
    font-family: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN",
                 "Songti SC", "STSong", "SimSun", "宋体",
                 Georgia, "Times New Roman", serif !important;
    font-weight: 700 !important;
    font-size: 36px !important;
    line-height: 1.4 !important;
    letter-spacing: 0.5px !important;
    color: #1a1a1a !important;
    text-align: center !important;
    margin-bottom: 20px !important;
}

/* ========== 7. 正文：宋体 + 长文阅读优化 ========== */
.entry-content,
.entry-content p,
.entry-content span,
.entry-content a,
.entry-content strong {
    font-family: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN",
                 "Songti SC", "STSong", "SimSun", "宋体",
                 Georgia, "Times New Roman", serif !important;
}

.entry-content {
    font-size: 17px !important;
    line-height: 2 !important;
    color: #222 !important;
    letter-spacing: 0.2px;
}

.entry-content p {
    font-size: 17px !important;
    line-height: 2 !important;
    text-indent: 2em !important;
    margin-bottom: 0.9em !important;
    text-align: justify !important;
    text-justify: inter-ideograph;
    color: #222 !important;
}

/* ========== 8. 正文里链接的样式 ========== */
.entry-content a {
    color: #1a4d8f !important;
    text-decoration: none;
    border-bottom: 1px dotted #1a4d8f;
}
.entry-content a:hover {
    color: #0d2f5c !important;
    border-bottom-style: solid;
}

/* ========== 9. 元信息（日期/分类）用无衬线衬托 ========== */
.entry-header .mh-meta.entry-meta,
.mh-breadcrumb {
    font-family: "Titillium Web", -apple-system, "PingFang SC",
                 "Microsoft YaHei", sans-serif !important;
    letter-spacing: 0.3px;
}

.entry-header .mh-meta.entry-meta {
    text-align: center !important;
}

/* ========== 10. 标题栏 + 正文：限宽 900px 居中 ========== */
.entry-header,
.entry-content {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    float: none;
}
.entry-content {
    padding-left: 0;
    padding-right: 0;
}

/* ========== 11. 小屏下恢复满宽，并缩小标题 ========== */
@media (max-width: 1000px) {
    .entry-header,
    .entry-content {
        max-width: 100%;
    }
}
@media (max-width: 767px) {
    h1.entry-title {
        font-size: 28px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }
}