@layer reset, tokens, base, layout, components, states;

@layer tokens {
:root {
    --primary-color: var(--accent-bar, #b3863d);
    --primary-dark: #9a6d29;
    --danger-color: var(--color-danger, #9e4a38);
    --text-color: #1f1e1b;
    --border-color: #e4ded3;
    --border-light: #eee9e0;
    --ink: #1f1e1b;
    --on-dark-weak: #e8e3da; /* 深色弹层上弱亮字 */
    --bg-primary: #f7f4ee;
    --bg-secondary: #ece7dd;
    --bg-white: #ffffff;
    --shadow-light: 0 2px 8px rgba(31, 30, 27, .06);
    --shadow-medium: 0 1px 3px rgba(31, 30, 27, .04);
    --radius-small: var(--radius-sm, 4px);
    --radius-medium: var(--radius-md, 6px);
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 40px;
    /* 阅读页字体：system-ui 优先，再按 macOS / Windows / Android / Linux 常见系统字体回退 */
    --font-family-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Noto Sans CJK SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    --font-family-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", SimSun, "NSimSun", "STSong", "LiSong Pro", serif;
    --font-family-kaiti: "Kaiti SC", "STKaiti", KaiTi, "AR PL UKai CN", "Noto Serif SC", serif;
    --reader-width: 960px;
    --tools-width: 72px;
    --read-float-h: calc(44px + env(safe-area-inset-top, 0px));
    --read-float-gap: var(--spacing-lg);
    /* 阅读页弹层与卷头统一设计令牌（自动跟随 6 套阅读主题） */
    --read-pop-bg: var(--bg-surface, #ffffff);
    --read-pop-subtle: var(--bg-subtle, #f2eee6);
    --read-pop-line: var(--line-subtle, #eee9e0);
    --read-pop-border: var(--line-default, #e4ded3);
    --read-pop-ink: var(--color-text-strong, #171613);
    --read-pop-secondary: var(--text-secondary, #5c5850);
    --read-pop-muted: var(--text-muted, #767168);
    --read-pop-shadow: 0 12px 32px rgba(31, 30, 27, .12);
    --read-vol-bg: var(--bg-subtle, #f2eee6);
    --read-vol-bg-hover: var(--warm-surface-end, #f5efe2);
    --read-vol-border: var(--line-subtle, #eee9e0);
    --read-vol-border-hover: var(--warm-border-soft, #eae0ce);
}

:is(html,body)[reader-width="640"] { --reader-width: 640px; }
:is(html,body)[reader-width="800"] { --reader-width: 800px; }
:is(html,body)[reader-width="1280"] { --reader-width: 1280px; }

body.theme-blue {
    --bg-secondary: #CFD9E0;
    --bg-primary: #F5F8FB;
    --border-color: #E4E9EE;
    --text-color: #131A1E;
    --text-secondary: #5B6265;
    --text-muted: #93999D;
    --read-float-bg: var(--bg-primary);
    --read-float-line: var(--border-color);
    --read-float-ink: var(--text-color);
    --read-pop-bg: #f8fbfd;
    --read-pop-subtle: #edf3f8;
    --read-pop-line: #dce6ee;
    --read-pop-border: #cedbe6;
    --read-pop-ink: #131a1e;
    --read-pop-secondary: #4e606b;
    --read-pop-muted: #70828e;
    --read-vol-bg: #edf3f8;
    --read-vol-bg-hover: #e4edf5;
    --read-vol-border: #d8e3ec;
    --read-vol-border-hover: #c5d6e3;
    --bg-surface: #f8fbfd;
    --bg-subtle: #edf3f8;
    --bg-input: #ffffff;
    --line-subtle: #dce6ee;
    --line-default: #cedbe6;
}

body.theme-yellow {
    --read-float-bg: #f8f4e8;
    --read-float-line: #e8dec8;
    --read-pop-bg: #faf7ef;
    --read-pop-subtle: #f1ebdc;
    --read-pop-line: #e5decb;
    --read-pop-border: #dad0b9;
    --read-pop-ink: #3c3626;
    --read-pop-secondary: #685e49;
    --read-pop-muted: #8a7f67;
    --read-vol-bg: #f1ebdc;
    --read-vol-bg-hover: #e9e0cc;
    --read-vol-border: #e1d8c2;
    --read-vol-border-hover: #d3c5a6;
    --bg-surface: #faf7ef;
    --bg-subtle: #f1ebdc;
    --bg-input: #fdfbf6;
    --line-subtle: #e5decb;
    --line-default: #dad0b9;
}

body.theme-green {
    --read-float-bg: #eef5ec;
    --read-float-line: #d4e3d0;
    --read-pop-bg: #f8fcf6;
    --read-pop-subtle: #ebf4e7;
    --read-pop-line: #d9e6d4;
    --read-pop-border: #cadbc4;
    --read-pop-ink: #2f3b2b;
    --read-pop-secondary: #53654e;
    --read-pop-muted: #72856c;
    --read-vol-bg: #ebf4e7;
    --read-vol-bg-hover: #e0edda;
    --read-vol-border: #d5e3cf;
    --read-vol-border-hover: #c1d5b9;
    --bg-surface: #f8fcf6;
    --bg-subtle: #ebf4e7;
    --bg-input: #fcfefb;
    --line-subtle: #d9e6d4;
    --line-default: #cadbc4;
}

body.theme-red {
    --read-float-bg: #f8f1f0;
    --read-float-line: #e9d7d5;
    --read-pop-bg: #fff7f7;
    --read-pop-subtle: #f8ebeb;
    --read-pop-line: #ecdada;
    --read-pop-border: #e3cbcb;
    --read-pop-ink: #453030;
    --read-pop-secondary: #745959;
    --read-pop-muted: #937777;
    --read-vol-bg: #f8ebeb;
    --read-vol-bg-hover: #f2dfdf;
    --read-vol-border: #ead6d6;
    --read-vol-border-hover: #dec2c2;
    --bg-surface: #fff7f7;
    --bg-subtle: #f8ebeb;
    --bg-input: #fffcfc;
    --line-subtle: #ecdada;
    --line-default: #e3cbcb;
}

body.theme-dark {
    --read-float-bg: #2c2c2c;
    --read-float-line: rgba(255, 255, 255, .12);
    --read-float-ink: #e0e0e0;
    /* 对齐全站素宣墨金暗色体系（阅读页不加载 dark.css，由本处统一供给弹层与控件变量） */
    --bg-surface: #24221e;
    --bg-subtle: #2e2b26;
    --bg-form: #2b2824;
    --bg-input: #2e2b26;
    --line-subtle: rgba(240, 235, 226, .08);
    --line-default: rgba(240, 235, 226, .13);
    --line-strong: rgba(240, 235, 226, .22);
    --line-soft: var(--line-subtle);
    --line-mid: var(--line-strong);
    --border-color: var(--line-default);
    --color-text: #e6e0d5;
    --color-text-strong: #f2ede4;
    --text-secondary: #aba396;
    --text-muted: #8a8275;
    --accent-bar: #c9a255;
    --accent-2: #b58d42;
    --color-emphasis: #d4b06a;
    --color-emphasis-hover: #e4c686;
    --warm-surface: #2d2820;
    --warm-surface-end: #27221b;
    --warm-border: #524530;
    --warm-border-soft: #403728;
    --warm-ink: #e2c27e;
    --warm-tint: rgba(212, 176, 106, .15);
    --warm-tint-hover: rgba(212, 176, 106, .22);
    --site-btn-accent-bg: #362e22;
    --site-btn-accent-border: #5a4b33;
    --cta-solid-bg: #d4b06a;
    --cta-solid-bg-hover: #e2c280;
    --cta-solid-fg: #1b1814;
    --input-focus-border: #c89e52;
    --input-focus-ring: 0 0 0 3px rgba(200, 158, 82, .22);
    --search-suggest-shadow: 0 12px 26px -6px rgba(0, 0, 0, .48);
    --suggest-scroll-thumb: rgba(212, 198, 174, .28);
    --suggest-scroll-thumb-hover: rgba(212, 198, 174, .46);
    --read-pop-bg: #24221e;
    --read-pop-subtle: #2e2b26;
    --read-pop-line: rgba(240, 235, 226, .09);
    --read-pop-border: rgba(240, 235, 226, .13);
    --read-pop-ink: #e6e0d5;
    --read-pop-secondary: #aba396;
    --read-pop-muted: #8a8275;
    --read-pop-shadow: 0 12px 32px rgba(0, 0, 0, .48);
    --read-vol-bg: #2f2c27;
    --read-vol-bg-hover: #37322a;
    --read-vol-border: rgba(240, 235, 226, .09);
    --read-vol-border-hover: #524530;
}
}

@layer base {
:focus-visible {
    outline: 2px solid var(--accent-bar, #b3863d);
    outline-offset: 2px;
}

em,
i {
    font-style: normal;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 100%;
    font-weight: 100;
    font-family: var(--font-family-base);
    margin: 0;
}
}

@layer layout {
.reader-container {
    display: grid;
    grid-template-areas:
        "left-tools main right-tools";
    grid-template-columns: auto 1fr auto;
    min-height: 100vh;
    position: relative;
    padding-top: calc(var(--read-float-h) + var(--read-float-gap));
    box-sizing: border-box;
    overflow-anchor: none;
}
}

@layer components {
body,
.wrapper {
    background: var(--bg-secondary);
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--text-color);
}
body a,
body a:hover,
body a:focus-visible,
body a:active,
body a:visited {
    text-decoration: none;
}
.reader-container ul,
.reader-container ol,
.read-catalogue-pop ul,
.read-catalogue-pop ol,
.read-mobile-catalogue ul,
.read-mobile-catalogue ol,
.read-mobile-setting ul,
.read-mobile-setting ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pop-head span.pop-title {
    line-height: 25px;
    height: 25px;
    display: block;
    font-size: 18px;
    overflow: hidden;
    font-weight: 700;
    text-align: center;
    color: var(--ink);
}

.lm-btn {
    font-weight: 600;
    color: var(--read-pop-ink, var(--ink));
    vertical-align: top;
    border: none;
    cursor: pointer;
}

.lm-btn.js-reset-theme {
    background: var(--read-pop-subtle, var(--bg-subtle));
    color: var(--read-pop-ink, var(--color-text));
    border: 1px solid var(--read-pop-border, var(--line-default));
    border-radius: var(--radius-sm, 4px);
    line-height: 36px;
    height: 38px;
    font-size: 14px;
    font-weight: 600;
    box-sizing: border-box;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.lm-btn.js-reset-theme:hover {
    background: var(--warm-surface);
    border-color: var(--warm-border);
    color: var(--warm-ink);
}

.pop-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    overflow: hidden;
    text-align: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.pop-close .site-icon {
    font-size: 24px;
    color: #888;
    padding: 0;
    font-weight: bold;
}
.pop-close .site-icon:hover {
    color: var(--color-emphasis);
}

.read-guide-pop {
    width: 340px;
    margin-left: -170px;
}

.read-guide-pop, .read-error-pop {
    background: var(--read-pop-bg);
    color: var(--read-pop-ink);
    position: fixed;
    left: 50%;
    z-index: 1001;
    padding: 22px 26px 24px;
    top: -3000px;
    border-radius: var(--radius-lg, 6px);
    border: 1px solid var(--read-pop-border);
    box-shadow: var(--read-pop-shadow);
    box-sizing: border-box;
    overflow: clip;
}

.read-guide-pop .pop-head {
    margin-bottom: 18px;
    border-bottom: none;
}

.read-guide-pop .pop-head .pop-title {
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
    height: auto;
    color: var(--read-pop-ink);
    padding-right: 32px;
}

.read-guide-pop .pop-close {
    top: 18px;
    right: 20px;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm, 4px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s ease, color .15s ease;
}

.read-guide-pop .pop-close:hover {
    background: var(--read-pop-subtle);
}

.read-guide-pop .pop-close .site-icon {
    font-size: 18px;
    line-height: 1;
    color: var(--read-pop-muted);
}

.read-guide-pop .pop-close:hover .site-icon {
    color: var(--read-pop-ink);
}
.read-guide-pop.is-open {
    top: 30%;
}
.read-error-pop.is-open {
    top: 18%;
}
.catalogue-state-msg {
    padding: 20px;
    text-align: center;
}
.catalogue-state-msg.is-muted {
    color: var(--text-secondary);
}
.catalogue-state-msg.is-err {
    color: var(--danger-color);
}
.pay-auto i.is-auto-on {
    color: var(--accent-bar, #b3863d);
}
.pay-auto i.is-auto-off {
    color: var(--text-muted, #767168);
}

.catalogue-list::-webkit-scrollbar-track,
.catalogue-list::-webkit-scrollbar-thumb {
    border-radius: 10px;
}
.catalogue-list::-webkit-scrollbar-track {
    background-color: transparent;
}
.catalogue-list::-webkit-scrollbar-thumb {
    background-color: #ebebeb;
}

.wrapper {
    grid-area: main;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

.js-reader-wrapper {
    width: var(--reader-width);
    max-width: 100%;
    margin: 0 auto;
    overflow-anchor: none;
}

.wrapper .reader-wrapper {
    font-size: 18px;
    font-family: var(--font-family-base);
}

.wrapper .section {
    margin-bottom: var(--spacing-lg);
    background: var(--bg-primary);
    border-radius: var(--radius-small);
    box-shadow: var(--shadow-medium);
}

.wrapper .section:last-child {
    margin-bottom: 0;
}

.read-cont {
    min-height: 600px;
    padding: 0 70px 46px
}

.read-cont.read-cont--comic {
    padding-left: 20px;
    padding-right: 20px;
}

.read-chapter-info {
    position: relative;
    margin-bottom: var(--spacing-md);
    padding: 38px 0 8px;
    border-bottom: 1px dashed var(--border-color);
}

.read-float-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: var(--read-float-bg, var(--bg-primary));
    border-bottom: 1px solid var(--read-float-line, var(--border-light));
    transform: translate3d(0, 0, 0);
    will-change: transform;
    transition: transform .26s ease;
    padding-top: env(safe-area-inset-top, 0px);
}

.read-float-bar.is-hidden {
    transform: translate3d(0, -100%, 0);
    pointer-events: none;
}

.read-float-bar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    max-width: var(--site-max-w);
    height: 44px;
    min-height: 44px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.read-float-bar .search {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    max-width: 360px;
    margin: 0 auto;
}

.read-float-bar .search > .search-field {
    position: relative;
    z-index: 10;
    flex: 1 1 auto;
    min-width: 0;
}

.read-float-bar .search .input {
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--site-ctrl-h, 38px);
    background: #fff;
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    position: relative;
    z-index: 1;
    overflow: visible;
    box-sizing: border-box;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.read-float-bar .search .input:focus-within {
    border-color: var(--input-focus-border, #b3863d);
    box-shadow: var(--input-focus-ring, 0 0 0 3px rgba(179, 134, 61, 0.14));
}

.read-float-bar .search .input.open {
    border-color: var(--input-focus-border, #b3863d);
    border-bottom-width: 0;
    padding-bottom: 1px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    box-shadow: none;
}
.read-float-bar .search .input.open .search-scope,
.read-float-bar .search .input.open .site-select--scope .site-select__trigger {
    border-bottom-left-radius: 0;
}

.read-float-bar .search .input input {
    flex: 1 1 auto;
    min-width: 0;
    height: calc(var(--site-ctrl-h, 38px) - 2px);
    padding: 0 12px;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
}

.read-float-bar .search .input input::placeholder {
    color: var(--text-muted);
}

.read-float-bar .search .input .search-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--site-ctrl-h, 38px);
    height: calc(var(--site-ctrl-h, 38px) - 2px);
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    -webkit-tap-highlight-color: transparent;
}

.read-float-bar .search .input:focus-within .search-btn {
    color: var(--color-emphasis);
}
@media (hover: hover) {
    .read-float-bar .search .input .search-btn:hover {
        color: var(--color-emphasis);
    }
}
.read-float-bar .search .input .search-btn:focus-visible {
    color: var(--color-emphasis);
}
.read-float-bar .search .input .search-btn:active {
    color: var(--accent-bar);
}

.read-float-bar .search .search-suggest-list {
    z-index: 600;
}

.read-float-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.read-float-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 5px 14px;
    border-radius: var(--radius-md, 6px);
    background: var(--cta-solid-bg, #24211c);
    color: var(--cta-solid-fg, #faf7f0);
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    transition: background-color .18s ease, color .18s ease;
}

.read-float-login:hover,
.read-float-login:focus-visible {
    background: var(--cta-solid-bg-hover, #38332b);
    color: var(--cta-solid-fg, #faf7f0);
}

.read-float-user-wrap {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.read-float-user {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    line-height: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 0 0 2px transparent;
    transition: box-shadow .2s ease;
}

.read-float-user-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 40;
    min-width: 148px;
    padding: 8px 0;
    border: 1px solid var(--read-float-line, #e8e8e8);
    border-radius: var(--radius-sm, 4px);
    background: var(--read-float-bg, #fff);
    color: var(--read-float-ink, #333);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}

.read-float-user-panel-row {
    margin: 0;
    padding: 6px 14px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.read-float-menu-btn {
    display: block;
    width: 100%;
    padding: 8px 14px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--read-float-ink, #333);
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.read-float-menu-btn:hover,
.read-float-menu-btn:focus-visible {
    background: var(--bg-subtle, #f5f5f5);
}

.read-float-menu-btn--logout {
    color: var(--danger-color, #e53935);
}

.read-float-menu-btn--logout:hover,
.read-float-menu-btn--logout:focus-visible {
    background: rgba(229, 57, 53, .08);
    color: var(--danger-color, #e53935);
}

.read-float-avatar {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-sizing: border-box;
}

.read-float-user:hover,
.read-float-user:focus-visible,
.read-float-user-wrap:focus-within > .read-float-user {
    box-shadow: 0 0 0 2px var(--accent-bar, #b3863d);
}

.read-chap-mark {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
}

.read-chap-mark:focus-visible {
    outline: 2px solid var(--accent-bar);
    outline-offset: 2px;
}

.read-chap-mark-ribbon {
    display: block;
    width: 22px;
    height: 34px;
    background: #c5c5c5;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%);
    transition: background-color .18s ease, height .18s ease, filter .18s ease;
}

.read-chap-mark.is-marked .read-chap-mark-ribbon {
    background: var(--danger-color, #9e4a38);
}

.read-chap-mark[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 20;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(34, 30, 25, .92);
    color: #f7f4ee;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-3px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.read-cont--comic .read-chap-mark[data-tip]::after {
    left: auto;
    right: 0;
    transform: translateY(-3px);
}

.read-chap-mark:focus-visible .read-chap-mark-ribbon {
    height: 38px;
    background: #9a8d7a;
}

.read-chap-mark.is-marked:focus-visible .read-chap-mark-ribbon {
    background: var(--danger-color, #9e4a38);
    filter: brightness(1.08);
}

.read-chap-mark[data-tip]:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.read-cont--comic .read-chap-mark[data-tip]:focus-visible::after {
    transform: translateY(0);
}

@media (hover: hover) {
    .read-chap-mark:hover .read-chap-mark-ribbon {
        height: 38px;
        background: #9a8d7a;
    }

    .read-chap-mark.is-marked:hover .read-chap-mark-ribbon {
        background: var(--danger-color, #9e4a38);
        filter: brightness(1.08);
    }

    .read-chap-mark[data-tip]:hover::after {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .read-cont--comic .read-chap-mark[data-tip]:hover::after {
        transform: translateY(0);
    }
}

.read-chapter-info .title {
    margin-bottom: var(--spacing-md);
    font-size: 24px;
    line-height: 30px;
    font-weight: 700;
    text-align: center;
    overflow: hidden;
}

.read-chapter-info .read-info-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px 18px;
    flex-wrap: wrap;
}

.read-chapter-info .read-info-list li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13.5px;
    line-height: 20px;
    color: var(--text-muted);
}

.read-chapter-info .read-info-list li .site-icon {
    font-size: 14px;
    line-height: 1;
    color: currentColor;
    opacity: 0.86;
    flex-shrink: 0;
}

.read-chapter-info .read-info-list li .read-meta-val {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article {
    position: relative;
    color: var(--text-color);
    line-height: 1.8;
    min-width: 0;
    max-width: 100%;
    font-synthesis: none;
    font-variant-east-asian: normal;
    text-underline-position: from-font;
}

.article p {
    padding: 13px 0;
    text-indent: 2em;
    margin: 0;
    word-break: normal;
    overflow-wrap: anywhere;
}

@supports (text-wrap: pretty) {
    .article p {
        text-wrap: pretty;
    }
}

.comic-images {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    min-width: 0;
    max-width: 100%;
}

.comic-images img,
.read-cont .article img.piclist {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-width: 0;
}

.read-cont .article .mask {
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 256px;
    background-image: linear-gradient(180deg, rgba(245, 245, 245, 0), var(--line-faint))
}

.read-cont:has(.vip-limit-wrap) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 54vh;
}

.vip-limit-wrap {
    margin: 44px auto 56px;
    padding: 40px 20px 28px;
    max-width: 620px;
    width: 100%;
    border-top: 1px solid var(--read-pop-line, rgba(128, 110, 85, .20));
    text-align: center;
    box-sizing: border-box;
}

.vip-limit-wrap .tip {
    margin: 0 0 10px;
    color: var(--read-pop-muted, #767168);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: .04em;
    line-height: 1.5;
    text-align: center;
}

.vip-limit-wrap p {
    margin: 0 0 18px;
    color: var(--read-pop-secondary, #5c5850);
    font-size: 14px;
    line-height: 1.65;
    text-align: center;
}

.vip-limit-wrap p .pay-voucher {
    margin-left: 10px;
    color: var(--primary-color, #b3863d);
    font-weight: 600;
}

.vip-limit-wrap .read-paywall-orig {
    margin-left: 6px;
    font-size: 0.88em;
    color: var(--read-pop-muted, #767168);
    text-decoration: line-through;
}

.vip-limit-wrap .read-way-list {
    display: flex;
    justify-content: center;
    text-align: center;
}

.vip-limit-wrap .read-way-list .pay-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    max-width: 380px;
    padding: 6px 0 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.vip-limit-wrap .read-way-list .pay-box h5 {
    margin: 0;
    font-size: 16px;
    color: var(--read-pop-ink, #171613);
    line-height: 1.45;
    text-align: center;
    font-weight: 600;
}

.vip-limit-wrap .read-way-list .pay-box p {
    margin: 0;
    font-size: 13px;
    color: var(--read-pop-secondary, #5c5850);
}

.vip-limit-wrap .read-way-list .pay-box .pay-auto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 2px 0 6px;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    color: var(--read-pop-muted, #767168);
    cursor: pointer;
    user-select: none;
    transition: color .16s ease;
}

.vip-limit-wrap .read-way-list .pay-box .pay-auto:hover {
    color: var(--read-pop-ink, #171613);
}

.vip-limit-wrap .read-way-list .pay-box .pay-auto i {
    font-size: 18px;
    line-height: 1;
}

.vip-limit-wrap .read-way-list .pay-box .pay-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    height: 50px;
    padding: 0 24px;
    margin: 2px auto 0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #fffdf8;
    background: linear-gradient(135deg, #c2954b 0%, var(--accent-bar, #b3863d) 55%, var(--accent-2, #9a6d29) 100%);
    border-radius: 999px;
    border: none;
    box-shadow: 0 8px 20px rgba(179, 134, 61, .24);
    box-sizing: border-box;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.vip-limit-wrap .read-way-list .pay-box .pay-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(154, 109, 41, .30);
    filter: brightness(1.04);
    color: #fffdf8;
}

.read-left-tools {
    grid-area: left-tools;
    position: fixed;
    top: calc(var(--read-float-h) + var(--read-float-gap));
    bottom: var(--spacing-lg);
    left: 50%;
    width: 60px;
    transform: translateX(calc(-100% - var(--reader-width) / 2 - 4px));
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    pointer-events: none;
}

.read-left-tools > button.report-error {
    margin-top: auto;
    flex-shrink: 0;
    pointer-events: auto;
}

.tools-nav {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 2px;
    pointer-events: auto;
}

.read-left-tools .read-left-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 6px 2px;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 1.2;
    color: var(--text-color);
    text-align: center;
    text-decoration: none;
    background: var(--bg-primary);
    border: none;
    border-radius: var(--radius-small);
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}

.read-left-tools .read-left-btn .icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    margin-bottom: var(--spacing-xs);
}

.read-left-tools .read-left-btn .icon-wrap .site-icon {
    font-size: 22px;
    line-height: 22px;
    color: inherit;
    transition: color .18s ease;
}

.read-left-tools .read-left-btn .s-txt {
    display: block;
    max-width: 100%;
    font-size: 12px;
    line-height: 1.3;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .18s ease;
}

.read-left-tools .read-left-btn:not(.back):not(.report-error):hover .icon-wrap .site-icon,
.read-left-tools .read-left-btn:not(.back):not(.report-error):hover .s-txt {
    color: var(--warm-ink, #8b6324);
}

.read-left-tools a.back {
    background: var(--site-btn-accent-bg, #f5ecdc);
    color: var(--warm-ink, #7d561d);
    border: 1px solid var(--warm-border, #dfd0b5);
}

.read-left-tools a.back:hover {
    background: var(--site-btn-accent-bg-hover, #ece0c8);
    color: var(--ink);
}

.read-left-tools a.back:hover .icon-wrap .site-icon,
.read-left-tools a.back:hover .s-txt {
    color: var(--warm-ink, #7d561d);
}

.read-left-tools button.report-error {
    color: var(--danger-color);
}

.read-left-tools button.report-error:hover .icon-wrap .site-icon,
.read-left-tools button.report-error:hover .s-txt {
    color: var(--danger-color);
}

.read-left-tools .read-tool-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 16px;
    max-width: 34px;
    height: 16px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 999px;
    background: var(--color-danger, #9e4a38);
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.read-error-pop {
    width: 452px;
    max-width: calc(100vw - 32px);
    padding: 24px 28px 26px;
    transform: translateX(-50%);
}

.read-error-pop .pop-head {
    margin-bottom: 16px;
    border-bottom: none;
    position: relative;
}

.read-error-pop .pop-head h2 {
    margin: 0;
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    color: var(--read-pop-ink);
    text-align: left;
    padding-right: 36px;
}

.read-error-pop .err-context-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 0;
    padding: 0 32px 0 0;
    min-width: 0;
    color: var(--read-pop-muted);
}
.read-error-pop .err-context-bar .site-icon-read {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--accent-bar);
}
.read-error-pop .err-context {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.4;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.read-error-pop .report-error-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.read-error-pop .err-text-wrap {
    display: flex;
    flex-direction: column;
    padding: 10px 12px 9px;
    border: 1px solid var(--read-pop-border);
    border-radius: var(--radius-sm, 4px);
    background: var(--bg-input);
    box-sizing: border-box;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.read-error-pop .err-text-wrap:focus-within {
    border-color: var(--input-focus-border, #b3863d);
    box-shadow: var(--input-focus-ring, 0 0 0 3px rgba(179, 134, 61, 0.14));
}
.read-error-pop .err-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 0 0;
}
.read-error-pop .err-meta-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}
.read-error-pop .err-shortcut-hint {
    font-size: 11.5px;
    color: var(--read-pop-muted, #98a2b3);
    line-height: 1.2;
}
.read-error-pop .err-chars {
    font-size: 12px;
    color: var(--read-pop-muted, #98a2b3);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    transition: color .15s ease;
}
.read-error-pop .err-chars.is-warn {
    color: #b3741d;
    font-weight: 600;
}
.read-error-pop .err-chars.is-max {
    color: #c24130;
    font-weight: 600;
}
.read-error-pop .err-type-group {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}
.read-error-pop .err-type-group legend {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.read-error-pop .err-type-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    padding: 3px;
    border-radius: var(--radius-md, 6px);
    background: var(--read-pop-subtle);
    border: 1px solid var(--read-pop-line);
    box-sizing: border-box;
}
.read-error-pop .err-type-item {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}
.read-error-pop .err-type-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}
.read-error-pop .err-type-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 8px;
    border-radius: var(--radius-sm, 4px);
    border: 1px solid transparent;
    background: transparent;
    color: var(--read-pop-secondary);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.read-error-pop .err-type-item:hover span {
    color: var(--read-pop-ink);
    background: rgba(255, 255, 255, 0.55);
}
.read-error-pop .err-type-item input[type="radio"]:checked + span {
    background: var(--read-pop-bg);
    border-color: var(--accent-bar);
    color: var(--warm-ink);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(77, 53, 18, 0.08);
}
.read-error-pop .err-type-item input[type="radio"]:focus-visible + span {
    border-color: var(--input-focus-border, #b3863d);
    box-shadow: var(--input-focus-ring, 0 0 0 3px rgba(179, 134, 61, 0.16));
}
.read-error-pop .err-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.read-error-pop .err-tag-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid var(--read-pop-border);
    background: var(--read-pop-bg);
    color: var(--read-pop-secondary);
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.read-error-pop .err-tag-chip.hide {
    display: none;
}
.read-error-pop .err-tag-chip:hover {
    border-color: var(--warm-border);
    background: var(--warm-surface);
    color: var(--read-pop-ink);
}
.read-error-pop .err-tag-chip.is-active {
    background: var(--warm-tint);
    border-color: var(--accent-bar);
    color: var(--warm-ink);
    font-weight: 600;
}
.read-error-pop .err-tag-chip:focus-visible {
    outline: none;
    border-color: var(--input-focus-border, #b3863d);
    box-shadow: var(--input-focus-ring, 0 0 0 3px rgba(179, 134, 61, 0.16));
}
.read-error-pop .err-textarea {
    width: 100%;
    min-height: 76px;
    height: 84px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--read-pop-ink);
    resize: none;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
    font-family: var(--font-family-base);
}
.read-error-pop .err-textarea::placeholder {
    color: var(--read-pop-muted, #98a2b3);
}
.read-error-pop .err-textarea:focus {
    outline: none;
    border: none;
    box-shadow: none;
    background: transparent;
}
.read-error-pop .err-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 30px;
    padding: 0 15px;
    background: var(--cta-solid-bg, #24211c);
    color: var(--cta-solid-fg, #faf7f0);
    border: none;
    border-radius: var(--radius-sm, 4px);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}
.read-error-pop .err-submit:hover {
    background: var(--cta-solid-bg-hover, #38332b);
    color: var(--cta-solid-fg, #faf7f0);
}
.read-error-pop .err-submit:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.read-error-pop .err-track-bar {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px dashed var(--read-pop-border);
}
.read-error-pop .err-track-bar.hide {
    display: none;
}
.read-error-pop .err-track-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12.5px;
    line-height: 1.3;
    color: var(--warm-ink);
    text-decoration: none;
    transition: color .15s ease;
}
.read-error-pop .err-track-link .site-icon {
    font-size: 12px;
}
.read-error-pop .err-track-link:hover {
    color: var(--color-emphasis-hover);
    text-decoration: underline;
}

.read-right-tools {
    grid-area: right-tools;
    position: fixed;
    top: calc(var(--read-float-h) + var(--read-float-gap));
    bottom: var(--spacing-lg);
    right: 50%;
    transform: translate(calc(50% + 480px + var(--spacing-2xl)), 0);
    z-index: 100;
    width: var(--tools-width);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    pointer-events: none;
}

.read-right-tools .read-tool-list {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 2px;
    width: var(--tools-width);
    pointer-events: auto;
}

.read-reader-btn {
    position: relative;
    width: 60px;
    height: 60px;
    background: var(--bg-primary);
    border-radius: var(--radius-small);
}

.read-reader-btn .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 6px 2px;
    box-sizing: border-box;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

.read-reader-btn .item .icon-wrap {
    display: block;
    height: 24px;
    margin-bottom: var(--spacing-xs);
}

.read-reader-btn .item .icon-wrap .site-icon {
    font-size: 24px;
    line-height: 24px;
}

.read-reader-btn .item .s-txt {
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}

.read-reader-btn .item:hover .icon-wrap .site-icon,
.read-reader-btn .item:hover .s-txt {
    color: var(--link-hover-fg);
}

.read-reader-btn .read-pop {
    position: absolute;
    background: var(--read-pop-bg);
    color: var(--read-pop-ink);
    padding: var(--spacing-2xl) 0 var(--spacing-lg) var(--spacing-2xl);
    overflow: hidden;
    z-index: -1;
    box-shadow: var(--read-pop-shadow);
    border-radius: var(--radius-small);
}

.read-reader-btn .read-pop:not(.read-catalogue-pop) .pop-head {
    margin-bottom: var(--spacing-xl);
}

.read-reader-btn .read-pop:not(.read-catalogue-pop) .pop-head h2 {
    font-size: 22px;
    line-height: 30px;
    font-weight: 700;
    color: var(--read-pop-ink);
}

.read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont::after,
.read-reader-btn .read-pop .pop-body .setting-list .setting-item::after {
    content: "";
    display: table;
    clear: both;
}

.read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .theme-list,
.read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .font-size,
.read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .font-family,
.read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .page-width,
.read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .page-mode {
    overflow: hidden;
}

.read-reader-btn .read-pop.js-pop-setting {
    width: 460px;
    top: -62px;
    right: 64px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 22px 26px 24px;
    background: var(--read-pop-bg);
    border-radius: var(--radius-lg, 6px);
    border: 1px solid var(--read-pop-border);
    box-shadow: var(--read-pop-shadow);
}

.read-reader-btn .read-pop.js-pop-setting .pop-close {
    top: 18px;
    right: 20px;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm, 4px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s ease, color .15s ease;
}

.read-reader-btn .read-pop.js-pop-setting .pop-close:hover {
    background: var(--read-pop-subtle);
}

.read-reader-btn .read-pop.js-pop-setting .pop-close .site-icon {
    font-size: 18px;
    color: var(--read-pop-muted);
}

.read-reader-btn .read-pop.js-pop-setting .pop-close:hover .site-icon {
    color: var(--read-pop-ink);
}

.read-reader-btn .read-pop.js-pop-setting .pop-head {
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
}

.read-reader-btn .read-pop.js-pop-setting .pop-head h2 {
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    color: var(--read-pop-ink);
    margin: 0;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body {
    padding-right: 0;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: none;
    margin: 0;
    padding: 0;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    min-height: 34px;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item::after,
.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont::after {
    display: none;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item label,
.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-label {
    float: none;
    width: 78px;
    flex-shrink: 0;
    line-height: 1.4;
    font-size: 13px;
    color: var(--read-pop-secondary);
    white-space: nowrap;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont {
    flex: 1;
    min-width: 0;
    overflow: visible;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .theme-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 280px;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .theme-list li {
    float: none;
    flex: 0 0 32px;
    margin: 0;
    border: 1px solid rgba(31, 30, 27, .14);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    cursor: pointer;
    border-radius: 999px;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, .45), 0 1px 2px rgba(31, 30, 27, .06);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .theme-list li:hover {
    transform: translateY(-1px) scale(1.05);
    border-color: rgba(179, 134, 61, .52);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, .45), 0 3px 8px rgba(31, 30, 27, .12);
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .theme-list li:active {
    transform: scale(.96);
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .theme-list li[theme="default"] {
    background: #f7f4ee;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .theme-list li[theme="blue"] {
    background: #CFD9E0;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .theme-list li[theme="yellow"] {
    background: #E3D9BC;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .theme-list li[theme="green"] {
    background: #DDEBD6;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .theme-list li[theme="red"] {
    background: #F3D8D8;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .theme-list li[theme="dark"] {
    background: #242121;
    border-color: rgba(31, 30, 27, .28);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .14), 0 1px 2px rgba(0, 0, 0, .14);
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .theme-list li i {
    display: none;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .theme-list li.cur {
    position: relative;
    border: 2px solid var(--accent-bar, #b3863d);
    width: 32px;
    height: 32px;
    box-shadow: inset 0 0 0 2px var(--read-pop-bg, #ffffff), 0 1px 3px rgba(154, 109, 41, .18);
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .theme-list li.cur:hover {
    transform: translateY(-1px) scale(1.03);
    border-color: var(--accent-bar, #b3863d);
    box-shadow: inset 0 0 0 2px var(--read-pop-bg, #ffffff), 0 3px 8px rgba(154, 109, 41, .22);
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .theme-list li.cur i {
    display: block;
    font-size: 14px;
    line-height: 1;
    color: var(--warm-ink, #8c6020);
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .theme-list li.cur[theme="dark"] {
    border-color: #e2c27e;
    box-shadow: inset 0 0 0 2px var(--read-pop-bg, #22201d), 0 1px 4px rgba(0, 0, 0, .32);
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .theme-list li.cur[theme="dark"] i {
    color: #e2c27e;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .font-size {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 280px;
    height: 34px;
    border: 1px solid var(--read-pop-border);
    text-align: center;
    border-radius: var(--radius-sm, 4px);
    box-sizing: border-box;
    background: var(--bg-input);
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .font-size li {
    float: none;
    flex: 1;
    height: 100%;
    width: auto;
    line-height: 32px;
    font-size: 14px;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .font-size li button {
    font-size: 15px;
    font-weight: 500;
    display: block;
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--read-pop-ink);
    transition: background-color .15s ease, color .15s ease;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .font-size li button:hover {
    background: var(--warm-surface);
    color: var(--warm-ink);
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .font-size li.cur-size {
    flex: 1.25;
    width: auto;
    color: var(--read-pop-secondary);
    font-variant-numeric: tabular-nums;
    border-left: 1px solid var(--read-pop-border);
    border-right: 1px solid var(--read-pop-border);
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .font-size li.disabled button {
    color: var(--read-pop-muted);
    opacity: .55;
    cursor: default;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .font-size li.disabled button:hover {
    background: transparent;
    color: var(--read-pop-muted);
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .font-family,
.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .line-height,
.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .page-width,
.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .page-mode {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 280px;
    overflow: visible;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .font-family button,
.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .line-height button,
.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .page-width button,
.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .page-mode button {
    float: none;
    flex: 1;
    min-width: 0;
    display: block;
    margin: 0;
    width: auto;
    height: 34px;
    line-height: 32px;
    padding: 0 8px;
    font-size: 13px;
    color: var(--read-pop-secondary);
    background: var(--bg-input);
    border: 1px solid var(--read-pop-border);
    border-radius: var(--radius-sm, 4px);
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .font-family button:hover,
.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .line-height button:hover,
.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .page-width button:hover,
.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .page-mode button:hover {
    border-color: var(--warm-border);
    background: var(--warm-surface);
    color: var(--read-pop-ink);
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .font-family button.is-active,
.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .line-height button.is-active,
.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .page-width button.is-active,
.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .page-mode button.is-active {
    position: relative;
    color: var(--warm-ink, #8c6020);
    font-weight: 600;
    border: 1px solid var(--accent-bar, #b3863d);
    background: var(--warm-tint, rgba(154, 109, 41, .09));
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .font-family button.is-active:before,
.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .line-height button.is-active:before,
.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .page-width button.is-active:before,
.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .page-mode button.is-active:before {
    display: none;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .font-family .font-default {
    font-family: var(--font-family-base);
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .font-family .font-songti {
    font-family: var(--font-family-serif);
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .font-family .font-kaiti {
    font-family: var(--font-family-kaiti);
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .auto-sub {
    display: flex;
    background: var(--read-pop-subtle);
    border: 1px solid var(--read-pop-line);
    border-radius: var(--radius-sm, 4px);
    padding: 3px;
    overflow: hidden;
    width: 148px;
    height: 32px;
    box-sizing: border-box;
    position: relative;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .auto-sub button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    line-height: 24px;
    height: 24px;
    color: var(--read-pop-muted);
    background: transparent;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: color .18s ease;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .auto-sub button:hover {
    color: var(--read-pop-ink);
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .auto-sub button.is-active {
    color: var(--read-pop-ink);
    font-weight: 500;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .auto-sub.slide-right button.is-active,
.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .auto-sub.slide-right button.is-active:hover {
    color: #ffffff;
    font-weight: 600;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .auto-sub::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: 24px;
    background: var(--read-pop-bg);
    box-shadow: 0 1px 3px rgba(31, 30, 27, .10);
    border-radius: var(--radius-xs, 3px);
    z-index: 1;
    transform: translateX(0);
    transition: transform .2s cubic-bezier(.22, 1, .36, 1), background-color .18s ease, box-shadow .18s ease;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .auto-sub.slide-right::before {
    transform: translateX(100%);
    background: var(--accent-bar, #b3863d);
    box-shadow: 0 1px 3px rgba(154, 109, 41, .28);
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .btn-wrap {
    margin-top: 20px;
    padding-top: 0;
    border-top: none;
}

.read-reader-btn .read-pop.js-pop-setting .pop-body .btn-wrap button {
    display: block;
    width: 100%;
    text-align: center;
}

.read-reader-btn.is-active .read-pop { z-index: 1000; }
.read-reader-btn .read-pop.js-pop-tel {
    right: 64px;
    margin-top: -78px;
    padding: 18px;
    width: 156px;
    height: auto;
    box-sizing: border-box;
    background: var(--read-pop-bg);
    border-radius: var(--radius-lg, 6px);
    border: 1px solid var(--read-pop-border);
    box-shadow: var(--read-pop-shadow);
}
.read-reader-btn .read-pop.js-pop-tel img {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm, 4px);
}

.read-reader-btn .read-pop.js-pop-tel img.qr-download {
    display: block;
}
.read-reader-btn .read-pop.js-pop-tel .tel-pop-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body[class] .read-reader-btn.is-active {
    background: var(--bg-white);
    border-radius: 0 var(--radius-small) var(--radius-small) 0;
}

.read-reader-btn.js-back-top {
    margin-top: auto;
    flex-shrink: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}
.read-reader-btn.js-back-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.read-catalogue-pop {
    position: fixed;
    top: 0;
    bottom: 0;
    left: auto;
    right: max(0px, calc(50% - var(--reader-width, 960px) / 2));
    width: min(620px, var(--reader-width, 960px), 100%);
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    box-sizing: border-box;
    background: var(--read-pop-bg);
    color: var(--read-pop-ink);
    padding: 36px 28px 20px;
    border: none;
    border-left: 1px solid var(--read-pop-line);
    border-radius: 0;
    box-shadow: -6px 0 28px rgba(31, 30, 27, .10);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.read-catalogue-pop .pop-head {
    margin-bottom: 12px;
    padding-bottom: 8px;
    height: auto;
    border-bottom: none;
    position: relative;
    flex-shrink: 0;
}

.read-catalogue-pop .catalogue-close,
.read-error-pop .catalogue-close {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm, 4px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color .15s ease, color .15s ease;
}

.read-catalogue-pop .catalogue-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 26px;
    height: 26px;
    z-index: 2;
}

.read-error-pop .catalogue-close {
    position: absolute;
    top: 18px;
    right: 20px;
}

.read-catalogue-pop .catalogue-close:hover,
.read-error-pop .catalogue-close:hover {
    background: var(--read-pop-subtle);
}

.read-catalogue-pop .catalogue-close .site-icon,
.read-error-pop .catalogue-close .site-icon {
    color: var(--read-pop-muted);
    padding-right: 0;
    font-size: 18px;
    line-height: 1;
    font-weight: bold;
}

.read-catalogue-pop .catalogue-close:hover .site-icon,
.read-error-pop .catalogue-close:hover .site-icon {
    color: var(--read-pop-ink);
}

.read-catalogue-pop .pop-body {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.read-catalogue-pop .volume-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 -14px 4px;
    padding: 8px 14px;
    min-height: 40px;
    gap: 10px;
    box-sizing: border-box;
    width: auto;
    max-width: none;
    border: none;
    border-radius: var(--radius-sm, 4px);
    background: var(--read-vol-bg);
    cursor: pointer;
    user-select: none;
    transition: background-color .15s ease;
}

.read-catalogue-pop .volume-head:hover {
    background: var(--read-vol-bg-hover);
}

.read-catalogue-pop .volume-head:hover .volume-chevron {
    color: var(--warm-ink);
}

.read-catalogue-pop .volume-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--read-pop-ink);
}

.read-catalogue-pop .volume-title-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
}

.read-catalogue-pop .volume-title-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.read-catalogue-pop .volume-title-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--read-pop-muted);
    flex-shrink: 0;
}

.read-catalogue-pop .volume-title-count {
    flex-shrink: 0;
    font-size: inherit;
    font-weight: inherit;
    color: var(--read-pop-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.read-catalogue-pop .volume-head .vol-buy-btn {
    flex-shrink: 0;
    padding: 2px 4px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 0;
    border: none;
    background: transparent;
    color: var(--warm-ink);
    line-height: 1.3;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s ease, opacity .15s ease;
}

.read-catalogue-pop .volume-head .vol-buy-btn:hover {
    background: transparent;
    border: none;
    color: var(--color-emphasis-hover);
    opacity: .84;
}

.read-catalogue-pop .volume-head .vol-vip-btn {
    color: #9a5b1f;
    background: transparent;
    border: none;
}

.read-catalogue-pop .volume-head .vol-vip-btn:hover {
    background: transparent;
    border: none;
    color: #7d4512;
    opacity: .84;
}

.read-catalogue-pop .read-catalogue-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: 0;
    flex-shrink: 0;
}

.read-catalogue-pop .cat-toolbar-btn,
.read-catalogue-pop .sort-btn button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: auto;
    padding: 2px 0;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    color: var(--read-pop-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    box-sizing: border-box;
    white-space: nowrap;
    transition: color .15s ease, opacity .15s ease;
}

.read-catalogue-pop .cat-bulk-btn {
    color: var(--warm-ink);
}

.read-catalogue-pop .cat-bulk-btn.hide,
.read-catalogue-pop.is-mark-mode .cat-bulk-btn,
.read-mobile-catalogue.is-mark-mode .cat-bulk-btn {
    display: none;
}

.read-catalogue-pop .cat-bulk-btn .site-icon,
.read-catalogue-pop .sort-btn button .site-icon {
    font-size: 13.5px;
}

.read-catalogue-pop .cat-bulk-btn:hover {
    border: none;
    background: transparent;
    color: var(--color-emphasis-hover);
    opacity: .84;
}

.read-catalogue-pop .sort-btn button:hover {
    border: none;
    background: transparent;
    color: var(--warm-ink);
}

.read-catalogue-pop .sort-btn {
    margin-right: 0;
    flex-shrink: 0;
    font-size: 13px;
    line-height: 20px;
}

.read-catalogue-pop .pop-body .catalogue-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    margin-top: 0;
    margin-left: -14px;
    margin-right: -20px;
    padding-top: 0;
    padding-left: 14px;
    padding-right: 14px;
    scrollbar-gutter: stable;
}

@supports not selector(::-webkit-scrollbar) {
    .read-catalogue-pop .pop-body .catalogue-list {
        scrollbar-width: thin;
        scrollbar-color: rgba(31, 30, 27, .18) transparent;
    }
}

.read-catalogue-pop .pop-body .catalogue-list::-webkit-scrollbar {
    width: 6px;
}

.read-catalogue-pop .pop-body .catalogue-list::-webkit-scrollbar-track {
    background: transparent;
}

.read-catalogue-pop .pop-body .catalogue-list::-webkit-scrollbar-thumb {
    background: rgba(31, 30, 27, .16);
    border-radius: 999px;
}

.read-catalogue-pop .pop-body .catalogue-list::-webkit-scrollbar-thumb:hover {
    background: rgba(31, 30, 27, .28);
}

.read-catalogue-pop .volume-group {
    margin-bottom: 14px;
}

.read-catalogue-pop .volume-group:last-child {
    margin-bottom: 0;
}

.read-catalogue-pop .volume-group ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 0;
}

.read-catalogue-pop .volume-group ul li {
    position: relative;
    width: auto;
    min-width: 0;
    height: auto;
    padding: 0;
    margin: 0;
}

.read-catalogue-pop .volume-group ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    height: 42px;
    line-height: 42px;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0;
    background: transparent;
    border-bottom: 1px solid var(--read-pop-line);
    overflow: hidden;
    font-size: 14px;
    font-weight: 400;
    color: var(--read-pop-ink);
    transition: color .14s ease;
}

.read-catalogue-pop .volume-group ul li a:hover {
    background: transparent;
    color: var(--warm-ink);
}

.read-catalogue-pop .volume-group ul li a .cat-chapter-name {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1 1 auto;
}

.read-catalogue-pop .volume-group ul li a i.site-icon-lock,
.read-catalogue-pop .volume-group ul li a i.site-icon-unlock,
.read-mobile-catalogue .volume-group ul li a i.site-icon-lock,
.read-mobile-catalogue .volume-group ul li a i.site-icon-unlock {
    margin-left: 4px;
    flex-shrink: 0;
    font-size: 13.5px;
    line-height: 1;
}

.read-catalogue-pop .volume-group ul li a i.site-icon-lock,
.read-mobile-catalogue .volume-group ul li a i.site-icon-lock {
    color: #b3863d;
}

.read-catalogue-pop .volume-group ul li a i.site-icon-unlock,
.read-mobile-catalogue .volume-group ul li a i.site-icon-unlock {
    color: #2e7d57;
}

.read-catalogue-pop .volume-group ul li a.current-chapter,
.read-catalogue-pop .volume-group ul li.current-chapter a,
.read-catalogue-pop .volume-group ul li a[aria-current="location"] {
    background: transparent;
    color: var(--warm-ink);
    font-weight: 600;
    border-bottom-color: var(--read-pop-line);
}

.read-catalogue-pop .volume-group ul li a.current-chapter:hover,
.read-catalogue-pop .volume-group ul li.current-chapter a:hover,
.read-catalogue-pop .volume-group ul li a[aria-current="location"]:hover {
    background: transparent;
    color: var(--warm-ink);
}

.read-guide-pop .icon-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 38px;
    padding: 0 10px;
    box-sizing: border-box;
    font-family: var(--font-family-base);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    color: var(--read-pop-ink);
    background: linear-gradient(180deg, var(--bg-surface, #ffffff) 0%, var(--bg-subtle, #f2eee6) 100%);
    border: 1px solid var(--line-strong, #cfc7b8);
    border-bottom-width: 2px;
    border-radius: var(--radius-sm, 4px);
    box-shadow: 0 1px 2px rgba(31, 30, 27, .06), inset 0 1px 0 rgba(255, 255, 255, .88);
    flex-shrink: 0;
    user-select: none;
}

.read-guide-pop .icon-key-svg {
    display: block;
    width: 18px;
    height: 18px;
}

.read-guide-pop .s-txt {
    color: var(--read-pop-secondary);
    margin-bottom: 0;
    display: inline-block;
}

.read-guide-pop .pop-body {
    padding: 0;
    min-height: 0;
}

.read-guide-pop .read-guide-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
}

.read-guide-pop .guide-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: none;
}

.read-guide-pop .guide-item .s-txt {
    font-size: 14px;
    flex: 1;
}

.read-guide-pop .guide-item .key-group {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.read-leave-user-pick {
    font-size: 14px;
    line-height: 1.55;
}

.read-leave-user-pick .read-leave-user-meta {
    margin: 0 0 6px;
    color: var(--text-secondary);
}

.read-leave-user-pick .read-leave-user-ask {
    margin: 10px 0 0;
}

@supports not selector(::-webkit-scrollbar) {
    body.theme-dark .read-catalogue-pop .pop-body .catalogue-list {
        scrollbar-color: rgba(240, 235, 226, .20) transparent;
        scrollbar-width: thin;
    }
}

.volume-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 14px;
    margin: 0 0 6px;
    background: var(--read-vol-bg);
    border: none;
    border-radius: var(--radius-sm, 4px);
    box-sizing: border-box;
    position: relative;
    cursor: pointer;
    user-select: none;
    z-index: 10;
    transition: background-color .15s ease;
}
.volume-head:hover {
    background: var(--read-vol-bg-hover);
}
.volume-head:hover .volume-chevron {
    color: var(--warm-ink);
}
.volume-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--read-pop-ink);
    cursor: pointer;
    position: relative;
    line-height: 1.4;
}
.volume-title-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    cursor: pointer;
    max-width: 100%;
    min-width: 0;
}
.volume-title-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--read-pop-muted);
    flex-shrink: 0;
}
.volume-title-count {
    flex-shrink: 0;
    font-size: inherit;
    font-weight: inherit;
    color: var(--read-pop-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.volume-head .vol-buy-btn {
    flex: 0 0 auto;
    margin: 0;
    padding: 2px 4px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--warm-ink);
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    width: auto;
    max-width: max-content;
    line-height: 1.3;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .15s ease, opacity .15s ease;
}
.volume-head .vol-buy-btn:hover {
    color: var(--color-emphasis-hover);
    border: none;
    background: transparent;
    opacity: .84;
}

.volume-head.collapsed + ul,
.volume-head.collapsed + .chapter-list {
    display: none;
}

.volume-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    padding: 0;
    width: 100%;
}

.volume-group ul {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.volume-group ul li {
    width: 50%;
}

.volume-group ul li a {
    padding: 0 12px;
    color: var(--read-pop-secondary);
}

.volume-group ul li a:hover {
    color: var(--warm-ink);
}

.chapter-nav {
    padding: 72px 0 36px;
    display: flex;
    justify-content: center;
}

.chapter-nav .nav-inner {
    display: flex;
    width: 100%;
    background: rgba(0, 0, 0, .04);
    border-radius: 999px;
    overflow: hidden;
}

.chapter-nav a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 0;
    color: var(--text-color);
    font-size: 18px;
    background: none;
}

.chapter-nav a + a {
    border-left: 1px solid rgba(0, 0, 0, .1);
}

.chapter-nav a:hover:not(.disabled) {
    background: rgba(0, 0, 0, .04);
}

.chapter-nav a.disabled {
    color: rgba(0, 0, 0, .28);
    cursor: not-allowed;
}

.read-cover-section {
    margin-bottom: 16px;
}

.read-cover-page {
    width: 100%;
    box-shadow: 0 2px 10px rgba(31, 30, 27, .04);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg, 6px);
    min-height: 0;
    padding: 20px 28px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: clip;
}

.read-cover-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.read-cover-img {
    width: 78px;
    height: 104px;
    border-radius: var(--radius-md, 6px);
    box-shadow: 0 3px 10px rgba(31, 30, 27, .1);
    margin-bottom: 4px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--line-panel) 100%);
}

.read-cover-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
    color: var(--ink);
    text-align: center;
}

.read-cover-author {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
    text-align: center;
}

.read-cover-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 36px;
    margin: 6px 0 2px;
    width: 100%;
}

.read-cover-row-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
}

.read-cover-row-sub {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 2px;
}

.read-cover-copyright {
    width: 100%;
    text-align: center;
    margin-top: 8px;
    letter-spacing: 0.5px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}

.copyright-produce {
    font-size: 12.5px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.read-mobile-toolbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 2px;
    min-height: 60px;
    padding: 8px 6px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .1);
    z-index: 9999;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    box-sizing: border-box;
}

.read-mobile-track {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 2px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.read-mobile-track::-webkit-scrollbar {
    display: none;
}

/* 底栏按钮与移动目录/设置：中档无侧栏时也可用（.hide / body.mobile-only 控显隐） */
.read-mobile-toolbar .read-tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 40px;
    height: 44px;
    padding: 4px 2px;
    background: none;
    border: none;
    color: var(--text-secondary);
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-small);
    cursor: pointer;
}

.read-mobile-toolbar .read-tool-btn:hover {
    background: rgba(0, 0, 0, .05);
    color: var(--text-color);
}

.read-mobile-toolbar .read-tool-btn .icon {
    font-size: 18px;
    line-height: 1;
    margin-bottom: 2px;
}

.read-mobile-toolbar .read-tool-btn .text {
    font-size: 12px;
    line-height: 1.1;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.read-mobile-toolbar .read-tool-btn.shelf-btn.on {
    color: var(--text-color);
}
.read-mobile-toolbar .read-tool-btn.shelf-btn.on .icon {
    color: var(--text-color);
}

.read-mobile-catalogue {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: var(--read-pop-bg);
    color: var(--read-pop-ink);
    z-index: 10000;
    padding: calc(20px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

.read-mobile-catalogue .pop-head,
.read-mobile-setting .pop-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.read-mobile-catalogue .pop-head {
    margin-bottom: 6px;
    padding-bottom: 6px;
    gap: 8px;
}

.read-mobile-catalogue .pop-head h2,
.read-mobile-setting .pop-head h2 {
    font-size: 18px;
    font-weight: 600;
    flex-grow: 1;
}

.read-mobile-catalogue .catalogue-close,
.read-mobile-setting .catalogue-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.read-mobile-catalogue .catalogue-close .site-icon,
.read-mobile-setting .catalogue-close .site-icon {
    font-size: 20px;
    padding: 5px;
    background: rgba(0, 0, 0, .1);
    border-radius: 50%;
}

.read-mobile-catalogue .pop-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.read-mobile-catalogue .pop-body .read-mcat-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 0 0 8px;
    margin-bottom: 2px;
    border-bottom: none;
    flex-shrink: 0;
}

.read-mobile-catalogue .pop-body .read-mcat-head h2 {
    font-size: 14px;
    color: var(--text-muted);
}

.read-mobile-catalogue .pop-body .read-catalogue-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.read-mobile-catalogue .pop-body .read-mcat-head .cat-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 2px 0;
    cursor: pointer;
    color: var(--read-pop-ink);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
}

.read-mobile-catalogue .pop-body .read-mcat-head .cat-bulk-btn {
    height: auto;
    padding: 2px 0;
    border-radius: 0;
    border: none;
    background: transparent;
    color: var(--warm-ink);
    font-size: 13.5px;
    font-weight: 600;
}

.read-mobile-catalogue .pop-body .read-mcat-head .cat-bulk-btn.hide {
    display: none;
}

.read-mobile-catalogue .pop-body .read-mcat-head .cat-toolbar-btn:hover,
.read-mobile-catalogue .pop-body .read-mcat-head .cat-toolbar-btn:active {
    color: var(--color-emphasis-hover);
    opacity: .84;
}

.read-mobile-catalogue .pop-body .read-mcat-head .sort-btn {
    flex-shrink: 0;
}

.read-mobile-catalogue .pop-body .read-mcat-head .sort-btn button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 2px 0;
    cursor: pointer;
    color: var(--read-pop-ink);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
}

.read-mobile-catalogue .pop-body .read-mcat-head .cat-bulk-btn .site-icon,
.read-mobile-catalogue .pop-body .read-mcat-head .sort-btn button .site-icon {
    font-size: 13.5px;
}

.read-mobile-catalogue .catalogue-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-inline: -20px;
    padding-inline: 20px;
    -webkit-overflow-scrolling: touch;
}

.read-mobile-catalogue .volume-group ul {
    display: block;
}

.read-mobile-catalogue .volume-head.collapsed + ul,
.read-mobile-catalogue .volume-head.collapsed + .chapter-list {
    display: none;
}

.read-mobile-catalogue .volume-group ul li {
    width: 100%;
    margin-bottom: 8px;
}

.read-mobile-catalogue .volume-group ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 15px;
    background: var(--read-pop-subtle);
    color: var(--read-pop-ink);
    border-radius: var(--radius-sm, 4px);
    line-height: 1.4;
    white-space: normal;
    font-size: 14px;
}

.read-mobile-catalogue .volume-group ul li a .cat-chapter-name {
    flex: 1 1 auto;
    min-width: 0;
}

.read-mobile-catalogue .volume-group ul li a:hover,
.read-mobile-catalogue .volume-group ul li a:active {
    background: var(--warm-surface);
    color: var(--warm-ink);
}

.read-mobile-catalogue .volume-group ul li a.current-chapter {
    color: var(--warm-ink);
    font-weight: 600;
}

.read-mobile-catalogue .volume-head {
    font-size: 14px;
    margin: 0 -6px 8px;
    padding: 10px 21px;
    width: auto;
    max-width: none;
    background: var(--read-vol-bg);
    border: none;
    border-radius: var(--radius-sm, 4px);
}

.read-mobile-setting .mset-font-family,
.read-mobile-setting .mset-line-height {
    display: flex;
    gap: 8px;
}
.read-mobile-setting .mset-font-family button,
.read-mobile-setting .mset-line-height button {
    flex: 1 1 0;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 8px;
    font-size: 15px;
    color: var(--read-pop-secondary);
    line-height: 42px;
    background: var(--bg-input);
    border: 1px solid var(--read-pop-border);
    border-radius: var(--radius-sm, 4px);
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.read-mobile-setting .mset-font-family .font-default {
    font-family: var(--font-family-base);
}
.read-mobile-setting .mset-font-family .font-songti {
    font-family: var(--font-family-serif);
}
.read-mobile-setting .mset-font-family .font-kaiti {
    font-family: var(--font-family-kaiti);
}
.read-mobile-setting .mset-font-family button.is-active,
.read-mobile-setting .mset-line-height button.is-active {
    color: var(--warm-ink);
    border-color: var(--accent-bar);
    background: var(--warm-tint);
    font-weight: 600;
}

.read-mobile-setting {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--read-mobile-bar);
    width: 100%;
    max-height: calc(100vh - var(--read-mobile-bar) - 20px);
    max-height: calc(100dvh - var(--read-mobile-bar) - 20px);
    background: var(--read-pop-bg);
    color: var(--read-pop-ink);
    border-top: 1px solid var(--read-pop-line);
    z-index: 9998;
    padding: 20px;
    border-top-left-radius: var(--radius-lg, 6px);
    border-top-right-radius: var(--radius-lg, 6px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .12);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.read-mobile-setting .pop-head {
    margin-bottom: 24px;
}
.read-mobile-setting .pop-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}
.read-mobile-setting .mset-item {
    margin-bottom: 24px;
}
.read-mobile-setting .mset-item label,
.read-mobile-setting .mset-item .setting-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.read-mobile-setting .mset-item .font-size {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm, 4px);
    overflow: hidden;
    min-height: 44px;
}
.read-mobile-setting .mset-item .font-size li {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 44px;
}
.read-mobile-setting .mset-item .font-size li.larger-size,
.read-mobile-setting .mset-item .font-size li.smaller-size {
    max-width: 60px;
    background: rgba(0, 0, 0, .04);
}
.read-mobile-setting .mset-item .font-size li.larger-size button,
.read-mobile-setting .mset-item .font-size li.smaller-size button {
    min-height: 44px;
    align-self: stretch;
}
.read-mobile-setting .mset-item .font-size li.cur-size {
    font-size: 16px;
    font-weight: 600;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}
.read-mobile-setting .mset-item .font-size li button {
    display: block;
    width: 100%;
    height: 100%;
    font-size: 18px;
    color: var(--text-color);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
.read-mobile-setting .mset-item .font-size li.disabled button {
    color: var(--text-muted);
}
.read-mobile-setting .mset-theme {
    display: flex;
    gap: 12px;
}
.read-mobile-setting .mset-theme li {
    flex: 1;
    text-align: center;
    line-height: 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm, 4px);
    cursor: pointer;
    font-size: 15px;
}
.read-mobile-setting .mset-theme li span {
    display: block;
}
.read-mobile-setting .mset-theme li.cur {
    border-color: var(--accent-bar);
    background: var(--warm-tint);
    color: var(--warm-ink);
    font-weight: 600;
}
.read-mobile-setting .mset-item .auto-sub {
    display: flex;
    background: var(--read-pop-subtle);
    border: 1px solid var(--read-pop-line);
    border-radius: var(--radius-sm, 4px);
    padding: 3px;
    overflow: hidden;
    width: 100%;
    max-width: 220px;
    height: 38px;
    box-sizing: border-box;
    position: relative;
}
.read-mobile-setting .mset-item .auto-sub button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    line-height: 30px;
    height: 30px;
    color: var(--read-pop-muted);
    background: transparent;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: color .18s ease;
}
.read-mobile-setting .mset-item .auto-sub button.is-active {
    color: var(--read-pop-ink);
    font-weight: 500;
}
.read-mobile-setting .mset-item .auto-sub.slide-right button.is-active {
    color: #ffffff;
    font-weight: 600;
}
.read-mobile-setting .mset-item .auto-sub::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: var(--read-pop-bg);
    box-shadow: 0 1px 3px rgba(31, 30, 27, .10);
    border-radius: var(--radius-xs, 3px);
    z-index: 1;
    transform: translateX(0);
    transition: transform .2s cubic-bezier(.22, 1, .36, 1), background-color .18s ease, box-shadow .18s ease;
}
.read-mobile-setting .mset-item .auto-sub.slide-right::before {
    transform: translateX(100%);
    background: var(--accent-bar, #b3863d);
    box-shadow: 0 1px 3px rgba(154, 109, 41, .28);
}

/* 移动端精简顶栏元素 + 5 键均衡底栏（.read-mobile-bar） + 二级“更多”上拉面板（.read-pop.js-pop-more） */
.read-float-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 0 auto;
    height: 32px;
    padding: 0 8px;
    border-radius: var(--radius-small, 4px);
    color: var(--read-float-ink, var(--ink));
    font-size: 14px;
    text-decoration: none;
    transition: background-color .16s ease, color .16s ease;
}
.read-float-back:hover,
.read-float-back:focus-visible {
    background: rgba(31, 30, 27, .06);
    color: var(--primary-dark, #9a6d29);
}
.read-float-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--read-float-ink, var(--ink));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.read-mobile-bar .read-mobile-track,
.read-mobile-toolbar.read-mobile-bar .read-mobile-track {
    justify-content: space-between;
    overflow-x: visible;
}
.read-mobile-bar .read-tool-btn,
.read-mobile-toolbar .read-mobile-track > .read-tool-btn {
    flex: 1 1 20%;
    max-width: 25%;
}
.read-pop.js-pop-more {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--read-mobile-bar, calc(60px + env(safe-area-inset-bottom, 0px)));
    z-index: 9998;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 16px 16px 18px;
    background: var(--read-pop-bg, #ffffff);
    border-top: 1px solid var(--read-pop-border, #e4ded3);
    border-radius: var(--radius-lg, 6px) var(--radius-lg, 6px) 0 0;
    box-shadow: 0 -8px 28px rgba(31, 30, 27, .12);
    box-sizing: border-box;
    max-height: 62dvh;
    overflow-y: auto;
}
.read-pop.js-pop-more .pop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--read-pop-line, #eee9e0);
}
.read-pop.js-pop-more .pop-head h2,
.read-pop.js-pop-more .pop-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--read-pop-ink, #1f1e1b);
}
.read-pop.js-pop-more .read-more-grid,
.read-pop.js-pop-more .pop-body {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 8px;
}
.read-pop.js-pop-more .read-tool-btn,
.read-pop.js-pop-more .read-more-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 58px;
    padding: 8px 4px;
    border: 1px solid var(--read-pop-line, #eee9e0);
    border-radius: var(--radius-md, 6px);
    background: var(--read-pop-subtle, #f2eee6);
    color: var(--read-pop-ink, #1f1e1b);
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.read-pop.js-pop-more .read-tool-btn:hover,
.read-pop.js-pop-more .read-more-item:hover {
    background: var(--site-btn-accent-bg, #f5ecdc);
    border-color: var(--warm-border, #dfd0b5);
    color: var(--primary-dark, #9a6d29);
}
.read-pop.js-pop-more .read-tool-btn .icon,
.read-pop.js-pop-more .read-more-item .site-icon {
    font-size: 18px;
    line-height: 1;
}

.pay-all-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    height: 48px;
    padding: 0 24px;
    margin: 0 auto;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--read-pop-ink, #171613);
    background: rgba(31, 30, 27, .055);
    background: color-mix(in srgb, var(--read-pop-ink, #1f1e1b) 6%, transparent);
    border: 1px solid color-mix(in srgb, var(--read-pop-ink, #1f1e1b) 10%, transparent);
    border-radius: 999px;
    box-sizing: border-box;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.pay-all-btn:hover {
    background: rgba(179, 134, 61, .11);
    border-color: rgba(179, 134, 61, .38);
    color: var(--accent-pressed, #7d561d);
}

.reader-container .layout-slot,
.js-reader-wrapper .layout-slot {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    text-align: center;
    padding: 0;
    border: none;
    overflow-anchor: none;
}
.js-reader-wrapper .layout-slot[hidden] {
    display: none;
}
.js-reader-wrapper .layout-slot:not(:has(> :not(script):not(style):not(link):not(.hide):not([hidden]))) {
    display: none;
}
.js-reader-wrapper .layout-slot--content-top {
    margin-bottom: var(--spacing-lg);
}
.js-reader-wrapper .layout-slot--read-after {
    margin-top: 0;
    margin-bottom: 0;
}
.js-reader-wrapper .layout-slot--read-after:not(:last-child) {
    margin-bottom: var(--spacing-lg);
}

/* 阅读页防采集保护样式 */
.rd-blk {
    display: flex;
    flex-direction: column;
}
.rd-o-0 { order: 0; }
.rd-o-1 { order: 1; }
.rd-o-2 { order: 2; }
.rd-o-3 { order: 3; }
.rd-o-4 { order: 4; }
.rd-o-5 { order: 5; }
.rd-o-6 { order: 6; }
.rd-o-7 { order: 7; }
.article .rd-noise {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    font-size: 0;
    line-height: 0;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}
.read-body-slot {
    min-height: 24px;
}
.read-protect-tip {
    margin: 16px 0;
    padding: 12px 16px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-small);
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}

.read-print-block {
    display: none;
}
/* --- 阅读进度条、目录搜索、行距档位与章末尾卡 --- */
progress.read-progress {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 2px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    z-index: 1050;
}
progress.read-progress::-webkit-progress-bar {
    background: transparent;
}
progress.read-progress::-webkit-progress-value {
    background: var(--accent-bar, #b3863d);
}
progress.read-progress::-moz-progress-bar {
    background: var(--accent-bar, #b3863d);
}

.cat-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 28px;
}
.cat-head-tabs {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}
.cat-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    height: 28px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--read-pop-muted);
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    cursor: pointer;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
    transition: color .16s ease;
}
.cat-tab:hover {
    color: var(--read-pop-ink);
}
.cat-tab.is-active {
    color: var(--read-pop-ink);
    font-weight: 700;
}
.cat-tab.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent-bar);
}
.cat-tab + .cat-tab {
    margin-left: 18px;
}
.cat-head-meta {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0 16px 0 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    color: var(--read-pop-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
}
.cat-head-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.cat-head-tabs .cat-search-inline {
    margin-left: 6px;
}
.read-catalogue-pop .cat-head-tabs .cat-search-inline.is-open {
    margin-left: 14px;
}
.read-mobile-catalogue .catalogue-close {
    flex-shrink: 0;
}
.cat-search-inline {
    display: inline-flex;
    align-items: center;
    flex: 0 0 28px;
    width: 28px;
    max-width: 100%;
    height: 28px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--radius-sm, 4px);
    background: transparent;
    box-sizing: border-box;
    overflow: hidden;
    transition: width .22s ease, margin-left .18s ease, height .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.cat-search-toggle {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm, 4px);
    background: transparent;
    color: var(--read-pop-muted);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: color .16s ease;
}
.cat-search-toggle .site-icon {
    font-size: 15px;
    line-height: 1;
}
.cat-search-inline:not(.is-open) .cat-search-toggle:hover,
.cat-search-inline:not(.is-open) .cat-search-toggle:focus-visible {
    background: transparent;
    color: var(--warm-ink);
    outline: none;
}
.cat-search-input {
    flex: 0 0 0;
    width: 0;
    min-width: 0;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: var(--color-text, #1f1e1b);
    font-size: 13px;
    line-height: 1.4;
    box-sizing: border-box;
    outline: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease;
}
.cat-search-input::-webkit-search-cancel-button,
.cat-search-input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}
.cat-search-input::placeholder {
    color: var(--text-muted, #767168);
}
.read-catalogue-pop .cat-search-close,
.read-mobile-catalogue .cat-search-close,
.cat-search-close {
    flex: 0 0 0;
    width: 0;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: var(--radius-sm, 4px);
    background: transparent;
    box-shadow: none;
    color: var(--read-pop-muted);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
    transition: opacity .16s ease, background-color .15s ease, color .15s ease;
}
.cat-search-close .site-icon {
    font-size: 13px;
    line-height: 1;
    color: var(--read-pop-muted);
    transition: color .15s ease;
}
.read-catalogue-pop .cat-search-close:hover,
.read-catalogue-pop .cat-search-close:focus-visible,
.read-mobile-catalogue .cat-search-close:hover,
.read-mobile-catalogue .cat-search-close:focus-visible,
.cat-search-close:hover,
.cat-search-close:focus-visible {
    background: var(--read-pop-subtle);
    color: var(--read-pop-ink);
    outline: none;
}
.read-catalogue-pop .cat-search-close:hover .site-icon,
.read-catalogue-pop .cat-search-close:focus-visible .site-icon,
.read-mobile-catalogue .cat-search-close:hover .site-icon,
.read-mobile-catalogue .cat-search-close:focus-visible .site-icon,
.cat-search-close:hover .site-icon,
.cat-search-close:focus-visible .site-icon {
    color: var(--read-pop-ink);
}
.cat-search-inline.is-open {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 120px;
    height: 28px;
    padding-right: 3px;
    border-color: var(--line-default, #e4ded3);
    background: var(--warm-surface, #faf7f0);
}
.cat-search-inline.is-open:focus-within {
    border-color: var(--input-focus-border, #b3863d);
    background: var(--bg-surface, #ffffff);
    box-shadow: var(--input-focus-ring, 0 0 0 3px rgba(179, 134, 61, 0.14));
}
.cat-search-inline.is-open .cat-search-toggle {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    color: var(--accent-bar, #b88a44);
}
.cat-search-inline.is-open .cat-search-input {
    flex: 1 1 auto;
    width: auto;
    padding: 0 4px 0 0;
    opacity: 1;
    pointer-events: auto;
}
.cat-search-inline.is-open .cat-search-close {
    flex: 0 0 24px;
    width: 24px;
    opacity: 1;
    pointer-events: auto;
}
.read-mobile-catalogue .cat-search-inline.is-open {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: 220px;
    height: 30px;
}
.read-mobile-catalogue .cat-search-inline.is-open .cat-search-input {
    font-size: 14px;
}

.cat-search-empty {
    margin: 24px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted, #767168);
}
.cat-search-empty.hide {
    display: none;
}

.read-chapter-end {
    width: var(--reader-width);
    max-width: 100%;
    margin: 18px auto 32px;
    padding: 24px 28px 28px;
    border-radius: var(--radius-small, 4px);
    background: var(--bg-primary, #f7f4ee);
    border: 1px solid var(--border-color, #e4ded3);
    box-shadow: var(--shadow-medium);
    text-align: center;
    box-sizing: border-box;
    overflow: clip;
}

.read-end-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 320px;
    margin: 0 auto 20px;
    font-size: 12.5px;
    letter-spacing: .16em;
    color: var(--text-muted, #767168);
}
.read-end-divider::before,
.read-end-divider::after {
    content: "";
    flex: 1 1 0;
    height: 1px;
    background: currentColor;
    opacity: .24;
}
.read-end-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 12px;
}
.read-end-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 112px;
    height: 40px;
    padding: 0 18px;
    border-radius: var(--radius-md, 6px);
    border: 1px solid var(--line-default, #e4ded3);
    background: var(--bg-surface, #fff);
    color: var(--color-text, #1f1e1b);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.read-end-btn:hover:not(.disabled),
.read-end-btn:focus-visible:not(.disabled) {
    border-color: var(--warm-border, #dfd0b5);
    background: var(--warm-surface, #fbf8f1);
    color: var(--warm-ink, #8c6020);
    outline: none;
}
.read-end-btn--primary {
    background: var(--cta-solid-bg, #24211c);
    border-color: var(--cta-solid-bg, #24211c);
    color: var(--cta-solid-fg, #faf7f0);
    font-weight: 600;
}
.read-end-btn--primary:hover:not(.disabled),
.read-end-btn--primary:focus-visible:not(.disabled) {
    background: var(--cta-solid-bg-hover, #38332b);
    border-color: var(--cta-solid-bg-hover, #38332b);
    color: var(--cta-solid-fg, #faf7f0);
}
.read-end-btn.disabled,
.read-end-btn--primary.disabled {
    background: transparent;
    border-color: var(--border-color, #e4ded3);
    color: var(--text-muted, #8c867b);
    font-weight: 400;
    opacity: .68;
    cursor: not-allowed;
    pointer-events: none;
}
.read-end-btn.shelf-btn.in-shelf {
    border-color: var(--warm-border, #dfd0b5);
    background: var(--warm-tint, rgba(154, 109, 41, .09));
    color: var(--warm-ink, #8c6020);
}
}

@layer states {
:is(html,body)[reader-font-size="12"] .js-reader-wrapper { font-size: 12px; }
:is(html,body)[reader-font-size="13"] .js-reader-wrapper { font-size: 13px; }
:is(html,body)[reader-font-size="14"] .js-reader-wrapper { font-size: 14px; }
:is(html,body)[reader-font-size="15"] .js-reader-wrapper { font-size: 15px; }
:is(html,body)[reader-font-size="16"] .js-reader-wrapper { font-size: 16px; }
:is(html,body)[reader-font-size="17"] .js-reader-wrapper { font-size: 17px; }
:is(html,body)[reader-font-size="19"] .js-reader-wrapper { font-size: 19px; }
:is(html,body)[reader-font-size="20"] .js-reader-wrapper { font-size: 20px; }
:is(html,body)[reader-font-size="21"] .js-reader-wrapper { font-size: 21px; }
:is(html,body)[reader-font-size="22"] .js-reader-wrapper { font-size: 22px; }
:is(html,body)[reader-font-size="23"] .js-reader-wrapper { font-size: 23px; }
:is(html,body)[reader-font-size="24"] .js-reader-wrapper { font-size: 24px; }
:is(html,body)[reader-font-size="25"] .js-reader-wrapper { font-size: 25px; }
:is(html,body)[reader-font-size="26"] .js-reader-wrapper { font-size: 26px; }
:is(html,body)[reader-font-size="27"] .js-reader-wrapper { font-size: 27px; }
:is(html,body)[reader-font-size="28"] .js-reader-wrapper { font-size: 28px; }
:is(html,body)[reader-font-size="29"] .js-reader-wrapper { font-size: 29px; }
:is(html,body)[reader-font-size="30"] .js-reader-wrapper { font-size: 30px; }
:is(html,body)[reader-font-size="31"] .js-reader-wrapper { font-size: 31px; }
:is(html,body)[reader-font-size="32"] .js-reader-wrapper { font-size: 32px; }
:is(html,body)[reader-font-size="33"] .js-reader-wrapper { font-size: 33px; }
:is(html,body)[reader-font-size="34"] .js-reader-wrapper { font-size: 34px; }
:is(html,body)[reader-font-size="35"] .js-reader-wrapper { font-size: 35px; }
:is(html,body)[reader-font-size="36"] .js-reader-wrapper { font-size: 36px; }
:is(html,body)[reader-font-size="37"] .js-reader-wrapper { font-size: 37px; }
:is(html,body)[reader-font-size="38"] .js-reader-wrapper { font-size: 38px; }
:is(html,body)[reader-font-size="39"] .js-reader-wrapper { font-size: 39px; }
:is(html,body)[reader-font-size="40"] .js-reader-wrapper { font-size: 40px; }
:is(html,body)[reader-font-size="41"] .js-reader-wrapper { font-size: 41px; }
:is(html,body)[reader-font-size="42"] .js-reader-wrapper { font-size: 42px; }
:is(html,body)[reader-font-size="43"] .js-reader-wrapper { font-size: 43px; }
:is(html,body)[reader-font-size="44"] .js-reader-wrapper { font-size: 44px; }
:is(html,body)[reader-font-size="45"] .js-reader-wrapper { font-size: 45px; }
:is(html,body)[reader-font-size="46"] .js-reader-wrapper { font-size: 46px; }
:is(html,body)[reader-font-size="47"] .js-reader-wrapper { font-size: 47px; }
:is(html,body)[reader-font-size="48"] .js-reader-wrapper { font-size: 48px; }

:is(html,body)[reader-font="songti"] .js-reader-wrapper .article {
    font-family: var(--font-family-serif);
}

:is(html,body)[reader-font="kaiti"] .js-reader-wrapper .article {
    font-family: var(--font-family-kaiti);
}

:is(html,body)[reader-page-mode="scroll"] .chapter-nav {
    display: none;
}

body.theme-dark .read-float-login {
    background: var(--cta-solid-bg);
    color: var(--cta-solid-fg);
    border: none;
    font-weight: 600;
}

body.theme-dark .read-float-login:hover,
body.theme-dark .read-float-login:focus-visible {
    background: var(--cta-solid-bg-hover);
    color: var(--cta-solid-fg);
}

body.theme-dark .read-float-user:hover,
body.theme-dark .read-float-user:focus-visible {
    box-shadow: 0 0 0 2px rgba(216, 179, 106, .55);
}

body.theme-dark .read-float-bar .search .input {
    background: #353535;
    border-color: rgba(255, 255, 255, .15);
}
body.theme-dark .read-float-bar .search .input:focus-within {
    border-color: var(--input-focus-border);
    box-shadow: var(--input-focus-ring);
}
body.theme-dark .read-float-bar .search .input.open {
    border-color: var(--input-focus-border);
    border-bottom-width: 0;
    padding-bottom: 1px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    box-shadow: none;
}
body.theme-dark .read-float-bar .search .search-suggest-list li {
    border-bottom-color: var(--line-subtle);
}
body.theme-dark .read-float-bar .search .search-suggest-list li.is-active {
    background: var(--bg-subtle);
}
@media (hover: hover) {
    body.theme-dark .read-float-bar .search .search-suggest-list li:not(.suggest-item-error):not(.suggest-hist-head):hover {
        background: var(--bg-subtle);
    }
}

body.theme-dark .read-float-bar .search .input input,
body.theme-dark .read-float-bar .search .search-scope,
body.theme-dark .read-float-bar .search .site-select--scope .site-select__trigger {
    color: #e0e0e0;
}
body.theme-dark .read-float-bar .search .search-scope {
    color-scheme: dark;
    border-right-color: rgba(255, 255, 255, .15);
}
body.theme-dark .read-float-bar .search .site-select--scope .site-select__trigger,
body.theme-dark .read-float-bar .search .site-select--scope .site-select__trigger:hover:not(:disabled),
body.theme-dark .read-float-bar .search .site-select--scope .site-select__trigger:focus,
body.theme-dark .read-float-bar .search .site-select--scope .site-select__trigger:focus-visible,
body.theme-dark .read-float-bar .search .site-select--scope.is-open > .site-select__trigger {
    background-color: transparent;
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-right-color: rgba(255, 255, 255, .15);
    box-shadow: none;
}
body.theme-dark .read-float-bar .search .site-select--scope .site-select__arrow {
    color: #a8a095;
}
body.theme-dark .read-float-bar .search .site-select--scope.is-open > .site-select__trigger .site-select__arrow {
    color: #e2c27e;
}
body.theme-dark .read-float-bar .search .search-scope option {
    background-color: #353535;
    color: #e0e0e0;
}

body.theme-dark .read-float-bar .search .input .search-btn {
    color: #bbb;
}
body.theme-dark .read-float-bar .search .input:focus-within .search-btn {
    color: #ffab91;
}
@media (hover: hover) {
    body.theme-dark .read-float-bar .search .input .search-btn:hover {
        color: #ffab91;
    }
}
body.theme-dark .read-float-bar .search .input .search-btn:focus-visible {
    color: #ffab91;
}

body.theme-dark .read-chap-mark-ribbon {
    background: #5b564e;
}

body.theme-dark .read-chap-mark[data-tip]::after {
    background: rgba(54, 49, 42, .96);
    color: #f2ece2;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .42);
}

body.theme-dark .read-chap-mark:not(.is-marked):focus-visible .read-chap-mark-ribbon {
    background: #b69963;
}

@media (hover: hover) {
    body.theme-dark .read-chap-mark:not(.is-marked):hover .read-chap-mark-ribbon {
        background: #b69963;
    }
}

:is(body.theme-blue, body.theme-yellow, body.theme-green, body.theme-red) .read-error-pop .err-type-pills {
    background: rgba(179, 134, 61, 0.08);
    border-color: rgba(179, 134, 61, 0.18);
}

body.theme-blue .read-guide-pop .icon-key {
    color: #1d3240;
    background: linear-gradient(180deg, #fbfdff 0%, #eef4f9 100%);
    border-color: #c5d4e0;
}

body.theme-yellow .read-guide-pop .icon-key {
    color: #413b2a;
    background: linear-gradient(180deg, #fdfbf6 0%, #f3eee2 100%);
    border-color: #d6cbb5;
}

body.theme-green .read-guide-pop .icon-key {
    color: #32412d;
    background: linear-gradient(180deg, #fafdf9 0%, #edf5ea 100%);
    border-color: #c4d5be;
}

body.theme-red .read-guide-pop .icon-key {
    color: #4a3131;
    background: linear-gradient(180deg, #fffafa 0%, #f8ecec 100%);
    border-color: #dfc6c6;
}

body.theme-blue .section {
    background: var(--bg-primary);
}

body.theme-blue .section .read-cont .read-chapter-info {
    border-bottom: 1px dashed #DCDEE1;
}

body.theme-blue .section .read-cont .read-chapter-info .title {
    color: #131A1E;
}

body.theme-blue .section .read-cont .read-chapter-info .read-info-list li {
    color: #93999D;
}

body.theme-blue .section .read-cont .article {
    color: #131A1E;
}

body.theme-blue .section .read-cont .article .mask {
    background-image: linear-gradient(180deg, rgba(245, 248, 251, 0), #f5f8fb);
}

body.theme-blue .section .read-cont .vip-limit-wrap .tip {
    color: #93999D;
}

body.theme-blue .read-reader-btn,
body.theme-blue .read-left-tools .read-left-btn:not(.back) {
    background: #F5F8FB;
}

body.theme-yellow,
body.theme-yellow .wrapper {
    background: #E3D9BC;
}

body.theme-yellow .section {
    background: #F4F1E9;
}

body.theme-yellow .section .read-cont .read-chapter-info {
    border-bottom: 1px dashed #E1DCD3;
}

body.theme-yellow .section .read-cont .read-chapter-info .title {
    color: #413B2A;
}

body.theme-yellow .section .read-cont .read-chapter-info .read-info-list li {
    color: #949289;
}

body.theme-yellow .section .read-cont .article {
    color: #413B2A;
}

body.theme-yellow .section .read-cont .article .mask {
    background-image: linear-gradient(180deg, rgba(244, 241, 233, 0), #f4f1e9);
}

body.theme-yellow .section .read-cont .vip-limit-wrap .tip {
    color: #949289;
}

body.theme-yellow .read-reader-btn,
body.theme-yellow .read-left-tools .read-left-btn:not(.back) {
    background: #F4F1E9;
}

body.theme-green,
body.theme-green .wrapper {
    background: #DDEBD6;
}

body.theme-green .section {
    background: #F5FAF2;
}

body.theme-green .section .read-cont .read-chapter-info {
    border-bottom: 1px dashed #DCE0D9;
}

body.theme-green .section .read-cont .read-chapter-info .title {
    color: #394434;
}

body.theme-green .section .read-cont .read-chapter-info .read-info-list li {
    color: #90978C;
}

body.theme-green .section .read-cont .article {
    color: #394434;
}

body.theme-green .section .read-cont .article .mask {
    background-image: linear-gradient(180deg, rgba(245, 250, 242, 0), #f5faf2);
}

body.theme-green .section .read-cont .vip-limit-wrap .tip {
    color: #90978C;
}

body.theme-green .read-reader-btn,
body.theme-green .read-left-tools .read-left-btn:not(.back) {
    background: #F5FAF2;
}

body.theme-red,
body.theme-red .wrapper {
    background: #F3D8D8;
}

body.theme-red .section {
    background: #FEF2F2;
}

body.theme-red .section .read-cont .read-chapter-info {
    border-bottom: 1px dashed #E4D9D9;
}

body.theme-red .section .read-cont .read-chapter-info .title {
    color: #453030;
}

body.theme-red .section .read-cont .read-chapter-info .read-info-list li {
    color: #A79696;
}

body.theme-red .section .read-cont .article {
    color: #453030;
}

body.theme-red .section .read-cont .article .mask {
    background-image: linear-gradient(180deg, rgba(254, 242, 242, 0), #fef2f2);
}

body.theme-red .section .read-cont .vip-limit-wrap .tip {
    color: #A79696;
}

body.theme-red .read-reader-btn,
body.theme-red .read-left-tools .read-left-btn:not(.back) {
    background: #FEF2F2;
}

body.theme-dark {
    background: #242121;
    color-scheme: dark;
}

body.theme-dark::-webkit-scrollbar-track,
body.theme-dark::-webkit-scrollbar-thumb {
    border-radius: 10px;
}
body.theme-dark::-webkit-scrollbar-track {
    background-color: transparent;
}
body.theme-dark::-webkit-scrollbar-thumb {
    background-color: #909090;
}

body.theme-dark .wrapper {
    background: #242121;
}

body.theme-dark .section {
    background: #353535;
}

body.theme-dark .section .read-cont .read-chapter-info {
    border-bottom: 1px dashed #494949;
}

body.theme-dark .section .read-cont .read-chapter-info .title {
    color: #dcd6ca;
}

body.theme-dark .section .read-cont .read-chapter-info .read-info-list li {
    color: #9a9387;
}

body.theme-dark .section .read-cont .article {
    color: #c9c3b8;
}

body.theme-dark .section .read-cont .article .mask {
    background-image: linear-gradient(180deg, rgba(53, 53, 53, 0), #353535);
}

body.theme-dark .section .read-cont .vip-limit-wrap {
    border-top-color: rgba(255, 255, 255, .10);
}

body.theme-dark .section .read-cont .vip-limit-wrap .tip {
    color: #9a9387;
}

body.theme-dark .section .read-cont .vip-limit-wrap .read-way-list .pay-box {
    background: transparent;
    border: none;
}

body.theme-dark .read-reader-btn {
    background: #353535;
}

body.theme-dark .read-reader-btn .item .icon-wrap .site-icon,
body.theme-dark .read-reader-btn .item .s-txt {
    color: #b5afa4;
}

body.theme-dark .read-reader-btn .item:hover .icon-wrap .site-icon,
body.theme-dark .read-reader-btn .item:hover .s-txt {
    color: #ccc;
}

body.theme-dark .read-reader-btn .read-pop,
body.theme-dark .read-reader-btn.is-active {
    background: #444;
}

body.theme-dark .read-reader-btn .read-pop .pop-head h2 {
    color: #ccc;
}

body.theme-dark .read-reader-btn .read-pop.js-pop-setting {
    background: var(--read-pop-bg);
    border-color: var(--read-pop-border);
    box-shadow: var(--read-pop-shadow);
}

body.theme-dark .read-reader-btn .read-pop.js-pop-setting .pop-close:hover {
    background: rgba(240, 235, 226, .08);
}

body.theme-dark .read-reader-btn .read-pop.js-pop-setting .pop-close .site-icon {
    color: var(--read-pop-muted);
}

body.theme-dark .read-reader-btn .read-pop.js-pop-setting .pop-close:hover .site-icon {
    color: var(--read-pop-ink);
}

body.theme-dark .read-reader-btn .read-pop.js-pop-setting .pop-head {
    border-bottom: none;
}

body.theme-dark .read-reader-btn .read-pop.js-pop-setting .pop-head h2 {
    color: var(--read-pop-ink);
}

body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item label,
body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-label {
    color: var(--read-pop-secondary);
}

body.theme-dark .read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .theme-list li {
    border-color: rgba(240, 235, 226, .20);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .14), 0 1px 3px rgba(0, 0, 0, .28);
}

body.theme-dark .read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .theme-list li[theme="dark"] {
    border-color: rgba(240, 235, 226, .30);
}

body.theme-dark .read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .theme-list li:hover {
    border-color: rgba(226, 194, 126, .62);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .16), 0 3px 8px rgba(0, 0, 0, .42);
}

body.theme-dark .read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .theme-list li.cur {
    border-color: #e2c27e;
    box-shadow: inset 0 0 0 2px var(--read-pop-bg, #22201d), 0 1px 4px rgba(0, 0, 0, .38);
}

body.theme-dark .read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .theme-list li.cur:hover {
    border-color: #e2c27e;
    box-shadow: inset 0 0 0 2px var(--read-pop-bg, #22201d), 0 3px 8px rgba(0, 0, 0, .46);
}

body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .font-size {
    border: 1px solid var(--read-pop-border);
    background: var(--bg-input);
}

body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .font-size li button {
    color: var(--read-pop-ink);
}

body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .font-size li button:hover {
    background: var(--warm-surface);
    color: var(--warm-ink);
}

body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .font-size li.disabled button {
    color: var(--read-pop-muted);
    opacity: .48;
}

body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .font-size li.disabled button:hover {
    background: transparent;
    color: var(--read-pop-muted);
}

body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .font-size .cur-size {
    color: var(--read-pop-secondary);
    border-left: 1px solid var(--read-pop-border);
    border-right: 1px solid var(--read-pop-border);
}

body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .font-family button,
body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .line-height button,
body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .page-width button,
body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .page-mode button {
    color: var(--read-pop-secondary);
    background: var(--bg-input);
    border: 1px solid var(--read-pop-border);
}

body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .font-family button:hover,
body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .line-height button:hover,
body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .page-width button:hover,
body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .page-mode button:hover {
    border-color: var(--warm-border);
    background: var(--warm-surface);
    color: var(--read-pop-ink);
}

body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .font-family button.is-active,
body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .line-height button.is-active,
body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .page-width button.is-active,
body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .page-mode button.is-active {
    color: var(--warm-ink);
    border: 1px solid var(--accent-bar);
    background: var(--warm-tint);
}

body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .auto-sub {
    background: #1c1a17;
    border-color: var(--read-pop-line);
}

body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .auto-sub button {
    color: var(--read-pop-muted);
}

body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .auto-sub button:hover {
    color: var(--read-pop-ink);
}

body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .auto-sub button.is-active {
    color: var(--read-pop-ink);
    font-weight: 500;
}

body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .auto-sub.slide-right button.is-active,
body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .auto-sub.slide-right button.is-active:hover {
    color: var(--cta-solid-fg);
    font-weight: 600;
}

body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .auto-sub::before {
    background: #3a3630;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

body.theme-dark .read-reader-btn .read-pop .pop-body .setting-list .setting-item .setting-cont .auto-sub.slide-right::before {
    background: var(--cta-solid-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .32);
}

body.theme-dark .read-reader-btn .read-pop.js-pop-setting .pop-body .btn-wrap {
    border-top: none;
}

body.theme-dark .read-reader-btn .read-pop.js-pop-setting .pop-body .btn-wrap .lm-btn.js-reset-theme {
    background: var(--read-pop-subtle);
    color: var(--read-pop-ink);
    border: 1px solid var(--read-pop-border);
}

body.theme-dark .read-reader-btn .read-pop.js-pop-setting .pop-body .btn-wrap .lm-btn.js-reset-theme:hover {
    background: var(--warm-surface);
    border-color: var(--warm-border);
    color: var(--warm-ink);
}

body.theme-dark .read-float-user-panel {
    background: #353535;
    border-color: rgba(255, 255, 255, .15);
    color: #e0e0e0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}

body.theme-dark .read-float-user-panel-row {
    color: #aaa;
}

body.theme-dark .read-float-menu-btn {
    color: #e0e0e0;
}

body.theme-dark .read-float-menu-btn:hover,
body.theme-dark .read-float-menu-btn:focus-visible {
    background: rgba(255, 255, 255, .1);
}

body.theme-dark .read-float-menu-btn--logout {
    color: #ff8a80;
}

body.theme-dark .read-float-menu-btn--logout:hover,
body.theme-dark .read-float-menu-btn--logout:focus-visible {
    background: rgba(255, 138, 128, .12);
    color: #ffab91;
}

body.theme-dark .read-left-tools .read-left-btn.back {
    background: #353027;
    color: #d8b36a;
    border: 1px solid rgba(216, 179, 106, .28);
}

body.theme-dark .read-left-tools .read-left-btn.back:hover {
    background: #433b2e;
    color: #edd294;
}

body.theme-dark .read-left-tools .read-left-btn.back .icon-wrap .site-icon,
body.theme-dark .read-left-tools .read-left-btn.back .s-txt {
    color: inherit;
}

body.theme-dark .read-left-tools .read-left-btn:not(.back) {
    background: #2f2d2a;
    color: #a8a196;
}

body.theme-dark .read-left-tools .read-left-btn:not(.back):not(.report-error):hover .icon-wrap .site-icon,
body.theme-dark .read-left-tools .read-left-btn:not(.back):not(.report-error):hover .s-txt {
    color: #d8b36a;
}

body.theme-dark .read-left-tools .read-left-btn.report-error {
    color: #b89084;
}

body.theme-dark .read-left-tools button.report-error:hover .icon-wrap .site-icon,
body.theme-dark .read-left-tools button.report-error:hover .s-txt {
    color: #d4a698;
}

body.theme-dark .read-left-tools .read-tool-badge {
    background: rgba(216, 179, 106, .2);
    color: #e2c27e;
}

body.theme-dark .read-catalogue-pop .pop-head {
    border-bottom: none;
}

body.theme-dark .read-catalogue-pop .pop-head h2 {
    color: var(--read-pop-ink);
}

body.theme-dark .read-catalogue-pop {
    background: var(--read-pop-bg);
    border: none;
    border-left: 1px solid var(--read-pop-line);
    border-radius: 0;
    box-shadow: -6px 0 32px rgba(0, 0, 0, .48);
}

body.theme-dark .read-catalogue-pop .catalogue-close:hover,
body.theme-dark .read-error-pop .catalogue-close:hover {
    background: rgba(240, 235, 226, .08);
}

body.theme-dark .read-catalogue-pop .pop-body .catalogue-list::-webkit-scrollbar {
    width: 6px;
}

body.theme-dark .read-catalogue-pop .pop-body .catalogue-list::-webkit-scrollbar-track {
    background: transparent;
}

body.theme-dark .read-catalogue-pop .pop-body .catalogue-list::-webkit-scrollbar-thumb {
    background: rgba(240, 235, 226, .18);
    border-radius: 999px;
}

body.theme-dark .read-catalogue-pop .pop-body .catalogue-list::-webkit-scrollbar-thumb:hover {
    background: rgba(240, 235, 226, .32);
}

body.theme-dark .read-catalogue-pop .pop-body .catalogue-list::-webkit-scrollbar-corner {
    background: transparent;
}

body.theme-dark .read-catalogue-pop .sort-btn button {
    background: transparent;
    border: none;
    color: var(--read-pop-ink);
}

body.theme-dark .read-catalogue-pop .sort-btn button:hover {
    background: transparent;
    border: none;
    color: var(--warm-ink);
}

body.theme-dark .read-catalogue-pop .cat-bulk-btn,
body.theme-dark .read-mobile-catalogue .pop-body .read-mcat-head .cat-bulk-btn {
    border: none;
    background: transparent;
    color: var(--warm-ink);
}

body.theme-dark .read-catalogue-pop .cat-bulk-btn:hover,
body.theme-dark .read-mobile-catalogue .pop-body .read-mcat-head .cat-bulk-btn:hover {
    border: none;
    background: transparent;
    color: #f2d59a;
    opacity: .86;
}

body.theme-dark .read-catalogue-pop .volume-head {
    background: var(--read-vol-bg);
    border: none;
}

body.theme-dark .read-catalogue-pop .volume-head:hover {
    background: var(--read-vol-bg-hover);
}

body.theme-dark .read-catalogue-pop .volume-title {
    color: var(--read-pop-ink);
}

body.theme-dark .read-catalogue-pop .volume-title-count {
    color: var(--read-pop-muted);
}

body.theme-dark .read-catalogue-pop .volume-head .vol-buy-btn,
body.theme-dark .read-mobile-catalogue .volume-head .vol-buy-btn {
    border: none;
    background: transparent;
    color: var(--warm-ink);
}

body.theme-dark .read-catalogue-pop .volume-head .vol-buy-btn:hover,
body.theme-dark .read-mobile-catalogue .volume-head .vol-buy-btn:hover {
    border: none;
    background: transparent;
    color: #f2d59a;
    opacity: .86;
}

body.theme-dark .read-catalogue-pop .volume-head .vol-vip-btn,
body.theme-dark .read-mobile-catalogue .volume-head .vol-vip-btn {
    border: none;
    background: transparent;
    color: #e2a95b;
}

body.theme-dark .read-catalogue-pop .volume-head .vol-vip-btn:hover,
body.theme-dark .read-mobile-catalogue .volume-head .vol-vip-btn:hover {
    border: none;
    background: transparent;
    color: #f0c27e;
    opacity: .86;
}

body.theme-dark .vol-badge--free {
    color: #5ebd8d;
    background: rgba(94, 189, 141, .16);
}

body.theme-dark .vol-badge--limited-free {
    color: #63c797;
    background: rgba(99, 199, 151, .18);
}

body.theme-dark .vol-badge--coin {
    color: #c99e52;
    background: rgba(201, 158, 82, .16);
}

body.theme-dark .vol-badge--vip {
    color: #e2a95b;
    background: rgba(226, 169, 91, .16);
}

body.theme-dark .read-catalogue-pop .volume-group ul li a {
    color: var(--read-pop-ink);
    background: transparent;
    border-bottom-color: var(--read-pop-line);
}

body.theme-dark .read-catalogue-pop .volume-group ul li a:hover {
    background: transparent;
    color: var(--warm-ink);
}

body.theme-dark .read-catalogue-pop .volume-group ul li a i.site-icon-lock,
body.theme-dark .read-mobile-catalogue .volume-group ul li a i.site-icon-lock {
    color: #c99e52;
}

body.theme-dark .read-catalogue-pop .volume-group ul li a i.site-icon-unlock,
body.theme-dark .read-mobile-catalogue .volume-group ul li a i.site-icon-unlock {
    color: #5ebd8d;
}

body.theme-dark .pop-head .pop-title {
    color: var(--read-pop-ink);
}

body.theme-dark .read-pop.js-pop-tel {
    background: var(--read-pop-bg);
    border-color: var(--read-pop-border);
    box-shadow: var(--read-pop-shadow);
}

body.theme-dark .read-pop.js-pop-tel img {
    padding: 6px;
    background: #fff;
    box-sizing: border-box;
}

body.theme-dark .read-reader-btn .read-pop.js-pop-tel img.qr-download,
body.theme-dark .read-pop.js-pop-tel img.qr-download {
    display: block;
}

body.theme-dark .read-guide-pop,
body.theme-dark .read-error-pop {
    background: var(--read-pop-bg);
    border-color: var(--read-pop-border);
    box-shadow: var(--read-pop-shadow);
}

body.theme-dark .read-guide-pop .pop-head h2,
body.theme-dark .read-guide-pop .pop-title,
body.theme-dark .read-error-pop .pop-head h2 {
    color: var(--read-pop-ink);
}

body.theme-dark .read-guide-pop .pop-close:hover {
    background: rgba(240, 235, 226, .08);
}

body.theme-dark .read-error-pop .err-context-bar {
    color: var(--read-pop-muted);
}

body.theme-dark .read-error-pop .err-context-bar .site-icon-read {
    color: var(--accent-bar);
}

body.theme-dark .read-error-pop .err-shortcut-hint,
body.theme-dark .read-error-pop .err-chars {
    color: var(--read-pop-muted);
}

body.theme-dark .read-error-pop .err-chars.is-warn {
    color: #e3a84f;
}

body.theme-dark .read-error-pop .err-chars.is-max {
    color: #f07c6b;
}

body.theme-dark .pop-close .site-icon,
body.theme-dark .read-catalogue-pop .catalogue-close .site-icon,
body.theme-dark .read-error-pop .catalogue-close .site-icon {
    color: var(--read-pop-muted);
}

body.theme-dark .pop-close:hover .site-icon,
body.theme-dark .read-catalogue-pop .catalogue-close:hover .site-icon,
body.theme-dark .read-error-pop .catalogue-close:hover .site-icon {
    color: var(--read-pop-ink);
}

body.theme-dark .read-error-pop .err-type-pills {
    background: #1c1a17;
    border-color: var(--read-pop-line);
}

body.theme-dark .read-error-pop .err-type-item span {
    background: transparent;
    border-color: transparent;
    color: var(--read-pop-secondary);
}

body.theme-dark .read-error-pop .err-type-item:hover span {
    background: rgba(240, 235, 226, .05);
    color: var(--read-pop-ink);
}

body.theme-dark .read-error-pop .err-type-item input[type="radio"]:checked + span {
    background: var(--warm-tint);
    border-color: var(--accent-bar);
    color: var(--warm-ink);
    box-shadow: none;
}

body.theme-dark .read-error-pop .err-tag-chip {
    background: var(--read-pop-subtle);
    border-color: var(--read-pop-border);
    color: var(--read-pop-secondary);
}

body.theme-dark .read-error-pop .err-tag-chip:hover {
    background: var(--warm-surface);
    border-color: var(--warm-border);
    color: var(--read-pop-ink);
}

body.theme-dark .read-error-pop .err-tag-chip.is-active {
    background: var(--warm-tint);
    border-color: var(--accent-bar);
    color: var(--warm-ink);
}

body.theme-dark .read-error-pop .err-text-wrap {
    background: var(--bg-input);
    border-color: var(--read-pop-border);
}
body.theme-dark .read-error-pop .err-text-wrap:focus-within {
    border-color: var(--input-focus-border);
    box-shadow: var(--input-focus-ring);
}
body.theme-dark .read-error-pop .err-textarea {
    background: transparent;
    color: var(--read-pop-ink);
    border: none;
    box-shadow: none;
}
body.theme-dark .read-error-pop .err-textarea::placeholder {
    color: var(--read-pop-muted);
}
body.theme-dark .read-error-pop .err-textarea:focus {
    outline: none;
    border: none;
    box-shadow: none;
    background: transparent;
}

body.theme-dark .read-error-pop .err-submit {
    background: var(--cta-solid-bg);
    color: var(--cta-solid-fg);
    border: none;
}

body.theme-dark .read-error-pop .err-submit:hover {
    background: var(--cta-solid-bg-hover);
    color: var(--cta-solid-fg);
}

body.theme-dark .read-error-pop .err-submit:disabled {
    opacity: .55;
    background: var(--read-pop-subtle);
    color: var(--read-pop-muted);
    border: 1px solid var(--read-pop-border);
}

body.theme-dark .read-error-pop .err-track-bar {
    border-top-color: var(--read-pop-line);
}

body.theme-dark .read-error-pop .err-track-link {
    color: var(--warm-ink);
}

body.theme-dark .read-error-pop .err-track-link:hover {
    color: var(--color-emphasis-hover);
}

body.theme-dark .read-guide-pop .s-txt {
    color: var(--read-pop-secondary);
}

body.theme-dark .read-guide-pop .icon-key {
    color: var(--read-pop-ink);
    background: linear-gradient(180deg, #36322c 0%, #2b2823 100%);
    border-color: rgba(240, 235, 226, .18);
    border-bottom-color: #191714;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
}

body.theme-dark .vip-limit-wrap p,
body.theme-dark .vip-limit-wrap .read-way-list .pay-box p {
    color: var(--read-pop-secondary);
}

body.theme-dark .vip-limit-wrap .read-way-list .pay-box h5 {
    color: var(--read-pop-ink);
}

body.theme-dark .vip-limit-wrap .read-paywall-orig {
    color: var(--read-pop-muted);
    opacity: .78;
}

body.theme-dark .vip-limit-wrap .read-way-list .pay-box .pay-btn {
    background: linear-gradient(135deg, #c2954b 0%, var(--accent-bar, #b3863d) 60%, var(--accent-2, #9a6d29) 100%);
    color: #fffdf8;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}

body.theme-dark .vip-limit-wrap .read-way-list .pay-box .pay-btn:hover {
    background: linear-gradient(135deg, #cca057 0%, #be8f43 60%, var(--accent-2, #9a6d29) 100%);
    color: #fffdf8;
}

:is(html,body)[reader-width="640"] .read-right-tools {
    transform: translate(calc(50% + 320px + var(--spacing-2xl)), 0);
}

:is(html,body)[reader-width="800"] .read-right-tools {
    transform: translate(calc(50% + 400px + var(--spacing-2xl)), 0);
}

:is(html,body)[reader-width="1280"] .read-right-tools {
    transform: translate(calc(50% + 640px + var(--spacing-2xl)), 0);
}

body.theme-dark .volume-chevron {
    color: var(--read-pop-muted);
}

body.theme-dark .read-catalogue-pop .volume-group ul li a.current-chapter,
body.theme-dark .read-catalogue-pop .volume-group ul li.current-chapter a,
body.theme-dark .read-catalogue-pop .volume-group ul li a[aria-current="location"] {
    background: transparent;
    color: var(--warm-ink);
    font-weight: 600;
    border-bottom-color: var(--read-pop-line);
}

body.theme-dark .read-catalogue-pop .volume-group ul li a.current-chapter:hover,
body.theme-dark .read-catalogue-pop .volume-group ul li.current-chapter a:hover,
body.theme-dark .read-catalogue-pop .volume-group ul li a[aria-current="location"]:hover {
    background: transparent;
    color: var(--warm-ink);
}

body.theme-dark .read-mobile-catalogue .volume-group ul li a.current-chapter {
    color: var(--warm-ink);
    font-weight: 600;
}

body.theme-dark .chapter-nav .nav-inner { background: rgba(255, 255, 255, .07); }
body.theme-dark .chapter-nav a { color: #ccc; }
body.theme-dark .chapter-nav a + a { border-left-color: rgba(255, 255, 255, .1); }
body.theme-dark .chapter-nav a:hover:not(.disabled) { background: rgba(255, 255, 255, .08); color: var(--on-dark-weak); }
body.theme-dark .chapter-nav a.disabled { color: rgba(255, 255, 255, .25); }

body.theme-dark .read-cover-page {
    border-color: rgba(255, 255, 255, .08);
    box-shadow: none;
}

body.theme-dark .read-cover-copyright {
    border-top-color: rgba(255, 255, 255, .1);
}

body.theme-dark .read-cover-img {
    background: linear-gradient(135deg, #2b2b2b 0%, #3a3a3a 100%);
}

body.theme-dark .read-cover-title,
body.theme-dark .read-cover-row-title,
body.theme-dark .copyright-produce {
    color: #909090;
}

body.theme-dark .read-cover-author,
body.theme-dark .read-cover-row-sub {
    color: #747474;
}

/* JS 在侧栏放不下时加 mobile-only：显示底栏、藏侧栏（不依赖 ≤768） */
body.mobile-only {
    --read-mobile-bar: calc(60px + env(safe-area-inset-bottom, 0px));
}
body.mobile-only .read-left-tools,
body.mobile-only .read-right-tools {
    display: none;
}
body.mobile-only .reader-container {
    grid-template-areas: "main";
    grid-template-columns: 1fr;
}
body.mobile-only .read-mobile-toolbar:not(.hide) {
    display: flex;
}
body.mobile-only .wrapper {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

/*
 * 脚本前 FOUC：与 readSideRailsFit（栏宽+160）对齐。
 * 仅写“藏侧栏/出底栏”必要声明；底栏高走 --read-mobile-bar。
 * 640→800、800→960、960→1120、1280→1440；加载后以 body.mobile-only 为准。
 */
@media (max-width: 799px) {
    html, body {
        --read-mobile-bar: calc(60px + env(safe-area-inset-bottom, 0px));
    }
    .read-left-tools,
    .read-right-tools { display: none; }
    .read-mobile-toolbar:not(.hide) { display: flex; }
    .reader-container { grid-template-areas: "main"; grid-template-columns: 1fr; }
    .wrapper {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
    .read-reader-btn.js-back-top { display: none; }
}
@media (min-width: 800px) and (max-width: 959px) {
    :is(html, body):not([reader-width="640"]) {
        --read-mobile-bar: calc(60px + env(safe-area-inset-bottom, 0px));
    }
    :is(html, body):not([reader-width="640"]) .read-left-tools,
    :is(html, body):not([reader-width="640"]) .read-right-tools { display: none; }
    :is(html, body):not([reader-width="640"]) .read-mobile-toolbar:not(.hide) { display: flex; }
    :is(html, body):not([reader-width="640"]) .reader-container { grid-template-areas: "main"; grid-template-columns: 1fr; }
    :is(html, body):not([reader-width="640"]) .wrapper {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
    :is(html, body):not([reader-width="640"]) .read-reader-btn.js-back-top { display: none; }
}
@media (min-width: 960px) and (max-width: 1119px) {
    :is(html, body):not([reader-width="640"]):not([reader-width="800"]) {
        --read-mobile-bar: calc(60px + env(safe-area-inset-bottom, 0px));
    }
    :is(html, body):not([reader-width="640"]):not([reader-width="800"]) .read-left-tools,
    :is(html, body):not([reader-width="640"]):not([reader-width="800"]) .read-right-tools { display: none; }
    :is(html, body):not([reader-width="640"]):not([reader-width="800"]) .read-mobile-toolbar:not(.hide) { display: flex; }
    :is(html, body):not([reader-width="640"]):not([reader-width="800"]) .reader-container { grid-template-areas: "main"; grid-template-columns: 1fr; }
    :is(html, body):not([reader-width="640"]):not([reader-width="800"]) .wrapper {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
    :is(html, body):not([reader-width="640"]):not([reader-width="800"]) .read-reader-btn.js-back-top { display: none; }
}
@media (min-width: 1120px) and (max-width: 1439px) {
    :is(html, body)[reader-width="1280"] {
        --read-mobile-bar: calc(60px + env(safe-area-inset-bottom, 0px));
    }
    :is(html, body)[reader-width="1280"] .read-left-tools,
    :is(html, body)[reader-width="1280"] .read-right-tools { display: none; }
    :is(html, body)[reader-width="1280"] .read-mobile-toolbar:not(.hide) { display: flex; }
    :is(html, body)[reader-width="1280"] .reader-container { grid-template-areas: "main"; grid-template-columns: 1fr; }
    :is(html, body)[reader-width="1280"] .wrapper {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
    :is(html, body)[reader-width="1280"] .read-reader-btn.js-back-top { display: none; }
}

body.theme-dark .read-mobile-toolbar {
    background: rgba(52, 52, 52, .95);
    border-top-color: #444;
}

body.theme-dark .read-mobile-toolbar .read-tool-btn {
    color: #e0e0e0;
}

body.theme-dark .read-mobile-toolbar .read-tool-btn:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

body.theme-dark .read-mobile-toolbar .read-tool-btn.shelf-btn.on {
    color: #ccc;
}
body.theme-dark .read-mobile-toolbar .read-tool-btn.shelf-btn.on .icon {
    color: #ccc;
}

body.theme-dark .read-mobile-catalogue { background: var(--read-pop-bg); }
body.theme-blue .read-mobile-catalogue { background: var(--read-pop-bg); }
body.theme-yellow .read-mobile-catalogue { background: var(--read-pop-bg); }
body.theme-green .read-mobile-catalogue { background: var(--read-pop-bg); }
body.theme-red .read-mobile-catalogue { background: var(--read-pop-bg); }

body.theme-dark .read-mobile-catalogue .volume-group ul li a { background: var(--read-pop-subtle); color: var(--read-pop-ink); }
body.theme-dark .read-mobile-catalogue .volume-group ul li a:hover,
body.theme-dark .read-mobile-catalogue .volume-group ul li a:active { background: var(--warm-surface); color: var(--warm-ink); }
body.theme-dark .read-mobile-catalogue .volume-head { background: var(--read-vol-bg); border: none; }
body.theme-dark .read-mobile-catalogue .volume-title { color: var(--read-pop-ink); }
body.theme-dark .read-mobile-catalogue .pop-head h2,
body.theme-dark .read-mobile-setting .pop-head h2 { color: var(--read-pop-ink); }
body.theme-dark .read-mobile-catalogue .pop-body .read-mcat-head h2 { color: var(--read-pop-muted); }
body.theme-dark .read-mobile-catalogue .pop-body .read-mcat-head .sort-btn button { color: var(--read-pop-ink); }

body.theme-dark .read-mobile-setting .mset-font-family button,
body.theme-dark .read-mobile-setting .mset-line-height button {
    color: var(--read-pop-secondary);
    border-color: var(--read-pop-border);
    background: var(--bg-input);
}
body.theme-dark .read-mobile-setting .mset-font-family button.is-active,
body.theme-dark .read-mobile-setting .mset-line-height button.is-active {
    color: var(--warm-ink);
    border-color: var(--accent-bar);
    background: var(--warm-tint);
}

body.theme-dark .read-mobile-setting { background: var(--read-pop-bg); }

body.theme-dark .read-float-back:hover,
body.theme-dark .read-float-back:focus-visible {
    background: rgba(255, 255, 255, .08);
    color: #d8b36a;
}
body.theme-dark .read-pop.js-pop-more {
    background: #282623;
    border-top-color: rgba(255, 255, 255, .1);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, .45);
}
body.theme-dark .read-pop.js-pop-more .pop-head {
    border-bottom-color: rgba(255, 255, 255, .08);
}
body.theme-dark .read-pop.js-pop-more .pop-head h2,
body.theme-dark .read-pop.js-pop-more .pop-title {
    color: #e8e3da;
}
body.theme-dark .read-pop.js-pop-more .read-tool-btn,
body.theme-dark .read-pop.js-pop-more .read-more-item {
    background: #33302c;
    border-color: rgba(255, 255, 255, .08);
    color: #ddd7cc;
}
body.theme-dark .read-pop.js-pop-more .read-tool-btn:hover,
body.theme-dark .read-pop.js-pop-more .read-more-item:hover {
    background: #3e382e;
    border-color: rgba(216, 179, 106, .35);
    color: #e6cb8e;
}
body.theme-dark .read-mobile-catalogue .catalogue-close .site-icon,
body.theme-dark .read-mobile-setting .catalogue-close .site-icon { background: rgba(255, 255, 255, .1); color: #e0e0e0; }
body.theme-dark .read-mobile-setting .mset-item label,
body.theme-dark .read-mobile-setting .mset-item .setting-label { color: #e0e0e0; }
body.theme-dark .read-mobile-setting .mset-item .font-size { border-color: #555; }
body.theme-dark .read-mobile-setting .mset-item .font-size li.cur-size { border-color: #555; color: #e0e0e0; }
body.theme-dark .read-mobile-setting .mset-item .font-size li button { color: #e0e0e0; }
body.theme-dark .read-mobile-setting .mset-item .font-size li.disabled button { color: var(--text-secondary); }
body.theme-dark .read-mobile-setting .mset-theme li { border-color: var(--read-pop-border); color: var(--read-pop-secondary); }
body.theme-dark .read-mobile-setting .mset-theme li.cur { border-color: var(--accent-bar); background: var(--warm-tint); color: var(--warm-ink); }
body.theme-dark .read-mobile-setting .mset-item .auto-sub { background: #1c1a17; border-color: var(--read-pop-line); }
body.theme-dark .read-mobile-setting .mset-item .auto-sub button { color: var(--read-pop-muted); }
body.theme-dark .read-mobile-setting .mset-item .auto-sub button.is-active { color: var(--read-pop-ink); font-weight: 500; }
body.theme-dark .read-mobile-setting .mset-item .auto-sub.slide-right button.is-active { color: var(--cta-solid-fg); font-weight: 600; }
body.theme-dark .read-mobile-setting .mset-item .auto-sub::before { background: #3a3630; box-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
body.theme-dark .read-mobile-setting .mset-item .auto-sub.slide-right::before { background: var(--cta-solid-bg); box-shadow: 0 1px 3px rgba(0, 0, 0, .32); }
@media screen and (max-width: 768px),
       screen and (max-height: 500px) and (max-width: 1024px) {
    body {
        --read-mobile-bar: calc(60px + env(safe-area-inset-bottom, 0px));
        --read-float-h: calc(44px + env(safe-area-inset-top, 0px));
    }

    .read-float-bar-inner {
        gap: 8px;
        height: 44px;
        min-height: 44px;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .read-float-bar .search {
        display: none;
    }

    .read-float-bar .search .input {
        height: var(--site-ctrl-h, 38px);
    }

    .read-float-bar .search .input input {
        height: calc(var(--site-ctrl-h, 38px) - 2px);
        padding: 0 8px;
        font-size: 16px;
    }
    .read-float-bar .search .input .search-btn {
        width: var(--site-ctrl-h, 38px);
        height: calc(var(--site-ctrl-h, 38px) - 2px);
    }

    .read-float-bar .search .search-scope {
        max-width: 4.6em;
        padding-left: 6px;
        font-size: 14px;
        line-height: calc(var(--site-ctrl-h, 38px) - 2px);
    }
    .read-float-bar .search .site-select--scope .site-select__trigger {
        padding: 0 6px 0 8px;
        font-size: 14px;
    }

    .read-float-login {
        min-width: 44px;
        min-height: 36px;
        padding: 4px 10px;
        font-size: 13px;
        box-sizing: border-box;
    }

    .read-float-user {
        width: 32px;
        height: 32px;
    }

    .read-float-user-panel {
        min-width: min(200px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
    }

    .read-guide-pop,
    .read-error-pop {
        width: min(400px, calc(100vw - 24px));
        max-height: calc(100vh - var(--read-float-h) - var(--read-float-gap) - var(--read-mobile-bar) - 16px);
        max-height: calc(100dvh - var(--read-float-h) - var(--read-float-gap) - var(--read-mobile-bar) - 16px);
        padding: 16px;
        box-sizing: border-box;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .read-guide-pop {
        width: min(320px, calc(100vw - 24px));
        margin-left: 0;
    }

    .read-guide-pop.is-open,
    .read-error-pop.is-open {
        top: calc(var(--read-float-h) + var(--read-float-gap) + var(--spacing-sm));
        transform: translateX(-50%);
    }

    .read-error-pop .pop-head h2 {
        font-size: 17px;
        line-height: 1.35;
    }

    .read-error-pop .err-shortcut-hint {
        display: none;
    }

    .read-error-pop .err-type-item span {
        font-size: 12.5px;
        padding: 0 6px;
    }


    .read-cont {
        padding: 0 var(--spacing-lg) 46px;
    }

    .chapter-nav {
        display: none;
    }

    .read-cover-row {
        gap: var(--spacing-xl);
    }

    .read-chapter-info .read-info-list {
        gap: 6px 14px;
    }

    .read-pop input,
    .read-pop textarea,
    .read-pop select,
    .read-float-bar input,
    .read-float-bar select,
    .read-mobile-setting input,
    .read-mobile-setting select {
        font-size: 16px;
    }

    @media screen and (max-width: 480px) {
        .read-cont {
            padding: 0 var(--spacing-md) 46px;
        }

        .read-chapter-info {
            padding: var(--spacing-2xl) 0 var(--spacing-sm);
        }

        .read-cover-main {
            padding: 8px 4px;
        }

        .read-cover-title {
            font-size: 19px;
        }

        .read-cover-row {
            flex-direction: row;
            flex-wrap: wrap;
            gap: 10px 20px;
        }
    }
}

body.mobile-only .read-reader-btn.js-back-top,
body.mobile-only .read-reader-btn.js-back-top.is-visible {
    display: none;
}

body.theme-dark .pay-all-btn {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .12);
    color: #e8e3da;
}

body.theme-dark .pay-all-btn:hover {
    background: rgba(194, 149, 75, .18);
    border-color: rgba(194, 149, 75, .42);
    color: #f3e4c3;
}

body.read-guard-copy .js-reader-wrapper {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}
body.read-guard-copy .js-reader-wrapper .vip-limit-wrap,
body.read-guard-copy .js-reader-wrapper .chapter-nav,
body.read-guard-copy .js-reader-wrapper .read-chap-mark,
body.read-guard-copy .js-reader-wrapper .layout-slot {
    pointer-events: auto;
}

/* 打赏 / 投月票弹层完全复用 style.css + ui.css 全站素宣墨金语义变量，随 6 套阅读主题自动适配 */
body.read-guard-copy .js-reader-wrapper img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

body.theme-dark progress.read-progress::-webkit-progress-value {
    background: #d4b06a;
}
body.theme-dark progress.read-progress::-moz-progress-bar {
    background: #d4b06a;
}

:is(html, body)[data-read-lh="compact"] .js-reader-wrapper .article {
    line-height: 1.55;
}
:is(html, body)[data-read-lh="compact"] .js-reader-wrapper .article p {
    padding: 8px 0;
}
:is(html, body)[data-read-lh="normal"] .js-reader-wrapper .article {
    line-height: 1.85;
}
:is(html, body)[data-read-lh="normal"] .js-reader-wrapper .article p {
    padding: 13px 0;
}
:is(html, body)[data-read-lh="loose"] .js-reader-wrapper .article {
    line-height: 2.15;
}
:is(html, body)[data-read-lh="loose"] .js-reader-wrapper .article p {
    padding: 18px 0;
}

:is(body.theme-yellow, body.theme-green, body.theme-blue, body.theme-red) .cat-search-inline:not(.is-open) .cat-search-toggle:hover,
:is(body.theme-yellow, body.theme-green, body.theme-blue, body.theme-red) .cat-search-inline:not(.is-open) .cat-search-toggle:focus-visible {
    background: transparent;
    color: var(--warm-ink);
}
:is(body.theme-yellow, body.theme-green, body.theme-blue, body.theme-red) .cat-search-inline.is-open {
    background: rgba(255, 255, 255, .52);
    border-color: rgba(31, 30, 27, .14);
}
:is(body.theme-yellow, body.theme-green, body.theme-blue, body.theme-red) .cat-search-inline.is-open:focus-within {
    background: rgba(255, 255, 255, .82);
    border-color: var(--input-focus-border, #b3863d);
    box-shadow: var(--input-focus-ring, 0 0 0 3px rgba(179, 134, 61, 0.14));
}
body.theme-dark .cat-search-toggle {
    color: #9b9488;
}
body.theme-dark .cat-search-inline:not(.is-open) .cat-search-toggle:hover,
body.theme-dark .cat-search-inline:not(.is-open) .cat-search-toggle:focus-visible {
    background: transparent;
    color: #d4b06a;
}
body.theme-dark .cat-search-inline.is-open {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .14);
}
body.theme-dark .cat-search-inline.is-open:focus-within {
    border-color: #c89e52;
    background: rgba(255, 255, 255, .09);
    box-shadow: 0 0 0 3px rgba(200, 158, 82, 0.22);
}
body.theme-dark .cat-search-inline.is-open .cat-search-toggle {
    color: #d4b06a;
}
body.theme-dark .cat-search-input {
    color: #e6e0d5;
}
body.theme-dark .cat-search-input::placeholder {
    color: #8a8275;
}
body.theme-dark .read-catalogue-pop .cat-search-close,
body.theme-dark .read-mobile-catalogue .cat-search-close,
body.theme-dark .cat-search-close {
    background: transparent;
    border: none;
    color: var(--read-pop-muted);
}
body.theme-dark .cat-search-close .site-icon {
    color: var(--read-pop-muted);
}
body.theme-dark .read-catalogue-pop .cat-search-close:hover,
body.theme-dark .read-catalogue-pop .cat-search-close:focus-visible,
body.theme-dark .read-mobile-catalogue .cat-search-close:hover,
body.theme-dark .read-mobile-catalogue .cat-search-close:focus-visible,
body.theme-dark .cat-search-close:hover,
body.theme-dark .cat-search-close:focus-visible {
    background: rgba(240, 235, 226, .08);
    color: var(--read-pop-ink);
    outline: none;
}
body.theme-dark .read-catalogue-pop .cat-search-close:hover .site-icon,
body.theme-dark .read-catalogue-pop .cat-search-close:focus-visible .site-icon,
body.theme-dark .read-mobile-catalogue .cat-search-close:hover .site-icon,
body.theme-dark .read-mobile-catalogue .cat-search-close:focus-visible .site-icon,
body.theme-dark .cat-search-close:hover .site-icon,
body.theme-dark .cat-search-close:focus-visible .site-icon {
    color: var(--read-pop-ink);
}

:is(html, body)[reader-page-mode="scroll"] .read-chapter-end {
    display: none;
}

body.theme-blue .read-chapter-end {
    background: #F5F8FB;
    border-color: #DCDEE1;
}
body.theme-yellow .read-chapter-end {
    background: #F4F1E9;
    border-color: #E1DCD3;
}
body.theme-green .read-chapter-end {
    background: #F5FAF2;
    border-color: #DCE0D9;
}
body.theme-red .read-chapter-end {
    background: #FEF2F2;
    border-color: #E4D9D9;
}

body.theme-dark .read-chapter-end {
    background: #353535;
    border-color: rgba(255, 255, 255, .08);
}
body.theme-dark .read-end-divider {
    color: #9a9387;
}
body.theme-dark .read-end-btn {
    background: #2b2926;
    border-color: #46423b;
    color: #e6e0d5;
}
body.theme-dark .read-end-btn:hover:not(.disabled),
body.theme-dark .read-end-btn:focus-visible:not(.disabled) {
    background: #383125;
    border-color: #635339;
    color: #e2c27e;
}
body.theme-dark .read-end-btn--primary {
    background: #d4b06a;
    border-color: #d4b06a;
    color: #1b1814;
}
body.theme-dark .read-end-btn--primary:hover:not(.disabled),
body.theme-dark .read-end-btn--primary:focus-visible:not(.disabled) {
    background: #e2c280;
    border-color: #e2c280;
    color: #1b1814;
}
body.theme-dark .read-end-btn.disabled,
body.theme-dark .read-end-btn--primary.disabled {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .10);
    color: #7c766c;
    opacity: .75;
}
body.theme-dark .read-end-btn.shelf-btn.in-shelf {
    background: rgba(212, 176, 106, .16);
    border-color: #635339;
    color: #e2c27e;
}
@media (max-width: 768px) {
    .read-chapter-end {
        width: 100%;
        margin: 14px 0 24px;
        padding: 18px 14px 20px;
    }
    .read-end-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .read-end-btn {
        min-width: 0;
        width: 100%;
        height: 42px;
        padding: 0 12px;
    }
    .vip-limit-wrap {
        margin: 28px auto 36px;
        padding: 28px 12px 20px;
    }
    .vip-limit-wrap .tip {
        font-size: 17px;
    }
    .vip-limit-wrap .read-way-list .pay-box .pay-btn,
    .pay-all-btn {
        max-width: 100%;
        height: 46px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .read-float-bar,
    .read-float-user,
    .read-left-tools .read-left-btn,
    .read-reader-btn.js-back-top,
    .read-catalogue-pop .catalogue-close,
    .read-error-pop .catalogue-close,
    .read-guide-pop .pop-close,
    .read-reader-btn .read-pop.js-pop-setting .pop-close,
    .read-error-pop .err-submit,
    .read-catalogue-pop .volume-head,
    .read-catalogue-pop .volume-group ul li a,
    .read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .theme-list li,
    .read-reader-btn .read-pop.js-pop-setting .pop-body .setting-list .setting-item .setting-cont .auto-sub::before,
    .read-mobile-setting .mset-item .auto-sub::before {
        transition: none;
    }
}

.hide {
    display: none;
}
@media print {
    body.read-guard-print .reader-container,
    body.read-guard-print .read-float-bar,
    body.read-guard-print .read-mobile-toolbar,
    body.read-guard-print .js-back-top {
        display: none;
    }
    body.read-guard-print .read-print-block {
        display: block;
        padding: 48px 24px;
        text-align: center;
        font-size: 16px;
        color: #333;
    }
}
@media screen and (max-width: 768px),
       screen and (max-height: 500px) and (max-width: 1024px) {
    .site-ui-modal-wrap {
            padding: max(8px, env(safe-area-inset-top, 0px)) 8px max(8px, env(safe-area-inset-bottom, 0px));
        }

    .site-ui-modal.site-ui-modal--read-login {
            width: min(480px, calc(100vw - 16px));
            max-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 16px);
            max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 16px);
        }
}
@media (prefers-reduced-motion: reduce) {
    .site-ui-modal--gift .site-ui-modal-close,
    .site-ui-modal--mticket .site-ui-modal-close,
    .site-ui-modal--gift .gift-coin-opt,
    .site-ui-modal--mticket .mticket-opt,
    .site-ui-modal--gift .js-gift-submit,
    .site-ui-modal--mticket .js-mticket-submit {
        transition: none;
    }
}
}
