/* ===== HeReader 样式 ===== */
/* 基于 HeList 设计系统，保持视觉风格一致 */

/* ===== CSS 变量 ===== */
:root {
    --bg-color: #f0f8ff;
    --text-color: #1e1e2f;
    --panel-color: #ffffff;
    --primary-color: #4a90e2;
    --primary-light: #e1f0ff;
    --primary-dark: #3a78c2;
    --secondary-color: #e8edf5;
    --border-color: #d3dde8;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --success-color: #2ecc71;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --radius: 14px;
    --radius-sm: 8px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Segoe UI', 'SF Pro Display', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
    --glow-color: rgba(74, 144, 226, 0.20);
    --glow-ring: rgba(74, 144, 226, 0.10);
    --empty-icon-opacity: 0.35;
    --scrollbar-width: 10px;
    --scrollbar-thumb: var(--border-color);
    --grad-base: #e8edf6;
    --grad-blue: #dbeafe;
    --grad-pink: #fce4ec;
    --grad-mid: #f0f4fa;
}

.dark-mode {
    --bg-color: #12121a;
    --text-color: #e8e8f0;
    --panel-color: #1c1c26;
    --primary-color: #5b9cf5;
    --primary-light: #2a2a3a;
    --primary-dark: #4a8ae0;
    --secondary-color: #262632;
    --border-color: #333345;
    --danger-color: #ff5e7a;
    --warning-color: #ffb74d;
    --success-color: #4caf84;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    --glow-color: rgba(91, 156, 245, 0.25);
    --glow-ring: rgba(91, 156, 245, 0.15);
    --empty-icon-opacity: 0.5;
    --scrollbar-thumb: #444466;
    --grad-base: #1a1a2a;
    --grad-blue: #1a2a3a;
    --grad-pink: #2a1a22;
    --grad-mid: #1e1e2e;
}

/* ===== 动画渐变背景 ===== */
body.bg-flow {
    background: linear-gradient(135deg, var(--grad-base) 0%, var(--grad-pink) 15%, var(--grad-blue) 30%, var(--grad-mid) 50%, var(--grad-base) 65%, var(--grad-pink) 80%, var(--grad-blue) 100%);
    background-size: 400% 400%;
    animation: gradientFlow 20s ease infinite;
    transition: background 1s ease, color var(--transition);
}
@keyframes gradientFlow {
    0%   { background-position: 0% 50%; }
    25%  { background-position: 100% 0%; }
    50%  { background-position: 100% 100%; }
    75%  { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}
body::before {
    content: ''; position: fixed; inset: 0;
    background-image: var(--bg-image, none);
    background-size: cover; background-position: center;
    background-repeat: no-repeat; background-attachment: fixed;
    opacity: 0.15; z-index: -2; pointer-events: none;
    transition: opacity var(--transition);
}
body::after {
    content: ''; position: fixed; top: -30%; left: -20%;
    width: 80%; height: 80%;
    background: radial-gradient(ellipse, var(--primary-light) 0%, transparent 70%);
    opacity: 0.5; z-index: -1; pointer-events: none;
    transition: opacity var(--transition);
}
.icon {
    width: 1em; height: 1em; vertical-align: -0.125em;
    display: inline-block; stroke: currentColor; fill: none; flex-shrink: 0;
}

/* ===== 重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-sans); background-color: var(--bg-color); color: var(--text-color);
    transition: background-color var(--transition), color var(--transition);
    min-height: 100vh; padding: 12px; overflow-x: hidden;
}

/* ===== 容器 ===== */
.app-container {
    max-width: 1360px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 14px;
    min-height: calc(100vh - 24px);
}

/* ===== 页脚 ===== */
.app-footer {
    text-align: center; padding: 12px 18px; font-size: 0.75rem;
    color: var(--text-color); opacity: 0.55;
    background: var(--panel-color); border-radius: var(--radius);
    border: 1px solid var(--border-color); box-shadow: var(--card-shadow);
    transition: background var(--transition), border var(--transition), color var(--transition);
    flex-shrink: 0; line-height: 1.7; user-select: none;
}

/* ===== 头部 ===== */
.app-header {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 10px 16px; padding: 10px 18px; background: var(--panel-color);
    border-radius: var(--radius); box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: background var(--transition), border var(--transition); flex-shrink: 0;
}
.app-brand { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; font-weight: 700; color: var(--primary-color); user-select: none; white-space: nowrap; }
.app-brand svg { width: 24px; height: 24px; flex-shrink: 0; }
.app-brand small { font-weight: 400; font-size: 0.7rem; color: var(--text-color); opacity: 0.5; margin-left: 2px; }
.header-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; flex: 1 1 auto; min-width: 0; }
.header-actions { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; flex-shrink: 0; margin-left: auto; }
.header-btn {
    padding: 5px 12px; border-radius: 20px; border: 1px solid var(--border-color);
    background: transparent; color: var(--text-color); cursor: pointer;
    font-size: 0.75rem; font-weight: 500; transition: all var(--transition);
    display: flex; align-items: center; gap: 4px; white-space: nowrap; flex-shrink: 0;
}
.header-btn:hover { background: var(--secondary-color); border-color: var(--primary-color); color: var(--primary-color); }
.header-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.header-btn.primary-btn { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.header-btn.primary-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.header-user-badge {
    display: flex; align-items: center; gap: 6px;
    padding: 3px 12px 3px 6px; border-radius: 20px;
    background: var(--secondary-color); border: 1px solid var(--border-color);
    cursor: pointer; transition: all var(--transition);
    font-size: 0.75rem; color: var(--text-color);
}
.header-user-badge:hover { border-color: var(--primary-color); }
.header-user-badge .user-mini-avatar {
    width: 24px; height: 24px; border-radius: 50%; background: var(--primary-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 700; color: #fff;
    overflow: hidden; flex-shrink: 0;
}
.header-user-badge .user-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ===== 主网格 ===== */
.main-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 14px; flex: 1; min-height: 0; }

/* ===== 面板基础 ===== */
.panel {
    background: var(--panel-color); border-radius: var(--radius); box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color); padding: 18px 20px 20px;
    transition: background var(--transition), border var(--transition), box-shadow var(--transition);
    display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.panel-title {
    font-size: 0.95rem; font-weight: 600; display: flex; align-items: center; gap: 6px;
    margin-bottom: 12px; color: var(--text-color); user-select: none; flex-shrink: 0;
}
.panel-title svg { width: 18px; height: 18px; color: var(--primary-color); flex-shrink: 0; }

/* ===== 小说列表面板 ===== */
.novel-panel { gap: 0; }
.novel-header-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px; flex-shrink: 0; flex-wrap: wrap; gap: 4px 8px;
}
.novel-header-row .panel-title { margin-bottom: 0; }
.add-novel-btn {
    background: var(--primary-color); color: #fff; border: none; border-radius: 50%;
    width: 34px; height: 34px; font-size: 1.3rem; cursor: pointer;
    transition: all var(--transition);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1;
}
.add-novel-btn:hover { transform: scale(1.06); background: var(--primary-dark); box-shadow: 0 2px 12px rgba(74, 144, 226, 0.30); }

/* 小说列表 */
.novel-list {
    flex: 1; overflow-y: auto; padding-right: 4px;
    display: flex; flex-direction: column; gap: 5px;
    min-height: 200px; max-height: 520px;
    scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) transparent;
}
.novel-list::-webkit-scrollbar { width: var(--scrollbar-width); }
.novel-list::-webkit-scrollbar-track { background: transparent; border-radius: 8px; }
.novel-list::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 8px; min-height: 30px; }
.novel-list::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

.novel-item {
    display: flex; align-items: center; padding: 10px 14px; border-radius: var(--radius-sm);
    background: var(--secondary-color); transition: all var(--transition); cursor: pointer;
    gap: 10px; border: 1px solid transparent; position: relative;
}
.novel-item:hover { transform: translateX(3px); border-color: var(--border-color); background: var(--primary-light); }

.novel-item .novel-icon {
    width: 38px; height: 38px; border-radius: var(--radius-sm);
    background: var(--primary-color); color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 1rem;
}
.novel-item .novel-icon svg { width: 20px; height: 20px; }
.novel-item .novel-icon.url-icon { background: var(--success-color); }
.novel-item .novel-info { flex: 1; min-width: 0; }
.novel-item .novel-name { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.novel-item .novel-meta { font-size: 0.72rem; color: var(--text-color); opacity: 0.55; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.novel-item .novel-meta .tag {
    padding: 1px 6px; border-radius: 8px; font-size: 0.62rem; font-weight: 600;
}
.novel-item .novel-meta .tag.tag-txt { background: var(--primary-light); color: var(--primary-color); }
.novel-item .novel-meta .tag.tag-url { background: rgba(46, 204, 113, 0.15); color: var(--success-color); }

.novel-item .novel-actions { display: flex; gap: 2px; flex-shrink: 0; }
.novel-item .novel-actions button {
    background: none; border: none; cursor: pointer; font-size: 0.8rem;
    padding: 4px 6px; border-radius: 4px; transition: all var(--transition); line-height: 1.4;
}
.novel-item .novel-actions .edit-novel-btn { color: var(--warning-color); }
.novel-item .novel-actions .edit-novel-btn:hover { background: rgba(243, 156, 18, 0.15); }
.novel-item .novel-actions .delete-novel-btn { color: var(--danger-color); }
.novel-item .novel-actions .delete-novel-btn:hover { background: rgba(231, 76, 60, 0.15); }

.novel-empty {
    text-align: center; padding: 40px 12px; color: var(--text-color);
    opacity: 0.5; font-size: 0.85rem; user-select: none; line-height: 1.6;
}
.novel-empty svg { width: 40px; height: 40px; opacity: 0.3; margin-bottom: 8px; }

/* ===== 统计面板 ===== */
.stats-panel { }
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px;
}
.stat-card {
    background: var(--secondary-color); border-radius: var(--radius-sm);
    padding: 14px 12px; text-align: center;
    transition: background var(--transition); border: 1px solid var(--border-color);
}
.stat-card .stat-value { font-size: 1.4rem; font-weight: 700; font-family: var(--font-mono); color: var(--primary-color); }
.stat-card .stat-label { font-size: 0.75rem; opacity: 0.6; margin-top: 4px; }

/* ===== 已完成标记 ===== */
.novel-item.completed { border-left: 3px solid var(--success-color, #2ecc71); }
.completed-badge { display:inline-block; font-size:0.65rem; font-weight:600; color:var(--success-color,#2ecc71); background:rgba(46,204,113,0.12); padding:1px 6px; border-radius:4px; margin-left:4px; vertical-align:middle; }

/* ===== 模态框 ===== */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.45); backdrop-filter: blur(3px); z-index: 1000; justify-content: center; align-items: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal-box { background: var(--panel-color); border-radius: var(--radius); padding: 24px 26px 28px; max-width: 480px; width: 100%; box-shadow: 0 12px 48px rgba(0,0,0,0.25); border: 1px solid var(--border-color); transition: background var(--transition), border var(--transition); max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-header h3 { font-size: 1.05rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.modal-header .close-modal { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-color); opacity: 0.4; transition: opacity var(--transition); line-height: 1; }
.modal-header .close-modal:hover { opacity: 0.8; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 4px; color: var(--text-color); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 9px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); background: var(--bg-color); color: var(--text-color); font-size: 0.88rem; transition: border var(--transition), background var(--transition); font-family: var(--font-sans); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15); }
.modal-btn { padding: 9px 18px; border-radius: var(--radius-sm); border: none; font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: all var(--transition); font-family: var(--font-sans); }
.modal-btn-primary { background: var(--primary-color); color: #fff; }
.modal-btn-primary:hover { background: var(--primary-dark); }
.modal-btn-danger { background: var(--danger-color); color: #fff; }
.modal-btn-danger:hover { opacity: 0.85; }
.modal-btn-secondary { background: var(--secondary-color); color: var(--text-color); }
.modal-btn-secondary:hover { background: var(--border-color); }
.modal-actions { display: flex; gap: 8px; margin-top: 4px; }
.modal-actions .modal-btn { flex: 1; }

.form-radio-group {
    display: flex; gap: 16px; margin-bottom: 14px;
}
.form-radio-group label { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; cursor: pointer; }
.form-radio-group input[type="radio"] { width: auto; accent-color: var(--primary-color); cursor: pointer; }

/* ===== 文件上传区域 ===== */
.file-upload-area {
    border: 2px dashed var(--border-color); border-radius: var(--radius-sm);
    padding: 20px; text-align: center; cursor: pointer;
    transition: all var(--transition); background: var(--secondary-color);
}
.file-upload-area:hover { border-color: var(--primary-color); background: var(--primary-light); }
.file-upload-area svg { width: 32px; height: 32px; opacity: 0.3; margin-bottom: 6px; }
.file-upload-area .file-name { font-size: 0.8rem; font-weight: 500; margin-top: 6px; color: var(--primary-color); }
.file-upload-area .file-hint { font-size: 0.72rem; opacity: 0.5; margin-top: 3px; }
#txtFileInput { display: none; }

/* ===== 设置面板 ===== */
.settings-modal-box { max-width: 480px !important; }
.settings-body { display: flex; flex-direction: column; gap: 18px; }
.settings-section { padding: 14px 0; border-bottom: 1px solid var(--border-color); }
.settings-section:last-child { border-bottom: none; padding-bottom: 0; }
.settings-section-title { font-size: 0.82rem; font-weight: 700; color: var(--primary-color); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.settings-btn-group { display: flex; flex-direction: column; gap: 6px; }
.settings-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-color); background: var(--secondary-color);
    color: var(--text-color); font-size: 0.88rem; font-weight: 500;
    cursor: pointer; transition: all var(--transition); font-family: var(--font-sans);
    width: 100%; text-align: left;
}
.settings-btn:hover { border-color: var(--primary-color); background: var(--primary-light); color: var(--primary-color); }
.settings-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.settings-checkbox-label { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 500; cursor: pointer; padding: 6px 0; }
.settings-checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary-color); cursor: pointer; flex-shrink: 0; }
.settings-hint { font-size: 0.75rem; opacity: 0.5; margin-top: 4px; line-height: 1.4; }

/* ===== 登录覆盖层 ===== */
.login-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-color); z-index: 10000; display: none;
    align-items: center; justify-content: center; padding: 20px;
}
.login-overlay.active { display: flex; }
.login-box {
    background: var(--panel-color); max-width: 380px; width: 100%;
    border-radius: var(--radius); padding: 36px 32px 32px;
    box-shadow: var(--card-shadow); border: 1px solid var(--border-color);
    text-align: center; transition: background var(--transition), border var(--transition);
}
.login-box .login-icon svg { width: 48px; height: 48px; color: var(--primary-color); margin-bottom: 8px; }
.login-box h2 { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); margin-bottom: 4px; }
.login-box .login-subtitle { font-size: 0.82rem; color: var(--text-color); opacity: 0.5; margin-bottom: 24px; }
.login-form { display: flex; flex-direction: column; gap: 12px; }
.login-form input {
    padding: 11px 14px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color); background: var(--bg-color); color: var(--text-color);
    font-size: 0.9rem; font-family: var(--font-sans);
    transition: border var(--transition), background var(--transition);
    outline: none; width: 100%;
}
.login-form input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15); }
.login-submit {
    padding: 11px; border-radius: var(--radius-sm); border: none;
    background: var(--primary-color); color: #fff; font-size: 0.95rem;
    font-weight: 600; cursor: pointer; transition: all var(--transition);
    font-family: var(--font-sans); margin-top: 4px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.login-submit:hover { background: var(--primary-dark); }
.login-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.login-msg { font-size: 0.82rem; padding: 8px 12px; border-radius: var(--radius-sm); display: none; }
.login-msg.error { display: block; background: var(--danger-color); color: #fff; }
.login-msg.success { display: block; background: var(--success-color); color: #fff; }
.login-msg.info { display: block; background: var(--primary-light); color: var(--primary-color); }
.login-register-link { font-size: 0.8rem; color: var(--text-color); opacity: 0.6; margin-top: 8px; }
.login-register-link a { color: var(--primary-color); text-decoration: none; font-weight: 600; }
.login-register-link a:hover { text-decoration: underline; }

/* ===== Toast ===== */
.hereader-toast {
    position: fixed; bottom: 70px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--panel-color); color: var(--text-color);
    padding: 10px 22px; border-radius: 24px; border: 1px solid var(--border-color);
    box-shadow: 0 6px 24px rgba(0,0,0,0.15); font-size: 0.85rem; font-weight: 500;
    z-index: 9999; opacity: 0; transition: all 0.3s ease; pointer-events: none;
    display: flex; align-items: center; gap: 8px;
}
.hereader-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.hereader-toast.success { border-color: var(--success-color); }
.hereader-toast.error { border-color: var(--danger-color); }
.hereader-toast.info { border-color: var(--primary-color); }

/* ===== 小说选择弹窗 ===== */
.novel-select-list {
    max-height: 350px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px;
}
.novel-select-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    border-radius: var(--radius-sm); background: var(--secondary-color);
    cursor: pointer; transition: all var(--transition); border: 1px solid transparent;
}
.novel-select-item:hover { border-color: var(--primary-color); background: var(--primary-light); transform: translateX(2px); }
.novel-select-item .ns-icon {
    width: 32px; height: 32px; border-radius: 50%; background: var(--primary-color); color: #fff;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.novel-select-item .ns-icon svg { width: 16px; height: 16px; }
.novel-select-item .ns-icon.ns-url { background: var(--success-color); }
.novel-select-item .ns-info { flex: 1; min-width: 0; }
.novel-select-item .ns-name { font-size: 0.88rem; font-weight: 600; }
.novel-select-item .ns-meta { font-size: 0.7rem; opacity: 0.5; margin-top: 2px; }
.novel-select-empty { text-align: center; padding: 30px; opacity: 0.5; font-size: 0.85rem; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
    .main-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 820px) {
    body { padding: 8px; }
    .app-container { gap: 10px; min-height: calc(100vh - 16px); }
    .app-header { padding: 8px 14px; gap: 6px 10px; flex-wrap: wrap; }
    .app-brand { font-size: 1rem; }
    .app-brand svg { width: 20px; height: 20px; }
    .app-brand small { font-size: 0.65rem; }
    .header-btn { font-size: 0.7rem; padding: 4px 10px; }
    .main-grid {
        display: flex; overflow-x: auto; overflow-y: hidden;
        scroll-snap-type: x mandatory; scroll-behavior: smooth;
        gap: 0; border-radius: var(--radius); flex: 1; min-height: 70vh;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .main-grid::-webkit-scrollbar { display: none; }
    .main-grid>.panel {
        flex: 0 0 100%; scroll-snap-align: start; border-radius: 0; margin: 0;
        min-height: 70vh; border: none; box-shadow: none; padding: 14px 16px 16px; overflow-y: auto;
    }
    .main-grid>.panel:first-child { border-radius: var(--radius) 0 0 var(--radius); }
    .main-grid>.panel:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
    .panel { padding: 12px 14px 14px; }
    .novel-list { max-height: 400px; min-height: 150px; }
    .novel-item { padding: 8px 12px; gap: 8px; }
    .novel-item .novel-icon { width: 32px; height: 32px; }
    .novel-item .novel-name { font-size: 0.82rem; }
    .modal-box { padding: 18px 16px 20px; }
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
    .stat-card { padding: 10px 8px; }
    .stat-card .stat-value { font-size: 1.1rem; }
}
@media (max-width: 480px) {
    .app-brand { font-size: 0.9rem; }
    .app-brand svg { width: 18px; height: 18px; }
    .app-brand small { font-size: 0.6rem; }
    .header-btn { font-size: 0.65rem; padding: 3px 8px; }
    .panel { padding: 10px 12px 12px; }
    .novel-list { max-height: 300px; min-height: 120px; }
    .novel-item { padding: 6px 10px; gap: 6px; }
    .novel-item .novel-icon { width: 28px; height: 28px; }
    .novel-item .novel-name { font-size: 0.78rem; }
    .novel-empty { padding: 30px 12px; }
    .novel-empty svg { width: 32px; height: 32px; }
    .stat-card { padding: 8px 6px; }
    .stat-card .stat-value { font-size: 1rem; }
    .stat-card .stat-label { font-size: 0.68rem; }
    .modal-box { padding: 18px 16px 20px; }
}
