/* NovelPro 账户中心补充层：补齐 default 主题账户页类，统一双端观感 */

.user-avatar-img img {
    width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
    border: 2px solid #ece7dd; background: #f5f1e8;
}

.user-nav-divider { height: 1px; background: #f0ece3; margin: 10px 4px; }

.logout-form { margin: 0; }

.logout-btn {
    width: 100%; border: 0; background: none; font: inherit; text-align: left;
    cursor: pointer; color: #8a6d3b;
}

.user-nav-item.active i { color: #fff; }

.user-content h2 {
    display: flex; align-items: center; gap: 8px;
    font-size: 1.15rem; color: #1f4e79; margin: 0 0 16px;
    padding-bottom: 12px; border-bottom: 1px solid #f0ece3; font-weight: 600;
}

.user-content h2 i { font-size: 1rem; color: #b8860b; }

/* 卡片 */
.page-card {
    background: #fff; border: 1px solid #ece7dd; border-radius: 12px;
    padding: 18px 20px; margin-bottom: 16px;
}

.page-card:last-child { margin-bottom: 0; }

.card-title {
    display: flex; align-items: center; gap: 8px;
    font-size: .98rem; color: #2b2b2b; font-weight: 600;
    margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid #f0ece3;
}

.card-title i { color: #b8860b; }

.page-action-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}

.page-info { font-size: .85rem; color: #888; }

.empty-tip, .user-content .empty-tip {
    text-align: center; color: #999; font-size: .88rem;
    padding: 40px 10px; line-height: 1.9;
}

.empty-tip i { display: block; font-size: 1.8rem; color: #ddd5c5; margin-bottom: 10px; }

.user-content .empty-state { padding: 46px 10px; }

.user-content .empty-state i { font-size: 2rem; }

/* 概述数字条 */
.stat-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px;
}

.stat-row .stat-card {
    background: #faf7f2; border: 1px solid #f0ece3; border-radius: 10px;
    padding: 16px 10px; text-align: center;
}

.stat-row .num { font-size: 1.15rem; font-weight: 700; color: #1f4e79; }

.stat-row .num i { font-size: .9rem; margin-right: 4px; color: #b8860b; }

.stat-row .label { font-size: .78rem; color: #888; margin-top: 4px; }

/* 个人资料 */
.profile-page { display: block; }

.profile-hero, .profile-hero-card {
    display: flex; align-items: center; gap: 18px;
    background: #faf7f2; border: 1px solid #f0ece3; border-radius: 12px;
    padding: 18px 20px; margin-bottom: 16px;
}

.profile-avatar-wrap { text-align: center; flex-shrink: 0; }

.profile-avatar-preview {
    width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
    border: 2px solid #fff; box-shadow: 0 0 0 1px #ece7dd; background: #fff;
}

.profile-avatar-name {
    display: block; margin-top: 6px; font-size: .8rem; color: #888; max-width: 88px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.profile-hero-info {
    display: grid; grid-template-columns: 92px 1fr; gap: 6px 12px;
    align-items: center; font-size: .88rem;
}

.profile-meta-label { color: #888; }

.profile-meta-value { color: #2b2b2b; font-weight: 600; }

.normal-tag {
    display: inline-block; background: #eef1f4; color: #64748b;
    padding: 1px 10px; border-radius: 10px; font-size: .78rem; font-weight: 500;
}

.gold-tag { color: #b8860b; font-weight: 700; }

.gold-tag i { margin-right: 3px; }

.profile-section { margin-bottom: 22px; }

.profile-section-title {
    display: flex; align-items: center; gap: 8px;
    font-size: .95rem; font-weight: 600; color: #1f4e79;
    margin: 0 0 12px; padding-left: 10px; border-left: 3px solid #b8860b;
}

.home-card {
    background: #fff; border: 1px solid #ece7dd; border-radius: 12px;
    padding: 16px 18px;
}

.profile-form-row {
    display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px;
}

.profile-form-row > label {
    width: 132px; flex-shrink: 0; margin: 8px 0 0;
    font-size: .86rem; color: #555; font-weight: 500;
}

.profile-form-row > div, .profile-form-row > .field { flex: 1; min-width: 0; }

.profile-form-row input[type=text], .profile-form-row input[type=password],
.profile-form-row input[type=email], .profile-form-row input[type=tel],
.profile-form-row select, .profile-form-row textarea,
.profile-form-row .form-control {
    width: 100%; max-width: none; box-sizing: border-box;
    padding: 9px 12px; border: 1px solid #ddd5c5; border-radius: 8px;
    font-family: inherit; font-size: .9rem; color: #2b2b2b; background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.profile-form-row input:focus, .profile-form-row select:focus,
.profile-form-row textarea:focus, .profile-form-row .form-control:focus {
    outline: none; border-color: #1f4e79; box-shadow: 0 0 0 3px rgba(31, 78, 121, .1);
}

.profile-form-row textarea { min-height: 110px; resize: vertical; }

.profile-form-row .form-text, .form-text {
    display: block; margin-top: 5px; font-size: .78rem; color: #999; line-height: 1.6;
}

.text-muted { color: #999; font-size: .85rem; }

.profile-actions {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-top: 6px;
}

.email-input-group, .avatar-upload-group {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

.email-input-group input { flex: 1; min-width: 0; }

.btn-send-code {
    flex-shrink: 0; white-space: nowrap;
    padding: 9px 16px; border: 1px solid #1f4e79; border-radius: 20px;
    background: #fff; color: #1f4e79; font-size: .84rem; cursor: pointer;
}

.btn-send-code:disabled { border-color: #ddd5c5; color: #bbb; cursor: not-allowed; }

.avatar-upload-preview img, .avatar-upload-preview {
    max-height: 80px; border-radius: 8px;
}

.avatar-hint { font-size: .78rem; color: #999; }

/* 按钮（账户区统一为主题深蓝，不再撑满） */
.user-content .btn-primary, .page-card .btn-primary, .profile-actions .btn-primary,
.auth-card .btn-primary, .user-content .btn-outline, .page-card .btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    width: auto; min-width: 0; padding: 8px 20px; margin-bottom: 0;
    border-radius: 20px; font-size: .86rem; line-height: 1.5; text-decoration: none;
}

.user-content .btn-primary, .page-card .btn-primary, .profile-actions .btn-primary {
    background: #1f4e79; color: #fff; border: 1px solid #1f4e79;
}

.user-content .btn-primary:hover, .page-card .btn-primary:hover { background: #173d60; border-color: #173d60; }

.user-content .btn-primary.btn-sm, .page-card .btn-primary.btn-sm {
    padding: 6px 14px; font-size: .8rem;
}

.user-content .btn-outline, .page-card .btn-outline {
    background: #fff; color: #1f4e79; border: 1px solid #ddd5c5;
}

.user-content .btn-outline:hover, .page-card .btn-outline:hover { border-color: #1f4e79; background: #faf7f2; }

.user-content .btn-primary.btn-disabled, .user-content .btn-disabled {
    background: #eee; color: #9a9a9a; border-color: #eee; cursor: not-allowed;
}

.action-link, .op-btn {
    display: inline-flex; align-items: center; gap: 4px;
    border: 0; background: none; padding: 0; cursor: pointer;
    color: #1f4e79; font-size: .84rem; text-decoration: none;
}

.action-link:hover, .op-btn:hover { color: #b8860b; }

.action-link.danger, .op-del, .ch-delete-open { color: #c0392b; }

.action-link.danger:hover, .op-del:hover, .ch-delete-open:hover { color: #96271b; }

/* 表格 */
.data-table {
    width: 100%; min-width: 100%; border-collapse: collapse; font-size: .86rem; margin-top: 4px;
}

.table-responsive { width: 100%; }

.user-content .data-table a, .user-content .action-link { text-decoration: none; }

.data-table th, .data-table td {
    border-bottom: 1px solid #f0ece3; padding: 10px 12px; text-align: left; vertical-align: middle;
}

.data-table thead th {
    background: #faf7f2; color: #666; font-weight: 600; font-size: .82rem;
    border-bottom: 1px solid #ece7dd; white-space: nowrap;
}

.data-table tbody tr:hover { background: #fdfbf7; }

.data-table td .thumb {
    width: 44px; height: 60px; object-fit: cover; border-radius: 4px; vertical-align: middle;
}

.text-success { color: #2e7d32; }

.text-danger { color: #c0392b; }

.chapter-table-wrap { overflow-x: auto; }

/* 认证页 */
.auth-page {
    max-width: 420px; margin: 28px auto 60px; padding: 0 16px;
}

.auth-card {
    background: #fff; border: 1px solid #ece7dd; border-radius: 12px;
    padding: 28px 26px; box-shadow: 0 6px 24px rgba(31, 78, 121, .05);
}

.auth-title {
    font-size: 1.15rem; font-weight: 600; color: #1f4e79;
    margin: 0 0 18px; text-align: center;
}

.auth-field { margin-bottom: 14px; }

.auth-field label {
    display: block; font-size: .84rem; color: #666; margin-bottom: 5px;
}

.auth-field input[type=text], .auth-field input[type=password],
.auth-field input[type=email], .auth-field select {
    width: 100%; box-sizing: border-box; padding: 10px 12px;
    border: 1px solid #ddd5c5; border-radius: 8px; font-family: inherit;
    font-size: .92rem; color: #2b2b2b; background: #fff;
}

.auth-field input:focus, .auth-field select:focus {
    outline: none; border-color: #1f4e79; box-shadow: 0 0 0 3px rgba(31, 78, 121, .1);
}

.auth-btn {
    width: 100%; padding: 11px; border: 0; border-radius: 24px;
    background: #1f4e79; color: #fff; font-size: .95rem; cursor: pointer;
    transition: background .15s;
}

.auth-btn:hover { background: #173d60; }

.auth-links {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 14px; font-size: .84rem; color: #888; flex-wrap: wrap;
}

.auth-links a { color: #1f4e79; }

.auth-divider {
    display: flex; align-items: center; gap: 10px;
    margin: 16px 0 10px; color: #bbb; font-size: .78rem;
}

.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: #f0ece3;
}

.auth-card .error, .auth-card .alert, .user-content .error, .user-content .alert {
    font-size: .85rem; border-radius: 8px;
}

.auth-card .captcha-wrap .captcha-input,
.user-content .captcha-input {
    border: 1px solid #ddd5c5; border-radius: 8px; font-family: inherit;
}

.auth-card .captcha-img, .user-content .captcha-img {
    border-color: #ddd5c5 !important; border-radius: 8px !important;
}

/* 书架卡片 */
.bookshelf-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}

.bookshelf-card {
    display: flex; gap: 12px; padding: 12px;
    border: 1px solid #f0ece3; border-radius: 10px; background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.bookshelf-card:hover { border-color: #ddd5c5; box-shadow: 0 3px 12px rgba(0, 0, 0, .04); }

.bookshelf-card-cover { position: relative; flex-shrink: 0; width: 74px; }

.bookshelf-card-cover a { display: block; }

.bookshelf-card-cover img {
    width: 74px; height: 102px; object-fit: cover; border-radius: 6px;
    background: #f5f1e8; display: block;
}

.bookshelf-card-cover .vip-badge { position: absolute; top: 4px; left: 4px; }

.bookshelf-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.bookshelf-card-body h3 {
    font-size: .9rem; margin: 0 0 3px; line-height: 1.4;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.bookshelf-card-body .author { font-size: .78rem; color: #888; margin: 0 0 4px; }

.bookshelf-card-body .last-read {
    font-size: .78rem; color: #999; margin: 0 0 auto; line-height: 1.6;
}

.bookshelf-card-body .last-read i { margin-right: 3px; }

.bookshelf-card-body .last-read a { color: #1f4e79; }

.bookshelf-card-actions {
    display: flex; align-items: center; gap: 8px; margin-top: 10px;
}

.bookshelf-card-actions .btn-primary { flex: 1; min-width: 0; padding: 6px 14px; font-size: .8rem; }

.btn-remove-sm {
    flex-shrink: 0; width: 28px; height: 28px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #ece7dd; border-radius: 50%; background: #fff;
    color: #bbb; cursor: pointer; font-size: .75rem;
}

.btn-remove-sm:hover { color: #c0392b; border-color: #f0d6d2; background: #fdf3f2; }

/* 自动购买 */
.auto-desc { font-size: .86rem; color: #888; line-height: 1.8; margin: 0 0 14px; }

.auto-off-btn { color: #c0392b; }

/* 签到 */
.sign-card {
    text-align: center; padding: 8px 0 4px;
}

.signed-banner {
    display: inline-flex; align-items: center; gap: 8px;
    background: #f2f8f3; color: #2e7d32; border: 1px solid #dbeadb;
    padding: 10px 18px; border-radius: 24px; font-size: .88rem; margin-top: 6px;
}

.sign-stats-row {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
    margin-top: 22px; padding-top: 18px; border-top: 1px solid #f0ece3;
}

.sign-stat {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: .84rem; color: #888; flex-wrap: wrap;
}

.sign-stat i { color: #b8860b; }

.sign-stat strong { color: #2b2b2b; font-size: .95rem; }

/* VIP */
.vip-banner-card {
    display: flex; align-items: center; gap: 18px;
    background: linear-gradient(135deg, #faf7f2 0%, #f3eee2 100%);
    border: 1px solid #ece7dd; border-radius: 12px;
    padding: 20px 22px; margin-bottom: 16px;
}

.vip-banner-card.active {
    background: linear-gradient(135deg, #1f2b3a 0%, #173d60 100%);
    border-color: #173d60; color: #fff;
}

.vip-banner-left {
    width: 54px; height: 54px; flex-shrink: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: #b8860b; font-size: 1.3rem;
}

.vip-banner-card.active .vip-banner-left { background: rgba(255, 255, 255, .12); color: #e8c46a; }

.vip-banner-right { min-width: 0; }

.vip-banner-title { font-size: 1.05rem; font-weight: 700; }

.vip-banner-sub { font-size: .82rem; color: #888; margin-top: 4px; }

.vip-banner-card.active .vip-banner-sub { color: rgba(255, 255, 255, .72); }

.vip-rate-bar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-size: .86rem; color: #666; background: #faf7f2;
    border: 1px solid #f0ece3; border-radius: 8px;
    padding: 10px 14px; margin-bottom: 14px;
}

.vip-rate-sep { color: #ddd5c5; }

.vip-select { max-width: 320px; }

/* 章节 VIP 开关 */
.vip-check-row {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 14px;
}

.vip-switch {
    position: relative; display: inline-flex; align-items: center;
    width: 46px; height: 26px; border-radius: 14px;
    background: #ddd5c5; cursor: pointer; transition: background .18s; flex-shrink: 0;
}

.vip-switch.on, .vip-switch.active { background: #1f4e79; }

.vip-switch-knob {
    position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
    border-radius: 50%; background: #fff; transition: transform .18s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

.vip-switch.on .vip-switch-knob, .vip-switch.active .vip-switch-knob { transform: translateX(20px); }

.vip-native {
    position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}

.price-field { display: none; align-items: center; gap: 10px; }

.price-field.show { display: flex; }

.price-field input[type=number] {
    width: 120px; padding: 8px 10px; border: 1px solid #ddd5c5;
    border-radius: 8px; font-family: inherit; font-size: .88rem;
}

.price-hint { font-size: .78rem; color: #999; }

/* 作者中心表格操作 */
.op-cell { white-space: nowrap; }

.op-group { display: inline-flex; align-items: center; gap: 10px; }

.op-divider { color: #eee; }

.op-sort { display: inline-flex; align-items: center; gap: 4px; }

.op-sort-btn {
    width: 22px; height: 22px; padding: 0; display: inline-flex;
    align-items: center; justify-content: center;
    border: 1px solid #ece7dd; border-radius: 4px; background: #fff;
    color: #888; cursor: pointer; font-size: .66rem;
}

.op-sort-btn:hover { border-color: #1f4e79; color: #1f4e79; }

.op-locked { color: #bbb; font-size: .8rem; }

.volume-head-row { display: table-row; }

.volume-head-row td {
    background: #f7f9fc; font-weight: 600; color: #2b2f38;
    border-top: 1px solid #e8ecf2; border-bottom: 1px solid #e8ecf2;
}

.volume-head-row td i { color: #8b93a1; margin-right: 6px; }

.volume-ch-count { font-size: .8rem; color: #888; font-weight: 400; margin-left: 8px; }

.data-table a { text-decoration: none; color: inherit; }

.data-table a:hover { color: #b8860b; }

/* 章节移动面板 */
.move-panel {
    background: #fff; border: 1px solid #ece7dd; border-radius: 10px;
    padding: 16px 18px; margin-top: 12px;
}

.move-panel-title { font-size: .9rem; font-weight: 600; color: #2b2b2b; margin-bottom: 10px; }

.move-panel-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.move-panel-row select {
    padding: 8px 12px; border: 1px solid #ddd5c5; border-radius: 8px;
    font-family: inherit; font-size: .86rem; min-width: 180px;
}

.move-radio { display: inline-flex; align-items: center; gap: 5px; font-size: .84rem; color: #666; }

.move-confirm-btn {
    padding: 8px 18px; border: 0; border-radius: 20px;
    background: #1f4e79; color: #fff; font-size: .84rem; cursor: pointer;
}

.move-hint { font-size: .78rem; color: #999; }

/* 充值 */
.recharge-summary-bar {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    background: #faf7f2; border: 1px solid #f0ece3; border-radius: 10px;
    padding: 14px 18px; margin-bottom: 16px;
}

.recharge-summary-item { display: flex; flex-direction: column; gap: 3px; }

.rs-label { font-size: .78rem; color: #888; }

.rs-value { font-size: 1.05rem; font-weight: 700; color: #1f4e79; }

.fab {
    position: fixed; right: 24px; bottom: 32px; z-index: 900;
    width: 52px; height: 52px; border-radius: 50%; border: 0;
    background: #1f4e79; color: #fff; font-size: 1.2rem; cursor: pointer;
    box-shadow: 0 6px 18px rgba(31, 78, 121, .3);
}

/* 页内弹层（充值收款码等，框架 ui-* 组件由 ui.css 负责，此处只处理模板自带结构） */
.modal-mask {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(20, 24, 30, .5); display: none;
    align-items: center; justify-content: center; padding: 16px;
}

.modal-mask.open, .modal-mask.show { display: flex; }

.modal-box {
    width: 100%; max-width: 460px; max-height: 86vh; overflow-y: auto;
    background: #fff; border-radius: 12px; padding: 20px 22px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
}

.modal-head {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 1rem; font-weight: 600; color: #2b2b2b;
    padding-bottom: 12px; border-bottom: 1px solid #f0ece3; margin-bottom: 12px;
}

.modal-body { font-size: .88rem; color: #555; line-height: 1.9; }

.modal-foot {
    display: flex; align-items: center; justify-content: flex-end; gap: 10px;
    margin-top: 16px; padding-top: 14px; border-top: 1px solid #f0ece3;
}

/* 手机端 */
@media (max-width: 980px) {
    .user-center-layout { grid-template-columns: 1fr; padding: 0 12px; margin-top: 12px; }

    .user-sidebar {
        padding: 12px; display: flex; flex-direction: column;
    }

    .user-sidebar-header {
        display: flex; align-items: center; gap: 10px; text-align: left;
        padding: 0 0 10px;
    }

    .user-sidebar-header h3 { font-size: .95rem; margin: 0; }

    .user-sidebar-header p { margin: 3px 0 0; }

    .user-nav {
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px;
    }

    .user-nav-item {
        justify-content: center; text-align: center; padding: 8px 4px;
        font-size: .8rem; border-radius: 8px; background: #faf7f2;
    }

    .user-nav-item span { line-height: 1.35; }

    .user-nav-divider { display: none; }

    .logout-form { grid-column: 1 / -1; }

    .logout-btn { justify-content: center; background: #fff; border: 1px solid #f0ece3; }

    .bookshelf-grid { grid-template-columns: 1fr; gap: 10px; }

    .profile-hero, .profile-hero-card { flex-direction: column; text-align: center; }

    .profile-hero-info { grid-template-columns: 1fr; text-align: center; gap: 2px; }
}

@media (max-width: 900px) {
    .user-content { padding: 14px; border-radius: 10px; }

    .user-content h2 { font-size: 1rem; margin-bottom: 12px; }

    .page-card { padding: 14px; border-radius: 10px; }

    .stat-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }

    .stat-row .num { font-size: 1rem; }

    .user-nav { grid-template-columns: repeat(2, 1fr); }

    .page-card > .data-table, .chapter-table-wrap > .data-table {
        display: block; width: 100%; overflow-x: auto;
        white-space: nowrap; -webkit-overflow-scrolling: touch;
    }

    .data-table th, .data-table td { padding: 8px 10px; }

    .profile-form-row { flex-direction: column; gap: 6px; align-items: stretch; }

    .profile-form-row > label { width: auto; margin: 0; }

    .user-content input[type=text], .user-content input[type=password],
    .user-content input[type=email], .user-content textarea,
    .user-content select { max-width: none; }

    .profile-actions, .page-action-bar { justify-content: flex-start; }

    .profile-actions .btn-primary, .profile-actions .btn-outline,
    .page-action-bar .btn-primary, .page-action-bar .btn-outline { flex: 1 1 auto; min-width: 120px; }

    .bookshelf-grid { grid-template-columns: 1fr; }

    .bookshelf-card-cover img { width: 64px; height: 88px; }

    .auth-page { margin: 16px auto 40px; padding: 0 12px; }

    .auth-card { padding: 22px 18px; }

    .vip-banner-card { padding: 16px; gap: 12px; }

    .vip-banner-left { width: 44px; height: 44px; font-size: 1.05rem; }

    .vip-banner-title { font-size: .98rem; }

    .vip-select { max-width: none; }

    .sign-stats-row { grid-template-columns: 1fr; gap: 8px; }

    .email-input-group, .avatar-upload-group { flex-direction: column; align-items: stretch; }

    .btn-send-code { width: 100%; }

    .move-panel-row { flex-direction: column; align-items: stretch; }

    .move-panel-row select { width: 100%; min-width: 0; }

    .move-confirm-btn { width: 100%; padding: 10px; }

    .modal-box { max-width: none; padding: 16px; }

    .modal-foot { flex-direction: column-reverse; }

    .modal-foot > * { width: 100%; min-width: 0; }

    .recharge-summary-bar { gap: 12px; padding: 12px 14px; }

    .fab { right: 14px; bottom: 20px; width: 46px; height: 46px; }
}

@media (max-width: 380px) {
    .user-nav { grid-template-columns: 1fr; }

    .user-content { padding: 12px; }

    .page-card { padding: 12px; }
}

/* 布局防撑破：grid 列不由内容 min-content 决定 */
.user-center-layout { grid-template-columns: 220px minmax(0, 1fr); }
.stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.user-content .page-action-bar .btn-primary,
.user-content .page-action-bar .btn-outline,
.user-content .page-action-bar .action-link {
    width: auto; flex: 0 0 auto;
}

@media (max-width: 980px) {
    .user-center-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
    .data-table, .chapter-table-wrap .data-table { white-space: nowrap; }
    .page-card > .data-table, .table-responsive > .data-table { min-width: 0; }
    .page-action-bar { justify-content: flex-start; }
    .user-content .page-action-bar .btn-primary,
    .user-content .page-action-bar .btn-outline { width: auto; }
}
.user-center-layout { align-items: start; }

.data-table td { white-space: normal; overflow-wrap: anywhere; }

.bookshelf-card-actions { gap: 10px; }

.bookshelf-card-actions .btn-primary { width: auto; flex: 0 0 auto; min-width: 96px; }

@media (max-width: 900px) {
    .data-table td { white-space: nowrap; }
}

@media (max-width: 900px) {
    .table-responsive, .chapter-table-wrap {
        box-shadow: inset -14px 0 14px -16px rgba(0, 0, 0, .35);
    }

    .data-table td.action-cell {
        position: sticky; right: 0; background: #fff; z-index: 3;
        box-shadow: -8px 0 10px -9px rgba(0, 0, 0, .22);
    }
}

.profile-hero-info { gap: 8px 12px; }

@media (max-width: 900px) {
    .data-table td.action-cell { min-width: 104px; }

    .data-table td.action-cell .action-wrap { flex-wrap: nowrap; gap: 10px; }

    .data-table td.action-cell .action-link { font-size: 0; }

    .data-table td.action-cell .action-link i { font-size: .92rem; }
}
@media (max-width: 900px) {
    .np-works-table th:nth-child(1),
    .np-works-table td:nth-child(1),
    .np-works-table th:nth-child(6),
    .np-works-table td:nth-child(6) { display: none; }

    .np-works-table .cover-thumb { width: 42px; height: 58px; }

    .np-works-table td { padding: 8px 6px; }

    .np-works-table td.action-cell { position: static; min-width: 0; box-shadow: none; }
}
@media (max-width: 900px) {
    .np-works-table { table-layout: fixed; width: 100%; }

    .np-works-table th:nth-child(2),
    .np-works-table td:nth-child(2) { width: 46px; }

    .np-works-table th:nth-child(4),
    .np-works-table td:nth-child(4) { width: 46px; }

    .np-works-table th:nth-child(5),
    .np-works-table td:nth-child(5) { width: 52px; }

    .np-works-table th:nth-child(7),
    .np-works-table td:nth-child(7) { width: 76px; }

    .np-works-table td.action-cell .action-wrap { justify-content: flex-end; }

    .np-works-table td:nth-child(3) a { display: block; overflow-wrap: anywhere; }
}
@media (max-width: 900px) {
    .np-works-table th:nth-child(2),
    .np-works-table td:nth-child(2) { width: 40px; }

    .np-works-table th:nth-child(4),
    .np-works-table td:nth-child(4) { width: 42px; }

    .np-works-table th:nth-child(5),
    .np-works-table td:nth-child(5) { width: 54px; }

    .np-works-table th:nth-child(7),
    .np-works-table td:nth-child(7) { width: 80px; }

    .np-works-table th { font-size: .72rem; white-space: nowrap; padding: 8px 4px; }

    .np-works-table td { padding: 8px 4px; }

    .np-works-table .vip-tag, .np-works-table .normal-tag { font-size: .68rem; padding: 2px 4px; }

    .np-works-table td.action-cell .action-wrap { justify-content: flex-end; gap: 6px; }

    .np-works-table td.action-cell .action-link i { font-size: .86rem; }
}
@media (max-width: 900px) {
    .np-works-table th:nth-child(5) { font-size: .68rem; }
}
@media (max-width: 900px) {
    .np-chapter-table { table-layout: fixed; width: 100%; }

    .np-chapter-table th:nth-child(2),
    .np-chapter-table td:nth-child(2),
    .np-chapter-table th:nth-child(4),
    .np-chapter-table td:nth-child(4) { display: none; }

    .np-chapter-table th:nth-child(3),
    .np-chapter-table td:nth-child(3) { width: 40px; text-align: center; }

    .np-chapter-table th:nth-child(5),
    .np-chapter-table td:nth-child(5) { width: 138px; }

    .np-chapter-table td.action-cell { position: static; min-width: 0; box-shadow: none; }

    .np-chapter-table th { font-size: .72rem; padding: 8px 4px; }

    .np-chapter-table td { padding: 8px 4px; font-size: .8rem; overflow-wrap: anywhere; }

    .np-chapter-table .op-btn { width: 30px; height: 30px; }

    .np-chapter-table .op-group { gap: 8px; justify-content: flex-end; }

    .np-chapter-table .op-divider { display: none; }
}
@media (max-width: 900px) {
    .np-chapter-table th, .np-chapter-table td { white-space: normal; }

    .np-chapter-table .op-group { flex-wrap: nowrap; }
}
.np-chapter-op-head { width: 200px; }

@media (max-width: 900px) {
    .np-chapter-op-head { width: 120px; }

    .np-chapter-table th:nth-child(5),
    .np-chapter-table td:nth-child(5) { width: 120px; }

    .np-chapter-table .op-btn { width: 26px; height: 26px; }

    .np-chapter-table .op-group { gap: 4px; }
}
.data-table td.action-cell { display: table-cell; vertical-align: middle; }

@media (min-width: 641px) {
    .np-works-table { table-layout: fixed; }

    .np-works-table th:nth-child(1),
    .np-works-table td:nth-child(1) { width: 64px; }

    .np-works-table th:nth-child(2),
    .np-works-table td:nth-child(2) { width: 76px; }

    .np-works-table th:nth-child(4),
    .np-works-table td:nth-child(4) { width: 84px; }

    .np-works-table th:nth-child(5),
    .np-works-table td:nth-child(5) { width: 104px; }

    .np-works-table th:nth-child(6),
    .np-works-table td:nth-child(6) { width: 126px; }

    .np-works-table th:nth-child(7),
    .np-works-table td:nth-child(7) { width: 268px; }
}
@media (max-width: 900px) {
    .np-gold-table, .np-history-table, .np-chapters-table { table-layout: fixed; width: 100%; }

    .np-gold-table th, .np-gold-table td,
    .np-history-table th, .np-history-table td,
    .np-chapters-table th, .np-chapters-table td { white-space: normal; padding: 8px 5px; font-size: .78rem; overflow-wrap: anywhere; }

    .np-gold-table th:nth-child(5), .np-gold-table td:nth-child(5) { display: none; }

    .np-gold-table th:nth-child(1), .np-gold-table td:nth-child(1) { width: 118px; }

    .np-gold-table th:nth-child(2), .np-gold-table td:nth-child(2) { width: 84px; }

    .np-gold-table th:nth-child(3), .np-gold-table td:nth-child(3) { width: 54px; }

    .np-history-table th:nth-child(1), .np-history-table td:nth-child(1) { width: 38%; }

    .np-history-table th:nth-child(2), .np-history-table td:nth-child(2) { width: 32%; }

    .np-history-table th:nth-child(3), .np-history-table td:nth-child(3) { width: 30%; }

    .np-chapters-table th:nth-child(3), .np-chapters-table td:nth-child(3),
    .np-chapters-table th:nth-child(4), .np-chapters-table td:nth-child(4) { display: none; }

    .np-chapters-table th:nth-child(1), .np-chapters-table td:nth-child(1) { width: 42%; }

    .np-chapters-table th:nth-child(5), .np-chapters-table td:nth-child(5) { width: 46px; text-align: right; }

    .np-chapters-table td:nth-child(5) .action-link { font-size: 0; }

    .np-chapters-table td:nth-child(5) .action-link i { font-size: .9rem; }
}

@media (max-width: 900px) {
    .np-gold-table td:nth-child(1) { word-break: keep-all; }

    .np-history-table td:nth-child(3), .np-chapters-table td:nth-child(3) { word-break: keep-all; }
}
@media (max-width: 900px) {
    .np-income-table, .np-withdraw-table { table-layout: fixed; width: 100%; }

    .np-income-table th, .np-income-table td,
    .np-withdraw-table th, .np-withdraw-table td { white-space: normal; padding: 8px 5px; font-size: .78rem; overflow-wrap: anywhere; }

    .np-income-table th:nth-child(3), .np-income-table td:nth-child(3) { display: none; }

    .np-income-table th:nth-child(1), .np-income-table td:nth-child(1) { width: 80px; word-break: keep-all; }

    .np-income-table th:nth-child(4), .np-income-table td:nth-child(4) { width: 50px; }

    .np-income-table th:nth-child(5), .np-income-table td:nth-child(5) { width: 60px; }

    .np-income-table th:nth-child(6), .np-income-table td:nth-child(6) { width: 48px; }

    .np-withdraw-table th:nth-child(3), .np-withdraw-table td:nth-child(3) { display: none; }

    .np-withdraw-table th:nth-child(1), .np-withdraw-table td:nth-child(1) { width: 80px; word-break: keep-all; }

    .np-withdraw-table th:nth-child(2), .np-withdraw-table td:nth-child(2) { width: 54px; }

    .np-withdraw-table th:nth-child(4), .np-withdraw-table td:nth-child(4) { width: 58px; }

    .np-withdraw-table th:nth-child(6), .np-withdraw-table td:nth-child(6) { width: 46px; }
}

@media (min-width: 641px) and (max-width: 900px) {
    .np-works-table th, .np-chapter-table th, .np-gold-table th, .np-history-table th,
    .np-chapters-table th, .np-income-table th, .np-withdraw-table th { white-space: normal; line-height: 1.25; }

    .np-works-table th:nth-child(2), .np-works-table td:nth-child(2) { width: 56px; }

    .np-works-table th:nth-child(4), .np-works-table td:nth-child(4) { width: 52px; }

    .np-works-table th:nth-child(5), .np-works-table td:nth-child(5) { width: 62px; }

    .np-works-table th:nth-child(7), .np-works-table td:nth-child(7) { width: 128px; }

    .np-chapter-table th:nth-child(3), .np-chapter-table td:nth-child(3) { width: 44px; }

    .np-chapter-table th:nth-child(5), .np-chapter-table td:nth-child(5) { width: 140px; }

    .np-gold-table th:nth-child(1), .np-gold-table td:nth-child(1) { width: 128px; }

    .np-gold-table th:nth-child(2), .np-gold-table td:nth-child(2) { width: 100px; }

    .np-gold-table th:nth-child(3), .np-gold-table td:nth-child(3) { width: 62px; }

    .np-income-table th:nth-child(1), .np-income-table td:nth-child(1) { width: 104px; }

    .np-income-table th:nth-child(4), .np-income-table td:nth-child(4) { width: 58px; }

    .np-income-table th:nth-child(5), .np-income-table td:nth-child(5) { width: 80px; }

    .np-income-table th:nth-child(6), .np-income-table td:nth-child(6) { width: 54px; }

    .np-withdraw-table th:nth-child(1), .np-withdraw-table td:nth-child(1) { width: 104px; }

    .np-withdraw-table th:nth-child(2), .np-withdraw-table td:nth-child(2) { width: 68px; }

    .np-withdraw-table th:nth-child(4), .np-withdraw-table td:nth-child(4) { width: 72px; }

    .np-withdraw-table th:nth-child(6), .np-withdraw-table td:nth-child(6) { width: 54px; }

    .np-chapters-table th:nth-child(5), .np-chapters-table td:nth-child(5) { width: 60px; }
}

@media (min-width: 641px) and (max-width: 900px) {
    .np-income-table th:nth-child(1), .np-income-table td:nth-child(1) { width: 19%; }

    .np-income-table th:nth-child(4), .np-income-table td:nth-child(4) { width: 12%; }

    .np-income-table th:nth-child(5), .np-income-table td:nth-child(5) { width: 13%; }

    .np-income-table th:nth-child(6), .np-income-table td:nth-child(6) { width: 12%; }

    .np-withdraw-table th:nth-child(1), .np-withdraw-table td:nth-child(1) { width: 19%; }

    .np-withdraw-table th:nth-child(2), .np-withdraw-table td:nth-child(2) { width: 12%; }

    .np-withdraw-table th:nth-child(4), .np-withdraw-table td:nth-child(4) { width: 13%; }

    .np-withdraw-table th:nth-child(6), .np-withdraw-table td:nth-child(6) { width: 13%; }

    .np-gold-table th:nth-child(1), .np-gold-table td:nth-child(1) { width: 22%; }

    .np-gold-table th:nth-child(2), .np-gold-table td:nth-child(2) { width: 18%; }

    .np-gold-table th:nth-child(3), .np-gold-table td:nth-child(3) { width: 13%; }

    .np-works-table th:nth-child(2), .np-works-table td:nth-child(2) { width: 9%; }

    .np-works-table th:nth-child(4), .np-works-table td:nth-child(4) { width: 9%; }

    .np-works-table th:nth-child(5), .np-works-table td:nth-child(5) { width: 10%; }

    .np-works-table th:nth-child(7), .np-works-table td:nth-child(7) { width: 19%; }

    .np-chapter-table th:nth-child(3), .np-chapter-table td:nth-child(3) { width: 7%; }

    .np-chapter-table th:nth-child(5), .np-chapter-table td:nth-child(5) { width: 22%; }

    .np-chapters-table th:nth-child(1), .np-chapters-table td:nth-child(1) { width: 40%; }

    .np-chapters-table th:nth-child(5), .np-chapters-table td:nth-child(5) { width: 9%; }

    .np-history-table th:nth-child(1), .np-history-table td:nth-child(1) { width: 32%; }

    .np-history-table th:nth-child(2), .np-history-table td:nth-child(2) { width: 32%; }

    .np-income-table th, .np-withdraw-table th, .np-gold-table th,
    .np-works-table th, .np-chapter-table th, .np-history-table th { font-size: .76rem; }
}

@media (min-width: 641px) and (max-width: 900px) {
    .np-income-table th, .np-withdraw-table th, .np-gold-table th,
    .np-works-table th, .np-chapter-table th, .np-history-table th,
    .np-chapters-table th { white-space: normal; overflow-wrap: anywhere; font-size: .72rem; }

    .np-income-table th:nth-child(1), .np-income-table td:nth-child(1) { width: 21%; }

    .np-income-table th:nth-child(4), .np-income-table td:nth-child(4) { width: 12%; }

    .np-income-table th:nth-child(5), .np-income-table td:nth-child(5) { width: 13%; }

    .np-income-table th:nth-child(6), .np-income-table td:nth-child(6) { width: 12%; }

    .np-withdraw-table th:nth-child(1), .np-withdraw-table td:nth-child(1) { width: 19%; }

    .np-withdraw-table th:nth-child(2), .np-withdraw-table td:nth-child(2) { width: 11%; }

    .np-withdraw-table th:nth-child(4), .np-withdraw-table td:nth-child(4) { width: 15%; }

    .np-withdraw-table th:nth-child(6), .np-withdraw-table td:nth-child(6) { width: 12%; }
}

@media (max-width: 900px) {
    .np-income-table th, .np-withdraw-table th, .np-gold-table th,
    .np-works-table th, .np-chapter-table th, .np-history-table th,
    .np-chapters-table th { word-break: break-all; white-space: normal; line-height: 1.2; }
}

@media (max-width: 900px) {
    .np-income-table th, .np-withdraw-table th, .np-gold-table th, .np-works-table th,
    .np-chapter-table th, .np-history-table th, .np-chapters-table th {
        white-space: normal !important;
        word-break: break-all !important;
        overflow-wrap: anywhere !important;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .np-income-table th:nth-child(1), .np-income-table td:nth-child(1) { width: 23%; }

    .np-withdraw-table th:nth-child(1), .np-withdraw-table td:nth-child(1) { width: 22%; }

    .np-gold-table th:nth-child(1), .np-gold-table td:nth-child(1) { width: 24%; }
}

@media (max-width: 640px) {
    .np-income-table th, .np-withdraw-table th, .np-gold-table th, .np-works-table th,
    .np-chapter-table th, .np-history-table th, .np-chapters-table th {
        word-break: normal !important;
        overflow-wrap: normal !important;
    }
}

@media (max-width: 640px) {
    .np-income-table th:nth-child(2), .np-income-table td:nth-child(2) { display: none; }

    .np-income-table th:nth-child(1), .np-income-table td:nth-child(1) { width: 96px; }

    .np-income-table th:nth-child(4), .np-income-table td:nth-child(4) { width: 64px; }

    .np-income-table th:nth-child(5), .np-income-table td:nth-child(5) { width: 72px; }

    .np-income-table th:nth-child(6), .np-income-table td:nth-child(6) { width: 54px; }

    .np-gold-table th:nth-child(1), .np-gold-table td:nth-child(1) { width: 112px; }

    .np-gold-table th:nth-child(2), .np-gold-table td:nth-child(2) { width: 92px; }

    .np-gold-table th:nth-child(3), .np-gold-table td:nth-child(3) { width: 54px; }
}

@media (max-width: 640px) {
    .np-gold-table th:nth-child(1), .np-gold-table td:nth-child(1) { width: 106px; }

    .np-gold-table th:nth-child(2), .np-gold-table td:nth-child(2) { width: 86px; }

    .np-gold-table th:nth-child(3), .np-gold-table td:nth-child(3) { width: 50px; }
}

@media (max-width: 640px) {
    .np-income-table th:nth-child(4), .np-income-table td:nth-child(4) { width: 60px; }

    .np-income-table th:nth-child(5), .np-income-table td:nth-child(5) { width: 80px; }

    .np-income-table th:nth-child(6), .np-income-table td:nth-child(6) { width: 50px; }

    .np-income-table th, .np-withdraw-table th, .np-gold-table th, .np-history-table th, .np-chapters-table th, .np-works-table th, .np-chapter-table th {
        font-size: 12.5px;
        padding: 6px 3px;
        line-break: strict;
        letter-spacing: -0.2px;
    }
}
@media (max-width: 640px) {
    .np-withdraw-table th:nth-child(5), .np-withdraw-table td:nth-child(5) { display: none; }

    .np-withdraw-table th:nth-child(1), .np-withdraw-table td:nth-child(1) { width: 100px; }

    .np-withdraw-table th:nth-child(2), .np-withdraw-table td:nth-child(2) { width: 70px; }

    .np-withdraw-table th:nth-child(4), .np-withdraw-table td:nth-child(4) { width: 80px; }

    .np-withdraw-table th:nth-child(6), .np-withdraw-table td:nth-child(6) { width: 50px; }
}

@media (max-width: 640px) {
    .np-withdraw .stat-card .label, .np-income .stat-card .label { font-size: 11.5px; line-height: 1.35; }
}
@media (max-width: 640px) {
    .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

    .stat-row .stat-card { padding: 12px 6px; }

    .stat-row .label { font-size: 11.5px; line-height: 1.35; }
}