/* ===== 网址导航（独立前台样式，无第三方依赖） ===== */
:root {
  --nv-bg: #f4f6fb;
  --nv-card: #2563eb;
  --nv-ink: #1c2333;
  --nv-sub: #6b7280;
  --nv-line: #f6f6f6;
  --nv-white: #ffffff;
  --nv-radius: 8px;
  --nv-shadow: 0 1px 2px rgba(15,23,42,.02),0 8px 24px rgba(15,23,42,.01);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--nv-bg);
  color: var(--nv-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.nv-app { min-height: 100vh; display: flex; flex-direction: column; }

/* 头部 */
.nv-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nv-line);
}
.nv-header-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; justify-content: flex-start; gap: 12px;
}

.nv-header-nav { margin-left: 50px; display: flex; align-items: center; }

.nv-apply-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: none;
  border-radius: var(--nv-radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--nv-card);
  box-shadow: 0 4px 14px -6px color-mix(in srgb, var(--nv-card) 55%, transparent);
  transition: transform .15s ease, box-shadow .15s ease;
}
.nv-apply-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--nv-card) 60%, transparent); }
.nv-apply-btn .nv-i { font-size: 15px; }

.nv-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.nv-modal[hidden] { display: none; }
.nv-modal-mask { position: absolute; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(3px); }
.nv-modal-box {
  position: relative; width: 100%; max-width: 420px; background: var(--nv-white);
  border-radius: 16px; box-shadow: 0 24px 60px -18px rgba(15,23,42,.45);
  padding: 20px 22px; animation: nv-pop .18s ease;
}
@keyframes nv-pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.nv-modal-hd {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; font-weight: 700; margin-bottom: 14px;
}
.nv-modal-hd .ri-quill-pen-line { color: var(--nv-card); margin-right: 4px; }
.nv-modal-x {
  border: none; background: var(--nv-bg2, #f1f5f9); color: #64748b;
  width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 16px; line-height: 1;
}
.nv-modal-x:hover { background: #e2e8f0; color: #0f172a; }
.nv-field { display: block; margin-bottom: 12px; }
.nv-field > span { display: block; font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 5px; }
.nv-field em { color: #ef4444; font-style: normal; }
.nv-field input, .nv-field textarea {
  width: 100%; box-sizing: border-box; font-family: inherit; font-size: 13px; color: #0f172a;
  border: 1px solid var(--nv-line); border-radius: 10px; padding: 9px 12px; outline: none;
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.nv-field input:focus, .nv-field textarea:focus {
  border-color: color-mix(in srgb, var(--nv-card) 55%, var(--nv-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nv-card) 12%, transparent);
}
.nv-field textarea { resize: vertical; min-height: 64px; }
.nv-apply-submit {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 10px; padding: 10px 0; cursor: pointer;
  font-size: 14px; font-weight: 600; font-family: inherit; color: #fff;
  background: linear-gradient(135deg, var(--nv-card), color-mix(in srgb, var(--nv-card) 72%, #000));
}
.nv-apply-submit:disabled { opacity: .6; cursor: not-allowed; }
.nv-apply-tip { font-size: 12px; color: #94a3b8; margin: 10px 0 0; text-align: center; }
.nv-msg-modal { z-index: 110; }
.nv-msg-body { margin: 0 0 16px; font-size: 14px; line-height: 1.65; color: #334155; word-break: break-word; }
.nv-msg-modal .nv-modal-hd .ri-checkbox-circle-line { color: #16a34a; margin-right: 4px; }
.nv-msg-modal .nv-modal-hd .ri-error-warning-line,
.nv-msg-modal .nv-modal-hd .ri-information-line { color: var(--nv-card); margin-right: 4px; }

/* ===== 站点举报 ===== */
.nv-reason-label { display: block; font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 5px; }
.nv-reason-label em { color: #ef4444; font-style: normal; }
.nv-reason-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.nv-reason-item { position: relative; display: block; cursor: pointer; }
.nv-reason-item input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.nv-reason-item span {
  display: flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 6px 10px; font-size: 13px; color: #475569;
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: var(--nv-radius);
  transition: all .15s ease;
}
.nv-reason-item span:hover { background: #e8edf3; }
.nv-reason-item input:checked + span {
  color: #ef4444; background: #fef2f2; border-color: #fecaca; font-weight: 600;
}
.nv-brand { display: flex; align-items: center; gap: 10px; }
.nv-brand .nv-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.nv-brand .nv-text b { font-size: 18px; font-weight: 800; }
.nv-brand .nv-text i { font-style: normal; font-size: 11px; font-weight: 400; color: var(--nv-sub); }
.nv-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex: none;
  background: var(--nv-card);
  var(
  --nv-card): #fff;
  font-size: 17px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nv-line);
}
.nv-header-nav a {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; color: var(--nv-sub); padding: 7px 14px; border-radius: 8px;
  transition: all .15s;
}
.nv-header-nav a:hover { color: #2563eb; }
.nv-header-nav a.on {
    color: #2563eb;
    font-weight: 600;
    position: relative;
}

.nv-i { font-style: normal; font-size: 15px; }

/* 主区 */
.nv-main { flex: 1; width: 100%; }

/* Hero */
.nv-hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: 64px 16px 40px;
  background:
    radial-gradient(860px 300px at 20% -20%, rgba(59, 130, 246, .16), transparent),
    radial-gradient(860px 300px at 80% -20%, rgba(99, 102, 241, .14), transparent);
}
/* 装饰 1：点阵网格，向下渐隐 */
.nv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(37, 99, 235, .16) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  opacity: .5;
}
/* 装饰 2：左右两枚漂浮光斑 */
.nv-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(130px 130px at 16% 34%, rgba(59, 130, 246, .12), transparent 70%),
    radial-gradient(150px 150px at 84% 30%, rgba(99, 102, 241, .12), transparent 70%);
  filter: blur(8px);
  animation: nv-hero-float 7s ease-in-out infinite alternate;
}
@keyframes nv-hero-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-16px); }
}
@media (prefers-reduced-motion: reduce) {
  .nv-hero::after { animation: none; }
}
.nv-hero-title { margin: 0 0 8px; font-size: 38px; letter-spacing: .5px; }
.nv-hero-sub { margin: 0 0 26px; color: var(--nv-sub); font-size: 15px; }
.nv-search {
  display: flex; max-width: 640px; margin: 0 auto;
  background: var(--nv-white); border: 1px solid var(--nv-line); border-radius: 999px;
  padding: 6px 6px 6px 24px; box-shadow: var(--nv-shadow);
  transition: border-color .15s, box-shadow .15s;
}
.nv-search:focus-within { border-color: #93b4fd; }
.nv-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-size: 16px; color: var(--nv-ink); min-width: 0;
}
.nv-search button {
  border: 0;
  cursor: pointer;
  flex: none;
  background: var(--nv-card);
  color: #fff;
  font-size: 15px;
  padding: 11px 34px;
  border-radius: 999px;
  transition: opacity .15s;
}
.nv-search button:hover { opacity: .9; }
.nv-stats {
  margin-top: 16px; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap;
  color: var(--nv-sub); font-size: 13px;
}
.nv-stats strong { color: var(--nv-ink); font-weight: 700; }

/* 分组与卡片 */
.nv-body {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 20px 20px;
}
.nv-group:first-child { margin-top: 0; }
/* 首页主栏第一个分类板块标题：顶部贴紧、底部留 15px */
#nv-cats > .nv-group:first-of-type > .nv-group-hd { margin: 0 0 15px 0; }
.nv-group-hd {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 15px 0;
}

.nv-group-hd > i { font-size: 20px; color: #2563eb; flex: none; }
.nv-group-hd h3 { margin: 0; font-size: 17px; font-weight: 700; min-width: 0; }
.nv-group-hd h3 a { color: inherit; text-decoration: none; }
.nv-group-hd h3 a:hover { color: #2563eb; }
.nv-group-more {
  margin-left: auto; color: var(--nv-sub); font-size: 20px; line-height: 1;
  border-radius: 99px; flex: none;
  padding:5px
}
.nv-group-more:hover { color: #2563eb; background: #eef1f7; }
.nv-group-count {
  font-size: 12px;
  color: #2563eb;
  background: rgba(37,99,235,.12);
  padding: 2px 10px;
  border-radius: 999px;
}
.nv-group-empty { color: var(--nv-sub); font-size: 13px; margin: 0; }
.nv-empty {
  text-align: center; color: var(--nv-sub); padding: 50px 0 30px; font-size: 14px;
}
.nv-card[hidden] { display: none; }
.nv-load-more {
  text-align: center; padding: 4px 0 26px; font-size: 13px; color: var(--nv-sub);
}
.nv-load-more[hidden] { display: none; }
.nv-load-more i {
  display: inline-block; vertical-align: -2px; margin-right: 4px;
  animation: nv-spin 1s linear infinite;
}
@keyframes nv-spin { to { transform: rotate(360deg); } }

/* 热搜小说 / 电影推荐（百度风云榜）：封面卡片，PC 每行六个 */
.nv-novel-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
@media (max-width: 1280px) {
  .nv-novel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* 电影推荐：PC 每行五个，自适应每行两个 */
.nv-movie-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 1280px) {
  .nv-movie-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.nv-novel-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--nv-white); border: 1px solid var(--nv-line); border-radius: var(--nv-radius);
  overflow: hidden; box-shadow: var(--nv-shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.nv-novel-card:hover {
  transform: translateY(-3px); border-color: #c7d2fe;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .12); text-decoration: none;
}
.nv-novel-cover {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 3 / 4; background: #eef1f7;
  font-size: 24px; font-weight: 600; color: var(--nv-sub);
}
.nv-novel-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nv-novel-card .nv-hot-no { position: absolute; top: 8px; left: 8px; z-index: 2; box-shadow: 0 1px 5px rgba(0, 0, 0, .3); }
.nv-novel-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 6px;
  padding: 22px 9px 8px; color: #fff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, .82) 78%);
}
.nv-novel-name {
  flex: 1; min-width: 0; font-size: 13px; color: #fff; font-weight: 600; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nv-novel-card:hover .nv-novel-name { color: #e0e7ff; }
.nv-novel-hot {
  flex: none; display: flex; align-items: center; gap: 3px;
  font-size: 11px; color: #fbbf24; font-variant-numeric: tabular-nums;
}

/* 热门资讯：左图右文列表，PC 两列 */
.nv-news-grid {
  display: grid; gap: 16px 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 1280px) {
  .nv-news-grid { grid-template-columns: minmax(0, 1fr); }
}
.nv-news-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: 14px;
  background: var(--nv-white, #fff);
  border: 1px solid #eef1f6;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.nv-news-item:hover {
  background: #f7faff; border-color: #dbe6f7;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .08);
  text-decoration: none;
}
.nv-news-thumb {
  flex: none; width: 72px; height: 72px; border-radius: 12px; overflow: hidden;
  background: #eef1f7;
}
.nv-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nv-news-body {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px;
}
.nv-news-title {
  font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--nv-text, #1f2937);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nv-news-item:hover .nv-news-title { color: #2563eb; }
.nv-news-desc {
  font-size: 13px; line-height: 1.55; color: #9aa4b2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.nv-news-hot {
  flex: none; align-self: center; display: flex; align-items: center; gap: 3px;
  color: #9aa4b2; font-size: 13px; font-variant-numeric: tabular-nums;
}
.nv-news-hot i { font-size: 14px; color: #f97316; }

.nv-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.nv-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--nv-white);
  border-radius: var(--nv-radius);
  padding: 20px 18px;
  box-shadow: var(--nv-shadow);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.nv-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--card, var(--nv-card)) 45%, var(--nv-line));
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--card, var(--nv-card)) 35%, transparent);
}
/* hover 时标识色沿卡片边缘进度式描边（conic-gradient 从顶部顺时针扫一圈） */
@property --nv-ring {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 100%;
}
.nv-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(var(--card, var(--nv-card)) var(--nv-ring), transparent 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .15s;
  pointer-events: none;
}
.nv-card:hover::after {
  opacity: 1;
  --nv-ring: 0%;
  animation: nv-card-ring .9s ease-out forwards;
}
@keyframes nv-card-ring {
  from { --nv-ring: 0%; }
  to { --nv-ring: 100%; }
}
.nv-ico {
  position: relative; width: 48px; height: 48px; border-radius: 13px; flex: none; overflow: hidden;
  background: color-mix(in srgb, var(--nv-card) 12%, #fff);
  color: var(--nv-card); font-weight: 700; font-size: 19px;
  display: inline-flex; align-items: center; justify-content: center;
}
.nv-ico img { width: 100%; height: 100%; object-fit: cover; }
/* 后台未设置图标时：占位首字用站点标识色做背景（后台设置了 color 用之，留空控制器自动配色） */
.nv-ico.has-brand {
  background: linear-gradient(135deg, color-mix(in srgb, var(--card, #6366f1) 78%, #fff), var(--card, #6366f1));
  color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
/* 有真实图标图时：白底 + 阴影，覆盖品牌色渐变底（透明底图标不透出渐变） */
.nv-ico:has(img) {
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .12);
}
.nv-ico.has-brand:has(img) {
  background: #fff;
}
.nv-ico.is-text::before { content: attr(data-letter); }
.nv-ico-lg { width: 64px; height: 64px; font-size: 26px; border-radius: 16px; }
.nv-info { min-width: 0; flex: 1; }
.nv-name {
  display: block; font-weight: 600; font-size: 16px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nv-desc {
  display: block; color: var(--nv-sub); font-size: 13px; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 面包屑 */
.nv-crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  color: var(--nv-sub); font-size: 13px;
}
.nv-crumbs a:hover { color: #2563eb; }
.nv-crumbs strong { color: var(--nv-ink); font-weight: 600; }

/* 详情页 */
.nv-detail-hero {
  background: var(--nv-white);
  border-radius: var(--nv-radius);
  box-shadow: var(--nv-shadow);
  padding: 22px;
  margin-top: 14px;
}
.nv-detail-hd { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nv-detail-title { flex: 1; min-width: 200px; }
.nv-detail-title h1 { margin: 0 0 4px; font-size: 26px; }
.nv-detail-desc { color: var(--nv-sub); font-size: 13px; margin: 0; }
.nv-detail-actions { margin-left: auto; }
.nv-detail-cols {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px; margin-top: 16px;
}
.nv-detail-hero .nv-panelbox { background: #f7f9fd; border-color: transparent; box-shadow: none; }
.nv-detail-hero .nv-info-item { background: var(--nv-white); }
.nv-panelbox {
  background: var(--nv-white); border-radius: var(--nv-radius);
  box-shadow: var(--nv-shadow); padding: 16px;
}
.nv-panel-chart { margin-top: 16px; }
.nv-info-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px; margin-top: 2px;
}
.nv-info-item {
  background: #f7f9fd; border-radius: 10px; padding: 8px 12px;
}
.nv-info-item em { display: block; font-style: normal; font-size: 12px; color: var(--nv-sub); }
.nv-info-item strong { display: block; font-size: 15px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-wbadge-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 2px; }
.nv-wbadge { text-align: center; }
.nv-wbadge-num {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 44px; border-radius: 10px;
  font-size: 18px; font-weight: 700; color: #fff;
}
.nv-wbadge-num.is-none { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #f8fafc; }
/* 权重徽章按搜索引擎固定品牌色：百度蓝 / 360 绿 / 搜狗红 / Google 绿 */
.nv-wbadge-num.is-baidu { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.nv-wbadge-num.is-360 { background: linear-gradient(135deg, #34d399, #10b981); }
.nv-wbadge-num.is-sogou { background: linear-gradient(135deg, #f87171, #ef4444); }
.nv-wbadge-num.is-google { background: linear-gradient(135deg, #4ade80, #22c55e); }
.nv-wbadge em { display: block; font-style: normal; font-size: 12px; color: var(--nv-sub); margin-top: 6px; }
.nv-chart-sub { color: var(--nv-sub); font-size: 12px; font-weight: 400; }
.nv-chart-legend { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nv-chart-legend span { position: relative; padding-left: 14px; font-size: 12px; color: var(--nv-sub); }
.nv-chart-legend span::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
}
.nv-chart-legend .lg-pv::before { background: #6366f1; }
.nv-chart-legend .lg-uv::before { background: #f59e0b; }
.nv-chart-box { margin-top: 2px; position: relative; }
.nv-chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.nv-chart-svg .cz { fill: transparent; }
.nv-chart-svg .cz:hover { fill: rgba(99, 102, 241, .04); }
.nv-chart-cursor {
  position: absolute; top: 0; bottom: 10%; width: 0;
  border-left: 1px dashed rgba(99, 102, 241, .45);
  display: none; pointer-events: none;
}
.nv-chart-tip {
  position: absolute; top: 2px; z-index: 3;
  display: none; align-items: center; gap: 10px; white-space: nowrap;
  background: #fff; border: 1px solid var(--nv-line); border-radius: 8px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .10); padding: 5px 10px;
  font-size: 12px; pointer-events: none;
}
.nv-chart-tip em { font-style: normal; color: var(--nv-sub); }
.nv-chart-tip .tp-pv { color: #6366f1; font-weight: 600; }
.nv-chart-tip .tp-uv { color: #f59e0b; font-weight: 600; }
.nv-chart-svg .cg { stroke: #eef1f6; stroke-width: 1; }
.nv-chart-svg .ct { fill: #9aa4b2; font-size: 10px; font-family: inherit; }
.nv-chart-svg .cl-pv { stroke: #6366f1; stroke-width: 2.5; stroke-linecap: round; }
.nv-chart-svg .cl-uv { stroke: #f59e0b; stroke-width: 2; stroke-linecap: round; }
.nv-chart-svg .cd-pv { fill: #6366f1; stroke: #fff; stroke-width: 2; }
.nv-chart-svg .cd-uv { fill: #f59e0b; stroke: #fff; stroke-width: 2; }
.nv-chart-sum {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 8px; margin-top: 12px; padding: 12px 0 0;
  border-top: 1px dashed var(--nv-line);
}
.nv-sum-item { text-align: center; }
.nv-sum-item:first-child { text-align: left; }
.nv-sum-item:last-child { text-align: right; }
.nv-sum-item em { display: block; font-style: normal; font-size: 12px; color: var(--nv-sub); }
.nv-sum-item strong { display: block; font-size: 17px; margin-top: 3px; }
.nv-go {
  display: inline-block;
  cursor: pointer;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 38px;
  border-radius: var(--nv-radius);
  transition: opacity .15s;
}
.nv-go:hover { opacity: .9; }

/* 页脚（参考社区版式：品牌区 + 链接栏目 + 底部版权备案） */
.nv-foot { border-top: 1px solid var(--nv-line); background: var(--nv-white); }
.nv-foot-inner { max-width: 1400px; margin: 0 auto; padding: 36px 20px 30px; }
.nv-foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(var(--foot-cols, 3), minmax(0, 1fr));
  gap: 28px 36px;
}
.nv-foot-grid[data-cols="0"] { grid-template-columns: minmax(0, 1fr); }
.nv-foot-grid[data-cols="1"] { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.nv-foot-grid[data-cols="2"] { grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr)); }
.nv-foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.nv-foot-brand-link { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.nv-foot-logo { height: 40px; max-width: 180px; border-radius: 8px; }
.nv-foot-mark {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.nv-foot-name { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; max-width: 12em; }
.nv-foot-name b { font-size: 16px; font-weight: 800; color: var(--nv-ink); }
.nv-foot-name i { font-style: normal; font-size: 11px; font-weight: 400; color: var(--nv-sub); }
.nv-foot-desc { margin: 0; max-width: 28em; font-size: 13px; line-height: 1.65; font-weight: 500; color: var(--nv-sub); }
.nv-foot-title { margin: 0 0 14px; font-size: 13px; font-weight: 800; color: var(--nv-ink); }
.nv-foot-col { display: flex; flex-direction: column; align-items: end; }
.nv-foot-col > a {
  display: inline-flex; align-items: center; min-height: 34px;
  color: var(--nv-sub); font-size: 13px; font-weight: 600; transition: color .15s;
}
.nv-foot-col > a:hover { color: var(--nv-card); }
.nv-foot-social { display: flex; flex-wrap: wrap; gap: 8px; }
.nv-foot-social a {
  width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--nv-line);
  background: #f7f9fd; color: var(--nv-sub); font-size: 17px;
  display: grid; place-items: center; transition: all .15s;
}
.nv-foot-social a:hover { border-color: transparent; background: var(--nv-card); color: #fff; transform: translateY(-1px); }
.nv-foot-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.nv-foot-badge {
  display: inline-flex; align-items: stretch; overflow: hidden; border-radius: 4px;
  font-size: 11px; line-height: 1; font-weight: 600; letter-spacing: .01em;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06); color: inherit; text-decoration: none;
}
a.nv-foot-badge:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0, 0, 0, .12); opacity: .96; }
.nv-foot-badge em { font-style: normal; padding: 5px 8px; background: #555; color: #fff; display: inline-flex; align-items: center; }
.nv-foot-badge strong { padding: 5px 8px; color: #fff; display: inline-flex; align-items: center; }
.nv-foot-badge strong.is-gold { background: #dfb317; }
.nv-foot-badge strong.is-green { background: #4c1; }
.nv-foot-badge strong.is-purple { background: #777aa2; }
.nv-foot-bottom { width: 100%; border-top: 1px solid var(--nv-line); }
.nv-foot-bottom-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 20px; min-height: 60px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
}
.nv-foot-copyright { font-size: 13px; font-weight: 700; color: var(--nv-ink); }
.nv-foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12px; color: var(--nv-sub); font-weight: 500; }
.nv-foot-legal a { color: var(--nv-sub); }
.nv-foot-legal a:hover { color: var(--nv-card); }
@media (max-width: 900px) {
  .nv-foot-grid { grid-template-columns: 1fr 1fr; }
  .nv-foot-brand { grid-column: 1 / -1; }
  .nv-foot-col { align-items: flex-start; }
}
@media (max-width: 640px) {
  .nv-foot-inner { padding: 28px 16px 20px; }
  .nv-foot-grid { grid-template-columns: 1fr; gap: 18px; }
  .nv-foot-brand { grid-column: auto; }
  .nv-foot-col { display: none; }
  .nv-foot-bottom-inner { min-height: 0; padding: 12px 16px; flex-direction: column; align-items: flex-start; }
}

/* 右下角悬浮按钮（参照社区侧栏快捷按钮 + 返回顶部） */
.nv-float {
  position: fixed;
  right: 5%;
  bottom: 28px;
  width: 52px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.nv-float > * { pointer-events: auto; }
.nv-float-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.nv-float-btn {
  width: 52px; height: 52px; padding: 0; margin: 0; flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .75); border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--nv-ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none; box-sizing: border-box;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .12), inset 0 1px 0 rgba(255, 255, 255, .65);
  backdrop-filter: blur(20px) saturate(1.35); -webkit-backdrop-filter: blur(20px) saturate(1.35);
  -webkit-appearance: none; appearance: none;
  transition: transform .2s ease, box-shadow .2s ease, color .15s ease, background .15s ease;
}
.nv-float-btn:hover {
  transform: translateY(-2px); color: var(--nv-card); background: rgba(255, 255, 255, .68);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .14), inset 0 1px 0 rgba(255, 255, 255, .75);
}
.nv-float-btn i { font-size: 26px; line-height: 1; }
.nv-qr-hit { position: relative; display: inline-flex; }
.nv-qr-panel {
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translateY(-50%) translateX(6px);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px; border: 1px solid var(--nv-line); border-radius: 12px; background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .14);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nv-qr-panel::after {
  content: ""; position: absolute; right: -5px; top: 50%;
  width: 10px; height: 10px; background: #fff;
  border-right: 1px solid var(--nv-line); border-top: 1px solid var(--nv-line);
  transform: translateY(-50%) rotate(45deg);
}
.nv-qr-panel img { width: 128px; height: 128px; border-radius: 8px; object-fit: cover; }
.nv-qr-panel em {
  font-style: normal; font-size: 12px; font-weight: 600; color: var(--nv-sub);
  max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nv-qr-hit:hover .nv-qr-panel,
.nv-qr-hit.is-open .nv-qr-panel { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.nv-back-top {
  width: 52px; height: 52px; padding: 0; margin: 0; flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .75); border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--nv-card);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .12), inset 0 1px 0 rgba(255, 255, 255, .65);
  backdrop-filter: blur(20px) saturate(1.35); -webkit-backdrop-filter: blur(20px) saturate(1.35);
  -webkit-appearance: none; appearance: none;
  transition: opacity .2s ease, transform .2s ease, background .15s ease, box-shadow .2s ease;
}
.nv-back-top[hidden] { display: none !important; }
.nv-back-top:hover {
  transform: translateY(-2px); background: rgba(255, 255, 255, .68);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .14), inset 0 1px 0 rgba(255, 255, 255, .75);
}
.nv-back-top i { font-size: 26px; }
@media (max-width: 640px) {
  .nv-float {right: 10px;bottom: 20px;}
  .nv-float-btn, .nv-back-top { width: 46px; height: 46px; }
  .nv-float-btn i, .nv-back-top i { font-size: 22px; }
}

/* ===== 双列布局 + 右侧栏 ===== */
.nv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 15px;
  align-items: start;
  margin-top: 20px;
}

/* 推荐板块 */
.nv-rec .nv-tabs { max-width: none; margin-bottom: 0; padding: 3px; }
.nv-rec .nv-tab { flex: 0 0 auto; padding: 6px 20px; font-size: 14px; font-weight: 500; }
.nv-rec-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}

.nv-side {
  position: sticky; top: 78px;
  display: flex; flex-direction: column; gap: 18px;
}
.nv-side-card {
  background: var(--nv-white);
  border-radius: var(--nv-radius);
  box-shadow: var(--nv-shadow);
  padding: 15px;
}
.nv-side-hd {
  display: flex; align-items: center; gap: 9px; margin-bottom: 12px;
}
.nv-side-hd > i { font-size: 19px; color: #2563eb; }
.nv-side-hd h3 { margin: 0; font-size: 16px; font-weight: 700; flex: 1; }
.nv-side-more {
  color: var(--nv-sub); font-size: 16px; line-height: 1; border-radius: 6px;
}
.nv-side-more:hover { color: #2563eb; background: #eef1f7; }

/* 排行榜 tabs */
.nv-tabs {
  display: flex;
  gap: 3px;
  background: #edeff3;
  border-radius: 99px;
  padding: 5px;
  margin-bottom: 10px;
}
.nv-tab {
  flex: 1;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  background: transparent;
  color: var(--nv-sub);
  font-size: 12px;
  padding: 5px 0;
  border-radius: 99px;
  transition: all .15s;
}
.nv-tab:hover { color: var(--nv-ink); }
.nv-tab.is-active { background: var(--nv-white); color: #2563eb; font-weight: 600; box-shadow: 0 1px 3px rgba(28,35,51,.08); }
.nv-panel { display: none; }
.nv-panel.is-active { display: block; }

.nv-rank-list, .nv-hot-list {
  list-style: none; margin: 0; padding: 0; font-size: 13px;
}
.nv-rank-list li, .nv-hot-list li {
  display: flex; align-items: center; gap: 9px; padding: 8px 0;
  border-bottom: 1px dashed #eef1f7;
}
.nv-rank-list li:last-child, .nv-hot-list li:last-child { border-bottom: 0; padding-bottom: 2px; }
.nv-rank-no, .nv-hot-no {
  font-style: normal; flex: none; width: 20px; height: 20px; border-radius: 6px;
  background: #f1f4f9; color: var(--nv-sub); font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.nv-rank-no.is-top, .nv-hot-no.is-top { color: #fff; background: #b9c2d0; }
.nv-rank-no.is-top1, .nv-hot-no.is-top1 { background: #f43f5e; }
.nv-rank-no.is-top2, .nv-hot-no.is-top2 { background: #f97316; }
.nv-rank-no.is-top3, .nv-hot-no.is-top3 { background: #f59e0b; }
.nv-rank-name, .nv-hot-list li a {
  flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nv-hot-list li a:hover, .nv-rank-name:hover { color: #2563eb; }
.nv-rank-num { flex: none; color: var(--nv-sub); font-size: 12px; }

/* 站点统计 */
.nv-stat-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px;
}
.nv-stat {
  background: #f7f9fd; border: 1px solid var(--nv-line); border-radius: 10px;
  padding: 12px 8px; text-align: center;
}
.nv-stat em { display: block; font-style: normal; font-size: 12px; color: var(--nv-sub); }
.nv-stat strong { font-size: 19px; color: #2563eb; }
.nv-side-empty { margin: 4px 0 2px; color: var(--nv-sub); font-size: 13px; text-align: center; padding: 8px 0; }

@media (max-width: 1080px) {
  .nv-layout { grid-template-columns: minmax(0, 1fr); }
  .nv-side { position: static; }
  .nv-rec-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* 平板：渐变随视口缩放，光束落在视口内自然衰减到透明，避免边缘被硬裁出色块 */
  .nv-hero {
    background:
      radial-gradient(34vw 240px at 32% -14%, rgba(59, 130, 246, .16), transparent),
      radial-gradient(34vw 240px at 68% -14%, rgba(99, 102, 241, .14), transparent);
  }
}

/* ===== 手机端底部导航（自适应固定底栏，替代原顶部导航，后台「页脚设置」可视化编辑） ===== */
.nv-tabbar { display: none; }

@media (max-width: 640px) {
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); transition: padding-bottom .28s ease; }
  /* 滚动到页面底部时隐藏底栏，露出真实页脚（与社区一致） */
  body.nv-tabbar-hidden { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .nv-tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    transform: translateY(0);
    z-index: 60;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, .94);
    border-top: 1px solid var(--nv-line);
    box-shadow: 0 -4px 18px rgba(15, 23, 42, .06);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    transition: transform .28s ease, opacity .28s ease, visibility .28s ease;
  }
  .nv-tabbar.is-hidden {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .nv-tabbar-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--nv-sub);
    transition: color .15s ease, background .15s ease;
  }
  .nv-tabbar-item i { font-size: 21px; line-height: 1; }
  .nv-tabbar-item span { font-size: 10px; font-weight: 650; line-height: 1.1; letter-spacing: .02em; }
  .nv-tabbar-item.on { color: #2563eb; }
  .nv-tabbar-item:active { background: rgba(0, 0, 0, .04); }
  /* 底栏占位：右侧悬浮按钮上移，避免与底部导航重叠；底栏隐藏时回落 */
  .nv-float { bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 14px); transition: bottom .28s ease; }
  body.nv-tabbar-hidden .nv-float { bottom: 20px; }
}

/* 移动端 */
@media (max-width: 640px) {
  .nv-hero {
    padding: 34px 14px 26px;
    background:
      radial-gradient(30vw 200px at 30% -12%, rgba(59, 130, 246, .15), transparent),
      radial-gradient(30vw 200px at 70% -12%, rgba(99, 102, 241, .13), transparent);
  }
  .nv-hero-title { font-size: 28px; }
  .nv-hero-sub { font-size: 14px; margin-bottom: 20px; }
  .nv-search { padding: 5px 5px 5px 18px; }
  .nv-search input { font-size: 15px; }
  .nv-search button { padding: 9px 24px; font-size: 14px; }
  .nv-body {padding: 14px 12px 14px;}
  .nv-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .nv-header-inner {height: 60px;padding: 0 12px;}
  .nv-brand { font-size: 16px; gap: 8px; }
  .nv-brand .nv-text b { font-size: 14px; }
  .nv-brand .nv-text i { font-size: 10px; }
  .nv-nav-desktop { display: none; }
  .nv-apply-btn { padding: 6px 12px; font-size: 12px; }
  .nv-apply-btn .nv-i { display: none; }
  .nv-modal-box { padding: 16px; }
  .nv-header-nav a {padding: 5px 0;font-size: 12px;border-radius: 6px;}

  .nv-i { font-size: 13px; }
  .nv-card { padding: 14px 12px; gap: 10px; }
  .nv-name { font-size: 14px; }
  .nv-desc { font-size: 12px; margin-top: 1px; }
  .nv-ico { width: 40px; height: 40px; }
  .nv-layout { gap: 14px; }
  .nv-tabs { gap: 3px; padding: 2px; border-radius: 99px; }
  .nv-tab { padding: 4px 0; font-size: 12px; border-radius: 99px; }
  .nv-rec .nv-tab { padding: 4px 12px; font-size: 13px; }
  .nv-rec-grid { gap: 12px; }
  .nv-side-card { padding: 16px 14px 12px; }
  .nv-detail-hero { padding: 16px 12px; }
  .nv-detail-hd { flex-wrap: nowrap; gap: 12px; }
  .nv-ico-lg { width: 48px; height: 48px; font-size: 20px; flex: 0 0 auto; }
  .nv-detail-title { min-width: 0; }
  .nv-detail-title h1 { font-size: 18px; margin-bottom: 2px; }
  .nv-detail-desc { font-size: 12px; }
  .nv-detail-actions { margin-left: 0; flex: 0 0 auto; }
  .nv-go { font-size: 13px; padding: 8px 16px; white-space: nowrap; }
  .nv-detail-cols { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .nv-panelbox { padding: 14px 12px; }
  .nv-info-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .nv-wbadge-grid { gap: 8px; }
  .nv-wbadge-num { height: 38px; font-size: 16px; }
  .nv-wbadge em { font-size: 11px; }
  .nv-chart-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nv-chart-sum .nv-sum-item { text-align: center; }
  .nv-novel-grid { gap: 10px; }
  .nv-movie-grid { gap: 10px; }
  .nv-novel-info { padding: 16px 7px 6px; }
  .nv-novel-name { font-size: 12px; }
}

/* ===== 顶部分类 hover 面板 ===== */
.nv-nav-item { position: relative; padding-bottom: 22px; margin-bottom: -22px; }
.nv-nav-caret { font-size: 16px; margin-left: -2px; transition: transform .18s; }
.nv-nav-item:hover > a { color: #2563eb; }
.nv-nav-item:hover .nv-nav-caret { transform: rotate(180deg); }
.nv-nav-panel {
  position: absolute; left: 0; top: 100%;
  width: 500px; padding: 14px;
  background: var(--nv-white); border: 1px solid var(--nv-line); border-radius: 14px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .14);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.nv-nav-item:hover .nv-nav-panel { opacity: 1; visibility: visible; transform: none; }
.nv-nav-panel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.nv-nav-cat {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 10px;
  transition: background .15s;
}
.nv-nav-cat:hover { background: #f2f5fb; }
.nv-nav-cat:hover .nc-ico { background: var(--nv-white); }
.nv-nav-cat .nc-ico {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: #eef2fb; color: #2563eb; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
}
.nv-nav-cat .nc-txt { display: flex; flex-direction: column; min-width: 0; }
.nv-nav-cat .nc-txt b { font-size: 13px; font-weight: 600; color: var(--nv-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-nav-cat .nc-txt i { font-style: normal; font-size: 11px; color: var(--nv-sub); margin-top: 1px; }

/* ===== 分类站点页（头部 + 筛选一体卡） ===== */
.nv-cat-hd {
  background: var(--nv-white); border-radius: var(--nv-radius);
  box-shadow: var(--nv-shadow); padding: 18px 22px 16px; margin-bottom: 18px;
}
.nv-cat-top { display: flex; align-items: center; gap: 14px; }
.nv-cat-mark {
  width: 48px; height: 48px; border-radius: 13px; flex: none;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff; font-size: 23px;
  box-shadow: 0 6px 14px rgba(59, 130, 246, .28);
  display: inline-flex; align-items: center; justify-content: center;
}
.nv-cat-meta { min-width: 0; }
.nv-cat-meta h1 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.2px; }
.nv-cat-meta p { margin: 3px 0 0; color: var(--nv-sub); font-size: 13px; }
.nv-cat-meta p b { color: #2563eb; }
.nv-cat-sort {
  display: flex; gap: 6px; margin-top: 12px;
}
.nv-cat-search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  width: 260px; height: 40px; padding: 0 14px; flex: none;
  background: #f1f4f9; border-radius: 999px;
  transition: background .15s, box-shadow .15s;
}
.nv-cat-search:focus-within { background: var(--nv-white); box-shadow: 0 0 0 2px #93b4fd; }
.nv-cat-search i { color: var(--nv-sub); font-size: 16px; flex: none; }
.nv-cat-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 13px; color: var(--nv-ink);
}
.nv-cat-search input::placeholder { color: #9aa7b8; }
.nv-search-empty { text-align: center; color: var(--nv-sub); padding: 40px 0 20px; font-size: 14px; }
.nv-sort {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 999px;
  background: #f1f4f9; font-size: 13px; color: var(--nv-sub);
  transition: all .15s;
}
.nv-sort:hover { background: #e8eef7; color: #2563eb; }
.nv-sort.is-active { background: #2563eb; color: #fff; font-weight: 600; box-shadow: 0 3px 10px rgba(37, 99, 235, .3); }
.nv-cat-filter {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--nv-line);
}
.nv-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: #f1f4f9; border: 1px solid transparent;
  color: var(--nv-sub); font-size: 13px;
  transition: all .15s;
}
.nv-chip i { font-style: normal; font-size: 11px; color: #94a3b8; }
.nv-chip:hover { background: #e8eef7; color: #2563eb; }
.nv-chip.is-active { background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 600; box-shadow: 0 3px 10px rgba(37, 99, 235, .3); }
.nv-chip.is-active i { color: rgba(255, 255, 255, .75); }

@media (max-width: 640px) {
  .nv-cat-hd { padding: 14px 14px 12px; }
  .nv-cat-top { flex-wrap: wrap; gap: 12px; }
  .nv-cat-mark { width: 42px; height: 42px; border-radius: 11px; font-size: 19px; }
  .nv-cat-meta h1 { font-size: 17px; }
  .nv-cat-sort { margin-top: 12px; }
  .nv-sort { flex: 1; justify-content: center; padding: 7px 0; }
  .nv-cat-search { width: 100%; margin-left: 0; order: 3; }
  .nv-cat-filter { gap: 5px; margin-top: 12px; padding-top: 12px; }
  .nv-chip { padding: 5px 10px; font-size: 12px; }
}

/* ===== 排行榜独立页（三列：榜种切换 / 站点排名 / 百度热点） ===== */
.nv-rk { display: grid; grid-template-columns: 220px minmax(0, 1fr) 280px; gap: 16px; align-items: start; max-width: 1400px; margin: 18px auto 30px; padding: 0 20px; }
.nv-rk-side, .nv-rk-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; }
.nv-rk-side-card { background: var(--nv-white); border-radius: var(--nv-radius); box-shadow: var(--nv-shadow); padding: 16px 12px; }
.nv-rk-tab { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 12px; color: var(--nv-ink); font-weight: 500; transition: background .15s, color .15s; }
.nv-rk-tab + .nv-rk-tab { margin-top: 4px; }
.nv-rk-tab i { font-size: 17px; color: var(--nv-sub); transition: color .15s; }
.nv-rk-tab span { font-size: 14px; }
.nv-rk-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: transparent; transition: background .15s, box-shadow .15s; }
.nv-rk-tab:hover { background: #f2f5fb; }
.nv-rk-tab.on { background: #e8f0fe; color: #2563eb; font-weight: 700; }
.nv-rk-tab.on i { color: #2563eb; }
.nv-rk-tab.on .nv-rk-dot { background: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }

.nv-rk-main { min-width: 0; }
.nv-rk-panel { background: var(--nv-white); border-radius: var(--nv-radius); box-shadow: var(--nv-shadow); padding: 22px; }
.nv-rk-hd { margin-bottom: 6px; }
.nv-rk-hd h1 { margin: 0; font-size: 20px; font-weight: 800; }
.nv-rk-hd p { margin: 4px 0 0; font-size: 13px; color: var(--nv-sub); }
.nv-rk-empty { margin: 24px 0; text-align: center; color: var(--nv-sub); font-size: 14px; }

.nv-rk-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; margin: 16px 0 18px; }
.nv-rk-pod { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 150px; padding: 18px 10px 14px; border-radius: 14px; background: linear-gradient(180deg, #eef3fb 0%, #fdfeff 100%); transition: transform .15s, box-shadow .15s; }
.nv-rk-pod:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -10px rgba(28, 35, 51, .18); }
.nv-rk-pod.is-r2 { order: 1; }
.nv-rk-pod.is-r1 { order: 2; min-height: 172px; padding-top: 26px; background: linear-gradient(180deg, #fff2d9 0%, #fffdf7 100%); }
.nv-rk-pod.is-r3 { order: 3; }
.nv-rk-ico { width: 52px; height: 52px; border-radius: 14px; }
.nv-rk-pod-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.nv-rk-pod-num { font-size: 12px; color: var(--nv-sub); font-variant-numeric: tabular-nums; }

.nv-rk-list { list-style: none; margin: 0; padding: 0; }
.nv-rk-item { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; transition: background .15s; }
.nv-rk-item:hover { background: #f5f8fd; }
.nv-rk-no { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #f1f4f9; color: var(--nv-sub); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.nv-rk-item .nv-ico { flex: none; width: 42px; height: 42px; border-radius: 11px; }
.nv-rk-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.nv-rk-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.nv-rk-desc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--nv-sub); }
.nv-rk-score { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--nv-sub); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nv-rk-score i { color: #f59e0b; }

.nv-rk-hot { background: var(--nv-white); border-radius: var(--nv-radius); box-shadow: var(--nv-shadow); padding: 16px 16px 8px; }
.nv-rk-hot-hd { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; font-size: 15px; font-weight: 800; }
.nv-rk-hot-hd i { color: #f43f5e; }
.nv-rk-hot-list { list-style: none; margin: 0; padding: 0; }
.nv-rk-hot-list li a { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: center; padding: 8px 0; }
.nv-rk-hot-word { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; transition: color .15s; }
.nv-rk-hot-list li a:hover .nv-rk-hot-word { color: #2563eb; }
.nv-rk-hot-no { text-align: center; font-style: normal; font-size: 13px; font-weight: 800; color: #b9c2d0; font-variant-numeric: tabular-nums; }
.nv-rk-hot-no.is-top { border-radius: 6px; width: 18px; height: 18px; line-height: 18px; color: #fff; background: #b9c2d0; }
.nv-rk-hot-no.is-top1 { background: #f43f5e; }
.nv-rk-hot-no.is-top2 { background: #f97316; }
.nv-rk-hot-no.is-top3 { background: #f59e0b; }

@media (max-width: 1180px) {
  .nv-rk { grid-template-columns: 190px minmax(0, 1fr); }
  .nv-rk-aside { grid-column: 1 / -1; position: static; }
  .nv-rk-hot { position: static; }
}
@media (max-width: 860px) {
  .nv-rk { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 14px; }
  .nv-rk-side { position: static; }
  .nv-rk-side-card { padding: 10px; }
  .nv-rk-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .nv-rk-tab { justify-content: center; gap: 6px; min-height: 40px; padding: 0 8px; }
  .nv-rk-tab i { display: none; }
  .nv-rk-dot { display: none; }
  .nv-rk-tab.on { background: #2563eb; color: #fff; }
  .nv-rk-tab.on i { color: #fff; }
  .nv-rk-panel { padding: 16px 12px; }
  .nv-rk-podium { gap: 8px; }
  .nv-rk-pod { min-height: 128px; padding: 12px 6px 10px; }
  .nv-rk-pod.is-r1 { min-height: 142px; }
  .nv-rk-ico { width: 44px; height: 44px; border-radius: 12px; }
  .nv-rk-pod-name { font-size: 13px; }
  .nv-rk-desc { display: none; }
}

/* ===== 单页（关于本站 / 使用条款 / 隐私政策） ===== */
.nv-page-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; align-items: start; max-width: 1400px; margin: 18px auto 30px; padding: 0 20px; }
.nv-static-card { min-width: 0; background: var(--nv-white); border-radius: var(--nv-radius); box-shadow: var(--nv-shadow); padding: 26px 30px 30px; }
.nv-static-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--nv-line); }
.nv-static-head h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.2px; color: var(--nv-ink); }
.nv-static-time { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--nv-sub); }
.nv-static-time i { font-size: 14px; }
.nv-static-body { font-size: 14px; line-height: 1.85; color: var(--nv-ink); overflow-wrap: break-word; }
.nv-static-body p { margin: 0 0 12px; }
.nv-static-body h2 { margin: 22px 0 10px; font-size: 18px; font-weight: 700; }
.nv-static-body h3 { margin: 18px 0 8px; font-size: 16px; font-weight: 700; }
.nv-static-body ul, .nv-static-body ol { margin: 0 0 12px; padding-left: 22px; }
.nv-static-body li { margin-bottom: 4px; }
.nv-static-body blockquote { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid #2563eb; background: #f2f6fd; border-radius: 8px; color: var(--nv-sub); }
.nv-static-body img { max-width: 100%; height: auto; border-radius: 10px; }
.nv-static-body a { color: #2563eb; text-decoration: none; }
.nv-static-body a:hover { text-decoration: underline; }
.nv-static-body table { width: 100%; margin: 0 0 12px; border-collapse: collapse; font-size: 13px; }
.nv-static-body th, .nv-static-body td { padding: 8px 10px; border: 1px solid var(--nv-line); text-align: left; }
.nv-static-body th { background: #f5f8fd; font-weight: 600; }
.nv-static-body code { padding: 2px 6px; border-radius: 6px; background: #f1f4f9; font-size: 13px; }

.nv-page-aside { position: sticky; top: 80px; }
.nv-page-nav { background: var(--nv-white); border-radius: var(--nv-radius); box-shadow: var(--nv-shadow); padding: 16px 12px; }
.nv-page-nav h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; padding: 0 6px 10px; font-size: 14px; font-weight: 800; border-bottom: 1px solid var(--nv-line); }
.nv-page-nav h3 i { font-size: 16px; color: #2563eb; }
.nv-page-nav-item { display: flex; align-items: center; gap: 10px; min-height: 40px; margin-top: 2px; padding: 0 10px; border-radius: 10px; color: var(--nv-ink); font-size: 13px; text-decoration: none; transition: background .15s, color .15s; }
.nv-page-nav-item:hover { background: #f2f5fb; color: #2563eb; }
.nv-page-nav-item.is-active { background: #e8f0fe; color: #2563eb; font-weight: 700; }
.nv-page-nav-item em { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }

@media (max-width: 860px) {
  .nv-page-wrap { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 14px; }
  .nv-page-aside { position: static; }
  .nv-page-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px; }
  .nv-page-nav h3 { margin: 0 8px 0 0; padding: 0; border-bottom: 0; }
  .nv-page-nav-item { min-height: 34px; padding: 0 12px; background: #f1f4f9; border-radius: 999px; }
  .nv-page-nav-item:hover { background: #e8eef7; }
  .nv-page-nav-item.is-active { background: #2563eb; color: #fff; }
  .nv-page-nav-item em { margin-left: 4px; width: 5px; height: 5px; box-shadow: none; background: inherit; }
  .nv-static-card { padding: 18px 16px 22px; }
  .nv-static-head h1 { font-size: 18px; }
}

/* ===== 右侧栏广告位（覆盖 ads 插件默认样式，随导航主题） ===== */
.nv-side .ad-slot,
.nv-rk-side .ad-slot,
.nv-rk-aside .ad-slot { margin: 0; }
.nv-side .ad-promo,
.nv-rk-side .ad-promo,
.nv-rk-aside .ad-promo { border-radius: var(--nv-radius); }

/* ===== 右侧栏友链块（friends 插件，随导航主题） ===== */
.nv-side .friends-shell-right {
  background: var(--nv-white);
  border-radius: var(--nv-radius);
  box-shadow: var(--nv-shadow);
  padding: 15px;
}
.nv-side .friends-sec-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px;
}
.nv-side .friends-sec-head h2 {
  margin: 0; font-size: 16px; font-weight: 700; color: var(--nv-ink); flex: 1; min-width: 0;
}
.nv-side .friends-apply-btn {
  flex: 0 0 auto; border: 0; background: #f1f4f9; cursor: pointer; padding: 5px 10px;
  display: inline-flex; align-items: center; gap: 4px; border-radius: 999px;
  color: var(--nv-sub); font-size: 12px; font-weight: 650; line-height: 1;
  transition: color .15s, background .15s;
}
.nv-side .friends-apply-btn i { font-size: 14px; }
.nv-side .friends-apply-btn:hover { color: #2563eb; background: #e8f0fe; }
.nv-side .friends-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; padding: 0; }
.nv-side .friends-link {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
  padding: 5px 10px; border-radius: 8px; background: #f1f4f9;
  color: var(--nv-sub); font-size: 13px; line-height: 1.3; text-decoration: none;
  transition: color .15s, background .15s;
}
.nv-side .friends-link i { font-size: 13px; color: var(--nv-sub); flex: 0 0 auto; }
.nv-side .friends-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-side .friends-link:hover, .nv-side .friends-link:hover i { color: #2563eb;}

/* ===== 弹窗骨架补丁（友链申请 / 支付卡片弹窗，等效 community base.css 骨架） ===== */
.uc-modal {
  --card: #fff;
  --chip: #ececec;
  --text: #0a0a0a;
  --text-soft: #2e2e2e;
  --muted: #8a8a8a;
  --line: rgba(0, 0, 0, .07);
  --stroke-strong: rgba(0, 0, 0, .22);
  --overlay: rgba(0, 0, 0, .4);
  --accent: #0a0a0a;
  --accent-ink: #f5f5f5;
  --accent-soft: rgba(10, 10, 10, .07);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 8px 24px rgba(0, 0, 0, .05);
}
body.uc-ui-lock { overflow: hidden; }
.uc-modal {
  position: fixed; inset: 0; z-index: 80;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.uc-modal.open { display: flex; z-index: 12000; }
.uc-modal-mask { position: absolute; inset: 0; background: var(--overlay); }
.uc-modal-panel {
  position: relative; z-index: 1; width: min(400px, 100%);
  padding: 24px 20px; text-align: center;
  max-height: min(90vh, 920px); overflow: auto; scrollbar-width: none;
  background: var(--card); border: 0; border-radius: 20px; box-shadow: var(--card-shadow);
}
.uc-modal-panel::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
.uc-modal-x {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px;
  border: 0; border-radius: 10px; background: transparent; cursor: pointer; color: var(--muted);
}
.uc-modal-x i { font-size: 20px; }
.uc-modal-title { margin: 0 0 6px; font-size: 18px; font-weight: 750; color: var(--text); }
.uc-modal .is-hidden { display: none !important; }

/* 弹窗内通用按钮 / 表单 */
.uc-modal .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--chip); color: var(--text);
  font-size: 13px; font-weight: 700; cursor: pointer; transition: opacity .12s ease;
}
.uc-modal .btn:hover { background: #fff; }
.uc-modal .btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; border-radius: 999px; }
.uc-modal .btn-primary:hover { opacity: .92; color: var(--accent-ink); background: var(--accent); }
.uc-modal .btn-primary:disabled, .uc-modal .btn:disabled { opacity: .65; cursor: not-allowed; }
.uc-modal .field { margin: 0 0 12px; text-align: left; }
.uc-modal .field label { display: block; margin: 0 0 6px; font-size: 12px; font-weight: 650; color: var(--muted); }
.uc-modal .input {
  width: 100%; padding: 8px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--chip); outline: 0;
  color: var(--text); font-size: 14px;
}
.uc-modal .input:focus { background: #fff; border-color: var(--stroke-strong); box-shadow: 0 0 0 3px var(--accent-soft); }

/* 申请友链弹窗（等效 friends-modal.css） */
.uc-friends-panel { text-align: left; width: min(440px, 100%); padding: 28px 24px 22px; }
.uc-friends-panel .uc-modal-title { margin: 0 0 20px; font-size: 18px; font-weight: 750; text-align: left; }
.uc-friends-form .field { margin: 0 0 14px; }
.uc-friends-form .field label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 650; color: var(--text); }
.uc-friends-form .input { height: 44px; border-radius: 10px; background: var(--chip, #f5f6f8); }
.uc-friends-tip { margin: 2px 0 18px; font-size: 12px; line-height: 1.65; color: var(--muted); }
.uc-friends-actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.uc-friends-cancel { border: 0; background: transparent; padding: 0; cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 650; }
.uc-friends-cancel:hover { color: var(--text); }
.uc-friends-submit {
  min-width: 108px; height: 40px; padding: 0 18px; border: 0; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
}
.uc-friends-submit:hover { filter: brightness(.96); }
.uc-friends-submit:disabled { opacity: .65; cursor: not-allowed; }

/* ===== 深色模式（html.nv-dark，悬浮栏按钮切换 + localStorage 记忆） ===== */
html.nv-dark {
  --nv-bg: #0b1220;
  --nv-card: #3b82f6;
  --nv-ink: #e2e8f0;
  --nv-sub: #94a3b8;
  --nv-line: #22304a;
  --nv-white: #141d31;
  --nv-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* 头部 / 手机端底部导航 */
html.nv-dark .nv-header { background: rgba(10, 16, 30, .86); }
html.nv-dark .nv-tabbar { background: rgba(10, 16, 30, .94); border-top-color: #22304a; box-shadow: 0 -4px 18px rgba(0, 0, 0, .35); }
html.nv-dark .nv-tabbar-item { color: #64748b; }
html.nv-dark .nv-tabbar-item.on { color: #60a5fa; }
html.nv-dark .nv-tabbar-item:active { background: rgba(255, 255, 255, .06); }

/* hero 装饰：点阵提亮 */
html.nv-dark .nv-hero::before { background-image: radial-gradient(rgba(96, 165, 250, .25) 1px, transparent 1.5px); }

/* 申请收录弹窗 / 举报表单 */
html.nv-dark .nv-modal-x { background: #22304a; color: var(--nv-sub); }
html.nv-dark .nv-modal-x:hover { background: #2c3d5e; color: var(--nv-ink); }
html.nv-dark .nv-msg-body { color: var(--nv-ink); }
html.nv-dark .nv-field > span, html.nv-dark .nv-reason-label { color: var(--nv-sub); }
html.nv-dark .nv-field input, html.nv-dark .nv-field textarea {
  color: var(--nv-ink); background: #0f1729; border-color: #22304a;
}
html.nv-dark .nv-reason-item span {
  color: var(--nv-sub); background: #182238; border-color: #22304a;
}
html.nv-dark .nv-reason-item span:hover { background: #22304a; }

/* 品牌 mark 深色下文字保持白色可读 */
html.nv-dark .nv-mark { color: #fff; }

/* 资讯 / 小说列表 */
html.nv-dark .nv-news-item { border-color: #22304a; }
html.nv-dark .nv-news-item:hover { background: #182238; border-color: #2c3d5e; }
html.nv-dark .nv-news-thumb, html.nv-dark .nv-novel-cover { background: #182238; }
html.nv-dark .nv-news-title { color: var(--nv-ink); }

/* 站点图标：有图标 URL（含 img）时深色下改深蓝底 #182238；无图占位保留标识色渐变/浅高亮底不变 */
html.nv-dark .nv-ico:has(img),
html.nv-dark .nv-ico.has-brand:has(img) { background: #182238; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }

/* 详情页 */
html.nv-dark .nv-detail-hero .nv-panelbox, html.nv-dark .nv-info-item { background: #182238; }
html.nv-dark .nv-detail-hero .nv-info-item { background: var(--nv-white); }

/* 图表 */
html.nv-dark .nv-chart-tip { background: #141d31; border-color: #22304a; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
html.nv-dark .nv-chart-svg .cg { stroke: #22304a; }
html.nv-dark .nv-chart-svg .cd-pv, html.nv-dark .nv-chart-svg .cd-uv { stroke: #141d31; }

/* 页脚社交 */
html.nv-dark .nv-foot-social a { background: #182238; }

/* 右侧悬浮按钮 / 返回顶部：深色玻璃 */
html.nv-dark .nv-float-btn, html.nv-dark .nv-back-top {
  border-color: rgba(148, 163, 184, .22);
  background: rgba(20, 29, 49, .92);
  color: var(--nv-ink);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
}
html.nv-dark .nv-float-btn:hover, html.nv-dark .nv-back-top:hover {
  background: rgba(30, 41, 66, .92);
  color: var(--nv-card);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
}

/* QR 面板 */
html.nv-dark .nv-qr-panel { background: #141d31; border-color: #22304a; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
html.nv-dark .nv-qr-panel::after { background: #141d31; border-right-color: #22304a; border-top-color: #22304a; }

/* 右侧栏卡内小组件 */
html.nv-dark .nv-group-more:hover, html.nv-dark .nv-side-more:hover { background: #22304a; }
html.nv-dark .nv-tabs { background: #182238; }
html.nv-dark .nv-rank-list li, html.nv-dark .nv-hot-list li { border-bottom-color: #1c2942; }
html.nv-dark .nv-rank-no, html.nv-dark .nv-hot-no, html.nv-dark .nv-rk-no { background: #22304a; }
/* 排行徽章彩色态不随深色变化（与浅色一致） */
html.nv-dark .nv-rank-no.is-top, html.nv-dark .nv-hot-no.is-top { background: #b9c2d0; }
html.nv-dark .nv-rank-no.is-top1, html.nv-dark .nv-hot-no.is-top1 { background: #f43f5e; }
html.nv-dark .nv-rank-no.is-top2, html.nv-dark .nv-hot-no.is-top2 { background: #f97316; }
html.nv-dark .nv-rank-no.is-top3, html.nv-dark .nv-hot-no.is-top3 { background: #f59e0b; }
html.nv-dark .nv-stat { background: #182238; border-color: #22304a; }

/* 顶部分类 hover 面板 */
html.nv-dark .nv-nav-cat:hover { background: #182238; }
html.nv-dark .nv-nav-cat .nc-ico { background: #22304a; }

/* 分类页头部 / 筛选 */
html.nv-dark .nv-cat-search, html.nv-dark .nv-sort, html.nv-dark .nv-chip { background: #182238; }
html.nv-dark .nv-cat-search:focus-within { background: var(--nv-white); }
html.nv-dark .nv-sort:hover, html.nv-dark .nv-chip:hover { background: #22304a; }
/* 选中态保持品牌蓝（与浅色一致；置于 hover 之后防被压） */
html.nv-dark .nv-sort.is-active, html.nv-dark .nv-chip.is-active { background: #2563eb; border-color: #2563eb; }
html.nv-dark .nv-chip.is-active i { color: rgba(255, 255, 255, .75); }

/* 排行榜独立页 */
html.nv-dark .nv-rk-tab:hover { background: #182238; }
/* 选中态：深色下半透明品牌蓝 + 浅蓝字（避免浅色底刺眼） */
html.nv-dark .nv-rk-tab.on,
html.nv-dark .nv-rk-tab.on:hover { background: rgba(59, 130, 246, .2); color: #93c5fd; }
html.nv-dark .nv-rk-tab.on i { color: #93c5fd; }
html.nv-dark .nv-rk-tab.on .nv-rk-dot { background: #93c5fd; box-shadow: 0 0 0 3px rgba(147, 197, 253, .2); }
html.nv-dark .nv-rk-item:hover { background: #182238; }
html.nv-dark .nv-rk-pod { background: linear-gradient(180deg, #182238 0%, #101a2e 100%); }
/* 金奖台（第 1 名）深色改为暗金渐变，文字继承深色主题亮字保持可读 */
html.nv-dark .nv-rk-pod.is-r1 { background: linear-gradient(180deg, rgba(245, 158, 11, .22) 0%, rgba(245, 158, 11, .05) 100%); }

/* 单页 */
html.nv-dark .nv-static-body blockquote { background: #182238; }
html.nv-dark .nv-static-body th { background: #182238; }
html.nv-dark .nv-static-body code { background: #22304a; }
html.nv-dark .nv-page-nav-item:hover { background: #182238; }
html.nv-dark .nv-page-nav-item.is-active { background: #e8f0fe; }

/* 友链块 */
html.nv-dark .nv-side .friends-apply-btn, html.nv-dark .nv-side .friends-link { background: #182238; }
html.nv-dark .nv-side .friends-apply-btn:hover, html.nv-dark .nv-side .friends-link:hover { background: rgba(59, 130, 246, .16); }

/* 通用弹窗骨架（友链申请 / 支付卡片） */
html.nv-dark .uc-modal {
  --card: #141d31;
  --chip: #182238;
  --text: #e2e8f0;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, .16);
  --stroke-strong: rgba(148, 163, 184, .38);
  --accent: #3b82f6;
  --accent-ink: #fff;
  --accent-soft: rgba(59, 130, 246, .2);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .45);
}
html.nv-dark .uc-modal .btn:hover { background: #22304a; }
html.nv-dark .uc-modal .input:focus { background: #141d31; }

/* 深色模式：右侧自助广告位（ads 插件组件走 CSS 变量+fallback，在此定义变量整体换肤，不改 ads 插件文件） */
html.nv-dark .nv-side .ad-slot,
html.nv-dark .nv-rk-side .ad-slot,
html.nv-dark .nv-rk-aside .ad-slot {
  --card: #141d31;
  --line: rgba(148, 163, 184, .16);
  --text: #e2e8f0;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-ink: #fff;
  --accent-soft: rgba(59, 130, 246, .2);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .45);
}
/* 广告位骨架屏 shimmer 深色 */
html.nv-dark .nv-side .ad-icon-card--skel .ad-icon-skel__fill,
html.nv-dark .nv-side .ad-icon-card--skel .ad-icon-skel__bar,
html.nv-dark .nv-rk-side .ad-icon-card--skel .ad-icon-skel__fill,
html.nv-dark .nv-rk-side .ad-icon-card--skel .ad-icon-skel__bar,
html.nv-dark .nv-rk-aside .ad-icon-card--skel .ad-icon-skel__fill,
html.nv-dark .nv-rk-aside .ad-icon-card--skel .ad-icon-skel__bar { background: linear-gradient(90deg, #182238 0%, #22304a 45%, #182238 90%); }

/* 深色模式：广告投放/支付弹窗（挂 body 层级，硬编码色需逐条覆盖） */
html.nv-dark .ad-modal {
  --accent: #3b82f6;
  --accent-ink: #fff;
  --accent-soft: rgba(59, 130, 246, .2);
  --text: #e2e8f0;
  --line: rgba(148, 163, 184, .16);
}
html.nv-dark .ad-modal .ad-modal-mask { background: rgba(2, 6, 16, .62); }
html.nv-dark .ad-modal .ad-modal-panel { background: #141d31; color: #e2e8f0; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
html.nv-dark .ad-modal .ad-modal-close { color: #94a3b8; }
html.nv-dark .ad-modal .ad-field label { color: #94a3b8; }
html.nv-dark .ad-modal .ad-field input,
html.nv-dark .ad-modal .ad-field textarea { background: #0f1729; border-color: #22304a; color: #e2e8f0; }
html.nv-dark .ad-modal .ad-upload-preview { background: #182238; border-color: #22304a; }
/* :not 排除主按钮/成功按钮，避免压掉其彩色 */
html.nv-dark .ad-modal .ad-btn:not(.ad-btn-primary):not(.ad-btn-ok) { background: #182238; border-color: #22304a; color: #cbd5e1; }
html.nv-dark .ad-modal .ad-tier-check,
html.nv-dark .ad-modal .ad-pay-check { border-color: #2c3d5e; }
html.nv-dark .ad-modal .ad-tier-item.is-active .ad-tier-check { box-shadow: inset 0 0 0 3px #141d31; }
html.nv-dark .ad-modal .ad-pay-item.is-active .ad-pay-check { box-shadow: inset 0 0 0 3px #141d31; }
html.nv-dark .ad-modal .ad-pkg-meta { color: #94a3b8; }
html.nv-dark .ad-modal .ad-qr-amount { color: #e2e8f0; }
html.nv-dark .ad-modal .ad-qr-status { color: #94a3b8; }
/* QR 码图片保留白底（保证可扫描性） */

/* 切换深色/浅色主题瞬间全局禁用过渡，避免颜色渐变动画（JS 切换时临时加 nv-theme-switching 类） */
html.nv-theme-switching,
html.nv-theme-switching *,
html.nv-theme-switching *::before,
html.nv-theme-switching *::after { transition: none !important; }
