/* 轻舟小说 · 两端样式 */
.ls-novel {
  --nv-primary: var(--ls-primary, #3b82f6);
  --nv-primary-hover: var(--ls-primary-hover, #2563eb);
  --nv-primary-soft: var(--ls-primary-light, #eff6ff);
  --nv-primary-rgb: var(--ls-primary-rgb, 59, 130, 246);
  --nv-bg: var(--ls-bg, #f8fafc);
  --nv-card: var(--ls-card-bg, #fff);
  --nv-text: var(--ls-text, #1f2937);
  --nv-text-2: var(--ls-text-secondary, #4b5563);
  --nv-muted: var(--ls-text-muted, #9ca3af);
  --nv-line: var(--ls-border-light, #f3f4f6);
  --nv-line-2: var(--ls-border, #e5e7eb);
  --nv-radius: var(--ls-radius-lg, 8px);
  --nv-shadow: 0 1px 2px rgba(17, 24, 39, .04);
  --nv-font-size: 18px;
  --nv-width: 760px;
  color: var(--nv-text);
  background: var(--nv-bg);
  padding: 14px 0 40px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
.ls-novel * { box-sizing: border-box; }
.ls-novel a { color: inherit; text-decoration: none; }
.ls-novel.novel-page-root, .ls-novel { max-width: 1200px; margin: 0 auto; padding-inline: 16px; }
.ls-novel.novel-night { --nv-bg: #15171c; --nv-card: #1f222a; --nv-text: #e8eaf0; --nv-text-2: #b9bfcc; --nv-line: #2b2f39; --nv-line-2: #333845; }

/* ===== 顶部导航 ===== */
.nv-top {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 12px 18px; margin-bottom: 14px;
  background: var(--nv-card); border: 1px solid var(--nv-line-2); border-radius: var(--nv-radius);
}
.nv-top-slim { padding: 10px 18px; }
.nv-logo { font-size: 20px; font-weight: 700; letter-spacing: .5px; white-space: nowrap; }
.nv-logo i { font-style: normal; color: var(--nv-primary); }
.nv-nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--nv-text-2); }
.nv-nav a { position: relative; padding: 4px 0; }
.nv-nav a:hover, .nv-nav a.on { color: var(--nv-primary); }
.nv-nav a.on { font-weight: 600; }
.nv-search { display: flex; align-items: center; margin-left: auto; }
.nv-search input {
  width: 210px; height: 34px; padding: 0 12px; font-size: 13px; color: var(--nv-text);
  background: var(--nv-bg); border: 1px solid var(--nv-line-2); border-right: 0;
  border-radius: 8px 0 0 8px; outline: none;
}
.nv-search input:focus { border-color: var(--nv-primary); }
.nv-search button {
  height: 34px; padding: 0 16px; font-size: 13px; cursor: pointer; color: #fff;
  background: var(--nv-primary); border: 0; border-radius: 0 8px 8px 0;
}
.nv-top-links a { font-size: 13px; color: var(--nv-text-2); white-space: nowrap; }
.nv-top-links a:hover { color: var(--nv-primary); }

/* ===== 通用卡片 ===== */
.nv-card {
  background: var(--nv-card); border: 1px solid var(--nv-line-2);
  border-radius: var(--nv-radius); padding: 16px 18px; margin-bottom: 14px;
}
.nv-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 14px;
}
.nv-card-head h3 {
  display: flex; align-items: center; gap: 8px; margin: 0;
  font-size: 16px; font-weight: 600; color: var(--nv-text);
}
.nv-card-head h3::before {
  content: ''; width: 3px; height: 15px; border-radius: 2px; background: var(--nv-primary);
}
.nv-card-head a, .nv-card-head small { font-size: 12px; color: var(--nv-muted); font-weight: 400; }
.nv-card-head a:hover { color: var(--nv-primary); }
.nv-empty { padding: 36px 0; text-align: center; color: var(--nv-muted); font-size: 13px; }

/* ===== 主推区 ===== */
.nv-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; margin-bottom: 14px; }
.nv-hero-main {
  display: flex; gap: 22px; padding: 22px;
  background: linear-gradient(135deg, #1f2937 0%, #111827 55%, #1e293b 100%);
  border-radius: var(--nv-radius); color: #fff; overflow: hidden; position: relative;
  min-height: 300px;
}
.nv-hero-main::after {
  content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(var(--nv-primary-rgb), .45), transparent 68%);
  pointer-events: none;
}
.nv-hero-cover {
  position: relative; flex: 0 0 190px; width: 190px; aspect-ratio: 3 / 4;
  border-radius: 8px; overflow: hidden; background: linear-gradient(145deg, #6b7280, #374151);
  display: grid; place-items: center; font-size: 56px; font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}
.nv-hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nv-hero-flag {
  position: absolute; left: 0; top: 10px; padding: 2px 9px;
  font-style: normal; font-size: 11px; color: #fff;
  background: var(--nv-primary); border-radius: 0 999px 999px 0;
}
.nv-hero-info { display: flex; flex-direction: column; min-width: 0; position: relative; z-index: 1; }
.nv-hero-kicker { font-size: 12px; color: rgba(255, 255, 255, .6); letter-spacing: .8px; }
.nv-hero-info h1 { margin: 6px 0 0; font-size: 28px; line-height: 1.3; font-weight: 700; }
.nv-hero-sub { margin: 6px 0 0; font-size: 13px; color: rgba(255, 255, 255, .72); }
.nv-hero-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.nv-hero-desc {
  margin: 14px 0 0; font-size: 13px; line-height: 1.85; color: rgba(255, 255, 255, .78);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.nv-hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.nv-hero-tags i {
  font-style: normal; font-size: 11.5px; padding: 2px 9px; border-radius: 999px;
  color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .12);
}
.nv-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 18px; }
.nv-hero-empty { display: flex; flex-direction: column; justify-content: center; }
.nv-hero-empty h2 { margin: 0 0 8px; font-size: 22px; }
.nv-hero-empty p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 13px; }

.nv-hero-side { display: flex; flex-direction: column; gap: 14px; }
.nv-side-card {
  flex: 1; padding: 14px 16px; background: var(--nv-card);
  border: 1px solid var(--nv-line-2); border-radius: var(--nv-radius);
}
.nv-side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.nv-side-head h3 { margin: 0; font-size: 14px; font-weight: 600; }
.nv-side-head a { font-size: 12px; color: var(--nv-muted); }
.nv-notice { margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--nv-text-2); }
.nv-shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.nv-shelf a {
  aspect-ratio: 3 / 4; border-radius: 5px; overflow: hidden;
  background: linear-gradient(145deg, #94a3b8, #475569); color: #fff;
  display: grid; place-items: center; font-size: 16px; font-weight: 600;
}
.nv-shelf img { width: 100%; height: 100%; object-fit: cover; }
.nv-rank-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.nv-rank-mini li { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.nv-rank-mini em {
  flex: 0 0 16px; font-style: normal; font-size: 12px; font-weight: 600;
  color: var(--nv-muted); text-align: center;
}
.nv-rank-mini em.m1 { color: #ef4444; }
.nv-rank-mini em.m2 { color: #f59e0b; }
.nv-rank-mini em.m3 { color: #eab308; }
.nv-rank-mini a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-rank-mini a:hover { color: var(--nv-primary); }
.nv-rank-mini span { font-size: 11px; color: var(--nv-muted); }

/* ===== 三栏 ===== */
.nv-cols { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; margin-bottom: 14px; }
.nv-cols > .nv-card { margin-bottom: 0; }

.nv-medialist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.nv-medialist li { display: flex; gap: 12px; min-width: 0; }
.nv-thumb {
  flex: 0 0 52px; width: 52px; height: 70px; border-radius: 5px; overflow: hidden;
  background: linear-gradient(145deg, #94a3b8, #475569); color: #fff;
  display: grid; place-items: center; font-size: 18px; font-weight: 600;
}
.nv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nv-media-body { min-width: 0; flex: 1; }
.nv-media-title { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-media-title:hover { color: var(--nv-primary); }
.nv-media-meta { margin-top: 2px; font-size: 11.5px; color: var(--nv-muted); }
.nv-media-body p {
  margin: 4px 0 0; font-size: 12px; line-height: 1.65; color: var(--nv-text-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.nv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px 12px; }
.nv-grid-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.nv-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.nv-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 14px 12px; }
.nv-book { display: block; min-width: 0; }
.nv-cover {
  width: 100%; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden;
  background: linear-gradient(145deg, #94a3b8, #475569); color: #fff;
  display: grid; place-items: center; font-size: 26px; font-weight: 700;
  box-shadow: 0 3px 10px rgba(17, 24, 39, .1);
  transition: transform .18s ease, box-shadow .18s ease;
}
.nv-book:hover .nv-cover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(17, 24, 39, .16); }
.nv-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 没有真实封面时用不同色相区分，避免整屏同色 */
.nv-grid .nv-book:nth-child(5n+1) .nv-cover,
.nv-shelf a:nth-child(5n+1) { background: linear-gradient(145deg, #8ea2b8, #45566b); }
.nv-grid .nv-book:nth-child(5n+2) .nv-cover,
.nv-shelf a:nth-child(5n+2) { background: linear-gradient(145deg, #b89a8a, #6b4f43); }
.nv-grid .nv-book:nth-child(5n+3) .nv-cover,
.nv-shelf a:nth-child(5n+3) { background: linear-gradient(145deg, #8fb39a, #3f5f4b); }
.nv-grid .nv-book:nth-child(5n+4) .nv-cover,
.nv-shelf a:nth-child(5n+4) { background: linear-gradient(145deg, #a89ab8, #4f4367); }
.nv-grid .nv-book:nth-child(5n) .nv-cover,
.nv-shelf a:nth-child(5n) { background: linear-gradient(145deg, #b8a88e, #5f5343); }
.nv-cover.mini { width: 40px; height: 54px; aspect-ratio: auto; font-size: 15px; border-radius: 4px; }
.nv-book-title {
  margin-top: 8px; font-size: 13px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nv-book:hover .nv-book-title { color: var(--nv-primary); }
.nv-book-meta { margin-top: 2px; font-size: 11.5px; color: var(--nv-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nv-ranklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nv-ranklist li { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px dashed var(--nv-line); font-size: 13px; min-width: 0; }
.nv-ranklist li:last-child { border-bottom: 0; }
.nv-ranklist em {
  flex: 0 0 18px; height: 18px; display: grid; place-items: center;
  font-style: normal; font-size: 11px; font-weight: 600; color: var(--nv-muted);
  background: var(--nv-bg); border-radius: 4px;
}
.nv-ranklist em.top { background: var(--nv-primary-soft); color: var(--nv-primary); }
.nv-ranklist a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-ranklist a:hover { color: var(--nv-primary); }
.nv-ranklist span { font-size: 11px; color: var(--nv-muted); }

/* ===== 分类精选 ===== */
.nv-cat-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 22px; }
.nv-cat-col h4 { margin: 0 0 8px; padding-bottom: 7px; font-size: 13.5px; border-bottom: 1px solid var(--nv-line); }
.nv-cat-col h4 a:hover { color: var(--nv-primary); }
.nv-cat-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.nv-cat-col li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--nv-text-2); }
.nv-cat-col li a:hover b { color: var(--nv-primary); }
.nv-cat-col b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-cat-col span { flex: 0 0 auto; font-size: 11px; color: var(--nv-muted); }

/* ===== 榜单表格 ===== */
.nv-table-wrap { overflow-x: auto; }
.nv-booktable { width: 100%; border-collapse: collapse; min-width: 680px; }
.nv-booktable th {
  padding: 9px 10px; text-align: left; font-size: 12px; font-weight: 500;
  color: var(--nv-muted); background: var(--nv-bg);
}
.nv-booktable th:first-child { border-radius: 6px 0 0 6px; }
.nv-booktable th:last-child { border-radius: 0 6px 6px 0; }
.nv-booktable td { padding: 11px 10px; font-size: 13px; border-bottom: 1px solid var(--nv-line); }
.nv-booktable tr:last-child td { border-bottom: 0; }
.nv-booktable tr:hover td { background: var(--nv-bg); }
.nv-tlink { font-weight: 500; }
.nv-tlink:hover { color: var(--nv-primary); }
.nv-booktable small { margin-left: 8px; font-size: 11px; color: var(--nv-muted); }
.nv-rank-no {
  display: inline-grid; place-items: center; width: 20px; height: 20px;
  font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--nv-muted);
  background: var(--nv-bg); border-radius: 4px;
}
.nv-rank-no.top { background: var(--nv-primary-soft); color: var(--nv-primary); }

/* ===== 文本榜 / 双栏 ===== */
.nv-textlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.nv-textlist li { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.nv-textlist em { flex: 0 0 18px; font-style: normal; font-size: 11.5px; color: var(--nv-muted); text-align: center; }
.nv-textlist a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-textlist a:hover { color: var(--nv-primary); }
.nv-textlist span { flex: 0 0 auto; font-size: 11px; color: var(--nv-muted); }
.nv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nv-two > .nv-card { margin-bottom: 0; }
.nv-foot {
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center;
  padding: 22px 0 6px; font-size: 12.5px; color: var(--nv-muted);
}

/* ===== 列表页 / 排行页 ===== */
.nv-page-head { display: flex; align-items: center; gap: 12px; margin: 6px 2px 14px; }
.nv-page-head h2 { margin: 0; font-size: 21px; }
.nv-page-head > span { font-size: 12.5px; color: var(--nv-muted); }
.nv-page-head .nv-btn { margin-left: auto; }
.nv-filterbar { padding: 12px 16px; margin-bottom: 14px; background: var(--nv-card); border: 1px solid var(--nv-line-2); border-radius: var(--nv-radius); display: flex; flex-direction: column; gap: 10px; }
.nv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nv-chips a {
  padding: 4px 12px; font-size: 12.5px; border-radius: 999px;
  color: var(--nv-text-2); background: var(--nv-bg); border: 1px solid transparent;
}
.nv-chips a:hover { color: var(--nv-primary); border-color: rgba(var(--nv-primary-rgb), .4); }
.nv-chips-lg { margin-bottom: 14px; }
.nv-chips-lg a { padding: 7px 18px; font-size: 13px; background: var(--nv-card); border: 1px solid var(--nv-line-2); }
.nv-listcard { padding: 18px; }
.nv-more-wrap { display: flex; justify-content: center; padding: 16px 0 0; }
.nv-rankrows { display: flex; flex-direction: column; }
.nv-rankrow {
  display: flex; align-items: center; gap: 12px; padding: 11px 4px;
  border-bottom: 1px solid var(--nv-line); min-width: 0;
}
.nv-rankrow:last-child { border-bottom: 0; }
.nv-rankrow:hover { background: var(--nv-bg); }
.nv-rank-title { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.nv-rank-title b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-rank-title small { font-size: 11.5px; color: var(--nv-muted); }
.nv-rank-score { font-weight: 600; color: var(--nv-primary); font-size: 13px; }

/* ===== 详情页 ===== */
.nv-detail {
  display: flex; gap: 24px; padding: 22px; margin-bottom: 14px;
  background: var(--nv-card); border: 1px solid var(--nv-line-2); border-radius: var(--nv-radius);
}
.nv-detail-cover {
  flex: 0 0 180px; width: 180px; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden;
  background: linear-gradient(145deg, #94a3b8, #475569); color: #fff;
  display: grid; place-items: center; font-size: 56px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(17, 24, 39, .16);
}
.nv-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.nv-detail-info { min-width: 0; flex: 1; }
.nv-detail-info h1 { margin: 0; font-size: 26px; line-height: 1.3; }
.nv-detail-sub { margin: 6px 0 0; font-size: 13px; color: var(--nv-muted); }
.nv-detail-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12.5px; color: var(--nv-text-2); }
.nv-detail-desc {
  margin: 14px 0 0; font-size: 13px; line-height: 1.85; color: var(--nv-text-2); white-space: pre-wrap;
}
.nv-detail-desc.nv-clamp {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.nv-desc-more {
  margin: 6px 0 0; padding: 0; border: 0; background: none;
  color: var(--nv-primary); font-size: 12px; cursor: pointer;
}
.nv-detail-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.nv-detail-body > .nv-card { margin-bottom: 0; }
.nv-detail-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.nv-detail-side > .nv-card { margin-bottom: 0; }
.nv-desc { white-space: pre-wrap; margin: 0; font-size: 13.5px; line-height: 1.9; color: var(--nv-text-2); }
.nv-comment-box { margin-top: 20px; }
.nv-detail-side .nv-comment-box { margin-top: 0; }
.nv-chapter-list { max-height: 640px; overflow: auto; display: flex; flex-direction: column; }
.nv-chapter-list a {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 9px 2px; font-size: 13px; border-bottom: 1px dashed var(--nv-line);
}
.nv-chapter-list a:hover { color: var(--nv-primary); }
.nv-chapter-list em { font-style: normal; font-size: 11px; color: #e07b39; white-space: nowrap; }
/* 详情页目录：左栏铺成两/三列，八百章也不用滚到天荒地老 */
.nv-toc-grid {
  max-height: 760px; overflow: auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 0 20px; align-content: start; padding-right: 4px;
}
.nv-toc-grid a { justify-content: flex-start; align-items: center; }
.nv-toc-grid a > i {
  font-style: normal; font-size: 11px; color: var(--nv-muted); min-width: 20px;
  text-align: right; flex: none;
}
.nv-toc-grid a > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-toc-more { margin: 10px 0 0; font-size: 12px; color: var(--nv-muted); }
.nv-related-list { display: flex; flex-direction: column; gap: 10px; }
.nv-related-item { display: flex; gap: 10px; align-items: center; }
.nv-related-item:hover b { color: var(--nv-primary); }
.nv-related-cover {
  width: 46px; height: 62px; flex: none; border-radius: 5px; overflow: hidden;
  background: linear-gradient(145deg, #9aa9bb, #58677c); color: #fff;
  display: grid; place-items: center; font-size: 17px;
}
.nv-related-cover img { width: 100%; height: 100%; object-fit: cover; }
.nv-related-cover i { font-style: normal; }
.nv-related-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nv-related-body b { font-size: 13px; font-weight: 500; color: var(--nv-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-related-body small, .nv-related-body em { font-style: normal; font-size: 11.5px; color: var(--nv-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 阅读页 ===== */
.novel-reader { position: relative; max-width: calc(var(--nv-width) + 200px); margin: 0 auto; }
.novel-reader-head {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  padding: 10px 2px; font-size: 13px; color: var(--nv-muted); border-bottom: 1px solid var(--nv-line-2);
}
.novel-content {
  max-width: var(--nv-width); margin: 18px auto; font-size: var(--nv-font-size);
  line-height: 2; background: var(--nv-card); padding: 26px 30px;
  border: 1px solid var(--nv-line-2); border-radius: var(--nv-radius);
}
.novel-content[data-theme="white"] { background: #fff; color: #222; }
.novel-content[data-theme="green"] { background: #e8f3e5; color: #23351f; }
.novel-content[data-theme="gray"] { background: #eeeef0; color: #333; }
.novel-content p { margin: 0 0 1em; cursor: pointer; }
.novel-content p:hover { background: rgba(var(--nv-primary-rgb), .05); }
.novel-paywall {
  text-align: center; background: var(--nv-card); border: 1px dashed var(--nv-primary);
  border-radius: var(--nv-radius); padding: 26px; margin: 24px 0;
}
.novel-paywall h3 { margin-top: 0; }
.novel-chapter-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; font-size: 13px; }
.novel-chapter-nav a:hover { color: var(--nv-primary); }
.novel-chapter-end { display: flex; justify-content: center; gap: 10px; margin: 24px 0 60px; flex-wrap: wrap; }
.novel-reader-tools { position: fixed; right: 16px; top: 30%; display: flex; flex-direction: column; gap: 6px; z-index: 20; }
.novel-reader-tools button {
  border: 1px solid var(--nv-line-2); background: var(--nv-card); color: var(--nv-text);
  border-radius: 8px; padding: 7px 9px; font-size: 12px; cursor: pointer;
}
.novel-reader-tools button:hover, .novel-reader-tools button.active { color: var(--nv-primary); border-color: var(--nv-primary); }
.novel-bubble {
  position: fixed; z-index: 200; background: var(--nv-primary); color: #fff;
  padding: 6px 12px; border-radius: 16px; font-size: 12px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.novel-para-drawer {
  position: fixed; right: 0; top: 0; height: 100%; width: 380px; max-width: 92vw;
  background: var(--nv-card); box-shadow: -8px 0 30px rgba(0, 0, 0, .14);
  transform: translateX(105%); transition: transform .25s; z-index: 120;
  display: flex; flex-direction: column;
}
.novel-para-drawer.open { transform: translateX(0); }
.novel-drawer-head { display: flex; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--nv-line); }
.novel-drawer-head button { border: 0; background: none; color: var(--nv-primary); cursor: pointer; }
.novel-para-list { flex: 1; overflow: auto; padding: 12px 16px; }
.novel-para-item { padding: 10px 0; border-bottom: 1px solid var(--nv-line); font-size: 13px; }
.novel-para-item p { margin: 4px 0; }
.novel-para-item small { color: var(--nv-muted); }
.novel-drawer-form { padding: 12px; border-top: 1px solid var(--nv-line); display: flex; flex-direction: column; gap: 8px; }

/* ===== 通用组件 ===== */
.nv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; font-size: 13px; cursor: pointer; font-family: inherit;
  color: var(--nv-text); background: var(--nv-card);
  border: 1px solid var(--nv-line-2); border-radius: 8px;
  transition: all .15s;
}
.nv-btn:hover { border-color: var(--nv-primary); color: var(--nv-primary); }
.nv-btn.primary { background: var(--nv-primary); border-color: var(--nv-primary); color: #fff; }
.nv-btn.primary:hover { background: var(--nv-primary-hover); border-color: var(--nv-primary-hover); color: #fff; }
.nv-btn.ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
.nv-btn.ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; border-color: rgba(255, 255, 255, .5); }
/* 弹窗是浅底，ghost 按钮要反过来，否则白字白底看不见 */
.novel-modal .nv-btn.ghost { background: transparent; border-color: var(--nv-line-2); color: var(--nv-text-2); }
.novel-modal .nv-btn.ghost:hover { background: var(--nv-bg); border-color: var(--nv-primary); color: var(--nv-primary); }
.nv-btn.purple { background: #7c3aed; border-color: #7c3aed; color: #fff; border-radius: 999px; }
.nv-btn.active { background: var(--nv-primary-soft); border-color: var(--nv-primary); color: var(--nv-primary); }
.nv-btn.small { padding: 4px 10px; font-size: 12px; }
/* 书评 / 段评里的点赞小按钮 */
.nv-mini {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 1px 7px; font-size: 11.5px; line-height: 1.6; cursor: pointer;
    color: var(--ls-text-muted, #9ca3af);
    background: transparent; border: 1px solid var(--ls-border, #e5e7eb);
    border-radius: 999px; transition: color .15s, border-color .15s;
}
.nv-mini:hover { color: var(--ls-primary, #3b82f6); border-color: var(--ls-primary, #3b82f6); }
.nv-mini.active { color: var(--ls-danger, #ef4444); border-color: rgba(239, 68, 68, .4); background: var(--ls-danger-light, #fef2f2); }
/* 详情页内联书评 */
.nv-comment-feed { display: flex; flex-direction: column; }
.nv-cmt { padding: 10px 0; border-bottom: 1px dashed var(--nv-line, #e5e7eb); }
.nv-cmt:last-child { border-bottom: 0; }
.nv-cmt-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.nv-cmt-head b { font-size: 13px; font-weight: 600; }
.nv-cmt-head small { font-size: 11.5px; color: var(--ls-text-muted, #9ca3af); }
.nv-cmt p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.75; color: var(--nv-text, #1f2937); }

.nv-input {
  width: 100%; border: 1px solid var(--nv-line-2); border-radius: 8px; padding: 8px 10px;
  background: var(--nv-card); color: var(--nv-text); font: inherit;
}
.novel-modal { position: fixed; inset: 0; background: rgba(17, 24, 39, .5); display: grid; place-items: center; padding: 16px; }
/* 弹窗自己带 .ls-novel（挂在 body 上），这里把根容器的宽度/底色规则抵消掉 */
.ls-novel.novel-modal { max-width: none; margin: 0; padding: 16px; background: rgba(17, 24, 39, .5); }
.novel-modal.is-wide .novel-modal-card { width: min(720px, 96vw); }
.novel-modal-card { width: min(480px, 96vw); max-height: 86vh; overflow: auto; background: var(--nv-card); color: var(--nv-text); border-radius: 12px; }
.novel-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--nv-line); }
.novel-modal-x { border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--nv-muted); }
.novel-modal-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.novel-modal-desc { margin: 0; color: var(--nv-muted); font-size: 13px; }
.nv-tip-text { margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--nv-text-2); }
.novel-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--nv-line); }
.novel-tip {
  position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%); z-index: 99999;
  background: rgba(30, 30, 36, .92); color: #fff; padding: 9px 18px; border-radius: 20px; font-size: 14px;
}
.nv-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nv-setting-row label { min-width: 56px; }
.nv-setting-row input[type=range] { flex: 1; padding: 0; border: 0; background: none; }
.nv-setting-val { min-width: 52px; text-align: right; font-size: 12.5px; color: var(--nv-muted); font-variant-numeric: tabular-nums; }
.nv-setting-row label { font-size: 13px; white-space: nowrap; }
.novel-chat { display: flex; flex-direction: column; gap: 10px; }
.novel-chat-log { max-height: 320px; min-height: 180px; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px; background: var(--nv-bg); border-radius: 10px; }
.novel-chat-me, .novel-chat-author { max-width: 86%; padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.novel-chat-me { align-self: flex-end; background: var(--nv-primary); color: #fff; border-bottom-right-radius: 4px; }
.novel-chat-author { align-self: flex-start; background: var(--nv-card, #fff); border: 1px solid var(--nv-line); border-bottom-left-radius: 4px; }
.novel-chat-author.is-wait { display: flex; gap: 4px; align-items: center; padding: 12px; }
.novel-chat-author.is-wait i { width: 6px; height: 6px; border-radius: 50%; background: var(--nv-muted); animation: nvBlink 1s infinite ease-in-out; }
.novel-chat-author.is-wait i:nth-child(2) { animation-delay: .15s; }
.novel-chat-author.is-wait i:nth-child(3) { animation-delay: .3s; }
@keyframes nvBlink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.novel-chat-err { align-self: stretch; font-size: 12.5px; color: #c0392b; background: #fdf0ee; border: 1px solid #f4cfc9; border-radius: 8px; padding: 8px 10px; line-height: 1.5; word-break: break-word; }
.novel-chat-note { font-size: 12.5px; line-height: 1.6; padding: 8px 10px; border-radius: 8px; background: var(--nv-bg); color: var(--nv-text-2); }
.novel-chat-note.is-err { background: #fff6e6; color: #8a5a00; border: 1px solid #f2dcae; }
.novel-chat-composer { display: flex; flex-direction: column; gap: 8px; }
.novel-chat-composer textarea { resize: vertical; min-height: 76px; line-height: 1.65; }
.novel-chat-bar { display: flex; align-items: center; gap: 10px; }
.novel-chat-tip { flex: 1; min-width: 0; font-size: 12.5px; color: var(--nv-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.novel-chat-tip.is-wait { color: var(--nv-primary); }
.novel-chat-tip.is-err { color: #c0392b; }
.novel-chat-count { font-size: 12px; color: var(--nv-muted); font-variant-numeric: tabular-nums; }
.novel-chat-bar .nv-btn { min-width: 84px; }
.novel-night .novel-chat-err { background: #3a2320; border-color: #6b3a33; color: #ffb4a8; }
.novel-night .novel-chat-note.is-err { background: #3a3120; border-color: #6b5a33; color: #f0cf8a; }
.novel-night .novel-chat-author { background: #23252b; }
.novel-comment-list { max-height: 300px; overflow: auto; }
.novel-comment-item { border-bottom: 1px solid var(--nv-line); padding: 8px 0; font-size: 13px; }
.novel-comment-item p { margin: 4px 0; }
.novel-pay-qr {
  word-break: break-all; font-size: 12px; color: var(--nv-text-2);
  background: var(--nv-bg); padding: 10px; border-radius: 8px;
}

/* ===== 作家专区 / 纠错 ===== */
.nv-author-panel { display: flex; gap: 30px; flex-wrap: wrap; }
.nv-level { min-width: 240px; flex: 1; }
.nv-progress { height: 8px; border-radius: 4px; background: var(--nv-line); margin: 8px 0; overflow: hidden; }
.nv-progress i { display: block; height: 100%; background: var(--nv-primary); }
.nv-level small { color: var(--nv-muted); font-size: 12px; }
.nv-stat-grid { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.nv-stat-grid div { display: flex; flex-direction: column; text-align: center; }
.nv-stat-grid b { font-size: 20px; }
.nv-stat-grid span { font-size: 12px; color: var(--nv-muted); }
.nv-author-books { display: flex; flex-direction: column; gap: 8px; }
.nv-author-book { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--nv-line); }
.nv-author-book a { flex: 1; font-weight: 500; }
.nv-author-book a:hover { color: var(--nv-primary); }
.nv-author-book span { color: var(--nv-muted); font-size: 12px; }
.nv-author-book-cover { flex: none !important; width: 38px; height: 50px; border-radius: 4px; overflow: hidden; background: var(--nv-bg); display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--nv-muted); }
.nv-author-book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nv-author-book-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nv-author-book-main a { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-author-ops { display: flex; gap: 8px; flex: none; }
.nv-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 760px; }
.nv-form input, .nv-form select, .nv-form textarea {
  width: 100%; border: 1px solid var(--nv-line-2); border-radius: 8px; padding: 8px 10px;
  background: var(--nv-card); color: var(--nv-text); font: inherit;
}
.nv-form textarea { grid-column: 1 / -1; }
.nv-form button { grid-column: 1 / -1; justify-self: start; padding-inline: 26px; }
@media (max-width: 720px) { .nv-form { grid-template-columns: 1fr; } }

/* 一个「选一张图」的字段：左边预览，右边地址 + 上传 / 清空 */
.nv-cover-field { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; }
.novel-modal-body .nv-cover-field { display: flex; }
.nv-cover-preview {
  flex: none; width: 90px; height: 120px; border-radius: 8px; overflow: hidden;
  background: var(--nv-bg); border: 1px dashed var(--nv-line-2);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 11px; line-height: 1.5; color: var(--nv-muted);
}
.nv-cover-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nv-cover-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.nv-cover-ops { display: flex; gap: 8px; }
.nv-cover-ops .nv-btn { grid-column: auto !important; justify-self: auto !important; padding-inline: 14px; }
.nv-cover-tip { font-size: 12px; line-height: 1.5; color: var(--nv-muted); }
.nv-cover-tip.is-ok { color: #16794a; }
.nv-cover-tip.is-err { color: #c0392b; }
.nv-cover-tip.is-wait { color: var(--nv-primary); }
@media (max-width: 560px) {
  .nv-cover-field { flex-direction: column; }
  .nv-cover-preview { width: 72px; height: 96px; }
}
.nv-shelf-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.nv-shelf-tabs .nv-mini.on { color: var(--nv-primary); border-color: var(--nv-primary); background: var(--nv-primary-soft, #eff6ff); }
.nv-shelf-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px dashed var(--nv-line); }
.nv-shelf-row:last-child { border-bottom: 0; }
.nv-shelf-name { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nv-shelf-name b { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-shelf-name small { color: var(--nv-muted); font-size: 11.5px; }
.nv-shelf-name:hover b { color: var(--nv-primary); }
/* 章节管理弹窗 */
.nv-chm { display: flex; flex-direction: column; gap: 12px; }
.nv-chm-bar { display: flex; align-items: center; justify-content: space-between; }
.nv-chm-bar b { font-size: 13px; }
.nv-chm-list { max-height: 220px; overflow: auto; border: 1px solid var(--nv-line); border-radius: 8px; }
.nv-chm-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--nv-line); font-size: 13px; }
.nv-chm-item:last-child { border-bottom: 0; }
.nv-chm-item.on { background: var(--nv-primary-soft, #eff6ff); }
.nv-chm-item b { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-chm-item small { color: var(--nv-muted); font-size: 11.5px; flex: none; }
.nv-chm-ops { display: flex; gap: 6px; flex: none; }
.nv-chm-form { display: flex; flex-direction: column; gap: 8px; }
.nv-chm-form .nv-input { width: 100%; }
.nv-chm-row { display: flex; align-items: center; gap: 12px; font-size: 12.5px; }
.nv-chm-row label { display: inline-flex; align-items: center; gap: 5px; }
.nv-chm-row input[type=text], .nv-chm-row .nv-input { width: 96px; }
.nv-chm-tip { color: var(--nv-muted); font-size: 12px; margin-left: auto; }
.nv-correction-list { display: flex; flex-direction: column; gap: 10px; }
.nv-correction-item { border: 1px solid var(--nv-line); border-radius: 8px; padding: 12px; }
.nv-correction-item p { margin: 4px 0; font-size: 13px; }
.nv-correction-item small { color: var(--nv-muted); }

/* ===== 移动端 ===== */
.ls-novel-mb { padding: 10px 0 70px; }
.ls-novel-mb .nv-top { padding: 10px 12px; gap: 10px; }
.ls-novel-mb .nv-logo { font-size: 17px; }
.ls-novel-mb .nv-nav { gap: 12px; font-size: 13px; order: 3; width: 100%; overflow-x: auto; white-space: nowrap; }
.ls-novel-mb .nv-search { margin-left: 0; flex: 1; }
.ls-novel-mb .nv-search input { width: 100%; min-width: 0; }
.ls-novel-mb .nv-top-links { display: none; }
.ls-novel-mb .nv-hero { grid-template-columns: 1fr; }
.ls-novel-mb .nv-hero-side { flex-direction: column; }
.ls-novel-mb .nv-hero-side .nv-side-card { flex: 0 0 auto; width: 100%; }
.ls-novel-mb .nv-hero-main { flex-direction: column; gap: 14px; padding: 16px; min-height: 0; }
.ls-novel-mb .nv-hero-cover { flex: 0 0 auto; width: 120px; font-size: 40px; align-self: center; }
.ls-novel-mb .nv-hero-info h1 { font-size: 21px; }
.ls-novel-mb .nv-hero-desc { -webkit-line-clamp: 2; }
.ls-novel-mb .nv-cols { grid-template-columns: 1fr; }
.ls-novel-mb .nv-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ls-novel-mb .nv-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ls-novel-mb .nv-cat-cols { grid-template-columns: repeat(2, 1fr); }
.ls-novel-mb .nv-two { grid-template-columns: 1fr; }
.ls-novel-mb .nv-textlist { grid-template-columns: 1fr; }
.ls-novel-mb .nv-detail { flex-direction: row; padding: 14px; gap: 14px; }
.ls-novel-mb .nv-detail-cover { flex: 0 0 104px; width: 104px; font-size: 34px; }
.ls-novel-mb .nv-detail-info h1 { font-size: 19px; }
.ls-novel-mb .nv-detail-desc { -webkit-line-clamp: 2; }
.ls-novel-mb .nv-detail-body { grid-template-columns: 1fr; }
.ls-novel-mb .novel-content { padding: 20px 16px; border-radius: 8px; }
.nv-image-full { max-width: 100%; }

@media (max-width: 1080px) {
  .nv-cols { grid-template-columns: 1fr 1fr; }
  .nv-cols > .nv-card:last-child { grid-column: 1 / -1; }
  .nv-hero { grid-template-columns: 1fr; }
  .nv-hero-side { flex-direction: row; flex-wrap: wrap; }
  .nv-hero-side .nv-side-card { flex: 1 1 220px; }
  .nv-detail-body { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nv-cols { grid-template-columns: 1fr; }
  .nv-cat-cols { grid-template-columns: 1fr 1fr; }
  .nv-two { grid-template-columns: 1fr; }
  .nv-grid { grid-template-columns: repeat(3, 1fr); }
  .nv-detail { flex-direction: column; }
  .nv-detail-cover { width: 130px; flex-basis: 130px; }
  .novel-reader-tools { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; margin: 12px 0; }
  .novel-para-drawer { width: 100%; }
}
@media (max-width: 560px) {
  .nv-grid { grid-template-columns: repeat(3, 1fr); }
  .nv-textlist { grid-template-columns: 1fr; }
  .nv-hero-cover { width: 130px; }
}

/* ===== 首页门户区块（分类宫格 + 主推轮播 + 今日强推） ===== */
.ls-novel a, .ls-novel button, .ls-novel [data-nact] { cursor: pointer; }
.ls-novel button:disabled { cursor: not-allowed; }
.nv-portal { display: grid; grid-template-columns: 280px minmax(0, 1fr) 300px; gap: 14px; margin-bottom: 14px; }
.nv-portal-cats, .nv-portal-strong { background: var(--nv-card); border: 1px solid var(--nv-line-2); border-radius: var(--nv-radius); display: flex; flex-direction: column; }
.nv-portal-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid var(--nv-line); }
.nv-portal-head h3 { margin: 0; font-size: 14px; }
.nv-portal-head a { font-size: 12px; color: var(--nv-muted); }
.nv-portal-head a:hover { color: var(--nv-primary); }
.nv-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.nv-cat-grid a {
    display: flex; align-items: center; gap: 6px; min-width: 0;
    padding: 9px 8px; border-radius: 8px; background: var(--nv-bg);
    font-size: 12.5px; color: var(--nv-text-2); transition: background .15s, color .15s;
}
.nv-cat-grid a:hover { background: var(--nv-primary-soft, #eff6ff); color: var(--nv-primary); }
.nv-cat-grid i { width: 6px; height: 6px; border-radius: 50%; background: #ef4444; flex: none; }
.nv-cat-grid i.d1 { background: #f59e0b; }
.nv-cat-grid i.d2 { background: #10b981; }
.nv-cat-grid i.d3 { background: #6366f1; }
.nv-cat-grid i.d4 { background: #ec4899; }
.nv-cat-grid em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--nv-muted); }
.nv-cat-grid .nv-span2 { grid-column: 1 / -1; margin: 4px 0 0; }
.nv-portal-hero {
    position: relative; display: flex; align-items: center;
    padding: 24px 26px 34px; min-height: 318px; border-radius: var(--nv-radius);
    background: radial-gradient(120% 140% at 85% 10%, #2a2f3d 0%, #171a22 45%, #101218 100%);
    color: #fff; overflow: hidden;
}
.nv-slide { display: none; align-items: center; gap: 24px; width: 100%; }
.nv-slide.on { display: flex; }
.nv-slide-cover {
    width: 168px; flex: none; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden;
    background: #262b36; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
}
.nv-slide-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nv-slide-cover span { font-size: 42px; font-weight: 700; color: rgba(255, 255, 255, .82); }
.nv-slide-body { min-width: 0; flex: 1; }
.nv-slide-kicker { display: inline-block; font-size: 12px; color: #f5b301; margin-bottom: 6px; }
.nv-slide-body h2 { margin: 0 0 6px; font-size: 26px; line-height: 1.25; color: #fff; letter-spacing: .5px; }
.nv-slide-meta { font-size: 12.5px; color: rgba(255, 255, 255, .62); margin-bottom: 10px; }
.nv-slide-body p { margin: 0 0 16px; font-size: 13px; line-height: 1.85; color: rgba(255, 255, 255, .74); max-height: 4.9em; overflow: hidden; }
.nv-portal-hero .nv-btn.primary { background: #e11d48; border-color: #e11d48; color: #fff; border-radius: 999px; padding-inline: 26px; }
.nv-portal-hero .nv-btn.primary:hover { background: #be123c; border-color: #be123c; }
.nv-dots { position: absolute; right: 24px; bottom: 14px; display: flex; gap: 6px; align-items: center; }
.nv-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .32); transition: all .2s; }
.nv-dot.on { width: 18px; border-radius: 4px; background: #e11d48; }
.nv-strong-list { list-style: none; margin: 0; padding: 4px 14px 8px; flex: 1; }
.nv-strong-list li { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px dashed var(--nv-line); }
.nv-strong-list li:last-child { border-bottom: 0; }
.nv-strong-list em {
    width: 19px; height: 19px; flex: none; display: grid; place-items: center;
    border-radius: 4px; background: var(--nv-bg); color: var(--nv-muted);
    font-style: normal; font-size: 11.5px; font-weight: 600;
}
.nv-strong-list em.s1 { background: #f59e0b; color: #fff; }
.nv-strong-list em.s2 { background: #cbd5e1; color: #fff; }
.nv-strong-list em.s3 { background: #f97316; color: #fff; }
.nv-strong-list a { flex: 1; min-width: 0; font-size: 13px; color: var(--nv-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-strong-list a:hover { color: var(--nv-primary); }
.nv-strong-list .hot { flex: none; font-style: normal; font-size: 10px; line-height: 1.6; padding: 0 5px; border-radius: 3px; background: #ef4444; color: #fff; }
.nv-portal-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; align-items: start; }
.nv-portal-foot .nv-side-card { background: var(--nv-card); border: 1px solid var(--nv-line-2); border-radius: var(--nv-radius); padding: 0 14px 12px; }
.nv-portal-foot .nv-shelf { grid-template-columns: repeat(6, 1fr); }
.nv-portal-foot .nv-shelf a { font-size: 14px; }
@media (max-width: 1080px) {
    .nv-portal { grid-template-columns: 1fr 1fr; }
    .nv-portal-hero { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 720px) {
    .nv-portal { grid-template-columns: 1fr; }
    .nv-portal-hero { padding: 16px 16px 30px; }
    .nv-slide { gap: 14px; }
    .nv-slide-cover { width: 112px; }
    .nv-slide-body h2 { font-size: 20px; }
    .nv-slide-body p { display: none; }
    .nv-portal-foot { grid-template-columns: 1fr; }
}

/* ===== 首页（门户风格，参考 menhu 的分栏骨架） ===== */
.nv-block-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 12px; font-size: 16px; font-weight: 700;
}
.nv-block-title h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.nv-block-title h3::before {
  content: ""; display: block; width: 4px; height: 16px; border-radius: 3px;
  background: var(--nv-primary); box-shadow: 0 0 8px rgba(var(--nv-primary-rgb), .35);
}
.nv-block-title a { font-size: 12px; font-weight: 400; color: var(--nv-muted); }
.nv-block-title a:hover { color: var(--nv-primary); }

/* 组合行：公告书架 / 编辑推荐 / 本周强推 */
.nv-merge { display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; gap: 14px; margin-bottom: 14px; align-items: stretch; }
.nv-merge-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.nv-merge-mid {
  background: var(--nv-card); border: 1px solid var(--nv-line-2); border-radius: var(--nv-radius);
  padding: 16px 18px; min-width: 0;
}
.nv-ed { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 16px; }
.nv-ed-covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.nv-ed-cover {
  position: relative; display: flex; align-items: center; justify-content: center; cursor: pointer;
  aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; border: 1px solid var(--nv-line-2);
  background: linear-gradient(145deg, #97a7bb, #4a5a70); color: #fff; font-size: 20px; font-weight: 600;
  transition: opacity .18s, transform .18s, box-shadow .18s; opacity: .68;
}
.nv-ed-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nv-ed-cover.on { opacity: 1; box-shadow: 0 6px 16px rgba(17, 24, 39, .18); transform: translateY(-2px); }
.nv-ed-cover:hover, .nv-ed-cover:focus-visible { opacity: 1; outline: none; }
.nv-ed-panel { display: none; }
.nv-ed-panel.on { display: block; }
.nv-ed-panel h4 { margin: 0 0 6px; font-size: 17px; }
.nv-ed-panel h4 a:hover { color: var(--nv-primary); }
.nv-ed-meta { font-size: 12px; color: var(--nv-muted); margin-bottom: 8px; }
.nv-ed-panel p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.75; color: var(--nv-text-2); }
.nv-ed-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--nv-line); }
.nv-ed-list a {
  display: flex; align-items: center; gap: 8px; padding: 6px 0; min-width: 0;
  border-bottom: 1px dashed var(--nv-line); font-size: 12.5px;
}
.nv-ed-list a:nth-last-child(-n+2) { border-bottom: 0; }
.nv-ed-list span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-ed-list a:hover span { color: var(--nv-primary); }
.nv-ed-list em { flex: none; font-style: normal; font-size: 11px; color: var(--nv-muted); }

.nv-strong-box {
  flex: 1; background: var(--nv-card); border: 1px solid var(--nv-line-2);
  border-radius: var(--nv-radius); padding: 4px 14px 8px;
}
.nv-strong-box .nv-strong-list { padding: 0; }
.nv-strong-box .nv-strong-list li { padding: 9px 0; }

/* 五个榜单并排 */
.nv-ranks5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.nv-rankcol {
  background: var(--nv-card); border: 1px solid var(--nv-line-2); border-radius: var(--nv-radius);
  padding: 0 12px 10px; min-width: 0; display: flex; flex-direction: column;
}
.nv-rankcol-head {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 11px 0 9px; border-bottom: 1px solid var(--nv-line); margin-bottom: 10px;
}
.nv-rankcol-head h3 { margin: 0; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.nv-rankcol-head a { font-size: 11px; color: var(--nv-muted); white-space: nowrap; }
.nv-rankcol-head a:hover { color: var(--nv-primary); }
.nv-rankcol-top { display: flex; align-items: center; gap: 9px; padding-bottom: 10px; border-bottom: 1px dashed var(--nv-line); margin-bottom: 6px; }
.nv-rankcol-top .nv-cover { width: 54px; height: 72px; flex: none; }
.nv-rankcol-info { min-width: 0; }
.nv-rankcol-info em { font-style: normal; font-size: 10px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #f59e0b, #ef4444); padding: 1px 5px; border-radius: 3px; }
.nv-rankcol-info h4 { margin: 4px 0 2px; font-size: 12.5px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nv-rankcol-info h4 a:hover { color: var(--nv-primary); }
.nv-rankcol-info span { font-size: 11px; color: var(--nv-muted); }
.nv-rankcol-list { list-style: none; margin: 0; padding: 0; }
.nv-rankcol-list li { display: flex; align-items: center; gap: 7px; padding: 5px 0; font-size: 12.5px; min-width: 0; }
.nv-rankcol-list i { flex: none; width: 16px; font-style: normal; font-size: 11px; color: var(--nv-muted); }
.nv-rankcol-list a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--nv-text-2); }
.nv-rankcol-list a:hover { color: var(--nv-primary); }

/* 热门作品 */
.nv-hotwrap { display: grid; grid-template-columns: 246px minmax(0, 1fr); gap: 18px; }
.nv-hotmain { text-align: center; min-width: 0; }
.nv-hotmain .nv-cover { width: 100%; max-width: 150px; margin: 0 auto 10px; }
.nv-hotmain h4 { margin: 0 0 4px; font-size: 14px; }
.nv-hotmain h4 a:hover { color: var(--nv-primary); }
.nv-hotmain-author { font-size: 12px; color: var(--nv-muted); }
.nv-hotmain-stat { margin: 6px 0 0; font-size: 12px; color: var(--nv-primary); }
.nv-hotmain-desc { margin: 8px 0 12px; font-size: 12px; line-height: 1.7; color: var(--nv-text-2); text-align: left; }
.nv-hotcats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 22px; min-width: 0; }
.nv-hotrow { padding: 6px 0; border-bottom: 1px dashed var(--nv-line); min-width: 0; }
.nv-hotrow-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.nv-hotrow-head b { font-size: 13px; }
.nv-hotrow-head a { font-size: 11px; color: var(--nv-muted); }
.nv-hotrow-head a:hover { color: var(--nv-primary); }
.nv-hotrow-books { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.nv-hotrow-books a { display: flex; align-items: center; gap: 6px; padding: 3px 0; font-size: 12px; min-width: 0; }
.nv-hotrow-books span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--nv-text-2); }
.nv-hotrow-books a:hover span { color: var(--nv-primary); }
.nv-hotrow-books em { flex: none; font-style: normal; font-size: 10.5px; color: var(--nv-muted); }

/* 左右分栏：新书推荐 / 完本排行 等 */
.nv-split2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; margin-bottom: 14px; }
.nv-split2 > .nv-card { margin-bottom: 0; }
.nv-splitmain { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 16px; }
.nv-splitmain-book { text-align: center; min-width: 0; }
.nv-splitmain-book .nv-cover { width: 100%; max-width: 128px; margin: 0 auto 8px; }
.nv-splitmain-book h4 { margin: 0 0 6px; font-size: 13.5px; }
.nv-splitmain-book h4 a:hover { color: var(--nv-primary); }
.nv-splitmain-book p { margin: 0 0 10px; font-size: 12px; line-height: 1.7; color: var(--nv-text-2); text-align: left; }
.nv-splitgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; min-width: 0; }
.nv-splititem { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-bottom: 1px dashed var(--nv-line); min-width: 0; }
.nv-splititem-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nv-splititem-body b { font-weight: 500; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-splititem:hover b { color: var(--nv-primary); }
.nv-splititem-body small { font-size: 11px; color: var(--nv-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-splititem-body em { font-style: normal; font-size: 10.5px; color: var(--nv-muted); }
.nv-grid-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }

@media (max-width: 1080px) {
  .nv-merge { grid-template-columns: 1fr 1fr; }
  .nv-merge-mid { grid-column: 1 / -1; order: -1; }
  .nv-ranks5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nv-split2 { grid-template-columns: 1fr; }
  .nv-grid-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nv-ranks5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nv-hotwrap { grid-template-columns: 1fr; }
  .nv-hotmain { display: flex; gap: 14px; text-align: left; align-items: flex-start; }
  .nv-hotmain .nv-cover { width: 96px; margin: 0; flex: none; }
  .nv-hotcats { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nv-merge { grid-template-columns: 1fr; }
  .nv-ed { grid-template-columns: 1fr; }
  .nv-ed-covers { max-width: 240px; }
  .nv-ed-list { grid-template-columns: 1fr; }
  .nv-splitmain { grid-template-columns: 1fr; }
  .nv-splitgrid { grid-template-columns: 1fr; }
  .nv-grid-7 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
