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

@layer reset {
html {
    color-scheme: light;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
html, body {
    padding: 0;
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Roboto, sans-serif;
    scrollbar-gutter: stable;
    text-rendering: optimizeLegibility;
}
*, *::before, *::after {
    box-sizing: border-box;
}
em, i {
    font-style: normal;
}
button {
    font-family: inherit;
    font-size: inherit;
}
}

@layer tokens {
:root {
    /* 素宣墨金 · 全站统一设计令牌 */
    --vip-gradient: linear-gradient(135deg, #b88b3d 0%, #9a6d29 100%);
    --vip-shadow: 0 1px 3px rgba(154, 109, 41, .2);
    /* vip-tag 模板须 `vip-tag`+`vip-tag--coin|vip|free`；配色见文末 */
    --book-tag-coin-gradient: linear-gradient(135deg, #b2654c 0%, #964935 100%);
    --book-tag-coin-shadow: 0 1px 3px rgba(150, 73, 53, .2);
    --book-tag-vip-gradient: linear-gradient(135deg, #c29848 0%, #9c7228 100%);
    --book-tag-vip-shadow: 0 1px 2px rgba(31, 30, 27, .14);
    --book-tag-free-gradient: linear-gradient(135deg, #3c8c78 0%, #2d7261 100%);
    --book-tag-free-shadow: 0 1px 3px rgba(45, 114, 97, .2);
    --accent-bar: #b3863d;
    --accent-2: #9a6d29;
    --accent-pressed: #7d561d;
    --accent-tint: #fbf8f1;
    --warm-surface: #fbf8f1;
    --warm-surface-end: #f5efe2;
    --warm-border: #dfd0b5;
    --warm-border-soft: #eae0ce;
    --warm-ink: #8c6020;
    --warm-tint: rgba(154, 109, 41, .09);
    --warm-tint-hover: rgba(154, 109, 41, .15);
    --cta-solid-bg: #24211c;
    --cta-solid-bg-hover: #38332b;
    --cta-solid-fg: #faf7f0;
    --site-btn-accent-bg: #f5ecdc;
    --site-btn-accent-border: #dfd0b5;
    --site-btn-accent-bg-hover: #ede0c8;
    --site-btn-accent-border-hover: #c9b28a;
    --site-btn-accent-shadow: none;
    --site-btn-accent-shadow-hover: none;
    --cta-login-bg: var(--cta-solid-bg);
    --cta-login-fg: var(--cta-solid-fg);
    --color-danger: #9e4a38;
    --color-danger-hover: #833c2d;
    --site-toast-ok: #2e7d57;
    --site-max-w: 1200px;
    --header-h: 64px;
    --header-menu-item-h: 48px;
    --header-menu-gap: 2px;
    --header-menu-bridge: calc((var(--header-h) - var(--header-menu-item-h)) / 2 + var(--header-menu-gap));
    --header-menu-dialog-top: calc(var(--header-h) + var(--header-menu-gap));
    /* 顶栏 gutter≥16px，配 inset-edges */
    --site-gutter: clamp(16px, 3vw, 20px);
    --site-module-gap: 16px;
    --site-row-hover-bg: var(--line-faint);
    /* 3 阶细边框与语义别名变量 */
    --line-subtle: #eee9e0;
    --line-default: #e4ded3;
    --line-strong: #cfc7b8;
    --line-soft: var(--line-subtle);
    --line-faint: #f3efe8;
    --line-panel: var(--line-default);
    --line-mid: var(--line-strong);
    --line-dashed: var(--line-strong);
    --border-color: var(--line-default); /* 输入/虚线/章节框等；阅读页 read.css 复用同键名 */
    /* 宣纸表层与墨色文字（WCAG AA >= 4.5:1） */
    --bg-page: #f7f4ee;
    --bg-canvas: var(--bg-page);
    --bg-surface: #ffffff;
    --bg-surface-fade: rgba(255, 255, 255, 0);
    --bg-zebra: #fbf9f5;
    --bg-subtle: #f2eee6;
    --bg-form: #f6f3ec;
    --bg-input: var(--bg-surface);
    --input-focus-border: #b3863d;
    --input-focus-ring: 0 0 0 3px rgba(179, 134, 61, 0.14);
    --search-suggest-shadow: 0 10px 22px -6px rgba(31, 30, 27, 0.14);
    --suggest-scroll-thumb: rgba(160, 148, 128, 0.36);
    --suggest-scroll-thumb-hover: rgba(140, 126, 104, 0.56);
    --bg-section: #f0ece3;
    --bg-table-head: #f7f4ee;
    --color-text: #1f1e1b;
    --color-text-strong: #171613;
    --text-secondary: #5c5850;
    --text-muted: #767168;
    /* 浅色暖宣磨砂顶栏 */
    --header-bg: rgba(253, 251, 247, 0.92);
    --header-drawer-bg: #fdfbf7;
    --header-fg: #1f1e1b;
    --header-fg-muted: #5c5850;
    --header-border: rgba(31, 30, 27, 0.08);
    --header-hover-bg: rgba(31, 30, 27, 0.05);
    /* 克制微圆角体系（外框统一 6px，内框/封面/控件 4px，微角标 3px） */
    --radius-xs: 3px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 6px;
    --radius-pill: 999px;
    /* 桌面表单/筛选行标准控件高（与 .site-btn / .site-input 对齐） */
    --site-ctrl-h: 38px;
    --color-emphasis: #9a6d29;
    --color-emphasis-hover: #7d561d;
    --link-hover-fg: #8c6020;
    --user-section-heading-size: 18px;
    /* --home-head-* 仅 :root + 下文模组首行 `:is` */
    --home-head-min-h: 48px;
    --home-head-pad-x: 15px;
    --member-pill-bg: var(--warm-tint);
    --member-pill-fg: var(--warm-ink);
    --member-pill-muted-bg: #efeae0;
    --member-pill-ok-bg: #edf6f1;
    --member-pill-ok-fg: #267544;
    --member-delta-up: #2d7d5e;
    --member-delta-down: var(--color-danger);
    --status-serializing-bg: #eef4fa;
    --status-serializing-fg: #2c669e;
    --status-done-bg: var(--member-pill-muted-bg);
    --status-done-fg: #5c5850;
    --status-pending-bg: var(--warm-surface-end);
    --status-pending-fg: var(--warm-ink);
    --status-scheduled-bg: #eef4fa;
    --status-scheduled-fg: #2c669e;
    --status-approved-bg: var(--member-pill-ok-bg);
    --status-approved-fg: var(--member-pill-ok-fg);
    --status-rejected-bg: #f9efec;
    --status-rejected-fg: var(--color-danger);
    --color-breadcrumb-link: #6e6960;
    --color-breadcrumb-sep: #b8b2a6;
    --se-ill-shadow: rgba(31, 30, 27, .05);
    --se-ill-inner: #ebe6dc;
    --se-ill-left: #f5f1e9;
    --se-ill-right: #e6e0d4;
    --se-ill-flap: #faf7f0;
    --se-ill-stroke: #cfc7b8;
    --se-ill-star: #c29848;
}
}

@layer base {
/* 前台图标字体（Remix Icon 子集，Apache-2.0） */
@font-face{font-family:site-icon;src:url(../fonts/site-icon.woff2?v=4913) format('woff2');font-display:swap}.site-icon{font-family:site-icon;font-size:16px;font-style:normal;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.site-icon-moon:before{content:'\ef6f'}.site-icon-error:before{content:'\eca1'}.site-icon-lock:before{content:'\eece'}.site-icon-eye:before{content:'\ecb5'}.site-icon-eye-invisible:before{content:'\ecb7'}.site-icon-tips-fill:before{content:'\ee58'}.site-icon-light:before{content:'\f1bf'}.site-icon-time:before{content:'\ee17'}.site-icon-rate-half:before{content:'\f187'}.site-icon-rate-solid:before{content:'\f186'}.site-icon-rate:before{content:'\f18b'}.site-icon-cellphone:before{content:'\f15a'}.site-icon-username:before{content:'\f256'}.site-icon-auz:before{content:'\f100'}.site-icon-tips:before{content:'\ee59'}.site-icon-refresh:before{content:'\f064'}.site-icon-flag:before{content:'\eae5'}.site-icon-notice:before{content:'\ef94'}.site-icon-set:before{content:'\f0e6'}.site-icon-template:before{content:'\ee90'}.site-icon-home:before{content:'\ee1d'}.site-icon-rmb:before{content:'\f2ac'}.site-icon-cart-simple:before{content:'\ead9'}.site-icon-survey:before{content:'\ecc1'}.site-icon-read:before{content:'\eadb'}.site-icon-dollar:before{content:'\ebb2'}.site-icon-diamond:before{content:'\f28c'}.site-icon-return:before{content:'\ea60'}.site-icon-fire:before{content:'\ed33'}.site-icon-star-fill:before{content:'\f186'}.site-icon-next:before{content:'\eadd'}.site-icon-user:before{content:'\f256'}.site-icon-add-1:before{content:'\ea13'}.site-icon-pause:before{content:'\efd7'}.site-icon-play:before{content:'\f00a'}.site-icon-picture:before{content:'\ee4b'}.site-icon-circle:before{content:'\eb7d'}.site-icon-edit:before{content:'\ec86'}.site-icon-delete:before{content:'\ec2a'}.site-icon-carousel:before{content:'\ee45'}.site-icon-date:before{content:'\eb23'}.site-icon-triangle-r:before{content:'\ea6e'}.site-icon-set-sm:before{content:'\f0e6'}.site-icon-about:before{content:'\f045'}.site-icon-down:before{content:'\ea4e'}.site-icon-up:before{content:'\ea78'}.site-icon-search:before{content:'\f0d1'}.site-icon-list:before{content:'\eeba'}.site-icon-release:before{content:'\f0da'}.site-icon-ok:before{content:'\eb7b'}.site-icon-top:before{content:'\ea76'}.site-icon-right:before{content:'\ea6e'}.site-icon-left:before{content:'\ea64'}.site-icon-star:before{content:'\f18b'}.site-icon-download-circle:before{content:'\ec54'}.site-icon-close:before{content:'\eb99'}.site-icon-close-fill:before{content:'\eb96'}.site-icon-ok-circle:before{content:'\eb80'}.site-icon-bookshelf:before{content:'\f523'}.site-icon-bookshelf-fill:before{content:'\f522'}.site-icon-catalog:before{content:'\eebe'}.site-icon-listen:before{content:'\ee05'}.site-icon-ticket:before{content:'\f20b'}.site-icon-gift:before{content:'\edbb'}.site-icon-comment:before{content:'\eb51'}.site-icon-comment-add:before{content:'\eb63'}.site-icon-more:before{content:'\ef77'}.site-icon-unlock:before{content:'\eed2'}.site-icon-coupon:before{content:'\ebe8'}.site-icon-link:before{content:'\eeb8'}.site-icon-bill:before{content:'\ecef'}.site-icon-share:before{content:'\f25e'}.site-icon-quill:before{content:'\f04a'}.site-icon-award:before{content:'\ea8a'}.site-icon-sort-desc:before{content:'\f160'}.site-icon-sort-asc:before{content:'\f15f'}.site-icon-bag:before{content:'\f116'}
.site-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    background: var(--bg-canvas);
    color: var(--color-text);
}
html.site-overlay-open,
html.read-mobile-panel-open {
    overflow-x: hidden;
    /* 弹窗锁定滚动时保留滚动条轨道，避免正文因可用宽度变化而左右移动 */
    overflow-y: scroll;
}
html.site-overlay-open body,
html.read-mobile-panel-open body {
    overflow: hidden;
    /* 只保留 html 的轨道，避免 body 再次预留造成双重宽度差 */
    scrollbar-gutter: auto;
}
/* 全站列表去默认圆点（勿清零 margin/padding，否则会盖过 .channel、.book-list 等组件间距） */
.site-shell ul,
.site-shell ol {
    list-style: none;
}
.site-shell p {
    margin: 0;
}
.site-shell figure {
    margin: 0;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.site-shell a {
    color: var(--color-text);
    text-decoration: none;
}
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link:focus-visible {
    position: fixed;
    left: var(--site-gutter);
    top: calc(var(--header-h) + 8px);
    z-index: 10000;
    width: auto;
    height: auto;
    margin: 0;
    padding: 8px 14px;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    background: var(--bg-surface);
    color: var(--color-text-strong);
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    text-decoration: none;
    font-size: 14px;
}
/* 无顶栏页 skip-link 聚焦贴边（阅读/协议/关站） */
body.theme-default .skip-link:focus-visible,
body.legal-popup-body .skip-link:focus-visible,
body:has(main.page-closed) .skip-link:focus-visible {
    top: var(--site-gutter);
    left: var(--site-gutter);
}
/* 主键盘导航聚焦环 */
.header .channel-links a:focus-visible,
.header .logo:focus-visible,
.footer-links a:focus-visible,
.return-top button:focus-visible,
.search .search-btn:focus-visible {
    outline: 2px solid var(--accent-bar);
    outline-offset: 2px;
}
.text-center { text-align: center; }
}

@layer layout {
main#main-content {
    flex: 1 0 auto;
    scroll-margin-top: calc(var(--header-h) + 12px);
}
body.theme-default main.reader-container {
    scroll-margin-top: var(--site-gutter);
}

main.page-closed {
    scroll-margin-top: var(--site-gutter);
    width: 545px;
    margin: 0 auto;
    margin-top: 10%;
    background-color: #f4f5f6;
    padding: 2%;
    border-radius: var(--radius-lg);
    position: relative;
}
main.page-closed ul {
    padding-left: 20px;
}
main.page-closed ul li {
    line-height: 2.3;
}
main.page-closed img {
    width: 170px;
}
main.page-closed .box,
main.page-closed .pic {
    display: inline-block;
    text-align: center;
}
main.page-closed .pic {
    position: absolute;
    right: 30px;
    top: 60px;
}
main.page-closed--plain {
    text-align: center;
    padding: 3rem 2rem;
}
main.page-closed--plain .box {
    display: block;
}
main.page-closed--plain h1 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text-strong, #222);
}
main.page-closed--plain .closed-simple-msg {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.site-main {
    display: flex;
    flex-direction: column;
    gap: var(--site-module-gap);
    max-width: var(--site-max-w);
    width: 100%;
    margin: 0 auto;
    padding: calc(var(--header-h) + 1px + var(--site-module-gap)) var(--site-gutter) var(--site-module-gap);
    box-sizing: border-box;
}
main[class$="-detail"] > .site-main {
    display: block;
    padding-top: var(--site-module-gap);
}
.site-main > .site-container,
#browse-filter {
    display: flex;
    flex-direction: column;
    gap: var(--site-module-gap);
}
.site-main > .site-container #pagination,
#browse-filter #pagination {
    margin: 0;
}
}

@layer components {
/* 全站按钮/表单/表格/分页基组件（须在 max-width 断点之前，避免覆盖窄屏规则） */
.site-btn,
a.site-btn,
button.site-btn,
label.site-btn {
    display: inline-block;
    vertical-align: middle;
    height: var(--site-ctrl-h);
    line-height: calc(var(--site-ctrl-h) - 2px);
    border: 1px solid var(--cta-solid-bg);
    padding: 0 18px;
    background-color: var(--cta-solid-bg);
    background-image: none;
    color: var(--cta-solid-fg);
    white-space: nowrap;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    box-sizing: border-box;
    text-decoration: none;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.site-btn:hover {
    background-color: var(--cta-solid-bg-hover);
    border-color: var(--cta-solid-bg-hover);
    color: var(--cta-solid-fg);
    box-shadow: none;
}
button.site-btn:invalid {
    border-color: var(--cta-solid-bg);
    box-shadow: none;
}
.site-btn:focus-visible {
    outline: 2px solid rgba(179, 134, 61, .45);
    outline-offset: 2px;
}
.site-btn.site-btn-primary,
a.site-btn.site-btn-primary,
button.site-btn.site-btn-primary {
    background: var(--bg-surface);
    border-color: var(--line-default);
    color: var(--text-secondary);
    font-weight: 500;
}
.site-btn.site-btn-primary:hover,
a.site-btn.site-btn-primary:hover,
button.site-btn.site-btn-primary:hover {
    background: var(--warm-surface);
    border-color: var(--warm-border);
    color: var(--warm-ink);
    opacity: 1;
}
.site-btn.site-btn-danger,
a.site-btn.site-btn-danger,
button.site-btn.site-btn-danger,
.site-btn-danger {
    background-color: var(--color-danger);
    border-color: var(--color-danger);
    color: #fff;
    font-weight: 600;
    box-shadow: none;
}
.site-btn.site-btn-danger:hover,
a.site-btn.site-btn-danger:hover,
button.site-btn.site-btn-danger:hover,
.site-btn-danger:hover {
    background-color: var(--color-danger-hover);
    border-color: var(--color-danger-hover);
    color: #fff;
    box-shadow: none;
}
.site-btn-disabled,
.site-btn.site-btn-disabled {
    background: var(--bg-form);
    border-color: var(--line-default);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 1;
}
.site-btn.site-btn-sm,
a.site-btn.site-btn-sm,
button.site-btn.site-btn-sm {
    height: 30px;
    line-height: 28px;
    padding: 0 10px;
    font-size: 12px;
}
.site-btn.site-btn-xs,
a.site-btn.site-btn-xs,
button.site-btn.site-btn-xs {
    height: 22px;
    line-height: 20px;
    padding: 0 5px;
    font-size: 12px;
    font-weight: 400;
}
.site-btn-fluid { width: 100%; }

.site-input,
.site-textarea,
.site-form select,
.input-group-select select {
    outline: 0;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    border: 1px solid var(--line-default);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
body:not(.login-embed-body--dark) .site-input,
body:not(.login-embed-body--dark) .site-textarea,
body:not(.login-embed-body--dark) .site-form select,
body:not(.login-embed-body--dark) .input-group-select select {
    background-color: var(--bg-input);
    color: var(--color-text);
}
.site-input,
.site-textarea {
    display: block;
    width: 100%;
    padding-left: 10px;
    padding-right: 15px;
}
.site-input {
    height: var(--site-ctrl-h);
    line-height: var(--site-ctrl-h);
}
body:not(.login-embed-body--dark) .site-input:disabled,
body:not(.login-embed-body--dark) .site-input.disabled,
.site-input:disabled,
.site-input.disabled {
    background-color: var(--bg-form);
    color: var(--text-muted);
    border-color: var(--line-soft);
    cursor: not-allowed;
}
.site-textarea {
    min-height: 100px;
    padding-top: 8px;
    padding-bottom: 8px;
    line-height: 1.6;
    resize: vertical;
}
.site-form select,
.input-group-select select {
    display: block;
    width: 100%;
    height: var(--site-ctrl-h);
    line-height: var(--site-ctrl-h);
    padding-left: 10px;
    padding-right: 30px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 7'%3E%3Cpath fill='%23c2c2c2' d='M6 7 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 7px;
}
.site-form .site-select,
.input-group-select .site-select {
    display: flex;
    width: 100%;
}
.site-form select.site-select__native,
.input-group-select select.site-select__native {
    background-image: none;
}
.site-input:hover,
.site-textarea:hover,
.site-form select:hover,
.input-group-select select:hover {
    border-color: var(--line-mid);
}
.site-input:focus,
.site-textarea:focus,
.site-form select:focus,
.input-group-select select:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: var(--input-focus-ring);
}
/* 阅读页 embed 暗色：紧跟 .site-input 白底，避免 style.css 流式解析先绘白框 */
html.login-embed-html--dark,
html:has(.login-embed-body--dark) {
    background: #2c2c2c;
    color-scheme: dark;
}
.login-embed-body.login-embed-body--dark {
    --input-focus-border: #c89e52;
    --input-focus-ring: 0 0 0 3px rgba(200, 158, 82, 0.22);
    background: #2c2c2c;
    color: #e0e0e0;
    color-scheme: dark;
    min-height: 100%;
}
.login-embed-body--dark .site-input,
.login-embed-body--dark .site-textarea,
.login-embed-body--dark .input-group-select,
.login-embed-body--dark .input-group-select select,
.login-embed-body--dark .input-group-select .site-select__trigger {
    background-color: #353535;
    border-color: #555;
    color: #e0e0e0;
}
.login-embed-body--dark .site-input:focus,
.login-embed-body--dark .site-textarea:focus,
.login-embed-body--dark .input-group-select select:focus,
.login-embed-body--dark .input-group-select .site-select__trigger:focus,
.login-embed-body--dark .input-group-select .site-select.is-open > .site-select__trigger {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: var(--input-focus-ring);
}
.login-embed-body--dark .site-input:-webkit-autofill,
.login-embed-body--dark .site-textarea:-webkit-autofill,
.login-embed-body--dark .input-group-select select:-webkit-autofill {
    -webkit-text-fill-color: #e0e0e0;
    caret-color: #e0e0e0;
    transition: background-color 99999s ease-out;
    -webkit-box-shadow: 0 0 0 1000px #353535 inset;
    box-shadow: 0 0 0 1000px #353535 inset;
}
html:has(.login-embed-body--read-blue),
html:has(.legal-popup-body--read-blue) {
    background: #F5F8FB;
}
html:has(.login-embed-body--read-yellow),
html:has(.legal-popup-body--read-yellow) {
    background: #F4F1E9;
}
html:has(.login-embed-body--read-green),
html:has(.legal-popup-body--read-green) {
    background: #F5FAF2;
}
html:has(.login-embed-body--read-red),
html:has(.legal-popup-body--read-red) {
    background: #FEF2F2;
}
.login-embed-body--read-default,
.legal-popup-body--read-default {
    background: #fff;
}
.login-embed-body--read-blue,
.legal-popup-body--read-blue {
    background: #F5F8FB;
    color: #131A1E;
}
.login-embed-body--read-yellow,
.legal-popup-body--read-yellow {
    background: #F4F1E9;
    color: #413B2A;
}
.login-embed-body--read-green,
.legal-popup-body--read-green {
    background: #F5FAF2;
    color: #394434;
}
.login-embed-body--read-red,
.legal-popup-body--read-red {
    background: #FEF2F2;
    color: #453030;
}

.site-form .site-form-item {
    position: relative;
    margin-bottom: 15px;
    clear: both;
}
.site-form-label {
    position: relative;
    float: left;
    display: block;
    padding: 9px 15px;
    width: 80px;
    font-weight: 400;
    line-height: 20px;
    text-align: right;
}
.site-input-block {
    margin-left: 110px;
    min-height: 36px;
}
.site-form-mid {
    position: relative;
    float: left;
    display: block;
    padding: 9px 0;
    line-height: 20px;
    margin-right: 10px;
}
.site-form-radio {
    display: inline-block;
    vertical-align: middle;
    line-height: 28px;
    margin: 6px 16px 0 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text);
}
.site-form-radio input[type=radio] {
    margin: 0 6px 0 0;
    vertical-align: -2px;
    cursor: pointer;
}

.site-table {
    width: 100%;
    margin: 10px 0;
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    border-collapse: collapse;
    border-spacing: 0;
}
.site-table th,
.site-table td {
    position: relative;
    padding: 11px 14px;
    line-height: 1.5;
    font-size: 14px;
    box-sizing: border-box;
    font-variant-numeric: tabular-nums;
}
.site-table thead th {
    text-align: center;
    font-weight: 600;
    background-color: var(--bg-table-head);
    color: var(--text-secondary);
}
.site-table tbody td {
    background-color: var(--bg-surface);
    transition: background-color .14s ease;
}
.site-table tbody tr:hover td:not(.list-empty) {
    background-color: var(--site-row-hover-bg);
}
.site-table--line {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    overflow: clip;
}
.site-table--line thead tr:first-child th:first-child {
    border-top-left-radius: calc(var(--radius-md) - 1px);
}
.site-table--line thead tr:first-child th:last-child {
    border-top-right-radius: calc(var(--radius-md) - 1px);
}
.site-table--line tbody tr:last-child td:first-child {
    border-bottom-left-radius: calc(var(--radius-md) - 1px);
}
.site-table--line tbody tr:last-child td:last-child {
    border-bottom-right-radius: calc(var(--radius-md) - 1px);
}
.site-table--line th,
.site-table--line td {
    border-width: 0 0 1px;
    border-style: solid;
    border-color: var(--line-soft);
}
.site-table--line thead th {
    border-bottom-color: var(--line-default);
}
.site-table--line tbody tr:last-child td {
    border-bottom-width: 0;
}
.account-main .user-info-form .site-input:-webkit-autofill,
.account-main .cancel-account-form .site-input:-webkit-autofill,
.account-main .user-info-form .site-textarea:-webkit-autofill {
    -webkit-text-fill-color: var(--color-text);
    caret-color: var(--color-text);
    transition: background-color 99999s ease-out;
    -webkit-box-shadow: 0 0 0 1000px var(--bg-input) inset;
    box-shadow: 0 0 0 1000px var(--bg-input) inset;
}

.site-word-aux { color: var(--text-muted); padding-left: 5px; padding-right: 5px; }
.site-alert {
    padding: 15px 15px 15px 35px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--line-default);
    color: var(--text-secondary);
}
.site-alert-normal {
    border-color: #d2e7f0;
    background: #f0f9ff;
}
.site-alert-danger {
    border-color: #ffccc7;
    background: #fff2f0;
}

#pagination {
    text-align: center;
    margin: 12px 0;
    font-size: 14px;
    --pager-h: 32px;
    --pager-bd: 1px solid var(--line-default);
    --pager-r: 4px;
}
#pagination:empty {
    display: none;
    margin: 0;
}
#pagination .site-pager,
#pagination .site-pager-pages,
#pagination .site-pager-skip {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
#pagination .site-pager-skip {
    gap: 4px;
}
#pagination .site-pager-prev,
#pagination .site-pager-next,
#pagination .site-pager-num,
#pagination .site-pager-curr,
#pagination .site-pager-go,
#pagination .site-pager-input {
    box-sizing: border-box;
    height: var(--pager-h);
    border-radius: var(--pager-r);
}
#pagination .site-pager-prev,
#pagination .site-pager-next,
#pagination .site-pager-num,
#pagination .site-pager-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--pager-h);
    padding: 0 12px;
    border: var(--pager-bd);
    background: var(--bg-surface);
    color: var(--color-text);
    text-decoration: none;
    cursor: pointer;
}
#pagination a.site-pager-prev:hover,
#pagination a.site-pager-next:hover,
#pagination a.site-pager-num:hover,
#pagination .site-pager-go:hover {
    border-color: var(--warm-border);
    color: var(--warm-ink);
}
#pagination .site-pager-prev.is-disabled,
#pagination .site-pager-next.is-disabled {
    color: var(--text-muted);
    background: var(--bg-table-head);
    cursor: default;
}
#pagination .site-pager-curr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--pager-h);
    padding: 0;
    color: #6e4910;
    background: var(--site-btn-accent-bg);
    border: 1px solid var(--site-btn-accent-border);
    font-weight: 600;
}
#pagination .site-pager-input {
    width: 44px;
    padding: 0 8px;
    border: var(--pager-bd);
    background: var(--bg-input);
    color: var(--color-text);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}
#pagination .site-pager-input:hover {
    border-color: var(--line-mid);
}
#pagination .site-pager-input:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: var(--input-focus-ring);
}
#pagination .site-pager-count {
    display: inline-flex;
    align-items: center;
    height: var(--pager-h);
    white-space: nowrap;
}
#pagination.pagination-scroll-active {
    margin: 8px 0 0;
    min-height: 0;
}
.browse-scroll-sentinel {
    width: 100%;
    flex: 1 1 100%;
    max-width: 100%;
    list-style: none;
    text-align: center;
    padding: 14px 12px 22px;
    color: #999;
    font-size: 13px;
    border-bottom: none;
    box-sizing: border-box;
}
.browse-scroll-sentinel.is-loading {
    color: var(--warm-ink);
}
.browse-scroll-sentinel.is-error {
    color: var(--color-emphasis);
    cursor: pointer;
    text-decoration: underline;
}
.site-main > .user-form-container {
    margin: 0 auto;
}
.site-main.top-box {
    overflow-x: clip;
}
.site-container {
    padding: 0;
    width: 100%;
}
.module-title h1::before,
.module-title h2::before,
.module-title h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--accent-bar);
    border-radius: var(--radius-sm);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    max-width: 100%;
    min-height: var(--header-h);
    z-index: 999;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--header-border);
    color: var(--header-fg);
    overflow-x: visible;
    box-sizing: border-box;
}
.header-inner {
    max-width: var(--site-max-w);
    width: 100%;
    margin: 0 auto;
    padding-top: 0;
    padding-bottom: 0;
    /* 右侧多留 2px：部分 Android/Firefox 上 env(safe-area-*) 为 0 时仍亚像素裁切圆角头像/角标 */
    padding-left: max(var(--site-gutter), env(safe-area-inset-left, 0px));
    padding-right: max(calc(var(--site-gutter) + 2px), env(safe-area-inset-right, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    min-height: var(--header-h);
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}
.header .logo {
    height: var(--header-h);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-right: 18px;
    line-height: 1;
    text-decoration: none;
    color: var(--header-fg);
}
.header .logo img, .header .logo svg {
    height: 32px;
    max-height: 36px;
    width: auto;
    display: block;
    flex-shrink: 0;
}
.header .logo img.site-logo-img {
    height: 40px;
    max-height: 40px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
}
.header .logo .site-brand-name {
    display: inline-flex;
    align-items: center;
    font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "PingFang SC", Georgia, serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    color: var(--header-fg);
    white-space: nowrap;
}
.header .logo:hover .site-brand-name {
    color: var(--warm-ink);
}
.header .channel-links {
    display: flex;
    align-items: center;
    height: var(--header-h);
    gap: 28px;
    flex: 0 0 auto;
    margin-left: 14px;
}
.header .channel-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: var(--header-h);
    line-height: 1.2;
    font-size: 15.5px;
    font-weight: 500;
    color: var(--header-fg-muted);
    text-decoration: none;
    transition: color .2s ease;
    white-space: nowrap;
}
.header .channel-links a:hover {
    color: var(--header-fg);
}
.header .channel-links a.is-active {
    color: var(--header-fg);
    font-weight: 700;
}
.header .channel-links a i {
    position: absolute;
    bottom: 11px;
    left: 50%;
    transform: translateX(-50%);
    height: 2.5px;
    width: 18px;
    border-radius: 999px;
    background: var(--accent-bar);
    opacity: 0;
    transition: opacity .25s ease;
}
.header .channel-links a.is-active i {
    opacity: 1;
}
.header .search {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1 1 220px;
    width: auto;
    max-width: 260px;
    min-width: 200px;
    margin: 0 12px 0 auto;
    gap: 0;
    box-sizing: border-box;
}
.search-field {
    position: relative;
    z-index: 10;
    min-width: 0;
    box-sizing: border-box;
}
.header .search > .search-field {
    flex: 1 1 auto;
    min-width: 0;
}
.header .search .search-collapse-btn {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    box-sizing: border-box;
}
.header .search .search-collapse-btn .site-icon {
    font-size: 18px;
}
@media (hover: hover) {
    .header .search .search-collapse-btn:hover {
        background: var(--bg-canvas);
        color: var(--color-emphasis);
    }
}

/* 英文导航词较长：避免频道链与搜索框叠层，中文/繁体仍用上方默认顶栏 */
html[lang="en"] .header-inner {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0 10px;
}
html[lang="en"] .header .logo {
    margin-right: 10px;
}
html[lang="en"] .header .channel-links {
    gap: 18px;
    flex: 0 0 auto;
    margin-left: 0;
    min-width: 0;
}
html[lang="en"] .header .search {
    flex: 1 1 180px;
    width: auto;
    max-width: 220px;
    min-width: 0;
    margin: 0 8px 0 auto;
    box-sizing: border-box;
}
.header .search .input {
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--site-ctrl-h);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--line-default);
    position: relative;
    z-index: 1;
    overflow: visible;
    box-sizing: border-box;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.header .search .input:focus-within {
    border-color: var(--input-focus-border);
    box-shadow: var(--input-focus-ring);
}
.header .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;
}
.header .search .input.open .search-scope,
.header .search .input.open .site-select--scope .site-select__trigger,
.header .search .input.open input {
    border-bottom-left-radius: 0;
}
.header .search .input.open .search-btn {
    border-bottom-right-radius: 0;
}
.header .search .search-scope,
.read-float-bar .search .search-scope {
    flex: 0 0 auto;
    align-self: stretch;
    width: auto;
    max-width: 5em;
    margin: 0;
    padding: 0 2px 0 8px;
    border: 0;
    border-right: 1px solid var(--line-default);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background-color: transparent;
    color: var(--color-text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: calc(var(--site-ctrl-h) - 2px);
    cursor: pointer;
    color-scheme: light;
}
.header .search .site-select--scope,
.read-float-bar .search .site-select--scope {
    flex: 0 0 auto;
    align-self: stretch;
    height: 100%;
}
.header .search .site-select--scope .site-select__trigger,
.read-float-bar .search .site-select--scope .site-select__trigger {
    width: auto;
    height: 100%;
    min-height: 0;
    padding: 0 8px 0 10px;
    gap: 4px;
    border: 0;
    border-right: 1px solid var(--line-default);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background-color: transparent;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    box-shadow: none;
}
.header .search .site-select--scope .site-select__trigger:hover:not(:disabled),
.read-float-bar .search .site-select--scope .site-select__trigger:hover:not(:disabled) {
    border-color: transparent;
    border-right-color: var(--line-default);
    color: var(--color-text-strong);
}
.header .search .site-select--scope .site-select__arrow,
.read-float-bar .search .site-select--scope .site-select__arrow {
    width: 9px;
    height: 6px;
}
.header .search .site-select--scope .site-select__menu,
.read-float-bar .search .site-select--scope .site-select__menu {
    left: -1px;
    top: calc(100% + 5px);
    min-width: 92px;
    box-shadow: var(--search-suggest-shadow);
}
.header .search .search-scope:focus,
.header .search .search-scope:focus-visible,
.read-float-bar .search .search-scope:focus,
.read-float-bar .search .search-scope:focus-visible,
.header .search .site-select--scope .site-select__trigger:focus,
.header .search .site-select--scope .site-select__trigger:focus-visible,
.header .search .site-select--scope.is-open > .site-select__trigger,
.read-float-bar .search .site-select--scope .site-select__trigger:focus,
.read-float-bar .search .site-select--scope .site-select__trigger:focus-visible,
.read-float-bar .search .site-select--scope.is-open > .site-select__trigger {
    outline: none;
    box-shadow: none;
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-right-color: var(--line-default);
}
.header .search .input input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    outline: none;
    height: 100%;
    padding: 0 0 0 10px;
    font-size: 14px;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: transparent;
    color: var(--color-text);
    box-sizing: border-box;
}
.header .search .input input:focus,
.header .search .input input:focus-visible {
    outline: none;
    box-shadow: none;
    border-color: transparent;
}
.header .search .input input::placeholder {
    color: var(--text-muted);
}
.header .search .input .search-btn {
    width: var(--site-ctrl-h);
    height: 100%;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.header .search .input .search-btn:focus,
.header .search .input .search-btn:focus-visible,
.header .search .input .search-btn:active {
    outline: none;
    background: none;
    box-shadow: none;
}
.header .search .input .search-btn i {
    font-size: 18px;
    color: var(--text-muted);
    transition: color .12s ease, transform .12s ease;
}
/* 整框聚焦期间图标保持强调色，避免触屏 hover 粘住/再点输入又变灰 */
.header .search .input:focus-within .search-btn i {
    color: var(--color-emphasis);
}
@media (hover: hover) {
    .header .search .input .search-btn:hover i {
        color: var(--color-emphasis);
    }
}
/* 按下：再加深 + 轻微下移，不用系统浅蓝底 */
.header .search .input .search-btn:active i {
    color: var(--accent-bar);
    transform: translateY(1px);
}

.search-suggest-list {
    display: none;
    position: absolute;
    top: 100%;
    /* 与 .input 共享无边框定位容器 .search-field，零负偏移避免高 DPI 物理像素错位 */
    left: 0;
    right: 0;
    width: auto;
    background: var(--bg-surface);
    background-clip: padding-box;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border: 1px solid var(--input-focus-border);
    border-top: none;
    box-shadow: var(--search-suggest-shadow);
    z-index: 99;
    max-height: 320px;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 0 0 4px;
    list-style: none;
    box-sizing: border-box;
}
.search-suggest-list::-webkit-scrollbar {
    width: 6px;
}
.search-suggest-list::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}
.search-suggest-list::-webkit-scrollbar-track {
    background: transparent;
    margin: 4px 0 6px;
}
.search-suggest-list::-webkit-scrollbar-thumb {
    background: var(--suggest-scroll-thumb, rgba(160, 148, 128, 0.36));
    border-radius: 999px;
}
.search-suggest-list::-webkit-scrollbar-thumb:hover {
    background: var(--suggest-scroll-thumb-hover, rgba(140, 126, 104, 0.56));
}
.search-suggest-list::-webkit-scrollbar-corner {
    background: transparent;
}
@supports not selector(::-webkit-scrollbar) {
    .search-suggest-list {
        scrollbar-width: thin;
        scrollbar-color: var(--suggest-scroll-thumb, rgba(160, 148, 128, 0.36)) transparent;
    }
}
.search-suggest-list > li:first-child {
    border-top: 1px solid var(--line-subtle);
}
.search-suggest-list li {
    box-sizing: border-box;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--color-text);
    cursor: pointer;
    background: var(--bg-surface);
    transition: background .2s, color .2s;
    border-bottom: 1px solid var(--line-faint);
    word-break: normal;
    overflow-wrap: break-word;
}
.search-suggest-list li:last-child {
    border-bottom: none;
}
.search-suggest-list li.is-active {
    background: var(--bg-canvas);
}
@media (hover: hover) {
    .search-suggest-list li:hover {
        background: var(--bg-canvas);
    }
    .search-suggest-list li.suggest-item-error:hover {
        background: var(--bg-surface);
    }
}
.search-suggest-list li.suggest-item-error {
    cursor: default;
    color: var(--text-muted);
}
.search-suggest-list .search-suggest-hl {
    color: var(--warm-ink);
    font-weight: 700;
}
.search-suggest-list.is-open {
    display: block;
}
/* 桌面：`display:contents` 使搜索与用户区参与 header-inner 的 flex；窄屏见 768 */
.header-tools {
    display: contents;
}
.user-menu .item.js-theme .js-theme-icon-light {
    display: none;
}
.user-menu .item.js-theme .js-theme-label-day {
    display: none;
}
.user-menu {
    display: flex;
    align-items: center;
    height: var(--header-h);
    gap: 8px;
    position: relative;
    flex-shrink: 0;
}
.user-menu .item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: var(--header-menu-item-h);
    height: var(--header-menu-item-h);
    padding: 4px 6px;
    font-size: 12px;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background .2s ease;
    box-sizing: border-box;
}
.user-menu .item:hover {
    background: var(--header-hover-bg);
}
.user-menu .item a,
.user-menu .item button {
    color: var(--header-fg-muted);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    line-height: 1.2;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    transition: color .2s ease;
}
.user-menu .item:hover a,
.user-menu .item:hover button {
    color: var(--header-fg);
}
.user-menu .item.js-user {
    min-width: var(--header-menu-item-h);
}
.user-menu .item.js-user a.pic {
    width: 36px;
    height: 36px;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--line-default);
    border-radius: 50%;
    position: relative;
    box-sizing: border-box;
}
.user-menu .item.js-user img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.user-menu .item.js-user .header-avatar-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--color-danger);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    font-style: normal;
    box-sizing: border-box;
}
.user-menu .item i {
    font-size: 20px;
    line-height: 1;
    margin-bottom: 0;
}
.pay-qrcode {
    padding: 15px;
    text-align: center;
}
.pay-qrcode .qrcode {
    box-sizing: border-box;
    width: min(200px, 100%);
    max-width: 200px;
    aspect-ratio: 1;
    height: auto;
    margin: 0 auto;
}
.pay-qrcode .qrcode img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: var(--radius-md);
}
.pay-qrcode .rmb {
    padding-top: 10px;
    font-weight: 600;
    font-size: 16px;
    color: var(--color-text-strong);
}
.pay-qrcode .txt {
    padding-top: 15px;
    color: var(--color-text);
    font-size: 16px;
}

.user-menu .item .dialog {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: var(--header-menu-bridge);
    z-index: 999;
}
.user-menu .item .dialog::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: calc(-1 * var(--header-menu-bridge));
    height: var(--header-menu-bridge);
}
.user-menu .dialog .dropdown-panel-head:has(.login-notice.hide) {
    display: none;
}
.user-menu .item .dialog a,
.user-menu .item:hover .dialog a {
    color: var(--color-text);
}

.user-menu .dialog .dropdown-panel {
    position: relative;
    width: 320px;
    background: var(--bg-surface);
    text-align: left;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    border-radius: var(--radius-md);
    border: 1px solid var(--line-soft);
    overflow: hidden;
    animation: dropdown-in .2s ease;
}
@keyframes dropdown-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
.user-menu .dialog .dropdown-panel--narrow {
    width: 300px;
    min-height: 140px;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-menu .js-uinfo .dropdown-panel {
    padding: 18px 20px;
    min-width: 300px;
}
.user-menu .js-uinfo .dropdown-panel .user-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.user-menu .js-uinfo .dropdown-panel .user-info > a:first-of-type {
    flex-shrink: 0;
    display: block;
}
.user-menu .js-uinfo .dropdown-panel .js-upic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
}
.user-menu .js-uinfo .dropdown-panel .user-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}
.user-menu .js-uinfo .dropdown-panel .user-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 14px;
    line-height: 22px;
    color: var(--color-text);
}
.user-menu .js-uinfo .dropdown-panel .user-name .js-unichen {
    /* 盖过 `.user-menu .item a` 的 flex，否则 ellipsis 不生效 */
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    min-width: 0;
}
.user-menu .js-uinfo .dropdown-panel .user-name .coin {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 13px;
    color: var(--text-secondary);
}
.user-menu .js-uinfo .dropdown-panel .user-name .coin b {
    font-weight: bold;
    padding: 0 1px;
}
.user-menu .js-uinfo .dropdown-panel .user-name .js-uvip {
    flex-shrink: 0;
    background: var(--vip-gradient);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    font-style: normal;
    line-height: 14px;
    padding: 1px 5px;
    border-radius: var(--radius-md);
    text-transform: uppercase;
}
.user-menu .js-uinfo .dropdown-panel .vip-expired {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 6px;
    font-size: 12px;
    color: var(--text-muted);
}
.user-menu .js-uinfo .dropdown-panel .vip-expired .hl {
    color: var(--color-emphasis);
    text-decoration: none;
    font-size: 12px;
}
.user-menu .js-uinfo .dropdown-panel .vip-expired .hl:hover {
    color: var(--color-emphasis-hover);
}

.user-menu .js-uinfo .dropdown-panel .user-info .login-btn,
.user-menu .js-uinfo .dropdown-panel .user-info .logout {
    flex-shrink: 0;
    margin-left: auto;
}
.user-menu .js-uinfo .dropdown-panel .user-info .login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 34px;
    font-size: 13px;
    color: var(--cta-login-fg);
    text-align: center;
    background: var(--cta-login-bg);
    border-radius: var(--radius-md);
    transition: background-color .3s ease, opacity .3s ease;
    text-decoration: none;
}
.user-menu .js-uinfo .dropdown-panel .user-info .login-btn:hover {
    color: var(--cta-login-fg);
}

.user-menu .js-uinfo .dropdown-panel .user-info .logout {
    padding: 0;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    border: none;
    background: none;
}
.user-menu .js-uinfo .dropdown-panel .user-info .logout:hover {
    color: var(--color-emphasis);
}
.user-menu .js-shelf-box .dropdown-panel .shelf-item-box {
    padding: 12px 16px;
    max-height: 300px;
    overflow-y: auto;
}
.user-menu .js-shelf-box .dropdown-panel .nologin {
    padding: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 22px;
}
.user-menu .js-shelf-box .dropdown-panel .nologin p {
    margin-bottom: 8px;
}
.user-menu .js-shelf-box .dropdown-panel .login-btn,
.user-menu .dialog .dropdown-panel-head .login-btn {
    display: block;
    margin: 10px auto 0;
    width: 100px;
    height: 34px;
    line-height: 34px;
    font-size: 13px;
    color: var(--cta-login-fg);
    text-align: center;
    background: var(--cta-login-bg);
    border-radius: var(--radius-md);
    transition: background-color .3s ease, opacity .3s ease;
}
.user-menu .dialog .dropdown-empty {
    padding: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 22px;
}
.user-menu .dialog .dropdown-empty p {
    margin-bottom: 8px;
}
.user-menu .dialog .dropdown-panel-head .login-notice {
    width: 100%;
    min-height: var(--site-ctrl-h);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: var(--site-ctrl-h);
    padding: 0 16px;
    background: var(--bg-form);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}
.user-menu .dialog .dropdown-panel-head .login-notice .login {
    color: #28292D;
    transition: color .3s ease;
    flex-shrink: 0;
}
.user-menu .dialog .dropdown-panel-head .login-notice .login:hover {
    color: var(--color-emphasis);
}
.user-menu .dialog .dropdown-panel-head .guest-notice {
    width: 100%;
    min-height: 36px;
    padding: 6px 14px;
    background: var(--bg-form);
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
}
.user-menu .dialog .dropdown-panel-head .guest-notice-tip {
    flex: 1;
    min-width: 0;
}
.user-menu .dialog .dropdown-panel .guest-clear-btn {
    flex-shrink: 0;
    padding: 2px 8px;
    border: 1px solid var(--line-default);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.user-menu .dialog .dropdown-panel .guest-clear-btn:hover {
    color: var(--color-danger);
    border-color: var(--color-danger);
    background: var(--bg-subtle);
}
.user-menu .dialog .read-item-box {
    padding: 10px 16px;
    max-height: 300px;
    overflow-y: auto;
}
.user-menu .dialog .dropdown-panel .read-item-box.dropdown-book-kinds,
.user-menu .dialog .dropdown-panel .shelf-item-box.shelf-dropdown-book-kinds {
    padding: 0 0 10px;
    max-height: none;
    overflow: visible;
}
.user-menu .dialog .dropdown-panel .dropdown-book-kinds .dropdown-shelf-tabs,
.user-menu .dialog .dropdown-panel .shelf-dropdown-book-kinds .dropdown-shelf-tabs {
    display: flex;
    margin: 0 16px 8px;
    padding: 0;
    border-bottom: 1px solid var(--line-soft);
    gap: 0;
}
/* 须含 `.dropdown-panel`，否则 `.user-menu .item:hover button`（顶栏浅色字）会盖过未选中 Tab，在白底上不可见 */
.user-menu .dialog .dropdown-panel .dropdown-shelf-tab {
    flex: 1;
    margin: 0;
    padding: 8px 10px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    margin-bottom: -1px;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.user-menu .dialog .dropdown-panel .dropdown-shelf-tab:hover {
    color: var(--color-text);
}
.user-menu .dialog .dropdown-panel .dropdown-shelf-tab.is-active {
    color: var(--color-text);
    font-weight: 600;
    border-bottom-color: var(--warm-ink);
}
.user-menu .dialog .dropdown-panel .dropdown-book-kinds .dropdown-shelf-panels-wrap,
.user-menu .dialog .dropdown-panel .shelf-dropdown-book-kinds .dropdown-shelf-panels-wrap {
    max-height: 260px;
    overflow-y: auto;
    padding: 0 16px;
}
.user-menu .dialog .dropdown-shelf-panel.is-hidden {
    display: none;
}
.user-menu .dialog .dropdown-empty a.link {
    font-size: 14px;
    color: var(--color-emphasis);
    line-height: 22px;
    transition: color .2s ease;
}
.user-menu .dialog .dropdown-empty a.link:hover {
    color: var(--color-emphasis-hover);
}
.user-menu .dialog .li-item {
    position: relative;
    margin-bottom: 8px;
    padding: 10px 36px 10px 10px;
    border-radius: var(--radius-md);
    transition: background-color .15s ease;
    display: grid;
    grid-template: "pic name" auto "pic readat" auto "pic update" auto / 60px 1fr;
    gap: 2px 12px;
    align-items: center;
}
.user-menu .dialog .li-item > a:first-of-type {
    display: contents;
}
.user-menu .dialog .li-item:hover {
    background: var(--bg-form);
}
.user-menu .dialog .li-pic {
    grid-area: pic;
    width: 60px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 0;
}
.user-menu .dialog .dropdown-panel .li-name {
    grid-area: name;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--color-text);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 0;
}
.user-menu .dialog .dropdown-panel .li-name a {
    display: inline;
    color: var(--color-text);
}
.user-menu .dialog .dropdown-panel .li-item:hover .li-name,
.user-menu .dialog .dropdown-panel .li-item:hover .li-name a {
    color: var(--color-emphasis);
}
.user-menu .dialog .li-readat {
    grid-area: readat;
}
.user-menu .dialog .li-update {
    grid-area: update;
}
.user-menu .dialog .li-readat, .user-menu .dialog .li-update {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 18px;
}
.user-menu .dialog .dropdown-panel .li-read {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    font-size: 12px;
    color: var(--color-text);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.2;
}
.user-menu .dialog .li-read i {
    font-size: 22px;
    line-height: 1;
    color: var(--text-muted);
}
.user-menu .dialog .li-item.li-item--guest {
    padding: 8px 8px 8px 10px;
    grid-template: "pic name rm" auto "pic readat rm" auto "pic act rm" auto / 50px minmax(0, 1fr) 26px;
    gap: 2px 10px;
    align-items: center;
}
.user-menu .dialog .li-item.li-item--guest .li-pic {
    width: 50px;
    height: 68px;
    object-fit: cover;
    display: block;
}
.user-menu .dialog .li-item.li-item--guest .li-pic--empty {
    background: var(--bg-subtle);
    border: 1px solid var(--line-soft);
    box-sizing: border-box;
}
.user-menu .dialog .dropdown-panel .li-item.li-item--guest .li-readat a {
    color: var(--text-muted);
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.user-menu .dialog .dropdown-panel .li-item.li-item--guest .li-readat a:hover {
    color: var(--color-emphasis);
}
.user-menu .dialog .dropdown-panel .li-guest-go {
    grid-area: act;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    width: fit-content;
    font-size: 12px;
    line-height: 18px;
    color: var(--color-emphasis);
}
.user-menu .dialog .dropdown-panel .li-guest-go:hover {
    color: var(--color-emphasis-hover);
}
.user-menu .dialog .dropdown-panel .li-guest-go i {
    font-size: 14px;
    line-height: 1;
}
.user-menu .dialog .dropdown-panel .li-guest-remove {
    grid-area: rm;
    align-self: start;
    justify-self: end;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
}
.user-menu .dialog .dropdown-panel .li-guest-remove:hover {
    color: var(--color-danger);
    background: var(--bg-subtle);
}
.user-menu .item .dialog a.check-all {
    display: block;
    width: 100%;
    height: var(--site-ctrl-h);
    line-height: var(--site-ctrl-h);
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-form);
    transition: background-color .15s ease;
}
.user-menu .item .dialog a.check-all:hover {
    background: var(--bg-section);
    color: var(--color-text);
}
.user-menu .dialog .dropdown-panel--narrow .qrcode {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.user-menu .dialog .dropdown-panel--narrow .qrcode img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}
.user-menu .dialog .dropdown-panel--narrow .text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    text-align: center;
}
.user-menu .dialog .dropdown-panel--narrow .text .title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-menu .dialog .dropdown-panel--narrow .text .tip {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}
.user-menu .item:hover .dialog a.login-btn {
    color: var(--cta-login-fg);
}

.header .mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    border-radius: var(--radius-md);
    transition: background .3s ease;
}
.header .mobile-menu-btn:hover {
    background: var(--header-hover-bg);
}
.header .mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--header-fg);
    margin: 2px 0;
    transition: transform .3s ease, opacity .3s ease;
    border-radius: 1px;
}
.header .mobile-menu-btn.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.header .mobile-menu-btn.is-active span:nth-child(2) {
    opacity: 0;
}
.header .mobile-menu-btn.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.section-box {
    background-color: var(--bg-surface);
    margin: 0;
    overflow: clip;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    box-sizing: border-box;
}
.book-home {
    --book-home-column-gap: 8px;
    --book-home-tab-active-text: var(--color-text);
    --book-home-panel-border: 1px solid var(--line-default);
    --book-home-panel-radius: var(--radius-lg);
}
.site-main > .section-box.web-sec-banner-rank,
.site-main.book-home > .book-nav {
    background-color: transparent;
}
.book-home .section-box:is(.web-sec-featured, .web-sec-tags, .web-sec-recent, .web-sec-authors) {
    border: var(--book-home-panel-border);
    border-radius: var(--book-home-panel-radius);
    padding: 0 16px;
}
.book-nav {
    width: 100%;
    box-sizing: border-box;
}
.book-home .home-head {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--book-home-column-gap);
    row-gap: 10px;
    align-items: center;
    box-sizing: border-box;
    background: var(--bg-surface);
}
.book-home .section-box > .home-head {
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    border: none;
    border-bottom: var(--book-home-panel-border);
    border-radius: calc(var(--book-home-panel-radius) - 1px) calc(var(--book-home-panel-radius) - 1px) 0 0;
}

.book-home .web-sec-tags.tags--dual .home-head > .top-section-tabs {
    grid-column: 1 / -1;
    justify-self: stretch;
}

.book-home :is(.home-head, .section-box .home-head--tabs) > .top-section-tabs {
    grid-column: 1 / 2;
    justify-self: stretch;
    min-width: 0;
}
.book-home .home-head > .module-title-more {
    grid-column: 2 / -1;
    justify-self: end;
}
.book-home .home-head.home-head--solo > .module-title.home-head-title {
    grid-column: 1 / 2;
    justify-self: start;
    align-self: center;
    border-bottom: none;
    padding: 0;
    margin: 0;
    width: auto;
    max-width: 100%;
    min-width: 0;
    background: transparent;
    box-sizing: border-box;
}
.book-home .home-head.home-head--solo > .module-title.home-head-title > h2,
.book-home .home-head.home-head--solo > .module-title.home-head-title > h3 {
    color: var(--color-text);
}
.book-home :is(.home-head, .section-box .home-head--tabs) .top-section-tabs,
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs {
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    min-width: 0;
}
.book-home :is(.home-head, .section-box .home-head--tabs) .top-section-tabs {
    flex-wrap: wrap;
    gap: var(--book-home-column-gap);
}
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs {
    flex-wrap: nowrap;
    gap: 4px;
    flex: 1 1 auto;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs::-webkit-scrollbar {
    display: none;
}
/* Tab 基座：须同时覆盖 `.home-head` 与轮播侧栏 `.section-box .home-head--tabs`（后者无 `.home-head` 包裹） */
.book-home :is(.home-head, .section-box .home-head--tabs) .top-section-tabs > .top-section-tab,
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs > :is(.top-section-tab, a.top-section-tab, button.top-section-tab, span.top-section-tab) {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    font-size: var(--user-section-heading-size);
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    box-shadow: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: color 0.15s ease, border-bottom-color 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
}
.book-home .home-head .top-section-tab {
    padding: 2px 16px 3px;
    line-height: 1.25;
}
.book-home .section-box .home-head--tabs .top-section-tabs > .top-section-tab {
    padding: 3px 1px 4px;
    line-height: 1.35;
}
/* 用户/作家中心 Tab：左对齐自然宽，避免 2~3 项强行撑满；同书库筛选淡雅暖金下划线 */
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs > :is(.top-section-tab, a.top-section-tab, button.top-section-tab, span.top-section-tab) {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--home-head-min-h);
    padding: 0 14px;
    margin-bottom: -1px;
    font-size: 15px;
    line-height: 1.35;
}
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs > a.top-section-tab {
    text-decoration: none;
    color: var(--text-secondary);
}
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs > span.top-section-tab {
    cursor: default;
}
.book-home :is(.home-head, .section-box .home-head--tabs) .top-section-tabs > .top-section-tab:hover,
.book-home :is(.home-head, .section-box .home-head--tabs) .top-section-tabs > .top-section-tab:focus-visible {
    color: var(--color-text);
    background: transparent;
}
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs > .top-section-tab:hover,
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs > a.top-section-tab:hover,
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs > button.top-section-tab:hover,
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs > a.top-section-tab:focus-visible,
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs > button.top-section-tab:focus-visible {
    color: var(--warm-ink);
    background: transparent;
}
.book-home :is(.home-head, .section-box .home-head--tabs) .top-section-tabs > .top-section-tab.is-active,
.book-home :is(.home-head, .section-box .home-head--tabs) .top-section-tabs > .top-section-tab[aria-selected="true"] {
    background: transparent;
    font-weight: 700;
    border-bottom-color: var(--warm-ink);
    position: relative;
    z-index: 1;
    color: var(--book-home-tab-active-text);
}
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs > .top-section-tab.is-active,
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs > [role="tab"][aria-selected="true"],
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs > a.top-section-tab.is-active,
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs > a.top-section-tab[aria-current="page"],
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs > span.top-section-tab.is-active {
    background: transparent;
    color: var(--warm-ink);
    font-weight: 600;
    border-bottom-color: var(--warm-ink);
    position: relative;
    z-index: 1;
}

/* 与 `initHomeTopTabs` 一致：`[hidden]` 不可被其它 display 盖掉，否则两面板会叠显 */

.book-home .book-nav--with-ranks .ranks-unified-head {
    border: var(--book-home-panel-border);
    border-bottom: 1px solid var(--line-soft);
    border-radius: var(--book-home-panel-radius) var(--book-home-panel-radius) 0 0;
    margin: 0;
    min-height: 48px;
    padding: 9px 16px;
}
.book-home .book-nav--with-ranks .ranks {
    border: var(--book-home-panel-border);
    border-top: none;
    border-radius: 0 0 var(--book-home-panel-radius) var(--book-home-panel-radius);
    background: var(--bg-surface);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* 首页多维榜单舞台：单一融合栏头（8 榜切换 + 品类分段）+ Top 1~3 领奖台 + Top 4~15 对称双列 */
.book-home .ranks-stage {
    background: var(--bg-surface);
    box-sizing: border-box;
}
.book-home .ranks-stage-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 14px;
    min-height: 48px;
    padding: 9px 16px;
    border-bottom: 1px solid var(--line-soft);
    background: var(--bg-surface);
    box-sizing: border-box;
}
.book-home .ranks-unified-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    min-width: 0;
    flex: 1 1 auto;
}
.book-home .ranks-unified-aside {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.book-home .ranks-stage-bar .ranks-stage-tabs {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    min-width: 0;
    background: transparent;
    border: none;
}
.book-home .ranks-stage-bar .ranks-stage-tab {
    flex: 0 0 auto;
    margin: 0;
    padding: 5px 11px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    box-sizing: border-box;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.book-home .ranks-stage-bar .ranks-stage-tab:focus-visible {
    outline: 2px solid var(--accent-bar);
    outline-offset: 1px;
    color: var(--color-text-strong);
}
@media (hover: hover) {
    .book-home .ranks-stage-bar .ranks-stage-tab:hover:not(.is-active) {
        color: var(--color-text-strong);
        background: var(--bg-subtle);
    }
}
.book-home .ranks-stage-bar .ranks-stage-tab.is-active,
.book-home .ranks-stage-bar .ranks-stage-tab[aria-selected="true"] {
    background: var(--warm-surface);
    border-color: var(--warm-border);
    color: var(--warm-ink);
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(72, 58, 0, .05);
}
.book-home .ranks-stage-bar > .module-title-more {
    flex-shrink: 0;
}
.book-home .ranks-stage-panel {
    padding: 14px 16px 16px;
    box-sizing: border-box;
}
.book-home .ranks-stage > .list-empty,
.book-home .ranks-stage-panel > .list-empty {
    margin: 0;
    padding: 36px 16px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}
.book-home .ranks-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    box-sizing: border-box;
}
.book-home .ranks-podium-card {
    display: flex;
    align-items: stretch;
    gap: 14px;
    min-width: 0;
    padding: 14px;
    background: var(--bg-surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
    overflow: clip;
}
@media (hover: hover) {
    .book-home .ranks-podium-card:hover {
        border-color: var(--warm-border);
        box-shadow: 0 4px 14px rgba(138, 98, 22, .08);
    }
    .book-home .ranks-podium-card:hover .ranks-podium-title a {
        color: var(--color-emphasis);
    }
    .book-home .ranks-podium-card:hover .ranks-podium-cov img {
        transform: scale(1.03);
    }
}
.book-home .ranks-podium-cov {
    position: relative;
    flex: 0 0 84px;
    width: 84px;
    height: 112px;
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-subtle);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
}
.book-home .ranks-podium-cov > a {
    display: block;
    width: 100%;
    height: 100%;
}
.book-home .ranks-podium-cov img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .22s ease;
}
.book-home .ranks-podium-cov .rank-num {
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-md) 0 var(--radius-md) 0;
    z-index: 2;
}
.book-home .ranks-podium-body {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.book-home .ranks-podium-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.book-home .ranks-podium-title a {
    color: inherit;
    text-decoration: none;
    transition: color .15s ease;
}
.book-home .ranks-podium-meta {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.3;
    color: var(--text-muted);
}
.book-home .ranks-podium-author {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
    text-decoration: none;
}
a.ranks-podium-author:hover,
a.ranks-podium-author:focus-visible {
    color: var(--color-emphasis);
}
.book-home .ranks-podium-cate {
    flex-shrink: 0;
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--line-soft);
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.35;
    white-space: nowrap;
}
.book-home .ranks-podium-desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.48;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.book-home .ranks-podium-foot {
    margin-top: auto;
    padding-top: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    font-size: 11.5px;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}
.book-home .ranks-podium-metric {
    color: var(--warm-ink);
    font-weight: 600;
    white-space: nowrap;
}
.book-home .ranks-podium-stat {
    color: var(--text-muted);
    white-space: nowrap;
}
.book-home .ranks-tail {
    margin-top: 14px;
    padding-top: 8px;
    border-top: 1px solid var(--line-soft);
}
.book-home .ranks-tail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.book-home .ranks-tail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 9px 10px;
    border-bottom: 1px solid var(--line-faint);
    border-radius: var(--radius-sm);
    box-sizing: border-box;
    transition: background-color .15s ease;
}
.book-home .ranks-tail-item:nth-last-child(1),
.book-home .ranks-tail-item:nth-last-child(2):nth-child(odd) {
    border-bottom-color: transparent;
}
.book-home .ranks-tail-item .rank-num {
    width: 22px;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    background: var(--bg-subtle);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}
.book-home .ranks-tail-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: color .15s ease;
}
.book-home .ranks-tail-author {
    flex: 0 1 auto;
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12.5px;
    color: var(--text-muted);
    text-decoration: none;
}
a.ranks-tail-author:hover,
a.ranks-tail-author:focus-visible {
    color: var(--color-emphasis);
}
.book-home .ranks-tail-cate {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    text-align: right;
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
}
@media (hover: hover) {
    .book-home .ranks-tail-item:hover {
        background: var(--bg-subtle);
    }
    .book-home .ranks-tail-item:hover .ranks-tail-name {
        color: var(--color-emphasis);
    }
    .book-home .ranks-tail-item:hover .ranks-tail-cate {
        background: var(--bg-surface);
    }
}
/* 同 `.web-sec-featured`：面板满行。勿对标题栏写 `width:100%`+`max-width:100%`，免盖住 `home-head` 通栏 */
.book-home .web-sec-recent.recent .recent-panel {
    width: 100%;
    flex: 0 0 100%;
    min-width: 0;
    box-sizing: border-box;
}

.book-home .tags-panel {
    width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
    overflow: visible;
}
.book-home .web-sec-tags .tags-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 18px 0;
    box-sizing: border-box;
}
.book-home .tags-grid .tags-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 5px 14px;
    box-sizing: border-box;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    color: var(--text-secondary);
    background: var(--warm-surface);
    border: 1px solid var(--line-default);
    border-radius: 999px;
    box-shadow: none;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.book-home .tags-grid .tags-cell:hover {
    background: var(--site-btn-accent-bg);
    border-color: var(--warm-border);
    box-shadow: none;
    transform: none;
    color: var(--warm-ink);
}
.book-home .tags-grid .tags-cell:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, .055),
        0 1px 4px rgba(0, 0, 0, .06);
}
.book-home .tags-grid .tags-cell:focus-visible:hover {
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, .055),
        0 4px 12px rgba(0, 0, 0, .08);
}
.book-home .tags-grid .tags-cell:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    transition-duration: 0.08s;
}
.book-home .recent-layout {
    display: grid;
    --book-home-recent-fr: calc((100% - 3 * var(--site-module-gap)) / 4);
    grid-template-columns:
        minmax(0, calc(var(--book-home-recent-fr) + 4px))
        minmax(0, calc(3 * var(--book-home-recent-fr) - 4px + 2 * var(--site-module-gap)));
    align-items: stretch;
    column-gap: var(--site-module-gap);
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    box-sizing: border-box;
}
.book-home .recent-spot-col {
    grid-column: 1 / 2;
    grid-row: 1 / -1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 0;
    min-width: 0;
    min-height: min-content;
    height: auto;
    width: 100%;
}
.book-home .recent-spot {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 9px 12px;
    border: none;
    cursor: pointer;
    transition: background-color .14s ease;
}
.book-home .recent-spot:nth-child(odd) {
    background: var(--bg-surface);
}
.book-home .recent-spot:nth-child(even) {
    background: var(--bg-zebra);
}
.book-home .recent-spot:hover {
    background: var(--site-row-hover-bg);
}
.book-home .recent-spot-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}
.book-home .recent-spot-right {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.book-home .recent-spot:not(:last-child) {
    border-bottom: 1px solid var(--line-faint);
}
.book-home .list-empty {
    box-sizing: border-box;
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    padding: 20px 12px;
}
.book-home .recent-spot-cover {
    position: relative;
    width: 70px;
    height: 94px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: block;
    background: var(--bg-surface);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}
.book-home .recent-spot-cover > .vip-tag {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
    margin: 0;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 600;
    padding: 2px 5px;
    color: #fff;
    background: var(--vip-gradient);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: var(--vip-shadow);
    pointer-events: none;
    white-space: nowrap;
}
.book-home .recent-spot-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.book-home .recent-spot-name {
    margin: 0 0 4px;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.01em;
}
.book-home .recent-spot-name a {
    color: var(--color-text-strong);
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
}
.book-home .recent-spot-name a:hover {
    color: var(--color-emphasis);
}
.book-home .recent-spot-meta {
    min-width: 0;
}
.book-home .recent-spot-line {
    margin: 0;
    min-width: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.book-home .recent-spot-line .recent-spot-cate {
    display: inline;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}
.book-home .recent-spot-latest {
    margin: 4px 0 0;
    min-width: 0;
    font-size: 12px;
    line-height: 1.45;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 4px;
    row-gap: 4px;
}
.book-home .recent-spot-latest-prefix {
    color: var(--text-secondary);
    flex-shrink: 0;
}
.book-home a.recent-spot-latest-chap {
    color: var(--color-text);
    text-decoration: none;
    min-width: 0;
    flex: 1 1 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.book-home a.recent-spot-latest-chap:hover {
    color: var(--color-emphasis);
    text-decoration: underline;
}
.book-home .recent-spot-desc {
    margin: 8px 0 0;
    width: 100%;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
}
.book-home .recent-table-wrap {
    grid-column: 2 / 3;
    grid-row: 1 / -1;
    min-width: 0;
    min-height: min-content;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-x: auto;
}
.book-home .recent-table {
    flex: 0 0 auto;
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.4;
}
.book-home .recent-td {
    padding: 9px 10px;
    vertical-align: middle;
    border-bottom: 1px solid var(--line-faint);
    color: var(--color-text);
    text-align: left;
    transition: background-color .14s ease;
}
.book-home .recent-table tbody tr:last-child .recent-td {
    border-bottom: none;
}
.book-home .recent-td--cate {
    width: 8%;
}
.book-home .recent-td--name {
    width: 16%;
    min-width: 0;
}
.book-home .recent-td--chap {
    width: 40%;
    min-width: 0;
}
.book-home .recent-td--author {
    width: 16%;
    min-width: 0;
}
.book-home .recent-td--time {
    width: 11%;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    text-align: right;
}
.book-home .recent-tr:not(.recent-tr--empty):nth-child(even) .recent-td {
    background: var(--bg-zebra);
}
.book-home a.recent-name,
.book-home a.recent-author {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    text-decoration: none;
}
.book-home a.recent-name {
    color: inherit;
}
.book-home a.recent-author {
    color: var(--text-secondary);
}
.book-home a.recent-name:hover,
.book-home a.recent-author:hover {
    color: var(--color-emphasis);
}
.book-home a.recent-cate {
    display: inline;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
}
.book-home a.recent-cate:hover {
    color: var(--color-emphasis);
}
.book-home .recent-author--empty {
    color: var(--text-muted);
}
.book-home .recent-chaprow {
    display: flex;
    align-items: center;
    min-width: 0;
    width: 100%;
    gap: 6px;
}
.book-home .recent-chaprow .recent-chap {
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-text);
    text-decoration: none;
    vertical-align: inherit;
}
.book-home .recent-chaprow .recent-chap:hover {
    color: var(--color-emphasis);
    text-decoration: underline;
}
.book-home .recent-cate--empty {
    color: var(--text-muted);
}
.book-home .recent-td--chap .vip-tag {
    flex-shrink: 0;
    display: inline-block;
    margin-left: 4px;
    padding: 2px 7px;
    vertical-align: middle;
    line-height: 1.2;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: var(--vip-gradient);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: var(--vip-shadow);
    white-space: nowrap;
}
.book-home td.list-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px 12px;
}
.book-home .recent-tr:not(.recent-tr--empty):hover .recent-td {
    background: var(--site-row-hover-bg);
}

.section-box.web-sec-featured p.list-empty {
    padding: 24px 16px;
    width: 100%;
    flex: 0 0 100%;
}
.section-box.web-sec-banner-rank .banner.site-banner-carousel {
    position: relative;
    height: 320px;
}
.site-banner-carousel > .site-banner-track {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: var(--bg-surface);
}
.site-banner-carousel > .site-banner-track > .site-banner-slide {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 0;
    transition: opacity .35s ease;
}
.site-banner-carousel > .site-banner-track > .site-banner-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}
.site-banner-carousel .site-banner-slide > a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    overflow: hidden;
}
.site-banner-carousel .site-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.site-banner-carousel .site-banner-dots {
    position: absolute;
    left: auto;
    right: 16px;
    bottom: 14px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    pointer-events: none;
}
.site-banner-carousel .site-banner-dot {
    pointer-events: auto;
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: width .22s ease, background-color .22s ease;
}
.site-banner-carousel .site-banner-dot.is-active {
    width: 18px;
    background: #fff;
}
.section-box.web-sec-banner-rank .banner .carousel-slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 14px 28px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    z-index: 2;
    text-align: left;
    box-sizing: border-box;
    pointer-events: none;
    background: linear-gradient(to top, rgba(20, 18, 15, .86) 0%, rgba(20, 18, 15, .48) 52%, transparent 100%);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
.section-box.web-sec-banner-rank .banner .carousel-slide-caption--rich {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 56px 116px 20px 20px;
    font-weight: 400;
    background: linear-gradient(180deg, transparent 0%, rgba(20, 18, 15, .38) 44%, rgba(20, 18, 15, .86) 100%);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
.carousel-slide-kicker {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(179, 134, 61, .28);
    border: 1px solid rgba(223, 208, 181, .52);
    color: #f6e7c5;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .02em;
    text-shadow: none;
}
.carousel-slide-caption--rich .carousel-slide-title,
.carousel-slide-caption--rich h3 {
    margin: 0;
    max-width: 100%;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.carousel-slide-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 6px;
    font-size: 12.5px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .82);
}
.carousel-slide-meta > span + span::before {
    content: '·';
    margin-right: 6px;
    opacity: .65;
}
.carousel-slide-desc {
    margin: 1px 0 0;
    max-width: 560px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .88);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section-box.web-sec-banner-rank {
    align-items: stretch;
    padding: 0;
    gap: var(--site-module-gap);
    justify-content: flex-start;
}
.section-box.web-sec-banner-rank .banner {
    flex: 1 1 0;
    min-width: 300px;
    width: auto;
}
.section-box.web-sec-banner-rank .top-section {
    flex: 0 0 28%;
    min-width: 280px;
    width: auto;
}
.section-box .banner {
    margin: 0;
    border: 1px solid var(--line-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-width: 300px;
    min-height: 200px;
    box-sizing: border-box;
    background: var(--bg-surface);
}

.section-box .banner .vip-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--vip-gradient);
    color: #fff;
    font-size: 14px;
    border-radius: var(--radius-md);
    padding: 6px 12px;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, .2);
    font-weight: 600;
}
.section-box .top-section {
    margin: 0;
    border: 1px solid var(--line-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-width: 280px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0 16px;
    background: var(--bg-surface);
}
.section-box .top-section.top-section--tabs {
    padding: 0;
    overflow: hidden;
}
.section-box .top-section .module-title {
    flex: 0 0 auto;
    align-self: flex-start;
    padding: 10px 16px 8px;
}
.section-box .home-head--tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 0;
    border-bottom: 1px solid var(--line-default);
    background: var(--bg-surface);
}

/* book-nav：`home-head` 已承担左右留白，内层 Tab 头条勿再叠一层 padding-x */
.book-home .home-head:not(.home-head--tabs) > .home-head--tabs {
    padding-left: 0;
    padding-right: 0;
}

.section-box .top-section-tabs {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
    border: none;
    border-radius: 0;
    overflow: visible;
    background: transparent;
}
/* 侧栏 Tab：底边框代替 inset box-shadow，避免窄屏 WebKit 右缘纵向色条伪影 */
.section-box .top-section-tabs > a.top-section-tab {
    text-decoration: none;
    color: inherit;
}
.section-box .top-section-tabs > span.top-section-tab {
    cursor: default;
}
.section-box .top-section-tabs > .top-section-tab:not(.is-active):not([aria-selected="true"]),
.book-home :is(.home-head, .section-box .home-head--tabs) .top-section-tabs > .top-section-tab:not(.is-active):not([aria-selected="true"]) {
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom-color: transparent;
    box-shadow: none;
}
.section-box .top-section-tabs > .top-section-tab.top-section-tab--notice:not(.is-active):not([aria-selected="true"]),
.book-home :is(.home-head, .section-box .home-head--tabs) .top-section-tabs > .top-section-tab.top-section-tab--notice:not(.is-active):not([aria-selected="true"]) {
    color: var(--color-emphasis);
    font-weight: 500;
}
.section-box .top-section-tabs > .top-section-tab.top-section-tab--notice.is-active,
.section-box .top-section-tabs > .top-section-tab.top-section-tab--notice[aria-selected="true"],
.book-home :is(.home-head, .section-box .home-head--tabs) .top-section-tabs > .top-section-tab.top-section-tab--notice.is-active,
.book-home :is(.home-head, .section-box .home-head--tabs) .top-section-tabs > .top-section-tab.top-section-tab--notice[aria-selected="true"] {
    color: var(--color-emphasis);
    font-weight: 700;
}
.section-box .top-section-tabs > .top-section-tab.top-section-tab--notice:hover,
.section-box .top-section-tabs > .top-section-tab.top-section-tab--notice:focus-visible,
.book-home :is(.home-head, .section-box .home-head--tabs) .top-section-tabs > .top-section-tab.top-section-tab--notice:hover,
.book-home :is(.home-head, .section-box .home-head--tabs) .top-section-tabs > .top-section-tab.top-section-tab--notice:focus-visible {
    color: var(--color-emphasis);
}
.section-box .home-head--tabs > .module-title-more {
    flex: 0 0 auto;
    white-space: nowrap;
}
.section-box .top-section-panel:not([hidden]) {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.section-box .top-section-panel {
    padding: 0;
}
.section-box .top-section .top-list {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}
.section-box .top-section .top-list > a {
    flex: 0 0 auto;
    min-width: 0;
}
.section-box .top-section .top-list:has(> a:nth-child(6)) {
    display: grid;
}
.section-box .top-section .top-list:has(> a.first):has(> a:nth-child(6)) {
    grid-template-rows: auto repeat(5, minmax(0, 1fr));
}
.section-box .top-section .top-list:not(:has(> a.first)):has(> a:nth-child(6)) {
    grid-template-rows: repeat(6, minmax(0, 1fr));
}
.module-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 8px 20px;
    border-bottom: 1px solid var(--line-default);
    box-sizing: content-box;
    width: 100%;
}
.module-title h1,
.module-title h2,
.module-title h3 {
    font-size: var(--user-section-heading-size);
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    position: relative;
    padding-left: 12px;
}
.module-title h1 a,
.module-title h2 a,
.module-title h3 a {
    color: inherit;
    text-decoration: none;
}
.module-title h1 a:hover,
.module-title h2 a:hover,
.module-title h3 a:hover {
    color: var(--color-emphasis);
}
a.module-title-more {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    flex-shrink: 0;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s ease;
}
.module-title-more .site-icon-triangle-r {
    font-size: 15px;
    line-height: 1;
}
@media (hover: hover) {
    .module-title-more:hover {
        color: var(--color-emphasis);
    }
}
.module-title:has(.module-title-more) h1,
.module-title:has(.module-title-more) h2,
.module-title:has(.module-title-more) h3 {
    padding-right: 32px;
}
.module-title-inset {
    box-sizing: border-box;
    width: calc(100% + 24px);
    margin: 0 -12px;
    padding: 10px 12px 8px;
}

/* 「模组首行统一度量」：`:is` 聚合、`book-nav` 内 `.home-head--tabs` 左右 padding 由下行清零 */
:is(
    .book-home .home-head,
    .section-box .home-head--tabs,
    .cate-card .module-title.module-title-inset,
    .finish-row .update-latest .module-title.module-title-inset,
    .finish-row .finish .module-title.module-title-inset,
    .channel-spot-card > .module-title.module-title-inset,
    .book-media-panel > .module-title.module-title-inset,
    .book-home .section-box.web-sec-banner-rank .top-section > .module-title,
    .book-home .web-sec-tags > .module-title.module-title-full,
    .account-main .content-card > .home-head.home-head--solo,
    .account-main .content-card > .home-head.home-head--tabs
) {
    min-height: var(--home-head-min-h);
    padding-block: 0;
    padding-inline: max(var(--home-head-pad-x), env(safe-area-inset-left, 0px)) max(var(--home-head-pad-x), env(safe-area-inset-right, 0px));
    align-items: center;
    box-sizing: border-box;
}
.book-home .section-box.web-sec-banner-rank .top-section > .module-title {
    align-self: stretch;
}
.module-title > h1,
.module-title > h2,
.module-title > h3 {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.module-title-full {
    width: calc(100% + 32px);
    margin: 0 -16px;
    padding: 10px 16px 8px;
    box-sizing: border-box;
}
.top-list {
    overflow: hidden;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.top-list p {
    margin: 0;
}
.top-list .first {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 10px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
}
.section-box.web-sec-banner-rank .top-section .top-list > a.first {
    background: var(--warm-surface);
    border-bottom-color: var(--warm-border-soft);
    border-radius: 0;
}
.top-list .first .top-first-cover {
    width: 54px;
    height: 72px;
    flex: 0 0 54px;
    display: block;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--line-panel) 100%);
}
.top-list .first .top-first-info {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: center;
    gap: 6px 12px;
}
.top-list .first .top-first-info .top-first-name,
.top-list a .name {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
}
.top-list .first .top-first-info .top-first-name > span:first-child,
.top-list a .name > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.top-list .first .top-first-info .top-first-name > span:last-child,
.top-list a .name > span:last-child {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: normal;
}
.top-list .first .top-first-info .top-first-name {
    flex: 1 1 120px;
    font-size: 15px;
    color: var(--color-text-strong);
    font-weight: 600;
    line-height: 1.4;
}
.top-list .first .top-first-info .top-first-desc {
    flex: 1 1 100%;
    line-height: 1.4;
    color: var(--text-muted);
    font-size: 12px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}
.top-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--line-faint);
    cursor: pointer;
    color: inherit;
    box-sizing: border-box;
    background: transparent;
    transition: background-color .15s ease, color .15s ease;
}
.top-list a:focus-visible {
    outline: none;
    background: var(--site-row-hover-bg);
}
.top-list a:focus-visible .name > span:first-child,
.top-list a:focus-visible .top-first-name > span:first-child {
    color: var(--color-emphasis);
}
@media (hover: hover) {
    .top-list a:hover {
        background: var(--site-row-hover-bg);
    }
    .top-list a:hover .name > span:first-child,
    .top-list a:hover .top-first-name > span:first-child {
        color: var(--color-emphasis);
    }
}
.top-list a:last-child {
    border-bottom: none;
}
.section-box .top-section .top-list:has(> a:nth-child(6)) > a:last-child {
    border-bottom: 1px solid transparent;
}
/* 排行名次徽标：.top-list 与 .top-stage-list 共用，勿再写 .number / .num 两套 */
.rank-num {
    display: block;
    width: 22px;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    color: var(--text-secondary);
    background: #ece7dd;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 0;
}
/* 简行书名：侧栏榜单基型 */
.top-list a .name {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text);
    flex: 1;
}
.rank-num.top1 {
    background: linear-gradient(135deg, #c29543 0%, #9a6d29 100%);
    color: #fff;
    box-shadow: 0 1px 3px rgba(154, 109, 41, .24);
}
.rank-num.top2 {
    background: linear-gradient(135deg, #98a0aa 0%, #737b85 100%);
    color: #fff;
    box-shadow: 0 1px 3px rgba(115, 123, 133, .22);
}
.rank-num.top3 {
    background: linear-gradient(135deg, #b8835a 0%, #925f3a 100%);
    color: #fff;
    box-shadow: 0 1px 3px rgba(146, 95, 58, .22);
}

/* 精品推荐：单类型首页为一行可横滚；全书籍首页精品见 `.feat-strip-*` + `shell.js` 单行 8 槽、箭头平移 */
.featured {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--site-module-gap);
    padding: 16px 0;
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 100%;
    box-sizing: border-box;
}
.featured .feat-card {
    flex: 0 0 calc((100% - 7 * var(--site-module-gap)) / 8);
    max-width: 140px;
    min-width: 96px;
    background: var(--bg-surface);
    padding: 0;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    border: 1px solid var(--line-default);
    border-radius: var(--radius-sm);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.featured .feat-card:hover {
    border-color: var(--line-mid);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}
.featured .feat-card a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    padding: 0;
    position: relative;
}
.featured .feat-card .cover-wrap {
    width: 100%;
    margin: 0;
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-sm);
    background: var(--line-faint);
}
.featured .feat-card .cover-wrap .feat-card-kind,
.finish-book-list .cover-wrap .feat-card-kind {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    border-radius: var(--radius-sm);
    padding: 2px 6px;
    z-index: 2;
    max-width: calc(100% - 12px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.featured .feat-card .cover-wrap .vip-tag {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--vip-gradient);
    color: #fff;
    font-size: 10px;
    border-radius: var(--radius-sm);
    padding: 2px 6px;
    z-index: 2;
}
.featured .feat-card .cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: opacity .2s ease;
}
.featured .feat-card:hover .cover {
    opacity: .92;
}
.featured .feat-card .book-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 0;
    padding: 30px 8px 8px;
    line-height: 1.3;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .44) 58%, transparent 100%);
    transition: background .2s ease;
}
.featured .feat-card:hover .book-title {
    background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .56) 62%, transparent 100%);
}
.featured .feat-card .book-title-name,
.featured .feat-card .book-title-author {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.featured .feat-card .book-title-name {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .65);
    transition: color .2s ease;
}
.featured .feat-card .book-title-author {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, .88);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
}
.featured .feat-card:hover .book-title-name {
    color: #ffe08a;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .85);
}
/* 全书籍首页精品：`feat-strip-*` + `initFeatStrip`；箭头外移至 `-16px` 与同区块 `.section-box` 横向 padding 对齐，`overflow` 避开父辈裁剪 */
.book-home section.web-sec-featured {
    overflow: clip;
}
.book-home .web-sec-featured .feat-strip-outer {
    --feat-cols: 8;
    position: relative;
    box-sizing: border-box;
    padding: 16px 0;
    width: 100%;
    flex: 0 0 100%;
    min-width: 0;
    max-width: 100%;
}
.book-home .web-sec-featured .feat-strip-outer[data-feat-cols="5"] {
    --feat-cols: 5;
}
/* 主编重磅聚焦 + 精选书架分栏 */
.home-featured-split {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    flex: 0 0 100%;
    padding: 16px 0;
    align-items: stretch;
    box-sizing: border-box;
}
.home-spot-card {
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-default);
    background: linear-gradient(180deg, var(--warm-surface) 0%, var(--warm-surface-end) 100%);
    min-width: 0;
    box-sizing: border-box;
    transition: border-color .18s ease, box-shadow .18s ease;
}
@media (hover: hover) {
    .home-spot-card:hover {
        border-color: var(--warm-border);
        box-shadow: 0 4px 14px rgba(140, 95, 0, .06);
    }
}
.home-spot-cover {
    position: relative;
    width: 120px;
    height: 160px;
    flex: 0 0 120px;
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--line-faint);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    display: block;
}
.home-spot-cover > a {
    display: block;
    width: 100%;
    height: 100%;
}
.home-spot-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home-spot-cover .vip-tag {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 2;
    font-size: 10px;
    line-height: 1.25;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}
.home-spot-cover .feat-card-kind {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 2;
    background: rgba(0, 0, 0, .48);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    border-radius: var(--radius-sm);
    padding: 2px 6px;
}
.home-spot-body {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.home-spot-top {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
}
.home-spot-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--member-pill-bg);
    border: 1px solid var(--site-btn-accent-border);
    color: var(--warm-ink);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}
.home-spot-kind {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--bg-surface);
    border: 1px solid var(--line-default);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
}
.home-spot-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.32;
    color: var(--color-text-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-spot-title a {
    color: inherit;
    text-decoration: none;
    transition: color .16s ease;
}
.home-spot-title a:hover {
    color: var(--color-emphasis);
}
.home-spot-meta {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    color: var(--text-muted);
}
.home-spot-author {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
    font-weight: 500;
}
.home-spot-meta a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .15s ease;
}
.home-spot-meta a:hover {
    color: var(--color-emphasis);
}
.home-spot-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--line-soft);
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.45;
    white-space: nowrap;
}
.home-spot-desc {
    margin: 2px 0 0;
    font-size: 12.5px;
    line-height: 1.46;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-spot-foot {
    margin-top: auto;
    padding-top: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}
.home-spot-foot-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    font-size: 11.5px;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}
.home-spot-foot-meta .serialize {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
}
.home-spot-stat {
    font-size: 11.5px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-spot-foot a.site-btn.site-btn-xs.home-spot-cta {
    flex-shrink: 0;
    height: 24px;
    line-height: 22px;
    padding: 0 10px;
}
.home-featured-shelf {
    min-width: 0;
    width: 100%;
    display: flex;
    align-items: center;
}
.book-home .web-sec-featured .home-featured-shelf .feat-strip-outer {
    padding: 0;
}
.book-home .web-sec-featured .home-featured-shelf .feat-strip-arrow.feat-strip-prev {
    left: 0;
}
.book-home .web-sec-featured .home-featured-shelf .feat-strip-arrow.feat-strip-next {
    right: 0;
}
.book-home .web-sec-featured .feat-strip-view {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    container-type: inline-size;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.book-home .web-sec-featured .feat-strip-view::-webkit-scrollbar {
    display: none;
}
.book-home .web-sec-featured .feat-strip-track.featured {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--site-module-gap);
    padding: 0;
    margin: 0;
    min-width: 0;
    overflow: visible;
    min-height: 0;
    width: max-content;
    max-width: none;
    box-sizing: border-box;
}
.book-home .web-sec-featured .feat-strip-outer .feat-card {
    flex: 0 0 calc((100cqw - (var(--feat-cols) - 1) * var(--site-module-gap)) / var(--feat-cols));
    width: calc((100cqw - (var(--feat-cols) - 1) * var(--site-module-gap)) / var(--feat-cols));
    max-width: none;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    border-radius: var(--radius-md);
}
.book-home .web-sec-featured .feat-strip-outer .feat-card .cover-wrap {
    border-radius: var(--radius-md);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.book-home .web-sec-featured .feat-strip-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 44px;
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.2s;
}
@media (hover: hover) {
    .book-home .web-sec-featured .feat-strip-arrow:hover:not(:disabled) {
        background: rgba(0, 0, 0, 0.48);
    }
}
.book-home .web-sec-featured .feat-strip-arrow .site-icon {
    font-size: 13px;
}
.book-home .web-sec-featured .feat-strip-arrow:disabled,
.book-home .web-sec-featured .feat-strip-arrow[aria-disabled='true'] {
    opacity: 0.45;
    cursor: default;
}
.book-home .web-sec-featured .feat-strip-arrow.feat-strip-prev {
    left: -16px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.book-home .web-sec-featured .feat-strip-arrow.feat-strip-next {
    right: -16px;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.channel-cate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--site-module-gap);
    width: 100%;
    box-sizing: border-box;
}
.channel-cate-grid > .cate-card {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
}
.cate-card {
    background: var(--bg-surface);
    flex: 1 1 0;
    min-width: 0;
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    margin: 0;
    padding: 0 16px 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    scroll-margin-top: calc(var(--header-h) + 14px);
    transition: border-color .18s ease, box-shadow .18s ease;
    overflow: clip;
}
.cate-card > .module-title.module-title-inset,
.update-latest > .module-title.module-title-inset,
.finish > .module-title.module-title-inset {
    width: calc(100% + 32px);
    margin: 0 -16px;
}
@media (hover: hover) {
    .cate-card:hover {
        border-color: var(--line-mid);
        box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
    }
}
.cate-card .item-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    padding-top: 12px;
    gap: 10px 14px;
}
.book-row {
    display: flex;
    align-items: flex-start;
    padding: 0;
}
.book-row .book-link {
    display: flex;
    align-items: flex-start;
    width: 100%;
    text-decoration: none;
}
.book-row.first .book-link {
    display: flex;
    align-items: stretch;
    width: 100%;
    text-decoration: none;
}
.book-row.first {
    flex: 1 1 100%;
    min-width: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-faint);
}
.book-row.first figure {
    flex-shrink: 0;
    margin: 0 14px 0 0;
}
.book-row.first figure .cover {
    margin-right: 0;
}
.book-row.first .cover {
    width: 92px;
    height: 122px;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-right: 14px;
    flex-shrink: 0;
    background: var(--bg-subtle);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    transition: transform .22s ease;
}
@media (hover: hover) {
    .book-row.first .book-link:hover .cover {
        transform: translateY(-1px);
    }
    .book-row.first .book-link:hover .name {
        color: var(--color-emphasis);
    }
}
.book-row.first .info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 122px;
}
.book-row.first .info p {
    margin: 0;
}
.book-row.first .name {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-strong);
    margin-bottom: 5px;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.35;
    transition: color .15s ease;
}
.book-row.first .desc {
    flex: 1;
    min-height: 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
}
.book-row.first .author {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 6px;
    flex-shrink: 0;
}
.book-row.first .author .author-link {
    cursor: pointer;
    color: inherit;
}
.book-row.first .author .author-link:hover {
    color: var(--color-emphasis);
}
.book-row:not(.first) {
    flex: 0 0 auto;
    max-width: 100%;
    min-width: 0;
}
.book-row:not(.first) .name {
    font-size: 14px;
    font-weight: 400;
    overflow-wrap: anywhere;
}
.book-row:not(.first) .book-link {
    width: auto;
    max-width: 100%;
    color: var(--text-secondary);
    text-decoration: underline dashed var(--line-default);
    text-decoration-thickness: max(0.5px, 0.04em);
    text-underline-offset: 4px;
    transition: color .15s ease, text-decoration-color .15s ease;
}
.book-row:not(.first) .book-link:hover {
    color: var(--color-emphasis);
    text-decoration-color: var(--warm-border);
}

.latest-update-list,
.finish-book-list {
    margin: 0;
    padding: 0;
}
.latest-update-list {
    font-size: 14px;
}
.latest-update-list li {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line-faint);
    padding: 3px 0;
    color: var(--color-text);
    min-height: 32px;
    line-height: 1.5;
    transition: background-color .15s ease;
}
.latest-update-list li:last-child {
    border-bottom: none;
}
.latest-update-list .cat, .latest-update-list .book-name, .latest-update-list .chapter, .latest-update-list .author, .latest-update-list .time, .latest-update-list .book-name a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.latest-update-list .cat {
    flex: 0 0 88px;
    min-width: 72px;
    text-align: left;
}
.latest-update-list .book-name {
    flex: 0 0 160px;
    min-width: 120px;
    margin-right: 12px;
    text-align: left;
}
.latest-update-list .book-name a {
    color: var(--color-text);
    max-width: 100%;
}
.latest-update-list .chapter {
    flex: 1;
    min-width: 80px;
    margin-right: 8px;
    text-align: left;
}
.latest-update-list .chapter a {
    color: var(--color-text);
}
.latest-update-list .chapter-none {
    color: var(--text-muted);
}
.latest-update-list .author {
    flex: 0 0 100px;
    min-width: 72px;
    margin-right: 8px;
    color: var(--text-muted);
    text-align: left;
}
.latest-update-list .time {
    flex: 0 0 80px;
    min-width: 70px;
    color: var(--text-muted);
    font-size: 13px;
    text-align: right;
}
.latest-update-list .cat a, .latest-update-list .author a {
    color: var(--text-muted);
}
.latest-update-list .cat a:hover, .latest-update-list .book-name a:hover, .latest-update-list .chapter a:hover, .latest-update-list .author a:hover {
    color: var(--color-emphasis);
}
.finish-row {
    display: flex;
    align-items: flex-start;
    max-width: var(--site-max-w);
    width: 100%;
    margin: 0 auto;
    gap: var(--site-module-gap);
}
.update-latest,
.finish {
    box-sizing: border-box;
    background: var(--bg-surface);
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    overflow: clip;
}
.finish-row.finish-row--full {
    align-items: stretch;
}
.finish-row.finish-row--full .update-latest,
.finish-row.finish-row--full .finish {
    display: flex;
    flex-direction: column;
}
.update-latest {
    flex: 1;
    min-width: 0;
    padding: 0 16px;
}
.finish {
    flex: 0 0 28%;
    min-width: 280px;
    padding: 0 16px;
}
.book-media-panel {
    width: 100%;
    min-width: 0;
    padding: 0 12px;
}
.finish-row .update-latest .latest-update-list {
    padding-top: 0;
}
.finish-row.finish-row--full .update-latest .latest-update-list {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.finish-row.finish-row--full .finish .finish-book-list {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.finish-book-list li {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid var(--line-faint);
    padding: 12px 0;
    gap: 16px;
    min-height: 120px;
}
.finish-book-list li:last-child {
    border-bottom: none;
}
.finish-book-list .cover {
    width: 90px;
    height: 120px;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    background: var(--bg-subtle);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .09);
}
.finish-book-list .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.finish-book-list .top-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}
.finish-book-list .top-row .cat,
.finish-book-list .top-row .words {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: var(--radius-md);
    white-space: nowrap;
}
.finish-book-list .top-row .cat {
    border: 1px solid var(--warm-border-soft);
    background: var(--warm-surface);
    color: var(--warm-ink);
    font-weight: 500;
}
.finish-book-list .top-row .cat a {
    color: inherit;
    text-decoration: none;
}
.finish-book-list .top-row .cat a:hover {
    color: var(--color-emphasis);
}
.finish-book-list .top-row .words {
    border: 1px solid var(--line-soft);
    background: var(--line-faint);
    color: var(--text-muted);
    font-weight: 400;
}
.finish-book-list--guess .info {
    justify-content: flex-start;
    gap: 4px;
    height: 120px;
    max-height: 120px;
    overflow: hidden;
}
.finish-book-list--guess .name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    flex-shrink: 0;
}
.finish-book-list--guess .foot {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    flex-wrap: nowrap;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.4;
}
.finish-book-list--guess .foot .author {
    margin: 0;
    font-weight: 500;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 55%;
}
.finish-book-list--guess .foot .author a {
    color: inherit;
    text-decoration: none;
}
.finish-book-list--guess .foot .author a:hover {
    color: var(--color-emphasis);
}
.finish-book-list--guess .foot .cate {
    flex: 0 1 auto;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.finish-book-list--guess .foot .cate::before {
    content: '·';
    margin: 0 5px;
    color: var(--line-mid);
}
.finish-book-list--guess .foot .cate a {
    color: inherit;
    text-decoration: none;
}
.finish-book-list--guess .foot .cate a:hover {
    color: var(--warm-ink);
}
.finish-book-list .name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 2px 0 4px;
}
.finish-book-list .desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 44px;
    overflow: hidden;
    word-break: normal;
    overflow-wrap: break-word;
}
.finish-book-list--guess .desc {
    flex: 1 1 0;
    min-height: 0;
    line-height: 1.5;
    max-height: 4.5em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.finish-book-list .author {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    word-break: normal;
    overflow-wrap: break-word;
}

.section-box.search-box {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-sizing: border-box;
}
.search-head.module-title {
    padding: 15px 0 0;
    margin: 0;
    border-bottom: none;
    box-sizing: border-box;
}
.search-box > .search-head.module-title {
    width: 100%;
    padding: 14px 20px 13px;
    margin: 0;
    border-bottom: 1px solid var(--line-faint);
    background: var(--bg-surface);
}
.search-box > .book-list {
    border: none;
    border-radius: 0;
    margin: 0;
}
.search-box > #pagination:not(:empty) {
    padding: 14px 20px;
    border-top: 1px solid var(--line-faint);
}
.search-head.module-title > h1,
.search-head.module-title > h2,
.search-head.module-title > h3 {
    font-weight: 600;
}
.search-head.module-title .keyword {
    color: var(--warm-ink);
    font-weight: 700;
}

/* --- 全站通用现代分段切换器（排行榜 / 书库 / 频道页头右侧） --- */
.seg-switch {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 3px;
    padding: 3px;
    background: var(--bg-subtle);
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    flex-shrink: 0;
    box-sizing: border-box;
}
.seg-switch-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 14px;
    border: 0;
    border-radius: calc(var(--radius-md) - 1px);
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.seg-switch-item:focus-visible {
    outline: 2px solid var(--accent-bar);
    outline-offset: 1px;
}
.seg-switch-item.is-active,
.seg-switch-item[aria-current="page"],
.seg-switch-item[aria-selected="true"] {
    background: var(--bg-surface);
    color: var(--warm-ink);
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 0 0 1px rgba(234, 219, 194, .65);
}
@media (hover: hover) {
    .seg-switch-item:hover:not(.is-active):not([aria-selected="true"]) {
        background: rgba(0, 0, 0, .035);
        color: var(--color-text-strong);
    }
}

.browse-filter-panel {
    width: 100%;
    box-sizing: border-box;
}
.channel {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 20px 8px;
    margin: 0;
    background: var(--bg-surface);
    font-size: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-default);
    display: flex;
    flex-direction: column;
    overflow: clip;
}
.channel li {
    width: 100%;
    padding: 9px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    border-bottom: 1px solid var(--line-faint);
}
.channel li:last-child {
    border-bottom: none;
}
.channel li .name {
    width: 68px;
    min-width: 68px;
    margin-right: 12px;
    padding-top: 4px;
    text-align: left;
    color: var(--text-muted);
    flex-shrink: 0;
    font-weight: 500;
    font-size: 13px;
    line-height: 22px;
}
.channel li .list {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    overflow: visible;
}
.channel li .list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 13.5px;
    color: var(--color-text);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    margin: 0 2px 2px 0;
    white-space: nowrap;
    transition: color .15s ease, background-color .15s ease;
    text-decoration: none;
    line-height: 1.45;
}
.channel li .list a:focus-visible {
    outline: 2px solid var(--accent-bar);
    outline-offset: 1px;
    border-radius: var(--radius-md);
}
.channel li .list a.is-active {
    background: var(--warm-tint);
    color: var(--warm-ink);
    font-weight: 700;
    border: none;
}
.channel li .list .list-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.channel li .list .list-row--sub {
    flex-basis: 100%;
    width: 100%;
    min-width: 0;
    margin: 4px 0 0;
    padding: 6px 0 0;
    background: transparent;
    border: none;
    border-top: 1px solid var(--line-faint);
    border-radius: 0;
    box-sizing: border-box;
}
.channel li .list .list-row--sub a {
    padding: 3px 10px;
    font-size: 13px;
    line-height: 1.45;
    background: transparent;
    color: var(--text-secondary);
}
.channel li .list .list-row--sub a.is-active {
    background: var(--warm-tint);
    color: var(--warm-ink);
    font-weight: 700;
}
@media (hover: hover) {
    .channel li .list a:hover,
    .channel li .list .list-row--sub a:hover,
    .channel li .tags-container .tag-item:hover {
        background: rgba(0, 0, 0, .028);
        color: var(--warm-ink);
    }
    .channel li .list a.is-active:hover,
    .channel li .list .list-row--sub a.is-active:hover {
        background: var(--warm-tint-hover);
        color: var(--warm-ink);
    }
}
.channel li .list .list-row a {
    margin: 0 2px 2px 0;
}
.channel li .tags-container {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}
.channel li .tags-container.tags-expanded {
    flex-wrap: wrap;
    overflow: visible;
}
.channel li .tags-container a {
    flex-shrink: 0;
}
.channel li .tags-container a.hidden {
    display: none;
}
.channel li .toggle-tags {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    color: var(--warm-ink);
    font-size: 13px;
    font-weight: 500;
    padding: 4px 10px;
    margin-bottom: 2px;
    flex-shrink: 0;
    transition: background-color .15s ease, color .15s ease;
}
@media (hover: hover) {
    .channel li .toggle-tags:hover {
        background: var(--warm-tint);
    }
}
.channel li .toggle-tags .txt-less { display: none; }
.channel li .toggle-tags.expanded .txt-more { display: none; }
.channel li .toggle-tags.expanded .txt-less { display: inline; }
.channel li .toggle-tags .toggle-icon {
    display: inline-block;
    transition: transform .2s ease;
    margin-left: 2px;
}
.channel li .toggle-tags.expanded .toggle-icon,
.channel li .toggle-tags[aria-expanded="true"] .toggle-icon { transform: rotate(180deg); }

/* --- 书库独立结果与排序工具栏 --- */
.browse-result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    width: 100%;
    padding: 10px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    box-sizing: border-box;
    overflow: clip;
}
.browse-result-bar .browse-filter-chips {
    padding: 0 0 0 12px;
    margin: 0;
    background: transparent;
    border: none;
    border-left: 1px solid var(--line-soft);
    border-radius: 0;
    gap: 6px;
}
.browse-result-bar a.browse-filter-chip--all {
    margin-left: 2px;
}
.browse-sort-nav {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 4px;
    flex-shrink: 0;
    margin-left: auto;
}

.browse-sort-nav a,
.browse-sort-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease, background-color .15s ease;
}
.browse-sort-nav a:focus-visible,
.browse-sort-link:focus-visible {
    outline: 2px solid var(--accent-bar);
    outline-offset: 1px;
}
.browse-sort-nav a.is-active,
.browse-sort-nav a[aria-current="page"],
.browse-sort-nav a[aria-current="true"],
.browse-sort-link.is-active,
.browse-sort-link[aria-current="page"],
.browse-sort-link[aria-current="true"] {
    color: var(--warm-ink);
    font-weight: 700;
    background: transparent;
}
.browse-sort-nav a.is-active::after,
.browse-sort-nav a[aria-current="page"]::after,
.browse-sort-nav a[aria-current="true"]::after,
.browse-sort-link.is-active::after,
.browse-sort-link[aria-current="page"]::after,
.browse-sort-link[aria-current="true"]::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 2px;
    border-radius: 1px;
    background: var(--warm-ink);
    opacity: .75;
}
@media (hover: hover) {
    .browse-sort-nav a:hover:not(.is-active),
    .browse-sort-link:hover:not(.is-active) {
        color: var(--color-text-strong);
        background: rgba(0, 0, 0, .028);
    }
}

.book-list {
    width: 100%;
    overflow: hidden;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
}
.book-list li.list-empty {
    width: 100%;
    flex: 1 1 100%;
    list-style: none;
    text-align: center;
    padding: 64px 24px 72px;
    color: var(--text-muted);
    font-size: 16px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 140px;
    border-right: none;
    border-bottom: none;
}
.browse-empty-msg {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
}
.browse-empty-relax {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
    font-size: 13.5px;
    color: var(--text-muted);
}
a.browse-empty-relax-link {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 1px solid var(--line-default);
    color: var(--warm-ink);
    font-weight: 500;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
@media (hover: hover) {
    .browse-empty-relax-link:hover {
        background: var(--warm-surface);
        border-color: var(--warm-border);
        color: var(--warm-ink);
    }
}
.browse-filter-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin: 0;
    padding: 8px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    box-sizing: border-box;
}

a.browse-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: var(--radius-md);
    background: var(--warm-tint);
    border: none;
    color: var(--warm-ink);
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.45;
    transition: background-color .15s ease, color .15s ease;
}
.browse-filter-chip-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    line-height: 1;
    opacity: .72;
    transition: opacity .15s ease;
}
a.browse-filter-chip:hover .browse-filter-chip-x {
    opacity: 1;
}
a.browse-filter-chip--all {
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 2px 8px;
}
@media (hover: hover) {
    .browse-filter-chip:hover {
        background: var(--warm-tint-hover);
        color: var(--warm-ink);
    }
    .browse-filter-chip--all:hover {
        background: rgba(0, 0, 0, .035);
        color: var(--color-text);
    }
}
.browse-filter-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--color-text-strong);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color .15s ease, border-color .15s ease;
}
.browse-filter-toggle-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.browse-filter-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: var(--radius-md);
    background: var(--warm-surface);
    border: 1px solid var(--warm-border);
    color: var(--warm-ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
.browse-filter-toggle .txt-close { display: none; }
.browse-filter-toggle.is-open .txt-open { display: none; }
.browse-filter-toggle.is-open .txt-close { display: inline; }
.browse-filter-toggle-icon {
    color: var(--text-muted);
    transition: transform .2s ease;
}
.browse-filter-toggle.is-open .browse-filter-toggle-icon,
.browse-filter-toggle[aria-expanded="true"] .browse-filter-toggle-icon {
    transform: rotate(180deg);
}
.book-list li {
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 0;
    border-bottom: 1px solid var(--line-faint);
    border-right: 1px solid var(--line-faint);
    padding: 0;
    position: relative;
    background: var(--bg-surface);
    display: flex;
    transition: background-color .16s ease;
}
.book-list li:nth-child(even) {
    border-right: none;
}
.site-container .book-list li:last-child,
.site-container .book-list li:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
}
.book-list li .card-inner {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 18px 20px;
    gap: 16px;
}
.book-list li:hover {
    transform: none;
}
@media (hover: hover) {
    .book-list li:not(.list-empty):hover {
        background: var(--warm-surface);
    }
    .book-list li:not(.list-empty):hover .info .name {
        color: var(--warm-ink);
    }
}
.book-list li .pic {
    flex-shrink: 0;
    width: 90px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    background: var(--bg-subtle);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.book-list li .pic img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}
.book-list li:hover .pic img {
    transform: scale(1.04);
}
.book-list li .info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 6px;
}
.book-list li .info .name {
    font-size: 16px;
    color: var(--color-text-strong);
    line-height: 1.35;
    margin-bottom: 0;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .15s ease;
}
.book-list li .info .meta-tags {
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
}
.book-list li .info .meta-tags .author {
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}
.book-list li .info .meta-tags .cname {
    color: var(--text-muted);
    flex-shrink: 0;
}
.book-list li .info .meta-tags .meta-link {
    cursor: pointer;
    transition: color .15s ease;
}
.book-list li .info .meta-tags .meta-link:hover {
    color: var(--color-emphasis);
    text-decoration: underline;
}
.book-list li .info .meta-tags .dot {
    color: var(--line-mid);
    flex-shrink: 0;
}
.book-list li .info .meta-tags .serialize {
    flex-shrink: 0;
    padding: 1px 6px;
    border-radius: var(--radius-md);
    font-size: 11px;
    line-height: 1.45;
    font-weight: 500;
}
.book-list li .info .meta-tags .serialize.done {
    background: var(--bg-subtle);
    border: none;
    color: var(--text-muted);
}
.book-list li .info .meta-tags .serialize.ongoing {
    background: var(--warm-tint);
    border: none;
    color: var(--warm-ink);
}
.book-list li .info .txt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    word-break: break-word;
    overflow-wrap: anywhere;
    flex: 0 0 auto;
    max-height: calc(2 * 1.6 * 1em);
}
.book-list li .info .foot {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}
.book-list li .info .foot .fsep {
    color: var(--line-strong);
}
.book-list li .info .foot .hit-num,
.book-list li .info .foot .words {
    color: var(--text-muted);
    flex-shrink: 0;
}
.book-list li .info .foot .last-chap {
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
    cursor: pointer;
    transition: color .15s ease;
}
.book-list li .info .foot .last-chap:hover {
    color: var(--color-emphasis);
}
.book-list li .vip-tag {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--vip-gradient);
    color: #fff;
    padding: 2px 5px;
    border-radius: var(--radius-xs) 0 var(--radius-xs) 0;
    font-size: 10px;
    font-weight: bold;
    z-index: 3;
    box-shadow: 0 1px 3px rgba(252, 160, 0, .35);
}

/* --- 排行榜主流双栏架构（左栏吸顶榜单目录 + 右侧宽幅单榜图文详单，零框中框） --- */
.top-layout {
    display: grid;
    grid-template-columns: 216px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}
.top-side-col {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
.top-sidebar,
.top-stage {
    background: var(--bg-surface);
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    min-width: 0;
    box-sizing: border-box;
}
.top-sidebar {
    padding: 12px 10px 14px;
    overflow: clip;
}
.top-side-head {
    display: flex;
    align-items: center;
    padding: 4px 10px 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line-faint);
}
.top-side-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--text-muted);
    line-height: 1.3;
}
.top-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}
.top-nav-group {
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid var(--line-faint);
    scroll-margin-top: calc(var(--header-h) + 20px);
}
.top-nav-group:first-child {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}
.top-nav-group-title {
    padding: 0 10px 5px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--text-muted);
    line-height: 1.35;
}
.top-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.top-nav-list.top-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 4px;
}
.top-nav-list li {
    min-width: 0;
}
.top-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--text-secondary);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
    transition: background-color .15s ease, color .15s ease;
}
.top-nav-grid .top-nav-link {
    justify-content: center;
    padding: 6px;
    font-size: 12.5px;
    text-align: center;
}
.top-nav-link:focus-visible {
    outline: 2px solid var(--accent-bar);
    outline-offset: -2px;
}
.top-nav-link.is-active {
    background: var(--warm-tint);
    color: var(--warm-ink);
    font-weight: 600;
}
.top-nav-link.is-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 15px;
    border-radius: 2px;
    background: var(--warm-ink);
}
.top-nav-grid .top-nav-link.is-active::before {
    display: none;
}
@media (hover: hover) {
    .top-nav-link:hover {
        background: var(--site-row-hover-bg);
        color: var(--color-text-strong);
    }
    .top-nav-link.is-active:hover {
        background: var(--warm-tint-hover);
        color: var(--warm-ink);
    }
}

.top-stage {
    overflow: clip;
}
.top-stage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--line-subtle);
    box-sizing: border-box;
}
.top-stage-head-main {
    min-width: 0;
    flex: 1 1 240px;
}
.top-stage-title {
    position: relative;
    margin: 0;
    padding-left: 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-strong);
    letter-spacing: -.01em;
}
.top-stage-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--accent-bar);
    border-radius: var(--radius-sm);
}
.top-stage-sub {
    margin: 4px 0 0;
    padding-left: 12px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--text-muted);
}
.top-stage-head-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.top-period-switch .seg-switch-item {
    height: 28px;
    padding: 0 12px;
    font-size: 12.5px;
}
a.module-title-more.top-stage-more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
.top-stage-more .site-icon {
    font-size: 14px;
}
.top-stage-empty {
    padding: 48px 20px;
}
.top-stage-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}
.top-stage-item {
    position: relative;
    display: grid;
    grid-template-columns: 36px 84px minmax(0, 1fr) 144px;
    align-items: center;
    column-gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line-faint);
    background: transparent;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color .16s ease;
}
.top-stage-item:last-child {
    border-bottom: none;
}
.top-stage-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    flex-shrink: 0;
}
.top-stage-rank .rank-num {
    width: 26px;
    min-width: 26px;
    height: 26px;
    line-height: 26px;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-sm);
}
.top-stage-list .rank-num.top-stage-num {
    width: auto;
    min-width: 26px;
    height: 26px;
    line-height: 26px;
    background: transparent;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    box-shadow: none;
}
.top-stage-cov {
    position: relative;
    width: 84px;
    height: 112px;
    margin: 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-subtle);
    overflow: hidden;
    background: var(--bg-subtle);
    box-sizing: border-box;
}
.top-stage-cov > a {
    display: block;
    width: 100%;
    height: 100%;
}
.top-stage-cov img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .24s ease;
}
.top-stage-cov .vip-tag {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px 5px;
    border-radius: 0 var(--radius-xs) 0 var(--radius-xs);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    z-index: 3;
}
.top-stage-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-self: stretch;
    justify-content: center;
}
.top-stage-name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.top-stage-name a {
    color: inherit;
    text-decoration: none;
    transition: color .15s ease;
}
.top-stage-meta {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--text-muted);
    overflow: hidden;
    white-space: nowrap;
}
.top-stage-author {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .15s ease;
}
.top-stage-cate {
    flex-shrink: 0;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .15s ease;
}
.top-stage-dot {
    flex-shrink: 0;
    color: var(--line-mid);
}
.top-stage-meta .serialize {
    flex-shrink: 0;
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    line-height: 1.45;
    font-weight: 500;
}
.top-stage-meta .serialize.ongoing {
    background: var(--warm-tint);
    color: var(--warm-ink);
}
.top-stage-meta .serialize.done {
    background: var(--bg-subtle);
    color: var(--text-muted);
}
.top-stage-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.58;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.top-stage-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
    overflow: hidden;
    white-space: nowrap;
}
.top-stage-words {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.top-stage-chap {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .15s ease;
}
.top-stage-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    text-align: right;
}
.top-stage-metric {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--warm-ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.top-stage-metric--zero {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
}
a.site-btn.site-btn-xs.top-stage-cta {
    height: 30px;
    line-height: 28px;
    padding: 0 14px;
    font-size: 12.5px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}
.top-stage-item:focus-within {
    background: var(--warm-surface);
}
.top-stage-item:focus-within .top-stage-name a {
    color: var(--warm-ink);
}
@media (hover: hover) {
    .top-stage-item:hover {
        background: var(--warm-surface);
    }
    .top-stage-item:hover .top-stage-name a {
        color: var(--warm-ink);
    }
    .top-stage-item:hover .top-stage-cov img {
        transform: scale(1.04);
    }
    a.top-stage-author:hover,
    a.top-stage-cate:hover,
    a.top-stage-chap:hover {
        color: var(--color-emphasis);
    }
    a.site-btn.site-btn-xs.top-stage-cta:hover {
        border-color: var(--warm-border);
        background: var(--warm-tint);
        color: var(--warm-ink);
    }
}

.detail-header {
    position: relative;
    z-index: 10;
    padding: calc(var(--header-h) + 1px + var(--site-module-gap)) var(--site-gutter) 0;
    max-width: var(--site-max-w);
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
main[class$="-detail"] > .layout-slot--content-top {
    max-width: var(--site-max-w);
    margin: 0 auto;
    padding: calc(var(--header-h) + 1px + var(--site-module-gap)) var(--site-gutter) 0;
    box-sizing: border-box;
}
main[class$="-detail"] > .layout-slot--content-top:not([hidden]):has(> :not(script):not(style):not(link):not(.hide):not([hidden])) + .detail-header {
    padding-top: var(--site-module-gap);
}
main[class$="-detail"] .detail-header .site-breadcrumb {
    padding: 0;
}
.book-info {
    display: flex;
    gap: 32px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--line-default);
    padding: 24px 20px;
    align-items: flex-start;
    /* 详情页顶栏留白已由 .detail-header 承担，且内层 .site-main 已去掉重复 padding-top；勿再使用负 margin 上拉，否则与面包屑贴死 */
    margin: 0 0 var(--site-module-gap);
}
.book-info .pic {
    width: 210px;
    height: 280px;
    overflow: hidden;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--line-panel) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.book-info .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md);
}
.book-info .data {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    min-height: 280px;
    overflow: visible;
    position: relative;
    align-self: flex-start;
}
.book-info .data:has(.desc-wrap.is-expanded) {
    height: auto;
    max-height: none;
    overflow: visible;
}
.book-info .data .title {
    flex-shrink: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    line-height: 1.2;
}
.book-info .data .meta {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
    flex-shrink: 0;
}
.book-info .data .tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}
.book-info .data .detail-tags-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
    overflow: visible;
}
.book-info .data .tags span {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: var(--radius-md);
    white-space: nowrap;
}
.book-info .data .tags span a {
    color: inherit;
    text-decoration: none;
}
.book-info .data .tags span.serialize {
    font-weight: 500;
}
.book-info .data .tags span.serialize.ongoing {
    border: 1px solid var(--warm-border-soft);
    background: var(--warm-surface);
    color: var(--warm-ink);
}
.book-info .data .tags span.serialize.done {
    border: 1px solid var(--line-soft);
    background: var(--line-faint);
    color: var(--text-muted);
    font-weight: 400;
}
.book-info .data .tags span.free-tag {
    border: 1px solid rgba(22, 186, 170, .35);
    background: var(--member-pill-ok-bg);
    color: var(--member-pill-ok-fg);
    font-weight: 600;
}
.book-info .data .tags span.tag-cate {
    border: 1px solid var(--warm-border-soft);
    background: var(--warm-surface);
    color: var(--warm-ink);
    font-weight: 500;
}
.book-info .data .tags span.tag-cate a:hover {
    color: var(--color-emphasis);
}
.book-info .data .tags span.tag-item {
    border: 1px solid var(--line-soft);
    background: var(--line-faint);
    color: var(--text-secondary);
    font-weight: 400;
}
.book-info .data .tags span.tag-item:hover {
    border-color: var(--warm-border);
    background: var(--warm-surface);
    color: var(--warm-ink);
}
.book-info .data .tags span.tag-item:hover a {
    color: inherit;
}
.book-info .data .meta a {
    color: inherit;
}
.book-info .data .nums {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    flex-shrink: 0;
}
.book-info .data .nums span {
    margin-right: 0;
    white-space: nowrap;
}
.book-info .data .nums .detail-latest-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    font-size: 16px;
    font-weight: 700;
}
.book-info .data .nums .detail-latest-label {
    color: var(--warm-ink);
    font-weight: 700;
}
.book-info .data .nums .detail-latest-link {
    color: var(--color-text-strong);
    font-weight: 700;
    transition: color .16s ease;
}
.book-info .data .nums .detail-latest-link:hover {
    color: var(--warm-ink);
}
.book-info .data .book-score {
    width: auto;
    margin: 0;
    flex-shrink: 0;
    overflow: visible;
}
.book-info .data .book-score-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
}
.book-info .data .book-score-stars {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    touch-action: none;
}
.book-info .data .book-score-hint {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    padding: 3px 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    background: rgba(0, 0, 0, .78);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    z-index: 2;
}
.book-info .data .book-score-stars.is-picking .book-score-hint {
    opacity: 1;
    visibility: visible;
}
.book-info .data .book-score-star {
    border: 0;
    background: transparent;
    padding: 8px;
    margin: -8px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted, #bbb);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: content-box;
}
.book-info .data .book-score-star .site-icon {
    font-size: 26px;
    line-height: 1;
}
.book-info .data .book-score-star .site-icon-rate-solid,
.book-info .data .book-score-star .site-icon-rate-half {
    color: #f0a020;
}
.book-info .data .book-score.is-readonly .book-score-star {
    cursor: default;
    pointer-events: none;
}
.book-info .data .book-score-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--warm-ink);
    line-height: 1;
    flex-shrink: 0;
}
.book-info .data .desc-wrap {
    position: relative;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    width: 100%;
    max-height: none;
    overflow: visible;
    font-size: 15px;
    line-height: 1.6;
    text-align: justify;
    text-align-last: left;
}
.book-info .data .desc-wrap.is-expanded {
    max-height: none;
    overflow: visible;
}
.book-info .data .desc {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-secondary);
    font-size: inherit;
    line-height: inherit;
}
.book-info .data .desc-wrap:not(.is-expanded) .desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}
.book-info .data .desc-wrap.is-expanded .desc {
    display: inline;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}
.book-info .data .detail-desc-toggle {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    width: auto;
    height: 1.6em;
    margin: 0;
    padding: 0 0 0 36px;
    border: none;
    background: linear-gradient(to right, var(--bg-surface-fade) 0%, var(--bg-surface) 28px, var(--bg-surface) 100%);
    color: var(--warm-ink);
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    line-height: inherit;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    transition: color .18s ease;
}
.book-info .data .detail-desc-toggle .desc-expand-label {
    font-size: 13px;
    line-height: 1;
}
.book-info .data .detail-desc-toggle .desc-expand-icon {
    font-size: 12px;
    line-height: 1;
    transition: transform .18s ease;
}
.book-info .data .detail-desc-toggle[aria-expanded="true"] .desc-expand-icon {
    transform: rotate(180deg);
}
.book-info .data .desc-wrap.is-expanded .detail-desc-toggle {
    position: static;
    height: auto;
    margin-left: 4px;
    padding: 0;
    background: none;
    line-height: 1;
    vertical-align: baseline;
}
.book-info .data .detail-desc-toggle:hover,
.book-info .data .detail-desc-toggle:focus-visible {
    color: var(--color-emphasis-hover);
    outline: none;
}
.book-info .data:has(.desc-wrap.is-expanded) .actions {
    margin-top: 0;
}
.book-info .data .actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    margin-top: auto;
    padding-top: 6px;
    flex-shrink: 0;
}
.book-info .data .actions > a.site-btn {
    background: var(--cta-solid-bg);
    color: var(--cta-solid-fg);
    border: 1px solid var(--cta-solid-bg);
    border-radius: var(--radius-md);
    font-size: 15px;
    padding: 0 24px;
    font-weight: 600;
    text-decoration: none;
    height: 38px;
    line-height: 36px;
    display: inline-block;
    max-width: 240px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: none;
    box-sizing: border-box;
    transition: background .2s, border-color .2s, color .2s;
}
.book-info .data .actions > a.site-btn:hover {
    background: var(--cta-solid-bg-hover);
    border-color: var(--cta-solid-bg-hover);
    color: var(--cta-solid-fg);
    box-shadow: none;
}
html[data-theme="dark"] .book-info .data .actions > a.site-btn {
    background: var(--cta-solid-bg);
    color: var(--cta-solid-fg);
    border: 1px solid var(--cta-solid-bg);
    box-shadow: none;
}
html[data-theme="dark"] .book-info .data .actions > a.site-btn:hover {
    background: rgba(229, 196, 108, .24);
    border-color: rgba(229, 196, 108, .55);
    color: #f5df9c;
}
.book-info .data .actions .shelf-btn,
.book-info .data .actions .urge-btn,
.book-info .data .actions .txt-dl,
.book-info .data .actions .qr-btn {
    color: var(--color-text);
    font-size: 13.5px;
    font-weight: 500;
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-md);
    padding: 0 13px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    box-sizing: border-box;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}
.book-info .data .actions .shelf-btn .site-icon,
.book-info .data .actions .urge-btn .site-icon,
.book-info .data .actions .txt-dl .site-icon,
.book-info .data .actions .qr-btn .site-icon {
    color: var(--text-muted);
    font-size: 14px;
    transition: color .2s;
}
.book-info .data .actions .shelf-btn:hover,
.book-info .data .actions .urge-btn:hover,
.book-info .data .actions .txt-dl:hover,
.book-info .data .actions .qr-btn:hover,
.book-info .data .actions .shelf-btn:focus-visible,
.book-info .data .actions .urge-btn:focus-visible,
.book-info .data .actions .txt-dl:focus-visible,
.book-info .data .actions .qr-btn:focus-visible,
.book-info .data .actions .qr-pop.is-open > .qr-btn {
    background: var(--accent-tint);
    border-color: var(--site-btn-accent-border);
    color: var(--color-text-strong);
}
.book-info .data .actions .shelf-btn:hover .site-icon,
.book-info .data .actions .urge-btn:hover .site-icon,
.book-info .data .actions .txt-dl:hover .site-icon,
.book-info .data .actions .qr-btn:hover .site-icon,
.book-info .data .actions .qr-pop.is-open > .qr-btn .site-icon {
    color: var(--warm-ink);
}
.book-info .data .actions .urge-btn.is-done {
    background: var(--warm-surface);
    color: var(--warm-ink);
    border-color: var(--warm-border);
    cursor: default;
}
.book-info .data .actions .urge-btn.is-done .site-icon {
    color: var(--warm-ink);
}
.book-info .data .actions .urge-cnt {
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--accent-tint);
    color: var(--color-emphasis);
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    justify-content: center;
}
.book-fans-panel .fans-rank-list {
    margin: 0;
    padding: 4px 15px 14px;
}
.fans-rank-empty {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}
.fans-rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-soft);
}
.fans-rank-item:last-child {
    border-bottom: none;
}
.fans-rank-item .rank-num {
    flex: 0 0 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-subtle);
}
.fans-rank-item .rank-num.top1 {
    background: linear-gradient(135deg, #c29543 0%, #9a6d29 100%);
    color: #fff;
}
.fans-rank-item .rank-num.top2 {
    background: linear-gradient(135deg, #98a0aa 0%, #737b85 100%);
    color: #fff;
}
.fans-rank-item .rank-num.top3 {
    background: linear-gradient(135deg, #b8835a 0%, #925f3a 100%);
    color: #fff;
}
.fans-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-subtle);
}
.fans-avatar--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.fans-meta {
    flex: 1 1 auto;
    min-width: 0;
}
.fans-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.fans-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fans-badge {
    flex-shrink: 0;
    padding: 0 6px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    border: 1px solid var(--line-default);
    background: var(--bg-subtle);
    color: var(--text-secondary);
}
.fans-badge--disciple {
    border-color: #bfe3cc;
    background: #edf8f0;
    color: #267544;
}
.fans-badge--deacon {
    border-color: #b7d9fb;
    background: #eef7ff;
    color: #1d72c2;
}
.fans-badge--hall {
    border-color: #d6c4fb;
    background: #f5f0ff;
    color: #6b3ec7;
}
.fans-badge--alliance {
    border-color: #ecc976;
    background: #fff6dc;
    color: #9a6500;
}
.fans-score {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-muted);
}
.gift-modal-box {
    padding: 18px 20px 20px;
}
.gift-coin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.gift-coin-opt {
    height: 42px;
    border: 1px solid var(--line-default);
    border-radius: var(--radius-sm);
    background: var(--bg-input, var(--bg-surface));
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.gift-coin-opt:hover {
    border-color: var(--warm-border);
    background: var(--warm-surface);
    color: var(--color-text-strong);
}
.gift-coin-opt.is-active {
    border-color: var(--accent-bar);
    background: var(--warm-tint);
    color: var(--warm-ink);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(179, 134, 61, .2);
}
.gift-coin-opt:focus-visible {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: var(--input-focus-ring);
}
.gift-custom-row,
.mticket-custom-row {
    margin-bottom: 12px;
}
.gift-custom-label,
.mticket-custom-label {
    display: block;
    margin: 0 0 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
}
.gift-custom-field,
.mticket-custom-field {
    position: relative;
    display: flex;
    align-items: center;
}
.gift-custom-input,
.mticket-custom-input {
    width: 100%;
    padding-right: 48px;
    font-variant-numeric: tabular-nums;
}
.gift-custom-row.is-active .gift-custom-input,
.mticket-custom-row.is-active .mticket-custom-input {
    border-color: var(--accent-bar);
    background: var(--warm-tint);
    color: var(--warm-ink);
    font-weight: 600;
}
.gift-custom-unit,
.mticket-custom-unit {
    position: absolute;
    right: 12px;
    font-size: 12.5px;
    color: var(--text-muted);
    pointer-events: none;
}
.gift-custom-row.is-active .gift-custom-unit,
.mticket-custom-row.is-active .mticket-custom-unit {
    color: var(--warm-ink);
}
.gift-msg-row {
    margin-bottom: 10px;
}
.gift-note {
    margin: 0 0 14px;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
}
.gift-foot {
    margin-top: 4px;
}
.site-ui-modal--gift .site-btn,
.site-ui-modal--mticket .site-btn {
    font-weight: 600;
}
.mticket-modal-box {
    padding: 18px 20px 20px;
}
.mticket-bal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-bottom: 14px;
    border-radius: var(--radius-sm);
    background: var(--warm-surface);
    border: 1px solid var(--warm-border-soft);
}
.mticket-bal-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-strong);
    font-variant-numeric: tabular-nums;
}
.mticket-pick-label {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--text-secondary);
}
.mticket-opt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.mticket-opt {
    height: 42px;
    border: 1px solid var(--line-default);
    border-radius: var(--radius-sm);
    background: var(--bg-input, var(--bg-surface));
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.mticket-opt:hover {
    border-color: var(--warm-border);
    background: var(--warm-surface);
    color: var(--color-text-strong);
}
.mticket-opt.is-active {
    border-color: var(--accent-bar);
    background: var(--warm-tint);
    color: var(--warm-ink);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(179, 134, 61, .2);
}
.mticket-opt:focus-visible {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: var(--input-focus-ring);
}
.mticket-empty-tip {
    margin: 0 0 14px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--warm-surface);
    border: 1px solid var(--warm-border-soft);
    font-size: 12.5px;
    color: var(--warm-ink);
    line-height: 1.5;
}
.mticket-foot {
    margin-top: 4px;
}
.book-info .data .actions .qr-pop {
    position: relative;
}
.book-info .data .actions .qr-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 148px;
    text-align: center;
    display: none;
    z-index: 20;
    background: var(--bg-surface);
    padding: 12px 12px 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--warm-border);
    box-shadow: 0 10px 28px rgba(31, 30, 27, .12);
    box-sizing: border-box;
}
.book-info .data .actions .qr-pop.is-open .qr-content {
    display: block;
}
@media (hover: hover) and (pointer: fine) {
    .book-info .data .actions .qr-pop:hover .qr-content {
        display: block;
    }
}
.book-info .data .actions .qr-content img {
    display: block;
    width: 100%;
    border-radius: var(--radius-sm);
    background: #fff;
}
.book-info .data .actions .qr-content p {
    margin: 8px 0 0;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--text-secondary);
}

.detail-body {
    display: flex;
    align-items: flex-start;
}
.detail-body .left {
    flex: 1;
    min-width: 0;
}
.detail-body .right {
    flex: 0 0 28%;
    min-width: 280px;
    width: auto;
    padding-left: var(--site-module-gap);
    display: flex;
    flex-direction: column;
    gap: var(--site-module-gap);
}
.detail-body .right .book-media-panel {
    box-sizing: border-box;
    flex: 0 0 auto;
}
.detail-body .right .book-media-panel--fill {
    flex: 1 1 auto;
    min-height: 0;
}

/* --- 作品详情互动区（纵横风：作品荣誉双卡 + 月票/推荐票/打赏三联打孔票根） --- */
.book-interact {
    --interact-bg: var(--bg-surface);
    --interact-honor-bg: linear-gradient(180deg, var(--warm-surface) 0%, var(--warm-surface-end) 100%);
    --interact-honor-border: var(--warm-border-soft);
    --interact-ribbon-bg: var(--site-btn-accent-bg);
    --interact-ribbon-fg: var(--warm-ink);
    --interact-wreath-fg: var(--accent-bar);
    --interact-trophy-fg: var(--accent-2);
    --interact-stub-bg: linear-gradient(180deg, var(--warm-surface) 0%, var(--bg-surface) 100%);
    --interact-stub-head-bg: var(--warm-surface-end);
    --interact-stub-border: var(--warm-border-soft);
    --interact-stub-dash: var(--warm-border);
    --interact-num-fg: var(--warm-ink);
    --interact-btn-solid-bg: var(--site-btn-accent-bg);
    --interact-btn-solid-hover: var(--site-btn-accent-bg-hover);
    --interact-btn-solid-border: var(--warm-border);
    --interact-btn-solid-fg: var(--warm-ink);
    --interact-btn-solid-shadow: none;
    --interact-btn-outline-border: var(--line-strong);
    --interact-btn-outline-bg: var(--bg-surface);
    --interact-btn-outline-fg: var(--color-text);
    --interact-btn-outline-hover: var(--warm-surface);
    display: grid;
    grid-template-columns: minmax(232px, 264px) minmax(0, 1fr);
    gap: 20px;
    width: 100%;
    margin: 0 0 var(--site-module-gap);
    padding: 16px 20px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-default);
    background: var(--interact-bg);
    box-sizing: border-box;
}
/* 0 数据荣誉/支持区：仅收紧内部区块留白，严禁给外层卡片加 padding 导致顶栏/左侧色块脱边 */
.book-interact.is-compact,
.book-interact.is-empty {
    padding: 14px 18px 16px;
    gap: 16px;
    align-items: stretch;
}
.book-interact.is-compact .interact-sec-head,
.book-interact.is-empty .interact-sec-head {
    min-height: 24px;
    margin-bottom: 10px;
}
.book-interact.is-compact .interact-sec-title,
.book-interact.is-empty .interact-sec-title {
    font-size: 16px;
}
.book-interact.is-compact .honor-card,
.book-interact.is-empty .honor-card,
.book-interact.is-compact .interact-stub,
.book-interact.is-empty .interact-stub {
    padding: 0;
}
.book-interact.is-compact .honor-card--rank,
.book-interact.is-empty .honor-card--rank {
    min-height: 88px;
}
.book-interact.is-compact .honor-card--achieve,
.book-interact.is-empty .honor-card--achieve {
    min-height: 92px;
}
.book-interact.is-compact .interact-stub .stub-head,
.book-interact.is-empty .interact-stub .stub-head {
    padding: 8px 10px 7px;
}
.book-interact.is-compact .interact-stub .stub-body,
.book-interact.is-empty .interact-stub .stub-body {
    padding: 12px 10px 14px;
}
.interact-honor-col,
.interact-support-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.interact-sec-head {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    margin-bottom: 12px;
}
.interact-sec-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text);
}
.interact-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--line-mid);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    user-select: none;
    flex-shrink: 0;
    transition: border-color .18s, color .18s;
}
.interact-tip:hover,
.interact-tip:focus-visible {
    border-color: var(--warm-border);
    color: var(--warm-ink);
    outline: none;
}
.interact-tip[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: -6px;
    bottom: calc(100% + 8px);
    width: max-content;
    max-width: min(260px, 72vw);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: rgba(33, 33, 33, .92);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    white-space: normal;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(3px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
    z-index: 25;
}
.interact-tip[data-tip]:hover::after,
.interact-tip[data-tip]:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.interact-honor-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
}
.honor-card {
    border: 1px solid var(--interact-honor-border);
    border-radius: var(--radius-md);
    background: var(--interact-honor-bg);
    overflow: hidden;
    box-sizing: border-box;
    flex: 1 1 0;
}
.honor-card--rank {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    align-items: stretch;
    min-height: 100px;
}
.honor-rank-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 6px;
    background: var(--interact-ribbon-bg);
    color: var(--interact-ribbon-fg);
    border-right: 1px solid var(--interact-honor-border);
    text-align: center;
}
.honor-trophy-svg {
    width: 28px;
    height: 28px;
    color: var(--interact-trophy-fg);
    flex-shrink: 0;
}
.honor-badge-label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}
.honor-rank-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 8px;
    min-width: 0;
}
.honor-card--achieve {
    display: flex;
    flex-direction: column;
    min-height: 104px;
}
.honor-achieve-head {
    padding: 6px 10px;
    background: var(--interact-ribbon-bg);
    color: var(--interact-ribbon-fg);
    border-bottom: 1px solid var(--interact-honor-border);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}
.honor-achieve-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 8px;
    min-width: 0;
}
.honor-wreath {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 100%;
}
.honor-wheat {
    width: 14px;
    height: 30px;
    color: var(--interact-wreath-fg);
    flex-shrink: 0;
}
.honor-wheat--right {
    transform: scaleX(-1);
}
.honor-wreath-val {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--interact-ribbon-fg);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.honor-wreath-val.is-unranked {
    font-size: 15px;
    font-weight: 700;
}
.honor-sub {
    display: block;
    max-width: 100%;
    font-size: 12px;
    line-height: 1.35;
    color: var(--text-muted);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.interact-stubs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    flex: 1 1 auto;
}
.interact-stub {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--interact-stub-border);
    border-radius: var(--radius-md);
    background: var(--interact-stub-bg);
    box-sizing: border-box;
    min-width: 0;
    transition: border-color .18s ease, box-shadow .18s ease;
}
@media (hover: hover) {
    .interact-stub:hover {
        --interact-stub-border: #e3b982;
        box-shadow: 0 6px 16px rgba(180, 110, 20, .08);
    }
}
.interact-stub .stub-head {
    position: relative;
    padding: 10px 10px 9px;
    text-align: center;
    background: var(--interact-stub-head-bg);
    border-bottom: 1px dashed var(--interact-stub-dash);
    border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;
}
.interact-stub .stub-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--interact-ribbon-fg);
}
.interact-stub .stub-head::before,
.interact-stub .stub-head::after {
    content: '';
    position: absolute;
    bottom: -7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--interact-bg, var(--bg-surface));
    border: 1px solid transparent;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 2;
    transition: border-color .18s ease;
}
.interact-stub .stub-head::before {
    left: -7px;
    border-top-color: var(--interact-stub-border);
    border-right-color: var(--interact-stub-border);
    transform: rotate(45deg);
}
.interact-stub .stub-head::after {
    right: -7px;
    border-bottom-color: var(--interact-stub-border);
    border-left-color: var(--interact-stub-border);
    transform: rotate(45deg);
}
.interact-stub .stub-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 16px 10px 16px;
    text-align: center;
    min-width: 0;
}
.interact-stub .stub-num {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--interact-num-fg);
    font-variant-numeric: tabular-nums;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.interact-stub .stub-unit {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-secondary);
}
.interact-stub .stub-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    min-height: 36px;
    margin: 4px 0 6px;
    min-width: 0;
}
.interact-stub .stub-meta-line {
    display: block;
    max-width: 100%;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.interact-stub .stub-meta-line:empty {
    display: none;
}
.interact-stub .stub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 126px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    touch-action: manipulation;
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.interact-stub .stub-btn--solid {
    border: 1px solid var(--interact-btn-solid-border, var(--warm-border));
    background: var(--interact-btn-solid-bg);
    color: var(--interact-btn-solid-fg, var(--warm-ink));
    box-shadow: var(--interact-btn-solid-shadow);
}
.interact-stub .stub-btn--solid:hover,
.interact-stub .stub-btn--solid:focus-visible {
    background: var(--interact-btn-solid-hover);
    border-color: var(--site-btn-accent-border-hover);
    color: var(--accent-pressed);
    outline: none;
}
.interact-stub .stub-btn--outline {
    border: 1px solid var(--interact-btn-outline-border);
    background: var(--interact-btn-outline-bg);
    color: var(--interact-btn-outline-fg);
}
.interact-stub .stub-btn--outline:hover,
.interact-stub .stub-btn--outline:focus-visible {
    background: var(--interact-btn-outline-hover);
    border-color: var(--color-emphasis);
    color: var(--color-emphasis);
    outline: none;
}
.interact-stub .stub-btn--outline.is-on {
    background: rgba(248, 96, 54, .12);
    border-color: var(--color-emphasis);
    color: var(--color-emphasis);
    font-weight: 700;
}

/* --- 纵横风作家区卡片 / 作者百科页 / 用户中心我的关注 --- */
.detail-body .right .author-zone-card {
    position: relative;
    overflow: visible;
    margin-top: 28px;
    padding: 48px 16px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--warm-border);
    background: linear-gradient(180deg, var(--warm-surface-end) 0%, var(--warm-surface) 54%, var(--bg-surface) 100%);
    box-sizing: border-box;
}
.author-zone-avatar {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 3px solid var(--bg-surface);
    box-shadow: 0 4px 12px rgba(150, 100, 30, .14);
    overflow: hidden;
    background: linear-gradient(135deg, #f5d498 0%, #dfa04e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
    z-index: 2;
}
.author-zone-avatar img,
.author-wiki-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.author-zone-initial {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(130, 68, 0, .26);
    user-select: none;
}
.author-zone-wiki {
    position: absolute;
    top: 12px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.4;
    transition: color .18s ease;
}
.author-zone-wiki .site-icon {
    font-size: 11px;
}
.author-zone-wiki:hover {
    color: var(--warm-ink);
}
.author-zone-name {
    margin: 0 0 8px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-strong);
}
.author-zone-name a {
    color: inherit;
    text-decoration: none;
    transition: color .18s ease;
}
.author-zone-name a:hover {
    color: var(--warm-ink);
}
.author-tier-row {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}
.author-tier-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 11px 0 26px;
    border-radius: 999px;
    background: linear-gradient(90deg, #fff3d1 0%, #ffe09a 100%);
    border: 1px solid #f0c66c;
    color: #8c5106;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
}
.author-tier-star-wrap {
    position: absolute;
    left: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 1px 2px rgba(180, 105, 0, .24));
}
.author-tier-star-svg {
    width: 26px;
    height: 26px;
    display: block;
}
.author-tier-star-svg .star-outer {
    fill: #db8912;
}
.author-tier-star-svg .star-inner {
    fill: #ffbe3b;
}
.author-tier-star-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2px;
    font-size: 11px;
    font-weight: 800;
    font-style: normal;
    color: #fff;
    text-shadow: 0 1px 2px rgba(135, 68, 0, .65);
    line-height: 1;
}
.author-tier-pill--sm {
    height: 20px;
    padding: 0 9px 0 22px;
    font-size: 11px;
}
.author-tier-pill--sm .author-tier-star-wrap,
.author-tier-pill--sm .author-tier-star-svg {
    width: 22px;
    height: 22px;
}
.author-tier-pill--sm .author-tier-star-num {
    font-size: 10px;
}
.author-signed-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid #e5b84b;
    background: #fffaf0;
    color: #9c5b08;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
}
.author-signed-badge--sm {
    height: 20px;
    padding: 0 8px;
    font-size: 11px;
}
.author-zone-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 8px 0 10px;
    text-align: center;
}
.author-stat-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 0;
    padding: 0 4px;
}
.author-stat-item + .author-stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 1px;
    background: var(--line-soft);
}
.author-stat-val {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    color: var(--color-text-strong);
    line-height: 1.2;
    max-width: 100%;
}
.author-stat-val strong {
    font-size: 19px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.author-stat-val em {
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    color: var(--text-secondary);
}
.author-stat-lbl {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.author-motto-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 4px 0 12px;
    padding: 0 6px;
    text-align: center;
}
.author-motto-text {
    margin: 0;
    font-family: var(--font-family-kaiti, "Kaiti SC", STKaiti, KaiTi, serif);
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
    word-break: break-word;
}
.author-motto-line {
    display: block;
    width: min(210px, 88%);
    height: 16px;
    margin-top: -1px;
    color: #dfc07c;
    pointer-events: none;
}
.author-follow-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.author-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    height: 32px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid #df9b5c;
    background: #fffaf4;
    color: #bf561d;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    touch-action: manipulation;
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.author-follow-btn:hover,
.author-follow-btn:focus-visible {
    background: #fff2e3;
    border-color: #cf7d38;
    color: #a84612;
    box-shadow: 0 2px 8px rgba(191, 86, 29, .12);
    outline: none;
}
.author-follow-btn.is-followed {
    border-color: var(--line-mid);
    background: var(--bg-subtle);
    color: var(--text-secondary);
    box-shadow: none;
}
.author-follow-btn.is-followed:hover,
.author-follow-btn.is-followed:focus-visible {
    border-color: #deb29b;
    background: #fff8f5;
    color: #b84a39;
}
.author-follow-btn--lg {
    min-width: 120px;
    height: 36px;
    font-size: 14px;
}
.author-follow-count {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    opacity: .84;
}
.author-follow-count::before {
    content: "·";
    margin: 0 5px;
    font-weight: 700;
    opacity: .72;
}
.author-zone-card .author-zone-works {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--warm-border-soft);
}

.author-wiki-page > .site-container > .site-breadcrumb {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0;
}
.author-wiki-hero {
    border-radius: var(--radius-md);
    border: 1px solid var(--line-default);
    background: var(--bg-surface);
    padding: 24px 28px 20px;
    margin-bottom: 0;
    box-sizing: border-box;
    overflow: clip;
}
.author-wiki-top {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line-faint);
}
.author-wiki-avatar {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 3px solid var(--bg-surface);
    box-shadow: 0 6px 16px rgba(150, 100, 30, .14);
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f5d498 0%, #dfa04e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.author-wiki-avatar .author-zone-initial {
    font-size: 32px;
}
.author-wiki-info {
    flex: 1 1 auto;
    min-width: 0;
}
.author-wiki-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}
.author-wiki-name {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--color-text-strong);
}
.author-wiki-join {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-muted);
}
.author-wiki-cta {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.author-wiki-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding-top: 18px;
    text-align: center;
}
.author-wiki-stats .author-stat-val strong {
    font-size: 22px;
}
.author-wiki-bio {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line-faint);
    font-size: 14px;
    line-height: 1.65;
    text-align: left;
}
.author-wiki-bio-label {
    flex: 0 0 auto;
    font-weight: 700;
    color: var(--color-text-strong);
}
.author-wiki-bio-text {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    color: var(--text-secondary);
    word-break: break-word;
}
.author-wiki-works {
    border-radius: var(--radius-md);
    border: 1px solid var(--line-default);
    background: var(--bg-surface);
    padding: 18px 22px 22px;
    box-sizing: border-box;
    overflow: clip;
}
.author-works-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 4px;
}
.author-works-title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: var(--color-text-strong);
}
.author-work-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.author-work-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line-soft);
}
.author-work-card:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}
.author-work-cover {
    position: relative;
    width: 102px;
    height: 136px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-subtle);
    display: block;
}
.author-work-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}
.author-work-cover .vip-tag {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 2;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
    border-radius: var(--radius-sm);
    pointer-events: none;
}
@media (hover: hover) {
    .author-work-cover:hover img {
        transform: scale(1.04);
    }
}
.author-work-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.author-work-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}
.author-work-name a {
    color: var(--color-text-strong);
    text-decoration: none;
    transition: color .18s ease;
}
.author-work-name a:hover {
    color: var(--color-emphasis);
}
.author-work-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.author-work-tags .serialize {
    padding: 1px 7px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.author-work-tags .serialize.ongoing {
    border: 1px solid var(--warm-border-soft);
    background: var(--warm-surface);
    color: var(--warm-ink);
}
.author-work-tags .serialize.done {
    border: 1px solid var(--line-soft);
    background: var(--line-faint);
    color: var(--text-muted);
}
.author-work-cat {
    padding: 1px 8px;
    border-radius: var(--radius-sm);
    background: var(--warm-surface);
    border: 1px solid var(--warm-border-soft);
    color: var(--warm-ink);
    text-decoration: none;
}
.author-work-cat:hover {
    color: var(--color-emphasis);
}
.author-work-stat {
    color: var(--text-muted);
}
.author-work-desc {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.author-work-chap {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.author-work-chap a {
    color: var(--text-secondary);
    text-decoration: none;
}
.author-work-chap a:hover {
    color: var(--color-emphasis);
}
.author-work-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 118px;
}
.author-work-actions .author-work-read {
    height: 36px;
    line-height: 34px;
    padding: 0 18px;
    border-radius: var(--radius-md);
    background: var(--site-btn-accent-bg);
    color: #6e4910;
    border: 1px solid var(--site-btn-accent-border);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: none;
    box-sizing: border-box;
    transition: background .18s, border-color .18s, color .18s;
}
.author-work-actions .author-work-read:hover {
    background: var(--site-btn-accent-bg-hover);
    border-color: var(--site-btn-accent-border-hover);
    color: #583808;
}
.author-work-actions .author-work-shelf {
    height: 34px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-default);
    background: var(--bg-surface);
    color: var(--color-text);
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s, border-color .18s, color .18s;
}
.author-work-actions .author-work-shelf:hover {
    background: var(--accent-tint);
    border-color: var(--site-btn-accent-border);
    color: var(--color-text-strong);
}

/* --- 首页全站分类索引卡（方雅目录网格，全量展示零裁切） --- */
.home-genre-index,
.book-home .section-box.home-genre-index {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
    background: var(--bg-surface);
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    box-sizing: border-box;
    overflow: hidden;
}
.home-genre-head,
.book-home .section-box.home-genre-index > .home-genre-head,
.book-home .section-box.home-genre-index > .home-genre-head.home-head--tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 14px;
    width: 100%;
    min-height: 48px;
    padding: 9px 16px;
    margin: 0;
    background: var(--bg-surface);
    border: none;
    border-bottom: 1px solid var(--line-faint);
    box-sizing: border-box;
}
.home-genre-head-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    min-width: 0;
    flex: 1 1 auto;
}

.home-genre-shortcuts {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
}
.home-genre-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease, background-color .15s ease;
}
.home-genre-link:focus-visible {
    outline: 2px solid var(--accent-bar);
    outline-offset: 1px;
    border-radius: var(--radius-md);
}
.home-genre-link--accent {
    background: var(--warm-tint);
    color: var(--warm-ink);
    font-weight: 700;
}
@media (hover: hover) {
    .home-genre-link:hover {
        color: var(--warm-ink);
        background: rgba(0, 0, 0, .028);
    }
    .home-genre-link--accent:hover {
        color: var(--warm-ink);
        background: var(--warm-tint-hover);
    }
}
.home-genre-head-aside {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    flex-shrink: 0;
    margin-left: auto;
}
.home-genre-more {
    font-size: 12.5px;
}
.book-home .section-box.home-genre-index .home-genre-head .top-section-tabs,
.home-genre-head .top-section-tabs,
.book-home .ranks-unified-aside .ranks-kind-tabs {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    gap: 3px;
    padding: 2px;
    margin: 0;
    background: var(--bg-subtle);
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
}
.book-home .section-box.home-genre-index .home-genre-head .top-section-tabs > .top-section-tab,
.home-genre-head .top-section-tabs > .top-section-tab,
.book-home .ranks-unified-aside .ranks-kind-tabs > .top-section-tab {
    flex: 0 0 auto;
    height: 26px;
    padding: 0 11px;
    margin: 0;
    border: none;
    border-bottom: none;
    border-radius: calc(var(--radius-md) - 1px);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1;
    color: var(--text-secondary);
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.book-home .section-box.home-genre-index .home-genre-head .top-section-tabs > .top-section-tab:hover,
.book-home .section-box.home-genre-index .home-genre-head .top-section-tabs > .top-section-tab:focus-visible,
.home-genre-head .top-section-tabs > .top-section-tab:hover,
.home-genre-head .top-section-tabs > .top-section-tab:focus-visible,
.book-home .ranks-unified-aside .ranks-kind-tabs > .top-section-tab:hover,
.book-home .ranks-unified-aside .ranks-kind-tabs > .top-section-tab:focus-visible {
    color: var(--color-text-strong);
    background: rgba(0, 0, 0, .03);
}
.book-home .section-box.home-genre-index .home-genre-head .top-section-tabs > .top-section-tab.is-active,
.book-home .section-box.home-genre-index .home-genre-head .top-section-tabs > .top-section-tab[aria-selected="true"],
.home-genre-head .top-section-tabs > .top-section-tab.is-active,
.home-genre-head .top-section-tabs > .top-section-tab[aria-selected="true"],
.book-home .ranks-unified-aside .ranks-kind-tabs > .top-section-tab.is-active,
.book-home .ranks-unified-aside .ranks-kind-tabs > .top-section-tab[aria-selected="true"] {
    background: var(--bg-surface);
    color: var(--warm-ink);
    font-weight: 700;
    border-bottom-color: transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.home-genre-body {
    width: 100%;
    padding: 10px 16px 12px;
    box-sizing: border-box;
}
.home-genre-panel {
    width: 100%;
}
.home-genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 4px 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.home-genre-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-genre-grid--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.home-genre-grid--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.home-genre-grid--cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.home-genre-grid--cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.home-genre-grid--cols-9 { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.home-genre-grid--cols-10 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.home-genre-grid--cols-11 { grid-template-columns: repeat(11, minmax(0, 1fr)); }
.home-genre-grid--cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.home-genre-item {
    min-width: 0;
}
.home-genre-tile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 7px 6px;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--color-text);
    font-size: 13.5px;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: color .16s ease, background-color .16s ease;
}
.home-genre-tile:focus-visible {
    outline: 2px solid var(--accent-bar);
    outline-offset: 1px;
    border-radius: var(--radius-md);
}
.home-genre-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
@media (hover: hover) {
    .home-genre-tile:hover {
        background: var(--warm-tint);
        color: var(--warm-ink);
    }
}

/* --- 首页新书速递 × 完本佳作双栏橱窗 --- */
.book-home .section-box.home-showcase {
    background: transparent;
    border: none;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
}
.book-home .section-box.home-showcase > .home-head,
.book-home .section-box.home-showcase > .home-head.home-head--tabs {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin: 0;
    border: var(--book-home-panel-border);
    border-radius: var(--radius-md);
}
.book-home .section-box.home-showcase > .home-head.home-head--tabs > .top-section-tabs {
    flex: 0 0 auto;
    gap: 20px;
}
.book-home .section-box.home-showcase > .home-head.home-head--tabs > .top-section-tabs > .top-section-tab {
    flex: 0 0 auto;
    padding: 0 4px;
}
.home-showcase-panel {
    width: 100%;
    min-width: 0;
}
.home-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}
.home-showcase-grid:has(> .home-showcase-col:only-child) {
    grid-template-columns: 1fr;
}
.home-showcase-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-surface);
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-sizing: border-box;
}
.home-showcase-head,
.home-showcase-col > .home-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: var(--home-head-min-h);
    margin: 0;
    padding: 0 15px;
    border: none;
    border-bottom: 1px solid var(--line-default);
    background: var(--bg-surface);
    box-sizing: border-box;
}
.home-showcase-head h2,
.home-showcase-head h3 {
    position: relative;
    margin: 0;
    padding-left: 11px;
    font-size: var(--user-section-heading-size);
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text-strong);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-showcase-head h2::before,
.home-showcase-head h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--accent-bar);
    border-radius: var(--radius-sm);
}
.home-showcase-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    padding: 12px 14px 14px;
    box-sizing: border-box;
}
.home-mini-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: transparent;
    min-width: 0;
    box-sizing: border-box;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease;
}
@media (hover: hover) {
    .home-mini-card:hover {
        background: var(--warm-surface);
        border-color: var(--warm-border-soft);
    }
}
.home-mini-cover {
    position: relative;
    width: 54px;
    height: 72px;
    flex: 0 0 54px;
    margin: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--line-faint);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    display: block;
}
.home-mini-cover > a {
    display: block;
    width: 100%;
    height: 100%;
}
.home-mini-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home-mini-cover .vip-tag {
    position: absolute;
    top: 3px;
    right: 3px;
    z-index: 2;
    font-size: 9px;
    line-height: 1.2;
    padding: 1px 4px;
    border-radius: var(--radius-xs);
}
.home-mini-body {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.home-mini-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-mini-title a {
    color: inherit;
    text-decoration: none;
    transition: color .15s ease;
}
.home-mini-card:hover .home-mini-title,
.home-mini-title a:hover {
    color: var(--color-emphasis);
}
.home-mini-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    line-height: 1.35;
    color: var(--text-muted);
    overflow: hidden;
    white-space: nowrap;
}
.home-mini-meta > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-mini-meta > span + span {
    flex-shrink: 0;
}
.home-mini-meta > span + span::before {
    content: '·';
    margin-right: 4px;
    color: var(--line-mid);
}
.home-mini-meta a {
    color: inherit;
    text-decoration: none;
}
.home-mini-meta a:hover {
    color: var(--color-emphasis);
}
.home-mini-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- 首页极简创作入驻尾带 --- */
.home-writer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    width: 100%;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-default);
    background: linear-gradient(90deg, var(--warm-surface) 0%, var(--warm-surface-end) 100%);
    box-sizing: border-box;
    overflow: clip;
}
.home-writer-cta-copy {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.home-writer-cta-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text-strong);
}
.home-writer-cta-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}
.home-writer-cta-actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.home-writer-cta-actions .site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    line-height: 1;
    padding: 0 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--warm-border-soft);
    background: var(--bg-surface);
    color: var(--color-text-strong);
    font-size: 13px;
    font-weight: 500;
    box-shadow: none;
    transition: border-color .16s ease, color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.home-writer-cta-actions .site-btn:hover {
    border-color: var(--warm-border);
    background: var(--bg-surface);
    color: var(--warm-ink);
    box-shadow: 0 2px 6px rgba(133, 90, 20, .08);
    transform: translateY(-1px);
}
.site-shell .home-writer-cta-actions a.site-btn.site-btn-primary,
.site-shell .home-writer-cta-actions a.site-btn.site-btn-primary:visited,
.home-writer-cta-actions .site-btn.site-btn-primary {
    background: #2f333a;
    border-color: #2f333a;
    color: #fff;
    font-weight: 600;
    box-shadow: none;
}
.site-shell .home-writer-cta-actions a.site-btn.site-btn-primary:hover,
.home-writer-cta-actions .site-btn.site-btn-primary:hover {
    background: #1f2228;
    border-color: #1f2228;
    color: #fff;
    box-shadow: none;
}

/* --- 首页生态导览快捷带 & 素宣暖金人气作家专栏 --- */
.home-eco-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}
.home-eco-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-default);
    background: var(--bg-surface);
    text-decoration: none;
    min-width: 0;
    box-sizing: border-box;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
    overflow: clip;
}
@media (hover: hover) {
    .home-eco-card:hover {
        transform: translateY(-1px);
        background: var(--warm-surface);
        border-color: var(--site-btn-accent-border);
        box-shadow: 0 5px 14px rgba(140, 95, 0, .06);
    }
}
.home-eco-ico {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--site-btn-accent-bg);
    border: 1px solid var(--site-btn-accent-border);
    color: var(--warm-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.home-eco-ico svg {
    width: 20px;
    height: 20px;
    display: block;
}
.home-eco-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.home-eco-top {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.home-eco-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-eco-badge {
    flex-shrink: 0;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--member-pill-bg);
    color: var(--member-pill-fg);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
}
.home-eco-desc {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

.web-sec-authors {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}
.book-home .web-sec-authors > .home-authors-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.book-home .web-sec-authors > .home-authors-head > .module-title.home-head-title {
    width: auto;
    padding: 0;
    border-bottom: none;
    flex: 0 0 auto;
}
.book-home .web-sec-authors > .home-authors-head > .top-section-tabs {
    flex: 0 0 auto;
    gap: 18px;
}
.book-home .web-sec-authors > .home-authors-head > .top-section-tabs > .top-section-tab {
    flex: 0 0 auto;
    padding: 6px 2px;
}
.home-authors-panel {
    width: 100%;
    flex: 0 0 100%;
    min-width: 0;
    padding: 14px 0 16px;
    box-sizing: border-box;
}
.home-authors-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.home-author-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 14px 15px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--warm-border);
    background: linear-gradient(180deg, var(--warm-surface) 0%, var(--bg-surface) 100%);
    min-width: 0;
    box-sizing: border-box;
    transition: border-color .18s ease, box-shadow .18s ease;
    overflow: clip;
}
@media (hover: hover) {
    .home-author-card:hover {
        border-color: var(--site-btn-accent-border);
        box-shadow: 0 5px 15px rgba(140, 95, 0, .06);
    }
}
.home-author-main {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}
.home-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--bg-surface);
    box-shadow: 0 2px 8px rgba(150, 100, 30, .14);
    background: linear-gradient(135deg, #f5d498 0%, #dfa04e 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.home-author-avatar--sm {
    width: 42px;
    height: 42px;
}
.home-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home-author-init {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(130, 68, 0, .25);
}
.home-author-avatar--sm .home-author-init {
    font-size: 16px;
}
.home-author-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.home-author-top {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.home-author-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .16s ease;
}
.home-author-main:hover .home-author-name {
    color: var(--warm-ink);
}
.home-author-star {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 1px 2px rgba(180, 105, 0, .24));
}
.home-author-star .author-tier-star-svg {
    width: 22px;
    height: 22px;
}
.home-author-star .author-tier-star-num {
    font-size: 10px;
}
.home-author-signed {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 1px 6px;
    border-radius: 999px;
    border: 1px solid var(--warm-border);
    background: var(--warm-surface);
    color: var(--warm-ink);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
.home-author-bio {
    margin: 9px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-author-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--text-muted);
}
.home-author-dot {
    margin: 0 1px;
}
.home-author-rep {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px dashed var(--warm-border-soft);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-secondary);
    text-decoration: none;
    min-width: 0;
}
.home-author-rep-pic {
    width: 22px;
    height: 30px;
    flex: 0 0 22px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    display: block;
    background: var(--line-faint);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.home-author-rep-lbl {
    flex-shrink: 0;
    color: var(--text-muted);
}
.home-author-rep-name {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 500;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .16s ease;
}
.home-author-rep .site-icon {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--text-muted);
}
.home-author-rep:hover .home-author-rep-name {
    color: var(--warm-ink);
}
.home-author-reps {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px dashed var(--warm-border-soft);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 1.4;
    min-width: 0;
}
.home-author-reps > .home-author-rep-lbl {
    font-size: 11.5px;
    white-space: nowrap;
}
.home-author-reps-list {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 5px;
    overflow: hidden;
}
.home-author-rep-chip {
    flex: 0 1 auto;
    min-width: min(64px, 30%);
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px 2px 3px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-soft);
    background: var(--bg-surface);
    color: var(--color-text);
    text-decoration: none;
    box-sizing: border-box;
    overflow: hidden;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
.home-author-rep-chip:only-child {
    min-width: 0;
}
.home-author-rep-chip .home-author-rep-pic {
    width: 16px;
    height: 22px;
    flex: 0 0 16px;
}
.home-author-rep-chip .home-author-rep-name {
    font-size: 11.5px;
    line-height: 1.35;
}
@media (hover: hover) {
    .home-author-rep-chip:hover {
        border-color: var(--warm-border);
        background: var(--warm-surface);
    }
    .home-author-rep-chip:hover .home-author-rep-name {
        color: var(--warm-ink);
    }
}

/* --- 频道页现代页头与子分类快捷锚点带 --- */
.channel-hero-bar {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-sizing: border-box;
}
.channel-hero-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 15px 20px 14px;
}
.channel-hero-copy {
    min-width: 0;
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.channel-hero-title {
    position: relative;
    margin: 0;
    padding-left: 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-strong);
    letter-spacing: -.01em;
}
.channel-hero-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--accent-bar);
    border-radius: var(--radius-sm);
}
.channel-hero-sub {
    margin: 0;
    padding-left: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}
.channel-sub-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    padding: 9px 20px 10px;
    background: var(--bg-surface);
    border-top: 1px solid var(--line-faint);
    box-sizing: border-box;
}
.channel-sub-link {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}
.channel-sub-link:focus-visible {
    outline: 2px solid var(--accent-bar);
    outline-offset: 1px;
}
.channel-sub-link--all {
    margin-left: auto;
    background: var(--warm-tint);
    border: none;
    color: var(--warm-ink);
    font-weight: 600;
}
@media (hover: hover) {
    .channel-sub-link:hover {
        background: var(--warm-tint);
        color: var(--warm-ink);
    }
    .channel-sub-link--all:hover {
        background: var(--warm-tint-hover);
        color: var(--warm-ink);
    }
}

/* --- 频道页“互动风向标 × 本频人气作家”双栏轻紧凑辅助区 --- */
.channel-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: var(--site-module-gap);
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}
.channel-spotlight--single {
    grid-template-columns: 1fr;
}
.channel-spot-card {
    padding: 0;
    margin: 0;
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}
.channel-spot-card > .module-title.module-title-inset {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid var(--line-soft);
    background: var(--bg-surface);
}
.channel-honor-list {
    margin: 0;
    padding: 4px 14px 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    list-style: none;
    display: flex;
    flex-direction: column;
}
.channel-honor-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-bottom: 1px solid var(--line-faint);
    border-radius: var(--radius-sm);
    min-width: 0;
    transition: background-color .16s ease;
}
.channel-honor-item:hover {
    background: var(--bg-zebra);
}
.channel-honor-item:last-child {
    border-bottom: none;
}
.channel-honor-cov {
    width: 32px;
    height: 42px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-subtle);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .09);
    display: block;
}
.channel-honor-cov img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.channel-honor-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.channel-honor-head {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}
.channel-honor-name {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text-strong);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.channel-honor-name:hover {
    color: var(--warm-ink);
}
.channel-honor-sep {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--line-mid);
}
.channel-honor-author {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 104px;
}
.channel-honor-author:hover {
    color: var(--warm-ink);
}
.channel-honor-sub {
    display: flex;
    align-items: center;
    min-width: 0;
}
.channel-honor-latest {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-width: 0;
    font-size: 12px;
    line-height: 1.35;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .15s ease;
}
.channel-honor-latest-lbl {
    flex-shrink: 0;
    color: var(--text-muted);
}
.channel-honor-latest-txt {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
a.channel-honor-latest:hover {
    color: var(--warm-ink);
}
a.channel-honor-latest:hover .channel-honor-latest-txt {
    text-decoration: underline;
}
.channel-honor-latest--empty {
    color: var(--text-muted);
    opacity: .78;
}
.channel-honor-metrics {
    flex-shrink: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 5px;
}
.channel-metric {
    padding: 1px 6px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 1px solid var(--line-soft);
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.45;
    white-space: nowrap;
}
.channel-metric--gold {
    background: var(--site-btn-accent-bg);
    border-color: var(--site-btn-accent-border);
    color: var(--warm-ink);
    font-weight: 600;
}
.channel-authors-list {
    padding: 4px 14px 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1 1 auto;
    justify-content: flex-start;
}
.channel-author-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    width: 100%;
    max-width: 100%;
    padding: 10px 6px;
    border: 0;
    border-bottom: 1px solid var(--line-faint);
    border-radius: var(--radius-sm);
    background: transparent;
    min-width: 0;
    box-sizing: border-box;
    transition: background-color .16s ease;
}
.channel-author-item:hover {
    background: var(--bg-zebra);
}
.channel-author-item:last-child {
    border-bottom: none;
}
.channel-author-item .home-author-avatar--sm {
    width: 38px;
    height: 38px;
    margin-top: 2px;
    text-decoration: none;
}
.channel-author-body {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.channel-author-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}
.channel-author-ident {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    text-decoration: none;
}
.channel-author-ident:hover .home-author-name {
    color: var(--warm-ink);
}
.channel-author-stats {
    flex-shrink: 0;
    flex-wrap: nowrap;
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
}
.channel-author-works {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
}
.channel-author-works > .home-author-rep-lbl {
    font-size: 11px;
    white-space: nowrap;
}
.channel-author-works-list {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}
.channel-author-work-chip {
    flex: 0 1 auto;
    min-width: min(74px, 30%);
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px 2px 3px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-soft);
    background: var(--bg-surface);
    color: var(--color-text);
    text-decoration: none;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(31, 30, 27, .03);
    transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.channel-author-work-chip:only-child {
    min-width: 0;
}
.channel-author-work-chip .home-author-rep-pic {
    width: 16px;
    height: 22px;
    flex: 0 0 16px;
}
.channel-author-work-chip .home-author-rep-name {
    font-size: 12px;
    line-height: 1.35;
}
.channel-author-more {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 1px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--warm-tint);
    color: var(--warm-ink);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    transition: background-color .15s ease, color .15s ease;
}
.channel-author-more .site-icon {
    font-size: 10px;
}
@media (hover: hover) {
    .channel-author-work-chip:hover {
        border-color: var(--warm-border);
        background: var(--warm-surface);
        box-shadow: 0 2px 6px rgba(140, 95, 0, .07);
    }
    .channel-author-work-chip:hover .home-author-rep-name {
        color: var(--warm-ink);
    }
    .channel-author-more:hover {
        background: var(--warm-tint-hover);
    }
}

.detail-catalogue {
    width: 100%;
    padding: 14px 20px 0 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-default);
    background: var(--bg-surface);
    box-sizing: border-box;
    overflow: clip;
}
.detail-catalogue .catalogue-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    color: var(--color-text);
}
.detail-catalogue .catalogue-head h2,
.detail-catalogue .catalogue-head h3 {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}
.detail-catalogue .catalogue-head-title {
    color: var(--color-text-strong);
}
.detail-catalogue .catalogue-head-meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.detail-catalogue .catalogue-head-dot {
    display: inline-block;
    width: 3.5px;
    height: 3.5px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.detail-catalogue .catalogue-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.detail-catalogue .cat-bulk-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: auto;
    padding: 2px 0;
    border-radius: 0;
    border: none;
    background: transparent;
    color: var(--warm-ink);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s ease, opacity .15s ease;
}
.detail-catalogue .cat-bulk-btn .site-icon {
    font-size: 14px;
}
.detail-catalogue .cat-bulk-btn:hover {
    background: transparent;
    border: none;
    color: var(--color-emphasis-hover);
    opacity: .86;
}
.detail-catalogue .catalogue-head .sort-btn {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
}
.detail-catalogue .catalogue-head .sort-btn button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-text);
    background: none;
    border: none;
    padding: 2px 0;
    cursor: pointer;
    line-height: 1.4;
    white-space: nowrap;
    transition: color .15s ease, opacity .15s ease;
}
.detail-catalogue .catalogue-head .sort-btn button .site-icon {
    font-size: 14px;
}
.detail-catalogue .catalogue-head .sort-btn button:hover {
    color: var(--warm-ink);
}
.detail-catalogue .catalogue-body {
    width: auto;
    margin-inline: -14px;
    padding-inline: 14px;
    overflow: hidden;
}
.detail-catalogue .list-empty {
    margin: 0;
    padding: 32px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}
.catalogue-list-status {
    margin: 0;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}
.catalogue-list-status--loading {
    color: var(--text-muted);
}
.catalogue-list-status--err {
    color: var(--color-emphasis);
}
.detail-catalogue .volume-group .list-empty {
    padding: 0 12px;
    line-height: 40px;
    min-height: 40px;
    text-align: left;
}

.footer {
    width: 100%;
    max-width: var(--site-max-w);
    margin: 0 auto;
    padding: 32px var(--site-gutter);
    box-sizing: border-box;
    flex-shrink: 0;
}
.layout-slot--footer-top:not([hidden]):has(> :not(script):not(style):not(link):not(.hide):not([hidden])) + .footer {
    padding-top: 24px;
}
.footer-inner {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-sizing: border-box;
}
.layout-slot {
    width: 100%;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line-default);
}
.layout-slot[hidden] {
    display: none;
}
.layout-slot--header {
    width: 100%;
    max-width: none;
    margin: calc(var(--header-h) + 1px) 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    box-sizing: border-box;
    background: linear-gradient(180deg, #fdfbf7 0%, #f6efe0 100%);
    border-bottom: 1px solid var(--header-border);
}
.layout-slot--header:not(:has(> :not(script):not(style):not(link):not(.hide):not([hidden]))) {
    display: none;
}
.layout-slot--header:not([hidden]):has(> :not(script):not(style):not(link):not(.hide):not([hidden])) + main.site-main,
.layout-slot--header:not([hidden]):has(> :not(script):not(style):not(link):not(.hide):not([hidden])) + main[class$="-detail"] > .detail-header,
.layout-slot--header:not([hidden]):has(> :not(script):not(style):not(link):not(.hide):not([hidden])) + main[class$="-detail"] > .layout-slot--content-top {
    padding-top: var(--site-module-gap);
}
.layout-slot--footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--site-module-gap);
    width: 100%;
    max-width: var(--site-max-w);
    margin: 0 auto;
    padding: 0 var(--site-gutter);
    box-sizing: border-box;
    border-bottom: none;
}
.layout-slot--footer-top:not(:has(> :not(script):not(style):not(link):not(.hide):not([hidden]))) {
    display: none;
}
.layout-slot--footer-bottom {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    box-sizing: border-box;
    background: linear-gradient(180deg, #faf5ea 0%, #f3e9d6 100%);
    border-top: 1px solid var(--line-default);
    border-bottom: none;
}
.layout-slot--footer-bottom:not(:has(> :not(script):not(style):not(link):not(.hide):not([hidden]))) {
    display: none;
}
.layout-slot--content-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--site-module-gap);
    width: 100%;
    max-width: var(--site-max-w);
    box-sizing: border-box;
    padding: 0;
    margin: 0 auto;
    text-align: center;
    border-bottom: none;
}
.layout-slot--content-top:not(:has(> :not(script):not(style):not(link):not(.hide):not([hidden]))) {
    display: none;
}
.layout-slot--sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: none;
    text-align: left;
    box-sizing: border-box;
}
.layout-slot--sidebar:not(:has(> :not(script):not(style):not(link):not(.hide):not([hidden]))) {
    display: none;
}
.layout-slot--search-promo {
    width: 100%;
    margin: 0 0 16px;
    padding: 0;
    border-bottom: none;
    text-align: left;
    box-sizing: border-box;
}
.layout-slot--search-promo:not(:has(> :not(script):not(style):not(link):not(.hide):not([hidden]))) {
    display: none;
}
.layout-slot--overlay {
    border: 0;
    padding: 0;
    margin: 0;
    width: 0;
    height: 0;
    overflow: visible;
    pointer-events: none;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 24px;
}
.footer-links-group {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 18px;
}
.footer-links-group + .footer-links-group {
    padding-left: 20px;
    border-left: 1px solid var(--line-default);
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .2s ease;
}
.footer-links a:hover {
    color: var(--color-text-strong);
}
.footer-copyright {
    text-align: center;
}
.footer-copyright p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}
.footer-copyright p a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s ease;
}
.footer-copyright p a:hover {
    color: var(--text-secondary);
}
.footer-filing {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 16px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: center;
}
.footer-copyright + .footer-filing {
    margin-top: -10px;
}
.footer-filing a,
.footer-filing span {
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s ease;
}
.footer-filing a:hover {
    color: var(--text-secondary);
}
.footer-filing a:focus-visible {
    outline: 2px solid var(--accent-bar);
    outline-offset: 2px;
    border-radius: 3px;
}

.return-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    display: none;
}
.return-top.is-visible {
    display: block;
}
.return-top button {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--line-default);
    border-radius: 50%;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}
.return-top button:hover {
    background: var(--line-faint);
    border-color: var(--line-default);
    color: var(--color-text);
}
.return-top-icon {
    display: block;
    width: 20px;
    height: 20px;
}

.detail-catalogue .volume-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.detail-catalogue .volume-group:last-child {
    margin-bottom: 0;
}
.detail-catalogue .volume-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 40px;
    margin: 0 -14px 6px;
    padding: 9px 14px;
    width: auto;
    background: var(--bg-subtle);
    border: none;
    border-radius: var(--radius-sm);
    box-sizing: border-box;
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: background-color .15s ease;
}
.detail-catalogue .volume-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--color-text-strong);
    cursor: pointer;
    position: relative;
    line-height: 1.4;
}
.detail-catalogue .volume-title-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    cursor: pointer;
    max-width: 100%;
    min-width: 0;
}
.volume-title-name {
    font-weight: 600;
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
}
.volume-title-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}
.volume-title-count {
    font-size: inherit;
    font-weight: inherit;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
}
.vol-badge {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 7px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}
.vol-badge--free {
    color: #2e7d57;
    background: rgba(46, 125, 87, .10);
}
.vol-badge--limited-free {
    color: #267355;
    background: rgba(38, 115, 85, .13);
}
.vol-badge--coin {
    color: #9a6d29;
    background: rgba(179, 134, 61, .13);
}
.vol-badge--vip {
    color: #9a5b1f;
    background: rgba(196, 125, 43, .14);
}
.volume-head-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.volume-chevron {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1;
    flex-shrink: 0;
    transition: color .15s ease;
}
.detail-catalogue .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;
    -webkit-tap-highlight-color: transparent;
    transition: color .15s ease, opacity .15s ease;
}
.detail-catalogue .volume-head .vol-buy-btn:hover {
    background: transparent;
    border: none;
    color: var(--color-emphasis-hover);
    opacity: .84;
}
.detail-catalogue .volume-head .vol-vip-btn {
    color: #9a5b1f;
    background: transparent;
    border: none;
}
.detail-catalogue .volume-head .vol-vip-btn:hover {
    background: transparent;
    border: none;
    color: #7d4512;
    opacity: .84;
}
.detail-catalogue .volume-head:hover {
    background: var(--warm-surface-end);
}
.detail-catalogue .volume-head:hover .volume-chevron {
    color: var(--warm-ink);
}

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

.detail-catalogue .chapter-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}
.book-item.is-removing {
    opacity: 0;
    transition: opacity .5s ease;
}

.novel-detail .catalogue-list .chapter-list {
    gap: 0 20px;
}
.catalogue-list .chapter-list li {
    line-height: 40px;
    height: 40px;
    overflow: hidden;
    font-size: 14px;
    flex-basis: calc((100% - 40px) / 3);
    box-sizing: border-box;
}
.catalogue-list .chapter-list li a {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
    color: var(--color-text);
    text-decoration: none;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.catalogue-list .chapter-list li a:hover {
    color: var(--color-emphasis);
}
.detail-catalogue .catalogue-list .chapter-list li {
    border-bottom: 1px solid var(--line-default);
}
.detail-catalogue .catalogue-list .chapter-list.cat-last-row-1 li:nth-last-child(-n+1),
.detail-catalogue .catalogue-list .chapter-list.cat-last-row-2 li:nth-last-child(-n+2),
.detail-catalogue .catalogue-list .chapter-list.cat-last-row-3 li:nth-last-child(-n+3) {
    border-bottom: none;
}
.catalogue-list .chapter-list li a .chapter-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 0 1 auto;
}
.catalogue-list .chapter-list li a .site-icon-lock,
.catalogue-list .chapter-list li a .site-icon-unlock {
    margin-left: 6px;
    font-size: 13.5px;
    flex-shrink: 0;
    line-height: 1;
}
.catalogue-list .chapter-list li a .site-icon-lock {
    color: #b3863d;
}
.catalogue-list .chapter-list li a .site-icon-unlock {
    color: #2e7d57;
}

.comic-detail .detail-catalogue .volume-group .chapter-list {
    padding-bottom: 4px;
}
.comic-detail .detail-catalogue .volume-group .list-empty {
    padding: 10px 12px 12px;
    line-height: 1.5;
    min-height: 0;
}
.comic-detail .catalogue-list .chapter-list {
    gap: 20px;
}
.comic-detail .catalogue-list .chapter-list li {
    font-size: 14px;
    flex-basis: calc((100% - 100px) / 6);
    height: auto;
    line-height: normal;
    overflow: hidden;
}
.comic-detail .catalogue-list .chapter-list li a {
    display: block;
    width: 100%;
    height: 160px;
    position: relative;
    border-radius: var(--radius-md);
    transition: transform .5s;
    overflow: hidden;
    background-color: var(--line-faint);
    text-decoration: none;
}
.comic-detail .catalogue-list .chapter-list li a:hover {
    transform: scale(1.05, 1.05);
}
.comic-detail .catalogue-list .chapter-list li a img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.comic-detail .catalogue-list .chapter-list li a p {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #00000099;
    width: 100%;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: var(--line-default);
    font-size: 14px;
    z-index: 2;
}
.comic-detail .catalogue-list .chapter-list li a:hover p {
    color: #fff;
}
.comic-detail .catalogue-list .chapter-list li a em.comic-lock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(23, 22, 19, .62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2;
}
.comic-detail .catalogue-list .chapter-list li a em.comic-lock-badge i {
    margin-left: 0;
    font-size: 13.5px;
    line-height: 1;
}
.comic-detail .catalogue-list .chapter-list li a em.comic-lock-badge.is-locked i {
    color: #e2b86b;
}
.comic-detail .catalogue-list .chapter-list li a em.comic-lock-badge.is-unlocked {
    background: rgba(23, 22, 19, .54);
}
.comic-detail .catalogue-list .chapter-list li a em.comic-lock-badge.is-unlocked i {
    color: #5ebd8d;
}

.book-media-block {
    padding: 8px 0 12px;
    box-sizing: border-box;
}
.submodule-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 10px;
    padding-left: 8px;
    border-left: 3px solid var(--line-default);
    line-height: 1.4;
}
.panel-carousel-outer {
    position: relative;
    user-select: none;
}
.panel-carousel-arrow {
    position: absolute;
    top: 93px;
    transform: translateY(-50%);
    width: 22px;
    height: 44px;
    background: rgba(0, 0, 0, .22);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 0;
    transition: background .2s;
}
@media (hover: hover) {
    .panel-carousel-arrow:hover {
        background: rgba(0, 0, 0, .48);
    }
}
.panel-carousel-arrow .site-icon { font-size: 13px; }
.panel-carousel-arrow.panel-prev {
    left: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.panel-carousel-arrow.panel-next {
    right: 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.panel-carousel {
    overflow: hidden;
    position: relative;
}
.panel-slides-track {
    display: flex;
    transition: transform .45s ease;
    will-change: transform;
}
.panel-slides-track[data-slide="1"] { transform: translateX(-100%); }
.panel-slides-track[data-slide="2"] { transform: translateX(-200%); }
.panel-slides-track[data-slide="3"] { transform: translateX(-300%); }
.panel-slides-track[data-slide="4"] { transform: translateX(-400%); }
.panel-slides-track[data-slide="5"] { transform: translateX(-500%); }
.panel-slides-track[data-slide="6"] { transform: translateX(-600%); }
.panel-slides-track[data-slide="7"] { transform: translateX(-700%); }
.panel-slides-track[data-slide="8"] { transform: translateX(-800%); }
.panel-slides-track[data-slide="9"] { transform: translateX(-900%); }
.panel-slides-track[data-slide="10"] { transform: translateX(-1000%); }
.panel-slides-track[data-slide="11"] { transform: translateX(-1100%); }
.panel-slides-track[data-slide="12"] { transform: translateX(-1200%); }
.panel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.panel-carousel-dots {
    display: none;
}
.panel-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background .25s, width .25s, border-radius .25s;
}
.panel-carousel-dot.active {
    background: var(--accent-bar);
    width: 16px;
    border-radius: var(--radius-md);
}
.panel-slide-link {
    width: 140px;
    flex-shrink: 0;
    text-decoration: none;
    display: block;
    position: relative;
}
.panel-slide-cover {
    width: 140px;
    height: 186px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}
.panel-slide-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
@media (hover: hover) {
    .panel-slide-link:hover .panel-slide-cover img {
        transform: scale(1.06);
    }
}
.panel-slide-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    padding: 20px 8px 8px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, .35) 50%, transparent 100%);
}

.sms-code-box {
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}
.sms-code-box.is-submitting::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 9;
    background: rgba(255, 255, 255, .72);
    pointer-events: auto;
}
.sms-code-box.is-submitting::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 10;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 2px solid var(--line-default);
    border-top-color: var(--accent-bar);
    border-radius: 50%;
    animation: site-ui-spin .75s linear infinite;
    pointer-events: none;
}
.sms-code-box .code-img {
    width: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    aspect-ratio: 268 / 116;
    border: none;
    border-bottom: 1px solid var(--line-default);
    background: #000;
}
.sms-code-foot {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    padding: 8px 0 10px;
    box-sizing: border-box;
}
.sms-code-hint {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
    white-space: nowrap;
}
.sms-code-target {
    flex: 0 0 auto;
    margin: 0;
    padding: 3px 8px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.18em;
    color: var(--color-emphasis);
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
    background: var(--site-btn-accent-bg);
    border: 1px solid var(--site-btn-accent-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--site-btn-accent-shadow);
}
.sms-code-box .code-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
    user-select: none;
    -webkit-user-drag: none;
}
.sms-code-box .code-img .refresh {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}
.sms-code-box .code-img .refresh:hover {
    opacity: .88;
}
.sms-code-box .code-img .refresh i {
    display: block;
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .75);
}
.sms-code-box .code-img .points-item {
    display: block;
    position: absolute;
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 12px;
    text-align: center;
    border-radius: 50%;
    background: #83da35;
    color: #fff;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
}
.sms-code-box .code-img.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, .35);
}
.sms-code-box:has(.code-img.is-loading) .sms-code-foot,
.sms-code-box:has(.code-img.is-loading) .smspic-btn {
    pointer-events: none;
    opacity: .85;
}
.sms-code-box:has(.code-img.is-loading) .code-img .refresh {
    pointer-events: none;
    opacity: .55;
}
.sms-code-box:has(.code-img.is-loading) .code-img .refresh i {
    display: inline-block;
    animation: site-ui-spin .75s linear infinite;
}
.sms-code-box .smspic-btn {
    cursor: pointer;
    text-align: center;
    border: 1px solid var(--site-btn-accent-border, #e5d28a);
    border-radius: 0 0 var(--radius-xs) var(--radius-xs);
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
    height: 42px;
    line-height: 40px;
    background-color: var(--site-btn-accent-bg, #fff9eb);
    color: var(--color-text, #333);
    font-size: 16px;
    font-weight: 600;
    box-shadow: var(--site-btn-accent-shadow, 0 1px 2px rgba(72, 58, 0, .05));
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.sms-code-box .smspic-btn:hover:not(:disabled):not(.is-busy) {
    background-color: var(--site-btn-accent-bg-hover, #fff4d6);
    border-color: var(--site-btn-accent-border-hover, #dcc878);
    color: var(--color-text, #333);
    box-shadow: var(--site-btn-accent-shadow-hover, 0 1px 3px rgba(72, 58, 0, .08));
}
.sms-code-box .smspic-btn:active:not(:disabled):not(.is-busy) {
    background-color: var(--site-btn-accent-bg, #fff9eb);
    border-color: var(--site-btn-accent-border, #e5d28a);
}
.sms-code-box .smspic-btn:disabled,
.sms-code-box .smspic-btn.is-busy {
    opacity: .55;
    cursor: not-allowed;
}

html[data-theme="dark"] .sms-code-box .code-img,
body.theme-dark .sms-code-box .code-img,
.login-embed-body--dark .sms-code-box .code-img {
    border-bottom-color: rgba(255, 255, 255, .12);
}
html[data-theme="dark"] .sms-code-hint,
body.theme-dark .sms-code-hint,
.login-embed-body--dark .sms-code-hint {
    color: #aaa;
}
html[data-theme="dark"] .sms-code-target,
body.theme-dark .sms-code-target,
.login-embed-body--dark .sms-code-target {
    background: #404040;
    border-color: #555;
    color: #f0d080;
    box-shadow: none;
}
html[data-theme="dark"] .sms-code-box .smspic-btn,
body.theme-dark .sms-code-box .smspic-btn,
.login-embed-body--dark .sms-code-box .smspic-btn {
    background: #404040;
    border-color: #555;
    color: #e0e0e0;
    box-shadow: none;
}
html[data-theme="dark"] .sms-code-box .smspic-btn:hover:not(:disabled):not(.is-busy),
body.theme-dark .sms-code-box .smspic-btn:hover:not(:disabled):not(.is-busy),
.login-embed-body--dark .sms-code-box .smspic-btn:hover:not(:disabled):not(.is-busy) {
    background: #4a4a4a;
    border-color: #666;
    color: #fff;
}
html[data-theme="dark"] .sms-code-box.is-submitting::after,
body.theme-dark .sms-code-box.is-submitting::after,
.login-embed-body--dark .sms-code-box.is-submitting::after {
    background: rgba(0, 0, 0, .55);
}

.site-breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-breadcrumb-link);
}
.site-breadcrumb a {
    color: var(--color-breadcrumb-link);
    text-decoration: none;
}
.site-breadcrumb a:hover {
    color: var(--color-emphasis);
}
.site-breadcrumb span {
    color: var(--text-muted);
}
.site-breadcrumb > span:not(:last-child) {
    color: var(--color-breadcrumb-link);
}
.site-breadcrumb a:not(:last-child)::after,
.site-breadcrumb > span:not(:last-child)::after {
    content: " /";
    color: var(--color-breadcrumb-sep);
    margin: 0 4px;
}
.site-breadcrumb cite,
.site-breadcrumb span[aria-current="page"] {
    font-style: normal;
    color: var(--color-text-strong);
}
.site-breadcrumb a:last-child {
    color: var(--color-text-strong);
}
.site-main.account-main > .site-container {
    gap: 18px;
}

/* --- 读者/作家双中心顶部全宽工作台横幅（同源 channel-hero-bar） --- */
.acct-hero-bar {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 14px 22px 18px;
    margin: 0;
    background: linear-gradient(180deg, #fcfaf4 0%, #ffffff 100%);
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    box-sizing: border-box;
    overflow: clip;
}
.acct-hero-bar .site-breadcrumb {
    padding: 0 0 10px;
    margin: 0 0 13px;
    font-size: 12.5px;
    line-height: 1.4;
    border-bottom: 1px solid var(--line-faint);
}
.acct-hero-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 22px;
    min-width: 0;
}
.acct-hero-id {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 300px;
    min-width: 0;
}
.acct-hero-avatar {
    flex: 0 0 auto;
    display: inline-flex;
    line-height: 0;
    padding: 2px;
    border-radius: 50%;
    border: 1.5px solid var(--warm-border);
    background: var(--bg-surface);
    box-shadow: 0 2px 8px rgba(133, 90, 20, .09);
    transition: border-color .18s ease, transform .18s ease;
}
.acct-hero-avatar:hover {
    border-color: var(--warm-ink);
    transform: translateY(-1px);
}
.acct-hero-avatar img {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.acct-hero-copy {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.acct-hero-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    min-width: 0;
}
.acct-hero-title {
    margin: 0;
    max-width: 100%;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--color-text-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.acct-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--line-default);
    background: var(--bg-subtle);
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
a.acct-pill:hover {
    border-color: var(--warm-border);
    color: var(--warm-ink);
}
.acct-pill.is-vip {
    background: var(--warm-tint);
    border-color: var(--warm-border-soft);
    color: var(--warm-ink);
}
.acct-pill .site-icon {
    font-size: 12px;
    line-height: 1;
}
.acct-hero-sub {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}
.acct-hero-page {
    color: var(--text-secondary);
    font-weight: 500;
}
.acct-hero-dot {
    color: var(--line-mid);
}
.acct-hero-sub strong {
    margin-left: 3px;
    font-weight: 700;
    color: var(--warm-ink);
    font-variant-numeric: tabular-nums;
}
.acct-hero-wallet {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .15s ease;
}
.acct-hero-wallet:hover {
    color: var(--warm-ink);
}
.acct-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 9px;
    flex: 0 0 auto;
}
.acct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 34px;
    min-height: 34px;
    padding: 0 15px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .15s ease;
}
.acct-btn:focus-visible {
    outline: 2px solid var(--accent-bar);
    outline-offset: 1px;
}
.acct-btn i,
.acct-btn .site-icon {
    font-size: 13.5px;
    line-height: 1;
    color: currentColor;
}
.site-shell a.acct-btn--primary,
.site-shell a.acct-btn--primary:visited,
a.acct-btn--primary,
a.acct-btn--primary:visited,
button.acct-btn--primary,
.acct-btn--primary {
    background: var(--cta-solid-bg);
    border: 1px solid var(--cta-solid-bg);
    color: var(--cta-solid-fg);
    font-weight: 600;
    box-shadow: none;
}
.site-shell a.acct-btn--primary:hover,
a.acct-btn--primary:hover,
button.acct-btn--primary:hover,
.acct-btn--primary:hover {
    background: var(--cta-solid-bg-hover);
    border-color: var(--cta-solid-bg-hover);
    color: var(--cta-solid-fg);
    box-shadow: none;
}
.site-shell a.acct-btn--ghost,
.site-shell a.acct-btn--ghost:visited,
a.acct-btn--ghost,
a.acct-btn--ghost:visited,
button.acct-btn--ghost,
.acct-btn--ghost {
    background: var(--bg-surface);
    border: 1px solid var(--line-default);
    color: var(--text-secondary);
    box-shadow: none;
}
.site-shell a.acct-btn--ghost:hover,
a.acct-btn--ghost:hover,
button.acct-btn--ghost:hover,
.acct-btn--ghost:hover {
    background: var(--bg-subtle);
    border-color: var(--warm-border-soft);
    color: var(--warm-ink);
    box-shadow: none;
}
.site-shell a.acct-btn--subtle,
.site-shell a.acct-btn--subtle:visited,
a.acct-btn--subtle,
a.acct-btn--subtle:visited,
button.acct-btn--subtle,
.acct-btn--subtle {
    background: transparent;
    border-color: var(--line-default);
    color: var(--text-secondary);
    padding: 0 12px;
}
.site-shell a.acct-btn--subtle:hover,
a.acct-btn--subtle:hover,
button.acct-btn--subtle:hover,
.acct-btn--subtle:hover {
    background: var(--warm-tint);
    border-color: var(--warm-border-soft);
    color: var(--warm-ink);
}
.site-shell a.acct-btn--danger,
.site-shell a.acct-btn--danger:visited,
a.acct-btn--danger,
a.acct-btn--danger:visited,
button.acct-btn--danger,
.acct-btn--danger {
    background: var(--bg-surface);
    border-color: rgba(255, 73, 73, .32);
    color: var(--status-rejected-fg);
}
.site-shell a.acct-btn--danger:hover,
a.acct-btn--danger:hover,
button.acct-btn--danger:hover,
.acct-btn--danger:hover {
    background: var(--status-rejected-bg);
    border-color: var(--status-rejected-fg);
    color: var(--status-rejected-fg);
}
.acct-btn--sm {
    height: 30px;
    min-height: 30px;
    padding: 0 12px;
    font-size: 12.5px;
}
.acct-btn--xs {
    height: 28px;
    min-height: 28px;
    padding: 0 11px;
    font-size: 12px;
}
.acct-btn:disabled,
.acct-btn[aria-disabled="true"] {
    cursor: default;
    transform: none;
    box-shadow: none;
}

.account-layout {
    display: grid;
    grid-template-columns: 204px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.account-sidebar,
.book-media-panel,
.content-card,
.stats-tile:not(.stats-tile--nested) {
    background: var(--bg-surface);
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    overflow: clip;
}

.account-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    padding: 12px 10px 14px;
    align-self: start;
    min-width: 0;
    overflow: clip;
    box-sizing: border-box;
}
.acct-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 10px 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line-faint);
}
.account-sidebar .acct-side-head .account-sidebar-name {
    margin-top: 0;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--text-muted);
}
.acct-nav {
    width: 100%;
    min-width: 0;
}

.account-sidebar .account-sidebar-name {
    display: block;
    max-width: 100%;
    margin-top: 9px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-strong);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-sidebar .sidebar-menu {
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
}
.account-sidebar .sidebar-menu li {
    margin-bottom: 2px;
}
.account-sidebar .sidebar-menu li:last-child {
    margin-bottom: 0;
}
.account-sidebar .sidebar-menu li.sidebar-menu-sep {
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid var(--line-faint);
}
.account-sidebar .sidebar-menu li a {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 11px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    color: var(--text-secondary);
    transition: background-color .15s ease, color .15s ease;
}
.account-sidebar .sidebar-menu li a:hover {
    background-color: rgba(0, 0, 0, .028);
    color: var(--color-text-strong);
}
.account-sidebar .sidebar-menu li.is-active a {
    background-color: var(--warm-tint);
    color: var(--warm-ink);
    font-weight: 600;
}
.account-sidebar .sidebar-menu li.is-active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: var(--warm-ink);
}
.account-sidebar .sidebar-menu li.is-active a:hover {
    background-color: var(--warm-tint-hover);
    color: var(--warm-ink);
}
.account-sidebar .sidebar-menu li a .site-icon {
    flex-shrink: 0;
    width: 18px;
    margin-right: 9px;
    font-size: 16px;
    line-height: 18px;
    text-align: center;
    color: var(--text-muted);
    transition: color .15s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.account-sidebar .sidebar-menu li a:hover .site-icon {
    color: var(--text-secondary);
}
.account-sidebar .sidebar-menu li.is-active a .site-icon {
    color: var(--warm-ink);
}
.account-sidebar .sidebar-menu li a span {
    flex: 1 1 auto;
    line-height: 1.3;
}
.account-sidebar .sidebar-menu li a .sidebar-badge {
    flex: 0 0 auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--color-emphasis);
    color: var(--bg-surface);
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    font-style: normal;
    font-variant-numeric: tabular-nums;
}

.account-content {
    display: flex;
    flex-direction: column;
    gap: var(--site-module-gap);
    min-width: 0;
    min-height: calc(100vh - 286px);
    min-height: calc(100dvh - 286px);
    container-type: inline-size;
    container-name: account-main;
}
/* 用户/作家中心表格：统一小号字，压过全局 .site-table 14px */
.account-main .site-table th,
.account-main .site-table td {
    font-size: 13px;
    line-height: 1.45;
}
.account-main .site-table .member-pill,
.account-main .site-table .member-delta,
.account-main .site-table .status-tag {
    font-size: inherit;
    line-height: inherit;
}

/* --- 读者/作家双中心统一模块范式（.acct-section） --- */
.section-box.acct-section {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0;
    background: var(--bg-surface);
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-sizing: border-box;
}
.account-main .content-card.acct-section {
    padding: 0;
}
.acct-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--line-faint);
    background: var(--bg-surface);
    box-sizing: border-box;
}
.acct-sec-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    flex: 1 1 auto;
    min-width: 0;
}
.acct-sec-title h2,
.acct-sec-title h3 {
    position: relative;
    margin: 0;
    padding-left: 11px;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text-strong);
}
.acct-sec-title h2::before,
.acct-sec-title h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 15px;
    background: var(--accent-bar);
    border-radius: 1.5px;
}
.acct-sec-sub {
    flex-basis: 100%;
    margin: 0;
    padding-left: 11px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--text-muted);
}
.acct-sec-extra {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    flex: 0 0 auto;
    min-width: 0;
}
.acct-sec-meta {
    font-size: 12.5px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.acct-back-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 26px;
    padding: 0 9px 0 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-default);
    background: var(--bg-subtle);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.acct-back-link .site-icon {
    font-size: 12px;
    line-height: 1;
}
.acct-back-link:hover {
    border-color: var(--warm-border);
    background: var(--warm-surface);
    color: var(--warm-ink);
}
.acct-sec-body {
    padding: 18px 20px;
    box-sizing: border-box;
}
.acct-sec-body--table {
    padding: 0;
}
.acct-sec-body > [role="tabpanel"][hidden] {
    display: none;
}
.acct-sec-foot {
    padding: 12px 20px 16px;
    border-top: 1px solid var(--line-faint);
    background: var(--bg-surface);
}
.acct-sec-foot:empty {
    display: none;
}
.acct-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.acct-table-wrap > .site-table {
    margin: 0;
}
.acct-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 11px 20px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--line-faint);
    box-sizing: border-box;
}
.acct-toolbar-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.acct-toolbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
}
.acct-notice-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 11px 16px;
    background: var(--warm-surface);
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    box-sizing: border-box;
}
.acct-notice-bar.is-danger {
    background: var(--status-rejected-bg);
    border-color: rgba(158, 74, 56, .24);
    border-left: 3px solid var(--status-rejected-fg);
    color: var(--color-text);
}
.acct-notice-bar.is-warning {
    background: var(--warm-surface-end);
    border-color: var(--warm-border);
    border-left: 3px solid var(--accent-bar);
    color: var(--color-text);
}
.acct-notice-bar.is-warning .acct-notice-bar-ico,
.acct-notice-bar.is-warning strong {
    color: var(--warm-ink);
}
.acct-section > .acct-notice-bar {
    margin: 14px 20px 0;
}
.acct-notice-bar-ico {
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1;
    color: var(--warm-ink);
}
.acct-notice-bar.is-danger .acct-notice-bar-ico,
.acct-notice-bar.is-danger strong {
    color: var(--status-rejected-fg);
}
.acct-notice-bar-text,
.acct-notice-bar-body {
    flex: 1 1 220px;
    min-width: 0;
    margin: 0;
}
.acct-notice-bar-text strong,
.acct-notice-bar-body strong {
    color: var(--warm-ink);
    font-weight: 700;
}
.acct-notice-bar-body strong {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
}
.acct-notice-bar-body p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}
.acct-notice-bar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
}

/* --- 读者中心首屏：Bento 双翼 + 5 格阅读足迹带 + 继续阅读 + 猜你喜欢 --- */
.section-box.acct-bento-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
    align-items: stretch;
    width: 100%;
    margin: 0;
    background: var(--bg-surface);
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-sizing: border-box;
}
.acct-bento-wallet {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    min-width: 0;
    background: var(--bg-surface);
    box-sizing: border-box;
}
.acct-bento-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-faint);
}
.acct-bento-id {
    flex: 1 1 200px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.acct-bento-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}
.acct-bento-meta {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
}
.acct-bento-meta strong {
    margin-right: 4px;
    font-weight: 600;
    color: var(--text-secondary);
}
.acct-bento-meta-vip {
    color: var(--warm-ink);
    font-weight: 600;
}
.acct-bento-meta-vip:hover {
    text-decoration: underline;
}
.acct-bento-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    flex: 0 0 auto;
}
.acct-asset-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 2px 0;
}
.acct-asset-cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px 16px 4px 0;
    min-width: 0;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background-color .15s ease;
}
.acct-asset-cell + .acct-asset-cell {
    padding-left: 16px;
    border-left: 1px solid var(--line-faint);
}
.acct-asset-cell:hover .acct-asset-label {
    color: var(--warm-ink);
}
.acct-asset-label {
    font-size: 12px;
    line-height: 1.3;
    color: var(--text-muted);
    transition: color .15s ease;
}
.acct-asset-val {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-strong);
    font-variant-numeric: tabular-nums;
}
.acct-asset-unit {
    font-style: normal;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}
.acct-tier-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line-faint);
}
.acct-tier-inline-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 220px;
    min-width: 0;
}
.acct-tier-inline-label {
    font-size: 12px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.acct-tier-progress {
    flex: 1 1 90px;
    min-width: 68px;
    max-width: 180px;
    height: 7px;
}
.acct-tier-inline-pct {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--warm-ink);
    font-variant-numeric: tabular-nums;
}
a.acct-tier-inline-link {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--warm-ink);
    white-space: nowrap;
}
a.acct-tier-inline-link:hover {
    text-decoration: underline;
}
.acct-bento-sign {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(155deg, var(--warm-surface) 0%, var(--warm-surface-end) 100%);
    border-left: 1px solid var(--warm-border-soft);
    min-width: 0;
    scroll-margin-top: 88px;
    box-sizing: border-box;
}
.acct-sign-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.acct-sign-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-strong);
}
.acct-bento-sign .sign-in-btn {
    border-radius: 999px;
}
.acct-bento-sign .sign-in-btn--done,
.acct-bento-sign .sign-in-btn:disabled,
.acct-bento-sign .sign-in-btn--done:hover,
.acct-bento-sign .sign-in-btn:disabled:hover {
    background: var(--warm-tint);
    border-color: transparent;
    color: var(--warm-ink);
    box-shadow: none;
    transform: none;
}
.acct-sign-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 8px 0;
    border-top: 1px dashed var(--warm-border-soft);
    border-bottom: 1px dashed var(--warm-border-soft);
}
.acct-sign-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 12px;
    min-width: 0;
}
.acct-sign-stat + .acct-sign-stat {
    padding-left: 14px;
    padding-right: 0;
    border-left: 1px solid var(--warm-border-soft);
}
.acct-sign-num {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--warm-ink);
    font-variant-numeric: tabular-nums;
}
.acct-sign-num em {
    font-style: normal;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}
.acct-sign-label {
    font-size: 12px;
    color: var(--text-muted);
}
.acct-sign-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* 5 格阅读足迹轻指标带 */
.section-box.acct-metrics-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    margin: 0;
    background: var(--bg-surface);
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-sizing: border-box;
}
.acct-metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 15px 10px;
    text-align: center;
    text-decoration: none;
    border-right: 1px solid var(--line-faint);
    min-width: 0;
    transition: background-color .16s ease;
}
.acct-metric-item:last-child {
    border-right: none;
}
.acct-metric-item:hover {
    background: var(--warm-tint);
}
.acct-metric-num {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-strong);
    font-variant-numeric: tabular-nums;
}
.acct-metric-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 100%;
    font-size: 12.5px;
    line-height: 1.3;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.acct-metric-label .site-icon {
    font-size: 13.5px;
    color: var(--warm-ink);
    opacity: .78;
}
.acct-metric-item:hover .acct-metric-label {
    color: var(--warm-ink);
}
.acct-metric-item.is-unread .acct-metric-num,
.acct-metric-item.is-unread .acct-metric-label .site-icon {
    color: var(--color-emphasis);
    opacity: 1;
}

/* 继续阅读 2 列卡（对齐首页 home-mini-card） */
.acct-recent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.acct-recent-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-soft);
    background: var(--bg-surface);
    min-width: 0;
    box-sizing: border-box;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.acct-recent-card:hover {
    border-color: var(--warm-border);
    background: var(--warm-surface);
    box-shadow: 0 3px 10px rgba(133, 90, 20, .06);
}
.acct-recent-cov {
    position: relative;
    flex: 0 0 64px;
    width: 64px;
    height: 86px;
    aspect-ratio: 3 / 4;
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-subtle);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}
.acct-recent-cov > a {
    display: block;
    width: 100%;
    height: 100%;
}
.acct-recent-cov img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.acct-recent-cov .feat-card-kind,
.acct-cover-thumb .feat-card-kind {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    padding: 1px 6px;
    font-size: 11px;
    line-height: 1.5;
    border-radius: var(--radius-xs);
    background: rgba(24, 24, 28, .66);
    color: #fff;
    letter-spacing: .02em;
}
.acct-recent-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.acct-recent-name {
    margin: 0;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.acct-recent-name a {
    color: inherit;
    text-decoration: none;
}
.acct-recent-card:hover .acct-recent-name a {
    color: var(--warm-ink);
}
.acct-recent-chap {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.acct-recent-foot {
    margin-top: 4px;
    display: flex;
    align-items: center;
}
.acct-recent-foot .acct-btn {
    border-radius: 999px;
}

/* 猜你喜欢 6 列书封网格（12 本满 2 行，单本封面封顶 104×139px） */
.acct-cover-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px 12px;
}
.acct-cover-card {
    min-width: 0;
    text-align: center;
}
.acct-cover-card > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.acct-cover-thumb {
    position: relative;
    display: block;
    width: 100%;
    max-width: 104px;
    margin: 0 auto;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}
.acct-cover-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.acct-cover-card > a:hover .acct-cover-thumb {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(133, 90, 20, .12);
}
.acct-cover-name {
    width: 100%;
    max-width: 104px;
    margin: 6px auto 0;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .15s ease;
}
.acct-cover-card > a:hover .acct-cover-name {
    color: var(--warm-ink);
}

/* --- 藏书阁 / 阅读历史 / 书签 / 已购 2 列现代卡 --- */
.user-item-list.acct-book-grid {
    padding-top: 0;
    gap: 14px;
}
.acct-book-card {
    align-items: stretch;
    gap: 14px;
    padding: 14px 16px;
}
.acct-book-cov {
    position: relative;
    flex: 0 0 76px;
    width: 76px;
    height: 102px;
    aspect-ratio: 3 / 4;
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-subtle);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.acct-book-cov > a {
    display: block;
    width: 100%;
    height: 100%;
}
.acct-book-cov img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.acct-book-cov .shelf-pin-tag {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 2;
    margin: 0;
    padding: 1px 6px;
    background: #f5ead1;
    color: #734c10;
    border: 1px solid rgba(224, 199, 144, .75);
    border-radius: var(--radius-sm);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.45;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}
.acct-book-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
}
.acct-book-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.acct-book-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.acct-book-title a {
    color: inherit;
    text-decoration: none;
}
.acct-book-title a:hover {
    color: var(--warm-ink);
}
.acct-book-author {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.acct-book-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.acct-book-chap {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.acct-book-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--line-faint);
}
.acct-book-foot .acct-btn {
    border-radius: 999px;
}
.acct-book-ops {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.acct-op-btn,
.acct-book-card .acct-op-btn.delete-btn {
    position: static;
    top: auto;
    right: auto;
    width: auto;
    height: 26px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    opacity: 1;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.acct-op-btn .site-icon {
    font-size: 12.5px;
    line-height: 1;
}
.acct-op-btn:hover,
.acct-op-btn.is-pinned {
    background: var(--warm-tint);
    border-color: var(--warm-border-soft);
    color: var(--warm-ink);
}
.acct-op-btn--danger:hover,
.acct-book-card .acct-op-btn.delete-btn:hover {
    background: var(--status-rejected-bg);
    border-color: rgba(255, 73, 73, .28);
    color: var(--status-rejected-fg);
}

/* --- 会员中心全景暖金横幅 + 3 列图标特权卡 + 邀请联动带 --- */
.section-box.acct-member-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 1fr);
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0;
    background: linear-gradient(135deg, var(--warm-surface) 0%, var(--warm-surface-end) 100%);
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-sizing: border-box;
}
.acct-member-main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px;
    min-width: 0;
}
.acct-member-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.acct-member-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.acct-member-kv-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 4px 0;
}
.acct-member-kv {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 14px;
    min-width: 0;
}
.acct-member-kv + .acct-member-kv {
    padding-left: 14px;
    border-left: 1px solid var(--warm-border-soft);
}
.acct-member-kv-label {
    font-size: 12px;
    color: var(--text-muted);
}
.acct-member-kv-val {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-strong);
    font-variant-numeric: tabular-nums;
    word-break: break-word;
}
.acct-member-next {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 12px;
    border-top: 1px dashed var(--warm-border-soft);
}
.acct-member-next-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.acct-member-next-title {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--color-text-strong);
}
.acct-member-next-pct {
    font-size: 13px;
    font-weight: 700;
    color: var(--warm-ink);
    font-variant-numeric: tabular-nums;
}
.acct-member-next .acct-tier-progress {
    max-width: none;
    width: 100%;
    height: 8px;
}
.acct-member-next-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
}
.acct-member-next-need {
    margin: 0;
    font-size: 12.5px;
    color: var(--text-secondary);
}
.acct-member-next-perks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.acct-member-next-remark {
    font-size: 12px;
    color: var(--text-muted);
}
.acct-member-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    background: rgba(255, 255, 255, .58);
    border-left: 1px solid var(--warm-border-soft);
    min-width: 0;
}
.acct-member-metrics {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.acct-member-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.acct-member-metric-label {
    font-size: 12px;
    color: var(--text-muted);
}
.acct-member-metric-val {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-strong);
    font-variant-numeric: tabular-nums;
}
.acct-member-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.acct-member-actions .acct-btn {
    flex: 1 1 110px;
}
.acct-perk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}
.acct-perk-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-soft);
    background: var(--bg-surface);
    min-width: 0;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.acct-perk-card:hover {
    border-color: var(--warm-border-soft);
    background: var(--warm-surface);
}
.acct-perk-card.is-granted {
    border-color: var(--warm-border-soft);
    background: linear-gradient(180deg, var(--warm-surface) 0%, var(--bg-surface) 100%);
}
.acct-perk-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.acct-perk-ico {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.acct-perk-ico svg {
    width: 18px;
    height: 18px;
    display: block;
}
.acct-perk-card.is-granted .acct-perk-ico {
    background: var(--warm-tint);
    color: var(--warm-ink);
}
.acct-perk-title {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text-strong);
}
.acct-perk-desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--text-secondary);
}
.acct-invite-band {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line-faint);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.acct-invite-band-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.acct-invite-band-head h3 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--color-text-strong);
}
.acct-invite-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    overflow: hidden;
}
.acct-invite-kpi {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 13px 16px;
    min-width: 0;
}
.acct-invite-kpi + .acct-invite-kpi {
    border-left: 1px solid var(--line-soft);
}
.acct-invite-kpi-label {
    font-size: 12px;
    color: var(--text-muted);
}
.acct-invite-kpi-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--warm-ink);
    font-variant-numeric: tabular-nums;
}
.acct-invite-records {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.acct-subtable-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-text-strong);
}

/* --- 充值收银台（步骤编号 + 选中角标套餐卡 + SVG 支付方式） --- */
.acct-pay-step {
    margin-bottom: 22px;
}
.acct-pay-step-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
}
.acct-pay-step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #f5ead1;
    color: #734c10;
    font-size: 11.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.acct-pay-step-head h3 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--color-text-strong);
}
.option-list.acct-sku-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.option-list.acct-sku-grid li,
.option-list.acct-pay-methods li {
    position: relative;
    overflow: hidden;
}
.option-list.acct-sku-grid li.is-active::after,
.option-list.acct-pay-methods li.is-active::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 22px;
    height: 22px;
    background: linear-gradient(225deg, #f5ead1 50%, transparent 50%);
}
.option-list.acct-sku-grid li.is-active::before,
.option-list.acct-pay-methods li.is-active::before {
    content: '';
    position: absolute;
    top: 3px;
    right: 4px;
    z-index: 1;
    width: 4px;
    height: 7px;
    border-right: 1.6px solid #734c10;
    border-bottom: 1.6px solid #734c10;
    transform: rotate(42deg);
}
.option-list.acct-pay-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 210px));
    gap: 12px;
}
.option-list.acct-pay-methods li {
    flex: none;
    max-width: none;
    min-width: 0;
}
.acct-pay-foot {
    padding-top: 6px;
    border-top: 1px solid var(--line-faint);
}
.acct-pay-foot .pay-btn {
    width: auto;
    min-width: 200px;
    height: 40px;
    min-height: 40px;
    padding: 0 28px;
    font-size: 14px;
}

/* --- 个人资料与账号安全（双栏头像卡 + 分节表单卡 + 6 项分段切换） --- */
.seg-switch.acct-profile-tabs {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.seg-switch.acct-profile-tabs::-webkit-scrollbar {
    display: none;
}
.acct-profile-split {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
.acct-avatar-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-soft);
    background: linear-gradient(180deg, var(--warm-surface) 0%, var(--bg-surface) 100%);
    box-sizing: border-box;
}
.acct-avatar-panel .avatar-uploader {
    margin-bottom: 0;
}
.acct-form-card {
    padding: 20px 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-soft);
    background: var(--bg-surface);
    box-sizing: border-box;
    overflow: clip;
}
.acct-form-card--danger {
    border-color: rgba(255, 73, 73, .26);
}
.acct-form-card-head {
    margin: -20px -22px 18px;
    padding: 11px 20px;
    border-bottom: 1px solid var(--line-faint);
    background: var(--bg-subtle);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.acct-form-card-head h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-strong);
}
.acct-form-card--danger .acct-form-card-head h3 {
    color: var(--status-rejected-fg);
}
.acct-form-card .user-info-form {
    max-width: 580px;
    margin: 0;
}
.acct-form-card > .acct-notice-bar {
    margin-bottom: 16px;
}
.acct-form-card .cancel-account-form {
    margin: 14px 0 0;
    padding: 0;
    border: none;
    background: transparent;
}
.acct-profile-fields .user-info-form {
    max-width: none;
}
.acct-profile-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 0 0 18px 128px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-faint);
    background: var(--bg-subtle);
    overflow: clip;
}
.acct-profile-summary-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.acct-profile-summary-label {
    font-size: 12px;
    color: var(--text-muted);
}
.acct-profile-summary-val {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-text-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.acct-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 128px;
    margin: 18px 0 0;
}
.acct-form-card > .acct-form-actions {
    padding-left: 0;
}
.acct-form-actions .acct-btn,
.acct-form-actions .site-btn {
    min-width: 132px;
    height: var(--site-ctrl-h);
    min-height: var(--site-ctrl-h);
}
.acct-totp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.acct-totp-grid .user-info-form .site-form-item {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 14px;
}
.acct-totp-grid .user-info-form .site-form-label {
    flex: none;
    width: 100%;
    padding: 0 0 6px;
    text-align: left;
}
.acct-totp-grid .acct-form-actions {
    padding-left: 0;
    margin-top: 12px;
}
.cancel-account-wrap.acct-form-card {
    max-width: none;
    margin: 0;
}

/* --- 站内信与意见反馈现代收件箱流 --- */
.acct-notice-stream {
    gap: 12px;
}
.acct-notice-card {
    padding: 15px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--line-soft);
}
.acct-notice-card:hover {
    border-color: var(--warm-border-soft);
}
.acct-notice-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--color-text-strong);
    line-height: 1.45;
}

/* --- 我的关注：与首页 home-author-card 同源的现代作者名片网格 --- */
.acct-follow-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.acct-follow-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px 13px;
    border-radius: var(--radius-md);
    border: 1px solid var(--warm-border-soft);
    background: linear-gradient(180deg, var(--warm-surface) 0%, var(--bg-surface) 100%);
    min-width: 0;
    box-sizing: border-box;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.acct-follow-card:hover {
    border-color: var(--warm-border);
    box-shadow: 0 4px 14px rgba(133, 90, 20, .07);
}
.acct-follow-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}
.acct-follow-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none;
}
.acct-follow-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--bg-surface);
    box-shadow: 0 2px 8px rgba(150, 100, 30, .12);
    background: linear-gradient(135deg, #f5d498 0%, #dfa04e 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.acct-follow-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.acct-follow-init {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(130, 68, 0, .24);
}
.acct-follow-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.acct-follow-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.acct-follow-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-strong);
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.acct-follow-main:hover .acct-follow-name {
    color: var(--warm-ink);
}
.acct-follow-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 5px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}
.acct-follow-dot {
    color: var(--line-mid);
}
.acct-follow-top .author-follow-btn {
    flex-shrink: 0;
    min-width: 82px;
    height: 30px;
    padding: 0 14px;
    font-size: 12.5px;
}
.acct-follow-rep {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-faint);
    background: var(--bg-subtle);
    font-size: 12.5px;
    color: var(--text-secondary);
    text-decoration: none;
    min-width: 0;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
a.acct-follow-rep:hover {
    border-color: var(--warm-border-soft);
    background: var(--warm-surface);
    color: var(--warm-ink);
}
.acct-follow-rep-lbl {
    flex: 0 0 auto;
    font-size: 11.5px;
    color: var(--text-muted);
}
.acct-follow-rep-name {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    color: var(--color-text-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
a.acct-follow-rep:hover .acct-follow-rep-name {
    color: var(--warm-ink);
}
.acct-follow-rep .site-icon {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--text-muted);
}

.user-home-coin span {
    color: var(--warm-ink);
}

.user-home-hero .sign-in-stat {
    margin: 0 2px;
    font-weight: 700;
    color: var(--warm-ink);
    font-variant-numeric: tabular-nums;
}

.user-home-hero .sign-in-action .sign-in-note {
    margin: 3px 0 0;
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.4;
    text-align: left;
}
.user-home-hero .sign-in-action .sign-in-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 28px;
    min-height: 28px;
    padding: 0 11px;
    line-height: 1;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid #e0c790;
    background: #f6ecd6;
    color: #6e4910;
    white-space: nowrap;
    box-sizing: border-box;
    box-shadow: none;
}
.user-home-hero .sign-in-action .sign-in-btn:hover {
    background: #efe1c2;
    border-color: #d3b36e;
    color: #583808;
}
.user-home-hero .sign-in-action .sign-in-btn .site-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-right: 0;
    font-size: 13px;
    line-height: 1;
    vertical-align: 0;
}
.user-home-hero .sign-in-btn--done,
.user-home-hero .sign-in-btn:disabled,
.user-home-hero .sign-in-btn--done:hover,
.user-home-hero .sign-in-btn:disabled:hover {
    background: var(--warm-tint);
    border-color: transparent;
    color: var(--warm-ink);
    box-shadow: none;
    cursor: default;
    opacity: 1;
}

.user-home-plugin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}
.user-home-plugin-grid:empty,
.user-home-plugin-grid:not(:has(> :not(script))) {
    display: none;
}
.user-home-plug-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--line-default);
    box-shadow: 0 1px 3px rgba(31, 30, 27, .03);
    text-decoration: none;
    color: inherit;
    min-width: 0;
    box-sizing: border-box;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
a.user-home-plug-card::after {
    content: '\203a';
    flex: 0 0 auto;
    margin-left: 2px;
    font-size: 18px;
    line-height: 1;
    color: var(--text-muted);
    transition: transform .16s ease, color .16s ease;
}
a.user-home-plug-card:hover {
    border-color: var(--warm-border);
    background: var(--warm-surface);
    box-shadow: 0 3px 12px rgba(154, 109, 41, .07);
}
a.user-home-plug-card:hover::after {
    color: var(--warm-ink);
    transform: translateX(2px);
}
.user-home-plug-ico {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--warm-surface-end);
    border: 1px solid var(--warm-border-soft);
    color: var(--warm-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-sizing: border-box;
}
.user-home-plug-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.user-home-plug-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--color-text-strong);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-home-plug-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-home-plug-badge {
    flex: 0 0 auto;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--warm-border-soft);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    background: var(--site-btn-accent-bg);
    color: var(--warm-ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
/* 仅启用 1 个插件卡时：通栏舒展铺满，描述完整展示不截断 */
.user-home-plugin-grid > .user-home-plug-card:only-child,
.user-home-plugin-grid:not(:has(> .user-home-plug-card:nth-of-type(2))) > .user-home-plug-card {
    grid-column: 1 / -1;
    padding: 16px 22px;
    gap: 16px;
    background: linear-gradient(90deg, var(--warm-surface) 0%, var(--bg-surface) 44%);
}
.user-home-plugin-grid > .user-home-plug-card:only-child .user-home-plug-desc,
.user-home-plugin-grid:not(:has(> .user-home-plug-card:nth-of-type(2))) > .user-home-plug-card .user-home-plug-desc {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 13px;
    line-height: 1.5;
}

.user-share .stats-grid {
    margin-bottom: 16px;
}

.user-share-qr {
    display: block;
    width: 164px;
    height: 164px;
    margin: 0 auto;
    padding: 6px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--warm-border-soft);
    box-sizing: border-box;
}

.account-main .account-content > .book-media-panel {
    padding: 0;
    box-sizing: border-box;
    overflow-x: auto;
}
.account-main .account-content > .book-media-panel > .home-head.home-head--solo,
.account-main .content-card > .home-head.home-head--solo {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    column-gap: var(--book-home-column-gap);
    row-gap: 10px;
    box-sizing: border-box;
    min-height: var(--home-head-min-h);
    padding-block: 0;
    padding-inline: max(var(--account-card-pad-x, 20px), env(safe-area-inset-left, 0px))
        max(var(--account-card-pad-x, 20px), env(safe-area-inset-right, 0px));
    border-bottom: 1px solid var(--line-soft);
    background: transparent;
}
.account-main .account-content > .book-media-panel > .home-head.home-head--solo {
    width: 100%;
    margin-inline: 0;
}
.account-main .account-content > .book-media-panel > .home-head.home-head--solo > .module-title.home-head-title,
.account-main .content-card > .home-head.home-head--solo > .module-title.home-head-title {
    grid-column: 1 / -1;
    justify-self: start;
    align-self: center;
    border-bottom: none;
    padding: 0;
    margin: 0;
    width: auto;
    max-width: 100%;
    min-width: 0;
    background: transparent;
    box-sizing: border-box;
}
.account-main .account-content > .book-media-panel > .home-head.home-head--solo > .module-title.home-head-title > h1,
.account-main .account-content > .book-media-panel > .home-head.home-head--solo > .module-title.home-head-title > h2,
.account-main .account-content > .book-media-panel > .home-head.home-head--solo > .module-title.home-head-title > h3,
.account-main .content-card > .home-head.home-head--solo > .module-title.home-head-title > h1,
.account-main .content-card > .home-head.home-head--solo > .module-title.home-head-title > h2,
.account-main .content-card > .home-head.home-head--solo > .module-title.home-head-title > h3 {
    position: relative;
    padding-left: 11px;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-strong);
    line-height: 1.35;
}
.account-main .account-content > .book-media-panel > .home-head.home-head--solo > .module-title.home-head-title > h1::before,
.account-main .account-content > .book-media-panel > .home-head.home-head--solo > .module-title.home-head-title > h2::before,
.account-main .account-content > .book-media-panel > .home-head.home-head--solo > .module-title.home-head-title > h3::before,
.account-main .content-card > .home-head.home-head--solo > .module-title.home-head-title > h1::before,
.account-main .content-card > .home-head.home-head--solo > .module-title.home-head-title > h2::before,
.account-main .content-card > .home-head.home-head--solo > .module-title.home-head-title > h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 15px;
    background: var(--accent-bar);
    border-radius: 1px;
}
/* `content-card` 顶栏：须用 `.account-main .content-card > …`（作家/会员等中间常有 `.stats-grid`、`.member-grid`，非 `.account-content` 直接子级） */
.account-main .content-card > .home-head.home-head--solo {
    width: calc(100% + 2 * var(--account-card-pad-x));
    margin-inline: calc(-1 * var(--account-card-pad-x));
    margin-bottom: 16px;
}
.account-main .content-card > .home-head.home-head--solo > .module-title.home-head-title:where(
        :has(.site-btn),
        :has(a.module-title-more),
        :has(.writer-cert-head-extra)
    ) {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
}
.account-main .content-card > .home-head.home-head--solo > .module-title.home-head-title .site-btn {
    flex-shrink: 0;
}

/* PC：顶栏盖过 site-btn-sm，与 --site-ctrl-h 同高（筛选同行见 writer.css） */
.account-main .content-card > .home-head .site-btn {
    height: var(--site-ctrl-h);
    min-height: var(--site-ctrl-h);
    line-height: calc(var(--site-ctrl-h) - 2px);
    padding-left: 18px;
    padding-right: 18px;
    font-size: 14px;
    box-sizing: border-box;
}
.account-main .content-card:has(> .home-head.home-head--solo:first-child),
.account-main .content-card:has(> .home-head.home-head--tabs:first-child) {
    padding-top: 0;
}
.account-main .account-content {
    --account-card-pad-x: 20px;
}
.account-main > .site-breadcrumb {
    padding: 0;
}
.account-main .account-bind-hint {
    margin-bottom: 0;
    align-self: stretch;
}
.account-main .content-card {
    padding: 16px var(--account-card-pad-x) 24px;
}
/* 会员/作家：`home-head.home-head--tabs` 与首页同源；底边与卡片左右内边距对齐须负 margin 拉满 */
.account-main .content-card > .home-head.home-head--tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
    padding-inline: var(--account-card-pad-x);
    border-bottom: 1px solid var(--line-soft);
    background: var(--bg-surface);
    width: calc(100% + 2 * var(--account-card-pad-x));
    margin-inline: calc(-1 * var(--account-card-pad-x));
    box-sizing: border-box;
}
.account-main .content-card > .home-head.home-head--tabs:first-child {
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
}
.account-main .content-card > .home-head.home-head--tabs .del-all {
    flex-shrink: 0;
    margin: 0;
    align-self: center;
}
.account-main .content-card > .home-head.home-head--tabs ~ [role="tabpanel"],
.account-main .content-card > .home-head.home-head--tabs ~ .user-pay-body {
    padding-top: 18px;
}

.pay-section {
    margin-bottom: 24px;
}
.pay-section h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--color-text-strong);
}
.option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
    padding: 0;
}
.option-list.pay-sku-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.option-list.pay-sku-options li {
    flex: none;
    max-width: none;
    min-width: 0;
}
.option-list li {
    flex: 1 1 calc(20% - 12px);
    max-width: calc(25% - 12px);
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    padding: 16px 14px;
    text-align: center;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
    background-color: var(--bg-surface);
    box-sizing: border-box;
}
.option-list li:hover {
    transform: translateY(-1px);
    border-color: var(--warm-border);
    background-color: var(--warm-surface);
}
.option-list li.is-active {
    border: 1.5px solid var(--warm-border);
    background: linear-gradient(135deg, var(--warm-surface) 0%, var(--warm-surface-end) 100%);
    box-shadow: 0 3px 10px rgba(133, 90, 20, .08);
    transform: translateY(-1px);
}
.option-list .price {
    font-size: 19px;
    font-weight: 700;
    color: var(--color-text-strong);
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}
.option-list li.is-active .price {
    color: var(--warm-ink);
}
.option-list .price-old {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: line-through;
}
.option-list .desc {
    font-size: 13.5px;
    color: var(--text-secondary);
}
.option-list .plan-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--warm-tint);
    color: var(--warm-ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
.payment-options li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 500;
    padding: 12px 16px;
}
.payment-options li.is-active {
    color: var(--warm-ink);
    font-weight: 600;
}
.payment-icon {
    width: 25px;
    height: 25px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}
.alipay-icon {
    background-image: url('../images/pay-alipay.svg');
}
.wxpay-icon {
    background-image: url('../images/pay-wechat.svg');
}
.pay-btn {
    width: 220px;
    margin-top: 12px;
    background: #f6ecd6;
    border: 1px solid #e0c790;
    color: #6e4910;
    font-weight: 600;
    box-shadow: none;
}
.pay-btn:hover {
    background: #efe1c2;
    border-color: #d3b36e;
    color: #583808;
    box-shadow: none;
}

.avatar-uploader {
    text-align: center;
    cursor: pointer;
    margin-bottom: 24px;
}
.avatar-uploader-box {
    position: relative;
    display: inline-block;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--warm-border-soft);
    transition: border-color .2s ease, box-shadow .2s ease;
    box-sizing: border-box;
}
.avatar-uploader img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-uploader-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .42);
    color: #fff;
    opacity: 0;
    transition: opacity .2s ease;
}
.avatar-uploader-mask .site-icon {
    font-size: 22px;
}
.avatar-uploader:hover .avatar-uploader-box {
    border-color: var(--warm-border);
    box-shadow: 0 0 0 3px var(--warm-tint);
}
.avatar-uploader:hover .avatar-uploader-mask {
    opacity: 1;
}
.avatar-uploader p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 6px 0 0;
    line-height: 1.5;
}
.avatar-uploader .avatar-hint-main {
    margin-top: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}
.avatar-uploader .avatar-hint-sub {
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-muted);
}

.user-item-list {
    margin: 0;
    padding: 8px 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    box-sizing: border-box;
}
.book-item {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.book-item:hover {
    background-color: var(--warm-surface);
    border-color: var(--warm-border);
    box-shadow: 0 3px 10px rgba(133, 90, 20, .06);
}
.book-item .cover {
    width: 76px;
    height: 102px;
    flex-shrink: 0;
    margin-right: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .09);
    background: var(--bg-subtle);
}
.book-item .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md);
}
.book-item .info {
    min-width: 0;
    flex-grow: 1;
    text-align: left;
    padding-right: 62px;
}
.book-item .info h4 {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 8px;
    text-align: left;
    color: var(--color-text-strong);
}
.book-item .info h4 a {
    color: inherit;
    text-decoration: none;
}
.book-item .info h4 a:hover {
    color: var(--warm-ink);
}
.book-item .info p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-clamp: 1;
    text-align: left;
    margin: 0 0 4px 0;
}
.book-item .info p:last-child {
    margin-bottom: 0;
}
.book-item.is-pinned {
    border-color: var(--warm-border);
    background: var(--warm-surface);
}
.shelf-pin-tag {
    display: inline-block;
    margin-right: 6px;
    padding: 0 6px;
    border-radius: var(--radius-sm);
    background: var(--warm-tint);
    color: var(--warm-ink);
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    vertical-align: 1px;
}
.book-item:hover .delete-btn,
.book-item:focus-within .delete-btn {
    opacity: 1;
}
.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--line-default);
    background: var(--bg-surface);
    color: var(--text-muted);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    opacity: .72;
    transition: opacity .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.delete-btn:hover {
    background: var(--status-rejected-bg);
    border-color: rgba(255, 73, 73, .3);
    color: var(--status-rejected-fg);
}
.list-empty,
li.list-empty,
td.list-empty {
    grid-column: 1 / -1;
    list-style: none;
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
}
td.list-empty { grid-column: unset; padding: 40px 16px; }
.list-empty img {
    width: 120px;
    margin-bottom: 16px;
}
.site-empty-svg {
    display: block;
    width: 112px;
    height: 92px;
    margin: 0 auto 12px;
    overflow: visible;
}
.se-ill-shadow {
    fill: var(--se-ill-shadow);
}
.se-ill-box-inner {
    fill: var(--se-ill-inner);
    stroke: var(--se-ill-stroke);
    stroke-width: 1.2;
    stroke-linejoin: round;
}
.se-ill-box-left {
    fill: var(--se-ill-left);
    stroke: var(--se-ill-stroke);
    stroke-width: 1.2;
    stroke-linejoin: round;
}
.se-ill-box-right {
    fill: var(--se-ill-right);
    stroke: var(--se-ill-stroke);
    stroke-width: 1.2;
    stroke-linejoin: round;
}
.se-ill-box-flap,
.se-ill-box-flap-front {
    fill: var(--se-ill-flap);
    stroke: var(--se-ill-stroke);
    stroke-width: 1.2;
    stroke-linejoin: round;
}
.se-ill-star,
.se-ill-dot {
    fill: var(--se-ill-star);
}

.doc {
    background: var(--bg-surface);
    padding: 40px 60px;
    margin-top: 0;
    border-radius: var(--radius-md);
}
.doc h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line-soft);
}
.doc h3 {
    font-size: 20px;
    font-weight: 600;
    color: #444;
    margin-top: 30px;
    margin-bottom: 15px;
}
.doc p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}
body.legal-popup-body {
    margin: 0;
    padding: 20px;
    background: #fff;
}
body.legal-popup-body .doc {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
}
body.legal-popup-body .doc h2 {
    font-size: 22px;
    text-align: left;
    margin: 0 0 20px;
    padding-bottom: 12px;
}
body.legal-popup-body .doc h3 {
    font-size: 18px;
    margin: 24px 0 12px;
}
body.legal-popup-body .doc h4 {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin: 20px 0 10px;
}
body.legal-popup-body .doc p {
    font-size: 14px;
    margin: 0 0 16px;
}
body.legal-popup-body .doc ul,
body.legal-popup-body .doc ol {
    margin: 0 0 16px;
    padding-left: 24px;
}
body.legal-popup-body .doc li {
    margin-bottom: 6px;
}

body.legal-popup-body--read-blue .doc h2,
body.legal-popup-body--read-blue .doc h3,
body.legal-popup-body--read-blue .doc h4 {
    color: #131A1E;
}

body.legal-popup-body--read-yellow .doc h2,
body.legal-popup-body--read-yellow .doc h3,
body.legal-popup-body--read-yellow .doc h4 {
    color: #413B2A;
}

body.legal-popup-body--read-green .doc h2,
body.legal-popup-body--read-green .doc h3,
body.legal-popup-body--read-green .doc h4 {
    color: #394434;
}

body.legal-popup-body--read-red .doc h2,
body.legal-popup-body--read-red .doc h3,
body.legal-popup-body--read-red .doc h4 {
    color: #453030;
}

.info-verify-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
    width: 100%;
    flex: 1 1 auto;
}
.info-verify-group .site-input {
    flex: 1;
    min-height: var(--site-ctrl-h);
    height: var(--site-ctrl-h);
    line-height: var(--site-ctrl-h);
    box-sizing: border-box;
}
.info-verify-group .input-group-select select,
.info-verify-group .input-group-select .site-select__trigger {
    min-height: var(--site-ctrl-h);
    height: var(--site-ctrl-h);
    box-sizing: border-box;
}
.info-verify-group .input-group-select select {
    line-height: var(--site-ctrl-h);
}
.info-verify-group .code-btn,
.user-form-container .input-group .code-btn {
    flex-shrink: 0;
    min-height: var(--site-ctrl-h);
    height: var(--site-ctrl-h);
    line-height: var(--site-ctrl-h);
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--line-default);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-md);
    box-shadow: none;
    transition: background .2s, border-color .2s, color .2s;
}
.info-verify-group .code-btn:hover,
.user-form-container .input-group .code-btn:hover {
    background: var(--bg-subtle);
    border-color: #ccc;
    color: #555;
}

.code-btn.site-btn-disabled {
    pointer-events: none;
    cursor: not-allowed;
}
.info-verify-group .input-group-select {
    width: 132px;
    flex-shrink: 0;
}
.info-verify-group .input-group-select + .site-input {
    flex: 1;
}

.account-main .content-card > .home-head.home-head--tabs .acct-profile-tabs {
    gap: 2px;
}
.account-main .content-card > .home-head.home-head--tabs .acct-profile-tabs > .top-section-tab {
    font-size: 14.5px;
    padding: 0 12px;
    min-height: var(--home-head-min-h);
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    line-height: 1.35;
}
.account-main .content-card > .home-head.home-head--tabs .acct-profile-tabs > .top-section-tab.is-active,
.account-main .content-card > .home-head.home-head--tabs .acct-profile-tabs > [role="tab"][aria-selected="true"] {
    color: var(--warm-ink);
    border-bottom-color: var(--warm-ink);
    font-weight: 600;
}
.account-main .user-info-form {
    max-width: 560px;
    margin: 8px auto 0;
}
.account-main .user-info-form .site-form-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}
.account-main .user-info-form .site-form-item:after {
    display: none;
}

.user-info-form .site-form-label {
    flex: 0 0 128px;
    width: 128px;
    padding: 0 12px 0 0;
    line-height: 1.4;
    text-align: right;
    box-sizing: border-box;
}
.user-info-form .site-input-block {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    align-items: center;
}
.user-info-form .info-verify-group .code-btn {
    line-height: calc(var(--site-ctrl-h) - 2px);
}
.account-main .user-info-form .site-input-block > .site-input:not(textarea),
.account-main .user-info-form .site-input-block > select,
.account-main .user-info-form .site-input-block > .site-select .site-select__trigger,
.account-main .cancel-account-form .site-input-block > .site-input:not(textarea),
.account-main .content-card .form-wrap .site-form .site-input-block > .site-input:not(textarea),
.account-main .content-card .form-wrap .site-form .site-input-block > select,
.account-main .content-card .form-wrap .site-form .site-input-block > .site-select .site-select__trigger,
.account-main .acct-section .form-wrap .site-form .site-input-block > .site-input:not(textarea),
.account-main .acct-section .form-wrap .site-form .site-input-block > select,
.account-main .acct-section .form-wrap .site-form .site-input-block > .site-select .site-select__trigger,
.account-main .acct-section .writer-pub-fields .site-input-block > .site-input:not(textarea),
.account-main .acct-section .writer-pub-fields .site-input-block > select,
.account-main .acct-section .writer-pub-fields .site-input-block > .site-select .site-select__trigger {
    min-height: var(--site-ctrl-h);
    height: var(--site-ctrl-h);
    box-sizing: border-box;
}
.account-main .user-info-form .site-input-block > .site-input:not(textarea),
.account-main .user-info-form .site-input-block > select,
.account-main .cancel-account-form .site-input-block > .site-input:not(textarea),
.account-main .content-card .form-wrap .site-form .site-input-block > .site-input:not(textarea),
.account-main .content-card .form-wrap .site-form .site-input-block > select,
.account-main .acct-section .form-wrap .site-form .site-input-block > .site-input:not(textarea),
.account-main .acct-section .form-wrap .site-form .site-input-block > select,
.account-main .acct-section .writer-pub-fields .site-input-block > .site-input:not(textarea),
.account-main .acct-section .writer-pub-fields .site-input-block > select {
    line-height: var(--site-ctrl-h);
}
.account-main .user-info-form .site-input-block > .site-select,
.account-main .content-card .form-wrap .site-form .site-input-block > .site-select,
.account-main .acct-section .form-wrap .site-form .site-input-block > .site-select,
.account-main .acct-section .writer-pub-fields .site-input-block > .site-select {
    width: 100%;
}
/* 提现弹层挂在 `body` 下，勿套 `.account-main` */
.payout-popup-form .site-input-block > .site-input:not(textarea) {
    min-height: var(--site-ctrl-h);
    height: var(--site-ctrl-h);
    line-height: var(--site-ctrl-h);
    box-sizing: border-box;
}
.member-notice-card {
    padding: 0;
    border: none;
    background: transparent;
}
.stats-grid {
    display: grid;
    gap: 12px;
}
.stats-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stats-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.account-sidebar.is-writer + .account-content .stats-grid--4 .stats-tile-value {
    color: var(--warm-ink);
}

.ug-badge {
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
}
.ug-badge--blue,
.ug-badge--gold,
.ug-badge--purple,
.ug-badge--green,
.ug-badge--red {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
}
.site-shell .ug-badge--blue {
    background: #eef5ff;
    color: #1d5fd6;
    border-color: #c8defc;
}
.site-shell .ug-badge--gold {
    background: #fff7e0;
    color: #9a6700;
    border-color: #f0d38a;
}
.site-shell .ug-badge--purple {
    background: #f5efff;
    color: #6b38d4;
    border-color: #dac8fb;
}
.site-shell .ug-badge--green {
    background: #eaf8f1;
    color: #157a4f;
    border-color: #b7e4ce;
}
.site-shell .ug-badge--red {
    background: #fff0f0;
    color: #c92a2a;
    border-color: #f6c2c2;
}
.member-discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    background: var(--member-pill-bg);
    color: var(--member-pill-fg);
}

.member-tier-progress {
    flex: 1 1 auto;
    width: 100%;
    height: 10px;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    border-radius: 999px;
    overflow: hidden;
    background: var(--line-soft);
    accent-color: var(--accent-2);
}
.member-tier-progress::-webkit-progress-bar {
    background: var(--line-soft);
    border-radius: 999px;
}
.member-tier-progress::-webkit-progress-value {
    background: var(--vip-gradient);
    border-radius: 999px;
}
.member-tier-progress::-moz-progress-bar {
    background: var(--vip-gradient);
    border-radius: 999px;
}

.member-tier-table {
    width: 100%;
    min-width: 640px;
    margin: 0;
}
.member-tier-table th,
.member-tier-table td {
    vertical-align: middle;
    text-align: center;
    padding: 11px 12px;
}
.member-tier-table tbody tr.is-current {
    background: var(--warm-surface);
}
.member-tier-table tbody tr.is-current td {
    background: transparent;
}
.member-tier-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.member-tier-cur {
    font-size: 11px;
    padding: 1px 8px;
}
.member-tier-remark {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: center;
}
.member-tier-muted {
    color: var(--text-muted);
}
.member-tier-perms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.read-paywall-orig {
    margin-right: 6px;
    font-size: 0.9em;
    color: var(--text-muted);
    text-decoration: line-through;
}
.stats-tile-label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--text-secondary);
}
.stats-tile-value {
    display: block;
    font-weight: 700;
    overflow-wrap: break-word;
    word-break: normal;
}
.stats-tile--nested {
    background: var(--bg-surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    text-align: left;
}
.stats-tile--nested .stats-tile-label {
    font-size: 12.5px;
    color: var(--text-muted);
}
.stats-tile--nested .stats-tile-value {
    font-size: 18px;
    line-height: 1.45;
    color: var(--color-text-strong);
    font-variant-numeric: tabular-nums;
}

.account-main .user-pay-body .user-order-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}
.account-main .user-pay-body .user-order-table th,
.account-main .user-pay-body .user-order-table td {
    white-space: normal;
    word-break: break-word;
    vertical-align: middle;
    text-align: center;
}
.account-main .user-pay-body .user-order-table th:nth-child(1),
.account-main .user-pay-body .user-order-table td:nth-child(1) {
    width: 20%;
}
.account-main .user-pay-body .user-order-table th:nth-child(2),
.account-main .user-pay-body .user-order-table td:nth-child(2) {
    width: 10%;
}
.account-main .user-pay-body .user-order-table th:nth-child(3),
.account-main .user-pay-body .user-order-table td:nth-child(3) {
    width: 22%;
}
.account-main .user-pay-body .user-order-table th:nth-child(4),
.account-main .user-pay-body .user-order-table td:nth-child(4),
.account-main .user-pay-body .user-order-table th:nth-child(5),
.account-main .user-pay-body .user-order-table td:nth-child(5) {
    width: 12%;
}
.account-main .user-pay-body .user-order-table th:nth-child(6),
.account-main .user-pay-body .user-order-table td:nth-child(6) {
    width: 24%;
}
.section-box.notice-page-card {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-sizing: border-box;
}
.notice-page-card > .module-title.module-title-full {
    width: 100%;
    margin: 0;
    padding: 15px 20px 14px;
    border-bottom: 1px solid var(--line-faint);
    background: var(--bg-surface);
    box-sizing: border-box;
}
.notice-page-card > .list-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 48px 20px;
    text-align: center;
    color: var(--text-muted);
}
.notice-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
}
.notice-page-card .notice-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 20px 8px;
}
.notice-item {
    padding: 15px 18px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    transition: border-color .16s ease, background-color .16s ease;
    overflow: clip;
}
.notice-page-card .notice-item {
    padding: 16px 0;
    border: none;
    border-bottom: 1px solid var(--line-faint);
    border-radius: 0;
    background: transparent;
}
.notice-page-card .notice-item:last-child {
    border-bottom: none;
}
.notice-page-card .notice-item--urgent {
    padding-left: 14px;
    border-left: 3px solid var(--color-danger);
    background: linear-gradient(90deg, rgba(158, 74, 56, .06) 0%, transparent 100%);
}
.notice-page-card .notice-item--urgent .notice-item-head strong {
    color: var(--color-danger);
}
.notice-page-card .notice-item--important {
    padding-left: 14px;
    border-left: 3px solid var(--accent-bar);
    background: linear-gradient(90deg, var(--warm-tint) 0%, transparent 100%);
}
.notice-page-card .notice-item--important .notice-item-head strong {
    color: var(--warm-ink);
}
.notice-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 8px;
}
.notice-item-head strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-strong);
    min-width: 0;
    overflow-wrap: anywhere;
}
.notice-item-head strong a {
    color: inherit;
    text-decoration: none;
}
.notice-item-head strong a:hover {
    color: var(--link-hover-fg);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.notice-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}
.notice-item-meta time {
    font-size: 12.5px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.notice-time {
    flex: 0 0 auto;
    font-size: 12.5px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.notice-delete-btn {
    border: none;
    background: none;
    padding: 0;
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.4;
    cursor: pointer;
    transition: color .15s ease;
}
.notice-delete-btn:hover { color: var(--status-rejected-fg); }
.notice-content {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-secondary);
    word-break: break-word;
}
.notice-item.is-unread {
    border-color: var(--line-default);
    background: var(--warm-surface);
}
.notice-unread-tag {
    flex: 0 0 auto;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
    padding: 1px 9px;
    border-radius: 999px;
    color: var(--warm-ink);
    background: var(--warm-tint);
}
.notice-item .is-hidden { display: none; }
.notice-toggle-row { margin-top: 8px; }
.notice-item-body p {
    margin: 0 0 10px;
}
.notice-item-body p:last-child {
    margin-bottom: 0;
}
.notice-item-body h3,
.notice-item-body h4 {
    margin: 12px 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}
.notice-item-body ul,
.notice-item-body ol {
    margin: 6px 0 10px;
    padding-left: 20px;
}
.notice-item-body li {
    margin: 4px 0;
}
.notice-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .52);
    box-sizing: border-box;
}
.notice-popup-dialog {
    width: 100%;
    max-width: 520px;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .2);
    overflow: hidden;
}
.notice-popup-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line-soft);
}
.notice-popup-head-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}
.notice-popup-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text);
    word-break: break-word;
}
.notice-popup-close {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: -4px -6px 0 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.notice-popup-close:hover {
    background: var(--line-faint);
    color: var(--color-text);
}
.notice-popup-body {
    padding: 18px 20px;
    overflow-y: auto;
    max-height: 52vh;
}
.notice-popup-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--line-soft);
    background: var(--bg-table-head);
}
.account-main .content-card > .list-empty {
    padding: 36px 16px;
    font-size: 13px;
    grid-column: unset;
}
.member-invite-table th,
.member-invite-table td {
    padding-top: 10px;
    padding-bottom: 10px;
}
.member-invite-table th {
    white-space: nowrap;
}

.member-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--member-pill-bg);
    color: var(--member-pill-fg);
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
    vertical-align: middle;
}
.member-pill.is-muted,
.member-pill.is-locked {
    background: var(--member-pill-muted-bg);
    color: var(--text-secondary);
}
.member-pill.is-ok {
    background: var(--member-pill-ok-bg);
    color: var(--member-pill-ok-fg);
}
.status-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
}
.status-tag.status-serializing { background-color: var(--status-serializing-bg); color: var(--status-serializing-fg); }
.status-tag.status-done { background-color: var(--status-done-bg); color: var(--status-done-fg); }
.status-tag.status-pending { background-color: var(--status-pending-bg); color: var(--status-pending-fg); }
.status-tag.status-scheduled { background-color: var(--status-scheduled-bg); color: var(--status-scheduled-fg); }
.status-tag.status-approved { background-color: var(--status-approved-bg); color: var(--status-approved-fg); }
.status-tag.status-rejected { background-color: var(--status-rejected-bg); color: var(--status-rejected-fg); }
.member-delta {
    display: inline-block;
    max-width: 100%;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    vertical-align: middle;
}

.member-delta.is-up {
    color: var(--member-delta-up);
}
.member-tier-table .member-delta.is-up {
    color: var(--warm-ink);
    font-weight: 600;
}
.member-delta.is-down {
    color: var(--member-delta-down);
}

.cancel-account-wrap {
    max-width: 560px;
    margin: 8px auto 0;
}

.cancel-account-wrap .cancel-account-form {
    max-width: none;
    margin: 18px 0 0;
    padding: 20px 20px 6px;
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    text-align: left;
}

.account-content .user-totp-bind-actions {
    margin-top: 6px;
}

.user-totp-qr-step {
    padding: 10px 12px;
    line-height: 1.45;
    color: var(--color-text);
    overflow: visible;
    box-sizing: border-box;
}
.user-totp-qr-hint {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: pre-wrap;
}
.user-totp-qr-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    justify-content: flex-start;
}
.user-totp-qr-media {
    flex: 0 0 auto;
    text-align: center;
}
.user-totp-qr-caption {
    margin: 0 0 6px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.35;
}
.user-totp-qr-img {
    display: block;
    margin: 0 auto;
    border: 1px solid #e8e8e8;
    background: #fff;
    padding: 4px;
    border-radius: var(--radius-md);
    box-sizing: border-box;
}
.user-totp-qr-secret {
    flex: 1 1 200px;
    min-width: 0;
}
.user-totp-qr-secret-label {
    margin: 0 0 4px;
    font-size: 12px;
    line-height: 1.35;
}
.user-totp-qr-secret-plain {
    margin: 0 0 8px;
    padding: 6px 8px;
    font-family: monospace, Consolas, Menlo, monospace;
    font-size: 11px;
    word-break: break-all;
    line-height: 1.4;
    background: var(--bg-subtle);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    user-select: all;
}
.user-totp-qr-verify {
    margin-top: 12px;
}
.user-totp-qr-verify .site-form-label {
    float: none;
    display: block;
    width: 100%;
    padding: 0 0 6px;
    text-align: left;
    line-height: 1.45;
}
.user-totp-qr-verify .site-input-block {
    margin-left: 0;
}
.user-totp-qr-done {
    margin-top: 14px;
    text-align: right;
}
.site-ui-layer-content .user-totp-bind-wizard {
    padding: 16px 22px 8px;
    box-sizing: border-box;
    max-width: 100%;
}
.site-ui-layer-content .user-totp-bind-wizard .site-form-item {
    margin-bottom: 14px;
}
.site-ui-layer-content .user-totp-bind-wizard .site-form-label {
    float: none;
    display: block;
    width: 100%;
    padding: 0 0 6px;
    text-align: left;
    line-height: 1.45;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}
.site-ui-layer-content .user-totp-bind-wizard .site-input-block {
    margin-left: 0;
}
.site-ui-layer-content .user-totp-bind-wizard .site-word-aux {
    display: block;
    padding: 0;
    margin: 0 0 16px;
    line-height: 1.55;
}
.site-ui-layer-content .user-totp-bind-wizard .user-totp-bind-wizard-actions .site-input-block {
    margin-left: 0;
    text-align: right;
}
.site-ui-layer-content .user-totp-bind-wizard .user-totp-bind-wizard-actions {
    padding-top: 4px;
    margin-bottom: 0;
}
.cancel-no-contact {
    padding: 20px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 2;
    text-align: center;
}
.cancel-no-contact a {
    color: var(--warm-ink);
    text-decoration: underline;
}

.user-form-container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 32px;
    box-sizing: border-box;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--line-default);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    overflow: clip;
}
.user-form-container--split {
    max-width: 860px;
    padding: 28px 36px 32px;
}
.user-form-container .login-split--qr {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 4px;
}
.user-form-container .login-split--qr .login-qr-panel {
    flex: 0 0 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 28px 4px 4px;
    border-right: 1px solid var(--line-soft, #eee);
    text-align: center;
}
.user-form-container .login-split--qr .login-account-panel {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 0 0 32px;
}
.user-form-container .login-qr-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
}
.user-form-container .login-qr-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 168px;
    height: 168px;
    margin: 0 auto 12px;
}
.user-form-container .login-qr-panel--loading .login-qr-box {
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, var(--line-faint, #f5f5f5) 25%, #fff 50%, var(--line-faint, #f5f5f5) 75%);
    background-size: 200% 100%;
    animation: login-qr-shine 1.2s ease-in-out infinite;
}
.user-form-container .login-qr-panel--loading .login-qr-img {
    visibility: hidden;
}
@keyframes login-qr-shine {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
.user-form-container .login-qr-img {
    display: block;
    width: 168px;
    height: 168px;
    object-fit: contain;
}
.user-form-container .login-qr-tip {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.55;
    white-space: nowrap;
}
.user-form-container .login-qr-status {
    margin: 0;
    font-size: 12px;
    color: var(--color-emphasis, #e53935);
    line-height: 1.5;
}
.user-form-container .login-qr-refresh-link {
    appearance: none;
    -webkit-appearance: none;
    display: inline;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
    line-height: inherit;
    text-decoration: underline;
    cursor: pointer;
    vertical-align: baseline;
}
.user-form-container .login-qr-refresh-link:hover,
.user-form-container .login-qr-refresh-link:focus-visible {
    opacity: 0.85;
}
.user-form-container .site-form {
    position: relative;
}
html:has(.login-embed-body) {
    overflow-x: hidden;
    overflow-y: visible;
    background: transparent;
    width: 100%;
    margin: 0;
    scrollbar-gutter: auto;
}
.login-embed-body {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    overflow-x: hidden;
    overflow-y: visible;
    border-radius: 0;
    box-sizing: border-box;
    scrollbar-gutter: auto;
}
.login-embed-body .user-form-container--embed {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px 24px 16px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
}
.login-embed-body .user-form-container--embed .site-form,
.login-embed-body .user-form-container--embed .type-switch-wrap,
.login-embed-body .user-form-container--embed .site-form-item {
    width: 100%;
    box-sizing: border-box;
}
/* 阅读页登录 iframe 宽约 480px，须保持 PC 登录页横向表单，勿走 768 叠列 */
.login-embed-body .user-form-container--embed .site-form-item {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    margin-bottom: 18px;
}
.login-embed-body .user-form-container--embed .site-form-item:after {
    display: none;
}
.login-embed-body .user-form-container--embed .site-form-label {
    flex: 0 0 120px;
    width: auto;
    max-width: none;
    float: none;
    margin-left: 0;
    text-align: right;
    padding: 0 15px 0 0;
    box-sizing: border-box;
}
.login-embed-body .user-form-container--embed .site-input-block {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    margin-left: 0;
}
.login-embed-body .user-form-container--embed .site-input-block .input-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.login-embed-body .user-form-container--embed .input-group-select,
.login-embed-body .user-form-container--embed .site-input-block .input-group .input-group-select {
    flex: 0 0 132px;
    width: 132px;
}
.login-embed-body .user-form-container--embed .site-input-block .input-group .site-input,
.login-embed-body .user-form-container--embed .site-input-block > .site-input:not(textarea) {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    min-height: var(--site-ctrl-h);
    height: var(--site-ctrl-h);
    line-height: var(--site-ctrl-h);
    box-sizing: border-box;
}
.login-embed-body .user-form-container--embed .input-group-select select {
    width: 100%;
    min-height: var(--site-ctrl-h);
    height: var(--site-ctrl-h);
    line-height: var(--site-ctrl-h);
    box-sizing: border-box;
    padding: 0 10px;
}
.login-embed-body .user-form-container--embed .input-group-select .site-select__trigger {
    width: 100%;
    min-height: var(--site-ctrl-h);
    height: var(--site-ctrl-h);
    padding: 0 8px 0 10px;
    box-sizing: border-box;
}
.login-embed-body .user-form-container--embed .site-input-block .input-group .code-btn {
    width: auto;
    white-space: nowrap;
    min-height: var(--site-ctrl-h);
    height: var(--site-ctrl-h);
    line-height: var(--site-ctrl-h);
    padding: 0 12px;
}
.login-embed-body .user-form-container--embed .form-links,
.login-embed-body .user-form-container--embed .form-footer-links {
    flex-direction: row;
    align-items: center;
    gap: 0;
}
.login-embed-body .user-form-container--embed .form-footer-links > div {
    line-height: inherit;
}
.login-embed-body .user-form-container--embed .login-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}
.login-embed-body .user-form-container--embed .login-account-panel {
    display: contents;
}
.login-embed-body .user-form-container--embed .type-switch-wrap {
    grid-column: 1;
    grid-row: 1;
}
.login-embed-body .user-form-container--embed .login-qr-panel--tab,
.login-embed-body .user-form-container--embed .login-account-body {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
}
.login-embed-body .user-form-container--embed .login-account-body.hide {
    display: block;
    visibility: hidden;
    pointer-events: none;
}
.login-embed-body .user-form-container--embed .login-qr-panel--tab {
    padding: 0 0 8px;
    text-align: center;
}
.login-embed-body .user-form-container--embed .login-qr-panel--tab:not(.hide) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    z-index: 1;
    box-sizing: border-box;
}
.login-embed-body .user-form-container--embed .login-qr-panel--tab .login-qr-title {
    margin-bottom: 12px;
    font-size: 15px;
}
.login-embed-body .user-form-container--embed .login-qr-panel--tab .login-qr-tip {
    white-space: normal;
}
.login-embed-body .user-form-container--embed .type-switch-wrap:has(.type-switch-tab[data-value="qr"]) {
    gap: 12px;
}
.login-embed-body .user-form-container--embed .type-switch-wrap:has(.type-switch-tab[data-value="qr"]) .type-switch-tab {
    font-size: 14px;
}
/* 仅真窄屏阅读页传 embed_stack=1 时叠列；勿用 max-width 媒体查询（iframe 恒约 480px） */
.login-embed-body--stack .user-form-container--embed {
    padding: 18px 24px 14px;
}
.login-embed-body--stack .user-form-container--embed .site-form-item {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.login-embed-body--stack .user-form-container--embed .site-form-label {
    flex: none;
    width: 100%;
    max-width: none;
    text-align: left;
    padding: 0 0 6px;
}
.login-embed-body--stack .user-form-container--embed .site-input-block {
    width: 100%;
    flex-wrap: wrap;
}
.login-embed-body--stack .user-form-container--embed .site-input-block .input-group {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}
.login-embed-body--stack .user-form-container--embed .input-group-select,
.login-embed-body--stack .user-form-container--embed .site-input-block .input-group .input-group-select {
    flex: none;
    width: 100%;
}
.login-embed-body--stack .user-form-container--embed .site-input-block .input-group .code-btn {
    width: 100%;
}
.login-embed-body--stack .user-form-container--embed .form-links,
.login-embed-body--stack .user-form-container--embed .form-footer-links {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    text-align: center;
}
.user-form-container h3,
.user-form-container .auth-card-title {
    margin: 0 0 24px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text);
    text-align: center;
}
.user-form-container .site-form-item {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin-bottom: 18px;
}
.user-form-container .input-group {
    display: flex;
    gap: 10px;
}
.user-form-container .input-group-select {
    width: 132px;
    flex-shrink: 0;
}
.user-form-container .input-group .site-input {
    flex-grow: 1;
}
.user-form-container .site-btn {
    height: var(--site-ctrl-h);
    line-height: calc(var(--site-ctrl-h) - 2px);
    border-radius: var(--radius-md);
    font-size: 15px;
}
.user-form-container .site-btn-fluid {
    background: var(--cta-solid-bg);
    border: 1px solid var(--cta-solid-bg);
    color: var(--cta-solid-fg);
    font-weight: 600;
    box-shadow: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.user-form-container .site-btn-fluid:hover,
.user-form-container .site-btn-fluid:focus-visible {
    color: var(--cta-solid-fg);
    border-color: var(--cta-solid-bg-hover);
    background: var(--cta-solid-bg-hover);
    box-shadow: none;
}
.user-form-container .form-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
}
.user-form-container .form-links a,
.user-form-container .form-footer-links > a {
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background-color .2s ease;
}
.user-form-container .form-links a:hover,
.user-form-container .form-links a:focus-visible,
.user-form-container .form-footer-links > a:hover,
.user-form-container .form-footer-links > a:focus-visible {
    color: var(--text-secondary);
    background: var(--bg-subtle);
    text-decoration: none;
}
.user-form-container .form-footer-links {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}
.user-form-container .form-footer-links a.js-doc-popup {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .2s ease;
}
.user-form-container .form-footer-links a.js-doc-popup:hover,
.user-form-container .form-footer-links a.js-doc-popup:focus-visible {
    color: var(--color-emphasis-hover);
    text-decoration: none;
}
.user-form-container .site-form-label {
    flex: 0 0 120px;
    padding-right: 15px;
    text-align: right;
    box-sizing: border-box;
    font-size: 15px;
    color: var(--color-text);
}
.user-form-container .site-input-block {
    flex: 1 1 auto;
    margin-left: 0;
    min-width: 0;
    display: flex;
    align-items: center;
}
/* 密码等单行：不在 .input-group 内，须与手机号行同宽同高 */
.user-form-container .site-input-block > .site-input:not(textarea) {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: var(--site-ctrl-h);
    height: var(--site-ctrl-h);
    line-height: var(--site-ctrl-h);
    box-sizing: border-box;
}
.user-form-container .input-group-select select,
.user-form-container .input-group-select .site-select {
    width: 100%;
    box-sizing: border-box;
}
.user-form-container .input-group-select select {
    display: block;
}

/* 密码可见性切换 */
.user-form-container .pwd-field,
.user-info-form .pwd-field {
    position: relative;
    width: 100%;
}
.user-form-container .pwd-field .pwd-input,
.user-info-form .pwd-field .pwd-input {
    width: 100%;
    min-height: var(--site-ctrl-h);
    height: var(--site-ctrl-h);
    line-height: var(--site-ctrl-h);
    box-sizing: border-box;
    padding-right: 40px;
}
.user-form-container .pwd-toggle,
.user-info-form .pwd-toggle {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: color .2s;
}
.user-form-container .pwd-toggle:hover,
.user-info-form .pwd-toggle:hover {
    color: var(--text-secondary);
}
.user-form-container .pwd-toggle:focus-visible,
.user-info-form .pwd-toggle:focus-visible {
    outline: 2px solid rgba(179, 134, 61, .45);
    outline-offset: 1px;
}
.user-form-container .pwd-toggle .site-icon,
.user-info-form .pwd-toggle .site-icon {
    font-size: 18px;
}

/* 输入框聚焦增强 */
.user-form-container .site-input:focus,
.user-form-container .input-group-select select:focus,
.user-form-container .input-group-select .site-select__trigger:focus,
.user-form-container .input-group-select .site-select.is-open > .site-select__trigger {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: var(--input-focus-ring);
}

.user-form-container .site-input-block .site-form-radio {
    margin: 0 24px 0 0;
}

.user-form-container .type-switch-wrap {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}
.user-form-container .type-switch-tab {
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    margin: 0;
    padding: 5px 0;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    cursor: pointer;
    color: var(--text-muted);
    user-select: none;
    transition: color .2s;
}
.user-form-container .type-switch-tab:focus-visible {
    outline: 2px solid rgba(179, 134, 61, .45);
    outline-offset: 2px;
}
.user-form-container .type-switch-tab:hover,
.user-form-container .type-switch-tab.is-active {
    color: var(--color-text-strong);
}
.user-form-container .type-switch-tab.is-active {
    font-weight: 600;
    border-bottom-color: var(--warm-ink);
}

.user-form-container .site-input-block .input-group {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
}
.user-form-container .site-input-block .input-group .input-group-select {
    flex: 0 0 140px;
}
.user-form-container .site-input-block .input-group .site-input {
    flex: 1;
}
.user-form-container .site-input-block .input-group .code-btn {
    white-space: nowrap;
}

.user-form-container .reg-closed-notice {
    text-align: center;
    padding: 20px 0;
}
.user-form-container .reg-closed-notice p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}
.user-form-container .reg-closed-notice .site-btn {
    display: inline-block;
    float: none;
    margin: 0 10px;
    width: 140px;
}
.user-form-container .reg-closed-notice .site-btn + .site-btn {
    background: var(--bg-surface);
    color: var(--color-text);
    border: 1px solid var(--line-subtle);
}
.user-form-container .reg-closed-notice .site-btn + .site-btn:hover {
    background: var(--line-faint);
    color: var(--color-text);
    opacity: 1;
}

/* --- 批次 4 核心页克制丰富化：搜索舞台 / 书库页头与网格 / 详情目录条 / 认证双栏书卷卡 / 公告微徽章 --- */
.search-suggest-list .suggest-hist-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 14px 6px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--line-faint);
    cursor: default;
}
.search-suggest-list .suggest-hist-head:hover {
    background: var(--bg-subtle);
}
.search-suggest-list .suggest-hist-title {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}
.search-suggest-list .suggest-hist-clear {
    border: none;
    background: none;
    padding: 2px 4px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color .15s ease;
}
.search-suggest-list .suggest-hist-clear:hover {
    color: var(--warm-ink);
}
.search-suggest-list .suggest-hist-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-suggest-list .suggest-hist-item .site-icon {
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.section-box.search-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 24px 20px 20px;
    margin: 0 0 16px;
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, var(--warm-surface) 0%, var(--bg-surface) 100%);
    overflow: visible;
    box-sizing: border-box;
}
.search-hero-form {
    width: 100%;
    max-width: 700px;
}
.search-hero-form .search-field {
    width: 100%;
}
.search-hero-form .input {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    box-sizing: border-box;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.search-hero-form .input:focus-within {
    border-color: var(--input-focus-border);
    box-shadow: var(--input-focus-ring);
}
.search-hero-form .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;
}
.search-hero-form .search-scope {
    flex: 0 0 auto;
    height: 100%;
    padding: 0 10px 0 12px;
    border: none;
    border-right: 1px solid var(--line-faint);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13.5px;
    outline: none;
    cursor: pointer;
}
.search-hero-form .site-select--scope {
    flex: 0 0 auto;
    align-self: stretch;
    height: 100%;
}
.search-hero-form .site-select--scope .site-select__trigger {
    width: auto;
    height: 100%;
    min-height: 0;
    padding: 0 10px 0 12px;
    gap: 5px;
    border: 0;
    border-right: 1px solid var(--line-faint);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    box-shadow: none;
}
.search-hero-form .site-select--scope .site-select__trigger:hover:not(:disabled) {
    border-color: transparent;
    border-right-color: var(--line-faint);
    color: var(--color-text);
}
.search-hero-form .site-select--scope .site-select__menu {
    left: -1px;
    top: calc(100% + 5px);
    min-width: 104px;
    box-shadow: var(--search-suggest-shadow);
}
.search-hero-form .input.open .site-select--scope .site-select__trigger {
    border-bottom-left-radius: 0;
}
.search-hero-form .search-scope:focus,
.search-hero-form .search-scope:focus-visible,
.search-hero-form .site-select--scope .site-select__trigger:focus,
.search-hero-form .site-select--scope .site-select__trigger:focus-visible,
.search-hero-form .site-select--scope.is-open > .site-select__trigger {
    outline: none;
    box-shadow: none;
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-right-color: var(--line-faint);
    color: var(--color-text);
}
.search-hero-form .search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 10px 0 14px;
    border: none;
    background: transparent;
    color: var(--color-text);
    font-size: 15px;
    outline: none;
}
.search-hero-form .search-input:focus,
.search-hero-form .search-input:focus-visible {
    outline: none;
    box-shadow: none;
    border-color: transparent;
}
.search-hero-form .search-input::placeholder {
    color: var(--text-muted);
}
.search-hero-form .search-clear {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 4px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color .15s ease;
}
.search-hero-form .search-clear:hover {
    color: var(--color-text);
}
.search-hero-form .search-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 36px;
    margin: 0 4px 0 0;
    padding: 0 18px;
    border: none;
    border-radius: calc(var(--radius-md) - 2px);
    background: var(--cta-solid-bg);
    color: var(--cta-solid-fg);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .16s ease;
}
.search-hero-form .search-btn:hover {
    background: var(--cta-solid-bg-hover);
}
.search-hero-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 20px;
    width: 100%;
    max-width: 700px;
}
.search-kind-tabs,
.search-scope-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.search-kind-tab,
.search-scope-pill {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.search-kind-tab:hover,
.search-scope-pill:hover {
    background: var(--bg-subtle);
    color: var(--color-text-strong);
}
.search-kind-tab.is-active,
.search-scope-pill.is-active {
    background: var(--warm-tint);
    border-color: var(--warm-border-soft);
    color: var(--warm-ink);
    font-weight: 600;
}
.search-box > .search-result-bar.module-title {
    flex-wrap: wrap;
    gap: 8px 16px;
}
.search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 48px 20px 52px;
    text-align: center;
    color: var(--text-muted);
}
.search-empty > p {
    margin: 0;
    font-size: 15px;
    color: var(--text-secondary);
}
.search-hot-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
    max-width: 640px;
    margin-top: 4px;
}
.search-hot-label {
    font-size: 13px;
    color: var(--text-muted);
}
.search-hot-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.search-hot-tag {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 13px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-default);
    background: var(--warm-surface);
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.search-hot-tag:hover {
    border-color: var(--warm-border);
    background: var(--site-btn-accent-bg);
    color: var(--warm-ink);
}
.section-box.search-fallback {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 16px;
    border: 1px solid var(--line-default);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    overflow: clip;
}
.section-box.search-fallback > .book-list {
    border: none;
    border-radius: 0;
    margin: 0;
}

/* 书库已选胶囊 / 详卡与网格切换 */
.browse-active-filters {
    margin-top: 10px;
}
.browse-active-label {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-right: 2px;
}
.browse-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-default);
    background: var(--bg-subtle);
    flex-shrink: 0;
}
.browse-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 28px;
    padding: 0 10px;
    border: none;
    border-radius: calc(var(--radius-md) - 2px);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.browse-view-btn:hover {
    color: var(--color-text-strong);
}
.browse-view-btn.is-active {
    background: var(--bg-surface);
    color: var(--warm-ink);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.browse-view-btn .site-icon {
    font-size: 13px;
}

.book-list.book-list--grid {
    display: grid;
    grid-template-columns: repeat(var(--browse-grid-cols, 6), minmax(0, 1fr));
    gap: 16px 20px;
    padding: 18px 22px;
    background: var(--bg-surface);
    box-sizing: border-box;
}
.book-list.book-list--grid li:not(.list-empty) {
    width: auto;
    min-width: 0;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    overflow: hidden;
}
.book-list.book-list--grid li:not(.list-empty):hover {
    background: transparent;
}
.book-list.book-list--grid li .card-inner {
    flex-direction: column;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px;
    gap: 7px;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: background-color .16s ease;
}
@media (hover: hover) {
    .book-list.book-list--grid li:not(.list-empty):hover .card-inner {
        background: var(--warm-surface);
    }
}
.book-list.book-list--grid li .pic {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
}
.book-list.book-list--grid li .info {
    width: 100%;
    min-width: 0;
    gap: 3px;
}
.book-list.book-list--grid li .info .name {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
}
.book-list.book-list--grid li .info .meta-tags {
    font-size: 11.5px;
    gap: 4px;
}
.book-list.book-list--grid li .info .meta-tags .dot:nth-last-child(2),
.book-list.book-list--grid li .info .meta-tags .serialize,
.book-list.book-list--grid li .info .txt,
.book-list.book-list--grid li .info .foot {
    display: none;
}
.book-list.book-list--grid li.list-empty {
    grid-column: 1 / -1;
}

/* 详情页目录工具条与分卷锚点胶囊 */
.detail-cat-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 0 12px;
    margin-bottom: 4px;
    border: none;
}
.detail-cat-latest {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
    min-width: 0;
    margin-inline: -14px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    background: var(--warm-surface);
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color .16s ease;
}
.detail-cat-latest:hover {
    background: var(--warm-surface-end);
    text-decoration: none;
}
.detail-cat-latest-label {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--warm-ink);
}
.detail-cat-latest-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text-strong);
}
.detail-cat-latest:hover .detail-cat-latest-name {
    color: var(--warm-ink);
}
.detail-cat-latest-time {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--warm-ink);
    font-variant-numeric: tabular-nums;
    opacity: .86;
}
.detail-cat-latest-arrow {
    flex-shrink: 0;
    font-size: 14px;
    color: var(--warm-ink);
}

/* 认证页双栏书卷卡与密码强度三阶指示条 */
.user-form-container.auth-split-card,
.auth-split-card {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    width: 100%;
    max-width: 840px;
    margin: 32px auto;
    padding: 0;
    border: 1px solid var(--line-default);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    overflow: clip;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(31, 30, 27, .05);
}
.auth-brand-pane {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 36px 28px;
    border-right: 1px solid var(--line-faint);
    background: linear-gradient(165deg, var(--warm-surface) 0%, var(--warm-surface-end) 100%);
    box-sizing: border-box;
}
.auth-brand-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.auth-brand-eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--warm-ink);
}
.auth-brand-quote {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text-strong);
    letter-spacing: .01em;
}
.auth-brand-lead {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-secondary);
}
.auth-brand-perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.auth-brand-perk {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}
.auth-brand-perk-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--warm-border-soft);
    background: var(--bg-surface);
    color: var(--accent-bar);
    flex-shrink: 0;
}
.auth-brand-perk-ico .site-icon {
    font-size: 15px;
    line-height: 1;
}
.auth-brand-perk-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.auth-brand-perk-body strong {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text-strong);
}
.auth-brand-perk-body span {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-muted);
}
.auth-form-pane {
    padding: 32px 36px;
    min-width: 0;
    box-sizing: border-box;
}
.auth-form-pane .auth-card-title {
    margin-top: 0;
}

.site-input-block:has(> .pass-strength) {
    flex-wrap: wrap;
}
.site-input-block:has(> .pass-strength) > .pwd-field {
    flex: 1 0 100%;
    width: 100%;
}
.pass-strength {
    display: none;
    flex: 0 0 100%;
    width: 100%;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    box-sizing: border-box;
}
.pass-strength.is-weak,
.pass-strength.is-mid,
.pass-strength.is-strong {
    display: flex;
}
.pass-strength-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    flex: 1 1 auto;
}
.pass-strength-bar i {
    display: block;
    height: 4px;
    border-radius: var(--radius-xs);
    background: var(--line-default);
    font-style: normal;
    transition: background-color .18s ease;
}
.pass-strength-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}
.pass-strength.is-weak .pass-strength-bar i:nth-child(1) {
    background: var(--color-danger);
}
.pass-strength.is-weak .pass-strength-text {
    color: var(--color-danger);
}
.pass-strength.is-mid .pass-strength-bar i:nth-child(1),
.pass-strength.is-mid .pass-strength-bar i:nth-child(2) {
    background: var(--accent-bar);
}
.pass-strength.is-mid .pass-strength-text {
    color: var(--warm-ink);
}
.pass-strength.is-strong .pass-strength-bar i {
    background: var(--site-toast-ok);
}
.pass-strength.is-strong .pass-strength-text {
    color: var(--site-toast-ok);
}

/* 公告卡片微徽章与正文层次 */
.notice-item-title-wrap {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}
.notice-level-badge {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 7px;
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
}
.notice-level-badge--sm {
    height: 18px;
    padding: 0 5px;
    margin-right: 5px;
    font-size: 11px;
    vertical-align: 1px;
}
.notice-level-badge--0 {
    background: var(--bg-subtle);
    color: var(--text-secondary);
    border: 1px solid var(--line-default);
}
.notice-level-badge--1 {
    background: var(--warm-tint);
    color: var(--warm-ink);
    border: 1px solid var(--warm-border-soft);
}
.notice-level-badge--2 {
    background: var(--status-rejected-bg);
    color: var(--status-rejected-fg);
    border: 1px solid rgba(158, 74, 56, .22);
}
.notice-level-badge--link {
    background: var(--status-serializing-bg);
    color: var(--status-serializing-fg);
    border: 1px solid rgba(44, 102, 158, .22);
}
.notice-item-body {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-secondary);
    word-break: break-word;
    overflow-wrap: anywhere;
}
.notice-item-body img {
    max-width: 100%;
    height: auto;
}
.notice-item-body a {
    color: var(--warm-ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.notice-card-fold {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.notice-card-summary {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-secondary);
    word-break: break-word;
    overflow-wrap: anywhere;
}
.notice-card-fold:has(> .notice-card-details[open]) > .notice-card-summary {
    display: none;
}
.notice-card-details {
    margin: 0;
    min-width: 0;
}
.notice-card-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    max-width: 100%;
    padding: 0 11px;
    border: 1px solid var(--line-default);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
    list-style: none;
    box-sizing: border-box;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.notice-card-toggle::-webkit-details-marker,
.notice-card-toggle::marker {
    display: none;
    content: '';
}
.notice-card-toggle::after {
    content: '';
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-1px) rotate(45deg);
    transition: transform .16s ease;
    flex-shrink: 0;
}
.notice-card-details[open] > .notice-card-toggle::after {
    transform: translateY(2px) rotate(-135deg);
}
.notice-card-toggle:hover {
    background: var(--warm-tint);
    border-color: var(--warm-border-soft);
    color: var(--warm-ink);
}
.notice-card-toggle:focus-visible {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: var(--input-focus-ring);
}
.notice-card-toggle .txt-expand {
    display: inline;
}
.notice-card-toggle .txt-collapse {
    display: none;
}
.notice-card-details[open] > .notice-card-toggle .txt-expand {
    display: none;
}
.notice-card-details[open] > .notice-card-toggle .txt-collapse {
    display: inline;
}
.notice-card-details[open] > .notice-item-body {
    margin-top: 10px;
}
}

@layer states {
@media screen and (max-width: 450px) {
    html:has(main.page-closed),
    body:has(main.page-closed) {
        background-color: #fff;
    }
    main.page-closed {
        width: 100%;
        text-align: center;
        padding: 0;
        background-color: #fff;
    }
    main.page-closed .box,
    main.page-closed .pic {
        display: block;
    }
    main.page-closed .pic {
        position: relative;
        right: auto;
        top: auto;
    }
    main.page-closed ul li {
        text-align: left;
        margin-left: 60px;
    }
}
.site-form-item.site-form-danger .site-input,
.site-form-item.site-form-danger .site-textarea,
.site-form-item.site-form-danger select,
.site-form-item.site-form-danger .site-select__trigger {
    border-color: var(--color-danger);
}
.site-form-item.site-form-danger .site-input:focus,
.site-form-item.site-form-danger .site-textarea:focus,
.site-form-item.site-form-danger select:focus,
.site-form-item.site-form-danger .site-select__trigger:focus,
.site-form-item.site-form-danger .site-select.is-open > .site-select__trigger {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 3px rgba(158, 74, 56, .16);
}
.content-card:has(.site-select.is-open),
.section-box.acct-section:has(.site-select.is-open) {
    overflow: visible;
}
@media (max-width: 1200px) {
    .book-home .section-box > .home-head {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 1100px) {
    .stats-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    /* 顶栏放不下完整搜索时收成图标，避免压住频道名、输入区被挤没 */
    .header {
        --header-pad-l: max(var(--site-gutter), env(safe-area-inset-left, 0px));
        --header-pad-r: max(var(--site-gutter), env(safe-area-inset-right, 0px));
    }
    html .header .search:not(.search--expanded) {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        min-width: 0;
        margin: 0 0 0 auto;
    }
    .header .search.search--expanded {
        position: absolute;
        inset: 0;
        z-index: 1010;
        display: flex;
        align-items: center;
        gap: 8px;
        box-sizing: border-box;
        width: auto;
        max-width: none;
        min-width: 0;
        margin: 0;
        padding-left: var(--header-pad-l);
        padding-right: var(--header-pad-r);
        background: var(--header-bg);
    }
    .header .search.search--expanded .search-collapse-btn {
        display: inline-flex;
        width: 48px;
        height: 48px;
        color: var(--header-fg);
        background: transparent;
    }
    .header .search.search--expanded .search-collapse-btn:focus-visible {
        outline: 2px solid var(--accent-bar);
        outline-offset: 2px;
    }
    .header .search:not(.search--expanded) > .search-field {
        flex: 0 0 auto;
        width: auto;
    }
    .header .search.search--expanded > .search-field {
        flex: 1 1 auto;
        min-width: 0;
    }
    .header .search.search--expanded .input {
        width: 100%;
        height: 44px;
        background: var(--bg-surface);
        border: 1px solid var(--line-default);
        border-radius: var(--radius-md);
    }
    .header .search.search--expanded .input:focus-within {
        border-color: var(--input-focus-border);
        box-shadow: var(--input-focus-ring);
    }
    .header .search.search--expanded .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;
    }
    .header .search:not(.search--expanded) .search-suggest-list {
        display: none;
    }
    .header .search:not(.search--expanded) .input {
        background: transparent;
        border-color: transparent;
        box-shadow: none;
        width: auto;
        min-width: 0;
        height: 48px;
        overflow: visible;
    }
    .header .search:not(.search--expanded) .input:focus-within {
        border-color: transparent;
        box-shadow: none;
    }
    .header .search:not(.search--expanded) .search-input,
    .header .search:not(.search--expanded) .search-scope {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
        border: 0;
        opacity: 0;
        pointer-events: none;
    }
    .header .search:not(.search--expanded) .site-select--scope {
        display: none;
    }
    .header .search:not(.search--expanded) .search-btn {
        width: 44px;
        height: 44px;
        border-radius: var(--radius-md);
        overflow: visible;
    }
    .header .search:not(.search--expanded) .search-btn i {
        color: var(--header-fg);
        font-size: 22px;
        line-height: 1;
    }
    .header .search:not(.search--expanded) .search-btn:focus-visible {
        outline: 2px solid var(--accent-bar);
        outline-offset: 2px;
    }
    .header .search:not(.search--expanded) .search-btn:focus-visible i {
        color: var(--accent-bar);
    }
    @media (hover: hover) {
        .header .search:not(.search--expanded) .search-btn:hover i {
            color: var(--accent-bar);
        }
    }
    .header .search.search--expanded .search-input {
        position: static;
        width: auto;
        flex: 1 1 auto;
        height: 100%;
        padding: 0 10px;
        margin: 0;
        overflow: hidden;
        clip-path: none;
        opacity: 1;
        pointer-events: auto;
        border: none;
    }
    .header .search.search--expanded .search-scope {
        position: static;
        width: auto;
        max-width: 5em;
        height: auto;
        margin: 0;
        padding: 0 2px 0 8px;
        overflow: visible;
        clip-path: none;
        opacity: 1;
        pointer-events: auto;
        border: 0;
        border-right: 1px solid var(--line-default);
    }
    .header .search.search--expanded .site-select--scope {
        display: inline-flex;
        height: 100%;
    }
    .header .search.search--expanded .site-select--scope .site-select__trigger {
        padding: 0 8px 0 10px;
    }
    .header .search.search--expanded .search-btn {
        width: 44px;
        height: 100%;
    }
    .header .search.search--expanded .search-btn i {
        font-size: 18px;
        color: var(--text-muted);
    }
}
@media (max-width: 640px) {
    .book-home .section-box .home-head--tabs .top-section-tab {
        padding-left: 8px;
        padding-right: 8px;
    }
    .book-home .section-box > .home-head {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: var(--book-home-column-gap);
    }
    .book-home .section-box > .home-head > .top-section-tabs {
        grid-column: 1 / 2;
        justify-self: stretch;
        min-width: 0;
    }
    .book-home .section-box > .home-head > .module-title-more {
        grid-column: 2 / 3;
        justify-self: end;
    }
    .book-home .section-box > .home-head.home-head--solo > .module-title.home-head-title {
        grid-column: 1 / 2;
        justify-self: start;
        min-width: 0;
    }
    .book-home .web-sec-tags .tags-grid {
        gap: 8px;
        padding: 14px 0;
    }
    .book-home .tags-grid .tags-cell {
        padding: 5px 12px;
        font-size: 14px;
    }
    .home-showcase-list {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px 12px;
    }
    .book-home .section-box.home-genre-index .home-genre-body .home-genre-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }
    .book-home .section-box.home-genre-index .home-genre-tile {
        padding: 8px 6px;
        font-size: 13px;
    }
}
@media (max-width: 900px) {
    .book-home .recent-layout {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .book-home .recent-spot-col {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .book-home .recent-spot {
        flex: 0 0 auto;
    }
    .book-home .recent-table-wrap {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .notice-item-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .notice-item-meta {
        width: 100%;
        justify-content: space-between;
    }
    .home-showcase-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
@media (min-width: 481px) {
    .section-box .banner { min-height: 260px; }
}
@media (min-width: 769px) {
    .section-box .banner { min-height: 320px; }
}

/* 书币 / VIP 角标配色：双修饰类一处收口；位于 @layer states 盖过组件层各父链里的 background/box-shadow（含 hot-serial 的 box-shadow:none） */
.vip-tag.vip-tag--coin {
    background: var(--book-tag-coin-gradient);
    box-shadow: var(--book-tag-coin-shadow);
}
.vip-tag.vip-tag--vip {
    background: var(--book-tag-vip-gradient);
    box-shadow: var(--book-tag-vip-shadow);
}
.vip-tag.vip-tag--free {
    background: var(--book-tag-free-gradient);
    box-shadow: var(--book-tag-free-shadow);
}

/* 平板宽度（769–992px）：详情页侧栏改为单列堆叠，避免挤压 */
@media (min-width: 769px) and (max-width: 992px) {
    main[class$="-detail"] .detail-body {
        flex-direction: column;
        gap: var(--site-module-gap);
    }
    main[class$="-detail"] .detail-body .right {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-left: 0;
    }
}

@container account-main (max-width: 780px) {
    .section-box.acct-bento-hero,
    .section-box.acct-member-hero {
        grid-template-columns: 1fr;
    }
    .acct-bento-sign,
    .acct-member-aside {
        border-left: none;
        border-top: 1px solid var(--warm-border-soft);
    }
    .acct-perk-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .acct-profile-split {
        grid-template-columns: 1fr;
    }
    .acct-totp-grid {
        grid-template-columns: 1fr;
    }
}
@container account-main (max-width: 560px) {
    .acct-cover-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px 10px;
    }
}
@container account-main (max-width: 400px) {
    .acct-cover-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px 10px;
    }
}
@container account-main (max-width: 620px) {
    .section-box.acct-metrics-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .acct-metric-item {
        border-bottom: 1px solid var(--line-faint);
    }
    .acct-recent-grid,
    .acct-follow-grid,
    .user-item-list.acct-book-grid {
        grid-template-columns: 1fr;
    }
    .option-list.acct-sku-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .acct-profile-summary {
        margin-left: 0;
    }
    .acct-form-actions {
        padding-left: 0;
    }
}
@media (hover: none), (pointer: coarse) {
    .book-item .delete-btn {
        opacity: 1;
    }
}
/* 主栏变窄（侧栏仍在）时先收标签，再改为上下排；选择器对齐 ≤768 的 .account-main 规则 */
@container account-main (max-width: 820px) {
    .account-main .user-info-form .site-form-label {
        flex-basis: 112px;
        width: 112px;
    }

    .account-main .user-info-form .site-input-block {
        max-width: none;
        min-width: 0;
        flex: 1 1 auto;
    }
}
@container account-main (max-width: 560px) {
    .account-main .user-info-form .site-form-item {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 16px;
    }
    .account-main .user-info-form .site-form-label {
        flex: none;
        width: 100%;
        padding: 0 0 8px;
        text-align: left;
    }
    .account-main .user-info-form .site-input-block {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
    }
}

/* embed 登录窄框（iframe 常 <600）；独立登录页布局见下方 768 块 */
@media (max-width: 600px) {
    .user-form-container--embed {
        margin: 0 auto;
        padding: 20px 18px;
    }
    .user-form-container--embed h3 {
        font-size: 20px;
        margin-bottom: 18px;
    }
    .user-form-container--embed .site-form-item {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 14px;
    }
    .user-form-container--embed .site-form-label {
        flex: none;
        width: 100%;
        max-width: none;
        padding: 0 0 6px;
        text-align: left;
    }
    .user-form-container--embed .site-input-block {
        width: 100%;
    }
    .user-form-container--embed .site-input-block .input-group {
        flex-direction: column;
        gap: 8px;
    }
    .user-form-container--embed .site-input-block .input-group .input-group-select {
        flex: none;
        width: 100%;
    }
    .user-form-container--embed .site-input-block .input-group .code-btn {
        width: 100%;
        min-height: 44px;
    }
    .user-form-container--embed .site-input-block .input-group .site-input,
    .user-form-container--embed .site-input-block > .site-input:not(textarea) {
        min-height: 44px;
        height: 44px;
        line-height: 44px;
        font-size: 16px;
    }
    .user-form-container--embed .form-links,
    .user-form-container--embed .form-footer-links {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        text-align: center;
    }
}

/* ≤992px：首页 Banner + 排行榜纵向；频道页 `channel.tpl` 列表/卡片（同一 @media，勿再拆同名块） */
@media (max-width: 992px) {
    .section-box.web-sec-banner-rank {
        flex-direction: column;
        align-items: stretch;
        gap: var(--site-module-gap);
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    .section-box .banner,
    .section-box.web-sec-banner-rank .banner {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: 1 1 auto;
    }
    .section-box .top-section {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: 1 1 auto;
    }
    /*
     * 并排时侧栏与 Banner stretch 等高，面板 flex:1 + overflow:hidden 正常填满。
     * 纵向堆叠后 .top-section 高度为 intrinsic，面板若仍 flex-basis:0 且 overflow 非 visible，
     * WebKit/Flexbox 可把子块最小贡献算成 0，Tab 内容区塌成空白（此前仅公告面板有专项修复）。
     */
    .section-box.web-sec-banner-rank .top-section--tabs .top-section-panel:not([hidden]) {
        flex: 0 0 auto;
        min-height: auto;
        overflow: visible;
    }
    .section-box.web-sec-banner-rank .top-section .top-list {
        flex: none;
        min-height: auto;
        overflow: visible;
    }

    .home-genre-body .home-genre-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .finish-row {
        flex-direction: column;
        align-items: stretch;
        gap: var(--site-module-gap);
        max-width: 100%;
        min-width: 0;
    }
    .finish-row .finish,
    .finish-row .update-latest {
        flex: 1 1 auto;
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }
    /* 窄屏允许多行标题，勿再 nowrap+ellipsis 成单字省略 */
    .cate-card .module-title > h2,
    .cate-card .module-title > h3 {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-break: break-word;
        line-height: 1.35;
    }
    .latest-update-list li {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 10px;
        row-gap: 6px;
        align-items: start;
        min-height: 0;
        padding: 10px 0;
    }
    .latest-update-list .book-name {
        grid-column: 1;
        grid-row: 1;
        flex: unset;
        min-width: 0;
        max-width: none;
        margin-right: 0;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-break: break-word;
    }
    .latest-update-list .book-name a {
        word-break: break-word;
        overflow-wrap: anywhere;
        white-space: normal;
    }
    .latest-update-list .time {
        grid-column: 2;
        grid-row: 1;
        flex: unset;
        min-width: 0;
        text-align: right;
        justify-self: end;
        white-space: nowrap;
    }
    .latest-update-list .cat {
        grid-column: 1 / -1;
        grid-row: 2;
        flex: unset;
        min-width: 0;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
    .latest-update-list .chapter {
        grid-column: 1 / -1;
        grid-row: 3;
        flex: unset;
        min-width: 0;
        margin-right: 0;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-break: break-word;
    }
    .latest-update-list .author {
        grid-column: 1 / -1;
        grid-row: 4;
        flex: unset;
        min-width: 0;
        margin-right: 0;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-break: break-word;
    }
    .finish-book-list .name {
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-break: break-word;
        display: block;
        -webkit-line-clamp: unset;
        line-clamp: unset;
    }
    .book-home .ranks-podium {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
    .book-home .ranks-tail-list {
        column-gap: 16px;
    }
    .top-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
    .top-side-col {
        position: static;
        top: auto;
        gap: 12px;
    }
    .top-sidebar {
        padding: 10px 12px;
    }
    .top-side-head,
    .top-nav-group-title,
    .top-nav-link.is-active::before {
        display: none;
    }
    .top-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 4px;
        overflow-x: auto;
        padding-right: 24px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        -webkit-mask-image: linear-gradient(to right, #000 90%, transparent 100%);
        mask-image: linear-gradient(to right, #000 90%, transparent 100%);
    }
    .top-nav::-webkit-scrollbar {
        display: none;
    }
    .top-nav-group {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex: 0 0 auto;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
    .top-nav-group + .top-nav-group {
        margin-left: 6px;
        padding-left: 10px;
        border-left: 1px solid var(--line-faint);
    }
    .top-nav-list,
    .top-nav-list.top-nav-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 4px;
    }
    .top-nav-link,
    .top-nav-grid .top-nav-link {
        display: inline-flex;
        align-items: center;
        min-height: 36px;
        padding: 0 12px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    @media (min-width: 561px) {
        .cate-card {
            flex: 0 0 calc((100% - var(--site-module-gap)) / 2);
            max-width: calc((100% - var(--site-module-gap)) / 2);
            min-width: 0;
        }
    }

    @media (max-width: 560px) {
        .cate-card {
            width: 100%;
            max-width: 100%;
            flex: 1 1 100%;
            min-width: 0;
        }
        .book-row.first .cover {
            width: 80px;
            height: 106px;
            margin-right: 12px;
        }
        .book-row.first .info {
            min-height: 106px;
        }
    }
    .account-main .account-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        min-width: 0;
        overflow-x: clip;
    }
    .account-main .account-sidebar {
        position: static;
        top: auto;
        padding: 10px 12px;
    }
    .account-main .account-sidebar .acct-side-head {
        display: none;
    }
    .account-main .account-sidebar .sidebar-menu li.is-active a::before {
        display: none;
    }
    .acct-hero-bar {
        padding: 12px 16px 15px;
    }

    .account-main .account-sidebar .account-sidebar-name {
        margin-top: 0;
        flex: 1 1 auto;
        min-width: 0;
    }

    .account-main .account-sidebar .sidebar-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .account-main .account-sidebar .sidebar-menu::-webkit-scrollbar {
        display: none;
    }
    .account-main .account-sidebar .sidebar-menu li {
        margin-bottom: 0;
        flex: 0 0 auto;
    }
    .account-main .account-sidebar .sidebar-menu li.sidebar-menu-sep {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
        margin-left: 4px;
        padding-left: 10px;
        border-left: 1px solid var(--line-faint);
    }
    .account-main .account-sidebar .sidebar-menu li a {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        padding: 8px 13px;
        font-size: 13.5px;
        white-space: nowrap;
        box-sizing: border-box;
        touch-action: manipulation;
    }
    .account-main .account-sidebar .sidebar-menu li a span {
        flex: 0 0 auto;
    }
    .home-eco-strip {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .home-authors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .channel-spotlight {
        grid-template-columns: 1fr;
    }
    .home-featured-split {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .channel-cate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .channel-cate-grid > .cate-card {
        flex: none;
        width: 100%;
        max-width: none;
    }
    .book-list.book-list--grid {
        --browse-grid-cols: 5;
    }
}

/* 书库/漫库/检索、登录与账户顶栏、book-home 最近表、详情：全站仅一处 768（须与 assets/js/base.js 中 FRONT_NARROW_MAX 一致） */
@media (max-width: 768px) {
    .user-form-container--split {
        max-width: 480px;
        padding: 24px 20px;
    }
    .user-form-container .login-split--qr {
        flex-direction: column;
    }
    .user-form-container .login-split--qr .login-qr-panel {
        display: none;
    }
    .user-form-container .login-split--qr .login-account-panel {
        padding: 0;
    }
    .user-form-container .form-links {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }
    .user-form-container .login-qr-tip {
        white-space: normal;
    }
    .js-top-banner .banner.site-banner-carousel,
    .section-box.web-sec-banner-rank .banner.site-banner-carousel {
        height: 260px;
    }
    #browse-filter .channel {
        padding: 8px 12px 0;
    }
    #browse-filter .channel li {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px 0;
    }
    #browse-filter .channel li .name {
        width: 100%;
        min-width: 0;
        margin-right: 0;
        padding-top: 0;
    }
    #browse-filter .channel li .list {
        width: 100%;
    }
    #browse-filter .browse-filter-toggle {
        display: flex;
        min-height: 44px;
        align-items: center;
        touch-action: manipulation;
    }
    #browse-filter .browse-filter-panel.is-collapsed .channel {
        display: none;
    }

    #pagination {
        margin: 16px 0 24px;
        padding: 0 2px;
        --pager-h: 44px;
        --pager-r: 6px;
    }
    #pagination .site-pager {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }
    #pagination .site-pager-count {
        order: 1;
        justify-content: center;
        height: auto;
        font-size: 13px;
        color: #999;
    }
    #pagination .site-pager-pages {
        order: 2;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 6px;
        width: 100%;
    }
    #pagination .site-pager-prev,
    #pagination .site-pager-next {
        flex: 1 1 72px;
        min-width: 0;
        max-width: none;
        padding: 0 8px;
        font-size: 13px;
    }
    #pagination .site-pager-num,
    #pagination .site-pager-curr {
        flex: 0 1 44px;
        width: auto;
        min-width: 44px;
        padding: 0;
        font-size: 14px;
    }
    #pagination .site-pager-skip {
        order: 3;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 6px;
        width: 100%;
        margin: 0;
        padding-top: 10px;
        border-top: 1px solid var(--line-soft);
        font-size: 13px;
        color: #666;
    }
    #pagination .site-pager-input {
        width: 52px;
        padding: 0 6px;
        text-align: center;
        font-size: 15px;
    }
    #pagination .site-pager-go {
        min-width: 56px;
        padding: 0 14px;
    }

    .site-main:not(.book-home) > .site-container .book-list li:not(.list-empty) {
        width: 100%;
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
        border-right: none;
        border-bottom: 1px solid var(--line-soft);
    }
    .site-main:not(.book-home) > .site-container .book-list li:last-child {
        border-bottom: none;
    }
    .site-main:not(.book-home) > .site-container .book-list li:nth-last-child(2):nth-child(odd):not(.list-empty) {
        border-bottom: 1px solid var(--line-soft);
    }
    .site-main:not(.book-home) > .site-container .book-list li .card-inner {
        padding: 14px 12px;
        gap: 12px;
    }
    .site-main:not(.book-home) > .site-container .book-list li .pic {
        width: 78px;
        height: 104px;
    }
    .site-main:not(.book-home) > .site-container .book-list li .info .name {
        font-size: 16px;
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        word-break: break-word;
    }
    .site-main:not(.book-home) > .site-container .book-list li .info .meta-tags {
        flex-wrap: wrap;
        align-items: flex-start;
        white-space: normal;
        row-gap: 4px;
        column-gap: 6px;
    }
    .site-main:not(.book-home) > .site-container .book-list li .info .meta-tags .author {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
    .site-main:not(.book-home) > .site-container .book-list li .info .foot {
        flex-wrap: wrap;
        align-items: flex-start;
        row-gap: 4px;
        column-gap: 6px;
    }
    .site-main:not(.book-home) > .site-container .book-list li .info .foot .last-chap {
        flex: 1 1 100%;
        min-width: 0;
    }
    .site-main:not(.book-home) > .site-container .book-list li.list-empty {
        font-size: 17px;
        padding: 56px 16px;
        min-height: 120px;
        border-bottom: none;
    }

    html.header-mobile-nav-open,
    html.header-mobile-nav-open body {
        overflow: hidden;
    }
    .header {
        --header-pad-l: max(var(--site-gutter), env(safe-area-inset-left, 0px));
        --header-pad-r: max(var(--site-gutter), env(safe-area-inset-right, 0px));
    }
    .header .mobile-menu-btn {
        display: flex;
        flex-shrink: 0;
    }
    /* 覆盖全局 `justify-content: space-between`：窄屏仅三列（汉堡|Logo|工具条），须 flex-start */
    .header-inner {
        justify-content: flex-start;
        gap: 0 8px;
        min-width: 0;
        padding-left: var(--header-pad-l);
        padding-right: var(--header-pad-r);
    }
    /* Logo 图带 width=100：flex 子项 min-width:auto 会锁死 ~100px，真机窄屏挤压右侧头像；须可收缩 */
    .header .logo {
        flex: 0 1 auto;
        min-width: 0;
        max-width: min(168px, 46vw);
        margin-right: 0;
        overflow: hidden;
        gap: 6px;
    }
    .header .logo img,
    .header .logo svg {
        width: auto;
        max-width: 100%;
        height: 30px;
        max-height: 30px;
        object-fit: contain;
    }
    .header .logo .site-brand-name {
        font-size: 16px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .header .channel-links {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        padding: 8px 14px calc(12px + env(safe-area-inset-bottom, 0px));
        background: var(--header-drawer-bg);
        border-bottom: 1px solid var(--header-border);
        z-index: 998;
        max-height: min(72vh, 420px);
        overflow-x: hidden;
        overflow-y: auto;
        box-sizing: border-box;
        box-shadow: 0 10px 28px rgba(31, 30, 27, .12);
        -webkit-overflow-scrolling: touch;
    }
    .header-inner.is-mobile-nav-open .channel-links {
        display: flex;
    }
    .header .channel-links a {
        display: flex;
        align-items: center;
        min-height: 42px;
        line-height: 1.3;
        padding: 6px 8px;
        white-space: normal;
        border-bottom: 1px solid var(--line-subtle);
        box-sizing: border-box;
        touch-action: manipulation;
    }
    .header .channel-links a:last-child {
        border-bottom: none;
    }
    .header .channel-links a i {
        display: none;
    }
    /* 图标态展开样式见 ≤1100；此处仅窄屏增量，避免与 1100 块重复 */
    .header .search:not(.search--expanded) {
        margin: 0;
    }
    .header .search:not(.search--expanded) .search-btn .site-icon,
    .header .user-menu .item.js-read > a > i.site-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        overflow: visible;
    }
    .header .search:not(.search--expanded) .search-btn:focus-visible i {
        color: var(--accent-bar);
    }
    .header .search.search--expanded .search-scope {
        max-width: 6.2em;
    }
    .header .search.search--expanded .site-select--scope .site-select__trigger {
        font-size: 14px;
    }
    /* 窄屏顶栏搜索聚焦：统一素宣墨金柔光 */
    .header .search .input:focus-within {
        border-color: var(--input-focus-border);
        box-shadow: var(--input-focus-ring);
    }
    .header .search .input input:focus-visible,
    .header .search .input .search-btn:focus-visible {
        outline: none;
    }
    .header .search .input input {
        min-width: 0;
        padding: 0 10px;
    }
    .header .search .search-suggest-list {
        max-height: min(50vh, 240px);
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .header .search .search-suggest-list li {
        padding: 10px 12px;
        font-size: 15px;
        line-height: 1.45;
    }
    .header-tools {
        display: flex;
        flex: 1 1 auto;
        align-items: center;
        min-width: 0;
    }
    .header-tools .user-menu {
        display: contents;
    }
    .header .mobile-menu-btn,
    .header .user-menu .item a,
    .header .user-menu .item button,
    .header .search:not(.search--expanded) .search-btn {
        touch-action: manipulation;
    }
    .header .user-menu .item {
        min-width: 44px;
        padding: 2px;
    }
    /* 角标勿伸出头像圆外，避免父级 flex/视口在真机上裁切 */
    .header .user-menu .item.js-user .header-avatar-badge {
        right: 2px;
        top: 0;
    }
    /* 与搜索图标同列：仅图标、不显示「历史」「书架」「白天/黑夜」小字；链接名由 aria-label 承担 */
    .header .user-menu .item.js-read .user-nav-label,
    .header .user-menu .item.js-shelf .user-nav-label,
    .header .user-menu .item.js-theme .user-nav-label {
        display: none;
    }
    .header .user-menu .item.js-read > a > i,
    .header .user-menu .item.js-shelf > a > i {
        margin-bottom: 0;
    }
    .header .user-menu .item.js-theme .js-theme-toggle > i {
        margin-bottom: 0;
    }
    .header .user-menu .item.js-appdown {
        display: none;
    }
    /* 窄屏四格等分：contents 下 `.item` 非 `.header-tools` 直接子，须 `.header-tools .item`；须在本块 `.user-menu .item` 之后以压住 min-width */
    .header .header-tools > .search:not(.search--expanded),
    .header .header-tools .item.js-theme,
    .header .header-tools .item.js-read,
    .header .header-tools .item.js-shelf,
    .header .header-tools .item.js-user {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    /* 下拉原相对各 .item 右对齐宽 320px，「历史」靠左会向屏外溢出；改为视口区内全宽留白 */
    .header .user-menu .item .dialog {
        position: fixed;
        left: max(16px, env(safe-area-inset-left, 0px));
        right: max(16px, env(safe-area-inset-right, 0px));
        top: var(--header-menu-dialog-top);
        margin-top: 0;
        width: auto;
        max-width: none;
        z-index: 1005;
        box-sizing: border-box;
    }
    .header .user-menu .item .dialog::before {
        display: none;
    }
    .header .user-menu .dialog .dropdown-panel,
    .header .user-menu .dialog .dropdown-panel--narrow {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .cancel-account-wrap {
        padding: 10px 0;
    }

    input,
    textarea,
    select {
        font-size: 16px;
    }

    .site-btn:not(.site-btn-xs),
    a.site-btn:not(.site-btn-xs),
    button.site-btn:not(.site-btn-xs),
    label.site-btn:not(.site-btn-xs) {
        height: 44px;
        min-height: 44px;
        line-height: 42px;
        touch-action: manipulation;
    }
    .site-btn.site-btn-sm,
    a.site-btn.site-btn-sm,
    button.site-btn.site-btn-sm {
        height: 44px;
        min-height: 44px;
        line-height: 42px;
        padding: 0 12px;
        font-size: 13px;
    }
    .site-btn.site-btn-xs,
    a.site-btn.site-btn-xs,
    button.site-btn.site-btn-xs {
        height: 36px;
        min-height: 36px;
        line-height: 34px;
        padding: 0 10px;
    }
    #browse-filter .channel li .list a {
        display: inline-flex;
        align-items: center;
        margin: 0 6px 6px 0;
        min-height: 36px;
        padding: 6px 10px;
        box-sizing: border-box;
        touch-action: manipulation;
    }

    .user-form-container:not(.user-form-container--embed) input,
    .user-form-container:not(.user-form-container--embed) textarea,
    .user-form-container:not(.user-form-container--embed) select {
        touch-action: manipulation;
        pointer-events: auto;
    }

    .user-form-container:not(.user-form-container--embed) {
        margin: 0 auto;
        padding: 20px max(14px, var(--site-gutter));
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }
    .user-form-container:not(.user-form-container--embed) h3 {
        font-size: 20px;
        margin-bottom: 18px;
    }
    .user-form-container:not(.user-form-container--embed) .site-form-item {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: wrap;
        margin-bottom: 16px;
    }
    .user-form-container:not(.user-form-container--embed) .site-form-item:after {
        display: none;
    }
    .user-form-container:not(.user-form-container--embed) .site-form-label {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        float: none;
        margin-left: 0;
        text-align: left;
        padding: 0 0 6px;
        box-sizing: border-box;
    }
    .user-form-container:not(.user-form-container--embed) .site-input-block {
        width: 100%;
        flex-wrap: wrap;
    }
    .user-form-container:not(.user-form-container--embed) .site-input-block .input-group {
        flex-direction: column;
        align-items: stretch;
    }
    .user-form-container:not(.user-form-container--embed) .input-group-select,
    .user-form-container:not(.user-form-container--embed) .site-input-block .input-group .input-group-select {
        flex: 0 0 auto;
        width: 100%;
    }
    /* 列布局下勿沿用桌面 `flex:1`（basis 0），否则手机号输入框被压扁，与密码框高度不一致 */
    .user-form-container:not(.user-form-container--embed) .site-input-block .input-group .site-input,
    .user-form-container:not(.user-form-container--embed) .site-input-block > .site-input:not(textarea) {
        flex: none;
        width: 100%;
        min-height: 44px;
        height: 44px;
        line-height: 44px;
        box-sizing: border-box;
    }
    .user-form-container:not(.user-form-container--embed) .input-group-select select {
        width: 100%;
        min-height: 44px;
        height: 44px;
        line-height: 44px;
        box-sizing: border-box;
        padding: 0 10px;
    }
    .user-form-container:not(.user-form-container--embed) .input-group-select .site-select__trigger {
        width: 100%;
        min-height: 44px;
        height: 44px;
        font-size: 16px;
        padding: 0 10px;
        box-sizing: border-box;
    }
    .user-form-container:not(.user-form-container--embed) .site-input-block .input-group .code-btn {
        width: 100%;
        white-space: normal;
        line-height: 1.25;
        min-height: 44px;
        height: auto;
        padding: 10px 12px;
    }
    .user-form-container:not(.user-form-container--embed) .form-links {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }
    .user-form-container:not(.user-form-container--embed) .form-footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .user-form-container:not(.user-form-container--embed) .form-footer-links > div {
        line-height: 1.6;
    }

    main.site-main.account-main {
        padding-left: max(8px, env(safe-area-inset-left, 0px));
        padding-right: max(8px, env(safe-area-inset-right, 0px));
        max-width: 100vw;
        overflow-x: clip;
    }
    .account-main .site-breadcrumb,
    .author-wiki-page > .site-container > .site-breadcrumb,
    main[class$="-detail"] .detail-header .site-breadcrumb {
        padding: 0;
        font-size: 14px;
        line-height: 1.45;
        overflow-x: auto;
        overflow-y: visible;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .account-main .site-breadcrumb::-webkit-scrollbar,
    .author-wiki-page > .site-container > .site-breadcrumb::-webkit-scrollbar,
    main[class$="-detail"] .detail-header .site-breadcrumb::-webkit-scrollbar {
        display: none;
    }
    .account-main .site-breadcrumb {
        word-break: break-word;
    }

    .account-main .account-content {
        --account-card-pad-x: 12px;
        overflow-x: clip;
    }
    .account-main .account-bind-hint {
        margin-bottom: 16px;
    }
    /* 盖过 PC 的 --site-ctrl-h 顶栏规则，窄屏触控仍 ≥44（筛选同行见 writer.css） */
    .account-main .content-card > .home-head .site-btn {
        height: 44px;
        min-height: 44px;
        line-height: 42px;
        font-size: 14px;
        touch-action: manipulation;
    }

    .account-main .stats-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .account-main .user-home-hero .stats-tile--nested {
        min-height: 0;
    }
    .account-main .content-card {
        padding: 10px var(--account-card-pad-x) 18px;
    }
    .account-main .content-card > .home-head.home-head--tabs .top-section-tabs {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .account-main .user-pay-body .user-order-table thead th:nth-child(3),
    .account-main .user-pay-body .user-order-table thead th:nth-child(4),
    .account-main .user-pay-body .user-order-table thead th:nth-child(5),
    .account-main .user-pay-body .user-order-table tbody td:nth-child(3),
    .account-main .user-pay-body .user-order-table tbody td:nth-child(4),
    .account-main .user-pay-body .user-order-table tbody td:nth-child(5) {
        display: none;
    }
    .account-main .account-content .content-card:has(.site-table) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    .account-main .account-content .content-card:has(.user-pay-body .user-order-table) {
        overflow-x: visible;
    }
    .account-main .stats-grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .account-main .stats-tile--nested {
        padding: 10px 8px;
        min-width: 0;
    }
    .account-main .stats-tile--nested .stats-tile-label {
        font-size: 12px;
        margin-bottom: 4px;
    }
    .account-main .stats-tile--nested .stats-tile-value {
        font-size: 14px;
        line-height: 1.35;
        word-break: break-word;
    }
    /* 会员中心：仅窄屏（与 `FRONT_NARROW_MAX` 一致）权益多列、邀请三指标一行；PC/较宽平板保持单列原样 */

    .account-main .member-pill {
        align-self: flex-start;
    }

    .account-main .content-card:has(.member-invite-table) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    .account-main .member-invite-table th,
    .account-main .member-invite-table td {
        white-space: normal;
        word-break: break-word;
        padding-left: 6px;
        padding-right: 6px;
        box-sizing: border-box;
    }
    .account-main .member-invite-table th:nth-child(1),
    .account-main .member-invite-table td:nth-child(1) {
        width: 42%;
    }
    .account-main .member-invite-table th:nth-child(2),
    .account-main .member-invite-table td:nth-child(2) {
        width: 24%;
    }
    .account-main .member-invite-table th:nth-child(3),
    .account-main .member-invite-table td:nth-child(3) {
        width: 34%;
    }
    .account-main .option-list li {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .account-main .option-list.pay-sku-options {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 10px;
    }
    .account-main .option-list.pay-sku-options li {
        flex: none;
        max-width: none;
    }
    .account-main .pay-btn {
        width: 100%;
        max-width: 320px;
        box-sizing: border-box;
    }
    .account-main .payment-options li {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .account-main .user-item-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .account-main .user-info-form .site-form-item {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 16px;
    }
    .account-main .user-info-form .site-form-label {
        width: 100%;
        padding: 0 0 8px;
        text-align: left;
    }
    .account-main .user-info-form .site-input-block {
        max-width: 100%;
        min-width: 0;
        margin-left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        display: flex;
    }
    .account-main .user-info-form .site-input-block > .site-input:not(textarea),
    .account-main .user-info-form .site-input-block > select,
    .account-main .user-info-form .site-input-block > .site-select .site-select__trigger,
    .account-main .cancel-account-form .site-input-block > .site-input:not(textarea),
    .account-main .content-card .form-wrap .site-form .site-input-block > .site-input:not(textarea),
    .account-main .content-card .form-wrap .site-form .site-input-block > select,
    .account-main .content-card .form-wrap .site-form .site-input-block > .site-select .site-select__trigger,
    .payout-popup-form .site-input-block > .site-input:not(textarea) {
        min-height: 44px;
        height: 44px;
    }
    .account-main .user-info-form .site-input-block > .site-input:not(textarea),
    .account-main .user-info-form .site-input-block > select,
    .account-main .cancel-account-form .site-input-block > .site-input:not(textarea),
    .account-main .content-card .form-wrap .site-form .site-input-block > .site-input:not(textarea),
    .account-main .content-card .form-wrap .site-form .site-input-block > select,
    .payout-popup-form .site-input-block > .site-input:not(textarea) {
        line-height: 44px;
    }
    .account-main .user-info-form .site-input-block > .site-select .site-select__trigger,
    .account-main .content-card .form-wrap .site-form .site-input-block > .site-select .site-select__trigger {
        font-size: 16px;
    }
    .account-main .info-verify-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .account-main .info-verify-group .input-group-select {
        width: 100%;
    }
    .account-main .info-verify-group .site-input {
        width: 100%;
        min-height: 44px;
        height: 44px;
        line-height: 44px;
        box-sizing: border-box;
    }
    .account-main .info-verify-group .code-btn {
        width: 100%;
        min-height: 44px;
        height: auto;
        line-height: 1.35;
        padding: 10px 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .site-main article.doc {
        padding: 20px max(14px, var(--site-gutter));
        margin-top: 0;
    }
    article.doc h2 {
        font-size: 20px;
    }
    article.doc h3 {
        font-size: 17px;
    }

    .book-home .recent-table-wrap {
        overflow-x: visible;
    }
    .book-home .recent-td--cate,
    .book-home .recent-td--time {
        display: none;
    }
    .book-home .recent-td--name {
        width: 30%;
        padding-left: 8px;
        padding-right: 6px;
    }
    .book-home .recent-td--chap {
        width: 44%;
        padding-left: 6px;
        padding-right: 6px;
    }
    .book-home .recent-td--author {
        width: 26%;
        padding-left: 6px;
        padding-right: 8px;
    }
    .book-home a.recent-name {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        white-space: normal;
        word-break: break-word;
        vertical-align: unset;
    }
    .book-home a.recent-author {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        white-space: normal;
        word-break: break-word;
        vertical-align: unset;
    }
    .book-home .recent-chaprow .recent-chap {
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        word-break: break-word;
    }

    main[class$="-detail"] .book-info {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        column-gap: 14px;
        row-gap: 8px;
        align-items: start;
        padding: 16px;
        margin-bottom: 18px;
    }
    main[class$="-detail"] .book-info .pic {
        grid-column: 1;
        grid-row: 1 / span 3;
        width: 104px;
        max-width: 104px;
        height: 140px;
        aspect-ratio: 104 / 140;
        align-self: start;
        border-radius: var(--radius-md);
    }
    main[class$="-detail"] .book-info .data {
        display: contents;
    }
    main[class$="-detail"] .book-info .data .title {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        font-size: clamp(18px, 4.8vw, 22px);
        margin: 0;
    }
    main[class$="-detail"] .book-info .data .meta {
        grid-column: 2;
        grid-row: 2;
        min-width: 0;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 10px;
    }
    main[class$="-detail"] .book-info .data .meta span {
        white-space: normal;
        word-break: break-word;
    }
    main[class$="-detail"] .book-info .data .nums {
        grid-column: 1 / -1;
        gap: 6px 14px;
        margin-top: 4px;
    }
    main[class$="-detail"] .book-info .data .book-score-star {
        padding: 10px;
        margin: -10px;
    }
    main[class$="-detail"] .book-info .data .book-score-star .site-icon {
        font-size: 28px;
    }
    main[class$="-detail"] .book-info .data .book-score-hint {
        font-size: 14px;
    }
    main[class$="-detail"] .book-info .data .detail-tags-row {
        grid-column: 2;
        grid-row: 3;
        min-width: 0;
        align-items: flex-start;
    }
    main[class$="-detail"] .book-info .data .nums span {
        white-space: normal;
        word-break: break-word;
    }
    main[class$="-detail"] .book-info .data .desc-wrap {
        grid-column: 1 / -1;
        margin-top: 2px;
        text-align: left;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    main[class$="-detail"] .book-info .data .desc {
        max-width: none;
    }
    main[class$="-detail"] .book-info .data .actions {
        grid-column: 1 / -1;
        margin-top: 4px;
        gap: 10px;
        align-items: stretch;
    }
    main[class$="-detail"] .book-info .data .actions .qr-pop {
        display: none;
    }
    main[class$="-detail"] .book-info .data .actions > a.site-btn {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        text-align: center;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        writing-mode: horizontal-tb;
        height: 46px;
        line-height: 44px;
        padding: 0 16px;
    }
    main[class$="-detail"] .book-info .data .actions .shelf-btn,
    main[class$="-detail"] .book-info .data .actions .urge-btn,
    main[class$="-detail"] .book-info .data .actions > .txt-dl {
        flex: 1 1 auto;
        min-width: calc(50% - 6px);
        justify-content: center;
        white-space: nowrap;
        writing-mode: horizontal-tb;
    }
    main[class$="-detail"] .detail-body {
        flex-direction: column;
        gap: var(--site-module-gap);
    }
    main[class$="-detail"] .detail-body .left {
        width: 100%;
        min-width: 0;
        order: 1;
    }
    main[class$="-detail"] .detail-body .right {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-left: 0;
        order: 2;
    }
    main[class$="-detail"] .detail-catalogue {
        padding-left: 12px;
        padding-right: 12px;
    }
    main[class$="-detail"] .detail-catalogue .catalogue-body {
        margin-inline: -8px;
        padding-inline: 8px;
    }
    main[class$="-detail"] .detail-catalogue .volume-head {
        margin: 0 -8px 6px;
        padding: 9px 8px;
    }
    main[class$="-detail"] .detail-cat-latest {
        width: auto;
        margin-inline: -8px;
        padding: 10px 8px;
        gap: 6px;
    }
    main[class$="-detail"] .detail-cat-latest-label,
    main[class$="-detail"] .detail-cat-latest-name {
        font-size: 15px;
    }
    main[class$="-detail"] .detail-cat-latest-time {
        display: none;
    }
    main[class$="-detail"] .detail-catalogue .catalogue-head {
        flex-wrap: wrap;
        gap: 8px 12px;
        align-items: center;
    }
    main[class$="-detail"] .detail-catalogue .catalogue-head h2,
    main[class$="-detail"] .detail-catalogue .catalogue-head h3 {
        flex: 1 1 auto;
        min-width: 0;
        overflow-wrap: break-word;
    }
    main.novel-detail .catalogue-list .chapter-list {
        gap: 0;
    }
    main[class$="-detail"] .catalogue-list .chapter-list li {
        flex-basis: 100%;
        max-width: 100%;
        height: auto;
        min-height: 44px;
        line-height: 1.35;
    }
    main.novel-detail .catalogue-list .chapter-list li a {
        min-height: 44px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    main#main-content.comic-detail .catalogue-list .chapter-list {
        gap: 12px;
    }
    main#main-content.comic-detail .catalogue-list .chapter-list li {
        flex-basis: calc((100% - 12px) / 2);
        max-width: calc((100% - 12px) / 2);
        min-width: 0;
    }
    main#main-content.comic-detail .catalogue-list .chapter-list li a {
        height: auto;
        min-height: 120px;
        aspect-ratio: 3 / 4;
    }
    .return-top {
        right: max(12px, env(safe-area-inset-right, 0px));
        bottom: max(12px, env(safe-area-inset-bottom, 0px));
    }
    .home-genre-head,
    .book-home .section-box.home-genre-index > .home-genre-head,
    .book-home .section-box.home-genre-index > .home-genre-head.home-head--tabs {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 12px;
        gap: 10px;
    }
    .home-genre-head-aside {
        order: -1;
        width: 100%;
        margin-left: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 8px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--line-faint);
    }
    .home-genre-head-main {
        width: 100%;
    }
    .home-genre-shortcuts {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        padding-left: 0;
        border-left: none;
    }
    .home-genre-link {
        justify-content: center;
        text-align: center;
        padding: 6px 4px;
        font-size: 13px;
    }
    .home-genre-link--accent {
        background: var(--warm-tint);
        color: var(--warm-ink);
        font-weight: 600;
    }
    .home-genre-body {
        padding: 10px 12px 12px;
    }
    .home-genre-body .home-genre-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }
    .home-genre-tile {
        padding: 7px 6px;
        font-size: 12.5px;
    }
    .seg-switch {
        width: 100%;
    }
    .seg-switch-item {
        flex: 1 1 0;
        padding: 0 10px;
        height: 32px;
    }
    .channel-hero-main {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px;
        gap: 10px;
    }
    .channel-hero-copy {
        flex: 0 0 auto;
        width: 100%;
    }
    .channel-hero-title {
        font-size: 18px;
    }
    .channel-sub-nav {
        padding: 8px 12px 10px;
    }
    .channel-sub-link--all {
        margin-left: 0;
    }
    .browse-filter-chips {
        padding: 8px 12px;
    }
    .book-home .ranks-stage-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 12px;
        gap: 10px;
    }
    .book-home .ranks-unified-aside {
        order: -1;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 8px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--line-faint);
    }
    .book-home .ranks-unified-main {
        width: 100%;
        gap: 8px 10px;
    }
    .book-home .ranks-stage-bar .ranks-stage-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px 4px;
        overflow: visible;
    }
    .book-home .ranks-stage-bar .ranks-stage-tab {
        width: 100%;
        padding: 6px 4px;
        font-size: 13px;
        text-align: center;
        border-color: transparent;
    }
    .book-home .ranks-stage-bar .ranks-stage-tab.is-active,
    .book-home .ranks-stage-bar .ranks-stage-tab[aria-selected="true"] {
        background: var(--warm-tint);
        border-color: transparent;
        color: var(--warm-ink);
        font-weight: 600;
        box-shadow: none;
    }
    .book-home .ranks-stage-panel {
        padding: 12px 12px 14px;
    }
    .book-home .ranks-podium-card {
        padding: 12px;
        gap: 12px;
    }
    .book-home .ranks-podium-cov {
        flex: 0 0 76px;
        width: 76px;
        height: 102px;
    }
    .book-home .ranks-podium-body {
        gap: 4px;
    }
    .book-home .ranks-podium-desc {
        line-height: 1.42;
    }
    .book-home .ranks-tail {
        margin-top: 12px;
        padding-top: 6px;
    }
    .book-home .ranks-tail-list {
        grid-template-columns: minmax(0, 1fr);
    }
    .book-home .ranks-tail-item {
        padding: 8px 6px;
        gap: 8px;
    }
    .book-home .ranks-tail-item:nth-last-child(2):nth-child(odd) {
        border-bottom-color: var(--line-faint);
    }
    .book-home .ranks-tail-author {
        max-width: 84px;
    }

    @media (max-width: 480px) {
        .js-top-banner .banner.site-banner-carousel,
        .section-box.web-sec-banner-rank .banner.site-banner-carousel {
            height: 200px;
        }
        .home-genre-body .home-genre-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
        .book-home .ranks-tail-author {
            display: none;
        }
        main#main-content.comic-detail .catalogue-list .chapter-list li {
            flex-basis: 100%;
            max-width: 100%;
        }
        .site-ui-layer-content .user-totp-bind-wizard {
            padding: 14px 12px 8px;
        }
        .site-ui-layer-content .user-totp-bind-wizard .user-totp-bind-wizard-actions .site-input-block {
            text-align: stretch;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 10px;
        }
        .site-ui-layer-content .user-totp-bind-wizard .user-totp-bind-wizard-actions .site-btn {
            width: 100%;
            margin: 0;
        }
    }

    .top-stage-head {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px 16px;
    }
    .top-stage-head-main {
        flex: 0 0 auto;
    }
    .top-stage-title {
        font-size: 18px;
    }
    .top-stage-head-actions {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
    .top-stage-head-actions .top-period-switch {
        width: auto;
        flex: 1 1 auto;
    }
    .top-stage-head-actions .top-stage-more {
        margin-left: auto;
    }
    .top-stage-item {
        grid-template-columns: 66px minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: start;
        column-gap: 12px;
        row-gap: 8px;
        padding: 14px 16px;
    }
    .top-stage-rank {
        position: absolute;
        top: 14px;
        left: 16px;
        width: auto;
        z-index: 4;
        pointer-events: none;
    }
    .top-stage-rank .rank-num {
        width: 22px;
        min-width: 22px;
        height: 22px;
        line-height: 22px;
        font-size: 11.5px;
        border-radius: var(--radius-sm) 0 var(--radius-sm) 0;
    }
    .top-stage-list .rank-num.top-stage-num {
        width: 22px;
        min-width: 22px;
        height: 22px;
        line-height: 22px;
        font-size: 11.5px;
        background: rgba(31, 30, 27, .74);
        color: #fff;
        border-radius: var(--radius-sm) 0 var(--radius-sm) 0;
    }
    .top-stage-cov {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 66px;
        height: 88px;
    }
    .top-stage-body {
        grid-column: 2;
        grid-row: 1;
        gap: 4px;
    }
    .top-stage-name {
        font-size: 15px;
    }
    .top-stage-desc {
        font-size: 12.5px;
        line-height: 1.5;
    }
    .top-stage-aside {
        grid-column: 2;
        grid-row: 2;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        padding-top: 2px;
        text-align: left;
    }
    .top-stage-metric {
        font-size: 13px;
    }
    a.site-btn.site-btn-xs.top-stage-cta {
        height: 28px;
        line-height: 26px;
        padding: 0 11px;
        font-size: 12px;
    }

    @media (max-width: 380px) {
        .header .logo {
            max-width: min(80px, 28vw);
        }
        .header .user-menu .item {
            min-width: 44px;
            padding: 2px;
        }
        /* 搜索收起/展开样式见 ≤1100，此处不重复 */
        .book-home .ranks-stage-bar .ranks-stage-tab {
            font-size: 12.5px;
            padding: 5px 2px;
        }
        .home-genre-link {
            font-size: 12px;
            padding: 5px 2px;
        }
        .top-stage-item {
            padding: 12px 14px;
            column-gap: 10px;
        }
        .top-stage-rank {
            top: 12px;
            left: 14px;
        }
        .top-stage-metric {
            font-size: 12px;
        }
    }

    .notice-popup-backdrop {
        padding: 14px;
    }
    .notice-popup-head,
    .notice-popup-body,
    .notice-popup-foot {
        padding-left: 16px;
        padding-right: 16px;
    }

    .user-home-hero .sign-in-action .sign-in-btn {
        height: 32px;
        min-height: 32px;
        line-height: 1;
        touch-action: manipulation;
    }

    .user-home-plugin-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .user-home-plugin-grid > .user-home-plug-card:only-child,
    .user-home-plugin-grid:not(:has(> .user-home-plug-card:nth-of-type(2))) > .user-home-plug-card {
        padding: 14px 16px;
        gap: 12px;
    }

    .cancel-account-wrap .cancel-account-form {
        padding: 14px 14px 4px;
    }
    main[class$="-detail"] .book-interact {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px 12px 16px;
    }
    main[class$="-detail"] .interact-sec-head {
        min-height: 24px;
        margin-bottom: 10px;
    }
    main[class$="-detail"] .interact-sec-title {
        font-size: 16px;
    }
    main[class$="-detail"] .interact-honor-cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    main[class$="-detail"] .honor-card--rank {
        grid-template-columns: 1fr;
        min-height: 100px;
    }
    main[class$="-detail"] .honor-rank-badge {
        flex-direction: row;
        gap: 4px;
        padding: 6px 8px;
        border-right: none;
        border-bottom: 1px solid var(--interact-honor-border);
    }
    main[class$="-detail"] .honor-trophy-svg {
        width: 16px;
        height: 16px;
    }
    main[class$="-detail"] .honor-rank-main,
    main[class$="-detail"] .honor-achieve-body {
        padding: 10px 6px;
    }
    main[class$="-detail"] .honor-wreath-val {
        font-size: clamp(18px, 5vw, 22px);
    }
    main[class$="-detail"] .honor-wreath-val.is-unranked {
        font-size: 14px;
    }
    main[class$="-detail"] .interact-stubs {
        gap: 8px;
    }
    main[class$="-detail"] .interact-stub .stub-head {
        padding: 8px 6px 7px;
    }
    main[class$="-detail"] .interact-stub .stub-title {
        font-size: 13px;
    }
    main[class$="-detail"] .interact-stub .stub-head::before,
    main[class$="-detail"] .interact-stub .stub-head::after {
        width: 10px;
        height: 10px;
        bottom: -6px;
    }
    main[class$="-detail"] .interact-stub .stub-head::before {
        left: -6px;
    }
    main[class$="-detail"] .interact-stub .stub-head::after {
        right: -6px;
    }
    main[class$="-detail"] .interact-stub .stub-body {
        padding: 12px 6px 12px;
        gap: 4px;
    }
    main[class$="-detail"] .interact-stub .stub-num {
        font-size: clamp(20px, 5.6vw, 24px);
    }
    main[class$="-detail"] .interact-stub .stub-unit {
        font-size: 11px;
    }
    main[class$="-detail"] .interact-stub .stub-meta {
        min-height: 32px;
        margin: 2px 0 4px;
    }
    main[class$="-detail"] .interact-stub .stub-meta-line {
        font-size: 11px;
    }
    main[class$="-detail"] .interact-stub .stub-btn {
        max-width: 112px;
        height: 32px;
        padding: 0 8px;
        font-size: clamp(11.5px, 3.3vw, 13px);
    }
    main[class$="-detail"] .detail-body .right .author-zone-card {
        margin-top: 32px;
        padding: 46px 14px 16px;
    }
    .author-wiki-hero {
        padding: 18px 14px 16px;
    }
    .author-wiki-top {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding-bottom: 16px;
    }
    .author-wiki-avatar {
        width: 72px;
        height: 72px;
    }
    .author-wiki-title-row {
        justify-content: center;
    }
    .author-wiki-name {
        font-size: 22px;
    }
    .author-wiki-join {
        text-align: center;
    }
    .author-wiki-bio {
        margin-top: 14px;
        padding-top: 12px;
        font-size: 13.5px;
    }
    .author-wiki-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px 6px;
    }
    .author-wiki-stats .author-stat-item:nth-child(4)::before {
        display: none;
    }
    .author-wiki-works {
        padding: 14px 12px 16px;
    }
    .author-work-card {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 0;
    }
    .author-work-cover {
        width: 82px;
        height: 110px;
    }
    .author-work-name {
        font-size: 16px;
    }
    .author-work-actions {
        flex: 1 1 100%;
        flex-direction: row;
        min-width: 0;
        gap: 10px;
    }
    .author-work-actions .author-work-read,
    .author-work-actions .author-work-shelf {
        flex: 1 1 0;
    }

    .home-eco-strip {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .home-authors-panel {
        padding: 12px 0;
    }
    .home-authors-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .channel-spotlight {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .channel-honor-list,
    .channel-authors-list {
        padding-left: 12px;
        padding-right: 12px;
    }
    .channel-honor-item {
        flex-wrap: wrap;
        gap: 6px 8px;
    }
    .channel-honor-main {
        gap: 2px;
    }
    .channel-honor-metrics {
        width: 100%;
        justify-content: flex-start;
        padding-left: 34px;
    }
    .channel-author-item {
        gap: 10px;
    }
    .channel-author-head {
        flex-wrap: wrap;
        gap: 3px 8px;
    }
    .channel-author-works {
        gap: 5px;
    }
    .channel-author-work-chip {
        min-width: 0;
    }
    .site-banner-carousel .site-banner-dots {
        right: 12px;
        bottom: 10px;
    }
    .section-box.web-sec-banner-rank .banner .carousel-slide-caption--rich {
        padding: 36px 86px 14px 14px;
        gap: 4px;
    }
    .carousel-slide-caption--rich .carousel-slide-title,
    .carousel-slide-caption--rich h3 {
        font-size: 16px;
    }
    .carousel-slide-desc {
        display: none;
    }
    .home-featured-split {
        grid-template-columns: 1fr;
        padding: 12px 0;
        gap: 12px;
    }
    .home-spot-card {
        padding: 12px;
        gap: 12px;
    }
    .home-spot-cover {
        width: 96px;
        height: 128px;
        flex-basis: 96px;
    }
    .home-spot-desc {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    .home-writer-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 12px;
    }
    .home-writer-cta-actions {
        width: 100%;
    }
    .home-writer-cta-actions .site-btn {
        flex: 1 1 auto;
        min-height: 36px;
        height: 36px;
    }
    .channel-cate-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .search-box > .search-head.module-title,
    .notice-page-card > .module-title.module-title-full {
        padding: 12px 14px;
    }
    .notice-page-card .notice-list {
        padding: 2px 14px 6px;
    }
    .browse-result-bar {
        padding: 10px 14px;
        gap: 8px 12px;
    }
    .browse-result-bar .browse-filter-chips {
        padding-left: 0;
        border-left: none;
        width: 100%;
    }
    .browse-sort-nav {
        width: 100%;
        margin-left: 0;
        padding-top: 6px;
        padding-right: 20px;
        border-top: 1px solid var(--line-faint);
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
        mask-image: linear-gradient(to right, #000 88%, transparent 100%);
    }
    .browse-sort-nav::-webkit-scrollbar {
        display: none;
    }
    #browse-filter .channel li .list {
        scrollbar-width: none;
    }
    #browse-filter .channel li .list::-webkit-scrollbar {
        display: none;
    }
    .footer-links {
        gap: 10px 16px;
    }
    .footer-links-group {
        gap: 8px 14px;
    }
    .footer-links-group + .footer-links-group {
        padding-left: 0;
        border-left: none;
    }
    .site-main.account-main > .site-container {
        gap: 14px;
    }
    .acct-hero-bar {
        padding: 12px 14px 14px;
    }
    .acct-hero-bar .site-breadcrumb {
        padding-bottom: 8px;
        margin-bottom: 10px;
    }
    .acct-hero-main {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .acct-hero-id {
        flex-basis: auto;
        gap: 11px;
    }
    .acct-hero-avatar img {
        width: 44px;
        height: 44px;
    }
    .acct-hero-title {
        font-size: 17px;
    }
    .acct-hero-actions {
        width: 100%;
        gap: 8px;
    }
    .acct-hero-actions .acct-btn {
        flex: 1 1 auto;
        height: 38px;
        min-height: 38px;
        padding: 0 12px;
        touch-action: manipulation;
    }
    .acct-sec-head {
        padding: 12px 14px;
        gap: 8px 12px;
    }
    .acct-sec-extra {
        width: 100%;
    }
    .acct-sec-extra > .seg-switch:not(.acct-profile-tabs) {
        flex: 1 1 auto;
    }
    .seg-switch.acct-profile-tabs {
        width: 100%;
        justify-content: flex-start;
    }
    .seg-switch.acct-profile-tabs .seg-switch-item {
        flex: 0 0 auto;
        padding: 0 12px;
    }
    .acct-sec-body {
        padding: 14px;
    }
    .acct-sec-body--table {
        padding: 0;
    }
    .acct-sec-foot {
        padding: 10px 14px 14px;
    }
    .acct-toolbar {
        padding: 10px 14px;
    }
    .acct-toolbar-actions {
        width: 100%;
        margin-left: 0;
    }
    .acct-toolbar-actions .acct-btn,
    .acct-toolbar-actions .site-btn {
        flex: 1 1 auto;
        height: 40px;
        min-height: 40px;
    }
    .acct-section > .acct-notice-bar {
        margin: 12px 14px 0;
    }
    .acct-notice-bar {
        padding: 10px 12px;
    }
    .acct-notice-bar-actions {
        width: 100%;
        margin-left: 0;
    }
    .acct-notice-bar-actions .acct-btn {
        flex: 1 1 auto;
        height: 36px;
        min-height: 36px;
    }
    .section-box.acct-bento-hero,
    .section-box.acct-member-hero {
        grid-template-columns: 1fr;
    }
    .acct-bento-wallet,
    .acct-bento-sign,
    .acct-member-main,
    .acct-member-aside {
        padding: 14px;
    }
    .acct-bento-sign,
    .acct-member-aside {
        border-left: none;
        border-top: 1px solid var(--warm-border-soft);
    }
    .acct-asset-val {
        font-size: 19px;
    }
    .acct-asset-cell {
        padding-right: 10px;
    }
    .acct-asset-cell + .acct-asset-cell {
        padding-left: 10px;
    }
    .acct-tier-inline {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .acct-tier-inline-main {
        flex-wrap: wrap;
        flex-basis: auto;
    }
    .acct-tier-progress {
        max-width: none;
    }
    .section-box.acct-metrics-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .acct-metric-item {
        padding: 12px 8px;
        border-bottom: 1px solid var(--line-faint);
    }
    .acct-metric-item:nth-child(2n) {
        border-right: none;
    }
    .acct-metric-item:last-child {
        grid-column: 1 / -1;
        border-right: none;
        border-bottom: none;
    }
    .acct-metric-num {
        font-size: 19px;
    }
    .acct-recent-grid,
    .acct-perk-grid,
    .acct-follow-grid,
    .acct-profile-split,
    .acct-totp-grid {
        grid-template-columns: 1fr;
    }
    .acct-book-card {
        padding: 12px;
        gap: 12px;
    }
    .acct-book-cov {
        flex: 0 0 72px;
        width: 72px;
        height: 96px;
    }
    .acct-member-kv-row,
    .acct-invite-kpis {
        grid-template-columns: 1fr;
    }
    .acct-member-kv {
        padding: 8px 0;
    }
    .acct-member-kv + .acct-member-kv {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--warm-border-soft);
    }
    .acct-invite-kpi {
        padding: 10px 14px;
    }
    .acct-invite-kpi + .acct-invite-kpi {
        padding-left: 14px;
        border-left: none;
        border-top: 1px solid var(--line-soft);
    }
    .option-list.acct-sku-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .option-list.acct-pay-methods {
        grid-template-columns: 1fr;
    }
    .acct-pay-foot .pay-btn {
        width: 100%;
        min-height: 44px;
        height: 44px;
    }
    .acct-form-card {
        padding: 14px;
    }
    .acct-form-card-head {
        margin: -14px -14px 14px;
        padding: 10px 14px;
    }
    .acct-profile-summary {
        margin-left: 0;
    }
    .acct-form-actions {
        padding-left: 0;
    }
    .acct-form-actions .acct-btn,
    .acct-form-actions .site-btn {
        width: 100%;
        height: 44px;
        min-height: 44px;
    }
    .account-main .acct-section .form-wrap .site-form .site-input-block > .site-input:not(textarea),
    .account-main .acct-section .form-wrap .site-form .site-input-block > select,
    .account-main .acct-section .form-wrap .site-form .site-input-block > .site-select .site-select__trigger,
    .account-main .acct-section .writer-pub-fields .site-input-block > .site-input:not(textarea),
    .account-main .acct-section .writer-pub-fields .site-input-block > select,
    .account-main .acct-section .writer-pub-fields .site-input-block > .site-select .site-select__trigger {
        min-height: 44px;
        height: 44px;
    }
    .account-main .acct-section .form-wrap .site-form .site-input-block > .site-input:not(textarea),
    .account-main .acct-section .form-wrap .site-form .site-input-block > select,
    .account-main .acct-section .writer-pub-fields .site-input-block > .site-input:not(textarea),
    .account-main .acct-section .writer-pub-fields .site-input-block > select {
        line-height: 44px;
    }
    .account-main .acct-section .form-wrap .site-form .site-input-block > .site-select .site-select__trigger,
    .account-main .acct-section .writer-pub-fields .site-input-block > .site-select .site-select__trigger {
        font-size: 16px;
    }
    .acct-follow-card {
        padding: 13px;
    }
    .acct-follow-avatar {
        width: 42px;
        height: 42px;
    }
    .section-box.search-hero {
        padding: 16px 14px 14px;
        gap: 10px;
    }
    .search-hero-form .input {
        height: 42px;
    }
    .search-hero-form .search-btn {
        height: 34px;
        padding: 0 13px;
    }
    .search-hero-form .search-btn span {
        display: none;
    }
    .browse-view-toggle {
        margin-left: auto;
    }
    .browse-view-btn span {
        display: none;
    }
    .book-list.book-list--grid {
        --browse-grid-cols: 3;
        gap: 10px 6px;
        padding: 12px 10px;
    }
    .book-list.book-list--grid li .card-inner {
        padding: 4px;
        gap: 5px;
    }
    .user-form-container.auth-split-card,
    .auth-split-card {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 16px auto;
        padding: 0;
        border-radius: var(--radius-md);
    }
    .auth-brand-pane {
        display: none;
    }
    .auth-form-pane {
        padding: 22px 18px;
    }
    .notice-page-card .notice-item {
        padding: 14px 0;
    }
    .notice-page-card .notice-item--urgent,
    .notice-page-card .notice-item--important {
        padding-left: 12px;
    }
    .notice-card-toggle {
        min-height: 32px;
        padding: 0 12px;
    }
}

/* 窄屏 JS 添加 `.inset-edges`：主区/详情头/页脚左右留白一致（顶栏由 768 内 `--header-pad-*` 控制，勿再写 `.inset-edges .header-inner`） */
.inset-edges .site-main,
.inset-edges .detail-header,
.inset-edges main[class$="-detail"] > .layout-slot--content-top,
.inset-edges .layout-slot--footer-top,
.inset-edges .footer {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
}
.inset-edges .book-info .data .desc-wrap {
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    font-size: 16px;
}

/* 仅选项列表：与关闭态标题同为 13px（盖过窄屏 select 16px） */
.header .search .search-scope option,
.read-float-bar .search .search-scope option {
    font-size: 13px;
    font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
    .header .channel-links a,
    .return-top,
    .return-top button,
    .footer-links a,
    .footer-filing a,
    .site-banner-carousel .site-banner-dot,
    .home-genre-tile,
    .home-genre-link,
    .seg-switch-item,
    .top-nav-link,
    .channel-sub-link,
    .home-spot-card,
    .home-mini-card,
    .ranks-stage-tab,
    .ranks-podium-card,
    .ranks-podium-cov img,
    .ranks-tail-item,
    .channel li .list a,
    .browse-sort-nav a,
    .top-stage-item,
    .top-stage-cov img,
    .top-stage-name a,
    .top-stage-author,
    .top-stage-cate,
    .top-stage-chap,
    .acct-btn,
    .acct-hero-avatar,
    .acct-metric-item,
    .acct-recent-card,
    .acct-cover-card,
    .acct-cover-thumb,
    .acct-book-card,
    .acct-perk-card,
    .site-input,
    .site-textarea,
    .site-form select,
    .input-group-select select,
    #pagination .site-pager-input,
    .header .search .input,
    .search-hero-form .input { transition: none; }
    .book-home .tags-grid .tags-cell {
        transition: none;
    }
    .book-home .tags-grid .tags-cell:hover,
    .book-home .tags-grid .tags-cell:active {
        transform: none;
    }
}

.hide {
    display: none;
}
.user-menu .dialog .dropdown-panel-head .login-notice.hide,
.user-menu .dialog .nologin.hide,
.user-menu .dialog .login-btn.hide,
.user-menu .dialog .check-all.hide,
.user-menu .js-uinfo .dropdown-panel .vip-expired .hl.hide,
.user-menu .js-uinfo .dropdown-panel .user-info .logout.hide {
    display: none;
}
.user-menu .dialog .dropdown-panel .guest-clear-btn.hide {
    display: none;
}
.book-home .ranks-panel[hidden] {
    display: none;
}
.book-home .ranks-stage-bar .ranks-stage-tabs[hidden] {
    display: none;
}
.book-home .ranks-stage-panel[hidden] {
    display: none;
}
.book-home .recent .recent-panel[hidden] {
    display: none;
}
.book-home .tags-panel[hidden] {
    display: none;
}
/* Tab 面板：勿对带 [hidden] 的项写 display:flex，否则特异性会盖掉 [hidden] 的 display:none，两面板会同时露出 */
.section-box .top-section--tabs .top-section-panel[hidden] {
    display: none;
}
.channel li .toggle-tags.hide {
    display: none;
}
.book-info .data .detail-desc-toggle.hide {
    display: none;
}
.book-info .data .actions .urge-cnt.hide {
    display: none;
}
.author-follow-count.hide {
    display: none;
}
.home-genre-panel[hidden] {
    display: none;
}
.home-showcase-panel[hidden] {
    display: none;
}
.home-authors-panel[hidden] {
    display: none;
}
.detail-catalogue .cat-bulk-btn.hide {
    display: none;
}
.account-main .content-card > .home-head.home-head--tabs ~ [role="tabpanel"][hidden] {
    display: none;
}
/* 按需显隐行（如注销 TOTP）：须压过上方及窄屏 `.site-form-item` 的 flex */
.account-main .user-info-form .site-form-item.hide {
    display: none;
}
.user-form-container .login-qr-tip.hide {
    display: none;
}
.user-form-container .login-qr-status.hide {
    display: none;
}
/* 登录页 TOTP / 验证码行 / 验证码模式下的密码行：须压过 .site-form-item 的 flex，否则 .hide 无效 */
.user-form-container .site-form-item.login-totp-row.hide,
.user-form-container .site-form-item.phone-code.hide,
.user-form-container .site-form-item.email-code.hide,
.user-form-container .site-form-item.password-login.hide {
    display: none;
}
.search-hero-form .search-clear.hide {
    display: none;
}
.site-ui-modal--gift .site-ui-modal-bd,
.site-ui-modal--mticket .site-ui-modal-bd {
    padding: 0;
}
}
