/* ============================================================
   NovelPro 专业小说主题 · style.css
   配色：靛蓝 #1f4e79 / 朱砂 #c0392b / 米白 #faf7f2
   ============================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: #faf7f2;
    color: #2b2b2b;
    font-size: 15px;
    line-height: 1.7;
}
a { color: #1f4e79; text-decoration: none; }
a:hover { color: #c0392b; }
img { max-width: 100%; }
.np-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- 头部 ---------- */
.np-header {
    background: #fff;
    border-bottom: 1px solid #ece7dd;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.np-header-inner { display: flex; align-items: center; gap: 24px; height: 60px; position: relative; }
.np-menu-toggle {
    display: none; border: 1px solid #ddd5c5; background: #faf7f2; color: #1f4e79;
    width: 40px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 1rem;
    align-items: center; justify-content: center; padding: 0; flex-shrink: 0;
}
.np-menu-toggle:hover { background: #f0ece3; color: #c0392b; }
.np-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.25rem; color: #1f4e79; flex-shrink: 0; }
.np-logo img { height: 36px; }
.np-logo-mark {
    width: 36px; height: 36px; border-radius: 8px; background: #1f4e79; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.np-nav { display: flex; gap: 4px; flex: 1; }
.np-nav a { padding: 6px 14px; border-radius: 20px; color: #444; font-size: .95rem; }
.np-nav a:hover { background: #f0ece3; color: #1f4e79; }
.np-nav a.active { background: #1f4e79; color: #fff; }
.np-search { display: flex; border: 1px solid #ddd5c5; border-radius: 20px; overflow: hidden; background: #faf7f2; }
.np-search input { border: 0; outline: 0; background: transparent; padding: 7px 14px; width: 200px; font-size: .9rem; }
.np-search button { border: 0; background: #1f4e79; color: #fff; padding: 0 16px; cursor: pointer; }
.np-user { display: flex; align-items: center; gap: 10px; }
.np-lang { font-size: .82rem; color: #888; }
.np-lang a { color: #888; padding: 2px 4px; }
.np-lang a.on { color: #1f4e79; font-weight: 600; }
.np-lang a:hover { color: #c0392b; }
.np-gold { color: #b8860b; font-size: .88rem; }
.np-user-menu { position: relative; }
.np-username { cursor: pointer; font-size: .9rem; }
.np-user-drop {
    display: none; position: absolute; right: 0; top: 130%; background: #fff; min-width: 160px;
    border: 1px solid #ece7dd; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.1); padding: 6px 0;
}
.np-user-menu:hover .np-user-drop { display: block; }
.np-user-drop a { display: block; padding: 8px 16px; font-size: .88rem; color: #444; }
.np-user-drop a:hover { background: #f5f1e8; color: #1f4e79; }

/* ---------- 按钮 ---------- */
.np-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 18px; border-radius: 20px; font-size: .9rem; border: 1px solid transparent; cursor: pointer;
}
.np-btn-primary { background: #1f4e79; color: #fff; }
.np-btn-primary:hover { background: #173d60; color: #fff; }
.np-btn-ghost { background: #fff; color: #1f4e79; border-color: #1f4e79; }
.np-btn-ghost:hover { background: #f0ece3; }
.np-btn-lg { padding: 10px 26px; font-size: .95rem; border-radius: 24px; }
.np-btn-disabled { background: #eee; color: #999; cursor: not-allowed; }

/* ---------- 布局 ---------- */
.np-main { min-height: 70vh; padding: 20px 0 40px; }
.np-main-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; margin-top: 20px; }
.np-panel { background: #fff; border: 1px solid #ece7dd; border-radius: 12px; padding: 18px 20px; margin-bottom: 20px; }
.np-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; border-bottom: 2px solid #1f4e79; padding-bottom: 8px; }
.np-section-head h2 { margin: 0; font-size: 1.1rem; color: #1f4e79; }
.np-section-head.sm h2 { font-size: 1rem; border: 0; }
.np-more { font-size: .82rem; color: #888; }

/* ---------- 主编推荐 ---------- */
.np-featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.np-book-card { display: block; color: inherit; min-width: 0; }
.np-book-card:hover { color: inherit; }
.np-cover {
    position: relative;
    aspect-ratio: 3/4; background: #e9e2d2; border-radius: 8px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.np-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.np-book-card:hover .np-cover img { transform: scale(1.04); }
.np-book-info { padding: 8px 2px 0; }
.np-book-title { font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-book-meta { font-size: .8rem; color: #888; margin-top: 2px; }
.np-book-last { font-size: .78rem; color: #aaa; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-tag { display: inline-block; font-size: .65rem; padding: 0 6px; border-radius: 8px; vertical-align: middle; }
.np-tag-vip { background: #b8860b; color: #fff; }
.np-tag.sm { font-size: .6rem; }

/* ---------- 最新更新列表 ---------- */
.np-update-list { list-style: none; margin: 0; padding: 0; }
.np-update-list li {
    display: grid; grid-template-columns: 90px 1fr 1fr 70px; gap: 12px;
    padding: 9px 4px; border-bottom: 1px dashed #eee; align-items: center; font-size: .9rem;
}
.np-update-list li:hover { background: #faf7f2; }
.np-cat { color: #888; font-size: .8rem; }
.np-update-book { display: flex; gap: 8px; align-items: center; color: #2b2b2b; }
.np-update-book .np-title { font-weight: 500; }
.np-update-ch { color: #666; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-update-time { color: #aaa; font-size: .78rem; text-align: right; }

/* ---------- 完本精选 ---------- */
.np-finished-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.np-mini-card { display: flex; gap: 10px; padding: 8px; border-radius: 8px; color: inherit; }
.np-mini-card:hover { background: #faf7f2; color: inherit; }
.np-mini-card img { width: 42px; height: 56px; object-fit: cover; border-radius: 4px; }
.np-mini-title { font-size: .9rem; font-weight: 500; }
.np-mini-meta { font-size: .78rem; color: #888; }

/* ---------- 榜单 ---------- */
.np-rank-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.np-rank-tab {
    border: 1px solid #ddd5c5; background: #fff; color: #666; padding: 6px 16px;
    border-radius: 20px; cursor: pointer; font-size: .88rem;
}
.np-rank-tab.active { background: #1f4e79; color: #fff; border-color: #1f4e79; }
.np-rank-list { list-style: none; margin: 0; padding: 0; }
.np-rank-list li { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px dashed #f0ece3; font-size: .9rem; }
.np-rank-no {
    width: 20px; height: 20px; border-radius: 4px; background: #eee; color: #888;
    text-align: center; line-height: 20px; font-size: .75rem; font-style: normal;
}
.np-rank-no.top { background: #c0392b; color: #fff; }
.np-rank-list a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #333; }
.np-rank-list em { font-style: normal; color: #aaa; font-size: .78rem; }

.np-side-list { list-style: none; margin: 0; padding: 0; }
.np-side-list li { padding: 7px 2px; font-size: .88rem; display: flex; align-items: flex-start; gap: 7px; }
.np-side-list li a { flex: 1; min-width: 0; line-height: 1.45; }
.np-cat-new { flex-shrink: 0; display: inline-block; background: #c0392b; color: #fff; font-size: .65rem; padding: 1px 6px; border-radius: 3px; margin-top: 2px; }

/* ---------- 完整排行页 ---------- */
.np-rank-full { list-style: none; margin: 0; padding: 0; }
.np-rank-full li { display: flex; gap: 16px; padding: 14px 4px; border-bottom: 1px solid #f0ece3; align-items: flex-start; }
.np-rank-cover img { width: 60px; height: 80px; object-fit: cover; border-radius: 4px; }
.np-rank-info { flex: 1; }
.np-rank-title { font-size: 1rem; font-weight: 600; color: #1f4e79; }
.np-rank-meta { font-size: .82rem; color: #888; margin: 4px 0; }
.np-rank-desc { font-size: .85rem; color: #666; }
.np-rank-num { text-align: center; }
.np-rank-num em { font-style: normal; font-size: 1.1rem; font-weight: 700; color: #c0392b; display: block; }
.np-rank-num span { font-size: .75rem; color: #aaa; }

/* ---------- 随机标签 ---------- */
.np-random-box { margin-top: 20px; }
.np-tags { display: grid; grid-template-columns: repeat(auto-fill, 160px); gap: 10px; }
.np-tags a { background: #f0ece3; padding: 9px 10px; border-radius: 8px; font-size: .85rem; color: #555; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-tags a:hover { background: #1f4e79; color: #fff; }

/* ---------- 书库筛选 ---------- */
.np-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.np-filter-label { color: #888; font-size: .85rem; }
.np-chip { padding: 3px 12px; border-radius: 14px; font-size: .82rem; color: #555; background: #f0ece3; }
.np-chip.on { background: #1f4e79; color: #fff; }
.np-book-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

/* ---------- 分页 ---------- */
.np-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 24px 0; }
.np-pager a { padding: 6px 14px; border: 1px solid #ddd5c5; border-radius: 6px; background: #fff; }
.np-pager-cur { color: #666; }

/* ---------- 书籍详情 ---------- */
.np-book-hero { display: flex; gap: 24px; padding: 24px; }
.np-book-cover-lg img { width: 140px; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.np-book-hero-info { flex: 1; }
.np-book-hero-info h1 { margin: 0 0 10px; font-size: 1.5rem; }
.np-book-hero-meta { display: flex; flex-wrap: wrap; gap: 16px; color: #666; font-size: .9rem; }
.np-book-hero-nums { display: flex; gap: 28px; margin: 16px 0; }
.np-book-hero-nums strong { font-size: 1.2rem; color: #1f4e79; display: block; }
.np-book-hero-nums span { font-size: .78rem; color: #888; }
.np-book-actions { display: flex; gap: 12px; }
.np-desc { color: #444; line-height: 1.9; }
.np-volume { margin-bottom: 16px; }
.np-volume-title { font-weight: 600; color: #1f4e79; margin-bottom: 8px; }
.np-chapter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 18px; }
.np-chapter-grid a { padding: 5px 0; color: #555; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-chapter-grid a:hover { color: #c0392b; }

/* ---------- 阅读页 ---------- */
.np-read-wrap { width: 100%; margin: 0 auto; padding: 26px 30px; background: #fff; min-height: 70vh; border: 1px solid #ece7dd; border-radius: 12px; }
.np-read-top { display: flex; justify-content: space-between; color: #888; font-size: .85rem; }
.np-read-title { text-align: center; font-size: 1.4rem; margin: 18px 0 6px; }
.np-read-sub { text-align: center; color: #aaa; font-size: .8rem; margin-bottom: 24px; }
.np-read-content { font-size: 1.08rem; line-height: 2; color: #333; width: 100%; }
.np-read-content p { margin: 0 0 1em; text-indent: 2em; }
.np-pay-box { background: #fdf6ec; border: 1px solid #f0d9a8; border-radius: 10px; padding: 20px; text-align: center; margin: 24px 0; }
.np-pay-gold { color: #b8860b; font-size: .9rem; }
.np-read-nav { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }

/* ---------- 作者 ---------- */
.np-author-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.np-author-card { text-align: center; padding: 18px; background: #faf7f2; border-radius: 10px; }
.np-author-avatar {
    width: 56px; height: 56px; border-radius: 50%; background: #1f4e79; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 8px;
}
.np-author-avatar.lg { width: 72px; height: 72px; font-size: 1.8rem; }
.np-author-name { font-weight: 600; }
.np-author-count { font-size: .8rem; color: #888; }
.np-author-hero { display: flex; gap: 20px; align-items: center; }
.np-author-hero-info h1 { margin: 0 0 6px; }
.np-author-intro { color: #666; font-size: .9rem; }
.np-author-stats { display: flex; gap: 20px; color: #888; font-size: .85rem; margin-top: 8px; }

/* ---------- 空态/提示 ---------- */
.np-empty { text-align: center; color: #aaa; padding: 30px; }
.np-empty.np-big { font-size: 1rem; padding: 60px 0; }
.np-result-bar { margin: 10px 0 16px; color: #666; }
.np-warn { background: #fdf6ec; border-color: #f0d9a8; }
.np-error-text { color: #c0392b; font-size: .85rem; margin-top: 6px; }

/* ---------- 页脚 ---------- */
.np-footer { background: #2b2b2b; color: #bbb; margin-top: 40px; padding: 30px 0 16px; }
.np-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.np-footer h4 { color: #fff; margin: 0 0 10px; }
.np-footer a { display: block; color: #bbb; padding: 3px 0; font-size: .88rem; }
.np-footer-brand { font-size: 1.1rem; color: #fff; font-weight: 700; margin-bottom: 8px; }
.np-footer-desc { font-size: .85rem; }
.np-footer-bottom { border-top: 1px solid #444; margin-top: 20px; padding-top: 14px; text-align: center; font-size: .8rem; color: #888; }
.np-footer-bottom a { display: inline; color: #888; padding: 0; }
.np-footer-bottom a:hover { color: #ccc; }

/* ============================================================
   用户中心 / 作家中心（沿用 default 类名，基础兼容）
   ============================================================ */
.user-center-layout {
    display: grid; grid-template-columns: 220px 1fr; gap: 20px; margin: 20px auto 0;
    max-width: 1200px; padding: 0 16px;
}
.user-sidebar { background: #fff; border: 1px solid #ece7dd; border-radius: 12px; padding: 18px; height: fit-content; }
.user-sidebar-header { text-align: center; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.user-sidebar-header .user-avatar {
    width: 56px; height: 56px; border-radius: 50%; background: #1f4e79; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 8px;
}
.user-nav { display: flex; flex-direction: column; margin-top: 10px; }
.user-nav-item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; color: #555; font-size: .9rem; }
.user-nav-item:hover { background: #f5f1e8; }
.user-nav-item.active { background: #1f4e79; color: #fff; }
.user-content { background: #fff; border: 1px solid #ece7dd; border-radius: 12px; padding: 20px; }
.user-content h2 { margin-top: 0; }
.user-info-card { background: #fff; border: 1px solid #ece7dd; border-radius: 12px; padding: 4px 18px; margin-bottom: 18px; }
.user-info-card .info-row { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #f0ece3; }
.user-info-card .info-row:last-child { border-bottom: none; }
.user-info-card .info-label { width: 128px; flex-shrink: 0; font-size: .88rem; color: #888; display: flex; align-items: center; gap: 8px; margin-bottom: 0; }
.user-info-card .info-label i { color: #1f4e79; width: 16px; text-align: center; }
.user-info-card .info-value { flex: 1; min-width: 0; font-size: .95rem; font-weight: 600; color: #2b2b2b; }
.user-info-card .expire { margin-left: 8px; font-size: .8rem; font-weight: 400; color: #999; }
.normal-badge { display: inline-block; background: #eef1f4; color: #64748b; padding: 2px 12px; border-radius: 12px; font-size: .8rem; font-weight: 500; }
.info-empty { color: #bbb; font-weight: 400; }
.user-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.stat-card { background: #faf7f2; border-radius: 10px; padding: 16px; text-align: center; color: #888; }
.stat-card i { color: #1f4e79; font-size: 1.3rem; }
.stat-value { font-size: 1.3rem; font-weight: 700; color: #2b2b2b; margin: 4px 0; }
.vip-tag, .vip-badge { background: #b8860b; color: #fff; padding: 1px 8px; border-radius: 10px; font-size: .75rem; }
.sign-cta { text-align: center; margin-top: 16px; }
.btn-large { padding: 10px 30px; }

/* 表单与表格通用 */
.user-content form label { display: block; font-size: .85rem; color: #555; margin: 10px 0 4px; }
.user-content input[type=text], .user-content input[type=password], .user-content input[type=email],
.user-content textarea, .user-content select {
    width: 100%; max-width: 420px; padding: 8px 12px; border: 1px solid #ddd5c5; border-radius: 8px; font-size: .9rem;
}
.user-content button, .user-content input[type=submit] {
    background: #1f4e79; color: #fff; border: 0; padding: 8px 20px; border-radius: 20px; cursor: pointer; margin-top: 12px;
}
.user-content table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .88rem; }
.user-content th, .user-content td { border: 1px solid #eee; padding: 8px 10px; text-align: left; }
.user-content th { background: #faf7f2; }
.alert { background: #e8f5e9; color: #2e7d32; padding: 10px 14px; border-radius: 8px; margin: 10px 0; }
.error { background: #fdecea; color: #c0392b; padding: 10px 14px; border-radius: 8px; margin: 10px 0; }

/* 简单表单页（登录/注册/找回） */
.container { max-width: 420px; margin: 30px auto; background: #fff; border: 1px solid #ece7dd; border-radius: 12px; padding: 26px; }
.container h2 { margin-top: 0; color: #1f4e79; }
.container form div { margin-bottom: 12px; }
.container label { display: block; font-size: .85rem; color: #555; margin-bottom: 4px; }
.container input[type=text], .container input[type=password], .container input[type=email] {
    width: 100%; padding: 9px 12px; border: 1px solid #ddd5c5; border-radius: 8px; font-size: .9rem;
}
.container button, .container input[type=submit] {
    width: 100%; background: #1f4e79; color: #fff; border: 0; padding: 10px; border-radius: 20px; cursor: pointer; margin-top: 6px;
}
/* flex 行内的小按钮（验证码、发送验证码）不撑满，让输入框占满剩余宽度 */
.container form div[style*="flex"] button,
.container form div[style*="flex"] .btn-small {
    width: auto; flex-shrink: 0; padding: 9px 16px; margin-top: 0; white-space: nowrap;
}
.container form div[style*="flex"] input { flex: 1; width: auto; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .np-main-grid { grid-template-columns: 1fr; }
    .np-featured-grid { grid-template-columns: repeat(2, 1fr); }
    .np-book-grid { grid-template-columns: repeat(3, 1fr); }
    .np-chapter-grid { grid-template-columns: repeat(2, 1fr); }
    .user-center-layout { grid-template-columns: 1fr; }
    .np-author-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .np-search input { width: 90px; }
    .np-book-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .np-update-list li { grid-template-columns: 56px minmax(0,1fr) 64px; }
    .np-update-ch { display: none; }
    .np-cat { width: 56px; font-size: .72rem; }
    .np-book-hero { flex-direction: column; }
    .np-footer-grid { grid-template-columns: 1fr; }

    /* 主编推荐：手机端左侧大封面改横向矮条，不占满屏高 */
    .np-featured-lead { flex-direction: row; }
    .np-featured-lead-cover { width: 110px; aspect-ratio: 3/4; flex-shrink: 0; }
    .np-featured-lead-info { padding: 12px 14px; }
    .np-featured-lead-title { font-size: 1rem; }
    .np-featured-lead-desc { display: none; }
    .np-featured-side { grid-template-columns: 1fr; }

    /* 书籍详情页数字条紧凑 */
    .np-book-hero-nums { gap: 16px; }

    /* 阅读页 */
    .np-read-wrap { padding: 14px 12px; }
    .np-read-content { font-size: 1rem; line-height: 1.9; }
    .np-read-nav { flex-wrap: wrap; gap: 8px; }
}

/* ============================================================
   主编推荐 · 杂志风
   ============================================================ */
.np-featured { display: grid; grid-template-columns: 320px 1fr; gap: 20px; }
@media (max-width: 900px) {
    .np-featured { grid-template-columns: 1fr; }
    .np-featured-side { grid-template-columns: 1fr; }
}
.np-featured-lead {
    display: flex; flex-direction: column; background: #fff; border-radius: 12px;
    overflow: hidden; text-decoration: none; color: inherit; border: 1px solid #ece7dd;
}
.np-featured-lead-cover { width: 100%; aspect-ratio: 3/4; object-fit: contain; background: #e9e2d2; display: block; }
.np-featured-lead-info { padding: 16px 18px 18px; }
.np-featured-badge {
    display: inline-block; background: linear-gradient(135deg, #c0392b, #e74c3c); color: #fff;
    font-size: .72rem; padding: 2px 10px; border-radius: 10px; margin-bottom: 8px;
}
.np-featured-lead-title { font-size: 1.15rem; font-weight: 700; color: #1f4e79; margin-bottom: 6px; }
.np-featured-lead-meta { font-size: .82rem; color: #888; margin-bottom: 8px; }
.np-featured-lead-desc { font-size: .85rem; color: #555; line-height: 1.7; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.np-featured-side { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-content: start; }

/* VIP 畅销榜 */
.np-vip-sales { margin-top: 20px; }
.np-vip-sales-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.np-vip-sale-item { display: flex; align-items: center; gap: 10px; padding: 10px; background: #fdf8ee; border: 1px solid #f0e2c0; border-radius: 10px; text-decoration: none; color: inherit; transition: all .2s; min-width: 0; overflow: hidden; }
.np-vip-sale-item:hover { transform: translateY(-2px); border-color: #b8860b; }
.np-vip-rank { font-size: 1.2rem; font-weight: 800; color: #b8860b; width: 20px; text-align: center; }
.np-vip-sale-item img { width: 36px; height: 48px; object-fit: cover; border-radius: 4px; }
.np-vip-sale-info { min-width: 0; }
.np-vip-sale-title { font-size: .88rem; font-weight: 600; color: #2b2b2b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-vip-sale-meta { font-size: .75rem; color: #999; margin-top: 2px; }
.np-featured-item {
    display: flex; gap: 10px; padding: 10px; background: #fff; border: 1px solid #ece7dd;
    border-radius: 10px; text-decoration: none; color: inherit; transition: all .2s;
}
.np-featured-item:hover { border-color: #1f4e79; transform: translateY(-2px); }
.np-featured-no {
    font-size: 1rem; font-weight: 800; color: #c0392b; width: 20px; text-align: center; line-height: 64px;
}
.np-featured-item img { width: 48px; height: 64px; object-fit: cover; border-radius: 4px; }
.np-featured-item-info { flex: 1; min-width: 0; }
.np-featured-item-title { font-size: .88rem; font-weight: 600; color: #2b2b2b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-featured-item-meta { font-size: .75rem; color: #999; margin-top: 3px; }

/* ============================================================
   最新更新列表 · 列宽修正
   ============================================================ */
.np-update-list li { grid-template-columns: 80px minmax(0, 1.1fr) minmax(0, 1fr) 78px; }
.np-cat { display: inline-block; width: 80px; color: #888; font-size: .8rem; white-space: nowrap; overflow: hidden; text-align: center; }
.np-update-book { min-width: 0; }
.np-update-book .np-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.np-update-ch { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

/* ============================================================
   用户下拉菜单 · hover 桥接
   ============================================================ */
.np-user-menu { position: relative; padding: 8px 0; margin: -8px 0; }
.np-user-drop { top: 100%; padding-top: 8px; }

/* ============================================================
   书架
   ============================================================ */
.bookshelf-list { display: grid; gap: 12px; }
.bookshelf-item {
    display: flex; gap: 14px; align-items: center; padding: 12px;
    background: #faf7f2; border-radius: 10px; border: 1px solid #ece7dd;
}
.bookshelf-cover img {
    width: 50px; height: 68px; object-fit: cover; border-radius: 5px; display: block;
}
.bookshelf-info { flex: 1; min-width: 0; }
.bookshelf-info h3 { margin: 0; font-size: .95rem; }
.bookshelf-info h3 a { color: #1f4e79; }
.bookshelf-info .author { margin: 2px 0; font-size: .8rem; color: #888; }
.bookshelf-info .last-read { margin: 2px 0; font-size: .8rem; color: #666; }
.bookshelf-info .last-read a { color: #c0392b; }
.bookshelf-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-sm { padding: 5px 14px; font-size: .8rem; border-radius: 16px; }
.btn-outline.btn-sm { background: #fff; border: 1px solid #ddd5c5; color: #666; }
.empty-state { text-align: center; padding: 40px; color: #999; }
.empty-state i { font-size: 2.5rem; color: #ccd; display: block; margin-bottom: 10px; }
.empty-state .btn-primary { display: inline-block; margin-top: 10px; padding: 8px 20px; border-radius: 20px; color: #fff; }

/* ============================================================
   签到
   ============================================================ */
.sign-card {
    text-align: center; padding: 30px 20px; background: #f0ece2; border: 1px solid #e4dccb;
    color: #2b2b2b; border-radius: 14px; margin-bottom: 16px;
}
.sign-icon { font-size: 2.5rem; margin-bottom: 8px; color: #b8860b; }
.sign-card h3 { margin: 0 0 16px; font-size: 1.15rem; color: #1f4e79; }
.sign-reward-preview { margin-bottom: 18px; }
.reward-label { font-size: .82rem; color: #666; }
.reward-number { font-size: 2.2rem; font-weight: 800; color: #b8860b; line-height: 1.2; }
.reward-unit { font-size: .8rem; color: #888; }
.reward-detail { font-size: .8rem; color: #666; margin-top: 6px; }
.sign-btn {
    background: #1f4e79; color: #fff; border: 0; padding: 10px 32px; border-radius: 24px;
    font-size: 1rem; font-weight: 700; cursor: pointer;
}
.signed-badge {
    display: inline-block; background: #e4dccb; color: #666; padding: 8px 20px; border-radius: 20px; font-size: .9rem;
}
.user-stats-mini {
    display: flex; gap: 20px; background: #faf7f2; padding: 14px 18px; border-radius: 10px; margin-bottom: 12px; font-size: .88rem; color: #555;
}
.rule-tip { font-size: .82rem; color: #999; }

/* ============================================================
   VIP 中心
   ============================================================ */
.vip-status-card {
    display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 14px;
    background: #faf7f2; border: 1px solid #ece7dd; margin-bottom: 16px;
}
.vip-status-card i { font-size: 2rem; color: #b8860b; }
.vip-status-card.active { background: linear-gradient(135deg, #2b2b2b, #4a3820); color: #ffd766; }
.vip-status-card.active i { color: #ffd766; }
.vip-status-card .status-text { font-size: 1.1rem; font-weight: 700; }
.vip-status-card .expire-info, .vip-status-card .upgrade-tip { font-size: .82rem; opacity: .85; }
.vip-exchange-box, .vip-pay-box {
    background: #fff; border: 1px solid #ece7dd; border-radius: 12px; padding: 18px; margin-bottom: 14px;
}
.vip-exchange-box h3, .vip-pay-box h3 { margin: 0 0 8px; font-size: 1rem; color: #1f4e79; }
.vip-exchange-box p, .vip-pay-box p { font-size: .85rem; color: #666; margin: 0 0 12px; }
.vip-form .month-selector { margin-bottom: 10px; }
.vip-form label { font-size: .85rem; color: #555; display: block; margin-bottom: 4px; }
.vip-select {
    width: 100%; max-width: 360px; padding: 8px 12px; border: 1px solid #ddd5c5; border-radius: 8px; font-size: .9rem; background: #fff;
}
.vip-form .btn-primary { margin-top: 6px; display: inline-block; }

/* ===== Author: novel_edit ===== */
.novel-edit-form .form-group { margin-bottom: 20px; }
.novel-edit-form .form-group label { display: block; font-weight: 500; margin-bottom: 6px; }
.novel-edit-form .form-group input,
.novel-edit-form .form-group select,
.novel-edit-form .form-group textarea {
    width: 100%; max-width: 500px; padding: 10px 14px;
    border: 1px solid #d1d5db; border-radius: 8px; font-size: .95rem;
}
.novel-edit-form .form-group textarea { max-width: 100%; min-height: 120px; }
.novel-edit-form .cover-wrapper { margin-bottom: 10px; }
.novel-edit-form .cover-preview { max-height: 120px; border-radius: 8px; border: 1px solid #e2e8f0; }
.novel-edit-form .form-actions { display: flex; gap: 12px; margin-top: 10px; }

/* ===== Extracted from templates/novelpro/author/author_works.php ===== */
.cover-thumb { width: 50px; height: 70px; object-fit: cover; border-radius: 6px; display: block; }
.vip-badge { padding: 2px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; display: inline-block; }
.vip-badge.approved { background: #d1fae5; color: #065f46; }
.vip-badge.pending   { background: #fef3c7; color: #92400e; }
.vip-badge.rejected  { background: #fee2e2; color: #991b1b; }
.vip-badge.free      { background: #f3f4f6; color: #6b7280; }
.action-cell { vertical-align: middle; }
.action-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.action-link { font-size: 0.8rem; color: #3b82f6; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.action-link:hover { text-decoration: underline; }
.action-link.danger { color: #ef4444; }
.table-responsive { overflow-x: auto; background: white; border-radius: 16px; border: 1px solid #eef2f6; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th { background: #f1f5f9; font-weight: 600; padding: 12px 16px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.data-table tbody tr:hover { background: #f8fafc; }

/* ===== Extracted from templates/novelpro/author/income.php ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #eef2f6;
    transition: all 0.2s;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.stat-card .stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 6px 0 2px;
    color: #1e293b;
}
.stat-card .stat-unit {
    font-size: 0.7rem;
    color: #94a3b8;
}
.stat-card.primary .stat-value { color: #3b82f6; }
.stat-card.success .stat-value { color: #10b981; }
.stat-card.warning .stat-value { color: #f59e0b; }
.stat-card.purple .stat-value { color: #8b5cf6; }

.filter-form {
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid #eef2f6;
}

.filter-inner {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 0 0 auto;
}
.filter-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}

.fixed-select {
    box-sizing: border-box;
    height: 38px;
    padding: 0 32px 0 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 0.9rem;
    outline: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    max-width: 100%;
}
.fixed-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.filter-group .fixed-select {
    width: 160px;
}
.filter-group-novel .novel-select {
    width: 220px;
}
.fixed-select option {
    max-width: 220px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.filter-group .btn-primary,
.filter-group .btn-outline {
    height: 38px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    width: auto !important;
    flex: 0 0 auto !important;
    white-space: nowrap;
    cursor: pointer;
}
.filter-group .btn-primary {
    padding: 0 24px;
    border: none;
    background: #3b82f6;
    color: #fff;
}
.filter-group .btn-primary:hover {
    background: #2563eb;
}
.filter-group .btn-outline {
    padding: 0 18px;
    border: 1px solid #d1d5db;
    background: transparent;
    color: #475569;
}
.filter-group .btn-outline:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.income-detail-title {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
}

.table-responsive {
    overflow-x: auto;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.data-table th {
    background: #f1f5f9;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.data-table tbody tr:hover {
    background: #f8fafc;
}
.data-table .text-right { text-align: right; }
.text-success { color: #10b981; }
.text-danger { color: #ef4444; }

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
    transition: 0.2s;
}
.page-link.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}
.page-link:hover:not(.active) {
    border-color: #3b82f6;
    color: #3b82f6;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .filter-group {
        flex: 1 1 40%;
        min-width: 160px;
    }
    .filter-group .fixed-select,
    .filter-group-novel .novel-select {
        width: 100%;
    }
    .filter-group .btn-primary,
    .filter-group .btn-outline {
        width: 100% !important;
    }
}

/* ===== Extracted from templates/novelpro/author/chapter_list.php ===== */
.vip-badge { background: #f59e0b; color: #fff; padding: 0 8px; border-radius: 12px; font-size: 0.7rem; font-weight: 600; }
.table-responsive { overflow-x: auto; background: white; border-radius: 16px; border: 1px solid #eef2f6; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th { background: #f1f5f9; font-weight: 600; padding: 12px 16px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.data-table tbody tr:hover { background: #f8fafc; }
.action-cell { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.action-link { font-size: 0.8rem; color: #3b82f6; text-decoration: none; white-space: nowrap; }
.action-link:hover { text-decoration: underline; }
.action-link.danger { color: #ef4444; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; background: white; border: 1px solid #e2e8f0; border-radius: 10px; color: #475569; text-decoration: none; }
.page-link.active { background: #3b82f6; color: white; border-color: #3b82f6; }

/* ===== Extracted from templates/novelpro/author/apply_author.php ===== */
.file-preview { display: flex; gap: 20px; margin-top: 10px; flex-wrap: wrap; }
.file-preview-item { position: relative; width: 100px; height: 100px; border: 2px dashed #ddd; border-radius: 8px; overflow: hidden; background: #f9f9f9; display: flex; align-items: center; justify-content: center; }
.file-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.file-preview-item .remove-preview { position: absolute; top: 2px; right: 2px; background: rgba(255,0,0,0.7); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; line-height: 20px; text-align: center; cursor: pointer; }
.file-preview-item .file-name { font-size: 10px; text-align: center; word-break: break-all; padding: 2px; }
#uploadProgress { display: none; margin: 20px 0; }
.progress-bar { width: 100%; height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; }
.progress-bar .progress-fill { height: 100%; width: 0%; background: #3b82f6; transition: width 0.3s; }
#messageBox { margin-bottom: 20px; padding: 12px; border-radius: 8px; display: none; }
#messageBox.success { display: block; background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
#messageBox.error { display: block; background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.submit-loading { opacity: 0.6; pointer-events: none; }

/* ===== Extracted from templates/novelpro/author/chapter_edit.php ===== */
#editChapterForm { max-width: 780px; }
.form-group { display: flex; align-items: center; margin-bottom: 18px; gap: 16px; }
.form-group label { width: 180px; flex-shrink: 0; font-weight: 500; color: #334155; }
.form-group input, .form-group select { flex: 1; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 0.9rem; background: #fff; }
.form-group textarea { flex:1; padding:10px 12px; border:1px solid #d1d5db; border-radius:8px; font-size:0.9rem; resize: vertical; }
.form-group:has(textarea) { align-items: flex-start; }
.btn-primary { width: 100%; padding:12px; border: none; border-radius: 12px; background-color: #3b82f6; color: white; font-size: 0.95rem; cursor: pointer; margin-bottom:12px; }
.btn-outline { display: inline-block; padding: 8px 16px; border:1px solid #d1d5db; border-radius: 8px; color:#4b5563; text-decoration: none; font-size:0.9rem; }
.alert { padding: 10px 14px; background: #dcfce7; color:#166534; border-radius:8px; margin-bottom:16px; }
.error { padding: 10px 14px; background: #fee2e2; color:#991b1b; border-radius:8px; margin-bottom:16px; }

/* ===== Extracted from templates/novelpro/author/withdraw.php ===== */
.alert {
    padding: 10px 14px;
    background: #dcfce7;
    color:#166534;
    border-radius:8px;
    margin-bottom:16px;
}
.error {
    padding: 10px 14px;
    background: #fee2e2;
    color:#991b1b;
    border-radius:8px;
    margin-bottom:16px;
}
.info-box {
    background: #f8fafc;
    padding: 20px 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid #eef2f6;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap:16px;
}
.info-row {
    display:flex;
    flex-direction:column;
}
.info-label {
    font-size:0.85rem;
    color:#64748b;
    margin-bottom:4px;
}
.info-value {
    font-size:1rem;
    font-weight:600;
}
.highlight {
    color: #3b82f6;
    font-weight: 700;
    font-size: 1.4rem;
}
.unit {
    font-size:0.9rem;
    font-weight:400;
    color:#64748b;
}
.withdraw-info-section {
    background: white;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.withdraw-info-section h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
    margin-bottom: 20px;
}
.info-display {
    background: #f8fafc;
    padding: 20px;
    border-radius:12px;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap:18px;
}
.info-item {
    display:flex;
    flex-direction:column;
}
.info-item-label {
    font-size:0.85rem;
    color:#64748b;
    margin-bottom:5px;
}
.info-item-val {
    font-size:0.95rem;
    font-weight:500;
    color:#1e293b;
}
.view-qrcode-btn {
    border:1px solid #cbd5e1;
    background:#ffffff;
    color:#3b82f6;
    border-radius:8px;
    padding:6px 12px;
    cursor:pointer;
    font-size:0.88rem;
}
.view-qrcode-btn:hover {
    background:#eff6ff;
}
.required { color: #ef4444; }
.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    gap: 16px;
}
.form-group label {
    width: 180px;
    flex-shrink: 0;
    font-weight: 500;
    color: #334155;
}
.form-group input,
.form-group select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
}
.form-group:has(input[type="file"]) {
    align-items: flex-start;
}
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    padding-left:196px;
}
.withdraw-form .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    gap:16px;
}
.withdraw-form label {
    width:180px;
    flex-shrink:0;
    font-weight: 500;
    color:#334155;
    margin-bottom:0;
}
.withdraw-form input {
    flex:1;
    max-width:300px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size:0.9rem;
}
.btn-primary {
    width: 100%;
    padding:12px;
    border: none;
    border-radius: 12px;
    background-color: #3b82f6;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    margin-bottom:12px;
}
.btn-primary:disabled {
    background:#94a3b8;
    cursor:not-allowed;
}
.btn-outline {
    display: inline-block;
    padding: 8px 16px;
    border:1px solid #d1d5db;
    border-radius: 8px;
    color:#4b5563;
    text-decoration: none;
    font-size:0.9rem;
}
.btn-outline.btn-sm {
    padding: 4px 12px;
    font-size: 0.75rem;
}
.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: 16px;
    border: 1px solid #eef2f6;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.data-table th {
    background: #f1f5f9;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.data-table tbody tr:hover {
    background: #f8fafc;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
}
.page-link.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}
hr {
    border:0;
    border-bottom:1px solid #e2e8f0;
    margin:28px 0;
}
.qrcode-modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.65);
    z-index:9999;
    align-items:center;
    justify-content:center;
}
.modal-wrap{
    background:#fff;
    padding:24px;
    border-radius:16px;
    position:relative;
    max-width:420px;
    margin:0 16px;
}
.modal-close{
    position:absolute;
    right:16px;
    top:10px;
    font-size:26px;
    cursor:pointer;
    color:#64748b;
}
#modalQrcodeImg{
    width:100%;
    border-radius:10px;
    display:block;
}

/* ===== Extracted from templates/novelpro/author/volume_list.php ===== */
.table-responsive { overflow-x: auto; background: white; border-radius: 16px; border: 1px solid #eef2f6; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th { background: #f1f5f9; font-weight: 600; padding: 12px 16px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.data-table tbody tr:hover { background: #f8fafc; }
.action-cell { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.action-link { font-size: 0.8rem; color: #3b82f6; text-decoration: none; white-space: nowrap; }
.action-link:hover { text-decoration: underline; }
.action-link.danger { color: #ef4444; }

/* ===== Extracted from templates/novelpro/user/history.php ===== */
.user-content h2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.history-count {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: normal;
    margin-left: 6px;
}
.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: 16px;
    border: 1px solid #eef2f6;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.data-table th {
    background: #f1f5f9;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.data-table tbody tr:hover {
    background: #f8fafc;
}
.data-table a {
    color: #3b82f6;
    text-decoration: none;
}
.data-table a:hover {
    text-decoration: underline;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 24px 0;
    flex-wrap: wrap;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    transition: 0.2s;
    font-size: 0.9rem;
}
.page-link:hover:not(.active) {
    border-color: #3b82f6;
    color: #3b82f6;
}
.page-link.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    font-weight: 600;
}
.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 38px;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ===== Extracted from templates/novelpro/user/recharge.php ===== */
.recharge-balance{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;background:linear-gradient(135deg,#eff6ff,#f8fafc);border:1px solid #e2e8f0;border-radius:16px;padding:20px 24px;margin-bottom:24px}.recharge-balance-left{display:flex;align-items:baseline;gap:6px}.recharge-balance-left .rb-label{font-size:.85rem;color:#64748b}.recharge-balance-left .rb-value{font-size:1.8rem;font-weight:700;color:#3b82f6;line-height:1}.recharge-balance-left .rb-unit{font-size:.85rem;color:#64748b}.recharge-balance-right{font-size:.85rem;color:#475569;background:#fff;border:1px solid #e2e8f0;border-radius:30px;padding:6px 16px}.recharge-balance-right i{color:#f59e0b;margin-right:4px}.recharge-form{background:#fff;border:1px solid #eef2f6;border-radius:16px;padding:24px;box-shadow:0 1px 3px rgba(0,0,0,.03)}.recharge-form .form-group{display:flex;align-items:center;gap:16px;margin-bottom:18px}.recharge-form .form-group label{width:140px;flex-shrink:0;font-weight:500;color:#334155;margin:0;display:block}.recharge-form .form-group input,.recharge-form .form-group select{flex:1;max-width:360px;padding:10px 14px;border:1px solid #d1d5db;border-radius:8px;font-size:.95rem;background:#fff;outline:none;transition:border .2s,box-shadow .2s}.recharge-form .form-group input:focus,.recharge-form .form-group select:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.1)}.recharge-actions{display:flex;gap:12px;align-items:center;padding-left:156px;margin-top:8px}.recharge-actions .btn-primary,.recharge-actions .btn-outline{width:auto!important;flex:0 0 auto!important;min-width:100px;padding:8px 20px;border-radius:30px;font-weight:500;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;box-sizing:border-box}.recharge-note{margin-top:24px;padding:14px 18px;background:#f8fafc;border-left:4px solid #f59e0b;border-radius:0 10px 10px 0;font-size:.85rem;color:#475569;line-height:1.7}.recharge-note p{margin:2px 0}.recharge-history-title{margin:32px 0 16px;font-size:1.1rem;font-weight:600;color:#1e293b}.table-responsive{overflow-x:auto;background:#fff;border-radius:16px;border:1px solid #eef2f6}@media (max-width:768px){.recharge-form .form-group{flex-direction:column;align-items:stretch;gap:6px}.recharge-form .form-group label{width:auto}.recharge-form .form-group input,.recharge-form .form-group select{max-width:100%}.recharge-actions{padding-left:0;flex-direction:row;flex-wrap:wrap;justify-content:center}.recharge-actions .btn-primary,.recharge-actions .btn-outline{flex:1;min-width:120px}.recharge-balance-left .rb-value{font-size:1.4rem}}

/* ===== Extracted from templates/novelpro/user/vip.php ===== */
.pay-method { margin: 15px 0; }
.pay-method label { margin-right: 15px; font-weight: normal; }
.pay-method input { margin-right: 5px; }

/* ============================================================
   统一响应式（2026-10 重构）：汉堡菜单 + 移动端 Header + 防溢出
   本区块位于文件末尾，用于统一覆盖此前分散媒体查询的冲突规则
   ============================================================ */
html, body { overflow-x: hidden; }
img { max-width: 100%; }

/* ---------- ≤900px：平板 / 手机，启用汉堡与下拉导航 ---------- */
@media (max-width: 900px) {
    .np-menu-toggle { display: inline-flex; }
    .np-header-inner {
        height: auto; min-height: 60px; flex-wrap: wrap;
        gap: 10px 12px; padding-top: 10px; padding-bottom: 10px;
    }
    .np-menu-toggle { order: 1; }
    .np-logo { order: 2; }
    .np-user { order: 3; margin-left: auto; gap: 8px; }
    .np-search {
        order: 4; flex: 1 1 100%; width: 100%;
        background: #faf7f2;
    }
    .np-search input { flex: 1; width: auto; min-width: 0; }

    /* 主导航改为整宽下拉面板，默认收起 */
    .np-nav {
        display: none; position: absolute; top: 100%; left: -16px; right: -16px;
        flex-direction: column; gap: 2px; background: #fff;
        border-bottom: 1px solid #ece7dd; box-shadow: 0 10px 24px rgba(0,0,0,.12);
        padding: 10px 16px 14px; z-index: 110;
    }
    .np-header.menu-open .np-nav { display: flex; }
    .np-nav a {
        padding: 11px 12px; border-radius: 10px; font-size: .95rem;
        width: 100%; color: #444;
    }
    .np-nav a.active { background: #1f4e79; color: #fff; }

    /* 登录 / 注册按钮保持横排，不被压缩竖排 */
    .np-user .np-btn { flex-shrink: 0; padding: 7px 14px; white-space: nowrap; }
    .np-gold { font-size: .82rem; }
    .np-username { font-size: .85rem; }

    /* 主编推荐：变单列后大封面改横向矮条，不占满屏高（放基础规则之后以正确覆盖） */
    .np-featured-lead { flex-direction: row; }
    .np-featured-lead-cover { width: 120px; aspect-ratio: 3/4; flex-shrink: 0; }
    .np-featured-lead-info { padding: 14px 16px; align-self: stretch; }
    .np-featured-lead-desc { display: none; }

    /* VIP 榜平板降为两列，避免横向条目被挤压 */
    .np-vip-sales-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- ≤600px：手机，网格进一步降列（修正此前被覆盖的断点） ---------- */
@media (max-width: 600px) {
    /* VIP 榜手机端只显示封面，三列封面墙 */
    .np-vip-sales-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .np-vip-sale-item { display: block; padding: 0; background: none; border: none; overflow: visible; }
    .np-vip-sale-item:hover { transform: none; border-color: transparent; }
    .np-vip-rank, .np-vip-sale-info { display: none; }
    .np-vip-sale-item img { width: 100%; height: auto; aspect-ratio: 3/4; }
    /* 随机荐手机端两列等宽，填满内容区 */
    .np-tags { grid-template-columns: repeat(2, 1fr); }
    .np-featured-side { grid-template-columns: 1fr; }
    .np-book-hero-nums { gap: 14px; flex-wrap: wrap; }
    .np-book-actions { flex-wrap: wrap; }
    .np-book-actions .np-btn { flex: 1; justify-content: center; }
}

/* ---------- ≤480px：小屏手机，隐藏语言切换并收紧元素 ---------- */
@media (max-width: 480px) {
    .np-lang { display: none; }
    .np-user { gap: 6px; }
    .np-user .np-btn { padding: 7px 12px; font-size: .85rem; }
    .np-logo { font-size: 1.1rem; }
    .np-logo img, .np-logo-mark { height: 32px; width: auto; }
    .np-logo-mark { width: 32px; height: 32px; }
    .np-panel { padding: 14px 14px; }
    .np-featured-item { padding: 8px; }
    .np-featured-item img { width: 42px; height: 56px; }
}

/* ---------- ≤380px：超窄屏，完本改单列避免右侧裁切 ---------- */
@media (max-width: 380px) {
    .np-finished-grid { grid-template-columns: 1fr; }
    .np-book-grid { grid-template-columns: 1fr; }
    .np-user .np-btn { padding: 6px 10px; }
    .np-gold { display: none; }
}

