@charset "utf-8";
/* ==========================================================================
   bgwzw.net 阅读增强样式（tpure 主题追加文件）
   位置：zb_users/theme/tpure/include/mobile.css
   引用：tpure/template/header.php 中主样式表之后新增的一行 <link>
   原则：只做“阅读可读性 + 手机触控”相关微调，不改配色、不改版式骨架。
         除第 1 条行高外，其余全部写在 max-width 媒体查询里，
         因此电脑端（>1080px）几乎完全保持主题原样。
   日期：2026-10-24
   ========================================================================== */

/* ---------- 0. 基础兜底（全局，安全无害） ---------- */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img,
video,
iframe,
object,
embed,
table,
pre {
    max-width: 100%;
}

img {
    height: auto;
}

/* ---------- 1. 正文行高：主题原生 2.0，收到规范区间 1.6~1.8 ---------- */
.single,
.postcon {
    line-height: 1.8;
}

/* ==========================================================================
   2. 平板 / 手机（<= 1080px）
   ========================================================================== */
@media screen and (max-width: 1080px) {
    /* --- 2.1 正文字号与行高 --- */
    body {
        font-size: 16px;
        line-height: 1.7;
        color: #333;
    }
    .single,
    .postcon {
        font-size: 17px;
        line-height: 1.75;
    }
    .single p {
        margin-bottom: 1.1em;
    }

    /* --- 2.2 关掉“阅读剩余 xx%”折叠，手机上直接读全文 --- */
    .postcon {
        height: auto !important;
        overflow: visible;
    }
    .teles,
    .telesmore {
        display: none !important;
    }

    /* --- 2.3 宽表格：容器内横向滑动，不撑破页面 --- */
    .single table,
    .postcon table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-collapse: collapse;
    }
    .single table th,
    .single table td,
    .postcon table th,
    .postcon table td {
        padding: 8px 10px;
        font-size: 15px;
        line-height: 1.6;
    }
    .single table th,
    .postcon table th {
        font-weight: 600;
        background: #f6f8fa;
        white-space: nowrap;
    }

    /* --- 2.4 代码块：横向滚动，不溢出 --- */
    pre {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 14px;
        font-size: 14px;
        line-height: 1.6;
        border-radius: 4px;
        background: #f6f8fa;
    }
    pre code {
        display: block;
        white-space: pre;
        word-break: normal;
        word-wrap: normal;
        background: none;
        padding: 0;
    }
    .single code,
    .postcon code {
        font-family: Menlo, Consolas, "Courier New", monospace;
    }
    .single p > code,
    .single li > code,
    .postcon p > code,
    .postcon li > code {
        padding: 1px 5px;
        font-size: 0.92em;
        color: #c7254e;
        white-space: normal;
        word-break: break-word;
        border-radius: 3px;
        background: #f7f7f9;
    }

    /* --- 2.5 顶部导航：折叠按钮与菜单项触控区 >= 44px --- */
    .menuico {
        width: 44px;
        height: 44px;
        top: 3px;
        right: 6px;
    }
    .menu.on {
        top: 50px;
        border-top: 1px solid #e4e8eb;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    }
    .menu ul li,
    .menu.on li {
        line-height: 44px;
        border-bottom: 1px solid #eef1f4;
    }
    .menu ul li a,
    .menu.on li a {
        min-height: 44px;
        line-height: 44px;
        padding: 0 16px;
        font-size: 16px;
        display: block;
    }
    .menu ul li.subcate .arrow,
    .menu.on li.subcate .arrow {
        width: 44px;
        height: 44px;
        line-height: 44px;
    }
    .menu ul li.subcate .arrow::before,
    .menu.on li.subcate .arrow::before {
        line-height: 44px;
    }
    .menu ul li.subcate.slidedown .subnav a {
        min-height: 44px;
        line-height: 44px;
    }

    /* --- 2.6 其他可点区域放大 --- */
    .pagebar a,
    .cmtpagebar a,
    .pagebar .now-page,
    .cmtpagebar .now-page {
        min-height: 36px;
        padding: 6px 12px;
        line-height: 24px;
    }
    .post .tags a {
        min-height: 36px;
        line-height: 34px;
    }
    .cmtsubmit button {
        min-height: 44px;
    }
    a.backtotop {
        width: 44px;
        height: 44px;
        line-height: 44px;
    }

    /* --- 2.7 对比度：浅灰小字加深到可读水平 --- */
    .post .intro,
    .post .intro a,
    .post .info,
    .post .tags,
    .sitemap,
    .sitemap a,
    .cmtsubmit span {
        color: #5c6670;
    }
    .footer,
    .footer a {
        color: #5c6670;
    }
}

/* ==========================================================================
   3. 手机（<= 750px）
   ========================================================================== */
@media screen and (max-width: 750px) {
    /* --- 3.1 页面两侧留白，卡片不贴边 --- */
    .wrap {
        padding: 0 10px;
    }
    .block {
        padding: 16px 14px 10px;
        border-radius: 6px;
    }

    /* --- 3.2 正文 18px / 行高 1.75 --- */
    .single {
        font-size: 18px;
        line-height: 1.75;
        padding-top: 16px;
    }
    /* --- 3.3 标题层级：文章大标题 > 小标题 > 正文 --- */
    .post > h1,
    .posttitle h1 {
        margin-bottom: 10px;
        font-size: 23px;
        font-weight: 600;
        line-height: 1.45;
    }
    .single h2 {
        font-size: 19px;
    }
    .single h3 {
        font-size: 17px;
    }
    .single h4,
    .single h5,
    .single h6 {
        font-size: 16px;
    }

    /* --- 3.4 首页列表 --- */
    .post h2,
    .post h1 {
        font-size: 20px;
        line-height: 1.45;
    }
    .post .intro,
    .post .intro a {
        font-size: 16px;
        line-height: 1.7;
    }
    .sitemap,
    .sitemap a {
        font-size: 14px;
    }
    .sitemap {
        padding: 0 12px;
    }
    .banner {
        font-size: 20px;
        line-height: 1.45;
    }
    .hellotip {
        font-size: 20px;
        line-height: 1.5;
    }
    .footer {
        font-size: 13px;
        line-height: 1.6;
    }
}

/* ==========================================================================
   4. 小屏（<= 380px）
   ========================================================================== */
@media screen and (max-width: 380px) {
    .post > h1,
    .posttitle h1 {
        font-size: 21px;
    }
    .single {
        font-size: 17px;
    }
}
