/* =========================================================
   河北宇红苗木 - 文章详情「公众号式」手机阅读版式
   仅由 templets/default/article_article.htm 引用，不影响其他页面
   品牌主色：#b0344e（宇红红）
   ========================================================= */

/* 文章正文区：浅灰底上的白色阅读卡片（仿公众号） */
#main_ny { padding: 0 !important; }
.wx-page {
    max-width: 680px;
    margin: 0 auto;
    background: #fff;
    min-height: 70vh;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
/* 文章页顶部留白：#header 是 position:absolute（脱离文档流），
   而文章页没有 banner 图来占位，内容会顶到 logo/导航下方。
   此处按 header 高度（桌面 88px）预留空间，避让重叠。
   平板及以下 header 更矮，用 62px。 */
#main_ny .wx-page {
    padding-top: 104px;
}
@media (max-width: 991px) {
    #main_ny .wx-page {
        padding-top: 78px;
    }
}

/* 面包屑 */
.wx-page .address {
    height: auto !important;
    padding: 16px 20px !important;
    font-size: 13px;
    color: #999;
    border-bottom: 1px solid #f2f2f2;
}
.wx-page .address:before { display: none; }
.wx-page .address a { color: #999; }
.wx-page .address a:hover { color: #b0344e; }

/* 封面大图（litpic），与公众号一样顶部满幅 */
.wx-cover { width: 100%; line-height: 0; }
.wx-cover-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 460px;
    object-fit: cover;
}

/* 标题 */
.wx-title {
    font-size: 22px !important;
    line-height: 1.45 !important;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: .3px;
    padding: 22px 20px 6px;
    margin: 0;
}

/* 元信息行：作者 · 日期 · 阅读量 */
.wx-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 4px 20px 18px;
    font-size: 13px;
    color: #999;
    border-bottom: 1px solid #f2f2f2;
}
.wx-meta span { display: inline-block; }
.wx-meta span:empty { display: none; }
.wx-meta .m-reads { margin-left: auto; }

/* 正文（覆盖 body 的 !important 14px） */
.wx-content {
    padding: 6px 20px 8px;
    font-size: 17px !important;
    line-height: 1.8 !important;
    color: #3f3f3f !important;
    letter-spacing: .3px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.wx-content p, .wx-content div { margin: 0 0 1.1em !important; }
.wx-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 14px auto !important;
    border-radius: 4px;
}
.wx-content h2 {
    font-size: 19px !important;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 1.4em 0 .7em !important;
}
.wx-content h3 {
    font-size: 17px !important;
    font-weight: 700;
    color: #1a1a1a;
    margin: 1.2em 0 .6em !important;
}
.wx-content blockquote {
    background: #f7f7f7;
    border-left: 4px solid #b0344e;
    padding: 10px 14px;
    color: #666;
    margin: 1.2em 0 !important;
    border-radius: 0 4px 4px 0;
}
.wx-content ul, .wx-content ol { padding-left: 1.5em; margin: 1em 0 !important; }
.wx-content li { margin: .4em 0; }
.wx-content hr { border: none; border-top: 1px solid #eee; margin: 1.6em 0 !important; }
.wx-content a {
    color: #b0344e;
    text-decoration: none;
    border-bottom: 1px solid rgba(176,52,78,.35);
}
.wx-content strong, .wx-content b { color: #1a1a1a; font-weight: 700; }

/* 文末卡片（仿公众号文末账号信息） */
.wx-end { margin: 28px 20px 0; padding-top: 22px; border-top: 1px solid #f2f2f2; }
.wx-endtag { text-align: center; color: #ccc; font-size: 13px; letter-spacing: 3px; margin-bottom: 20px; }
.wx-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #fafafa;
    border-radius: 10px;
}
.wx-brand .wx-logo {
    flex: 0 0 46px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: #b0344e;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700;
}
.wx-brand .wx-bname { font-size: 15px; font-weight: 700; color: #1a1a1a; }
.wx-brand .wx-bdesc { font-size: 12px; color: #999; margin-top: 3px; }
.wx-brand .wx-blink {
    margin-left: auto;
    font-size: 13px;
    color: #b0344e;
    border: 1px solid #b0344e;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
}
.wx-src-note { text-align: center; color: #bbb; font-size: 12px; margin-top: 18px; }

/* 上一篇 / 下一篇 */
.wx-page .chose_art {
    height: auto !important;
    padding: 20px !important;
    border-top: 1px solid #f2f2f2;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.wx-page .chose_art a {
    font-size: 13px;
    color: #666;
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wx-page .chose_art a:hover { color: #b0344e; }

/* 移动端：更沉浸，贴近公众号 */
@media (max-width: 767px) {
    .wx-title { font-size: 20px !important; }
    .wx-content { font-size: 17px !important; padding: 6px 16px 8px; }
    .wx-title, .wx-meta, .wx-end { padding-left: 16px; padding-right: 16px; }
    .wx-page .address { padding: 14px 16px !important; }
    .wx-brand { padding: 14px; }
    .wx-brand .wx-blink { padding: 6px 12px; }
}

/* ==========================================================
   文章页封面说明（2026-10-03 更新）
   详情页顶部封面图已从 article_article.htm 中移除：
   封面图（litpic）现在只用于列表页缩略图与分享图，
   详情页只展示正文，避免同一张照片上下出现两次。
   因此原「.wx-cover裁切补丁」已随模板一并删除。
   若日后要恢复详情页封面，把 CSS 里 .wx-cover 相关规则
   连同模板中的注释块一起恢复即可。
   ========================================================== */
