/* =========================================================
   书阅读模式(全站浮层, 不改动原页面结构与逻辑)
   - 目录抽屉 book-dir
   - 底部翻页控件 book-bar
   ========================================================= */

/* 目录抽屉遮罩 */
.book-mask {
    position: fixed;
    inset: 0;
    z-index: 2400;
    background: rgba(15, 23, 42, .34);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}
.book-mask.book-on {
    opacity: 1;
    visibility: visible;
}

/* 书目录面板 */
.book-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(430px, 92vw);
    background: #fffdf6;
    box-shadow: -18px 0 50px rgba(15, 23, 42, .18);
    transform: translateX(105%);
    transition: transform .3s cubic-bezier(.22, .9, .3, 1);
    display: flex;
    flex-direction: column;
    z-index: 2401;
}
.book-on .book-panel {
    transform: translateX(0);
}
.book-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #f0e7d8;
    background: #fff9ec;
}
.book-panel-head strong {
    font-size: 18px;
    color: #24376b;
}
.book-panel-head .bk-close {
    cursor: pointer;
    font-size: 20px;
    color: #a08c6e;
    background: none;
    border: none;
    line-height: 1;
    padding: 4px 8px;
}
.book-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0 26px;
}

/* 卷 */
.bk-vol {
    margin: 14px 0 4px;
}
.bk-vol-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 22px;
    font-size: 15px;
    font-weight: 700;
    color: #24376b;
    background: rgba(0, 123, 255, .06);
}
.bk-vol-head::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #007bff;
    flex-shrink: 0;
}
.bk-vol-note {
    font-size: 12px;
    font-weight: 400;
    color: #b0a08a;
}
.bk-empty {
    padding: 6px 22px 4px;
    font-size: 13px;
    color: #b6a890;
}
.bk-item a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 7px 22px 7px 34px;
    color: #4a3f31;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
}
.bk-item a:hover {
    background: #f6efe0;
    color: #007bff;
}
.bk-item a.bk-active {
    color: #007bff;
    font-weight: 600;
}
.bk-item .bk-tag {
    flex-shrink: 0;
    font-size: 11px;
    color: #fff;
    background: #c8a24a;
    border-radius: 4px;
    padding: 1px 6px;
}
.bk-item .bk-tag.bk-paid {
    background: #d97706;
}
.bk-index {
    color: #c2b296;
    font-size: 12px;
    width: 22px;
    text-align: right;
    flex-shrink: 0;
}

/* 附录 */
.bk-appendix {
    margin: 18px 22px 6px;
    padding-top: 14px;
    border-top: 1px dashed #e3d7c2;
    font-size: 13px;
    color: #9d8b6e;
}
.bk-appendix a {
    color: #9d8b6e;
    text-decoration: none;
    margin-right: 14px;
}
.bk-appendix a:hover {
    color: #007bff;
}

/* 底部翻页控件 */
.book-bar {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 2200;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #e8e2d6;
    border-radius: 999px;
    padding: 7px 10px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .16);
    font-size: 13px;
}
.book-bar button,
.book-bar .bk-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 999px;
    color: #24376b;
    font-size: 13px;
    line-height: 1;
    transition: background .2s ease, color .2s ease;
}
.book-bar .bk-btn:hover {
    background: #eef4ff;
    color: #007bff;
}
.book-bar .bk-btn:disabled {
    opacity: .35;
    cursor: default;
    background: none;
}
.book-bar .bk-btn.bk-main {
    background: #007bff;
    color: #fff;
}
.book-bar .bk-btn.bk-main:hover {
    background: #0063cc;
}
.book-bar .bk-count {
    padding: 0 4px;
    color: #8b7d67;
    white-space: nowrap;
}

/* 首页“翻开全书”入口 */
.hp-openbook {
    margin: 34px auto 0;
    text-align: center;
}
.hp-openbook a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #24376b;
    background: rgba(255, 255, 255, .85);
    border: 1.5px solid rgba(36, 55, 107, .18);
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hp-openbook a:hover {
    transform: translateY(-2px);
    border-color: #007bff;
    color: #007bff;
    box-shadow: 0 14px 30px rgba(0, 123, 255, .18);
    text-decoration: none;
}

/* 移动端 */
@media (max-width: 640px) {
    .book-bar {
        bottom: 8px;
        gap: 4px;
        padding: 5px 8px;
    }
    .book-bar .bk-btn {
        padding: 6px 9px;
    }
    .hp-openbook {
        margin-top: 26px;
    }
}

/* =========================================================
   板块书页(.rd-*, 目录=栏目, 正文=文章缩略图居左)
   ========================================================= */
.rd-page {
    padding: 28px 0 40px;
    max-width: 1060px;
}
.rd-head {
    text-align: center;
    padding: 26px 0 22px;
    color: #24376b;
}
.rd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 3px;
    color: #fff;
    background: #007bff;
}
.rd-head h1 {
    margin: 18px 0 6px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
}
.rd-head p {
    margin: 0;
    color: #8b7d67;
    font-size: 14px;
}
/* 目录栏(栏目切换) */
.rd-toc {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 18px 0 22px;
}
.rd-ch {
    border: 1px solid #e3d9c6;
    background: #fffdf6;
    color: #4a3f31;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s ease;
}
.rd-ch em {
    font-style: normal;
    font-size: 12px;
    color: #b0a08a;
    margin-left: 6px;
}
.rd-ch:hover {
    border-color: #007bff;
    color: #007bff;
}
.rd-ch.on {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}
.rd-ch.on em {
    color: rgba(255, 255, 255, .8);
}
/* 章节面板 */
.rd-panel {
    display: none;
}
.rd-panel.on {
    display: block;
}
.rd-chapter-title {
    font-size: 17px;
    font-weight: 700;
    color: #24376b;
    margin: 6px 0 14px;
    padding-left: 12px;
    border-left: 4px solid #007bff;
}
.rd-chapter-title a {
    font-size: 12px;
    font-weight: 400;
    color: #8b7d67;
    margin-left: 10px;
    text-decoration: none;
}
.rd-chapter-title a:hover {
    color: #007bff;
}
/* 文章条目: 缩略图居左 */
.rd-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px dashed #eadfc9;
    text-decoration: none;
    transition: background .2s ease;
}
.rd-row:last-child {
    border-bottom: none;
}
.rd-row:hover {
    background: #fdfaf2;
    text-decoration: none;
}
.rd-thumb {
    flex: 0 0 150px;
    width: 150px;
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
    background: #eee;
}
.rd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rd-info {
    flex: 1;
    min-width: 0;
}
.rd-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #a08c6e;
}
.rd-free,
.rd-vip {
    color: #fff;
    border-radius: 5px;
    padding: 2px 8px;
    font-weight: 400;
}
.rd-free {
    background: #0891b2;
}
.rd-vip {
    background: #d97706;
}
.rd-go {
    margin-left: auto;
    color: #007bff;
}
.rd-info h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #24376b;
    line-height: 1.55;
}
.rd-info p {
    margin: 0;
    font-size: 13px;
    color: #8b7d67;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rd-row:hover .rd-info h3 {
    color: #007bff;
}
.rd-empty {
    text-align: center;
    color: #b0a08a;
    padding: 30px 0;
}
.rd-back {
    text-align: center;
    margin-top: 30px;
}
.rd-back a {
    color: #8b7d67;
    text-decoration: none;
    font-size: 13px;
}
.rd-back a:hover {
    color: #007bff;
}
@media (max-width: 640px) {
    .rd-thumb {
        flex-basis: 116px;
        width: 116px;
        height: 84px;
    }
    .rd-info p {
        display: none;
    }
    .rd-head {
        padding: 16px 0 14px;
    }
}

/* =========================================================
   全屏书(.ib-*, 封面/目录/正文页 + 翻页)
   ========================================================= */
/* 隐藏站点壳, 整页即书 */
body.bk-immersive {
    padding-top: 0 !important;
    overflow: hidden;
}
body.bk-immersive .header,
body.bk-immersive #footer,
body.bk-immersive #floatbtn {
    display: none !important;
}
body.bk-immersive .main-content {
    padding: 0 !important;
}
body.bk-immersive #content-container {
    width: 100% !important;
}

.ibook {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: linear-gradient(120deg, #e8dfcf 0%, #f7f1e4 45%, #efe5d2 100%);
    perspective: 2600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ibook-paid {
    background: linear-gradient(120deg, #f3e2c4 0%, #fbf3e2 45%, #f2e0bd 100%);
}

/* 书页 */
.ib-page {
    position: absolute;
    width: min(620px, 92vw);
    aspect-ratio: 3 / 4;
    height: auto;
    max-height: 92vh;
    background: #fffdf8;
    border-radius: 6px 16px 16px 6px;
    box-shadow:
        inset 0 0 0 1px rgba(120, 90, 40, .10),
        0 30px 60px rgba(90, 60, 20, .22),
        6px 0 18px rgba(120, 90, 40, .10);
    padding: 22px 34px 26px 42px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px) rotateY(8deg);
    transition: opacity .35s ease, transform .5s ease, visibility .35s;
    overflow: hidden;
    z-index: 1;
}
.ib-page.ib-cur {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) rotateY(0);
    z-index: 5;
}
/* 书页左缘书缝 */
.ib-page::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(120, 90, 40, .25), transparent);
}
.ib-page::after {
    content: "";
    position: absolute;
    left: 26px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(120, 90, 40, .12);
}

/* 封面 */
.ib-cover {
    height: 100%;
    border-radius: 4px 14px 14px 4px;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(255, 255, 255, .25), transparent 60%),
        linear-gradient(150deg, #0e7490 0%, #06b6d4 60%, #0891b2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.ibook-paid .ib-cover {
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(255, 255, 255, .25), transparent 60%),
        linear-gradient(150deg, #a16207 0%, #d97706 60%, #b45309 100%);
}
.ib-cover-inner {
    max-width: 420px;
    padding: 0 30px;
}
.ib-cover-eyebrow {
    letter-spacing: 4px;
    font-size: 13px;
    opacity: .85;
    margin-bottom: 18px;
}
.ib-cover h1 {
    font-size: clamp(34px, 6vw, 58px);
    font-weight: 900;
    margin: 0 0 14px;
}
.ib-cover-sub {
    font-size: 15px;
    opacity: .92;
    margin-bottom: 30px;
}
.ib-btn {
    border: 1.5px solid #fff;
    background: transparent;
    color: #fff;
    border-radius: 999px;
    padding: 12px 26px;
    margin: 0 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all .2s ease;
}
.ib-btn:hover {
    background: #fff;
    color: #0e7490;
}
.ibook-paid .ib-btn:hover {
    color: #b45309;
}

/* 目录页 */
.ib-toc,
.ib-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.ib-page-eyebrow {
    color: #a08c6e;
    letter-spacing: 3px;
    font-size: 13px;
    margin: 4px 0 12px;
    text-align: center;
}
.ib-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.ib-tocitem {
    width: 100%;
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 11px 6px;
    border: none;
    background: none;
    border-bottom: 1px dashed #efe4d2;
    cursor: pointer;
    text-align: left;
    font-size: 14.5px;
    color: #4a3f31;
}
.ib-tocitem:hover {
    color: #007bff;
}
.ib-tocno {
    color: #c2b296;
    font-size: 12px;
    min-width: 24px;
    text-align: right;
}
.ib-toctitle {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ib-toctag {
    color: #b0a08a;
    font-size: 12px;
    flex-shrink: 0;
}

/* 内容页 */
.ib-article-head {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #a08c6e;
    margin-bottom: 10px;
}
.ib-article-tag {
    color: #fff;
    background: #007bff;
    padding: 3px 10px;
    border-radius: 999px;
}
.ib-article-date {
    flex-shrink: 0;
}
.ib-article-origin {
    margin-left: auto;
    color: #007bff;
    text-decoration: none;
    flex-shrink: 0;
}
.ib-article-title {
    font-size: 24px;
    color: #24376b;
    margin: 0 0 14px;
    line-height: 1.4;
}
.ib-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    font-size: 14.5px;
    line-height: 1.8;
    color: #3c3428;
}
.ib-body img {
    display: block;
    max-width: 100%;
    max-height: 34vh;
    height: auto;
    margin: 8px auto;
}
.ib-body .alert-paid,
.ib-body .btn-paynow {
    display: block;
    text-align: center;
}
.ib-body .btn-paynow {
    color: #d97706;
}

/* 页脚页码 */
.ib-pagefoot {
    text-align: center;
    color: #b0a08a;
    font-size: 12px;
    padding-top: 10px;
    letter-spacing: 1px;
}

/* 翻页按钮 */
.ib-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .85);
    color: #24376b;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(60, 40, 20, .18);
    transition: all .2s ease;
    z-index: 20;
}
.ib-prev {
    left: 24px;
}
.ib-next {
    right: 24px;
}
.ib-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}
.ib-nav:disabled {
    opacity: .3;
    cursor: default;
}

/* 工具栏 */
.ib-toolbar {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid #e6dcc8;
    border-radius: 999px;
    padding: 7px 16px;
    box-shadow: 0 10px 26px rgba(60, 40, 20, .16);
    font-size: 13px;
    color: #5b5140;
}
.ib-tb {
    border: none;
    background: none;
    cursor: pointer;
    color: #5b5140;
    text-decoration: none;
    font-size: 13px;
}
.ib-tb:hover,
.ib-tb.ib-on {
    color: #007bff;
}
.ib-ind {
    min-width: 56px;
    text-align: center;
    color: #a08c6e;
}

@media (max-width: 767px) {
    .ib-page {
        width: 94vw;
        aspect-ratio: 3 / 4;
        height: auto;
        max-height: 88vh;
        padding: 16px 14px 18px 20px;
    }
    .ib-page::before,
    .ib-page::after {
        left: 10px;
        width: 1px;
    }
    .ib-cover h1 {
        font-size: 34px;
    }
    .ib-nav {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }
    .ib-prev {
        left: 8px;
    }
    .ib-next {
        right: 8px;
    }
    .ib-article-title {
        font-size: 20px;
    }
    .ib-body {
        font-size: 13.5px;
        line-height: 1.75;
    }
    .ib-article-origin {
        display: none;
    }
}

/* ---------- 书本点线目录 & 栏目引导页 ---------- */
.ib-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
    color: #4a3f31;
    border-bottom: 1px dashed rgba(160, 140, 110, .18);
    transition: color .2s ease;
}
.ib-line:hover {
    color: #007bff;
}
.ib-line-0 {
    font-weight: 700;
    color: #24376b;
    padding: 10px 0 4px;
    border-bottom-color: rgba(36, 55, 107, .22);
}
.ib-line-1 {
    padding-left: 26px;
    font-size: 14px;
}
.ib-line-label {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}
.ib-line-label b {
    font-weight: 700;
}
.ib-line-art i {
    font-style: normal;
    font-size: 12px;
    color: #c2b296;
    min-width: 20px;
    text-align: right;
}
.ib-dots {
    flex: 1;
    min-width: 16px;
    border-bottom: 2px dotted rgba(160, 140, 110, .55);
    transform: translateY(-4px);
}
.ib-line-page {
    font-size: 12px;
    color: #a08c6e;
    flex-shrink: 0;
}
.ib-line:hover .ib-line-page {
    color: #007bff;
}

/* 引导页 */
.ib-guide {
    overflow: auto !important;
}
.ib-guide-name {
    font-size: 26px;
    font-weight: 800;
    color: #24376b;
    margin-bottom: 10px;
}
.ib-guide-desc {
    font-size: 14px;
    line-height: 1.9;
    color: #6b5f4c;
    background: #faf5ea;
    border: 1px solid #f0e4cd;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 14px;
}
.ib-guide-desc-empty {
    color: #b0a08a;
}
.ib-guide-list-title {
    font-size: 13px;
    color: #a08c6e;
    margin: 10px 0 4px;
}
.ib-guide ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 正文分页标记 */
.ib-article-part {
    font-size: 13px;
    font-weight: 400;
    color: #b0a08a;
    vertical-align: middle;
}

/* ---------- 控件收敛: 翻页走底部按钮, 页码印在书页上 ---------- */
/* 两侧圆形箭头保留(与底部 上一页/下一页 并存, 保证任何页面都能翻页) */

/* 页码印在书页右下角(书页内部) */
.ib-pagefoot {
    position: absolute;
    right: 30px;
    bottom: 14px;
    font-size: 13px;
    color: #8a775a;
    letter-spacing: 2px;
    padding: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* 右上角控制 */
.ib-topright {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ib-topright .ib-tb {
    background: rgba(255, 255, 255, .9);
    border: 1px solid #e6dcc8;
    border-radius: 999px;
    padding: 6px 14px;
    box-shadow: 0 6px 16px rgba(60, 40, 20, .12);
    cursor: pointer;
}
.ib-tb.ib-on {
    color: #007bff;
}

/* 底部导航按钮 */
.ib-toolbar {
    gap: 10px;
    padding: 8px 14px;
}
.ib-navbtn {
    background: #007bff !important;
    color: #fff !important;
    border-radius: 999px;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 600;
}
.ib-navbtn:disabled {
    background: rgba(0, 123, 255, .25) !important;
    cursor: default;
}
.ib-toolbar .ib-tb {
    padding: 8px 16px;
}

/* 正文页 返回目录 按钮 */
.ib-back-dir {
    border: 1px solid #007bff;
    background: #fff;
    color: #007bff;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all .2s ease;
}
.ib-back-dir:hover {
    background: #007bff;
    color: #fff;
}

@media (max-width: 767px) {
    .ib-pagefoot {
        right: 16px;
        bottom: 10px;
        font-size: 12px;
    }
    .ib-topright {
        top: 8px;
        right: 10px;
    }
    .ib-topright .ib-tb {
        padding: 4px 10px;
        font-size: 12px;
    }
}

/* ---------- 收敛: 去目录虚线 & 去书内滚动条(靠分页铺满) ---------- */
.ib-line {
    border-bottom: none !important;
}
.ib-line-0 {
    border-bottom: none !important;
}
/* 仅超内容时才出现内部滚动, 不裁字; 需要时显示滚动条 */
.ib-toc ol,
.ib-guide,
.ib-body {
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
}
.ib-toc ol::-webkit-scrollbar,
.ib-guide::-webkit-scrollbar,
.ib-body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.ib-toc ol::-webkit-scrollbar-thumb,
.ib-guide::-webkit-scrollbar-thumb,
.ib-body::-webkit-scrollbar-thumb {
    background: rgba(120, 90, 40, .28);
    border-radius: 4px;
}
/* 表格: 按内容宽度铺开, 至少占满整页; 列不挤压, 超宽时在区域内滑动 */
.ib-body table {
    width: max-content;
    min-width: 100% !important;
    max-width: none !important;
    table-layout: auto;
    border-collapse: collapse;
    margin: 8px 0;
}
.ib-body table th,
.ib-body table td {
    white-space: normal;
    word-break: break-word;
    padding: 8px 10px;
    border: 1px solid #d9cdb6;
    vertical-align: top;
}
.ib-toc ol {
    padding-top: 2px;
}
.ib-line {
    padding: 6px 0;
}
.ib-line-1 {
    font-size: 13.5px;
}
.ib-tocitem {
    border-bottom: none;
}

/* 解锁页 */
.ib-pay {
    align-items: center;
    justify-content: center;
}
.ib-pay-box {
    text-align: center;
    max-width: 360px;
    padding: 30px 24px;
    border: 1px dashed #d8b26a;
    border-radius: 16px;
    background: #fffaf0;
}
.ib-pay-mark {
    display: inline-block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #d97706;
    position: relative;
}
.ib-pay-mark::before,
.ib-pay-mark::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 2px;
}
.ib-pay-mark::before {
    top: 11px;
    width: 18px;
    height: 13px;
    border: 2px solid #fff;
    border-bottom: none;
    box-sizing: border-box;
}
.ib-pay-mark::after {
    bottom: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.ib-pay-box h3 {
    margin: 14px 0 8px;
    color: #92400e;
}
.ib-pay-box p {
    color: #7a6a52;
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 18px;
}
.ib-pay-box .ib-btn {
    color: #fff;
    border-color: #d97706;
    background: #d97706;
}
.ib-pay-box .ib-btn:hover {
    background: #b45309;
}
.ib-pay-tip {
    font-size: 12px !important;
    color: #b0a08a !important;
    margin-bottom: 0 !important;
}

/* 解锁页按钮与说明不重叠 */
.ib-pay-box {
    flex: none;
    margin: auto 0;
}
.ib-pay-box .ib-btn {
    display: block;
    width: fit-content;
    margin: 4px auto 18px;
}
.ib-pay-tip {
    display: block;
    margin-top: 14px !important;
    line-height: 1.7;
}
.ib-pay-box p {
    margin-bottom: 10px;
}

/* ---------- 页内翻页条(固定在每页底部, 内容预留空间, 永不裁切) ---------- */
.ib-page {
    padding-bottom: 62px;
}
.ib-inp-row {
    position: absolute;
    left: 42px;
    right: 42px;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(150, 110, 60, .16);
    background: #fffdf8;
}
.ib-inp {
    border: 1px solid #d8c9a8;
    background: #fffdf6;
    color: #6b5a40;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}
.ib-inp:hover {
    color: #007bff;
    border-color: #007bff;
}
.ib-inp:disabled {
    opacity: .35;
    cursor: default;
}
.ib-pagefoot {
    position: static !important;
    right: auto;
    bottom: auto;
    text-align: center;
    color: #8a775a;
    font-size: 13px;
    letter-spacing: 2px;
    padding: 0;
}
/* 封面/内容区伸缩适配底部翻页条 */
.ib-cover {
    flex: 1;
    min-height: 0;
    height: auto;
}
.ib-toc ol,
.ib-content {
    min-height: 0;
}
@media (max-width: 767px) {
    .ib-page {
        padding-bottom: 54px;
    }
    .ib-inp-row {
        left: 14px;
        right: 14px;
        bottom: 8px;
        padding: 8px 0 2px;
    }
    .ib-inp {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* 顶部左侧: 返回首页 */
.ib-topleft {
    position: absolute;
    top: 14px;
    left: 18px;
    z-index: 20;
}
.ib-topleft .ib-tb {
    background: rgba(255, 255, 255, .9);
    border: 1px solid #e6dcc8;
    border-radius: 999px;
    padding: 6px 14px;
    box-shadow: 0 6px 16px rgba(60, 40, 20, .12);
    text-decoration: none;
}
.ib-topleft .ib-tb:hover {
    color: #007bff;
    border-color: #007bff;
}

/* 文章序号(第一篇…)独立居中, 小字+上下留白 */
.ib-art-line {
    text-align: center;
    margin: 14px auto 20px;
    color: #24376b;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 3px;
}
.ib-article-title {
    text-align: left;
    margin-bottom: 14px;
    line-height: 1.45;
}
/* 文章页顶部: 两端对称按钮 + 居中章节; 章节与按钮等高同色系 */
.ib-page-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 4px;
}
.ib-top-center {
    flex: 1;
    min-width: 0;
    text-align: center;
}
.ib-ch-line {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 10px;
    color: #24376b;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
}
.ib-back-dir,
.ib-article-origin {
    flex: none;
    border: 1px solid #d8c9a8;
    background: #fffdf6;
    color: #6b5a40;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
}
.ib-back-dir:hover,
.ib-article-origin:hover {
    color: #007bff;
    border-color: #007bff;
    text-decoration: none;
}
@media (max-width: 767px) {
    .ib-page-top {
        gap: 6px;
        margin-bottom: 8px;
    }
    .ib-back-dir,
    .ib-article-origin {
        padding: 5px 10px;
        font-size: 11px;
    }
    .ib-ch-line {
        font-size: 13px;
        letter-spacing: 1px;
    }
}
@media (max-width: 767px) {
    .ib-topleft {
        top: 8px;
        left: 10px;
    }
    .ib-topleft .ib-tb {
        padding: 4px 10px;
        font-size: 12px;
    }
}

/* 浮动翻页/底部工具条已与页内翻页条重复, 隐藏 */
.ib-nav,
.ib-toolbar {
    display: none !important;
}
