/* ==========================================================================
   官网 · 一册可以翻的书
   --------------------------------------------------------------------------
   设计语言
     冷白（云白 + 浅蓝灰）  墨（石板灰四级）  电光蓝（主操作 / 强调）  科技青（进度 / 点缀）
     五色（分卷，与官网同族）  细网格底纹：像绘图纸，而不是宣纸
     右开本：书脊在右，翻页绕右边缘；书口（左侧）探出分卷书签。

   三层结构
     封面  .bk-cover-stage     合着的书，讲清这是什么
     书桌  .bk-reader          翻开后的一切
     页面  .bk-pg              一页 = 一个 .bk-pg-body

   页面类型
     is-flyleaf 扉页   is-toc 目录   is-preface 序
     is-volume  卷首页  is-chapter 章首页  is-section 节页   is-end 封底
   ========================================================================== */

:root {
    /* 底色与墨：冷白 + 石板灰 */
    --paper: #f6f9fd;
    --paper-2: #eef3fa;
    --paper-3: #e2eaf5;
    --ink: #1e293b;
    --ink-2: #334155;
    --ink-3: #64748b;
    --ink-4: #94a3b8;
    --rule: #d5dfec;
    --rule-soft: rgba(59, 91, 148, .12);

    /* 主色：电光蓝 + 科技青 */
    --blue: #2563eb;
    --blue-d: #1d4ed8;
    --cyan: #06b6d4;
    --cyan-l: #67e8f9;

    /* 五卷新色（与官网模块分类同族） */
    --v1: #2563eb;   /* 磁蓝 */
    --v2: #06b6d4;   /* 科技青 */
    --v3: #10b981;   /* 翠青 */
    --v4: #8b5cf6;   /* 星紫 */
    --v5: #f59e0b;   /* 琥珀 */

    /* 模块分组色（与 guanwang.blade.php 一致，章首页 --g 引用） */
    --cat-design: #2563eb;   --cat-design-bg: #eff6ff;
    --cat-erp: #7c3aed;      --cat-erp-bg: #f5f3ff;
    --cat-quality: #06b6d4;  --cat-quality-bg: #ecfeff;
    --cat-support: #16a34a;  --cat-support-bg: #f0fdf4;
    --cat-ai: #ec4899;       --cat-ai-bg: #fdf2f8;

    --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN", Georgia, serif;
    --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ease: cubic-bezier(.22, .8, .26, 1);
    --flip: 720ms;

    /* 底纹：细网格，像工程绘图纸 */
    --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28'><path d='M28 .5H0M.5 0v28' fill='none' stroke='%23b9c9e2' stroke-opacity='.5'/></svg>");
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }

body.bk-body {
    font-family: var(--sans);
    color: var(--ink);
    background:
        radial-gradient(1200px 800px at 70% 0%, #ffffff 0%, #f3f7fc 40%, #e9eef7 72%, #dfe8f4 100%);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 细网格底纹与底部光晕 */
body.bk-body::before {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none;
    background-image: var(--grain);
    opacity: .22;
    mix-blend-mode: multiply;
    z-index: 0;
}
body.bk-body::after {
    content: "";
    position: fixed; left: 0; right: 0; bottom: 0;
    height: 34vh;
    pointer-events: none;
    opacity: .5;
    z-index: 0;
    background:
        radial-gradient(58% 100% at 14% 122%, rgba(37, 99, 235, .12), transparent 70%),
        radial-gradient(64% 100% at 50% 130%, rgba(6, 182, 212, .08), transparent 72%),
        radial-gradient(54% 100% at 88% 122%, rgba(99, 102, 241, .10), transparent 70%);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

::selection { background: rgba(37, 99, 235, .14); }

/* ==========================================================================
   通用件
   ========================================================================== */
.bk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 44px; padding: 0 24px;
    border: 1px solid rgba(71, 85, 105, .28);
    border-radius: 2px;
    font-size: 13.5px; letter-spacing: .14em;
    color: var(--ink);
    background: rgba(255, 255, 255, .55);
    transition: all .26s var(--ease);
    white-space: nowrap;
}
.bk-btn i { font-size: 11.5px; }
.bk-btn:hover { background: rgba(255, 255, 255, .85); border-color: rgba(71, 85, 105, .5); transform: translateY(-1px); }
.bk-btn.is-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb 68%, #1d4ed8);
    border-color: transparent;
    color: #eff6ff;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .3);
}
.bk-btn.is-primary:hover { background: linear-gradient(135deg, #4f8df9, #3570e8 68%, #2456d0); }
.bk-btn.is-quiet { border-color: transparent; color: var(--ink-3); }
.bk-btn.is-quiet:hover { color: var(--ink); background: rgba(255, 255, 255, .45); }

.bk-mini {
    display: inline-flex; align-items: center; gap: 6px;
    height: 27px; padding: 0 11px;
    border: 1px solid var(--rule);
    border-radius: 2px;
    background: rgba(252, 253, 255, .85);
    font-size: 11px; letter-spacing: .05em;
    color: var(--ink-2);
    transition: all .2s;
}
.bk-mini i { font-size: 9.5px; }
.bk-mini:hover { border-color: var(--blue); color: var(--blue); background: #fff; }
.bk-mini.is-on { background: var(--blue); border-color: var(--blue); color: #eff6ff; }

.bk-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; letter-spacing: .08em;
    color: var(--blue);
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: border-color .2s;
}
.bk-link:hover { border-bottom-color: var(--blue); }
.bk-link i { font-size: 9px; }

.bk-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 2px;
    color: rgba(226, 232, 240, .75);
    transition: all .2s;
}
.bk-icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* ==========================================================================
   1. 封面
   ========================================================================== */
.bk-cover-stage {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 60px 6vw 40px;
}

.bk-cover-inner {
    width: 100%; max-width: 1180px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}

.bk-cover-text { max-width: 560px; }

.bk-eyebrow {
    display: inline-flex; align-items: center; gap: 11px;
    font-size: 11.5px; letter-spacing: .28em;
    color: var(--ink-3);
    margin-bottom: 26px;
}
.bk-eyebrow i { width: 34px; height: 1px; background: rgba(37, 99, 235, .55); }

.bk-cover-h1 {
    font-size: clamp(46px, 6.4vw, 80px);
    font-weight: 600;
    letter-spacing: .2em;
    line-height: 1.14;
    color: var(--ink);
    margin-bottom: 16px;
}
.bk-cover-sub {
    font-size: clamp(14px, 1.5vw, 16.5px);
    line-height: 1.95;
    color: var(--ink-3);
    letter-spacing: .06em;
    margin-bottom: 34px;
}

/* 五卷简表 */
.bk-cover-vols {
    list-style: none;
    display: grid; gap: 1px;
    margin-bottom: 34px;
    border-top: 1px solid var(--rule);
}
.bk-cover-vols li {
    display: flex; align-items: baseline; gap: 14px;
    padding: 9px 6px 9px 2px;
    border-bottom: 1px solid var(--rule);
    cursor: pointer;
    transition: background .18s, padding-left .18s;
}
.bk-cover-vols li:hover {
    background: linear-gradient(90deg, rgba(37, 99, 235, .06), transparent 70%);
    padding-left: 8px;
}
.bk-cover-vols li > i {
    margin-left: auto;
    font-size: 10px;
    color: var(--v);
    opacity: 0;
    transform: translateX(-4px);
    transition: all .18s;
}
.bk-cover-vols li:hover > i { opacity: .85; transform: none; }
.bk-cover-vols em {
    font-style: normal;
    flex: 0 0 30px;
    font-size: 10.5px; letter-spacing: .04em;
    color: var(--v);
    border: 1px solid currentColor;
    text-align: center;
    padding: 1px 0;
    opacity: .8;
}
.bk-cover-vols b {
    font-size: 14px; font-weight: 600; letter-spacing: .12em;
    color: var(--ink);
}
.bk-cover-vols span {
    margin-left: auto;
    font-family: var(--sans);
    font-size: 11px; letter-spacing: .06em;
    color: var(--ink-4);
}

.bk-cover-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }

.bk-cover-meta {
    list-style: none;
    display: flex; gap: 26px; flex-wrap: wrap;
    font-size: 11.5px; letter-spacing: .1em;
    color: var(--ink-4);
}
.bk-cover-meta b {
    font-size: 19px; font-weight: 600;
    color: var(--blue);
    margin-right: 4px;
}

/* --- 书：磁蓝封面，右开本 --- */
.bk-book-cover {
    position: relative;
    justify-self: center;
    width: min(340px, 76vw);
    aspect-ratio: 3 / 4.35;
    border-radius: 3px 1px 1px 3px;
    background:
        linear-gradient(104deg, #2f6ef0 0%, #3b7bf7 18%, #2563eb 52%, #1d4ed8 82%, #1b44bd 100%);
    box-shadow:
        0 40px 80px rgba(23, 48, 106, .34),
        0 10px 24px rgba(23, 48, 106, .26),
        inset -3px 0 0 rgba(0, 0, 0, .16),
        inset 3px 0 0 rgba(255, 255, 255, .08);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
    transform-style: preserve-3d;
}
.bk-book-cover:hover {
    transform: translateY(-8px) rotateZ(-.4deg);
    box-shadow:
        0 54px 96px rgba(23, 48, 106, .4),
        0 14px 30px rgba(23, 48, 106, .3);
}

/* 布面横纹 */
.bk-cover-lines {
    position: absolute; inset: 0;
    border-radius: inherit;
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, .03) 0 1px, transparent 1px 5px);
    pointer-events: none;
}
/* 内框 */
.bk-cover-lines::after {
    content: "";
    position: absolute; inset: 22px;
    border: 1px solid rgba(186, 219, 255, .4);
}

/* 竖排题签 */
.bk-cover-label {
    position: absolute;
    top: 46px; left: 44px;
    width: 66px;
    padding: 20px 0;
    background: linear-gradient(180deg, #f9fbff, #eef4fd);
    box-shadow: 0 3px 10px rgba(23, 48, 106, .3);
    display: flex; align-items: center; justify-content: center;
}
.bk-cover-label em {
    writing-mode: vertical-rl;
    font-style: normal;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: .34em;
    color: #16233c;
}

.bk-cover-stamp {
    position: absolute;
    bottom: 96px; left: 44px;
    min-width: 60px; height: 44px; padding: 0 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12.5px; letter-spacing: .06em;
    color: #eaf2ff;
    background: rgba(37, 99, 235, 0);
    border: 1.5px solid rgba(219, 234, 254, .85);
    border-radius: 2px;
    transform: rotate(-4deg);
}

.bk-cover-vol {
    position: absolute;
    top: 50px; right: 34px;
    writing-mode: vertical-rl;
    font-size: 10px; letter-spacing: .26em;
    color: rgba(219, 234, 254, .66);
}

.bk-cover-hint {
    position: absolute;
    bottom: 38px; right: 34px;
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12px; letter-spacing: .18em;
    color: rgba(219, 234, 254, .88);
}
.bk-cover-hint i { font-size: 9px; transition: transform .3s; }
.bk-book-cover:hover .bk-cover-hint i { transform: translateX(3px); }

.bk-cover-foot {
    margin-top: 44px;
    font-family: var(--sans);
    font-size: 11.5px; letter-spacing: .06em;
    color: var(--ink-4);
    text-align: center;
}
.bk-cover-foot i { margin-right: 5px; font-size: 10px; }
.bk-cover-foot code {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 11px;
    padding: 1px 5px;
    background: rgba(100, 116, 139, .12);
    border-radius: 2px;
    color: var(--ink-3);
}

/* ==========================================================================
   2. 阅读器
   ========================================================================== */
.bk-reader {
    position: fixed; inset: 0; z-index: 40;
    display: none;
    flex-direction: column;
    background: var(--paper);
}
body.is-reading .bk-reader { display: flex; }
body.is-reading { overflow: hidden; }
body.is-reading .bk-cover-stage { display: none; }

/* --- 顶栏：浮动在书页上方 --- */
.bk-top {
    position: absolute; top: 0; left: 0; right: 0; z-index: 8;
    display: flex; align-items: center; gap: 18px;
    padding: 10px clamp(12px, 2.6vw, 30px);
    background: linear-gradient(180deg, rgba(246, 249, 253, .96) 0%, rgba(246, 249, 253, .82) 55%, transparent 100%);
    color: var(--ink-3);
}
.bk-top-btn {
    display: inline-flex; align-items: center; gap: 7px;
    height: 31px; padding: 0 12px;
    border-radius: 2px;
    font-family: var(--sans);
    font-size: 11.5px; letter-spacing: .1em;
    color: var(--ink-3);
    transition: all .2s;
}
.bk-top-btn i { font-size: 10.5px; }
.bk-top-btn:hover { background: rgba(100, 116, 139, .14); color: var(--ink); }

.bk-top-crumb {
    flex: 1 1 auto; min-width: 0;
    display: flex; align-items: center; gap: 10px;
    font-family: var(--sans);
    font-size: 11.5px; letter-spacing: .06em;
    color: var(--ink-4);
    overflow: hidden;
}
.bk-top-crumb > i { font-size: 8px; opacity: .5; flex: 0 0 auto; }
/* 卷名 / 章名可以点：卷名翻卷首，章名翻章首 */
.bk-top-crumb button {
    font: inherit; letter-spacing: inherit;
    background: none; border: 0; padding: 3px 2px; margin: 0;
    color: inherit; cursor: pointer;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 52ch;
}
.bk-top-crumb button:not(:disabled):hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(37, 99, 235, .45);
}
.bk-top-crumb button:disabled { cursor: default; }
.bk-crumb-vol { color: var(--ink-3); }
.bk-crumb-ch {
    color: var(--ink);
}

.bk-top-tools { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }

/* --- 书桌：书页铺满整屏 --- */
.bk-desk {
    position: relative; z-index: 2;
    flex: 1 1 auto; min-height: 0;
    display: flex; align-items: stretch; justify-content: stretch;
    padding: 0;
}

/* 分卷书签（贴在书页左缘） */
.bk-tabs {
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 6px;
    z-index: 6;
}
.bk-tab {
    display: flex; align-items: center; gap: 5px;
    height: 34px; padding: 0 10px 0 8px;
    border-radius: 2px 0 0 2px;
    background: rgba(246, 249, 253, .92);
    border: 1px solid var(--rule);
    border-right: 0;
    color: var(--ink-3);
    font-family: var(--sans);
    transition: all .24s var(--ease);
}
.bk-tab em {
    font-style: normal; font-size: 9.5px; letter-spacing: .02em;
}
.bk-tab span { font-size: 10.5px; letter-spacing: .08em; writing-mode: horizontal-tb; }
.bk-tab:hover {
    background: var(--v);
    color: #f5f9ff;
    border-color: transparent;
}
.bk-tab.is-on {
    background: var(--v);
    color: #f5f9ff;
    border-color: transparent;
    box-shadow: 3px 0 12px rgba(0, 0, 0, .18);
}

/* 书：占满书桌 */
.bk-book {
    position: relative;
    display: flex; flex-direction: row-reverse; align-items: stretch;
    width: 100%;
    height: 100%;
    max-height: none;
}

/* 书脊 */
.bk-spine {
    width: 22px; flex: 0 0 22px;
    border-radius: 0 3px 3px 0;
    background:
        repeating-linear-gradient(0deg, transparent 0 32px, rgba(147, 197, 253, .16) 32px 33px),
        linear-gradient(270deg, #0b1012, #16233c42 42%, #1b2b47 72%, #101a30);
    box-shadow: inset 1px 0 6px rgba(0, 0, 0, .55), 4px 0 12px rgba(0, 0, 0, .28);
    display: flex; flex-direction: column; justify-content: space-around; align-items: center;
    padding: 9% 0;
}
.bk-spine i { display: block; width: 100%; height: 1px; background: rgba(147, 197, 253, .14); }

/* 页栈：占满剩余宽度 */
.bk-sheets {
    position: relative;
    flex: 1 1 auto;
    width: auto;
    height: 100%;
    min-height: 460px;
    perspective: 2800px;
    perspective-origin: 76% 50%;
    transform-style: preserve-3d;
}

/* 一页 */
.bk-pg {
    position: absolute; inset: 0;
    display: none;
    border-radius: 3px 1px 1px 3px;
    overflow: hidden;
    transform-origin: right center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    background:
        linear-gradient(270deg, rgba(37, 64, 114, .06) 0%, rgba(37, 64, 114, 0) 9%, rgba(37, 64, 114, 0) 94%, rgba(37, 64, 114, .03) 100%),
        radial-gradient(120% 100% at 100% 0%, #ffffff 0%, var(--paper) 46%, #e9eef7 100%);
    box-shadow: 0 0 0 1px var(--rule-soft) inset;
}
.bk-pg.is-active { display: block; z-index: 2; }
.bk-pg.is-flipping { z-index: 6; }

/* 纸纹 */
.bk-pg::before {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
    background-image: var(--grain);
    opacity: .3;
    mix-blend-mode: multiply;
    z-index: 0;
}
/* 翻页折痕 */
.bk-pg::after {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 5;
    background: linear-gradient(270deg, rgba(60, 45, 20, .3) 0%, rgba(60, 45, 20, .06) 15%, transparent 44%);
    transition: opacity .3s;
}
.bk-pg.is-flipping::after { opacity: 1; }

/* 版心：上下留出浮动栏的空间 */
.bk-pg-body {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: clamp(54px, 7vh, 68px) clamp(46px, 4.4vw, 68px) clamp(52px, 7vh, 64px) clamp(30px, 3.6vw, 52px);
    display: flex; flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, .3) transparent;
}
.bk-pg-body::-webkit-scrollbar { width: 5px; }
.bk-pg-body::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, .22); border-radius: 3px; }
.bk-pg-body.is-center { justify-content: center; }
.bk-pg-body.is-frame { padding: 46px 10px 48px; }

/* 演示节：整页铺满，像原网页一样 */
.bk-reader.is-demo .bk-desk {
    padding: 0;
}
.bk-reader.is-demo .bk-book {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: 100%;
}
.bk-reader.is-demo .bk-sheets {
    width: 100%;
    height: 100%;
    min-height: 0;
}
.bk-reader.is-demo .bk-pg {
    border-radius: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
    background: #fff;
}
/* 演示节不铺纸纹，免得像「贴在纸上的一张图」 */
.bk-reader.is-demo .bk-pg::before { display: none; }
.bk-reader.is-demo .bk-pg.is-section { background: #fff; }

/* 页码：抬到底栏上方 */
.bk-folio {
    position: absolute;
    left: 50%; bottom: 34px;
    transform: translateX(-50%);
    font-family: var(--sans);
    font-size: 10px; letter-spacing: .24em;
    color: rgba(100, 116, 139, .55);
    z-index: 3;
}

/* 翻页热区（书口与书脊两侧，不挡内容） */
.bk-turn {
    position: absolute; top: 0; bottom: 0;
    width: 44px;
    z-index: 8;
    transition: background .25s;
}
.bk-turn.is-prev { left: 0; border-radius: 3px 0 0 3px; }
.bk-turn.is-next { right: 22px; }
.bk-turn:hover { background: linear-gradient(90deg, rgba(30, 58, 138, .06), transparent); }
.bk-turn.is-next:hover { background: linear-gradient(270deg, rgba(30, 58, 138, .06), transparent); }

/* ==========================================================================
   3. 页面元件
   ========================================================================== */
.bk-head { margin-bottom: 20px; flex: 0 0 auto; }
.bk-head-kicker {
    font-family: var(--sans);
    font-size: 10px; letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--ink-4);
    margin-bottom: 9px;
}
.bk-head-title {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 600; letter-spacing: .18em;
    color: var(--ink);
    line-height: 1.25;
}
.bk-head-title.is-slim { font-size: clamp(21px, 2.3vw, 27px); letter-spacing: .1em; line-height: 1.45; }
.bk-head-desc {
    margin-top: 8px;
    font-size: 12.5px; line-height: 1.9;
    color: var(--ink-3);
    max-width: 56ch;
}

.bk-sub {
    font-family: var(--sans);
    font-size: 10.5px; font-weight: 600;
    letter-spacing: .2em;
    color: var(--ink-4);
    padding-bottom: 7px;
    margin-bottom: 11px;
    border-bottom: 1px solid var(--rule);
}

.bk-lead {
    flex: 0 0 auto;
    font-size: 14.5px; line-height: 2.05;
    color: var(--ink-2);
    padding-left: 14px;
    border-left: 2px solid rgba(37, 99, 235, .4);
    margin-bottom: 18px;
}
.bk-lead.is-center { border-left: 0; padding-left: 0; text-align: center; max-width: 48ch; margin-left: auto; margin-right: auto; }

.bk-prose { display: grid; gap: 11px; }
.bk-prose p {
    font-size: 13px; line-height: 2.05;
    color: var(--ink-3);
    text-indent: 2em;
}
.bk-prose.is-sm p { font-size: 12.5px; }
/* 章多的卷，卷首语不再占版面（25 章要一页放得下） */
.bk-prose.is-tight { display: none; }

.bk-quote {
    margin: 12px 0;
    padding: 8px 0 8px 14px;
    border-left: 2px solid var(--v, var(--cyan));
    font-size: 12.5px; letter-spacing: .08em;
    color: var(--ink-2);
    flex: 0 0 auto;
}

.bk-sign {
    flex: 0 0 auto;
    margin-top: auto; padding-top: 20px;
    display: flex; align-items: center; justify-content: flex-end; gap: 11px;
    font-family: var(--sans);
    font-size: 11px; letter-spacing: .08em;
    color: var(--ink-4);
}
.bk-sign.is-center { justify-content: center; }
.bk-seal {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 52px; height: 38px; padding: 0 5px;
    font-family: var(--sans);
    font-size: 11.5px; letter-spacing: .04em;
    color: #eef4ff;
    background: var(--blue);
    border-radius: 2px;
    transform: rotate(-4deg);
    box-shadow: 0 3px 9px rgba(37, 99, 235, .28);
}

.bk-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 22px; }
.bk-actions.is-center { justify-content: center; }
.bk-actions .bk-btn { height: 38px; padding: 0 17px; font-size: 12.5px; letter-spacing: .1em; }

/* --- 扉页 --- */
.bk-fly {
    flex: 0 0 auto;
    display: flex; flex-direction: column; align-items: center; gap: 13px;
    text-align: center;
    margin: auto 0;
}
.bk-fly-title {
    writing-mode: vertical-rl;
    font-size: clamp(34px, 4.4vw, 52px);
    font-weight: 600;
    letter-spacing: .34em;
    color: var(--ink);
}
.bk-fly-rule { width: 1px; height: 48px; background: linear-gradient(180deg, var(--blue), rgba(37, 99, 235, .05)); }
.bk-fly-en { font-family: var(--sans); font-size: 9.5px; letter-spacing: .34em; color: var(--ink-4); }
.bk-fly-sub { font-size: 12.5px; letter-spacing: .14em; color: var(--ink-3); }
.bk-fly-seal {
    margin-top: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 54px; height: 40px; padding: 0 5px;
    font-size: 11.5px;
    color: #eef4ff;
    background: var(--blue);
    border-radius: 2px;
    transform: rotate(-4deg);
}
.bk-fly-foot {
    flex: 0 0 auto;
    margin-top: 34px;
    padding-top: 14px;
    width: 100%;
    border-top: 1px solid var(--rule);
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    font-family: var(--sans);
    font-size: 11px; letter-spacing: .06em;
    color: var(--ink-4);
}

/* --- 目录 --- */
.bk-toc {
    flex: 1 1 auto; min-height: 0;
    display: flex; flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    padding-bottom: 4px;
}
.bk-toc-vol { min-width: 0; }
.bk-toc-vol header {
    display: flex; align-items: baseline; gap: 8px;
    padding-bottom: 6px; margin-bottom: 9px;
    border-bottom: 1px solid var(--rule);
}
.bk-toc-vol header em {
    font-style: normal; font-size: 9.5px;
    padding: 1px 5px;
    color: var(--v);
    border: 1px solid currentColor;
    opacity: .78;
}
.bk-toc-vol header b {
    font-size: 12.5px; font-weight: 600; letter-spacing: .1em;
    color: var(--ink);
}
.bk-toc-vol header span {
    font-family: var(--sans);
    font-size: 10px; color: var(--ink-4);
}
.bk-toc-go {
    margin-left: auto;
    font-family: var(--sans);
    font-size: 9.5px; letter-spacing: .06em;
    color: var(--ink-4);
    display: inline-flex; align-items: center; gap: 4px;
    white-space: nowrap;
}
.bk-toc-go:hover { color: var(--v); }
.bk-toc-go i { font-size: 7.5px; }

/* 章名多列排：卷一的 25 章也不占太多版面 */
.bk-toc-vol ul {
    list-style: none;
    columns: 3;
    column-gap: 30px;
}
/* 章特别多的卷（如流程管理 24 章）：摊成 4 栏，免得全挤在上半页 */
.bk-toc-vol.is-dense ul {
    columns: 4;
    column-gap: 24px;
}
.bk-toc-vol.is-dense li button { font-size: 11px; padding: 5px 0; }
.bk-toc-vol li { break-inside: avoid; }
.bk-toc-vol li button {
    width: 100%;
    display: flex; align-items: baseline; gap: 5px;
    padding: 5px 1px;
    font-size: 11.5px; letter-spacing: .02em;
    color: var(--ink-2);
    text-align: left;
    transition: all .16s;
}
.bk-toc-vol li button:hover { color: var(--v); background: rgba(100, 116, 139, .07); }
.bk-toc-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-toc-d { flex: 1 1 auto; border-bottom: 1px dotted rgba(100, 116, 139, .2); transform: translateY(-3px); }
.bk-toc-p { font-family: var(--sans); font-size: 9.5px; color: var(--ink-4); }

/* --- 卷首页 --- */
.bk-vol-head { flex: 0 0 auto; margin-bottom: 10px; }
.bk-vol-no {
    font-family: var(--sans);
    font-size: 10px; letter-spacing: .3em;
    color: var(--v);
    margin-bottom: 6px;
}
.bk-vol-title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 600;
    letter-spacing: .22em;
    line-height: 1.2;
    color: var(--ink);
}
.bk-vol-en {
    font-family: var(--sans);
    font-size: 9px; letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--ink-4);
    margin: 4px 0 6px;
}
.bk-vol-sub {
    font-size: 12.5px; line-height: 1.75;
    color: var(--ink-3);
    max-width: 54ch;
    padding-top: 6px;
    border-top: 1px solid var(--rule);
}

.bk-vol-chapters {
    margin-top: 10px;
    padding-top: 4px;
    min-height: 0;
}
.bk-vol-chapters ol { list-style: none; }

/* 章多的卷（比如流程管理 25 章）分栏排，否则一页装不下 */
.bk-vol-chapters ol.is-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.bk-vol-chapters ol.is-cols3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; }

.bk-vol-chapters li button {
    width: 100%;
    display: grid;
    grid-template-columns: 21px minmax(0, 1fr) 26px;
    align-items: center; gap: 9px;
    padding: 6.5px 11px;
    text-align: left;
    border: 1px solid rgba(100, 116, 139, .2);
    border-radius: 6px;
    background: rgba(255, 255, 255, .62);
    transition: all .18s;
}
.bk-vol-chapters li button:hover {
    border-color: var(--v);
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(30, 64, 175, .1);
    transform: translateY(-1px);
}
.bk-vol-chapters em {
    font-style: normal;
    font-family: var(--sans);
    font-size: 9.5px;
    width: 21px; height: 21px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--v);
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: .75;
    transition: all .18s;
}
.bk-vol-chapters li button:hover em {
    opacity: 1;
    background: var(--v);
    color: #f5f9ff;
}
.bk-vch-name {
    font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bk-vch-tag {
    display: none;
    font-size: 11px; color: var(--ink-3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bk-vch-p { font-family: var(--sans); font-size: 9.5px; color: var(--ink-4); text-align: right; }

/* 不分栏时（章少）才有空间显示一句话说明 */
.bk-vol-chapters ol:not(.is-cols):not(.is-cols3) li button {
    grid-template-columns: 22px minmax(0, 92px) minmax(0, 1fr) 30px;
}
.bk-vol-chapters ol:not(.is-cols):not(.is-cols3) .bk-vch-tag { display: block; }

/* 卷首语与引言：目录之后的附注 */
.bk-vol-after {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--rule);
    display: grid; gap: 10px;
}

/* --- 章首页 --- */
.bk-ch-head {
    flex: 0 0 auto;
    display: flex; gap: 15px; align-items: flex-start;
    margin-bottom: 16px;
}
.bk-ch-icon {
    flex: 0 0 auto;
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px;
    color: var(--g, var(--blue));
    background: var(--vb, #eff4fd);
    border: 1px solid rgba(100, 116, 139, .2);
    border-radius: 2px;
    box-shadow: 0 3px 10px rgba(30, 64, 175, .1);
}
.bk-ch-kicker {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    font-family: var(--sans);
    font-size: 9.5px; letter-spacing: .1em;
    color: var(--ink-4);
    margin-bottom: 5px;
}
.bk-ch-kicker i { font-size: 7px; opacity: .6; }
.bk-ch-title {
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 600; letter-spacing: .08em;
    line-height: 1.24;
    color: var(--ink);
    margin-bottom: 5px;
}
.bk-ch-tag { font-size: 12.5px; line-height: 1.8; color: var(--ink-3); }

.bk-points { list-style: none; flex: 0 0 auto; }
.bk-points li {
    display: flex; gap: 11px; align-items: flex-start;
    font-size: 12px; line-height: 1.8;
    color: var(--ink-2);
}
.bk-points b {
    flex: 0 0 auto;
    width: 18px; height: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 9.5px; font-weight: 600;
    font-family: var(--sans);
    color: var(--g, var(--blue));
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: .85;
    margin-top: 2px;
}
.bk-points li + li { padding-top: 5px; margin-top: 5px; border-top: 1px dashed var(--rule); }

/* 章首页里的节清单 */
.bk-sections {
    margin-top: auto;
    padding-top: 14px;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
}
.bk-sections ol { list-style: none; display: grid; gap: 7px; }
.bk-sections ol.is-cols { grid-template-columns: 1fr 1fr; }
.bk-sections li { break-inside: avoid; }
.bk-sections li button {
    width: 100%;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 14px;
    align-items: center; gap: 11px;
    padding: 10px 13px;
    text-align: left;
    border: 1px solid rgba(100, 116, 139, .22);
    border-radius: 6px;
    background: rgba(255, 255, 255, .66);
    transition: all .18s;
}
.bk-sections li button:hover {
    border-color: var(--g, var(--blue));
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(30, 64, 175, .1);
    transform: translateY(-1px);
}
.bk-sections em {
    font-style: normal;
    font-family: var(--sans);
    font-size: 10px;
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--g, var(--blue));
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: .75;
    transition: all .18s;
}
.bk-sections li button:hover em {
    opacity: 1;
    background: var(--g, var(--blue));
    color: #f5f9ff;
}
.bk-sections b {
    display: block;
    font-size: 12px; font-weight: 600; letter-spacing: .02em;
    color: var(--ink);
    line-height: 1.55;
}
.bk-sections small {
    display: block;
    margin-top: 1px;
    font-size: 10.5px; line-height: 1.65;
    color: var(--ink-4);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bk-sections i { font-size: 7.5px; color: var(--ink-4); padding-top: 4px; }

/* 静态章 */
.bk-static { flex: 0 0 auto; }
.bk-static-body { font-size: 13px; line-height: 2; color: var(--ink-3); margin-bottom: 16px; text-indent: 2em; }
.bk-cards { margin-top: 4px; }
.bk-cards ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.bk-cards li a, .bk-cards li > div {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--rule);
    background: rgba(255, 255, 255, .38);
    transition: all .2s;
    height: 100%;
}
.bk-cards li a:hover { border-color: var(--v); background: #fff; transform: translateY(-1px); }
.bk-cards b { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--ink); margin-bottom: 3px; }
.bk-cards small { display: block; font-size: 11px; line-height: 1.65; color: var(--ink-4); }

.bk-contact { display: grid; gap: 1px; margin-top: 16px; }
.bk-contact > a, .bk-contact > div {
    display: flex; align-items: center; gap: 13px;
    padding: 11px 2px;
    border-top: 1px dotted rgba(100, 116, 139, .3);
}
.bk-contact > :last-child { border-bottom: 1px dotted rgba(100, 116, 139, .3); }
.bk-contact i { width: 18px; text-align: center; font-size: 13px; color: var(--blue); opacity: .8; }
.bk-contact small { display: block; font-family: var(--sans); font-size: 9.5px; letter-spacing: .14em; color: var(--ink-4); }
.bk-contact b { font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--ink); }
.bk-contact > a:hover b { color: var(--blue); }

/* 微信行：右侧带二维码（与官网「马上联系」同一张） */
.bk-contact-wechat {
    display: flex; align-items: center; gap: 14px;
    padding: 11px 2px;
    border-top: 1px dotted rgba(100, 116, 139, .3);
}
.bk-contact-wx-text {
    display: flex; align-items: center; gap: 13px;
    flex: 1 1 auto; min-width: 0;
}
.bk-contact-qr {
    flex: 0 0 auto;
    width: 96px; height: 96px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 5px;
}

.bk-empty {
    flex: 1 1 auto;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 9px; text-align: center;
    border: 1px dashed rgba(100, 116, 139, .4);
    padding: 24px;
}
.bk-empty > i { font-size: 22px; color: var(--blue); opacity: .6; margin-bottom: 2px; }
.bk-empty b { font-size: 13.5px; letter-spacing: .05em; }
.bk-empty p { font-size: 11.5px; line-height: 1.8; color: var(--ink-3); max-width: 38ch; }

/* --- 节页（内嵌演示） --- */
.bk-pg.is-section .bk-pg-body.is-frame {
    padding: 0;
    overflow: hidden;
}
.bk-pg.is-section .bk-frame-head {
    margin: 0;
    padding: 5px 12px;
    align-items: center;
    border-bottom: 1px solid rgba(100, 116, 139, .16);
    background: rgba(248, 251, 255, .96);
}
.bk-pg.is-section .bk-frame-title h3 {
    font-size: clamp(13px, 1.2vw, 15px);
    font-weight: 600;
    -webkit-line-clamp: 1;
}
.bk-pg.is-section .bk-frame-no { font-size: 9.5px; opacity: .7; }
.bk-pg.is-section .bk-frame-note { display: none; }

.bk-pg.is-section .bk-folio { bottom: 28px; font-size: 9px; }

.bk-frame-head {
    flex: 0 0 auto;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
    margin-bottom: 10px;
}
.bk-frame-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.bk-frame-no {
    flex: 0 0 auto;
    font-family: var(--sans);
    font-size: 10px; letter-spacing: .1em;
    color: var(--ink-4);
}
.bk-frame-title h3 {
    font-size: clamp(16px, 1.7vw, 20px);
    font-weight: 600; letter-spacing: .06em;
    line-height: 1.4;
    color: var(--ink);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.bk-frame-tools { display: flex; gap: 5px; flex: 0 0 auto; }

.bk-frame {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    height: 100%;
    margin: 0;
    border: 0;
    background: #fff;
    overflow: hidden;
    box-shadow: none;
}
.bk-frame iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
    /* 原网页：可选中、可点击、可滚动 */
    pointer-events: auto;
}

.bk-frame-note {
    flex: 0 0 auto;
    margin-top: 8px;
    display: flex; gap: 7px; align-items: flex-start;
    font-size: 11px; line-height: 1.7;
    color: var(--ink-4);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.bk-frame-note i { color: rgba(37, 99, 235, .55); font-size: 9px; margin-top: 3px; }

/* --- 封底 --- */
.bk-end-card { max-width: 560px; margin: 0 auto; width: 100%; text-align: center; }
.bk-guide { list-style: none; display: grid; gap: 10px; margin: 22px 0; text-align: left; }
.bk-guide li { display: flex; gap: 12px; align-items: flex-start; font-size: 12.5px; line-height: 1.85; color: var(--ink-2); }
.bk-guide b {
    flex: 0 0 auto; width: 19px; height: 19px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; color: var(--blue);
    border: 1px solid rgba(37, 99, 235, .5);
    border-radius: 50%;
    margin-top: 2px;
}
.bk-end-contact {
    display: flex; gap: 18px; flex-wrap: wrap; justify-content: center;
    padding: 14px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    font-family: var(--sans);
    font-size: 11px; letter-spacing: .04em;
    color: var(--ink-3);
}
.bk-end-contact i { color: var(--blue); opacity: .7; margin-right: 6px; font-size: 10.5px; }
.bk-end-contact a:hover { color: var(--blue); }

/* ==========================================================================
   4. 底栏：浮动在书页下方
   ========================================================================== */
.bk-foot {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 8;
    display: flex; align-items: center; gap: 12px;
    padding: 6px clamp(12px, 2.6vw, 30px) 10px;
    background: linear-gradient(0deg, rgba(246, 249, 253, .96) 0%, rgba(246, 249, 253, .82) 55%, transparent 100%);
    color: var(--ink-4);
}
.bk-foot-btn {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 2px;
    font-size: 10px;
    color: var(--ink-3);
    transition: all .2s;
}
.bk-foot-btn:hover { background: rgba(100, 116, 139, .14); color: var(--ink); }
/* 上一章 / 下一章 */
.bk-foot-ch {
    display: inline-flex; align-items: center; gap: 6px;
    height: 28px; padding: 0 10px;
    border-radius: 2px;
    font-family: var(--sans);
    font-size: 11px; letter-spacing: .06em;
    color: var(--ink-3);
    transition: all .2s;
    flex: 0 0 auto;
}
.bk-foot-ch i { font-size: 9.5px; }
.bk-foot-ch:not(:disabled):hover {
    background: rgba(37, 99, 235, .1);
    color: var(--blue);
}
.bk-foot-ch:disabled { opacity: .3; cursor: default; }
.bk-foot-btn:disabled { opacity: .3; cursor: default; }

/* 卷首页拦截顺序翻页时的提示 */
.bk-vol-tip {
    position: absolute;
    left: 50%; bottom: 64px; z-index: 20;
    transform: translate(-50%, 10px);
    display: inline-flex; align-items: center; gap: 9px;
    padding: 10px 18px;
    background: rgba(15, 23, 42, .93);
    color: #eef4ff;
    font-family: var(--sans);
    font-size: 12px; letter-spacing: .04em;
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
    opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    white-space: nowrap;
    max-width: 88vw;
}
.bk-vol-tip.is-on { opacity: 1; transform: translate(-50%, 0); }
.bk-vol-tip i { color: var(--cyan-l); font-size: 12px; }
.bk-progress {
    flex: 1 1 auto;
    height: 2px;
    background: rgba(100, 116, 139, .2);
    overflow: hidden;
}
.bk-progress i {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--cyan), var(--cyan-l));
    transition: width .4s var(--ease);
}
.bk-counter {
    font-family: var(--sans);
    font-size: 10.5px; letter-spacing: .1em;
    color: var(--ink-4);
    min-width: 62px; text-align: right;
}
.bk-counter b { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   5. 目录抽屉
   ========================================================================== */
.bk-drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.bk-drawer.is-open { display: block; }
.bk-drawer-mask {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, .5);
    backdrop-filter: blur(2px);
    animation: bkFade .24s var(--ease);
}
.bk-drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: min(360px, 84vw);
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, #f8fafe, #edf2fa);
    box-shadow: -18px 0 48px rgba(0, 0, 0, .34);
    animation: bkSlide .3s var(--ease);
}
@keyframes bkFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes bkSlide { from { transform: translateX(24px); opacity: 0 } to { transform: translateX(0); opacity: 1 } }

.bk-drawer-panel > header {
    flex: 0 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 14px 13px 20px;
    border-bottom: 1px solid var(--rule);
}
.bk-drawer-panel > header b { font-size: 14px; letter-spacing: .18em; }
.bk-drawer-panel .bk-icon-btn { color: var(--ink-3); }
.bk-drawer-panel .bk-icon-btn:hover { background: rgba(100, 116, 139, .12); color: var(--ink); }

.bk-drawer-body {
    flex: 1 1 auto; min-height: 0;
    overflow-y: auto;
    padding: 8px 10px 26px;
    scrollbar-width: thin;
}
.bk-drawer-l1 {
    width: 100%;
    display: flex; align-items: center; gap: 9px;
    padding: 7.5px 10px;
    border-radius: 2px;
    font-size: 12.5px; letter-spacing: .05em;
    color: var(--ink-2);
    text-align: left;
    transition: background .16s, color .16s;
}
.bk-drawer-l1 i { width: 14px; text-align: center; font-size: 10.5px; opacity: .55; }
.bk-drawer-l1 span { flex: 1 1 auto; min-width: 0; }
.bk-drawer-l1 em { font-family: var(--sans); font-style: normal; font-size: 10px; color: var(--ink-4); }
.bk-drawer-l1:hover { background: rgba(100, 116, 139, .1); }
.bk-drawer-l1.is-on { color: var(--v, var(--blue)); background: rgba(37, 99, 235, .1); }
.bk-drawer-l1.is-on i { opacity: .9; }

.bk-drawer-vol { margin: 3px 0; }
.bk-drawer-vol > .bk-drawer-l1 {
    font-weight: 600;
    color: var(--v);
    letter-spacing: .08em;
}
.bk-drawer-vol > .bk-drawer-l1 em { color: color-mix(in srgb, var(--v) 60%, transparent); }

.bk-drawer-l2 {
    width: 100%;
    display: flex; align-items: center; gap: 8px;
    padding: 5.5px 10px 5.5px 30px;
    border-radius: 2px;
    font-size: 11.5px;
    color: var(--ink-3);
    text-align: left;
    transition: background .16s, color .16s;
}
.bk-drawer-l2 i { width: 13px; text-align: center; font-size: 9.5px; opacity: .4; }
.bk-drawer-l2 span { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-drawer-l2 em { font-family: var(--sans); font-style: normal; font-size: 9.5px; color: var(--ink-4); opacity: .8; }
.bk-drawer-l2:hover { background: rgba(100, 116, 139, .09); color: var(--ink); }
.bk-drawer-l2.is-on { color: var(--v); background: rgba(37, 99, 235, .09); font-weight: 600; }

/* ==========================================================================
   6. Toast
   ========================================================================== */
.bk-toast {
    position: fixed;
    left: 50%; bottom: 68px;
    transform: translate(-50%, 12px);
    z-index: 80;
    padding: 9px 18px;
    border-radius: 2px;
    background: rgba(15, 23, 42, .92);
    color: #eef4ff;
    font-family: var(--sans);
    font-size: 11.5px; letter-spacing: .06em;
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s, transform .24s;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
}
.bk-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   7. 窄屏
   ========================================================================== */
@media (max-width: 1024px) {
    .bk-cover-inner { grid-template-columns: 1fr; gap: 40px; }
    .bk-cover-text { max-width: none; text-align: center; }
    .bk-cover-actions, .bk-cover-meta, .bk-cover-vols { justify-content: center; }
    .bk-cover-vols li { text-align: left; }
    .bk-book-cover { width: min(280px, 62vw); }
    .bk-tabs { display: none; }
    .bk-turn { display: none; }
    .bk-top-crumb .bk-crumb-vol { display: none; }
    .bk-top-tools .bk-top-btn span { display: none; }
}

@media (max-width: 720px) {
    .bk-cover-h1 { font-size: 38px; letter-spacing: .14em; }
    .bk-cover-vols em { display: none; }
    .bk-cover-foot { display: none; }

    /* 手机上同样铺满整屏：纸色、无书脊、无深色边 */
    .bk-desk { padding: 0; }
    .bk-book { flex-direction: column; max-height: 100%; width: 100%; }
    .bk-spine { display: none; }
    .bk-sheets {
        width: 100%;
        height: 100%;
        min-height: 0;
        flex: 1 1 auto;
        perspective: none;
    }
    .bk-pg {
        border-radius: 0;
        transform-origin: right center;
        box-shadow: none;
    }
    .bk-pg-body { padding: 46px 16px 44px 18px; }
    .bk-reader.is-demo .bk-desk { padding: 0; }
    .bk-pg.is-section .bk-pg-body.is-frame { padding: 42px 0 40px; }
    .bk-pg-body.is-frame { padding: 42px 10px 40px; }
    .bk-folio { bottom: 30px; }

    .bk-top { padding: 8px 10px; gap: 8px; }
    .bk-top-btn { height: 28px; padding: 0 8px; font-size: 11px; }
    .bk-foot { padding: 6px 12px 10px; }

    .bk-toc { gap: 11px; }
    .bk-toc-vol ul { columns: 2; }
    .bk-toc-vol li button { font-size: 11px; }

    .bk-vol-chapters ol.is-cols { grid-template-columns: 1fr; gap: 4px; }
    .bk-vol-chapters li button { grid-template-columns: 18px minmax(0, 1fr) 24px; }
    .bk-vch-tag { display: none !important; }

    .bk-points li { font-size: 11.5px; }
    .bk-sections ol.is-cols { grid-template-columns: 1fr; }
    .bk-frame-no { display: none; }
    .bk-frame-title h3 { font-size: 14px; }
    .bk-frame-note { -webkit-line-clamp: 1; font-size: 10.5px; }
    .bk-actions .bk-btn { height: 34px; font-size: 11.5px; padding: 0 13px; }
    .bk-drawer-panel { width: 88vw; }
    /* 底栏章导航只留图标，给进度条让地方 */
    .bk-foot-ch span { display: none; }
    .bk-foot-ch { padding: 0 7px; }
}

/* 减少动效 */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
