<style>
    /* ========== 分页容器（完全局部化） ========== */
    .pages-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 10px 0;
    }

    /* 单页纸张（普通页面，有留白） */
    .page-outer {
        width: 100%;
        aspect-ratio: 1 / 1.4142;
        background: #fdfaf6;
        border: 1px solid #d0c8b8;
        border-radius: 2px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        flex-shrink: 0;
    }

    /* 整页图片专用容器（无留白，图片直接填满） */
    .page-outer.page-fullimage {
        /* 覆盖普通页面的 flex 列布局 */
        display: block;
        position: relative;
    }
    .page-outer.page-fullimage .page-top,
    .page-outer.page-fullimage .page-bottom,
    .page-outer.page-fullimage .page-middle {
        display: none;  /* 隐藏顶部、底部和中间区域 */
    }
    .page-outer.page-fullimage img.fullimg {
        width: 100%;
        height: 100%;
        object-fit: cover;  /* 图片铺满容器，保持比例裁剪 */
        display: block;
    }

    /* 顶部留白 */
    .page-top {
        width: 100%;
        height: 6%;
        min-height: 18px;
        background: #fdfaf6;
        flex-shrink: 0;
    }

    /* 底部留白 */
    .page-bottom {
        width: 100%;
        height: 6%;
        min-height: 18px;
        background: #fdfaf6;
        flex-shrink: 0;
    }

    /* 中间文字区域 */
    .page-middle {
        flex: 1;
        background: #fdfaf6;
        padding: 0 6%;
        font-size: clamp(13px, 2.2vw, 16px);
        line-height: 1.8;
        color: #2c2416;
        text-align: justify;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        letter-spacing: 0.02em;
        overflow: hidden;
    }

    /* 普通图片在中间区域内的样式（非 fullimg） */
    .page-middle img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 1em auto;
    }
    /* 如果普通图片也需要取消左右留白，可以加负边距 */
    .page-middle img.fullimg {
        /* 如果错误地进入了中间区域，强制隐藏，避免显示异常 */
        display: none;
    }

    /* 内部文本样式 */
    .page-middle p { margin-bottom: 1em; text-indent: 2em; }
    .page-middle p:first-child { margin-top: 0; }
    .page-middle h2 {
        font-size: 1.8em;
        margin: 0.6em 0 0.5em;
        text-indent: 0;
        font-weight: 700;
        text-align: center;
    }
    .page-middle h3 {
        font-size: 1.3em;
        margin: 0.8em 0 0.5em;
        text-indent: 0;
        font-weight: 600;
    }
    .page-middle blockquote {
        margin: 1em 0;
        padding: 0.6em 1.2em;
        border-left: 3px solid #c9b896;
        background: rgba(139,115,85,0.06);
        font-style: italic;
        text-indent: 0;
    }
    .drop-cap {
        float: left;
        font-size: 3.5em;
        line-height: 0.8;
        margin-right: 0.15em;
        margin-top: 0.05em;
        font-weight: 700;
        color: #5c3d1e;
    }
</style>