:root {
    --vip-gradient: linear-gradient(135deg, #fca000 0%, #ff8c00 100%);
    --vip-shadow: 0 1px 3px rgba(252, 160, 0, .25);
    /* vip-tag 模板须 `vip-tag`+`vip-tag--coin|vip`；配色见文末 */
    --book-tag-coin-gradient: linear-gradient(135deg, #ff7043 0%, #e53935 100%);
    --book-tag-coin-shadow: 0 1px 3px rgba(229, 57, 53, .32);
    --book-tag-vip-gradient: linear-gradient(180deg, #ffca28 0%, #ffc107 45%, #ffb300 100%);
    --book-tag-vip-shadow: 0 1px 2px rgba(0, 0, 0, .12);
    --accent-bar: #fcc800;
    --accent-2: #fca000;
    --accent-pressed: #e6b300;
    --accent-tint: #fffef8;
    --site-btn-accent-bg: #fff9eb;
    --site-btn-accent-border: #e5d28a;
    --site-btn-accent-bg-hover: #fff4d6;
    --site-btn-accent-border-hover: #dcc878;
    --site-btn-accent-shadow: 0 1px 2px rgba(72, 58, 0, .05);
    --site-btn-accent-shadow-hover: 0 1px 3px rgba(72, 58, 0, .08);
    --site-toast-ok: #20a53a;
    --border-color: #ddd; /* 输入/虚线/章节框等；阅读页 read.css 复用同键名 */
    --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);
    --line-default: #e5e5e5;
    --line-soft: #f0f0f0;
    --line-faint: #f5f5f5;
    --line-subtle: #e6e6e6;
    --line-panel: #e8e8e8;
    --bg-table-head: #fafafa;
    --color-text: #222;
    --color-text-strong: #212121;
    --header-bg: #212121;
    --bg-surface: #fff;
    --bg-subtle: #f8f8f8;
    --text-secondary: #666;
    --text-muted: #999;
    --line-mid: #d0d0d0;
    --line-sep: #e0e0e0;
    --line-dashed: #d9d9d9;
    --bg-form: #f8f9fa;
    --bg-canvas: #f7f7f7;
    --bg-section: #f0f2f5;
    --radius-sm: 2px;
    --radius-md: 3px;
    --color-emphasis: #ff5722;
    --color-emphasis-hover: #ff784e;
    --link-hover-fg: var(--color-emphasis);
    --link-hover-fg-soft: var(--color-emphasis-hover);
    --badge-serialize-bg: var(--color-emphasis);
    --badge-serialize-border: var(--color-emphasis);
    --accent-commerce: var(--accent-2);
    --color-stat-coin: #f86036;
    --user-section-heading-size: 18px;
    /* --home-head-* 仅 :root + 下文模组首行 `:is` */
    --home-head-min-h: 48px;
    --home-head-pad-x: 15px;
    --member-pill-bg: #fff3cc;
    --member-pill-fg: #8a6700;
    --member-pill-muted-bg: #f3f4f6;
    --member-pill-ok-bg: #eefbf7;
    --member-pill-ok-fg: #169f73;
    --member-delta-up: #16baaa;
    --member-delta-down: var(--color-emphasis);
    --status-serializing-bg: #eef7ff;
    --status-serializing-fg: #36a3f7;
    --status-done-bg: var(--member-pill-muted-bg);
    --status-done-fg: #6b7280;
    --status-pending-bg: #fff7e6;
    --status-pending-fg: var(--accent-2);
    --status-approved-bg: var(--member-pill-ok-bg);
    --status-approved-fg: var(--member-pill-ok-fg);
    --status-rejected-bg: #ffeeed;
    --status-rejected-fg: #ff4949;
    --color-breadcrumb-link: #888;
    --color-breadcrumb-sep: #ccc;
}
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;
}
@media (prefers-reduced-motion: reduce) {
    .header .channel-links a,
    .header .channel-links a.nav-writer-cta,
    .return-top,
    .footer-links a { 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;
    }
}
*, *::before, *::after {
    box-sizing: border-box;
}
.site-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}
/* 全站列表去默认圆点（勿清零 margin/padding，否则会盖过 .channel、.book-list 等组件间距） */
.site-shell ul,
.site-shell ol {
    list-style: none;
}
.site-shell p {
    margin: 0;
}
.site-shell a {
    color: var(--color-text);
    text-decoration: none;
}
main#main-content {
    flex: 1 0 auto;
    scroll-margin-top: calc(var(--header-h) + 12px);
}
.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: #fff;
    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.guide-page .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);
}
body.theme-default main#main-content.reader-container,
body.guide-page main#main-content {
    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: 10px;
    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;
}
@media screen and (max-width: 450px) {
    html,
    body {
        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;
    }
}
/* 主键盘导航聚焦环 */
.header .channel-links a:focus-visible,
.header .logo:focus-visible,
.footer-links a:focus-visible,
.return-top button:focus-visible,
.search .search-input:focus-visible,
.search .search-btn:focus-visible {
    outline: 2px solid var(--accent-bar);
    outline-offset: 2px;
}
em, i {
    font-style: normal;
}
button {
    font-family: inherit;
    font-size: inherit;
}
.hide {
    display: none;
}
.text-center { text-align: center; }
.tags-hidden { visibility: hidden; }
/* 全站按钮/表单/表格/分页基组件（须在 max-width 断点之前，避免覆盖窄屏规则） */
.site-btn,
a.site-btn,
button.site-btn,
label.site-btn {
    display: inline-block;
    vertical-align: middle;
    height: 38px;
    line-height: 36px;
    border: 1px solid var(--site-btn-accent-border);
    padding: 0 18px;
    background-color: var(--site-btn-accent-bg);
    background-image: none;
    color: var(--color-text);
    white-space: nowrap;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    box-sizing: border-box;
    text-decoration: none;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: var(--site-btn-accent-shadow);
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.site-btn:hover {
    background-color: var(--site-btn-accent-bg-hover);
    border-color: var(--site-btn-accent-border-hover);
    color: var(--color-text);
    box-shadow: var(--site-btn-accent-shadow-hover);
}
button.site-btn:invalid {
    border-color: var(--site-btn-accent-border);
    box-shadow: var(--site-btn-accent-shadow);
}
.site-btn:focus-visible {
    outline: 2px solid rgba(252, 200, 0, .5);
    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(--bg-surface);
    border-color: var(--line-mid);
    color: var(--color-text);
    opacity: 1;
}
.site-btn-normal {
    background: var(--bg-surface);
    border-color: var(--accent-bar);
    color: var(--accent-2);
    font-weight: 500;
}
.site-btn-normal:hover {
    border-color: var(--site-btn-accent-border-hover);
    background: var(--site-btn-accent-bg-hover);
    color: var(--color-text);
}
.site-btn-danger {
    background: var(--color-emphasis);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}
.site-btn-danger:hover {
    opacity: .9;
}
.site-btn-disabled,
.site-btn.site-btn-disabled {
    background: var(--bg-form);
    border-color: var(--line-default);
    color: #d2d2d2;
    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);
    background-color: #fff;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}
.site-input,
.site-textarea {
    display: block;
    width: 100%;
    padding-left: 10px;
    padding-right: 15px;
}
.site-input {
    height: 38px;
    line-height: 38px;
}
.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: 38px;
    line-height: 38px;
    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-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 {
    border-color: var(--accent-bar);
}
.site-form-item.site-form-danger .site-input,
.site-form-item.site-form-danger .site-textarea {
    border-color: #ff5722 !important;
}
.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 {
    border-color: #ff5722 !important;
}

.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 !important;
    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: #fff;
    color: var(--text-secondary);
    border-collapse: collapse;
    border-spacing: 0;
}
.site-table th,
.site-table td {
    position: relative;
    padding: 9px 15px;
    line-height: 20px;
    font-size: 14px;
    box-sizing: border-box;
}
.site-table thead th {
    text-align: center;
    font-weight: 600;
    background-color: var(--bg-table-head);
    color: var(--color-text-strong);
}
.site-table--line {
    border: 1px solid var(--line-default);
}
.site-table--line th,
.site-table--line td {
    border-width: 0 0 1px;
    border-style: solid;
    border-color: var(--line-default);
}
.site-table--line tbody tr:last-child td {
    border-bottom-width: 0;
}
.site-table--row {
    border: 1px solid var(--line-default);
}
.site-table--row th,
.site-table--row td {
    border-width: 0 1px 0 0;
    border-style: solid;
    border-color: var(--line-default);
}
.site-table--row tr th:last-child,
.site-table--row tr td:last-child {
    border-right-width: 0;
}
.site-table--striped tbody tr:nth-child(even) {
    background-color: var(--bg-subtle);
}

.site-elem-field { margin-bottom: 10px; padding: 0; border-width: 1px; border-style: solid; }
.site-field-box { padding: 15px; }
.site-word-aux { color: #999 !important; padding-left: 5px !important; padding-right: 5px !important; }
.site-alert {
    padding: 15px 15px 15px 35px;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid #eee;
    color: #666;
}
.site-alert-normal {
    border-color: #d2e7f0;
    background: #f0f9ff;
}
.site-alert-danger {
    border-color: #ffccc7;
    background: #fff2f0;
}
.site-text-em { font-style: italic; color: #999; }
.site-row { box-sizing: border-box; }


#pagination {
    text-align: center;
    margin: 12px 0;
    font-size: 14px;
    --pager-h: 32px;
    --pager-bd: 1px solid var(--line-default);
    --pager-r: 4px;
}
#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: #fff;
    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(--accent-bar);
    color: var(--color-emphasis);
}
#pagination .site-pager-prev.is-disabled,
#pagination .site-pager-next.is-disabled {
    color: #bbb;
    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: #fff;
    background: var(--accent-bar);
    border: none;
}
#pagination .site-pager-input {
    width: 44px;
    padding: 0 8px;
    border: var(--pager-bd);
}
#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(--accent-2);
}
.browse-scroll-sentinel.is-error {
    color: #c0392b;
    cursor: pointer;
}

.site-main {
    max-width: var(--site-max-w);
    width: 100%;
    margin: 0 auto;
    padding: calc(var(--header-h) + 1px) var(--site-gutter) 0;
    box-sizing: border-box;
}
main#main-content[class$="-detail"] > .site-main {
    padding-top: 0;
}
.site-container {
    padding: 0;
    width: 100%;
}
.section-head h2::before,
.module-title h2::before,
.module-title h3::before,
.guide-card-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);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    max-width: 100%;
    z-index: 999;
    background: var(--header-bg);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    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);
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}
.header .logo {
    height: 45px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 20px;
}
.header .logo img, .header .logo svg {
    height: 100%;
    width: auto;
    display: block;
}
.header .channel-links {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 0 1 auto;
    margin-left: 20px;
    min-width: 0;
}
.header .channel-links a {
    position: relative;
    line-height: var(--header-h);
    font-size: 16px;
    color: #f9f9f9;
    text-decoration: none;
    transition: color .3s ease;
    white-space: nowrap;
}
.header .channel-links a:hover {
    color: #fff;
}
.header .channel-links a.is-active {
    color: #fff;
    font-weight: 600;
}
.header .channel-links a i {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    height: 4px;
    width: 16px;
    border-radius: var(--radius-sm);
    background: var(--accent-bar);
    opacity: 0;
    transition: opacity .3s ease;
}
.header .channel-links a.is-active i {
    opacity: 1;
}
.header .channel-links a.nav-writer-cta {
    align-self: center;
    line-height: 1.25;
    padding: 7px 14px;
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    color: var(--header-bg);
    background: var(--accent-bar);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .22);
    transition: background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.header .channel-links a.nav-writer-cta:hover {
    color: var(--header-bg);
    background: var(--accent-pressed);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .28);
}
html[lang="en"] .header .channel-links a.nav-writer-cta {
    padding: 6px 10px;
    font-size: 14px;
}
.header .search {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 280px;
    min-width: 0;
    margin: 0 20px;
    flex-shrink: 0;
    gap: 0;
    box-sizing: border-box;
}
.header .search > .input {
    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: 0 1 232px;
    width: 232px;
    max-width: 280px;
    min-width: 160px;
    margin: 0 0 0 auto;
    box-sizing: border-box;
}
.header .search .input {
    display: flex;
    align-items: center;
    height: 40px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-default);
    position: relative;
    z-index: 10;
    overflow: visible;
}
.header .search .input:focus-within {
    border-color: var(--accent-bar);
}
.header .search .input.open {
    border-radius: 3px 3px 0 0;
}
.header .search .input input {
    flex: 1;
    border: none;
    outline: none;
    height: 38px;
    padding: 0 18px;
    font-size: 14px;
    border-radius: 3px 0 0 3px;
    background: transparent;
    color: #333;
    box-sizing: border-box;
}
.header .search .input input::placeholder {
    color: var(--text-muted);
}
.header .search .input .search-btn {
    width: 44px;
    height: 40px;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s ease;
    flex-shrink: 0;
}
.header .search .input .search-btn i {
    font-size: 18px;
    color: var(--text-muted);
    transition: color .2s;
}
.header .search .input .search-btn:hover i {
    color: var(--color-emphasis);
}

.search-suggest-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 0 0 3px 3px;
    border: 1px solid var(--line-default);
    border-top: none;
    z-index: 99;
    max-height: 320px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}
.search-suggest-list li {
    box-sizing: border-box;
    padding: 10px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    background: #fff;
    transition: background .2s, color .2s;
    border-bottom: 1px solid var(--line-faint);
    word-break: break-all;
}
.search-suggest-list li:last-child {
    border-bottom: none;
}
.search-suggest-list li:hover, .search-suggest-list li.is-active {
    background: var(--bg-canvas);
}
.search-suggest-list li.suggest-item-error {
    cursor: default;
    color: #999;
}
.search-suggest-list li.suggest-item-error:hover {
    background: #fff;
}
.search-suggest-list .search-suggest-hl {
    color: #f60;
    font-weight: bold;
}
.search-suggest-list.is-open {
    display: block;
}
/* 桌面：`display:contents` 使搜索与用户区参与 header-inner 的 flex；窄屏见 768 */
.header-tools {
    display: contents;
}
.user-menu {
    display: flex;
    align-items: center;
    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;
    font-size: 12px;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background .3s ease;
    box-sizing: border-box;
}
.user-menu .item:hover {
    background: rgba(255, 255, 255, .1);
}
.user-menu .item a,
.user-menu .item button {
    color: #f9f9f9;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}
.user-menu .item:hover a,
.user-menu .item:hover button {
    color: #fff;
}
.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: #fff;
    border-radius: 50%;
    position: relative;
}
.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: #ff5722;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    font-style: normal;
    box-sizing: border-box;
}
.user-menu .item i {
    font-size: 24px;
    line-height: 1;
    margin-bottom: 2px;
}
.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: #111;
}
.pay-qrcode .txt {
    padding-top: 15px;
    color: #333;
    font-size: 16px;
}

.user-menu .item .icon-bookshelf {
    width: 24px;
    height: 24px;
    line-height: 1;
    margin-bottom: 2px;
}
.user-menu .item .icon-bookshelf svg {
    width: 100%;
    height: 100%;
    display: block;
    color: inherit;
}
.user-menu .item .icon-bookshelf svg path {
    stroke: currentColor;
}

.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:hover .dialog a {
    color: #28292D;
}

.user-menu .dialog .dropdown-panel {
    position: relative;
    width: 320px;
    background: #fff;
    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: #333;
}
.user-menu .js-uinfo .dropdown-panel .user-name .js-unichen {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #333;
    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: #333;
}
.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: #ff4343;
    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 .dialog .dropdown-panel-head .login-notice.hide,
.user-menu .dialog .nologin.hide,
.user-menu .dialog .login-btn.hide,
.user-menu .js-uinfo .dropdown-panel .user-info .logout.hide {
    display: none !important;
}
.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: #fff;
    text-align: center;
    background: linear-gradient(135deg, #FF4343 0%, #ff6b6b 100%);
    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: #fff;
}

.user-menu .js-uinfo .dropdown-panel .user-info .logout {
    padding: 0;
    font-size: 14px;
    color: #333;
    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: #fff;
    text-align: center;
    background: linear-gradient(135deg, #FF4343 0%, #ff6b6b 100%);
    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: 38px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 38px;
    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 .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: #fcc800;
}
.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 .link {
    font-size: 14px;
    color: var(--color-emphasis);
    line-height: 22px;
    transition: color .2s ease;
}
.user-menu .dialog .dropdown-empty .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 .li-name {
    grid-area: name;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 0;
}
.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 .li-read {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    font-size: 12px;
    color: #28292D;
    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 .check-all {
    display: block;
    width: 100%;
    height: 38px;
    line-height: 38px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-form);
    transition: background-color .15s ease;
}
.user-menu .dialog .check-all:hover {
    background: var(--bg-section);
    color: #333;
}
.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: #fff;
}

.header .mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    border-radius: var(--radius-md);
    transition: background .3s ease;
}
.header .mobile-menu-btn:hover {
    background: rgba(255, 255, 255, .1);
}
.header .mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    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: #fff;
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    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-sm);
}
.book-home .section-box:is(.web-sec-featured, .web-sec-tags, .web-sec-recent) {
    border: var(--book-home-panel-border);
    border-radius: var(--book-home-panel-radius);
    padding: 0 16px;
    margin-top: 30px;
}
.book-home .section-box.web-sec-featured {
    margin-top: 0;
}
.section-box.web-sec-notice {
    display: block;
    width: 100%;
    flex-basis: 100%;
    margin-top: 12px;
    margin-bottom: 20px;
    padding: 0;
    border: 1px solid var(--line-default);
    border-radius: var(--radius-sm);
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;
}
.section-box.web-sec-notice .module-title.module-title-full {
    width: 100%;
    margin: 0;
    padding: 12px 16px 10px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--line-faint);
}
.web-sec-notice-page .module-title.module-title-full > h1 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-text);
    line-height: 1.35;
    min-width: 0;
    flex: 1 1 auto;
    white-space: normal;
    padding-left: 12px;
    position: relative;
}
.web-sec-notice-page .module-title.module-title-full > h1::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 4px;
    height: 1.1em;
    background: var(--accent-bar);
    border-radius: var(--radius-sm);
}
.web-sec-notice-page .notice-page-list {
    margin: 0;
    padding: 12px 16px 16px;
    box-sizing: border-box;
}
.web-sec-notice-page .notice-item-title { font-size: 1.05rem; }
.web-sec-notice-page .notice-item-title a {
    color: inherit;
    text-decoration: none;
}
.web-sec-notice-page .notice-item-title a:hover,
.web-sec-notice-page .notice-item-title a:focus-visible {
    text-decoration: underline;
}
.web-sec-notice-page .notice-item-body { font-size: 15px; }
.web-sec-notice-page .web-notice-row {
    position: relative;
    padding: 14px 16px;
    border: 1px solid var(--line-panel);
    border-radius: var(--radius-sm);
    background: #fff;
    margin: 0 0 12px;
}
.web-sec-notice-page .web-notice-item-head {
    display: block;
    margin: 0 0 6px;
}
.web-sec-notice-page .web-notice-title-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 4px;
}
.web-sec-notice-page .web-notice-item-head .notice-item-title {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    line-height: 1.35;
}
.web-sec-notice-page .notice-item-title-link::after {
    content: " \2197";
    font-size: 0.85em;
    opacity: 0.75;
}
.web-sec-notice-page .web-notice-item-meta {
    display: block;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}
.web-sec-notice-page .web-notice-title-row .rank-num {
    margin: 0;
    flex-shrink: 0;
    margin-top: 0.1em;
}
.web-sec-notice-page .web-notice-meta-time {
    display: block;
    word-break: break-word;
}
.web-sec-notice-page .notice-item-body:empty {
    display: none;
}
.web-sec-notice-page .web-notice-row[id^="notice-"] {
    scroll-margin-top: calc(var(--header-h) + 12px);
}
.web-sec-notice-page .web-notice-row:focus { outline: none; }
.web-sec-notice-page .web-notice-row:focus-visible {
    outline: 2px solid var(--color-emphasis);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}
.web-sec-notice-page .web-notice-linkonly {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-secondary);
}
.web-sec-notice-page .web-notice-linkonly-hint { margin: 0 0 8px; }
.web-sec-notice-page .web-notice-linkonly-action { margin: 0; }
.web-sec-notice-page a.web-notice-linkout {
    color: var(--color-emphasis);
    font-weight: 600;
    text-decoration: none;
}
.web-sec-notice-page a.web-notice-linkout:hover,
.web-sec-notice-page a.web-notice-linkout:focus-visible {
    text-decoration: underline;
}
.web-sec-notice-page .web-notice-row:last-child { margin-bottom: 0; }
.web-sec-notice-page .notice-page-list > .list-empty {
    margin: 0;
    padding: 20px 16px 28px;
    grid-column: unset;
    color: var(--text-secondary);
    font-size: 15px;
}
.book-nav {
    width: 100%;
    box-sizing: border-box;
}
.book-home .book-nav {
    margin-top: 30px;
}
.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: #fff;
}
.book-home .section-box > .home-head:not(.home-head--muted) {
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    border: none;
    border-bottom: var(--book-home-panel-border);
}
.book-home .home-head--muted {
    background: var(--bg-subtle);
}
.book-home .book-nav > .book-nav-head.home-head {
    width: 100%;
    margin: 0 0 14px;
    border: var(--book-home-panel-border);
    border-radius: var(--book-home-panel-radius);
}
.book-home .web-sec-tags.tags--dual .home-head > .top-section-tabs {
    grid-column: 1 / -1;
    justify-self: stretch;
}

.book-home .book-nav-head.book-nav-head--mono {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: var(--book-home-column-gap);
    align-items: center;
    justify-items: stretch;
}

.book-home .book-nav-head--mono > .module-title {
    grid-column: 1 / 2;
    justify-self: start;
    align-self: center;
    border-bottom: none;
    padding: 0;
    margin: 0;
    width: auto;
    max-width: min(280px, 100%);
    min-width: 0;
    box-sizing: border-box;
    background: transparent;
}

.book-home .book-nav-head--mono > .module-title > h3 {
    color: var(--color-text);
    font-weight: 700;
}

.book-home .book-nav-head--mono > .module-title-more {
    grid-column: 2 / 3;
    justify-self: end;
}

.book-home .book-nav-head > .home-head--tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
    box-sizing: border-box;
    grid-column: 1 / 2;
    justify-self: stretch;
    align-self: center;
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}
.book-home .book-nav-head .book-nav-aside {
    grid-column: 2 / -1;
    justify-self: end;
}
.book-home .book-nav-head > .home-head--tabs > .top-section-tabs {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
}
.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 > 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;
    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: 10px;
    flex: 1 1 auto;
}
/* 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 > .top-section-tab,
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs > a.top-section-tab,
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs > button.top-section-tab,
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs > 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：刻度与 `.section-box .top-section-tab` 一致，勿与 book-home 栅格 Tab 混写 */
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs > .top-section-tab,
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs > a.top-section-tab,
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs > button.top-section-tab,
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs > span.top-section-tab {
    padding: 3px 1px 4px;
    line-height: 1.35;
}
.account-main .content-card > .home-head.home-head--tabs .top-section-tabs > a.top-section-tab {
    text-decoration: none;
    color: inherit;
}
.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,
.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(--color-text);
    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"],
.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;
    font-weight: 700;
    border-bottom-color: var(--accent-bar);
    position: relative;
    z-index: 1;
}
.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"] {
    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 {
    color: var(--color-text);
}
.book-home .book-nav-links a {
    line-height: 1.25;
}
.book-nav-aside {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}
/* 与 `initHomeTopTabs` 一致：`[hidden]` 不可被其它 display 盖掉，否则两面板会叠显 */
.book-nav .book-nav-panel[hidden] {
    display: none !important;
}
.book-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    align-items: center;
    margin: 0;
    padding: 0;
}
.book-nav-links a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
}
.book-nav-links a + a {
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid var(--line-sep);
}
.book-nav-links a:hover,
.book-nav-links a:focus-visible {
    color: var(--color-emphasis);
    text-decoration: underline;
}
.book-home .book-nav--with-ranks .book-nav-head.home-head {
    border-radius: var(--book-home-panel-radius) var(--book-home-panel-radius) 0 0;
    margin-bottom: 0;
    border-bottom: none;
}
.book-home .book-nav--with-ranks .ranks {
    border: var(--book-home-panel-border);
    border-radius: 0 0 var(--book-home-panel-radius) var(--book-home-panel-radius);
    background: var(--bg-subtle);
    margin: 0 0 14px;
    padding: 0;
    box-sizing: border-box;
}
.book-home .ranks-panel[hidden] {
    display: none !important;
}
.book-home .ranks-hots {
    padding: 8px;
    box-sizing: border-box;
}
.book-home .ranks-hots .hots-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    column-gap: var(--book-home-column-gap);
    row-gap: 16px;
    box-sizing: border-box;
}
.book-home .ranks-hots .hotlist {
    flex: 1 1 0;
    min-width: 200px;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    width: auto;
}
@media (max-width: 1200px) {
    .book-home .ranks-hots .hotlist {
        flex: 1 1 calc((100% - var(--book-home-column-gap)) / 2);
        max-width: calc((100% - var(--book-home-column-gap)) / 2);
    }
    .book-home .book-nav-head:not(.book-nav-head--mono) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .book-home .section-box > .home-head {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .book-home .book-nav-head.book-nav-head--mono {
        grid-template-columns: auto 1fr;
    }
    .book-home .recent-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .top-box .hots .hotlist {
        flex: 1 1 calc((100% - 16px) / 2);
        max-width: calc((100% - 16px) / 2);
    }
}
.book-home .web-sec-recent.recent {
    margin-top: 2px;
}
/* 同 `.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 .recent .recent-panel[hidden] {
    display: none !important;
}

.book-home .tags-panel {
    width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
    overflow: visible;
}
.book-home .tags-panel[hidden] {
    display: none !important;
}
.book-home .web-sec-tags .tags-grid {
    display: grid;
    grid-template-columns: repeat(11, minmax(0, 1fr));
    gap: 8px;
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    padding: 8px;
    box-sizing: border-box;
}
.book-home .tags-grid .tags-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 9px 10px;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    color: #808080;
    background: #fff;
    border: 1px solid var(--line-faint);
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    text-decoration: none;
    cursor: pointer;
    transform: translateZ(0);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        color 0.15s ease;
}
.book-home .tags-grid .tags-cell:hover {
    border-color: var(--line-mid);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    transform: translateY(-1px);
    color: var(--link-hover-fg);
}
.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;
}
@media (max-width: 1100px) {
    .book-home .web-sec-tags .tags-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .account-content.is-member .member-hero {
        flex-direction: column;
        /* 与 base 的 align-items:center 不同：纵向时须拉满横宽，否则统计三卡会按内容撑宽、与下方全宽按钮不齐 */
        align-items: stretch;
    }
    .account-content.is-member .member-hero .member-summary {
        width: 100%;
        min-width: 0;
        align-self: stretch;
        box-sizing: border-box;
    }
    .member-action {
        flex: 0 0 auto;
        align-self: stretch;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        justify-items: stretch;
    }
    .member-action .site-btn {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-self: stretch;
    }
    .member-action p {
        text-align: left;
    }
}
@media (max-width: 640px) {
    .book-home .ranks-hots .hotlist {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
    }
    .book-home .book-nav-head {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }
    .book-home .book-nav-head > .home-head--tabs {
        grid-column: 1 / 2;
        min-width: 0;
    }
    .book-home .book-nav-head .book-nav-aside {
        grid-column: 2 / 3;
        justify-self: end;
        min-width: 0;
    }
    .book-home :is(.book-nav-head .home-head--tabs, .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 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        padding: 8px;
    }
    .book-home .tags-grid .tags-cell {
        padding: 5px 4px;
        font-size: 15px;
    }
    .top-box .hots .hotlist {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
    }
}
.book-home .recent-layout {
    display: grid;
    --book-home-recent-fr: calc((100% - 3 * var(--book-home-column-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(--book-home-column-gap)));
    align-items: stretch;
    column-gap: var(--book-home-column-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;
}
.book-home .recent-spot:nth-child(odd) {
    background: var(--bg-surface);
}
.book-home .recent-spot:nth-child(even) {
    background: var(--bg-subtle);
}
.book-home .recent-spot:hover {
    background: rgba(0, 0, 0, 0.02);
}
.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;
}
.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-subtle);
}
.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: rgba(0, 0, 0, 0.02);
}
@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;
    }
    .member-grid,
    .member-card--invite .stats-grid--3 {
        grid-template-columns: 1fr;
    }
    .notice-item-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .notice-item-meta {
        width: 100%;
        justify-content: space-between;
    }
}

.section-box.web-sec-featured p.list-empty {
    padding: 24px 16px;
}
.section-box.web-sec-banner-rank .banner.site-banner-carousel {
    position: relative;
    height: 320px;
}
.site-banner-carousel > [carousel-item] {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}
.site-banner-carousel > [carousel-item] > .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 > [carousel-item] > .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: 0;
    right: 0;
    bottom: 10px;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
}
.site-banner-carousel .site-banner-dot {
    pointer-events: auto;
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
}
.site-banner-carousel .site-banner-dot.is-active {
    background: #fff;
}
.section-box.web-sec-banner-rank .banner .carousel-slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 14px 12px;
    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(0, 0, 0, .78) 0%, rgba(0, 0, 0, .35) 55%, transparent 100%);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

.section-box.web-sec-banner-rank {
    align-items: stretch;
    padding: 16px 0;
}
.section-box .banner {
    margin: 0;
    border: 1px solid var(--line-default);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: 70%;
    flex-shrink: 0;
    min-width: 300px;
    min-height: 200px;
    box-sizing: border-box;
}
@media (min-width: 481px) {
    .section-box .banner { min-height: 260px; }
}
@media (min-width: 769px) {
    .section-box .banner { min-height: 320px; }
}

.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-sm);
    overflow: hidden;
    width: 28%;
    flex-shrink: 0;
    min-width: 280px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0 16px;
}
.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: #fff;
}

/* 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;
}
/* Tab 面板：勿对带 [hidden] 的项写 display:flex，否则特异性会盖掉 [hidden] 的 display:none，两面板会同时露出 */
.section-box .top-section--tabs .top-section-panel[hidden] {
    display: none !important;
}
.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 8px 0 12px;
}
.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 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;
}
.section-head h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    position: relative;
    padding-left: 12px;
    line-height: 1.4;
}
.hots .hots-row .section-head {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    margin: 25px 0 5px;
}
.module-title h3 a {
    color: inherit;
    text-decoration: none;
}
.module-title h3 a:hover {
    color: var(--color-emphasis);
}
.module-title-more {
    flex-shrink: 0;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s ease;
}
@media (hover: hover) {
    .module-title-more:hover {
        color: var(--color-emphasis);
    }
}
.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,
    .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,
    .hots .hotlist > .module-title,
    .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;
}
.hots .hotlist > .module-title {
    width: 100%;
    margin: 0;
    align-self: stretch;
}
.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: var(--radius-md);
}
.top-list p {
    margin: 0;
}
.top-list .first {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    background: var(--bg-surface);
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}
.top-list .first .top-first-cover {
    width: 54px;
    height: 72px;
    flex: 0 0 54px;
    display: block;
    border-radius: var(--radius-md);
    object-fit: cover;
}
.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 0;
    border-bottom: 1px solid var(--line-faint);
    cursor: pointer;
    color: inherit;
    box-sizing: border-box;
}
.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 与 .hots 共用，勿再写 .number / .num 两套 */
.rank-num {
    display: block;
    width: 20px;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    color: #fff;
    background: #b0b8c1;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 0;
}
.hots .hotlist ul li .rank-num {
    margin-right: 10px;
}
/* 简行书名：.top-list 与 .hots 同基型，勿再为某一栏单独设一套字号/字色 */
.top-list a .name,
.hots .hotlist ul li .txt span.name {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}
.top-list a .name {
    flex: 1;
}
.hots .hotlist ul li .txt span.name {
    line-height: 20px;
    height: 20px;
    max-width: 100%;
    transition: color .2s ease;
}
.hots .hotlist ul li .txt span.name a {
    color: inherit;
    text-decoration: none;
}
.rank-num.top1 {
    background: linear-gradient(135deg, #fffbe6 0%, #ffe066 40%, #ffd700 70%, #bfa100 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(255, 193, 7, .35);
}
.rank-num.top2 {
    background: linear-gradient(135deg, var(--line-faint) 0%, #e0e0e0 50%, #bdbdbd 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(158, 158, 158, .3);
}
.rank-num.top3 {
    background: linear-gradient(135deg, #fff3e0 0%, #e6a55c 50%, #c47222 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(191, 127, 63, .35);
}

/* 精品推荐：单类型首页为一行可横滚；全书籍首页精品见 `.feat-strip-*` + `shell.js` 单行 8 槽、箭头平移 */
.featured {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    padding: 16px 0;
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 100%;
    box-sizing: border-box;
}
.featured .feat-card {
    flex: 0 0 calc((100% - 112px) / 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;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    padding: 20px 8px 8px;
    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%);
    transition: color .2s ease;
}
.featured .feat-card:hover .book-title {
    color: var(--color-emphasis);
}
/* 全书籍首页精品：`feat-strip-*` + `initFeatStrip`；箭头外移至 `-16px` 与同区块 `.section-box` 横向 padding 对齐，`overflow` 避开父辈裁剪 */
.book-home section.web-sec-featured {
    overflow: visible;
}
.book-home .web-sec-featured .feat-strip-outer {
    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-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: 16px;
    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-cols="1"] .feat-card { flex: 0 0 100cqw; width: 100cqw; }
.book-home .web-sec-featured .feat-strip-outer[feat-cols="2"] .feat-card { flex: 0 0 calc((100cqw - 16px) / 2); width: calc((100cqw - 16px) / 2); }
.book-home .web-sec-featured .feat-strip-outer[feat-cols="3"] .feat-card { flex: 0 0 calc((100cqw - 32px) / 3); width: calc((100cqw - 32px) / 3); }
.book-home .web-sec-featured .feat-strip-outer[feat-cols="4"] .feat-card { flex: 0 0 calc((100cqw - 48px) / 4); width: calc((100cqw - 48px) / 4); }
.book-home .web-sec-featured .feat-strip-outer[feat-cols="5"] .feat-card { flex: 0 0 calc((100cqw - 64px) / 5); width: calc((100cqw - 64px) / 5); }
.book-home .web-sec-featured .feat-strip-outer[feat-cols="6"] .feat-card { flex: 0 0 calc((100cqw - 80px) / 6); width: calc((100cqw - 80px) / 6); }
.book-home .web-sec-featured .feat-strip-outer[feat-cols="7"] .feat-card { flex: 0 0 calc((100cqw - 96px) / 7); width: calc((100cqw - 96px) / 7); }
.book-home .web-sec-featured .feat-strip-outer[feat-cols="8"] .feat-card { flex: 0 0 calc((100cqw - 112px) / 8); width: calc((100cqw - 112px) / 8); }
.book-home .web-sec-featured .feat-strip-outer .feat-card {
    flex: 0 0 auto;
    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);
}
.cate-row {
    display: flex;
    flex-wrap: nowrap;
    margin-bottom: 30px;
    gap: 20px;
}
.cate-card {
    background: #fff;
    width: calc(33.333% - 14px);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    min-width: 0;
    margin: 0;
    padding: 0 12px 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.cate-card .item-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    padding-top: 10px;
    gap: 10px 18px;
}
.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;
}
.book-row.first .cover {
    width: 92px;
    height: 122px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-right: 14px;
    flex-shrink: 0;
}
.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: bold;
    color: var(--color-text);
    margin-bottom: 4px;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.35;
}
.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: 15px;
    font-weight: normal;
    overflow-wrap: anywhere;
}
.book-row:not(.first) .book-link {
    width: auto;
    max-width: 100%;
    color: var(--text-secondary);
    text-decoration: underline dashed var(--line-soft);
    text-decoration-thickness: max(0.5px, 0.04em);
    text-underline-offset: 5px;
}
.book-row:not(.first) .book-link:hover {
    color: var(--color-emphasis);
    text-decoration-color: var(--line-soft);
}

.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 #f2f2f2;
    padding: 3px 0;
    color: #333;
    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 .author {
    flex: 0 0 100px;
    min-width: 72px;
    margin-right: 8px;
    color: #888;
    text-align: left;
}
.latest-update-list .time {
    flex: 0 0 80px;
    min-width: 70px;
    color: #aaa;
    font-size: 13px;
    text-align: right;
}
.latest-update-list .cat a, .latest-update-list .author a {
    color: #888;
}
.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: 16px;
}
.update-latest,
.finish {
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
}
.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 12px;
}
.finish {
    flex: 0 0 28%;
    min-width: 280px;
    padding: 0 12px;
}
.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);
}
.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 rgba(252, 160, 0, .28);
    background: var(--accent-tint);
    color: var(--accent-2);
    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;
    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(--accent-2);
}
.finish-book-list .name {
    display: block;
    font-size: 16px;
    font-weight: bold;
    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: break-all;
}
.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: break-all;
}

.search-head.module-title {
    padding: 15px 0 0;
    margin: 0 0 16px;
    border-bottom: none;
    box-sizing: border-box;
}
.search-head.module-title > h3 {
    font-weight: 600;
}
.search-head.module-title .keyword {
    color: var(--color-emphasis);
    font-weight: 700;
}

.channel {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 16px 0 16px;
    margin-top: 20px;
    margin-bottom: 32px;
    background: #fff;
    font-size: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-default);
    display: flex;
    flex-direction: column;
}
.channel li {
    width: 100%;
    padding: 10px 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: 70px;
    min-width: 70px;
    margin-right: 14px;
    padding-top: 4px;
    text-align: left;
    color: #aaa;
    flex-shrink: 0;
    font-weight: 500;
    font-size: 14px;
}
.channel li .list {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 0;
    overflow: visible;
}
.channel li .list a {
    display: inline-block;
    padding: 3px 13px;
    font-size: 13px;
    color: #444;
    background: var(--bg-canvas);
    border-radius: var(--radius-md);
    margin: 0 6px 6px 0;
    white-space: nowrap;
    transition: background .2s, color .2s;
    text-decoration: none;
    line-height: 22px;
}
.channel li .list a.is-active {
    background: var(--accent-bar);
    color: var(--color-text);
    font-weight: 700;
}
.channel li .list .list-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 0;
}
.channel li .list .list-row--sub {
    flex-basis: 100%;
    width: 100%;
    min-width: 0;
}
.channel li .list .list-row--sub a {
    padding: 2px 8px;
    font-size: 13px;
    line-height: 1.5;
    background: var(--line-soft);
    color: #888;
}
.channel li .list .list-row--sub a.is-active {
    background: #fff7e6;
    color: var(--color-emphasis);
}
@media (hover: hover) {
    .channel li .list a:hover {
        background: #ffe040;
        color: #111;
    }
    .channel li .list .list-row--sub a:hover {
        background: #fff7e6;
        color: var(--color-emphasis);
    }
    .channel li .tags-container .tag-item:hover {
        background: rgba(255, 87, 34, 0.1);
        color: var(--link-hover-fg);
    }
}
.channel li .list .list-row a {
    margin: 0 8px 8px 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.hidden {
    display: none;
}
.channel li .toggle-tags {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    color: var(--accent-2);
    font-size: 13px;
    padding: 3px 10px;
    margin-bottom: 6px;
    flex-shrink: 0;
}
.channel li .toggle-tags.hide {
    display: none;
}
.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 { transform: rotate(180deg); }

.book-list {
    width: 100%;
    overflow: hidden;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}
.book-list li.list-empty {
    width: 100%;
    flex: 1 1 100%;
    list-style: none;
    text-align: center;
    padding: 72px 20px 100px;
    color: var(--text-muted);
    font-size: 18px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 100px;
    border-bottom: 1px solid var(--line-soft);
}
.browse-empty-msg {
    margin: 0;
    font-size: 24px;
    color: var(--text-muted);
}
.browse-empty-relax {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    font-size: 14px;
    color: #888;
}
.browse-empty-relax-link {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-md);
    background: var(--line-soft);
    color: var(--accent-2);
    text-decoration: none;
}
@media (hover: hover) {
    .browse-empty-relax-link:hover {
        background: #fff7e6;
        color: var(--color-emphasis);
    }
}
.browse-filter-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0 2px;
}
.browse-filter-chips-label {
    color: #888;
    font-size: 13px;
    flex-shrink: 0;
}
.browse-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-md);
    background: #fff7e6;
    color: var(--color-emphasis);
    font-size: 13px;
    text-decoration: none;
    line-height: 1.5;
}
.browse-filter-chip-x {
    font-size: 14px;
    line-height: 1;
    opacity: .75;
}
.browse-filter-chip--all {
    background: var(--line-soft);
    color: #666;
}
@media (hover: hover) {
    .browse-filter-chip:hover {
        background: #ffe040;
        color: #111;
    }
    .browse-filter-chip--all:hover {
        background: #eee;
        color: #333;
    }
}
.browse-filter-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin: 0 0 10px;
    padding: 10px 14px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--accent-2);
    font-size: 14px;
    cursor: pointer;
}
.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 {
    transition: transform .2s ease;
}
.browse-filter-toggle.is-open .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-soft);
    border-right: 1px solid var(--line-soft);
    padding: 0;
    position: relative;
    background: #fff;
    display: flex;
    transition: background .15s 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 16px;
    gap: 16px;
}
.book-list li:hover {
    transform: none;
}
.book-list li .pic {
    flex-shrink: 0;
    width: 90px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    background: var(--line-soft);
}
.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: 5px;
}
.book-list li .info .name {
    font-size: 17px;
    color: var(--color-text);
    line-height: 1.3;
    margin-bottom: 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.book-list li .info .meta-tags {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    white-space: nowrap;
}
.book-list li .info .meta-tags .author {
    color: #777;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}
.book-list li .info .meta-tags .cname {
    color: #888;
    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: #ccc;
    flex-shrink: 0;
}
.book-list li .info .meta-tags .serialize {
    flex-shrink: 0;
    padding: 1px 5px;
    border-radius: var(--radius-md);
    font-size: 11px;
    line-height: 1.5;
}
.book-list li .info .meta-tags .serialize.done {
    background: var(--line-soft);
    color: #888;
}
.book-list li .info .meta-tags .serialize.ongoing {
    background: #fff7e6;
    color: var(--color-emphasis);
}
.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: #aaa;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}
.book-list li .info .foot .fsep {
    color: #ddd;
}
.book-list li .info .foot .hit-num,
.book-list li .info .foot .words {
    color: #aaa;
    flex-shrink: 0;
}
.book-list li .info .foot .last-chap {
    color: #aaa;
    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: 3px 0 3px 0;
    font-size: 10px;
    font-weight: bold;
    z-index: 3;
    box-shadow: 0 1px 3px rgba(252, 160, 0, .35);
}

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

.top-box {
    margin: 0 auto;
    overflow: hidden;
    padding: var(--header-h) var(--site-gutter) 40px;
}
.hots {
    padding: 0 var(--site-gutter);
    overflow: hidden;
    box-sizing: border-box;
}
.hots .hots-row {
    margin: 0 -10px;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
}
.hots .hotlist {
    width: calc(33.333% - 40px);
    height: auto;
    margin: 16px 20px;
    transition: box-shadow .2s ease;
    box-sizing: border-box;
}
.hots .hotlist.is-featured {
    margin-left: 20px;
}
.top-box .hots .hots-row {
    margin: 0;
    column-gap: 16px;
    row-gap: 16px;
    box-sizing: border-box;
}
.top-box .hots .hotlist {
    flex: 1 1 0;
    min-width: 200px;
    max-width: 100%;
    width: auto;
    margin: 0;
    box-sizing: border-box;
}
.top-box .hots .hotlist.is-featured {
    margin-left: 0;
}
.hots .hotlist ul {
    height: auto;
    border-radius: 0 0 3px 3px;
    padding: 0 var(--home-head-pad-x);
    margin: 0;
    overflow-y: visible;
    overflow-x: hidden;
    box-sizing: border-box;
    width: 100%;
}

.hots .hotlist ul.top-tabs li {
    width: 100%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line-faint);
    box-sizing: border-box;
    transition: background-color .15s ease;
    padding: 8px 0;
}
.hots .hotlist ul.top-tabs li:last-child {
    border-bottom: none;
}
.hots .hotlist ul li .pic {
    width: 70px;
    height: 98px;
    overflow: hidden;
    display: none;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}
.hots .hotlist ul li .pic img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hots .hotlist ul li .txt {
    flex: 1;
    min-width: 0;
    height: 20px;
    overflow: hidden;
}
.hots .hotlist ul li .txt span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 18px;
    font-size: 13px;
    height: 18px;
}
.hots .hotlist ul li .txt span.author {
    color: var(--text-muted);
}
.hots .hotlist ul li .txt span.hits {
    color: var(--accent-2);
}

.hots .hotlist ul li.hover {
    padding: 10px 12px 12px;
    display: flex;
    align-items: flex-start;
}
.hots .hotlist ul li.hover .rank-num {
    margin-bottom: 0;
    margin-top: 30px;
    flex-shrink: 0;
}
.hots .hotlist ul li.hover .pic {
    display: block;
    margin-left: 8px;
    flex-shrink: 0;
}
.hots .hotlist ul li.hover .txt {
    margin-left: 12px;
    flex: 1;
    min-width: 0;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hots .hotlist ul li.hover .txt span {
    height: auto;
    line-height: 1.35;
}

.detail-header {
    position: relative;
    z-index: 10;
    padding: calc(var(--header-h) + 1px) var(--site-gutter) 0;
    max-width: var(--site-max-w);
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
.book-info {
    display: flex;
    gap: 32px;
    background: #fff;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-default);
    padding: 24px 20px;
    align-items: flex-start;
    /* 详情页顶栏留白已由 .detail-header 承担，且内层 .site-main 已去掉重复 padding-top；勿再使用负 margin 上拉，否则与面包屑贴死 */
    margin-top: 0;
    margin-bottom: 32px;
}
.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: 6px;
    min-width: 0;
    height: 280px;
    max-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-shrink: 0;
}
.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 rgba(252, 160, 0, .28);
    background: #fff7e6;
    color: var(--accent-2);
}
.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.tag-cate {
    border: 1px solid rgba(252, 160, 0, .28);
    background: var(--accent-tint);
    color: var(--accent-2);
    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: rgba(252, 160, 0, .28);
    background: var(--accent-tint);
    color: var(--accent-2);
}
.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 .desc-wrap {
    position: relative;
    margin: 0;
    flex: 0 0 auto;
    width: 100%;
    max-height: 6.4em;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.6;
}
.book-info .data .desc-wrap.is-expanded {
    max-height: none;
    overflow: visible;
}
.book-info .data .desc {
    width: 100%;
    box-sizing: border-box;
    color: #444;
    font-size: inherit;
    line-height: inherit;
    text-align: justify;
    text-align-last: left;
}
.book-info .data .desc-wrap .desc-expand {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1.6em;
    padding: 0;
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: transparent;
    border-radius: 0;
    box-sizing: border-box;
    transition: color .2s;
}
.book-info .data .desc-wrap:not(.is-expanded) .js-desc-expand:not(.hide) {
    right: 0;
    bottom: 0;
    left: auto;
    top: auto;
}
.book-info .data .desc-expand .desc-expand-icon {
    font-size: inherit;
    line-height: 1;
}
.book-info .data .desc-wrap.has-fade:not(.is-expanded)::after {
    content: '';
    position: absolute;
    left: var(--desc-fade-left, 0);
    width: var(--desc-fade-width, 0);
    bottom: 0;
    height: 1.6em;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, .92) 42%, #fff 68%, #fff);
    pointer-events: none;
    z-index: 1;
}
.book-info .data .desc-wrap.is-expanded .desc-expand {
    position: static;
    width: auto;
    height: auto;
    margin-left: 0.2em;
    vertical-align: middle;
}
.book-info .data .desc-expand.hide {
    display: none;
}
.book-info .data .desc-expand:hover {
    color: var(--accent-2);
}
.book-info .data:has(.desc-wrap.is-expanded) .actions {
    margin-top: 0;
}
.book-info .data .actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    margin-top: auto;
    flex-shrink: 0;
}
.book-info .data .actions > a.site-btn {
    background: linear-gradient(to right, #ffe040, var(--accent-bar));
    color: var(--color-text);
    border: none;
    border-radius: var(--radius-md);
    font-size: 17px;
    padding: 0 38px;
    font-weight: 700;
    text-decoration: none;
    height: 44px;
    line-height: 44px;
    box-shadow: none;
    transition: background .2s;
}
.book-info .data .actions > a.site-btn:hover {
    background: linear-gradient(to right, #ffd700, #ffb300);
    border: none;
    box-shadow: none;
}
.book-info .data .actions .shelf-btn {
    color: #333;
    font-size: 15px;
    background: var(--line-faint);
    border: none;
    border-radius: var(--radius-md);
    padding: 0 22px;
    height: 38px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.book-info .data .actions .qr-pop {
    position: relative;
}
.book-info .data .actions .txt-dl, .book-info .data .actions .qr-btn {
    color: #333;
    font-size: 15px;
    background: none;
    border: none;
    padding: 0 22px;
    height: 38px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.book-info .data .actions .qr-content {
    position: absolute;
    top: 101%;
    left: 50%;
    transform: translateX(-50%);
    width: 135px;
    text-align: center;
    display: none;
    z-index: 20;
    background: #fccc0c;
    padding: 12px 8px 10px 8px;
    border-radius: var(--radius-md);
    border: 1px solid #ffe9b3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.book-info .data .actions .qr-pop:hover .qr-content {
    display: block;
}
.book-info .data .actions .qr-content img {
    width: 100%;
    border-radius: var(--radius-md);
}
.book-info .data .actions .qr-content p {
    margin: 8px 0 0 0;
    font-size: 14px;
}

.detail-body {
    display: flex;
    align-items: flex-start;
}
.detail-body .left {
    flex: 1;
    min-width: 0;
}
.detail-body .right {
    width: 300px;
    flex-shrink: 0;
    padding-left: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.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;
}

.detail-catalogue {
    width: 100%;
    padding: 14px 20px 0 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-soft);
    box-sizing: border-box;
}
.detail-catalogue .catalogue-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    color: var(--color-text);
}
.detail-catalogue .catalogue-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}
.detail-catalogue .catalogue-head .sort-btn {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
}
.detail-catalogue .catalogue-head .sort-btn button {
    font-size: 14px;
    color: var(--text-secondary);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 1.4;
    transition: color .2s;
}
.detail-catalogue .catalogue-head .sort-btn button:hover {
    color: var(--color-text);
}
.detail-catalogue .catalogue-body {
    width: 100%;
    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;
}
.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--header {
    border-bottom: 1px solid var(--line-default);
    padding: 10px 0 12px;
    margin: 0;
}
.layout-slot--footer-bottom {
    border-top: 1px solid var(--line-default);
    padding-top: 12px;
    margin-top: 8px;
    border-bottom: none;
    padding-bottom: 0;
}
.layout-slot--content-top {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 0 10px;
    margin: 0;
    text-align: center;
    border-bottom: 1px solid var(--line-soft);
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .2s ease;
}
.footer-links a:hover {
    color: #333;
}
.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);
}

.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: #fff;
    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: #ddd;
    color: #333;
}
.return-top-icon {
    display: block;
    width: 20px;
    height: 20px;
}

.detail-catalogue .volume-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}
.detail-catalogue .volume-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 40px 6px 12px;
    margin-bottom: 4px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    position: relative;
}
.detail-catalogue .volume-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    position: relative;
    line-height: 1.4;
}
.detail-catalogue .volume-title-meta {
    cursor: pointer;
}
.detail-catalogue .volume-head .vol-buy-btn {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 4px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    width: auto;
    max-width: max-content;
    line-height: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: color .2s ease;
}
.detail-catalogue .volume-head .vol-buy-btn:hover {
    color: var(--color-emphasis);
}
.detail-catalogue .volume-head:has(.vol-buy-btn)::before {
    content: "";
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 1.15em;
    min-height: 14px;
    max-height: 20px;
    background: rgba(0, 0, 0, .1);
    pointer-events: none;
    z-index: 0;
}
body.theme-dark .detail-catalogue .volume-head:has(.vol-buy-btn)::before {
    background: rgba(255, 255, 255, .16);
}
.detail-catalogue .volume-head:hover {
    background: var(--line-soft);
}
.detail-catalogue .volume-head::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    margin-top: -3px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--text-muted);
    transition: transform .3s ease;
    pointer-events: none;
    z-index: 1;
}
.detail-catalogue .volume-head.collapsed::after {
    transform: rotate(-180deg);
}

.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 12px;
    color: #333;
    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-auz {
    margin-left: 6px;
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
}

.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 {
    position: absolute;
    top: 0;
    left: 0;
    background: #00000029;
    width: 100%;
    height: 100px;
    line-height: 100px;
    text-align: center;
    color: #fff;
    z-index: 2;
}
.comic-detail .catalogue-list .chapter-list li a em i {
    font-size: 18px;
}

.panel-stat-row {
    display: flex;
    justify-content: space-around;
    padding: 16px 12px;
    border-bottom: 1px solid var(--line-faint);
}
.panel-stat-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.panel-stat-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
}
.panel-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}
.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: 3px 0 0 3px;
}
.panel-carousel-arrow.panel-next {
    right: 0;
    border-radius: 0 3px 3px 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(--color-primary, #16b777);
    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: 2px;
    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 2px 2px;
    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;
}

.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 a: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);
}
.account-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
}

.account-sidebar,
.user-stats-card,
.book-media-panel,
.content-card,
.hots .hotlist,
.stats-tile:not(.stats-tile--nested),
.writer-book-item {
    background: var(--bg-surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
}

.account-sidebar {
    padding: 24px;
    align-self: start;
    min-width: 0;
    overflow: hidden;
}
.account-sidebar .user-avatar {
    text-align: center;
    margin-bottom: 32px;
}
.account-sidebar .user-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--bg-surface);
}

.account-sidebar .sidebar-menu {
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
}
.account-sidebar .sidebar-menu li {
    margin-bottom: 16px;
}
.account-sidebar .sidebar-menu li:last-child {
    margin-bottom: 0;
}
.account-sidebar .sidebar-menu li a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 16px;
    color: var(--color-text-strong);
    transition: background-color .2s, color .2s;
}
.account-sidebar .sidebar-menu li a:hover {
    background-color: var(--line-faint);
}
.account-sidebar .sidebar-menu li.is-active a {
    background-color: var(--accent-bar);
    color: var(--color-text);
    font-weight: 600;
}
.account-sidebar .sidebar-menu li a .site-icon {
    flex-shrink: 0;
    width: 20px;
    margin-right: 10px;
    font-size: 20px;
    line-height: 20px;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.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: 12px;
    line-height: 18px;
    text-align: center;
    font-style: normal;
}

.account-content {
    min-width: 0;
    min-height: calc(100vh - 286px);
}
/* 用户/作家中心表格：统一小号字，压过全局 .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;
}
.user-stats-card {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.user-stats-card .user-info p {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}
.user-stats-card .user-info p:last-child {
    margin-bottom: 0;
}
.user-stats-card .user-info .coin span {
    color: var(--color-stat-coin);
    font-weight: bold;
    font-size: 16px;
}
.user-stats-card .user-info .charge-btn {
    margin-left: 12px;
    color: var(--accent-2);
    font-size: 13px;
}
.user-stats-card .user-info .vip a {
    color: var(--accent-2);
}
.account-main .user-stats-card {
    padding: var(--account-card-pad-x);
}
.account-main .account-content > .book-media-panel {
    --guess-like-pad: 12px;
    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(--home-head-pad-x), env(safe-area-inset-left, 0px))
        max(var(--home-head-pad-x), env(safe-area-inset-right, 0px));
    border-bottom: 1px solid var(--line-default);
    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 > h3,
.account-main .content-card > .home-head.home-head--solo > .module-title.home-head-title > h3 {
    color: var(--color-text);
    line-height: 1.35;
}
/* `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;
}
.account-main .account-sidebar.is-writer + .account-content .content-header > div .site-btn {
    flex-shrink: 0;
}
.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;
}
/* 会员中心猜你喜欢：PC 两行 6 列（12 格）；四边 `--guess-like-pad` 与上下一致；栅格 `width:100%` 铺满主栏，勿 `fit-content` 居中（否则宽屏两侧大块留白） */
.account-main .account-content > .book-media-panel > .finish-book-list--tile-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px 8px;
    align-items: start;
    padding: var(--guess-like-pad);
    box-sizing: border-box;
}
.account-main .account-content > .book-media-panel > .finish-book-list--tile-grid > li {
    display: block;
    min-height: 0;
    border-bottom: none;
    padding: 0;
}
.account-main .account-content > .book-media-panel > .finish-book-list--tile-grid .finish-book-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    height: auto;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-sm);
    transition: color .15s ease;
}
.account-main .account-content > .book-media-panel > .finish-book-list--tile-grid .finish-book-tile:hover .finish-book-tile-title {
    color: var(--color-emphasis);
}
.account-main .account-content > .book-media-panel > .finish-book-list--tile-grid .cover-wrap {
    width: 100%;
    max-width: min(100%, 96px);
    height: auto;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 3 / 4;
    flex-shrink: 0;
}
.account-main .account-content > .book-media-panel > .finish-book-list--tile-grid .cover-wrap .feat-card-kind {
    top: 4px;
    left: 4px;
    padding: 1px 5px;
    font-size: 9px;
}
.account-main .account-content > .book-media-panel > .finish-book-list--tile-grid .finish-book-tile-title {
    width: 100%;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text);
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    min-height: 0;
    max-height: calc(1.35em * 2);
}
.sign-in-widget {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.sign-in-data {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}
.sign-in-data p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}
.sign-in-data span {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-2);
    margin: 0 2px;
}
.sign-in-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.sign-in-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid var(--accent-bar);
    border-radius: 50%;
    background: linear-gradient(165deg, #fffcef 0%, #fff4d0 100%);
    color: var(--accent-2);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(252, 200, 0, .22);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.sign-in-btn .site-icon {
    font-size: 22px;
    line-height: 1;
}
.sign-in-btn-label {
    display: block;
}
.sign-in-btn:hover {
    background: linear-gradient(165deg, #fff8e3 0%, #ffeab0 100%);
    border-color: #f5c400;
    box-shadow: 0 4px 14px rgba(252, 200, 0, .3);
    transform: translateY(-1px);
}
.sign-in-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(252, 200, 0, .2);
}
.sign-in-btn:focus-visible {
    outline: 2px solid rgba(252, 200, 0, .55);
    outline-offset: 2px;
}
.sign-in-btn--done,
.sign-in-btn:disabled {
    background: var(--bg-form);
    border-color: var(--line-mid);
    color: var(--text-muted);
    box-shadow: none;
    cursor: default;
    transform: none;
}
.sign-in-btn--done .site-icon,
.sign-in-btn:disabled .site-icon {
    color: #7cb342;
    font-size: 24px;
}
.sign-in-btn--done:hover,
.sign-in-btn:disabled:hover {
    background: var(--bg-form);
    border-color: var(--line-mid);
    box-shadow: none;
    transform: none;
}
.sign-in-action p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.35;
    max-width: 88px;
    text-align: center;
}

.account-main .account-content {
    --account-card-pad-x: 14px;
}
.account-main .account-bind-hint {
    margin-bottom: 20px;
    align-self: stretch;
}
.account-bind-hint-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: #fff8f0;
    border: 1px solid #f4a94e;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(244, 169, 78, 0.2);
}
.account-bind-hint-icon {
    flex-shrink: 0;
    margin-top: 1px;
    color: #f4a94e;
    font-size: 18px;
    line-height: 1.4;
}
.account-bind-hint-inner {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}
.account-bind-hint-text {
    margin: 0;
    flex: 1 1 240px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--text-secondary);
}
.account-bind-hint-text strong {
    color: #c0392b;
    font-weight: 700;
}
.account-bind-hint-actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.account-bind-hint-cta.site-btn {
    background-color: #e67e22;
    border-color: #e67e22;
    color: #fff;
}
.account-bind-hint-cta.site-btn:hover {
    background-color: #d35400;
    border-color: #d35400;
    color: #fff;
}
.account-main .content-card {
    padding: 12px var(--account-card-pad-x) 24px;
}
/* 会员/作家：`home-head.home-head--tabs` 与首页「最近更新」同源；`[role=tablist]` 内 Tab 由 `shell.js` `initHomeTopTabs` 切换；底边与卡片左右内边距对齐须负 margin 拉满 */
.account-main .content-card > .home-head.home-head--tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 6px;
    border-bottom: 1px solid var(--line-default);
    background: #fff;
    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: 16px;
}
.account-main .content-card > .home-head.home-head--tabs ~ [role="tabpanel"][hidden] {
    display: none !important;
}

.pay-section {
    margin-bottom: 28px;
}
.pay-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-text-strong);
}
.option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
    padding: 0;
}
.option-list.pay-sku-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 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-sep);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: transform .2s ease-in-out, border-color .2s ease-in-out;
    background-color: #fdfdfd;
}
.option-list li:hover {
    transform: translateY(-2px);
    border-color: #ccc;
}
.option-list li.is-active {
    border-color: var(--accent-bar);
    background-color: #fff9e6;
    transform: translateY(-2px);
}
.option-list .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-2);
    margin-bottom: 8px;
}
.option-list .price-old {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: line-through;
}
.option-list .desc {
    font-size: 14px;
    color: var(--text-secondary);
}
.option-list .plan-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff3cc;
    color: #8a6700;
    font-size: 12px;
    line-height: 1.4;
}
.payment-options li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    padding: 12px 16px;
}
.payment-icon {
    width: 25px;
    height: 25px;
    background-size: 55px 25px;
    background-repeat: no-repeat;
    background-image: url('../images/icon_pay.png');
}
.alipay-icon {
    background-position: -30px 0;
}
.wxpay-icon {
    background-position: 0 0;
}
.pay-btn {
    width: 220px;
    margin-top: 16px;
}

.avatar-uploader {
    text-align: center;
    cursor: pointer;
    margin-bottom: 24px;
}
.avatar-uploader img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--line-faint);
    transition: border-color .3s;
}
.avatar-uploader:hover img {
    border-color: var(--accent-bar);
}
.avatar-uploader p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.5;
}

.user-item-list {
    margin: 0;
    padding: 8px 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    box-sizing: border-box;
}
.book-item {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: background-color .3s, box-shadow .3s;
}
.book-item:hover {
    background-color: var(--line-soft);
}
.book-item .cover {
    width: 75px;
    height: 100px;
    flex-shrink: 0;
    margin-right: 16px;
}
.book-item .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}
.book-item .info {
    min-width: 0;
    flex-grow: 1;
    text-align: left;
}
.book-item .info h4 {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
    text-align: left;
}
.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:hover .delete-btn {
    opacity: 1;
    transform: scale(1);
}
.delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,.5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(.8);
    transition: opacity .3s, transform .3s;
}
.delete-btn:hover {
    background: var(--color-emphasis);
}
.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;
}

.doc {
    background: #fff;
    padding: 40px 60px;
    margin-top: 30px;
    border-radius: var(--radius-md);
}
.doc h2 {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    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;
}

.user-info-form .user-totp-field--spaced {
    margin-bottom: 16px;
}
.user-info-form .user-totp-legend {
    font-size: 14px;
}

.info-verify-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.info-verify-group .site-input {
    flex: 1;
    min-height: 38px;
    height: 38px;
    line-height: 38px;
    box-sizing: border-box;
}
.info-verify-group .input-group-select select {
    min-height: 38px;
    height: 38px;
    line-height: 38px;
    box-sizing: border-box;
}
.info-verify-group .code-btn,
.user-form-container .input-group .code-btn {
    flex-shrink: 0;
    min-height: 38px;
    height: 38px;
    line-height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #555;
    border: 1px solid #ddd;
    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;
}

.user-info-form .form-btn-center {
    text-align: center;
}
.user-info-form .form-btn-center .site-btn {
    display: inline-block;
}
.user-info-form .site-form-label {
    width: 232px;
    padding-left: 0;
    text-align: right;
}
.user-info-form .site-input-block {
    max-width: 50%;
    min-width: 260px;
    margin-left: 0;
    margin-right: auto;
    display: flex;
    align-items: center;
}
.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 {
    min-height: 38px;
    height: 38px;
    line-height: 38px;
    box-sizing: border-box;
}
/* 提现弹层挂在 `body` 下，勿套 `.account-main` */
.withdraw-popup-form .site-input-block > .site-input:not(textarea) {
    min-height: 38px;
    height: 38px;
    line-height: 38px;
    box-sizing: border-box;
}
.account-content.is-member .member-hero {
    margin-bottom: 24px;
    align-items: center;
    gap: 12px;
}
.member-notice-card {
    margin-bottom: 24px;
    padding: 20px 24px;
}
.member-notice {
    padding: 16px 18px;
    border: 1px solid #f7decf;
    border-radius: var(--radius-md);
    background: #fffbf4;
}
.member-notice.is-danger {
    border-color: #f8d6d0;
    background: #fff7f5;
}
.member-notice.is-warning {
    border-color: #f7decf;
    background: #fffbf4;
}
.member-notice strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    color: #9a5b00;
}
.member-notice.is-danger strong {
    color: #c0392b;
}
.member-notice.is-warning strong {
    color: #9a5b00;
}
.member-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #8a6c4f;
}
.member-summary {
    flex: 1 1 auto;
    min-width: 0;
}
.stats-grid {
    display: grid;
    gap: 12px;
}
.stats-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.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-subtle);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: left;
}
.stats-tile--nested .stats-tile-label {
    font-size: 13px;
    color: var(--text-muted);
}
.stats-tile--nested .stats-tile-value {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
}
.member-action {
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
}
.member-action .site-btn {
    min-width: 160px;
    text-align: center;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}
.member-action .site-btn + .site-btn {
    margin-left: 0;
}
.member-action p {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: right;
}
.member-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}
.account-main .member-grid > .member-card.content-card {
    padding-top: 0;
    padding-bottom: 16px;
}
.member-card,
.member-log-card {
    padding-top: 18px;
    box-sizing: border-box;
}
.member-card {
    height: 100%;
}
.member-grid > .member-card.member-card--invite {
    align-self: start;
    height: auto;
}
.member-grid > .member-card:first-child {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
}
.member-grid > .member-card:first-child > .home-head {
    flex-shrink: 0;
}
.member-right-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 14px;
}
.member-right-list li {
    flex: 1 1 0;
    min-height: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 8px;
    align-items: start;
    padding: 16px 18px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    background: var(--bg-table-head);
}
.member-right-list .list-empty {
    display: block;
    flex: 1 1 auto;
    padding: 40px 16px;
}
.member-right-index {
    grid-column: 1;
    grid-row: 1;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--member-pill-bg);
    color: #b88200;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.member-right-head {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}
.member-right-head strong {
    font-size: 15px;
    color: var(--color-text);
    min-width: 0;
}
.member-right-desc {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1.75;
    color: var(--text-secondary);
}
.member-log-wrap {
    overflow-x: auto;
}
.member-log-card .member-log-wrap {
    overflow-x: hidden;
}
.member-log-card .member-log-table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    table-layout: fixed;
    margin: 0;
}
.member-log-card .member-log-table th,
.member-log-card .member-log-table td {
    vertical-align: middle;
    padding: 8px 10px;
}
.member-log-card .member-log-table td:nth-child(1) {
    font-weight: 400;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}
.member-log-card .member-log-table th:nth-child(1),
.member-log-card .member-log-table td:nth-child(1) {
    width: 18%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    box-sizing: border-box;
}
.member-log-card .member-log-table th:nth-child(n+2):nth-child(-n+5),
.member-log-card .member-log-table td:nth-child(n+2):nth-child(-n+5) {
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
}
.member-log-card .member-log-table th:nth-child(2),
.member-log-card .member-log-table td:nth-child(2) {
    width: 12%;
    text-overflow: clip;
}
.member-log-card .member-log-table th:nth-child(3),
.member-log-card .member-log-table td:nth-child(3) {
    width: 12%;
    text-overflow: clip;
}
.member-log-card .member-log-table th:nth-child(4),
.member-log-card .member-log-table td:nth-child(4) {
    width: 12%;
    text-overflow: clip;
}
.member-log-card .member-log-table th:nth-child(5),
.member-log-card .member-log-table td:nth-child(5) {
    width: 26%;
    text-overflow: ellipsis;
}
.member-log-card .member-log-table th:nth-child(6),
.member-log-card .member-log-table td:nth-child(6) {
    width: 20%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}
.member-log-card .member-log-table .member-pill {
    display: inline-flex;
    justify-content: center;
    max-width: 100%;
    margin-inline: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    vertical-align: middle;
    min-height: 22px;
    padding: 2px 8px;
}
.member-subtable .member-invite-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
    margin: 0;
}
.member-subtable .member-invite-table th,
.member-subtable .member-invite-table td {
    white-space: normal;
    word-break: break-word;
    vertical-align: top;
    line-height: 1.45;
}
.member-subtable .member-invite-table th:nth-child(1),
.member-subtable .member-invite-table td:nth-child(1) {
    width: 45%;
}
.member-subtable .member-invite-table th:nth-child(2),
.member-subtable .member-invite-table td:nth-child(2) {
    width: 20%;
}
.member-subtable .member-invite-table th:nth-child(3),
.member-subtable .member-invite-table td:nth-child(3) {
    width: 35%;
}
.member-subtable .member-invite-table th:not(:first-child),
.member-subtable .member-invite-table td:not(:first-child) {
    border-left: 1px solid var(--line-subtle);
}
.member-log-card .member-log-table th:not(:first-child),
.member-log-card .member-log-table td:not(:first-child) {
    border-left: 1px solid var(--line-subtle);
}
.member-subtable .member-log-wrap {
    overflow-x: visible;
}
.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: top;
}
.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) {
    width: 12%;
}
.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%;
}
.notice-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
}
.notice-item {
    padding: 14px 16px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    background: var(--bg-table-head);
}
.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: 16px;
    color: var(--color-text);
}
.notice-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}
.notice-time {
    flex: 0 0 auto;
    font-size: 13px;
    color: var(--text-muted);
}
.notice-delete-btn {
    border: none;
    background: none;
    padding: 0;
    color: var(--color-emphasis);
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
}
.notice-delete-btn:hover { color: var(--color-emphasis); }
.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: #fff;
}
.notice-unread-tag {
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 1.4;
    padding: 1px 8px;
    border-radius: var(--radius-sm);
    color: #fff;
    background: var(--color-emphasis);
}
.notice-item .is-hidden { display: none; }
.notice-toggle-row { margin-top: 8px; }
.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-subtable .member-invite-table .list-empty {
    padding: 16px 12px;
    text-align: center;
    color: var(--text-muted);
}
.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-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-log-card .member-log-table .member-delta,
.member-subtable .member-invite-table .member-delta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.member-delta.is-up {
    color: var(--member-delta-up);
}
.member-delta.is-down {
    color: var(--member-delta-down);
}
.member-subtable {
    margin-top: 16px;
}
.member-subtable-title {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.cancel-account-wrap {
    margin: 10px 0;
}

.cancel-account-wrap .cancel-account-form {
    text-align: left;
}
.cancel-account-warning {
    background: #fff8f0;
    border: 1px solid #f4a94e;
    border-radius: var(--radius-md);
    padding: 10px 16px;
    margin-bottom: 18px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}
.cancel-account-warning i {
    color: #f4a94e;
    font-size: 16px;
    margin-right: 4px;
    vertical-align: middle;
}
.cancel-account-warning strong {
    color: #c0392b;
}
.cancel-account-form .form-btn-center .site-btn-danger {
    background-color: #c0392b;
    border-color: #c0392b;
    color: #fff;
}
.cancel-account-form .form-btn-center .site-btn-danger:hover {
    background-color: #a93226;
    border-color: #a93226;
}
.account-content .user-totp-bind-actions {
    margin-top: 6px;
}
.account-content .user-totp-bind-actions.form-btn-center {
    text-align: center;
}
.account-content .user-totp-bind-actions.form-btn-center .site-btn {
    display: inline-block;
}
.user-totp-qr-step {
    padding: 10px 12px;
    line-height: 1.45;
    color: #333;
    overflow: visible;
    box-sizing: border-box;
}
.user-totp-qr-hint {
    margin: 0 0 10px;
    font-size: 12px;
    color: #555;
    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: #444;
    line-height: 1.35;
}
.user-totp-qr-img {
    display: block;
    margin: 0 auto;
    border: 1px solid #e8e8e8;
    background: #fff;
    padding: 4px;
    border-radius: 3px;
    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: #fafafa;
    border: 1px solid #eee;
    border-radius: 3px;
    user-select: all;
}
.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 !important;
}
.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 !important;
    text-align: right;
}
.site-ui-layer-content .user-totp-bind-wizard .user-totp-bind-wizard-actions {
    padding-top: 4px;
    margin-bottom: 0 !important;
}
.cancel-no-contact {
    padding: 20px;
    color: #888;
    font-size: 14px;
    line-height: 2;
    text-align: center;
}
.cancel-no-contact a {
    color: #16baaa;
    text-decoration: underline;
}

.user-form-container {
    max-width: 480px;
    margin: 32px auto;
    padding: 24px 32px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-soft);
}
.user-form-container h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 24px;
}
.user-form-container .site-form-item {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin-bottom: 18px;
}
/* 登录页 TOTP / 验证码行：须压过上一行 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 {
    display: none !important;
}
.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: 38px;
    line-height: 38px;
    border-radius: var(--radius-md);
    font-size: 15px;
}
.user-form-container .site-btn-fluid {
    background: linear-gradient(135deg, #FF4343 0%, #ff6b6b 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: none;
    transition: filter .2s ease;
}
.user-form-container .site-btn-fluid:hover,
.user-form-container .site-btn-fluid:focus-visible {
    color: #fff;
    border: none;
    background: linear-gradient(135deg, #e83838 0%, #f55f5f 100%);
    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 .user-oauth-alert {
    margin: 0 0 18px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.55;
    color: #a33;
    background: #fff8f6;
    border: 1px solid rgba(255, 67, 67, 0.22);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.user-form-container .oauth-social {
    margin-top: 22px;
    margin-bottom: 0;
}
.user-form-container .oauth-divider {
    text-align: center;
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--text-muted);
}
.user-form-container .oauth-divider span {
    padding: 0 8px;
}
.user-form-container .oauth-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}
.user-form-container .oauth-btns:has(> .oauth-btn:nth-child(4):last-child),
.user-form-container .oauth-btns:has(> .oauth-btn:nth-child(5):last-child) {
    flex-wrap: nowrap;
    gap: 0;
    justify-content: space-evenly;
}
.user-form-container .oauth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line-default);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--color-text);
    background: #fff;
    text-decoration: none;
    box-sizing: border-box;
}
.user-form-container .oauth-btn-icon {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: var(--radius-md);
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    border-color: rgba(0, 0, 0, 0.14);
    background: linear-gradient(180deg, #fff 0%, #f3f3f4 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.user-form-container .oauth-btns:has(> .oauth-btn:nth-child(4):last-child) .oauth-btn-icon,
.user-form-container .oauth-btns:has(> .oauth-btn:nth-child(5):last-child) .oauth-btn-icon {
    flex-shrink: 1;
    min-width: 34px;
}
.user-form-container .oauth-svg {
    display: block;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: center / contain no-repeat;
    box-sizing: border-box;
}
.user-form-container .oauth-svg-google {
    background-image: url('../images/oauth-google.svg');
}
.user-form-container .oauth-svg-apple {
    background-image: url('../images/oauth-apple.svg');
}
.user-form-container .oauth-svg-qq {
    background-image: url('../images/oauth-qq.svg');
}
.user-form-container .oauth-svg-wechat {
    background-image: url('../images/oauth-wechat.svg');
}
.user-form-container .oauth-svg-weibo {
    background-image: url('../images/oauth-weibo.svg');
}
.user-form-container .oauth-btn:hover {
    border-color: var(--color-emphasis);
    color: var(--color-emphasis);
}
.user-form-container .oauth-btn-icon:hover {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.user-form-container .site-form-label {
    flex: 0 0 120px;
    padding-right: 15px;
    text-align: right;
    box-sizing: border-box;
    font-size: 15px;
    color: #333;
}
.user-form-container .site-input-block {
    flex: 1 1 auto;
    margin-left: 0 !important;
    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: 38px;
    height: 38px;
    line-height: 38px;
    box-sizing: border-box;
}
.user-form-container .input-group-select select {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

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

.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(252, 200, 0, .45);
    outline-offset: 2px;
}
.user-form-container .type-switch-tab:hover,
.user-form-container .type-switch-tab.is-active {
    color: var(--text-secondary);
}
.user-form-container .type-switch-tab.is-active {
    font-weight: 600;
    border-bottom-color: var(--text-secondary);
}

.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: #fff;
    color: #333;
    border: 1px solid var(--line-subtle);
}
.user-form-container .reg-closed-notice .site-btn + .site-btn:hover {
    background: var(--line-faint);
    color: #333;
    opacity: 1;
}

/* ≤992px：首页 Banner + 排行榜纵向；频道页 `channel.tpl` 列表/卡片（同一 @media，勿再拆同名块） */
@media (max-width: 992px) {
    .section-box.web-sec-banner-rank {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    .section-box .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;
    }

    .cate-row {
        flex-wrap: wrap;
        gap: 16px 12px;
        margin-bottom: 24px;
    }
    .finish-row {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        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 > 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;
    }

    @media (min-width: 561px) {
        .cate-card {
            width: calc((100% - 12px) / 2);
            max-width: calc((100% - 12px) / 2);
            flex: 0 0 calc((100% - 12px) / 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;
        }
    }
}

/* 书库/漫库/检索、登录与账户顶栏、`book-home` 最近表、`main.*-detail`：窄屏单块断点（须与 `assets/js/base.js` 中 **`FRONT_NARROW_MAX`** 数值一致，当前 768px） */
@media (max-width: 768px) {
    .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;
        margin-top: 12px;
        margin-bottom: 20px;
    }
    #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 .channel li .list a {
        margin: 0 6px 6px 0;
    }
    #browse-filter .browse-filter-toggle {
        display: inline-flex;
    }
    #browse-filter .browse-filter-panel.is-collapsed .channel {
        display: none;
    }
    #browse-filter .browse-filter-chips {
        margin-bottom: 12px;
    }

    #pagination {
        margin: 16px 0 24px;
        padding: 0 2px;
        --pager-h: 40px;
        --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: nowrap;
        justify-content: center;
        align-items: center;
        gap: 6px;
        width: 100%;
    }
    #pagination .site-pager-prev,
    #pagination .site-pager-next {
        flex: 1 1 0;
        min-width: 76px;
        max-width: 30%;
        padding: 0 8px;
        font-size: 13px;
    }
    #pagination .site-pager-num,
    #pagination .site-pager-curr {
        flex: 0 0 var(--pager-h);
        width: var(--pager-h);
        min-width: var(--pager-h);
        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: 1 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(92px, 30vw);
        margin-right: 0;
        overflow: hidden;
    }
    .header .logo img,
    .header .logo svg {
        width: auto;
        max-width: 100%;
        height: 40px;
        max-height: 40px;
        object-fit: contain;
    }
    .header .channel-links {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        padding: 6px 14px calc(10px + env(safe-area-inset-bottom, 0px));
        background: var(--header-bg);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        z-index: 998;
        max-height: min(72vh, 420px);
        overflow-x: hidden;
        overflow-y: auto;
        box-sizing: border-box;
        box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
        -webkit-overflow-scrolling: touch;
    }
    .header-inner.is-mobile-nav-open .channel-links {
        display: flex;
    }
    .header .channel-links a {
        line-height: 1.3;
        padding: 8px 4px;
        white-space: normal;
        border-bottom: 1px solid rgba(255, 255, 255, .06);
    }
    .header .channel-links a:last-child {
        border-bottom: none;
    }
    .header .channel-links a.nav-writer-cta {
        align-self: flex-start;
        margin: 4px 0 2px;
        padding: 6px 12px;
        font-size: 14px;
    }
    .header .channel-links a i {
        display: none;
    }
    /* 盖住桌面 width:280px；flex 等分见 `.header .header-tools > .search` */
    .header .search:not(.search--expanded) {
        width: auto;
        max-width: none;
        min-width: 0;
        margin: 0;
    }
    .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;
        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: #f9f9f9;
        background: transparent;
    }
    .header .search.search--expanded .search-collapse-btn:focus-visible {
        outline: 2px solid var(--accent-bar);
        outline-offset: 2px;
    }
    .header .search.search--expanded > .input {
        flex: 1 1 auto;
        min-width: 0;
    }
    .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 {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip-path: inset(50%) !important;
        border: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    .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: #f9f9f9;
        font-size: 24px;
        line-height: 1;
    }
    .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:hover i,
    .header .search:not(.search--expanded) .search-btn:focus-visible i {
        color: var(--accent-bar);
    }
    .header .search.search--expanded .search-input {
        position: static !important;
        width: auto !important;
        flex: 1 1 auto !important;
        height: 38px !important;
        padding: 0 10px !important;
        margin: 0 !important;
        overflow: hidden !important;
        clip-path: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        border: none !important;
    }
    .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 {
        display: none;
    }
    .header .user-menu .item.js-read > a > i {
        margin-bottom: 0;
    }
    .header .user-menu .item.js-shelf .icon-bookshelf {
        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-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 !important;
    }

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

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

    main#main-content.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: hidden;
    }
    .account-main .account-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        min-width: 0;
        overflow-x: hidden;
    }
    .account-main .account-sidebar {
        padding: 14px 12px;
    }
    .account-main .account-sidebar .user-avatar {
        margin-bottom: 12px;
    }
    .account-main .account-sidebar .sidebar-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }
    .account-main .account-sidebar .sidebar-menu li {
        margin-bottom: 0;
        flex: 0 0 auto;
    }
    .account-main .account-sidebar .sidebar-menu li a {
        padding: 10px 12px;
        font-size: 14px;
        white-space: nowrap;
    }
    .account-main .account-sidebar .sidebar-menu li a span {
        flex: 0 0 auto;
    }
    .account-main .site-breadcrumb,
    main#main-content[class$="-detail"] .detail-header .site-breadcrumb {
        padding: 10px 0 6px;
        font-size: 13px;
        line-height: 1.45;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .account-main .site-breadcrumb {
        word-break: break-word;
    }
    .account-main .user-stats-card {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 12px var(--account-card-pad-x);
        margin-bottom: 20px;
    }
    .account-main .account-content {
        --account-card-pad-x: 8px;
        overflow-x: hidden;
    }
    .account-main .account-bind-hint {
        margin-bottom: 16px;
    }
    .account-bind-hint-banner {
        padding: 12px 14px;
    }
    .account-bind-hint-actions {
        width: 100%;
        justify-content: stretch;
    }
    .account-bind-hint-actions .site-btn {
        flex: 1 1 auto;
        min-width: 0;
        box-sizing: border-box;
    }
    .account-main .account-content > .book-media-panel {
        --guess-like-pad: 14px;
    }
    .account-main .account-content > .book-media-panel > .finish-book-list--tile-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px 12px;
        width: auto;
        max-width: none;
        margin-inline: 0;
        justify-items: stretch;
        padding: var(--guess-like-pad);
    }
    .account-main .account-content > .book-media-panel > .finish-book-list--tile-grid .finish-book-tile {
        align-items: center;
        gap: 8px;
    }
    .account-main .account-content > .book-media-panel > .finish-book-list--tile-grid .cover-wrap {
        max-width: min(100%, 84px);
        margin-left: auto;
        margin-right: auto;
    }
    .account-main .user-stats-card .user-info p span {
        display: inline-block;
        margin-right: 8px;
        margin-bottom: 4px;
    }
    .account-main .sign-in-widget {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        width: 100%;
        gap: 12px;
    }
    .account-main .sign-in-data {
        flex: 1 1 auto;
        min-width: 0;
        text-align: left;
    }
    .account-main .sign-in-action {
        flex-shrink: 0;
        text-align: center;
    }
    .account-main .sign-in-action .sign-in-btn {
        width: 64px;
        height: 64px;
        font-size: 12px;
    }
    .account-main .sign-in-action .sign-in-btn .site-icon {
        font-size: 20px;
    }
    .account-main .sign-in-action .sign-in-btn--done .site-icon,
    .account-main .sign-in-action .sign-in-btn:disabled .site-icon {
        font-size: 22px;
    }
    .account-main .sign-in-action p {
        font-size: 11px;
        max-width: 76px;
    }
    .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-content.is-member .member-right-list {
        display: grid;
        flex: none;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }
    .account-content.is-member .member-right-list .list-empty {
        grid-column: 1 / -1;
    }
    .account-content.is-member .member-right-list li {
        flex: none;
        min-height: 0;
        padding: 12px 10px;
    }
    .account-main .member-right-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .account-main .member-pill {
        align-self: flex-start;
    }
    .account-content.is-member .member-card--invite .stats-grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .account-main .member-log-card {
        overflow-x: visible !important;
    }
    .account-main .member-log-card .member-log-wrap {
        overflow-x: visible;
    }
    .account-main .member-log-card .member-log-table th:nth-child(2),
    .account-main .member-log-card .member-log-table td:nth-child(2),
    .account-main .member-log-card .member-log-table th:nth-child(3),
    .account-main .member-log-card .member-log-table td:nth-child(3),
    .account-main .member-log-card .member-log-table th:nth-child(5),
    .account-main .member-log-card .member-log-table td:nth-child(5) {
        display: none !important;
    }
    .account-main .member-log-card .member-log-table th:nth-child(1),
    .account-main .member-log-card .member-log-table td:nth-child(1) {
        width: 40%;
    }
    .account-main .member-log-card .member-log-table th:nth-child(4),
    .account-main .member-log-card .member-log-table td:nth-child(4) {
        width: 22%;
    }
    .account-main .member-log-card .member-log-table th:nth-child(6),
    .account-main .member-log-card .member-log-table td:nth-child(6) {
        width: 38%;
        line-height: 1.45;
    }
    .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%;
        white-space: nowrap;
    }
    .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-item:after {
        display: none;
    }
    .account-main .user-info-form .site-form-label {
        width: 100% !important;
        padding: 0 0 8px !important;
        text-align: left !important;
    }
    .account-main .user-info-form .site-input-block {
        max-width: 100%;
        min-width: 0;
        margin-left: 0 !important;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        display: flex;
    }
    .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: 38px;
        height: 38px;
        line-height: 38px;
        box-sizing: border-box;
    }
    .account-main .info-verify-group .code-btn {
        width: 100%;
        min-height: 38px;
        height: auto;
        line-height: 1.35;
        padding: 8px 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .site-main article.doc {
        padding: 20px max(14px, var(--site-gutter));
        margin-top: 12px;
    }
    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#main-content[class$="-detail"] .book-info {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
        margin-bottom: 20px;
    }
    main#main-content[class$="-detail"] .book-info .pic {
        width: 100%;
        max-width: 220px;
        height: auto;
        aspect-ratio: 3 / 4;
        align-self: center;
    }
    main#main-content[class$="-detail"] .book-info .data {
        height: auto;
        max-height: none;
        overflow: visible;
    }
    main#main-content[class$="-detail"] .book-info .data .title {
        font-size: clamp(20px, 5.5vw, 24px);
        margin: 0;
    }
    main#main-content[class$="-detail"] .book-info .data .meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    main#main-content[class$="-detail"] .book-info .data .meta span {
        white-space: normal;
        word-break: break-word;
    }
    main#main-content[class$="-detail"] .book-info .data .nums {
        gap: 8px 16px;
    }
    main#main-content[class$="-detail"] .book-info .data .nums span {
        white-space: normal;
        word-break: break-word;
    }
    main#main-content[class$="-detail"] .book-info .data .desc {
        max-width: none;
        text-align: left;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    main#main-content[class$="-detail"] .book-info .data .actions {
        flex-wrap: wrap;
        gap: 10px 12px;
        align-items: stretch;
    }
    main#main-content[class$="-detail"] .book-info .data .actions .qr-pop {
        display: none !important;
    }
    main#main-content[class$="-detail"] .book-info .data .actions > a.site-btn {
        flex: 1 1 100%;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        writing-mode: horizontal-tb;
        height: 46px;
        line-height: 1.25;
        padding: 0 16px;
    }
    main#main-content[class$="-detail"] .book-info .data .actions .shelf-btn,
    main#main-content[class$="-detail"] .book-info .data .actions .txt-dl,
    main#main-content[class$="-detail"] .book-info .data .actions .qr-btn {
        flex: 1 1 auto;
        min-width: calc(50% - 8px);
        justify-content: center;
        white-space: nowrap;
        writing-mode: horizontal-tb;
    }
    main#main-content[class$="-detail"] .detail-body {
        flex-direction: column;
        gap: 20px;
    }
    main#main-content[class$="-detail"] .detail-body .left {
        width: 100%;
        min-width: 0;
        order: 1;
    }
    main#main-content[class$="-detail"] .detail-body .right {
        width: 100%;
        min-width: 0;
        padding-left: 0;
        order: 2;
    }
    main#main-content[class$="-detail"] .detail-catalogue {
        padding-left: 12px;
        padding-right: 12px;
    }
    main#main-content[class$="-detail"] .detail-catalogue .catalogue-head {
        flex-wrap: wrap;
        gap: 8px 12px;
        align-items: center;
    }
    main#main-content[class$="-detail"] .detail-catalogue .catalogue-head h3 {
        flex: 1 1 auto;
        min-width: 0;
        overflow-wrap: break-word;
    }
    main#main-content.novel-detail .catalogue-list .chapter-list {
        gap: 0;
    }
    main#main-content[class$="-detail"] .catalogue-list .chapter-list li {
        flex-basis: 100%;
        max-width: 100%;
    }
    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));
    }

    @media (max-width: 480px) {
        .js-top-banner .banner.site-banner-carousel,
        .section-box.web-sec-banner-rank .banner.site-banner-carousel {
            height: 200px;
        }
        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;
        }
    }

    @media (max-width: 380px) {
        .header .logo {
            max-width: min(80px, 28vw);
        }
        .header .user-menu .item {
            min-width: 40px;
            padding: 1px;
        }
        .header .search:not(.search--expanded) .search-btn {
            width: 40px;
            height: 40px;
        }
        .user-form-container .oauth-btns:has(> .oauth-btn:nth-child(5):last-child) .oauth-btn-icon {
            width: 38px;
            min-width: 38px;
            height: 38px;
            min-height: 38px;
        }
        .user-form-container .oauth-btns:has(> .oauth-btn:nth-child(5):last-child) .oauth-svg {
            width: 34px;
            height: 34px;
        }
    }

}

/* 窄屏 JS 添加 `.inset-edges`：主区/详情头/页脚左右留白一致（顶栏由 768 内 `--header-pad-*` 控制，勿再写 `.inset-edges .header-inner`） */
.inset-edges .site-main,
.inset-edges .detail-header,
.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 {
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    font-size: 16px;
}
