/* ==========================================================================
   小说插件 · 创作中心样式
   ========================================================================== */

.nv-author-page { --nv-author-primary: var(--mn-primary, #f97316); }

/* 作者头部 */
.nv-author-header {
    display: flex; gap: 18px; align-items: center;
    padding: 18px 20px; margin-bottom: 20px;
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: 12px;
}
.nv-author-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
    background: linear-gradient(135deg, var(--mn-primary, #f97316), color-mix(in srgb, var(--mn-primary, #f97316) 60%, #9b7cff));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 28px;
}
.nv-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nv-author-headmain { flex: 1; min-width: 0; }
.nv-author-penname {
    font-size: 20px; font-weight: 700; color: var(--mn-text, #333);
    margin: 0 0 4px; line-height: 1.3;
}
.nv-author-restricted {
    display: inline-flex; padding: 2px 10px; margin-left: 6px;
    font-size: 11.5px; border-radius: 999px;
    background: color-mix(in srgb, var(--mn-warning, #f59e0b) 15%, transparent);
    color: var(--mn-warning, #f59e0b);
}
.nv-author-bio { font-size: 13px; color: var(--mn-text-muted, #888); margin: 0; line-height: 1.6; }
.nv-author-headactions { display: flex; gap: 8px; flex-shrink: 0; }

/* 概览卡片 */
.nv-author-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px; margin-bottom: 20px;
}
.nv-author-card {
    padding: 16px 14px; text-align: center;
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: 12px;
    transition: all .15s;
}
.nv-author-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.06);
    border-color: color-mix(in srgb, var(--mn-primary, #f97316) 30%, var(--mn-border));
}
.nv-author-card-num {
    font-size: 22px; font-weight: 700;
    color: var(--mn-primary, #f97316);
    line-height: 1.2; font-variant-numeric: tabular-nums;
}
.nv-author-card-lbl { font-size: 12px; color: var(--mn-text-muted, #888); margin-top: 4px; }

/* 模块 */
.nv-author-module { margin-bottom: 24px; }
.nv-author-topbar {
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap; margin-bottom: 16px;
}

/* 快捷操作 */
.nv-author-quick { display: flex; flex-wrap: wrap; gap: 8px; }

/* 消息提醒 */
.nv-author-alerts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.nv-author-alert {
    padding: 12px 16px; border-radius: 10px;
    background: color-mix(in srgb, var(--mn-primary, #f97316) 6%, var(--mn-bg-card, #fff));
    border-left: 3px solid var(--mn-primary, #f97316);
    font-size: 13.5px; color: var(--mn-text, #333);
    line-height: 1.6;
}
.nv-author-alert-danger {
    background: color-mix(in srgb, var(--mn-error, #ef4444) 8%, var(--mn-bg-card, #fff));
    border-left-color: var(--mn-error, #ef4444);
}
.nv-author-alert a { color: var(--mn-primary, #f97316); }

/* 表单 */
.nv-author-form {
    padding: 22px 24px;
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: 12px;
}
.nv-author-form-row {
    display: flex; gap: 14px; align-items: flex-start;
    margin: 14px 0; flex-wrap: wrap;
}
.nv-author-form-row label {
    min-width: 100px; padding-top: 10px;
    color: var(--mn-text-secondary, #555); font-size: 13px;
}
.nv-author-form-row input[type=text],
.nv-author-form-row input[type=number],
.nv-author-form-row textarea,
.nv-author-form-row select {
    flex: 1 1 260px; min-width: 0;
    padding: 9px 12px;
    border: 1.5px solid var(--mn-border, #e5e7eb);
    border-radius: 10px;
    background: var(--mn-bg-card, #fff);
    color: var(--mn-text, #333);
    font-size: 13.5px; font-family: inherit;
    box-sizing: border-box; outline: none;
    transition: border-color .15s;
}
.nv-author-form-row input:focus,
.nv-author-form-row textarea:focus,
.nv-author-form-row select:focus {
    border-color: var(--mn-primary, #f97316);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mn-primary, #f97316) 12%, transparent);
}
.nv-author-form-row textarea { resize: vertical; min-height: 80px; }
.nv-author-form-actions {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-top: 20px; padding-top: 16px;
    border-top: 1px dashed var(--mn-border-light, #eef0f3);
}
.nv-author-hint { display: block; font-size: 12px; color: var(--mn-text-muted, #888); margin-top: 4px; }

/* 封面/头像上传 */
.nv-author-cover-upload { flex: 1 1 260px; }
.nv-author-cover-picker {
    display: inline-flex; gap: 12px; align-items: center;
    cursor: pointer; text-decoration: none; color: inherit;
}
.nv-author-cover-box {
    width: 80px; height: 108px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1.5px dashed var(--mn-border, #e5e7eb);
    border-radius: 10px;
    background: var(--mn-bg-soft, #f8fafc);
    color: var(--mn-text-muted, #888);
    font-size: 24px; overflow: hidden;
    transition: border-color .15s, color .15s;
}
.nv-author-cover-picker:hover .nv-author-cover-box {
    border-color: var(--mn-primary, #f97316);
    color: var(--mn-primary, #f97316);
}
.nv-author-cover-box img { width: 100%; height: 100%; object-fit: cover; }

/* 承诺勾选 */
.nv-author-agree {
    display: inline-flex; gap: 8px; align-items: center;
    font-size: 13px; color: var(--mn-text-secondary, #555);
    cursor: pointer; padding-top: 8px;
}
.nv-author-agree input { width: 16px; height: 16px; accent-color: var(--mn-primary, #f97316); }

/* 筛选 */
.nv-author-filter {
    display: flex; gap: 10px; align-items: center;
    flex-wrap: wrap; margin-bottom: 16px;
    padding: 12px 14px;
    background: var(--mn-bg-soft, #f8fafc);
    border-radius: 10px;
}
.nv-author-filter select,
.nv-author-filter input[type=text] {
    padding: 8px 12px;
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: 8px;
    background: var(--mn-bg-card, #fff);
    color: var(--mn-text, #333);
    font-size: 13px; font-family: inherit; outline: none;
}
.nv-author-filter input[type=text] { flex: 1 1 200px; min-width: 0; }

/* 表格 */
.nv-author-table-wrap { width: 100%; overflow-x: auto; }
.nv-author-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: 12px; overflow: hidden;
    font-size: 13px;
}
.nv-author-table thead th {
    background: var(--mn-bg-soft, #f8fafc);
    color: var(--mn-text-secondary, #555);
    font-weight: 600; padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--mn-border, #e5e7eb);
    white-space: nowrap;
}
.nv-author-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--mn-border-light, #eef0f3);
    vertical-align: middle;
    color: var(--mn-text, #333);
}
.nv-author-table tbody tr:last-child td { border-bottom: 0; }
.nv-author-table tbody tr:hover td { background: color-mix(in srgb, var(--mn-primary, #f97316) 4%, transparent); }

.nv-author-minicover {
    width: 40px; height: 54px; border-radius: 4px;
    background: var(--mn-bg-soft, #f8fafc);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; color: var(--mn-primary, #f97316); font-size: 16px;
}
.nv-author-minicover img { width: 100%; height: 100%; object-fit: cover; }

.nv-author-worktitle {
    color: var(--mn-text, #333); text-decoration: none; font-weight: 500;
}
.nv-author-worktitle:hover { color: var(--mn-primary, #f97316); }

.nv-author-time { font-size: 12px; color: var(--mn-text-muted, #888); }

/* 徽章 */
.nv-author-badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 999px;
    font-size: 11.5px; font-weight: 500; line-height: 1.6;
    background: color-mix(in srgb, var(--mn-text-muted, #888) 15%, transparent);
    color: var(--mn-text-muted, #888);
    white-space: nowrap;
}
.nv-author-badge-private { background: color-mix(in srgb, var(--mn-warning, #f59e0b) 15%, transparent); color: var(--mn-warning, #f59e0b); }
.nv-author-badge-public  { background: color-mix(in srgb, var(--mn-primary, #f97316) 15%, transparent); color: var(--mn-primary, #f97316); }
.nv-author-badge-draft   { background: color-mix(in srgb, var(--mn-text-muted, #888) 15%, transparent); color: var(--mn-text-muted, #888); }
.nv-author-badge-pending { background: color-mix(in srgb, #3b82f6 15%, transparent); color: #3b82f6; }
.nv-author-badge-pass    { background: color-mix(in srgb, var(--mn-success, #16a34a) 15%, transparent); color: var(--mn-success, #16a34a); }
.nv-author-badge-reject  { background: color-mix(in srgb, var(--mn-error, #ef4444) 15%, transparent); color: var(--mn-error, #ef4444); }

/* 章节列表 */
.nv-author-batchbar {
    display: flex; gap: 10px; align-items: center;
    padding: 10px 14px; margin-bottom: 16px;
    background: var(--mn-bg-soft, #f8fafc);
    border-radius: 10px;
    flex-wrap: wrap;
    font-size: 13px;
}
.nv-author-batchcount { color: var(--mn-text-muted, #888); font-variant-numeric: tabular-nums; }
.nv-author-select {
    padding: 6px 10px; border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: 8px; background: var(--mn-bg-card, #fff);
    color: var(--mn-text, #333); font-size: 12.5px;
}

.nv-author-volumes { margin-bottom: 20px; }
.nv-author-vol-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nv-author-vol-item {
    display: inline-flex; gap: 6px; align-items: center;
    padding: 8px 12px; background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb); border-radius: 10px;
    font-size: 13px;
}
.nv-author-vol-name { font-weight: 500; color: var(--mn-text, #333); }

.nv-author-chapter-group { margin-bottom: 20px; }
.nv-author-chapter-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.nv-author-chapter-item {
    display: flex; gap: 10px; align-items: center;
    padding: 10px 14px;
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: 10px;
    font-size: 13px;
    flex-wrap: wrap;
}
.nv-author-checkbox { display: inline-flex; align-items: center; }
.nv-author-checkbox input { accent-color: var(--mn-primary, #f97316); }
.nv-author-order { min-width: 32px; color: var(--mn-text-muted, #888); font-variant-numeric: tabular-nums; }
.nv-author-chapter-title { flex: 1; min-width: 0; color: var(--mn-text, #333); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-author-chapter-words { color: var(--mn-text-muted, #888); font-size: 12px; }
.nv-author-reject-reason {
    font-size: 11.5px; color: var(--mn-error, #ef4444);
    padding: 2px 8px; border-radius: 4px;
    background: color-mix(in srgb, var(--mn-error, #ef4444) 10%, transparent);
    max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nv-author-chapter-actions { display: flex; gap: 6px; margin-left: auto; }

/* 导入面板 */
.nv-author-import {
    padding: 16px 18px;
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: 12px;
}

/* 编辑器 */
.nv-editor-page { padding-top: 0; }
.nv-editor-topbar {
    display: flex; gap: 10px; align-items: center;
    padding: 12px 0; margin-bottom: 12px;
    border-bottom: 1px solid var(--mn-border-light, #eef0f3);
    flex-wrap: wrap;
}
.nv-editor-title { flex: 1; min-width: 0; font-size: 14px; color: var(--mn-text-muted, #888); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-editor-topright { display: flex; gap: 8px; flex-shrink: 0; }

.nv-editor-layout { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.nv-editor-side {
    padding: 16px;
    background: var(--mn-bg-soft, #f8fafc);
    border-radius: 12px;
    position: sticky; top: 20px;
}
.nv-editor-side-group { margin-bottom: 14px; }
.nv-editor-side-group label { display: block; margin-bottom: 6px; font-size: 12.5px; color: var(--mn-text-secondary, #555); }
.nv-editor-side-group select,
.nv-editor-side-group input,
.nv-editor-side-group textarea {
    width: 100%; box-sizing: border-box;
    padding: 8px 10px; border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: 8px; background: var(--mn-bg-card, #fff);
    color: var(--mn-text, #333); font-size: 13px; font-family: inherit;
    outline: none;
}
.nv-editor-side-group textarea { resize: vertical; min-height: 100px; }

.nv-editor-main {
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: 12px;
    padding: 20px;
    min-height: 70vh;
    display: flex; flex-direction: column;
}
.nv-editor-titlebar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.nv-editor-titleinput {
    flex: 1; min-width: 0;
    padding: 10px 14px;
    border: 1.5px solid var(--mn-border, #e5e7eb);
    border-radius: 10px;
    background: var(--mn-bg-card, #fff);
    color: var(--mn-text, #333);
    font-size: 16px; font-weight: 600;
    font-family: inherit; outline: none;
}
.nv-editor-titleinput:focus { border-color: var(--mn-primary, #f97316); }

.nv-editor-content {
    width: 100%; flex: 1;
    min-height: 60vh;
    box-sizing: border-box;
    padding: 16px 18px;
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: 10px;
    background: var(--mn-bg-card, #fff);
    color: var(--mn-text, #333);
    font-size: 15px; line-height: 1.9;
    font-family: inherit; resize: vertical; outline: none;
}
.nv-editor-content:focus { border-color: var(--mn-primary, #f97316); }

.nv-editor-statusbar {
    display: flex; gap: 16px; align-items: center;
    margin-top: 10px; padding-top: 8px;
    border-top: 1px dashed var(--mn-border-light, #eef0f3);
    font-size: 12.5px; color: var(--mn-text-muted, #888);
}
.nv-editor-save-status { margin-left: auto; margin-right: auto; }
.nv-editor-save-status.is-saved { color: var(--mn-success, #16a34a); }
.nv-editor-save-status.is-saving { color: #3b82f6; }
.nv-editor-save-status.is-dirty { color: var(--mn-warning, #f59e0b); }

/* 编辑器暗色主题 */
.nv-editor-page.editor-dark .nv-editor-main,
.nv-editor-page.editor-dark .nv-editor-side,
.nv-editor-page.editor-dark .nv-editor-content,
.nv-editor-page.editor-dark .nv-editor-titleinput,
.nv-editor-page.editor-dark .nv-editor-side-group select,
.nv-editor-page.editor-dark .nv-editor-side-group input,
.nv-editor-page.editor-dark .nv-editor-side-group textarea {
    background: #1a1a1a;
    color: #c8c8c8;
    border-color: #333;
}
.nv-editor-page.editor-dark .nv-editor-title,
.nv-editor-page.editor-dark .nv-editor-statusbar,
.nv-editor-page.editor-dark .nv-editor-side-group label { color: #888; }

/* 数据图表 */
.nv-author-chart {
    display: flex; gap: 2px; align-items: flex-end;
    height: 120px; padding: 10px 0;
    border-bottom: 1px solid var(--mn-border-light, #eef0f3);
}
.nv-author-chart-bar { flex: 1; min-width: 0; position: relative; height: 100%; background: color-mix(in srgb, var(--mn-primary, #f97316) 8%, transparent); border-radius: 2px 2px 0 0; overflow: hidden; }
.nv-author-chart-fill {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, var(--mn-primary, #f97316), color-mix(in srgb, var(--mn-primary, #f97316) 60%, #9b7cff));
    height: var(--h);
    border-radius: 2px 2px 0 0;
    transition: height .3s;
}

/* 评论管理 */
.nv-author-comment-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.nv-author-comment {
    padding: 14px 16px;
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: 10px;
}
.nv-author-comment-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 12.5px; color: var(--mn-text-muted, #888); margin-bottom: 6px; }
.nv-author-comment-user { font-weight: 500; color: var(--mn-text, #333); }
.nv-author-comment-time { margin-left: auto; font-size: 11.5px; }
.nv-author-comment-body { font-size: 13.5px; line-height: 1.7; color: var(--mn-text, #333); }
.nv-author-comment-actions { display: flex; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--mn-border-light, #eef0f3); flex-wrap: wrap; }
.nv-author-reply-box { margin-top: 10px; padding: 10px; background: var(--mn-bg-soft, #f8fafc); border-radius: 8px; }
.nv-author-reply-box textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--mn-border, #e5e7eb); border-radius: 8px; background: var(--mn-bg-card, #fff); font-size: 13px; font-family: inherit; resize: vertical; }
.nv-author-reply-actions { display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px; }

/* 草稿 / 回收站 */
.nv-author-draftcount { font-size: 12px; color: var(--mn-text-muted, #888); font-weight: 400; margin-left: 6px; }
.nv-author-draft-list,
.nv-author-trash-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.nv-author-draft-item,
.nv-author-trash-item {
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
    padding: 10px 14px;
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: 10px;
    font-size: 13px;
}
.nv-author-draft-title,
.nv-author-trash-title { flex: 1; min-width: 0; font-weight: 500; color: var(--mn-text, #333); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-author-draft-words { color: var(--mn-text-muted, #888); font-size: 12px; }
.nv-author-draft-actions,
.nv-author-trash-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* 通知列表 */
.nv-author-noti-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.nv-author-noti {
    position: relative;
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: 12px;
    transition: all .15s;
}
.nv-author-noti.is-unread { border-color: color-mix(in srgb, var(--mn-primary, #f97316) 30%, var(--mn-border)); background: color-mix(in srgb, var(--mn-primary, #f97316) 3%, var(--mn-bg-card, #fff)); }
.nv-author-noti.is-read { opacity: .72; }
.nv-author-noti-link {
    display: flex; gap: 12px; padding: 12px 40px 12px 14px;
    text-decoration: none; color: inherit; align-items: flex-start;
}
.nv-author-noti-icon {
    flex-shrink: 0; width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: color-mix(in srgb, var(--mn-primary, #f97316) 10%, transparent);
    font-size: 16px;
}
.nv-author-noti-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nv-author-noti-head { display: flex; gap: 8px; align-items: baseline; font-size: 11.5px; color: var(--mn-text-muted, #888); }
.nv-author-noti-type { color: var(--mn-primary, #f97316); font-weight: 500; }
.nv-author-noti-title { font-size: 13.5px; font-weight: 600; color: var(--mn-text, #333); line-height: 1.4; }
.nv-author-noti-content { font-size: 12.5px; color: var(--mn-text-secondary, #555); line-height: 1.5; }

/* 码字日历 */
.nv-author-calendar { padding: 14px; background: var(--mn-bg-card, #fff); border: 1px solid var(--mn-border, #e5e7eb); border-radius: 12px; }
.nv-author-cal-head,
.nv-author-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.nv-author-cal-head span { text-align: center; font-size: 12px; color: var(--mn-text-muted, #888); padding: 6px 0; }
.nv-author-cal-cell {
    position: relative; aspect-ratio: 1; border-radius: 6px;
    background: var(--mn-bg-soft, #f8fafc);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 12px; color: var(--mn-text-secondary, #555);
    min-width: 0;
}
.nv-author-cal-empty { background: transparent; }
.nv-author-cal-lv0 { background: var(--mn-bg-soft, #f8fafc); }
.nv-author-cal-lv1 { background: color-mix(in srgb, var(--mn-primary, #f97316) 15%, var(--mn-bg-soft, #f8fafc)); }
.nv-author-cal-lv2 { background: color-mix(in srgb, var(--mn-primary, #f97316) 35%, var(--mn-bg-soft, #f8fafc)); }
.nv-author-cal-lv3 { background: color-mix(in srgb, var(--mn-primary, #f97316) 55%, var(--mn-bg-soft, #f8fafc)); color: #fff; }
.nv-author-cal-lv4 { background: color-mix(in srgb, var(--mn-primary, #f97316) 80%, var(--mn-bg-soft, #f8fafc)); color: #fff; }
.nv-author-cal-day { font-weight: 600; font-size: 11px; }
.nv-author-cal-words { font-size: 9px; margin-top: 1px; opacity: .85; }

/* 新手引导 */
.nv-guide-modal {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.nv-guide-modal-box {
    background: var(--mn-bg-card, #fff);
    color: var(--mn-text, #333);
    padding: 28px 32px;
    border-radius: 16px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.nv-guide-modal-box h3 { margin: 0 0 16px; font-size: 18px; }
.nv-guide-modal-box ol { padding-left: 22px; margin: 0 0 16px; line-height: 2; font-size: 14px; }
.nv-guide-modal-box .nv-author-hint { margin-bottom: 18px; }
.nv-guide-modal-box button { width: 100%; }

/* 响应式 */
@media (max-width: 900px) {
    .nv-editor-layout { grid-template-columns: 1fr; }
    .nv-editor-side { position: static; }
}
@media (max-width: 640px) {
    .nv-author-header { flex-direction: column; align-items: flex-start; }
    .nv-author-headactions { width: 100%; }
    .nv-author-headactions .nv-btn { flex: 1; }
    .nv-author-form-row label { min-width: 0; width: 100%; padding-top: 0; }
    .nv-author-cards { grid-template-columns: repeat(2, 1fr); }
    .nv-author-chapter-actions { width: 100%; justify-content: flex-end; }
    .nv-author-draft-actions,
    .nv-author-trash-actions { width: 100%; justify-content: flex-end; }
}

/* ==========================================================================
   作者中心 · 细节美化补丁
   ========================================================================== */

/* ---------- 1. 作品列表：操作列按钮不再换行 ---------- */
.nv-author-table .nv-row-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    align-items: center;
    white-space: nowrap;
}
.nv-author-table .nv-row-actions .btn {
    flex: 0 0 auto;
    padding: 4px 9px !important;
    font-size: 12px !important;
    line-height: 1.5;
    height: 26px;
    min-width: 0;
    white-space: nowrap;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nv-author-table .nv-row-actions .btn-primary {
    background: var(--mn-primary, #f97316);
    border-color: var(--mn-primary, #f97316);
    color: #fff;
}
.nv-author-table .nv-row-actions .btn-primary:hover {
    filter: brightness(1.08);
    color: #fff;
}
.nv-author-table .nv-row-actions .btn-secondary {
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    color: var(--mn-text-secondary, #555);
}
.nv-author-table .nv-row-actions .btn-secondary:hover {
    border-color: var(--mn-primary, #f97316);
    color: var(--mn-primary, #f97316);
    background: color-mix(in srgb, var(--mn-primary, #f97316) 6%, var(--mn-bg-card, #fff));
}
.nv-author-table .nv-row-actions .btn-warning {
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--mn-error, #ef4444) 30%, var(--mn-border, #e5e7eb));
    color: var(--mn-error, #ef4444);
}
.nv-author-table .nv-row-actions .btn-warning:hover {
    background: var(--mn-error, #ef4444);
    border-color: var(--mn-error, #ef4444);
    color: #fff;
}

/* 操作列加宽，避免挤压 */
.nv-author-table thead th:last-child,
.nv-author-table tbody td:last-child {
    min-width: 340px;
    white-space: nowrap;
}

/* 表格行间距更舒服 */
.nv-author-table tbody td {
    padding: 14px 14px;
    font-size: 13.5px;
    vertical-align: middle;
}
.nv-author-table thead th {
    font-size: 12.5px;
    letter-spacing: .3px;
    text-transform: none;
}

/* 书名那一列稍微粗一点 */
.nv-author-table .nv-author-worktitle {
    font-weight: 600;
    font-size: 14px;
}

/* 章节数 / 字数 列的数字对齐 */
.nv-author-table tbody td:nth-child(5),
.nv-author-table tbody td:nth-child(6) {
    font-variant-numeric: tabular-nums;
    color: var(--mn-text-secondary, #555);
}

/* 封面缩略图加个柔和的边框 */
.nv-author-minicover {
    border: 1px solid var(--mn-border-light, #eef0f3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

/* ---------- 2. 筛选行更紧凑 ---------- */
.nv-author-filter select,
.nv-author-filter input[type=text] {
    height: 36px;
    font-size: 13px;
}
.nv-author-filter .nv-btn {
    height: 36px;
    padding: 0 18px;
}

/* ---------- 3. 「最近编辑」卡片化 ---------- */
.nv-author-worklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nv-author-workitem {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    background: var(--mn-bg-card, #fff);
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: 12px;
    transition: all .18s ease;
}
.nv-author-workitem:hover {
    border-color: color-mix(in srgb, var(--mn-primary, #f97316) 40%, var(--mn-border, #e5e7eb));
    box-shadow: 0 6px 16px rgba(0, 0, 0, .05);
    transform: translateY(-1px);
}
.nv-author-workcover {
    width: 48px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--mn-primary, #f97316) 15%, var(--mn-bg-card, #fff)),
        color-mix(in srgb, var(--mn-primary, #f97316) 5%, var(--mn-bg-card, #fff)));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--mn-primary, #f97316);
    text-decoration: none;
    border: 1px solid var(--mn-border-light, #eef0f3);
}
.nv-author-workcover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.nv-author-workinfo {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nv-author-worktitle {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--mn-text, #333);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nv-author-worktitle:hover {
    color: var(--mn-primary, #f97316);
}
.nv-author-workmeta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12.5px;
    color: var(--mn-text-muted, #888);
    line-height: 1.5;
    align-items: center;
}
.nv-author-workactions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* ---------- 4. 快捷操作按钮统一高度 ---------- */
.nv-author-quick .nv-btn {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    border-radius: 9px;
}
.nv-author-quick .nv-btn-primary {
    box-shadow: 0 4px 12px color-mix(in srgb, var(--mn-primary, #f97316) 25%, transparent);
}

/* ---------- 5. 模块标题间距 ---------- */
.nv-author-module {
    margin-bottom: 26px;
}
.nv-author-module .nv-section-title {
    margin-bottom: 14px;
    font-size: 15.5px;
}

/* ---------- 6. 空状态更柔和 ---------- */
.nv-author-page .nv-empty {
    padding: 48px 24px;
    border-style: dashed;
    border-color: var(--mn-border, #e5e7eb);
    background: var(--mn-bg-card, #fff);
}
.nv-author-page .nv-empty-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
    background: color-mix(in srgb, var(--mn-primary, #f97316) 10%, transparent);
    color: var(--mn-primary, #f97316);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.nv-author-page .nv-empty-title {
    font-size: 15px;
    color: var(--mn-text, #333);
    margin: 0 0 6px;
}
.nv-author-page .nv-empty-desc {
    font-size: 13px;
    color: var(--mn-text-muted, #888);
    margin: 0;
}

/* ---------- 7. 徽章统一风格 ---------- */
.nv-author-badge {
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 500;
    border-radius: 6px;
    letter-spacing: .2px;
}

/* ---------- 8. 表格外层圆角阴影（如果表格直接铺开） ---------- */
.nv-author-table-wrap {
    background: var(--mn-bg-card, #fff);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}
.nv-author-table {
    border: 0;
}
.nv-author-table thead th:first-child {
    border-top-left-radius: 12px;
}
.nv-author-table thead th:last-child {
    border-top-right-radius: 12px;
}

/* ---------- 9. 响应式：小屏让操作按钮换行更好看 ---------- */
@media (max-width: 900px) {
    .nv-author-table thead th:last-child,
    .nv-author-table tbody td:last-child {
        min-width: 0;
    }
    .nv-author-table .nv-row-actions {
        flex-wrap: wrap;
    }
    .nv-author-table .nv-row-actions .btn {
        flex: 0 0 auto;
    }
}

@media (max-width: 640px) {
    .nv-author-workitem {
        flex-wrap: wrap;
    }
    .nv-author-workactions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ---------- 章节阅读明细表：列宽优化 ---------- */
.nv-author-table.nv-stats-detail-table {
    table-layout: fixed;
    width: 100%;
}

/* 覆盖通用 last-child 规则（那 340px 是给操作列用的，这里不需要） */
.nv-author-table.nv-stats-detail-table thead th:last-child,
.nv-author-table.nv-stats-detail-table tbody td:last-child {
    min-width: 0;
    white-space: normal;
}

/* # 列：窄，居中 */
.nv-author-table.nv-stats-detail-table thead th:nth-child(1),
.nv-author-table.nv-stats-detail-table tbody td:nth-child(1) {
    width: 56px;
    text-align: center;
    color: var(--mn-text-muted, #888);
    font-variant-numeric: tabular-nums;
}

/* 章节列：占据剩余全部宽度 */
.nv-author-table.nv-stats-detail-table thead th:nth-child(2),
.nv-author-table.nv-stats-detail-table tbody td:nth-child(2) {
    width: auto;
    white-space: normal;
    word-break: break-word;
    line-height: 1.5;
}

/* 字数列：定宽，右对齐 */
.nv-author-table.nv-stats-detail-table thead th:nth-child(3),
.nv-author-table.nv-stats-detail-table tbody td:nth-child(3) {
    width: 100px;
    text-align: right;
    color: var(--mn-text-secondary, #555);
    font-variant-numeric: tabular-nums;
}

/* 阅读量列：定宽，右对齐 */
.nv-author-table.nv-stats-detail-table thead th:nth-child(4),
.nv-author-table.nv-stats-detail-table tbody td:nth-child(4) {
    width: 100px;
    text-align: right;
    color: var(--mn-text-secondary, #555);
    font-variant-numeric: tabular-nums;
}

/* 表头也要跟单元格对齐方式一致 */
.nv-author-table.nv-stats-detail-table thead th:nth-child(3),
.nv-author-table.nv-stats-detail-table thead th:nth-child(4) {
    text-align: right;
}

/* ---------- 阅读趋势图 ---------- */
.nv-author-chart {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 140px;
    padding: 10px 0 0;
    border-bottom: 1px solid var(--mn-border-light, #eef0f3);
}

.nv-author-chart-bar {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    height: 100%;
    background: color-mix(in srgb, var(--mn-primary, #f97316) 6%, transparent);
    border-radius: 3px 3px 0 0;
    overflow: hidden;
    transition: background .15s;
}
.nv-author-chart-bar:hover {
    background: color-mix(in srgb, var(--mn-primary, #f97316) 14%, transparent);
}
.nv-author-chart-bar.is-today {
    outline: 1px dashed color-mix(in srgb, var(--mn-primary, #f97316) 50%, transparent);
    outline-offset: -1px;
}

.nv-author-chart-fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        var(--mn-primary, #f97316),
        color-mix(in srgb, var(--mn-primary, #f97316) 60%, #9b7cff));
    height: var(--h, 0%);
    min-height: 2px;
    border-radius: 3px 3px 0 0;
    transition: height .3s;
}

/* 空数据状态 */
.nv-author-chart-empty {
    padding: 40px 20px;
    text-align: center;
    background: var(--mn-bg-soft, #f8fafc);
    border: 1px dashed var(--mn-border, #e5e7eb);
    border-radius: 10px;
    color: var(--mn-text-muted, #888);
}
.nv-author-chart-empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: .7;
}
.nv-author-chart-empty p {
    margin: 0 0 6px;
    font-size: 14px;
    color: var(--mn-text-secondary, #555);
}
.nv-author-chart-empty small {
    font-size: 12px;
    color: var(--mn-text-muted, #888);
}

/* 底部日期轴 */
.nv-author-chart-axis {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px 0;
    font-size: 12px;
    color: var(--mn-text-muted, #888);
}
.nv-author-chart-axis span:nth-child(2) {
    color: var(--mn-text-secondary, #555);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
    .nv-author-chart { height: 100px; gap: 1px; }
    .nv-author-chart-axis { font-size: 11px; }
}

/* 被打赏卡片：金橙色突出 */
.nv-author-card-reward {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--mn-primary, #f97316) 12%, var(--mn-bg-card, #fff)),
        color-mix(in srgb, var(--mn-primary, #f97316) 4%, var(--mn-bg-card, #fff)));
    border-color: color-mix(in srgb, var(--mn-primary, #f97316) 35%, var(--mn-border, #e5e7eb));
}
.nv-author-card-reward:hover {
    border-color: var(--mn-primary, #f97316);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--mn-primary, #f97316) 18%, transparent);
}
.nv-author-card-reward .nv-author-card-num {
    background: linear-gradient(135deg, #f97316, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #f97316;
}
.nv-author-card-reward .nv-author-card-lbl {
    color: var(--mn-primary, #f97316);
    font-weight: 600;
}