/* ============================================================
   WallHub 壁纸站主样式
   主色：青蓝渐变 #06B6D4 → #3B82F6
   卡片圆角 16px / 按钮 12px / 胶囊 999px
   ============================================================ */
:root {
  --c1: #06B6D4;
  --c2: #3B82F6;
  --grad: linear-gradient(135deg, #06B6D4, #3B82F6);
  --bg: #f4f6fa;
  --bg-soft: #eceff5;
  --card: #ffffff;
  --card-2: #f8fafc;
  --text: #1a2233;
  --muted: #67748a;
  --line: #e6eaf1;
  --brand: #0ea5cf;
  --brand-2: #3B82F6;
  --danger: #ef4444;
  --ok: #16a34a;
  --shadow: 0 4px 18px rgba(30, 60, 120, .08);
  --shadow-lg: 0 12px 32px rgba(30, 60, 120, .16);
  --r-card: 16px;
  --r-btn: 12px;
  --r-pill: 999px;
}
[data-theme="dark"] {
  --bg: linear-gradient(180deg, #232936 0%, #191e28 100%);
  --bg-soft: #1d2330;
  --card: #262d3d;
  --card-2: #2d3547;
  --text: #e7ecf4;
  --muted: #929db1;
  --line: #343d50;
  --shadow: 0 4px 18px rgba(0, 0, 0, .25);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .4);
  --brand: #22b8e6;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.6;
  background: var(--bg);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 70px;
  transition: background .3s, color .3s;
}
@media (min-width: 769px) { body { padding-bottom: 0; } }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: 14px; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.link { color: var(--brand-2); }
.link:hover { text-decoration: underline; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid rgba(30, 60, 120, .07);
  transition: background .3s, border-color .3s;
}
[data-theme="dark"] .topbar {
  background: rgba(30, 36, 48, .68);
  border-bottom-color: rgba(255, 255, 255, .05);
}
.topbar-inner { display: flex; align-items: center; gap: 18px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 11px; background: var(--grad);
  color: #fff; font-weight: 800; font-size: 20px;
  display: inline-flex; align-items: center; justify-content: center;
}
.logo-text { font-weight: 700; font-size: 17px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--r-btn); font-size: 14.5px; color: var(--muted);
  transition: .2s; min-height: 40px; display: inline-flex; align-items: center;
}
.nav-links a:hover { color: var(--text); background: var(--card-2); }
.nav-links a.on { color: #fff; background: var(--grad); font-weight: 600; }
.search-box {
  flex: 1; max-width: 340px; display: flex; align-items: center;
  background: var(--bg-soft); border-radius: var(--r-pill); padding: 0 6px 0 16px; height: 40px;
  border: 1.5px solid transparent; transition: .2s;
}
.search-box:focus-within { border-color: var(--c2); background: var(--card); }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; }
.search-box button { border: 0; background: transparent; cursor: pointer; font-size: 16px; padding: 8px; border-radius: 50%; }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent;
  cursor: pointer; font-size: 18px; display: inline-flex; align-items: center; justify-content: center;
  position: relative; transition: .2s;
}
.icon-btn:hover { background: var(--card-2); }
.icon-btn:active { transform: scale(.9); }
.badge-dot {
  position: absolute; top: 2px; right: 0; background: var(--danger); color: #fff;
  font-size: 10px; font-style: normal; padding: 1px 5px; border-radius: 999px; line-height: 1.4;
}
.login-btn { padding: 9px 18px; min-height: 0; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--card-2); color: var(--text); border: 1.5px solid var(--line);
  border-radius: var(--r-btn); padding: 9px 18px; font-size: 14px; cursor: pointer;
  min-height: 40px; transition: .2s; text-decoration: none;
}
.btn-ghost:hover { border-color: var(--c2); color: var(--c2); }
.btn-ghost:active { transform: scale(.96); }
.btn-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--grad); color: #fff; border: 0; border-radius: var(--r-btn);
  padding: 10px 22px; font-size: 14.5px; font-weight: 600; cursor: pointer;
  min-height: 40px; transition: .2s; box-shadow: 0 4px 14px rgba(6, 182, 212, .3);
  text-decoration: none;
}
.btn-main:hover { box-shadow: 0 6px 20px rgba(6, 182, 212, .45); filter: brightness(1.05); }
.btn-main:active { transform: scale(.96); }
.btn-main.btn-block { width: 100%; }
.btn-ghost.btn-block { width: 100%; }
.btn-ghost.load-more { width: 100%; margin-top: 14px; }

/* 用户菜单 */
.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 8px; border: 0; background: transparent;
  cursor: pointer; padding: 5px 10px; border-radius: var(--r-pill); min-height: 40px; transition: .2s;
}
.user-btn:hover { background: var(--card-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--bg-soft); display: block; flex-shrink: 0; }
.user-btn .avatar { width: 30px; height: 30px; } /* 顶栏更紧凑，防止默认头像原图尺寸撑破顶栏 */
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 72px; height: 72px; }
.uname { font-size: 14px; font-weight: 500; }
.vip-tag {
  font-style: normal; font-size: 10px; color: #b45309; background: linear-gradient(135deg, #fde68a, #f59e0b);
  padding: 1px 6px; border-radius: 999px; font-weight: 700; vertical-align: middle;
}
.vip-tag.vip-lg { font-size: 12px; padding: 2px 8px; }
.user-drop {
  position: absolute; right: 0; top: calc(100% + 8px); width: 160px; background: var(--card);
  border-radius: var(--r-card); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 8px; display: none; z-index: 120;
}
.user-drop.show { display: block; animation: pop .18s ease; }
.user-drop a { display: block; padding: 9px 14px; border-radius: 10px; font-size: 14px; transition: .15s; }
.user-drop a:hover { background: var(--card-2); }
.user-drop .drop-quit { color: var(--danger); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; } }

/* ---------- 移动端底栏 ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--card); border-top: 1px solid var(--line);
  display: flex; padding: 4px 0 max(4px, env(safe-area-inset-bottom));
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; font-size: 10.5px; color: var(--muted); padding: 4px 0; min-height: 50px; justify-content: center; }
.tabbar a i { font-style: normal; font-size: 20px; line-height: 1.3; }
.tabbar a:active { transform: scale(.92); }
@media (min-width: 769px) { .tabbar { display: none; } }

/* ---------- 移动端顶栏精简 ---------- */
@media (max-width: 768px) {
  .topbar-inner { gap: 10px; height: 54px; }
  .nav-links { display: none; }
  .logo-text { display: none; }
  .search-box { max-width: none; height: 38px; }
  .uname { display: none; }
  .login-btn { padding: 8px 14px; font-size: 13px; }
  .section { padding: 16px 0; }
  .detail-title { font-size: 20px; }
}
* { -webkit-tap-highlight-color: transparent; }

/* ---------- 通用 section ---------- */
.page-fade { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.section { padding: 22px 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.sec-head h2 { font-size: 19px; }
.sec-more { font-size: 13.5px; color: var(--muted); min-height: 40px; display: inline-flex; align-items: center; }
.sec-more:hover { color: var(--c2); }

/* ---------- Banner 轮播 ---------- */
.banner-wrap { position: relative; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); }
.banner-track { display: flex; transition: transform .5s ease; }
.banner-slide {
  flex: 0 0 100%; height: 320px; background-size: cover; background-position: center; position: relative; display: block;
}
.banner-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 18, 34, .72) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
}
.banner-label {
  align-self: flex-start; background: var(--grad); color: #fff; font-size: 12px;
  padding: 3px 12px; border-radius: 999px; margin-bottom: 10px; font-weight: 600;
}
.banner-mask h3 { color: #fff; font-size: 22px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.banner-more {
  position: absolute; right: 14px; bottom: 16px; color: #fff; font-size: 13px;
  background: rgba(255,255,255,.16); backdrop-filter: blur(6px);
  padding: 6px 14px; border-radius: 999px; transition: .2s;
}
.banner-more:hover { background: var(--grad); }
.banner-dots { position: absolute; bottom: 14px; left: 20px; display: flex; gap: 6px; }
.banner-dots i { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.45); transition: .3s; cursor: pointer; }
.banner-dots i.on { width: 22px; background: #fff; }
@media (max-width: 768px) { .banner-slide { height: 200px; } }

/* ---------- 端切换 ---------- */
.type-switch {
  display: inline-flex; background: var(--bg-soft); border-radius: var(--r-pill); padding: 4px; gap: 2px;
}
.type-switch button {
  border: 0; background: transparent; padding: 8px 18px; border-radius: var(--r-pill);
  font-size: 13.5px; cursor: pointer; color: var(--muted); min-height: 40px; transition: .25s;
}
.type-switch button.on { background: var(--grad); color: #fff; font-weight: 600; box-shadow: 0 3px 10px rgba(6,182,212,.35); }
.type-switch button:active { transform: scale(.95); }

/* ---------- 分类 ---------- */
.cat-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 6px; background: var(--card);
  border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 9px 18px;
  font-size: 14px; transition: .2s; cursor: pointer; min-height: 40px;
}
.cat-grid.wrap2 { max-height: 92px; overflow: hidden; }
.cat-pill:hover, .cat-pill.on { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(6,182,212,.35); transform: translateY(-2px); }
.cat-pill i { font-style: normal; }
.cat-all-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-all-card {
  background: var(--card); border-radius: var(--r-card); padding: 22px 16px; text-align: center;
  box-shadow: var(--shadow); transition: .25s; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.cat-all-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-icon { font-size: 34px; }
.cat-name { font-weight: 600; }
.cat-count { font-size: 12.5px; color: var(--muted); }

/* ---------- 瀑布流 ---------- */
.wall-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 768px) { .wall-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.grid-3 { grid-template-columns: repeat(3, 1fr) !important; }
.wall-card {
  display: block; background: var(--card); border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
  break-inside: avoid;
}
.wall-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.wall-card:active { transform: translateY(-1px) scale(.99); }
.wall-thumb { position: relative; overflow: hidden; }
.wall-card.card-m .wall-thumb { aspect-ratio: 9 / 15.2; }
.wall-card.card-d .wall-thumb { aspect-ratio: 16 / 10; }
.wall-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; background: var(--bg-soft); }
.wall-card:hover .wall-thumb img { transform: scale(1.04); }
.res-tag {
  position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.45); color: #fff;
  font-size: 10.5px; padding: 2px 8px; border-radius: 999px; backdrop-filter: blur(4px);
}
.type-tag { position: absolute; right: 8px; top: 8px; font-size: 14px; }
.wall-meta { padding: 10px 12px 12px; }
.wall-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wall-sub { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 3px; }
.grid-loading, .grid-end, .grid-empty { text-align: center; color: var(--muted); font-size: 13.5px; padding: 22px 0; }
.grid-end::before, .grid-end::after { content: " · "; }

/* ---------- 筛选条 ---------- */
.filter-bar { margin-bottom: 10px; }
.filter-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0; border: 1.5px solid var(--line); background: var(--card); border-radius: var(--r-pill);
  padding: 8px 16px; font-size: 13.5px; color: var(--muted); min-height: 40px; display: inline-flex; align-items: center; transition: .2s;
}
.filter-chip:hover { color: var(--text); }
.filter-chip.on { background: var(--grad); color: #fff; border-color: transparent; font-weight: 600; }
.sort-bar { display: inline-flex; gap: 4px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-btn); padding: 4px; margin-bottom: 16px; }
.sort-item { padding: 7px 16px; border-radius: 9px; font-size: 13.5px; color: var(--muted); min-height: 36px; display: inline-flex; align-items: center; }
.sort-item.on { background: var(--card-2); color: var(--c2); font-weight: 600; }
[data-theme="dark"] .sort-item.on { color: #fff; background: var(--grad); }

/* ---------- 详情页 ---------- */
.detail-wrap { }
.detail-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 900px) { .detail-main { grid-template-columns: 1fr; gap: 20px; } }
.detail-viewer {
  border-radius: var(--r-card); overflow: hidden; cursor: zoom-in; position: relative;
  box-shadow: var(--shadow-lg); background: var(--card-2);
}
.detail-img { width: 100%; max-height: 78vh; object-fit: contain; }
.viewer-hint {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.5); color: #fff; font-size: 11.5px; padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.detail-title { font-size: 26px; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.3px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pill { background: var(--grad); color: #fff; font-size: 12.5px; padding: 5px 14px; border-radius: 999px; }
.pill-plain { background: var(--card-2); color: var(--muted); }
.pill-soft { background: var(--card-2); color: var(--brand); border: 1px dashed var(--line); }

/* 信息卡：分区清晰、留白充足 */
.detail-meta {
  display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--r-card);
  padding: 0; box-shadow: var(--shadow); margin-bottom: 20px;
  overflow: hidden;
}
.detail-meta > div {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 13px 18px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.detail-meta > div:last-child { border-bottom: 0; }
.detail-meta dt {
  color: var(--muted); flex-shrink: 0; width: 72px;
  font-size: 13px; padding-top: 1px;
}
.detail-meta dd { flex: 1; min-width: 0; word-break: break-word; }
.score-stars i { font-style: normal; font-size: 20px; color: #d7dce5; cursor: pointer; transition: .15s; margin-right: 2px; }
.score-stars i.on { color: #f59e0b; }
.score-stars:active i { transform: scale(.9); }

/* 操作按钮组：更宽松 */
.detail-actions {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px;
}
.act-btn {
  border: 1.5px solid var(--line); background: var(--card); border-radius: var(--r-btn);
  padding: 11px 20px; font-size: 14px; cursor: pointer; min-height: 46px; transition: .2s;
  flex: 1; min-width: 120px; text-align: center;
}
.act-btn:hover { border-color: var(--c2); color: var(--c2); }
.act-btn:active { transform: scale(.94); }
.act-btn.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(6,182,212,.35); }

/* 下载面板：渐变顶条 + 突出 */
.dl-panel {
  background: var(--card); border-radius: var(--r-card);
  padding: 0; box-shadow: var(--shadow); margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid rgba(6,182,212,.15);
}
.dl-panel h3 {
  font-size: 15px; margin-bottom: 0;
  padding: 14px 18px 10px;
  background: linear-gradient(135deg, rgba(6,182,212,.08), rgba(59,130,246,.08));
  border-bottom: 1px solid var(--line);
}
.dl-panel .dl-btns { padding: 14px 18px 8px; }
.dl-panel .muted { padding: 0 18px 14px; }
.dl-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-dl {
  flex: 1; min-width: 150px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--card-2); border: 1.5px solid var(--line); border-radius: var(--r-btn);
  padding: 13px 16px; font-size: 14px; font-weight: 500; min-height: 48px; transition: .2s; cursor: pointer;
}
.btn-dl:hover { border-color: var(--c2); color: var(--c2); }
.btn-dl:active { transform: scale(.96); }
.btn-dl-hot { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(6,182,212,.35); }
.btn-dl-hot:hover { color: #fff; }

/* 评论/推荐标题 */
.comment-panel h3, .related-panel h3 { font-size: 17px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }

@media (max-width: 900px) {
  .detail-title { font-size: 22px; }
  .detail-meta > div { padding: 11px 14px; }
  .dl-panel .dl-btns { padding: 12px 14px 6px; }
  .dl-panel .muted { padding: 0 14px 12px; }
}

/* 全屏预览 */
.fullscreen-viewer {
  position: fixed; inset: 0; z-index: 300; background: rgba(8, 12, 22, .96);
  display: flex; align-items: center; justify-content: center; touch-action: none;
}
.fullscreen-viewer img { max-width: 94vw; max-height: 92vh; object-fit: contain; transition: transform .2s; user-select: none; -webkit-user-drag: none; }
.fs-close {
  position: absolute; top: 14px; right: 16px;
  height: 44px; padding: 0 18px;
  display: flex; align-items: center; gap: 7px;
  border-radius: 22px; border: 1px solid rgba(255,255,255,.38);
  background: rgba(10,12,18,.62);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; z-index: 2;
  transition: background .2s, transform .15s;
}
.fs-close:hover { background: rgba(10,12,18,.82); }
.fs-close:active { transform: scale(.94); }
.fs-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; cursor: pointer; }
.fs-prev { left: 12px; } .fs-next { right: 12px; }
.fs-bar { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-size: 13px; }
@media (max-width: 768px) { .fs-nav { display: none; } }

/* ---------- 评论 ---------- */
.comment-panel, .related-panel { margin-top: 30px; }
.comment-panel h3, .related-panel h3 { font-size: 17px; margin-bottom: 14px; }
.cmt-form { display: flex; gap: 10px; margin-bottom: 16px; }
.cmt-form textarea {
  flex: 1; border: 1.5px solid var(--line); background: var(--card); border-radius: var(--r-btn);
  padding: 10px 14px; outline: none; resize: vertical; min-height: 52px;
}
.cmt-form textarea:focus { border-color: var(--c2); }
.cmt-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cmt-item .avatar { width: 38px; height: 38px; flex-shrink: 0; }
.cmt-item .cmt-body { flex: 1; min-width: 0; }
.cmt-item .cmt-name { font-size: 13px; font-weight: 600; }
.cmt-item .cmt-txt { font-size: 14px; margin: 2px 0; word-break: break-word; }
.cmt-item .cmt-time { font-size: 11.5px; color: var(--muted); }

/* ---------- 专题 ---------- */
.topic-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.topic-card {
  flex: 0 0 300px; border-radius: var(--r-card); overflow: hidden; position: relative;
  box-shadow: var(--shadow); transition: .25s; height: 190px; background: var(--card);
}
.topic-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.topic-card img { width: 100%; height: 100%; object-fit: cover; }
.topic-info { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(10,18,34,.78)); display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; color: #fff; }
.topic-info h3 { font-size: 17px; }
.topic-info p { font-size: 12px; opacity: .85; margin: 2px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topic-info span { font-size: 12px; background: var(--grad); align-self: flex-start; padding: 3px 12px; border-radius: 999px; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.topic-hero {
  height: 220px; border-radius: var(--r-card); background-size: cover; background-position: center;
  position: relative; margin-bottom: 20px; box-shadow: var(--shadow);
}
.topic-hero-mask { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(10,18,34,.75)); border-radius: var(--r-card); display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff; }
.topic-hero-mask h1 { font-size: 26px; }
.topic-hero-mask p { opacity: .9; font-size: 13.5px; }

/* ---------- 认证表单 ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 40px 0; }
.auth-card, .form-card {
  width: 100%; max-width: 440px; background: var(--card); border-radius: var(--r-card);
  padding: 30px 26px; box-shadow: var(--shadow);
}
.form-card { max-width: 640px; }
.auth-card h2, .form-card h2 { margin-bottom: 6px; }
.auth-row { display: flex; justify-content: space-between; margin: 14px 0; font-size: 13.5px; }
.auth-tip { text-align: center; font-size: 12.5px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.field { display: block; margin: 16px 0; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea, .modal-input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--r-btn);
  background: var(--card-2); outline: none; transition: .2s; min-height: 44px;
}
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .modal-input:focus { border-color: var(--c2); background: var(--card); }
.field input:disabled { opacity: .6; }
.code-field > div { display: flex; gap: 10px; }
.code-field input { flex: 1; }
.code-field .btn-ghost { flex-shrink: 0; white-space: nowrap; }
.seg-group { display: flex; gap: 8px; flex-wrap: wrap; }
.seg {
  border: 1.5px solid var(--line); background: var(--card-2); border-radius: var(--r-btn);
  padding: 9px 18px; font-size: 13.5px; cursor: pointer; min-height: 40px; transition: .2s;
}
.seg.on { background: var(--grad); color: #fff; border-color: transparent; font-weight: 600; }
.file-label { cursor: pointer; display: inline-block; }
.tag-sug {
  border: 1.5px solid var(--line); border-radius: 12px; margin-top: 8px; background: var(--card);
  box-shadow: var(--shadow-lg); max-height: 200px; overflow-y: auto;
}
.tag-sug button { display: block; width: 100%; text-align: left; padding: 10px 16px; border: 0; background: transparent; cursor: pointer; font-size: 14px; }
.tag-sug button:hover { background: var(--card-2); }
.tag-selected { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag-selected .pill { cursor: pointer; }

/* ---------- 会员页 ---------- */
.vip-hero {
  text-align: center; padding: 40px 20px; border-radius: var(--r-card);
  background: linear-gradient(135deg, rgba(6,182,212,.14), rgba(59,130,246,.14)), var(--card);
  border: 1px solid var(--line); margin-bottom: 26px;
}
.vip-hero h1 { font-size: 30px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vip-hero p { color: var(--muted); margin: 6px 0 12px; }
.vip-state { display: inline-block; font-size: 13px; background: var(--card-2); padding: 6px 18px; border-radius: 999px; border: 1px solid var(--line); }
.vip-state.ok { color: var(--ok); }
.plan-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 30px; }
.plan-card {
  position: relative; background: var(--card); border: 2px solid var(--line); border-radius: var(--r-card);
  padding: 24px 20px; transition: .25s; text-align: center;
}
.plan-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--c1); }
.plan-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 11.5px; padding: 2px 14px; border-radius: 999px; font-weight: 600; }
.plan-card h3 { font-size: 16px; }
.plan-price { margin: 10px 0 14px; }
.plan-price i { font-style: normal; font-size: 15px; color: var(--c2); }
.plan-price b { font-size: 38px; line-height: 1; }
.plan-price em { font-style: normal; font-size: 12.5px; color: var(--muted); margin-left: 4px; }
.plan-card ul { list-style: none; text-align: left; font-size: 13.5px; margin-bottom: 18px; }
.plan-card ul li { padding: 5px 0; color: var(--muted); }
.rights-table h3 { font-size: 17px; margin-bottom: 12px; }
.table-scroll { overflow-x: auto; }
.rights-table table, .admin-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); font-size: 13.5px; }
.rights-table th, .rights-table td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.rights-table th { background: var(--card-2); }
.rights-table td:first-child { text-align: left; font-weight: 500; }

/* 支付弹层 */
.pay-order { display: flex; justify-content: space-between; align-items: center; background: var(--card-2); border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.pay-order b { font-size: 22px; color: var(--danger); }
.pay-methods { display: flex; gap: 10px; margin-bottom: 12px; }
.pay-item { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; font-size: 14px; min-height: 46px; }
.pay-item:has(input:checked) { border-color: var(--c2); background: rgba(59,130,246,.08); color: var(--c2); font-weight: 600; }
.pay-item input { display: none; }

/* ---------- 签到 ---------- */
.checkin-wrap { max-width: 560px; margin: 0 auto; }
.checkin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.checkin-streak { text-align: center; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px 20px; }
.checkin-streak b { font-size: 26px; display: block; line-height: 1.2; color: var(--c2); }
.checkin-streak span { font-size: 11.5px; color: var(--muted); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.calendar { background: var(--card); border-radius: var(--r-card); padding: 16px; box-shadow: var(--shadow); margin-bottom: 18px; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 13.5px; position: relative; border: 0; background: transparent; transition: .15s;
}
.cal-day.future { color: var(--muted); opacity: .55; }
.cal-day.signed { background: var(--c2); color: #fff; font-weight: 600; }
.cal-day.signed.makeup { background: #e8890c; }
.cal-day.today:not(.signed) { border: 1.5px dashed var(--c2); color: var(--c2); }
.cal-day.makeupable { cursor: pointer; color: var(--muted); }
.cal-day.makeupable:hover { background: var(--card-2); }
.cal-day .mk { position: absolute; bottom: 3px; font-size: 8px; }

/* ---------- 个人中心 ---------- */
.profile-wrap { max-width: 760px; margin: 0 auto; }
.profile-card {
  display: flex; align-items: center; gap: 16px; background: var(--card);
  border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow); margin-bottom: 16px; flex-wrap: wrap;
}
.profile-info { flex: 1; min-width: 200px; }
.profile-info h2 { font-size: 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 480px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat-item { background: var(--card); border-radius: var(--r-card); padding: 16px; text-align: center; box-shadow: var(--shadow); }
.stat-item b { font-size: 20px; display: block; }
.stat-item span { font-size: 12px; color: var(--muted); }
.entry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 480px) { .entry-grid { grid-template-columns: repeat(4, 1fr); } }
.entry {
  position: relative; background: var(--card); border-radius: var(--r-card); padding: 18px 8px;
  text-align: center; box-shadow: var(--shadow); transition: .2s; font-size: 13px;
}
.entry:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.entry:active { transform: scale(.94); }
.entry i { font-style: normal; font-size: 24px; display: block; margin-bottom: 6px; }
.vip-invite {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(135deg, rgba(6,182,212,.16), rgba(59,130,246,.16)), var(--card);
  border-radius: var(--r-card); padding: 20px 22px; flex-wrap: wrap;
}

/* 收藏夹 tabs */
.col-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; }
.col-tab {
  flex-shrink: 0; border: 1.5px solid var(--line); background: var(--card); border-radius: var(--r-pill);
  padding: 8px 18px; font-size: 13.5px; cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; transition: .2s;
}
.col-tab.on { background: var(--grad); color: #fff; border-color: transparent; }
.col-tab .ops { font-size: 11px; opacity: .75; }

/* 下载记录列表 */
.dl-records { display: flex; flex-direction: column; gap: 10px; }
.dl-record {
  display: flex; align-items: center; gap: 14px; background: var(--card);
  border-radius: var(--r-card); padding: 12px 14px; box-shadow: var(--shadow);
}
.dl-record img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.dl-record .r-info { flex: 1; min-width: 0; }
.dl-record .r-title { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-record .r-sub { font-size: 12px; color: var(--muted); }
.status-pill { font-size: 11.5px; padding: 3px 12px; border-radius: 999px; }
.status-ok { background: rgba(22,163,74,.12); color: var(--ok); }
.status-wait { background: rgba(245,158,11,.14); color: #d97706; }
.status-bad { background: rgba(239,68,68,.12); color: var(--danger); }

/* 通知 */
.notif-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.notif-tabs button {
  border: 1.5px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 7px 18px; font-size: 13px; cursor: pointer; min-height: 38px; color: var(--muted);
}
.notif-tabs button.on { background: var(--grad); color: #fff; border-color: transparent; }
.notif-list { display: flex; flex-direction: column; gap: 10px; }
.notif-item {
  display: flex; gap: 12px; background: var(--card); border-radius: var(--r-card);
  padding: 14px 16px; box-shadow: var(--shadow); border-left: 3px solid transparent;
}
.notif-item.unread { border-left-color: var(--c2); background: linear-gradient(90deg, rgba(6,182,212,.05), transparent 30%), var(--card); }
.notif-item .n-ico { font-size: 20px; }
.notif-item .n-title { font-weight: 600; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.notif-item .n-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.notif-item .n-txt { font-size: 13px; color: var(--muted); margin: 2px 0; }
.notif-item .n-time { font-size: 11.5px; color: var(--muted); }

/* ---------- 弹层 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 250; background: rgba(10, 16, 30, .55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(4px); animation: fadeIn .2s;
}
.modal-box {
  background: var(--card); border-radius: var(--r-card); padding: 24px; width: 100%; max-width: 400px;
  position: relative; animation: pop .22s ease; max-height: 84vh; overflow-y: auto;
}
.modal-box h3 { margin-bottom: 14px; font-size: 17px; }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: var(--card-2); cursor: pointer; font-size: 14px;
}
.fav-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fav-item {
  border: 1.5px solid var(--line); background: var(--card-2); border-radius: 999px;
  padding: 9px 18px; cursor: pointer; font-size: 13.5px; min-height: 40px; transition: .2s;
}
.fav-item:hover { border-color: var(--c2); color: var(--c2); }
.fav-new { display: flex; gap: 8px; margin-top: 6px; }
.fav-new input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card-2); outline: none; min-height: 42px; }
.popup-box { max-width: 360px; text-align: center; }
.popup-box h3 { margin-top: 10px; }
.popup-box p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.popup-img { border-radius: 12px; margin-bottom: 12px; width: 100%; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 74px; left: 50%; transform: translateX(-50%) translateY(-16px);
  background: rgba(23, 30, 46, .92); color: #fff; padding: 11px 22px; border-radius: 999px;
  font-size: 14px; z-index: 400; opacity: 0; pointer-events: none; transition: .25s; max-width: 84vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: rgba(220, 38, 38, .94); }
.toast.ok { background: rgba(6, 168, 116, .95); }

/* ---------- 头像设置 ---------- */
.avatar-edit { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }

/* ---------- 页脚 ---------- */
.site-footer { padding: 30px 0 40px; text-align: center; font-size: 13px; color: var(--muted); margin-top: 30px; }
.site-footer p { margin: 4px 0; }
@media (max-width: 768px) { .site-footer { padding-bottom: 90px; } }

/* ---------- 空状态 ---------- */
.empty-block { text-align: center; padding: 60px 0; color: var(--muted); }
.empty-block p { margin-bottom: 16px; font-size: 15px; }

/* ---------- 搜索历史 ---------- */
.search-history { margin-bottom: 16px; }

/* ============================================================
   v2 商用打磨层：动效 / 骨架屏 / 微交互 / 无障碍
   ============================================================ */
:root { --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }
html { scroll-behavior: smooth; }
::selection { background: rgba(6, 182, 212, .28); }

/* 自定义滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(125, 145, 175, .38); border-radius: 999px;
  border: 2.5px solid transparent; background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(125, 145, 175, .6); }
/* 移动端：隐藏自定义滚动条，保持内容全宽（原生滚动体验） */
@media (max-width: 768px) { ::-webkit-scrollbar { width: 0; height: 0; } }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background-color: rgba(130, 150, 185, .32); }

/* 键盘焦点可见性（无障碍） */
:focus-visible { outline: 2.5px solid #3B82F6; outline-offset: 2px; border-radius: 8px; }

/* 顶部导航激活指示条（弹性滑入） */
.nav-links a { position: relative; overflow: visible; }
.nav-links a.on::after {
  content: ""; position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%);
  width: 16px; height: 3px; border-radius: 999px; background: #fff;
  animation: navIndicator .35s var(--ease-spring);
}
@keyframes navIndicator { from { width: 0; opacity: 0; } to { width: 16px; opacity: 1; } }

/* 按钮流光扫过（主按钮 + 下载按钮） */
.btn-main, .btn-dl-hot, .act-btn.on { position: relative; overflow: hidden; }
.btn-main::after, .btn-dl-hot::after {
  content: ""; position: absolute; top: 0; left: -90%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-20deg); transition: left .55s ease; pointer-events: none;
}
.btn-main:hover::after, .btn-dl-hot:hover::after { left: 140%; }

/* 卡片交错入场（瀑布流新增卡片自动播放） */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.wall-grid .wall-card { animation: cardIn .5s cubic-bezier(.2, .7, .3, 1) both; }
.wall-grid .wall-card:nth-child(3n+2) { animation-delay: .05s; }
.wall-grid .wall-card:nth-child(3n+3) { animation-delay: .1s; }

/* 缩略图骨架微光 + 图片渐入 */
@keyframes shimmer { from { background-position: -500px 0; } to { background-position: 500px 0; } }
.wall-thumb {
  background: linear-gradient(90deg, var(--bg-soft) 25%, rgba(255, 255, 255, .6) 37%, var(--bg-soft) 63%);
  background-size: 900px 100%;
  animation: shimmer 1.4s linear infinite;
}
[data-theme="dark"] .wall-thumb {
  background: linear-gradient(90deg, #262d3d 25%, #333c52 37%, #262d3d 63%);
  background-size: 900px 100%;
}
.wall-thumb img { opacity: 0; transition: opacity .5s ease; }
.wall-thumb img.loaded { opacity: 1; }

/* 滚动显现（JS 加 reveal 类后由 IO 触发） */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .3, 1); }
.reveal.revealed { opacity: 1; transform: none; }

/* Toast v2：图标 + 弹性入场 */
.toast {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 14px;
  transform: translateX(-50%) translateY(-20px) scale(.94);
  box-shadow: 0 14px 36px rgba(10, 20, 40, .22);
  backdrop-filter: blur(8px);
}
.toast.show { transform: translateX(-50%) translateY(0) scale(1); }
.toast::before { content: "ℹ"; font-weight: 800; font-size: 13px; opacity: .95; }
.toast.ok::before { content: "✓"; }
.toast.err::before { content: "✕"; }

/* 弹层 v2：背景模糊 + 弹簧缩放 */
.modal { background: rgba(12, 18, 32, .48); backdrop-filter: blur(10px); }
.modal-box { border-radius: 20px; box-shadow: 0 24px 64px rgba(6, 12, 28, .28); animation: modalIn .32s var(--ease-spring); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.93); } to { opacity: 1; transform: none; } }

/* Banner 精修 */
.banner-wrap { border-radius: 20px; }
.banner-mask h3 { letter-spacing: .4px; }
.banner-more { transition: background .25s, transform .25s; }
.banner-more:hover { transform: translateX(2px); }

/* 分类胶囊弹性反馈 */
.cat-pill { transition: transform .22s var(--ease-spring), box-shadow .22s, background .22s, color .22s, border-color .22s; }

/* 详情页：桌面端信息面板吸顶 */
@media (min-width: 901px) {
  .detail-main { align-items: start; }
  .detail-info { position: sticky; top: 76px; }
}

/* 空状态精修 */
.grid-empty, .empty-block {
  border: 1.5px dashed var(--line); border-radius: 18px;
  background: var(--card);
}

/* 返回顶部 */
.back-top {
  position: fixed; right: 20px; bottom: 92px; z-index: 90;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; color: var(--muted);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .25s, transform .25s, color .2s;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-top:hover { color: var(--c2); transform: translateY(-3px); }
@media (min-width: 769px) { .back-top { bottom: 26px; right: 26px; } }

/* 页脚精修 */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(110, 140, 190, .05));
}

/* 底部 TabBar 反馈 */
.tabbar a { border-radius: 12px; transition: color .2s, transform .15s ease, background .2s; }
.tabbar a:active { transform: scale(.88); background: var(--card-2); }

/* 减弱动态效果（系统无障碍偏好） */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wall-grid .wall-card { animation: none; }
  .wall-thumb { animation: none; }
  .wall-thumb img { opacity: 1; transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .modal-box, .toast.show, .nav-links a.on::after { animation: none; }
  .btn-main::after, .btn-dl-hot::after { display: none; }
}

/* ---------- 创作者主页 ---------- */
.creator-hero {
  display: flex; gap: 18px; align-items: center;
  background: var(--card); border-radius: var(--r-card);
  padding: 24px 22px; box-shadow: var(--shadow); margin-bottom: 18px;
  background-image: linear-gradient(135deg, rgba(6, 182, 212, .08), rgba(59, 130, 246, .08));
}
.creator-info { flex: 1; min-width: 0; }
.creator-info h1 { font-size: 22px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.creator-stats { display: flex; gap: 30px; margin-top: 10px; }
.creator-stats > div { text-align: center; }
.creator-stats b { font-size: 19px; display: block; line-height: 1.3; }
.creator-stats span { font-size: 11.5px; color: var(--muted); }
@media (max-width: 560px) { .creator-stats { gap: 18px; } }

/* ---------- 评论删除 / 我的标记 / 关注按钮 ---------- */
.cmt-del {
  border: 0; background: transparent; cursor: pointer; font-size: 13px;
  color: var(--muted); align-self: flex-start; padding: 4px; border-radius: 8px;
  opacity: 0; transition: opacity .2s, color .2s;
}
.cmt-item:hover .cmt-del { opacity: 1; }
.cmt-del:hover { color: var(--danger); }
@media (hover: none) { .cmt-del { opacity: .7; } }
.mine-tag {
  font-size: 10px; color: var(--c2); background: rgba(6, 182, 212, .1);
  border: 1px solid rgba(6, 182, 212, .35); border-radius: 6px;
  padding: 0 5px; vertical-align: middle; font-weight: 500;
}
.follow-btn { min-width: 108px; }
.follow-btn.on { background: var(--card); color: var(--muted); border-color: var(--line); box-shadow: none; }
.report-btn { color: var(--muted); }
.report-btn:hover { color: var(--danger); border-color: rgba(239, 68, 68, .4); }

/* ---------- 我的关注 ---------- */
.follow-list { display: flex; flex-direction: column; gap: 10px; }
.follow-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border-radius: var(--r-card);
  padding: 14px 16px; box-shadow: var(--shadow);
}
.f-info { flex: 1; min-width: 0; }
.f-name { font-weight: 600; font-size: 15px; }
.follow-item .btn-ghost { min-height: 36px; padding: 6px 14px; font-size: 13px; }

/* ---------- 文章页（协议/隐私/关于） ---------- */
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-card {
  background: var(--card); border-radius: var(--r-card);
  padding: 34px 34px 28px; box-shadow: var(--shadow);
}
.article-card h1 { font-size: 24px; margin-bottom: 4px; }
.article-body { margin-top: 18px; font-size: 14.5px; line-height: 1.9; }
.article-body h3 { margin: 20px 0 8px; font-size: 16.5px; }
.article-body p { margin: 9px 0; color: var(--text); }
.article-body b { color: var(--brand-2); }
@media (max-width: 560px) { .article-card { padding: 22px 18px; } }

/* 页脚链接 */
.footer-links a { color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--c2); }
.footer-links i { margin: 0 9px; font-style: normal; opacity: .45; }

/* ---------- 404 页面 ---------- */
.nf-wrap { text-align: center; padding: 46px 0 30px; max-width: 560px; margin: 0 auto; }
.nf-code {
  font-size: 92px; font-weight: 800; line-height: 1.1; letter-spacing: 6px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nf-code i { font-style: normal; display: inline-block; animation: nfSpin 2.6s linear infinite; }
@keyframes nfSpin { to { transform: rotate(360deg); } }
.nf-wrap h2 { margin: 8px 0 4px; }
.nf-search { display: flex; gap: 10px; max-width: 430px; margin: 22px auto 18px; }
.nf-search input {
  flex: 1; padding: 11px 16px; border: 1.5px solid var(--line);
  border-radius: var(--r-btn); background: var(--card); outline: none; min-height: 44px;
}
.nf-search input:focus { border-color: var(--c2); }
.nf-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 卡片悬浮快捷收藏 ---------- */
.quick-fav {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 32px; height: 32px; border-radius: 50%;
  border: 0; cursor: pointer; font-size: 15px; line-height: 1;
  background: rgba(0, 0, 0, .42); color: #fff;
  backdrop-filter: blur(4px);
  opacity: 0; transform: scale(.6);
  transition: opacity .2s, transform .2s var(--ease-spring), background .2s;
}
.wall-card:hover .quick-fav,
.wall-card:focus-within .quick-fav { opacity: 1; transform: scale(1); }
.quick-fav:active { transform: scale(.85); }
.quick-fav.on { background: var(--grad); }
.quick-fav.on::before { content: "⭐"; }
@media (hover: none) {
  .quick-fav { opacity: 1; transform: scale(1); } /* 触屏常显 */
}


/* ============================================================
   v3 LIQUID GLASS 液态玻璃层（2025 设计语言）
   悬浮Dock岛 · 镜面内高光 · SVG位移折射 · View Transitions
   渐进增强：Chromium 全量效果，Firefox/旧版回退纯模糊
   ============================================================ */

:root {
  --lg-ease: cubic-bezier(.32, 1.35, .55, 1);
  --lg-hi: rgba(255, 255, 255, .72);
  --lg-hi-2: rgba(255, 255, 255, .26);
  --lg-edge: rgba(255, 255, 255, .5);
  --lg-shadow: 0 10px 40px rgba(15, 40, 90, .12);
  --lg-tint: linear-gradient(120deg, rgba(255,255,255,.60), rgba(255,255,255,.30) 55%, rgba(230,244,255,.42));
}
[data-theme="dark"] {
  --lg-hi: rgba(255, 255, 255, .20);
  --lg-hi-2: rgba(255, 255, 255, .06);
  --lg-edge: rgba(255, 255, 255, .14);
  --lg-shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --lg-tint: linear-gradient(120deg, rgba(52,62,82,.52), rgba(34,42,58,.36) 55%, rgba(40,58,84,.44));
}

/* 跨页过渡（MPA View Transitions，Chromium 126+；他端无感降级） */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .26s ease both; }
::view-transition-new(root) { animation: vt-in .38s var(--lg-ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px) scale(.985); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px) scale(.985); filter: blur(6px); } }

/* ---------- 顶栏 → 悬浮玻璃 Dock 岛 ---------- */
.topbar {
  position: sticky; top: 14px; z-index: 100;
  margin: 14px auto 0; max-width: min(1176px, calc(100% - 28px));
  border-radius: 26px;
  background: var(--lg-tint);
  backdrop-filter: blur(20px) saturate(1.7);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  border: 1px solid var(--lg-edge);
  box-shadow: var(--lg-shadow), inset 0 1px 0 var(--lg-hi), inset 0 -1px 0 var(--lg-hi-2);
  transition: box-shadow .35s ease, background .35s ease, transform .35s var(--lg-ease);
}
[data-theme="dark"] .topbar {
  background: var(--lg-tint);
  border-color: var(--lg-edge);
  box-shadow: var(--lg-shadow), inset 0 1px 0 var(--lg-hi), inset 0 -1px 0 var(--lg-hi-2);
}
/* Chromium：叠加真实折射位移 */
@supports (backdrop-filter: url(#lg-distort)) {
  .topbar { backdrop-filter: blur(14px) saturate(1.6) url(#lg-distort); }
}
.topbar.scrolled {
  transform: translateY(-2px);
  box-shadow: 0 14px 46px rgba(15, 40, 90, .18), inset 0 1px 0 var(--lg-hi), inset 0 -1px 0 var(--lg-hi-2);
}
[data-theme="dark"] .topbar.scrolled {
  box-shadow: 0 14px 46px rgba(0, 0, 0, .5), inset 0 1px 0 var(--lg-hi), inset 0 -1px 0 var(--lg-hi-2);
}
.topbar-inner { height: 64px; }

/* 顶栏内搜索框 → 内嵌玻璃槽 */
.search-box {
  background: rgba(255, 255, 255, .42);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 2px rgba(20, 50, 110, .08), inset 0 -1px 0 rgba(255, 255, 255, .35);
}
[data-theme="dark"] .search-box {
  background: rgba(16, 22, 34, .38);
  border-color: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3), inset 0 -1px 0 rgba(255, 255, 255, .06);
}
.search-box:focus-within {
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .18), inset 0 1px 2px rgba(20, 50, 110, .06);
}
[data-theme="dark"] .search-box:focus-within {
  background: rgba(24, 32, 48, .7);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .25), inset 0 1px 2px rgba(0, 0, 0, .25);
}

/* ---------- 玻璃按钮 ---------- */
.btn-main {
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 6px 20px rgba(6, 150, 200, .32), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 40, 80, .18);
}
.btn-ghost {
  background: rgba(255, 255, 255, .4);
  border: 1px solid var(--lg-edge);
  box-shadow: inset 0 1px 0 var(--lg-hi-2), 0 2px 8px rgba(20, 50, 110, .05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
[data-theme="dark"] .btn-ghost { background: rgba(52, 62, 82, .35); }
.act-btn {
  background: rgba(255, 255, 255, .45);
  border: 1px solid var(--lg-edge);
  box-shadow: inset 0 1px 0 var(--lg-hi-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
[data-theme="dark"] .act-btn { background: rgba(52, 62, 82, .35); }
.act-btn.on {
  background: var(--grad);
  border-color: rgba(255, 255, 255, .3);
  box-shadow: 0 4px 14px rgba(6, 150, 200, .35), inset 0 1px 0 rgba(255, 255, 255, .45);
}

/* ---------- 卡片：轻玻璃（内高光+棱边，避免列表级blur掉帧） ---------- */
.wall-card {
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 2px 12px rgba(20, 50, 110, .07), inset 0 1px 0 rgba(255, 255, 255, .6);
}
[data-theme="dark"] .wall-card {
  background: rgba(40, 48, 64, .55);
  border-color: rgba(255, 255, 255, .09);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .09);
}
.wall-card:hover {
  box-shadow: 0 18px 44px rgba(15, 40, 90, .16), inset 0 1px 0 rgba(255, 255, 255, .75);
}
[data-theme="dark"] .wall-card:hover {
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.res-tag {
  background: rgba(10, 20, 40, .38);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.quick-fav {
  background: rgba(255, 255, 255, .3);
  border: 1px solid rgba(255, 255, 255, .45);
  backdrop-filter: blur(10px) saturate(1.5);
  -webkit-backdrop-filter: blur(10px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
.quick-fav.on {
  background: var(--grad);
  border-color: rgba(255, 255, 255, .4);
}

/* ---------- 弹窗 / Toast：全量液态玻璃 + 折射 ---------- */
.modal { background: rgba(10, 18, 34, .38); backdrop-filter: blur(6px); }
.modal-box {
  background: var(--lg-tint);
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  border: 1px solid var(--lg-edge);
  box-shadow: 0 24px 70px rgba(8, 20, 45, .3), inset 0 1px 0 var(--lg-hi), inset 0 -1px 0 var(--lg-hi-2);
}
[data-theme="dark"] .modal-box { background: linear-gradient(120deg, rgba(40,48,64,.62), rgba(28,34,48,.5)); }
@supports (backdrop-filter: url(#lg-distort-soft)) {
  .modal-box { backdrop-filter: blur(20px) saturate(1.7) url(#lg-distort-soft); }
}
.modal-close { background: rgba(255, 255, 255, .4); border: 1px solid var(--lg-edge); box-shadow: inset 0 1px 0 var(--lg-hi-2); }
[data-theme="dark"] .modal-close { background: rgba(255,255,255,.08); }

.toast {
  background: var(--lg-tint);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid var(--lg-edge);
  box-shadow: 0 14px 40px rgba(8, 20, 45, .22), inset 0 1px 0 var(--lg-hi);
  color: var(--text);
}
[data-theme="dark"] .toast { background: linear-gradient(120deg, rgba(46,56,74,.66), rgba(30,38,54,.56)); }
.toast.ok::before { color: #0d9e6e; }
.toast.err::before { color: #e23c3c; }
[data-theme="dark"] .toast.ok::before { color: #34d399; }

/* ---------- 移动端 TabBar → 悬浮玻璃胶囊岛 ---------- */
.tabbar {
  left: 50%; right: auto; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(560px, calc(100% - 28px));
  border-radius: 999px;
  border: 1px solid var(--lg-edge);
  background: var(--lg-tint);
  backdrop-filter: blur(22px) saturate(1.7);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  box-shadow: var(--lg-shadow), inset 0 1px 0 var(--lg-hi), inset 0 -1px 0 var(--lg-hi-2);
  overflow: hidden;
}
@supports (backdrop-filter: url(#lg-distort-soft)) {
  .tabbar { backdrop-filter: blur(16px) saturate(1.6) url(#lg-distort-soft); }
}
.tabbar a { border-radius: 999px; }
body { padding-bottom: 96px; }

/* ---------- Banner 元素玻璃化 ---------- */
.banner-wrap { border-radius: 24px; }
.banner-label {
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(12px) saturate(1.6);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}
.banner-more {
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.banner-more:hover { background: rgba(255, 255, 255, .3); }

/* 通用面板/表单卡轻玻璃 */
.detail-meta, .dl-panel, .auth-card, .form-card, .panel, .stat-item, .entry,
.plan-card, .rights-table table, .notif-item, .dl-record, .calendar {
  border: 1px solid rgba(255, 255, 255, .45);
}
[data-theme="dark"] .detail-meta, [data-theme="dark"] .dl-panel, [data-theme="dark"] .auth-card,
[data-theme="dark"] .form-card, [data-theme="dark"] .panel, [data-theme="dark"] .stat-item,
[data-theme="dark"] .entry, [data-theme="dark"] .plan-card, [data-theme="dark"] .rights-table table,
[data-theme="dark"] .notif-item, [data-theme="dark"] .dl-record, [data-theme="dark"] .calendar {
  border-color: rgba(255, 255, 255, .09);
}
.detail-meta, .dl-panel, .auth-card, .form-card, .stat-item, .entry {
  background: linear-gradient(150deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .46));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .55);
}
[data-theme="dark"] .detail-meta, [data-theme="dark"] .dl-panel, [data-theme="dark"] .auth-card,
[data-theme="dark"] .form-card, [data-theme="dark"] .stat-item, [data-theme="dark"] .entry {
  background: linear-gradient(150deg, rgba(46, 54, 72, .55), rgba(32, 40, 56, .45));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .08);
}

/* 顶栏用户下拉菜单玻璃化 */
.user-drop {
  background: var(--lg-tint);
  backdrop-filter: blur(26px) saturate(1.8);
  -webkit-backdrop-filter: blur(26px) saturate(1.8);
  border: 1px solid var(--lg-edge);
  box-shadow: 0 18px 50px rgba(8, 20, 45, .22), inset 0 1px 0 var(--lg-hi);
}
[data-theme="dark"] .user-drop { background: linear-gradient(120deg, rgba(44,54,72,.68), rgba(30,38,54,.58)); }

/* 滚动条渐变 */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(6, 182, 212, .45), rgba(59, 130, 246, .45));
  border-radius: 999px;
  border: 2.5px solid transparent;
  background-clip: content-box;
}

/* ---------- 降级与无障碍 ---------- */
@supports not (backdrop-filter: blur(1px)) {
  .topbar, .modal-box, .toast, .tabbar, .user-drop { background: var(--card); }
  .search-box { background: var(--bg-soft); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
@media (max-width: 768px) {
  .topbar { top: 10px; margin-top: 10px; border-radius: 22px; }
  .topbar-inner { height: 58px; }
  .back-top { bottom: 108px; }
}

.toast.err { background: linear-gradient(120deg, rgba(225,70,70,.82), rgba(185,40,40,.72)); border-color: rgba(255,160,160,.5); color: #fff; text-shadow: 0 1px 2px rgba(80,0,0,.3); }
.toast.ok { color: #fff; }


/* ============================================================
   v3.1 现代CSS补充：滚动进度条 / 动画渐变边框 / 原生控件品牌色
   ============================================================ */

/* 原生 checkbox/radio/progress 使用品牌色 */
:root { accent-color: #06B6D4; }

/* 标题排版（现代换行平衡） */
.sec-head h2, .detail-title, .article-card h1, .topic-hero-mask h1, .nf-wrap h2 {
  text-wrap: balance;
}

/* 阅读进度条：纯CSS滚动驱动动画（Chrome 115+，他端隐藏） */
@supports (animation-timeline: scroll(root)) {
  body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 200;
    background: linear-gradient(90deg, #06B6D4, #3B82F6);
    transform-origin: 0 50%;
    transform: scaleX(0);
    animation: wh-progress-grow auto linear;
    animation-timeline: scroll(root);
    pointer-events: none;
  }
  @keyframes wh-progress-grow { to { transform: scaleX(1); } }
}

/* 会员套餐卡：悬停时流动渐变描边（@property 注册角度可动画） */
@property --lg-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@media (hover: hover) {
  .plan-card {
    border: 2px solid transparent;
    background:
      linear-gradient(var(--card), var(--card)) padding-box,
      linear-gradient(var(--lg-angle), rgba(6, 182, 212, .0), rgba(59, 130, 246, .0), rgba(6, 182, 212, .0)) border-box;
    transition: transform .25s ease, box-shadow .25s ease;
  }
  .plan-card:hover {
    animation: lg-rotate 3.2s linear infinite;
    background:
      linear-gradient(var(--card), var(--card)) padding-box,
      linear-gradient(var(--lg-angle), #06B6D4, #3B82F6, #22D3EE, #06B6D4) border-box;
    box-shadow: 0 16px 44px rgba(6, 150, 200, .22), inset 0 1px 0 rgba(255, 255, 255, .5);
  }
}
@keyframes lg-rotate { to { --lg-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .plan-card:hover { animation: none; }
}

/* ---------- 排行榜 / 我的订单 ---------- */
.rank-wrap { max-width: 760px; margin: 0 auto; }
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border-radius: var(--r-card);
  padding: 12px 16px; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rank-item:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }
.rank-no { width: 34px; text-align: center; font-weight: 800; font-size: 17px; color: var(--muted); font-style: italic; }
.rank-no.rank-top { color: #F59E0B; text-shadow: 0 1px 0 rgba(255,200,0,.35); }
.rank-thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.rank-item .r-info { flex: 1; min-width: 0; }
.rank-item .r-title { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-dl { text-align: center; }
.rank-dl b { font-size: 15px; display: block; color: var(--c2); }
.rank-dl span { font-size: 10.5px; color: var(--muted); }

.myorder-list { display: flex; flex-direction: column; gap: 10px; }
.myorder-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border-radius: var(--r-card);
  padding: 14px 16px; box-shadow: var(--shadow);
}
.mo-main { flex: 1; min-width: 0; }
.mo-plan { font-weight: 600; font-size: 14.5px; display: flex; gap: 8px; align-items: center; }
.mo-amount { font-size: 16px; color: var(--danger); display: block; text-align: right; }
.mo-right { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }


/* ============================================================
   详情页 v3 排版重写（覆盖旧规则）
   ============================================================ */
.detail-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; }
@media (max-width: 900px) { .detail-main { grid-template-columns: 1fr; gap: 22px; } }
.detail-title { font-size: 28px; font-weight: 700; letter-spacing: -0.4px; margin-bottom: 8px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

/* 信息卡网格：2列，每张独立圆角卡片 */
.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.info-card {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--card); border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.info-card:hover { border-color: rgba(6,182,212,.35); box-shadow: 0 2px 14px rgba(6,182,212,.08); }
.info-card-wide { grid-column: 1 / -1; }
.info-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.info-body { flex: 1; min-width: 0; }
.info-label {
  font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 4px;
}
.info-value { font-size: 14px; line-height: 1.6; }
.info-desc { color: var(--muted); font-size: 13px; line-height: 1.7; }

/* 操作按钮：等宽分布，间距充足 */
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.act-btn {
  border: 1.5px solid var(--line); background: var(--card); border-radius: var(--r-btn);
  padding: 12px 20px; font-size: 14px; cursor: pointer; min-height: 48px;
  flex: 1; min-width: 120px; text-align: center;
  transition: border-color .2s, color .2s, transform .15s, box-shadow .2s;
}
.act-btn:hover { border-color: var(--c2); color: var(--c2); }
.act-btn:active { transform: scale(.94); }
.act-btn.on {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(6,182,212,.35);
}

/* 下载面板：品牌左边条 + 渐变标题条 */
.dl-panel {
  background: var(--card); border-radius: var(--r-card);
  padding: 0; box-shadow: var(--shadow); margin-bottom: 26px;
  overflow: hidden;
  border-left: 4px solid var(--c1);
}
.dl-panel h3 {
  font-size: 15px; margin-bottom: 0; font-weight: 700;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.dl-panel .dl-btns { padding: 16px 18px 6px; }
.dl-panel .muted { padding: 0 18px 16px; }
.dl-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-dl {
  flex: 1; min-width: 150px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--card-2); border: 1.5px solid var(--line); border-radius: var(--r-btn);
  padding: 13px 16px; font-size: 14px; font-weight: 500; min-height: 48px; transition: .2s; cursor: pointer;
}
.btn-dl:hover { border-color: var(--c2); color: var(--c2); }
.btn-dl:active { transform: scale(.96); }
.btn-dl-hot { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(6,182,212,.35); }

/* 评分星级 */
.score-stars i {
  font-style: normal; font-size: 21px; color: #d7dce5;
  cursor: pointer; transition: .15s; margin-right: 1px;
}
.score-stars i.on { color: #f59e0b; }

/* 评论/推荐面板：底部分隔线 */
.comment-panel, .related-panel { margin-top: 32px; }
.comment-panel h3, .related-panel h3 {
  font-size: 17px; margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 6px;
}
.report-btn {
  color: var(--muted); margin-left: auto; font-weight: normal;
  padding: 5px 12px !important; font-size: 12px !important;
}
.report-btn:hover { color: var(--danger); border-color: rgba(239,68,68,.4); }

/* 桌面端：右侧信息面板吸顶 */
@media (min-width: 901px) {
  .detail-main { align-items: start; }
  .detail-info { position: sticky; top: 86px; }
}

/* 移动端适配 */
@media (max-width: 560px) {
  .info-cards { grid-template-columns: 1fr; }
  .detail-title { font-size: 23px; }
  .detail-actions { gap: 8px; }
  .act-btn { min-width: calc(50% - 5px); }
}

/* ============================================================
   详情页排版精修 v3.1（覆盖旧规则）
   ============================================================ */

/* 右侧信息区整体间距 */
.detail-info { display: flex; flex-direction: column; }

/* 标题与标签 */
.detail-title {
  font-size: 28px; font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 10px; line-height: 1.3;
}
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

/* 操作按钮：分段间距充足 */
.detail-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.act-btn {
  border: 1.5px solid var(--line); background: var(--card);
  border-radius: var(--r-btn); padding: 12px 18px;
  font-size: 14px; cursor: pointer; min-height: 48px;
  flex: 1; min-width: 120px; text-align: center;
  transition: border-color .2s, color .2s, transform .15s, box-shadow .2s, background .2s;
}
.act-btn:hover { border-color: var(--c2); color: var(--c2); transform: translateY(-1px); }
.act-btn:active { transform: scale(.94); }
.act-btn.on {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(6,182,212,.3);
}

/* 下载面板：品牌左边条 + 清晰内部分区 */
.dl-panel {
  background: var(--card); border-radius: var(--r-card);
  padding: 0; box-shadow: var(--shadow); margin-bottom: 26px;
  overflow: hidden;
  border-left: 4px solid var(--c1);
}
.dl-panel h3 {
  font-size: 15.5px; font-weight: 700; margin-bottom: 0;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.dl-panel .dl-btns { padding: 16px 18px 6px; }
.dl-panel .muted { padding: 4px 18px 16px; }
.dl-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-dl {
  flex: 1; min-width: 150px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--card-2); border: 1.5px solid var(--line); border-radius: var(--r-btn);
  padding: 13px 16px; font-size: 14px; font-weight: 500; min-height: 50px;
  transition: border-color .2s, color .2s, transform .15s;
}
.btn-dl:hover { border-color: var(--c2); color: var(--c2); transform: translateY(-1px); }
.btn-dl:active { transform: scale(.96); }
.btn-dl-hot {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 4px 16px rgba(6,182,212,.35);
}
.btn-dl-hot:hover { color: #fff; }

/* 信息卡：图标渐变圆 + 分行清晰 + 悬浮微亮 */
.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 26px;
}
.info-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--card);
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.info-card:hover {
  border-color: rgba(6,182,212,.4);
  box-shadow: 0 4px 16px rgba(6,182,212,.1);
  transform: translateY(-1px);
}
.info-card-wide { grid-column: 1 / -1; }
.info-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(6,182,212,.12), rgba(59,130,246,.12));
  color: var(--c2);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.info-body { flex: 1; min-width: 0; }
.info-label {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .6px;
  margin-bottom: 5px; font-weight: 600;
}
.info-value { font-size: 14.5px; line-height: 1.6; }
.info-desc { color: var(--muted); font-size: 13px; line-height: 1.8; }

/* 评分星级 */
.score-stars i {
  font-style: normal; font-size: 22px;
  color: #d7dce5; cursor: pointer;
  transition: color .15s, transform .1s;
  margin-right: 1px;
}
.score-stars i.on { color: #f59e0b; }
.score-stars i:hover { transform: scale(1.15); }

/* 评论区精修 */
.comment-panel h3 {
  display: flex; align-items: center; gap: 6px;
  font-size: 17px; margin-bottom: 18px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.report-btn {
  color: var(--muted); margin-left: auto; font-weight: normal;
  padding: 5px 14px !important; font-size: 12px !important;
  border: 1px solid var(--line) !important; background: var(--card) !important;
}
.report-btn:hover { color: var(--danger); border-color: rgba(239,68,68,.4) !important; }
.cmt-form { display: flex; gap: 10px; margin-bottom: 18px; }
.cmt-form textarea {
  flex: 1; border: 1.5px solid var(--line);
  background: var(--card); border-radius: var(--r-btn);
  padding: 12px 14px; outline: none; resize: vertical; min-height: 56px;
  font-size: 14px; line-height: 1.5;
}
.cmt-form textarea:focus { border-color: var(--c2); box-shadow: 0 0 0 3px rgba(6,182,212,.1); }
.cmt-item {
  display: flex; gap: 12px; padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cmt-item:last-child { border-bottom: 0; }
.cmt-item .avatar { width: 42px; height: 42px; flex-shrink: 0; }
.cmt-item .cmt-body { flex: 1; min-width: 0; }
.cmt-item .cmt-name { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.cmt-item .cmt-txt { font-size: 14px; margin: 3px 0 5px; word-break: break-word; line-height: 1.6; }
.cmt-item .cmt-time { font-size: 11.5px; color: var(--muted); }
.cmt-del {
  border: 0; background: transparent; cursor: pointer;
  font-size: 13px; color: var(--muted); align-self: flex-start;
  padding: 4px; border-radius: 8px;
  opacity: 0; transition: opacity .2s, color .2s;
}
.cmt-item:hover .cmt-del { opacity: 1; }
.cmt-del:hover { color: var(--danger); background: rgba(239,68,68,.08); }
@media (hover: none) { .cmt-del { opacity: .7; } }

/* 相关推荐标题 */
.related-panel h3 {
  font-size: 17px; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}

/* 桌面端：信息面板吸顶 */
@media (min-width: 901px) {
  .detail-main { align-items: start; }
  .detail-info { position: sticky; top: 96px; }
}

/* 移动端：更紧凑但不拥挤 */
@media (max-width: 560px) {
  .detail-title { font-size: 24px; }
  .info-cards { grid-template-columns: 1fr; gap: 10px; }
  .info-card { padding: 12px 14px; }
  .info-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
  .detail-actions { gap: 8px; }
  .act-btn { min-width: calc(50% - 4px); padding: 10px 14px; }
  .dl-btns { gap: 8px; }
  .btn-dl { min-width: calc(50% - 5px); }
  .comment-panel, .related-panel { margin-top: 24px; }
}

/* 全局：评论删除按钮 */
.cmt-del {
  border: 0; background: transparent; cursor: pointer;
  font-size: 13px; color: var(--muted);
  align-self: flex-start; padding: 4px 6px; border-radius: 8px;
  opacity: 0; transition: opacity .2s, color .2s;
}
.cmt-item:hover .cmt-del { opacity: 1; }
.cmt-del:hover { color: var(--danger); background: rgba(239,68,68,.08); }
@media (hover: none) { .cmt-del { opacity: .7; } }

/* 全局：个人中心/收藏/历史等页面间距 */
.stat-row { gap: 12px; margin-bottom: 20px; }
.entry-grid { gap: 12px; margin-bottom: 20px; }
.entry { padding: 16px 8px; transition: transform .2s, box-shadow .2s; }
.entry:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.entry:active { transform: scale(.94); }

/* 全局：签到日历间距 */
.calendar { padding: 18px; margin-bottom: 20px; }
.cal-head { margin-bottom: 14px; }
.cal-days { gap: 6px; }
.cal-day { border-radius: 12px; }

/* Web 搜索页热词间距 */
.search-history { margin-bottom: 20px; }
#hotTags, #historyTags { gap: 10px; }

/* Web 会员页套餐卡间距 */
.plan-list { gap: 18px; margin-bottom: 32px; }
.plan-card { padding: 26px 22px; }
.plan-price { margin: 14px 0 16px; }
.plan-card ul { margin-bottom: 20px; }
/* 图片加载失败占位 */
.img-err {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-size: 28px; opacity: .4; pointer-events: none;
}
.wall-thumb { position: relative; }

/* 搜索联想下拉 */
.search-suggest {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--card); border-radius: 12px;
  box-shadow: var(--shadow-lg); z-index: 200;
  display: none; overflow: hidden;
  border: 1px solid var(--line);
}
.search-suggest > div {
  padding: 10px 16px; cursor: pointer; font-size: 13.5px;
  transition: background .15s;
}
.search-suggest > div:hover { background: var(--card-2); }


/* ============================================================
   详情页排版精修 v3.1（信息分区+留白+视觉层次）
   ============================================================ */

/* 右侧信息区：更宽松的呼吸感 */
.detail-info { display: flex; flex-direction: column; gap: 0; }
.detail-title {
  font-size: 28px; font-weight: 800; letter-spacing: -0.4px;
  margin-bottom: 14px; line-height: 1.25;
}
.detail-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 22px;
}
.pill {
  background: var(--grad); color: #fff;
  font-size: 12.5px; padding: 5px 16px;
  border-radius: 999px; transition: transform .15s, box-shadow .15s;
}
.pill:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(6,182,212,.3); }
.pill-plain { background: var(--card-2); color: var(--muted); }
.pill-soft {
  background: var(--card-2); color: var(--brand);
  border: 1px dashed var(--line);
  transition: border-color .2s, color .2s, background .2s;
}
.pill-soft:hover { border-color: var(--c2); color: var(--c2); background: var(--card); }

/* 操作按钮：底部分隔线 + 足够间距 */
.detail-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.act-btn {
  border: 1.5px solid var(--line); background: var(--card);
  border-radius: var(--r-btn); padding: 12px 18px;
  font-size: 14px; cursor: pointer; min-height: 48px;
  flex: 1; min-width: 120px; text-align: center;
  transition: border-color .2s, color .2s, transform .15s, box-shadow .2s, background .2s;
}
.act-btn:hover {
  border-color: var(--c2); color: var(--c2);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(6,182,212,.12);
}
.act-btn:active { transform: scale(.94); }
.act-btn.on {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(6,182,212,.3);
}

/* 下载面板：品牌左边条 + 渐变标题底 + 内部间距 */
.dl-panel {
  background: var(--card); border-radius: var(--r-card);
  padding: 0; box-shadow: var(--shadow); margin-bottom: 26px;
  overflow: hidden;
  border-left: 4px solid var(--c1);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dl-panel h3 {
  font-size: 15.5px; font-weight: 700; margin-bottom: 0;
  padding: 16px 18px 12px;
  background: linear-gradient(135deg, rgba(6,182,212,.06), rgba(59,130,246,.06));
  border-bottom: 1px solid var(--line);
}
.dl-panel .dl-btns { padding: 16px 18px 6px; }
.dl-panel .muted { padding: 0 18px 16px; }
.dl-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-dl {
  flex: 1; min-width: 150px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--card-2); border: 1.5px solid var(--line); border-radius: var(--r-btn);
  padding: 13px 16px; font-size: 14px; font-weight: 500; min-height: 50px;
  transition: border-color .2s, color .2s, transform .15s, background .2s;
}
.btn-dl:hover { border-color: var(--c2); color: var(--c2); transform: translateY(-1px); }
.btn-dl:active { transform: scale(.96); }
.btn-dl-hot {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 4px 16px rgba(6,182,212,.35);
}
.btn-dl-hot:hover { color: #fff; transform: translateY(-1px); }

/* 信息卡：2列网格 + 图标渐变圆 + hover微交互 */
.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 0;
}
.info-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--card);
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  transition: border-color .25s ease, box-shadow .25s ease, transform .2s ease;
}
.info-card:hover {
  border-color: rgba(6,182,212,.4);
  box-shadow: 0 4px 16px rgba(6,182,212,.1);
  transform: translateY(-1px);
}
.info-card-wide { grid-column: 1 / -1; }
.info-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(6,182,212,.12), rgba(59,130,246,.12));
  color: var(--c2);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.info-body { flex: 1; min-width: 0; }
.info-label {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .6px;
  margin-bottom: 5px; font-weight: 600;
}
.info-value { font-size: 14.5px; line-height: 1.6; }
.info-desc { color: var(--muted); font-size: 13px; line-height: 1.8; }

/* 评分星：hover放大 */
.score-stars i {
  font-style: normal; font-size: 22px;
  color: #d7dce5; cursor: pointer;
  transition: color .15s, transform .12s;
  margin-right: 1px;
}
.score-stars i.on { color: #f59e0b; }
.score-stars i:hover { transform: scale(1.2); }

/* 评论区：更清晰的层次 */
.comment-panel, .related-panel { margin-top: 36px; }
.comment-panel h3, .related-panel h3 {
  font-size: 17px; margin-bottom: 18px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 6px;
  font-weight: 700;
}
.report-btn {
  color: var(--muted); margin-left: auto; font-weight: normal;
  padding: 5px 14px !important; font-size: 12px !important;
  border: 1px solid var(--line) !important; background: var(--card) !important;
  min-height: 0 !important; flex: none !important;
}
.report-btn:hover {
  color: var(--danger) !important;
  border-color: rgba(239,68,68,.4) !important;
  transform: none !important; box-shadow: none !important;
}
.cmt-form { display: flex; gap: 10px; margin-bottom: 20px; }
.cmt-form textarea {
  flex: 1; border: 1.5px solid var(--line);
  background: var(--card); border-radius: var(--r-btn);
  padding: 12px 14px; outline: none; resize: vertical; min-height: 60px;
  font-size: 14px; line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
}
.cmt-form textarea:focus {
  border-color: var(--c2);
  box-shadow: 0 0 0 3px rgba(6,182,212,.1);
}
.cmt-form .btn-main { min-height: 48px; align-self: flex-end; }
.cmt-item {
  display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cmt-item:last-child { border-bottom: 0; }
.cmt-item .avatar { width: 42px; height: 42px; flex-shrink: 0; }
.cmt-item .cmt-body { flex: 1; min-width: 0; }
.cmt-item .cmt-name { font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.cmt-item .cmt-txt { font-size: 14px; margin: 2px 0 6px; word-break: break-word; line-height: 1.6; }
.cmt-item .cmt-time { font-size: 11.5px; color: var(--muted); }
.cmt-del {
  border: 0; background: transparent; cursor: pointer;
  font-size: 13px; color: var(--muted); align-self: flex-start;
  padding: 4px 8px; border-radius: 8px;
  opacity: 0; transition: opacity .2s, color .2s, background .2s;
}
.cmt-item:hover .cmt-del { opacity: 1; }
.cmt-del:hover { color: var(--danger); background: rgba(239,68,68,.08); }
@media (hover: none) { .cmt-del { opacity: .7; } }
.mine-tag {
  font-size: 10px; color: var(--c2);
  background: rgba(6,182,212,.1);
  border: 1px solid rgba(6,182,212,.35);
  border-radius: 6px;
  padding: 0 5px; vertical-align: middle; font-weight: 500;
}

/* 相关推荐：更清晰标题 */
.related-panel h3 {
  font-size: 17px; margin-bottom: 18px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
  font-weight: 700;
}

/* 桌面端：右侧信息面板吸顶 */
@media (min-width: 901px) {
  .detail-main { align-items: start; }
  .detail-info { position: sticky; top: 96px; }
}

/* 移动端：紧凑但不拥挤 */
@media (max-width: 560px) {
  .detail-title { font-size: 24px; }
  .info-cards { grid-template-columns: 1fr; gap: 10px; }
  .info-card { padding: 12px 14px; }
  .info-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
  .detail-actions { gap: 8px; }
  .act-btn { min-width: calc(50% - 4px); padding: 10px 14px; }
  .dl-btns { gap: 8px; }
  .btn-dl { min-width: calc(50% - 4px); }
  .detail-actions { padding-bottom: 18px; margin-bottom: 20px; }
  .dl-panel { margin-bottom: 20px; }
  .comment-panel, .related-panel { margin-top: 26px; }
}

/* 无障碍：减少动态 */
@media (prefers-reduced-motion: reduce) {
  .detail-title, .detail-tags, .detail-actions, .dl-panel,
  .info-cards, .info-card, .cmt-form, .cmt-item { transition: none !important; animation: none !important; }
  .act-btn:hover, .btn-dl:hover, .info-card:hover { transform: none !important; }
}

/* ============================================================
   全站间距统一 + 排行榜/搜索/分类页精修
   ============================================================ */

/* 排行榜：更精致的卡片 */
.rank-wrap { max-width: 780px; margin: 0 auto; }
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border-radius: 16px;
  padding: 14px 18px; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.4);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rank-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(6,182,212,.3);
}
.rank-no {
  width: 38px; text-align: center; font-weight: 800;
  font-size: 19px; color: var(--muted); font-style: italic;
}
.rank-no.rank-top { color: #F59E0B; font-size: 22px; }
.rank-thumb { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; transition: transform .25s; }
.rank-item:hover .rank-thumb { transform: scale(1.08); }
.rank-item .r-info { flex: 1; min-width: 0; }
.rank-item .r-title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-dl { text-align: center; min-width: 60px; }
.rank-dl b { font-size: 16px; display: block; color: var(--c2); }
.rank-dl span { font-size: 10.5px; color: var(--muted); }

/* 搜索页：热词与历史更整洁 */
.search-history { margin-bottom: 24px; }
#hotTags, #historyTags { gap: 10px; }

/* 分类页：更清晰的网格 */
.cat-all-grid { gap: 16px; }
.cat-all-card {
  padding: 24px 16px;
  transition: transform .25s var(--lg-ease, ease), box-shadow .25s ease;
}
.cat-all-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-all-card .cat-icon { font-size: 38px; margin-bottom: 8px; }
.cat-all-card .cat-name { font-size: 15px; font-weight: 600; }
.cat-all-card .cat-count { font-size: 12px; color: var(--muted); }

/* 会员页：套餐卡间距+权益表精修 */
.plan-list { gap: 18px; margin-bottom: 32px; }
.plan-card { padding: 26px 22px; }
.plan-price { margin: 12px 0 16px; }
.plan-card ul { margin-bottom: 18px; }
.plan-card ul li { padding: 4px 0; }
.rights-table { margin-top: 8px; }
.rights-table th, .rights-table td { padding: 11px 12px; }

/* 个人中心：统计卡+入口网格精修 */
.stat-row { gap: 14px; margin-bottom: 20px; }
.stat-item { padding: 18px 16px; border-radius: var(--r-card); transition: transform .2s ease; }
.stat-item:hover { transform: translateY(-2px); }
.entry-grid { gap: 14px; margin-bottom: 20px; }
.entry { padding: 18px 10px; border-radius: 16px; transition: transform .2s var(--lg-ease,ease), box-shadow .2s; }
.entry i { font-size: 26px; margin-bottom: 8px; }
.entry span { font-size: 13px; }

/* 通用：更多圆角统一 */
.pill { transition: transform .15s ease; }
.pill:hover { transform: translateY(-1px); }

/* 全局：更好的列表间距 */
.wall-grid { gap: 18px; }
@media (max-width: 768px) { .wall-grid { gap: 12px; } }

/* 全局：选中文本色 */
::selection {
  background: linear-gradient(90deg, rgba(6,182,212,.3), rgba(59,130,246,.3));
  color: var(--text);
}

/* 全局：链接下划线动画 */
.link {
  position: relative;
  text-decoration: none;
  transition: color .2s;
}
.link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1.5px;
  background: var(--c2);
  transition: width .25s ease;
}
.link:hover::after { width: 100%; }

/* 全局：空状态更好看 */
.empty-block {
  padding: 48px 20px;
  border-radius: var(--r-card);
  background: var(--card);
}
.empty-block p { font-size: 15px; margin-bottom: 18px; }

/* ============================================================
   暗色模式全面补全（覆盖所有遗漏组件）
   ============================================================ */
[data-theme="dark"] {
  --lg-hi: rgba(255, 255, 255, .14);
  --lg-hi-2: rgba(255, 255, 255, .05);
  --lg-edge: rgba(255, 255, 255, .1);
}

/* 基础表面 */
[data-theme="dark"] .detail-meta,
[data-theme="dark"] .dl-panel,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .form-card,
[data-theme="dark"] .stat-item,
[data-theme="dark"] .entry,
[data-theme="dark"] .rank-item,
[data-theme="dark"] .myorder-item,
[data-theme="dark"] .follow-item,
[data-theme="dark"] .calendar,
[data-theme="dark"] .notif-item,
[data-theme="dark"] .cmt-form textarea,
[data-theme="dark"] .article-card,
[data-theme="dark"] .empty-block,
[data-theme="dark"] .rights-table table,
[data-theme="dark"] .myorder-list .myorder-item,
[data-theme="dark"] .info-card {
  background: var(--card);
  border-color: var(--line);
}

/* 玻璃按钮暗色 */
[data-theme="dark"] .btn-ghost,
[data-theme="dark"] .act-btn,
[data-theme="dark"] .btn-dl {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .1);
}
[data-theme="dark"] .btn-ghost:hover,
[data-theme="dark"] .act-btn:hover,
[data-theme="dark"] .btn-dl:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(6, 182, 212, .4);
}

/* 标签/胶囊暗色 */
[data-theme="dark"] .pill-plain { background: rgba(255,255,255,.06); color: var(--muted); }
[data-theme="dark"] .pill-soft { background: rgba(6,182,212,.08); color: var(--c1); border-color: rgba(6,182,212,.2); }
[data-theme="dark"] .cat-pill { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .cat-pill:hover { background: var(--grad); border-color: transparent; }
[data-theme="dark"] .filter-chip { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .filter-chip.on { background: var(--grad); border-color: transparent; }
[data-theme="dark"] .col-tab { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .col-tab.on { background: var(--grad); border-color: transparent; }
[data-theme="dark"] .notif-tabs button { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .notif-tabs button.on { background: var(--grad); border-color: transparent; }

/* 评论区暗色 */
[data-theme="dark"] .cmt-form textarea {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
  color: var(--text);
}
[data-theme="dark"] .cmt-form textarea:focus { border-color: var(--c2); }
[data-theme="dark"] .cmt-item { border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .cmt-item:last-child { border-color: transparent; }
[data-theme="dark"] .score-stars i { color: rgba(255,255,255,.15); }
[data-theme="dark"] .score-stars i.on { color: #f59e0b; }

/* 排行榜暗色 */
[data-theme="dark"] .rank-item { background: var(--card); border-color: var(--line); }
[data-theme="dark"] .rank-item:hover { border-color: rgba(6,182,212,.3); }
[data-theme="dark"] .rank-dl b { color: var(--c1); }

/* 我的订单暗色 */
[data-theme="dark"] .myorder-item { background: var(--card); border-color: var(--line); }
[data-theme="dark"] .mo-amount { color: var(--danger); }

/* 关注列表暗色 */
[data-theme="dark"] .follow-item { background: var(--card); border-color: var(--line); }

/* 详情页暗色 */
[data-theme="dark"] .detail-viewer { background: rgba(0,0,0,.2); }
[data-theme="dark"] .viewer-hint { background: rgba(0,0,0,.6); }
[data-theme="dark"] .detail-meta dt,
[data-theme="dark"] .info-label { color: var(--muted); }
[data-theme="dark"] .dl-panel h3 { border-color: var(--line); background: rgba(255,255,255,.02); }
[data-theme="dark"] .detail-actions { border-color: var(--line); }

/* 搜索联想暗色 */
[data-theme="dark"] .search-suggest { background: var(--card); border-color: var(--line); }
[data-theme="dark"] .search-suggest > div:hover { background: rgba(255,255,255,.06); }

/* 表单元素暗色 */
[data-theme="dark"] .nf-search input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: var(--text); }
[data-theme="dark"] .cmt-form .btn-main { background: var(--grad); }

/* 收藏夹暗色 */
[data-theme="dark"] .fav-item { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .fav-item:hover { border-color: var(--c2); color: var(--c2); }
[data-theme="dark"] .fav-new input { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); color: var(--text); }

/* 签到日历暗色 */
[data-theme="dark"] .cal-day { color: var(--text); }
[data-theme="dark"] .cal-day.future { color: rgba(255,255,255,.3); }
[data-theme="dark"] .cal-day.today { border-color: var(--c1); color: var(--c1); }

/* 全局选区暗色 */
[data-theme="dark"] ::selection { background: rgba(6,182,212,.4); color: #fff; }

/* 弹窗关闭按钮暗色 */
[data-theme="dark"] .modal-close { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .modal-close:hover { background: rgba(255,255,255,.15); }

/* 分页暗色 */
[data-theme="dark"] .pager a { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .pager a.on { background: var(--grad); color: #fff; border-color: transparent; }

/* VIP页暗色 */
[data-theme="dark"] .vip-hero { background: var(--card); border-color: var(--line); }
[data-theme="dark"] .vip-hero h1 { color: var(--c1); -webkit-background-clip: text; background-clip: text; }
[data-theme="dark"] .vip-state { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .vip-invite { background: var(--card); border-color: var(--line); }

/* 创作者主页暗色 */
[data-theme="dark"] .creator-hero { background: var(--card); border-color: var(--line); }

/* 404暗色 */
[data-theme="dark"] .nf-wrap { background: var(--card); border-radius: var(--r-card); padding: 40px 20px; }

/* ============================================================
   分类胶囊数量角标 + 列表页总数徽章
   ============================================================ */
.cat-pill { position: relative; }
.cat-pill em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, .5);
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 5px;
  font-weight: 600;
  transition: color .2s, background .2s;
}
.cat-pill:hover em { color: #fff; background: rgba(255, 255, 255, .25); }
[data-theme="dark"] .cat-pill em { background: rgba(255, 255, 255, .08); }
[data-theme="dark"] .cat-pill:hover em { background: rgba(255, 255, 255, .18); color: #fff; }

.cnt-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--c2);
  background: rgba(6, 182, 212, .1);
  border-radius: 999px;
  padding: 3px 12px;
  margin-left: 10px;
  vertical-align: middle;
  display: inline-block;
  line-height: 1.5;
}
[data-theme="dark"] .cnt-badge { background: rgba(6, 182, 212, .16); }

/* ============================================================
   评论楼中楼 + 用户等级徽章
   ============================================================ */

/* 子回复容器：缩进 + 左连接线 */
.cmt-subs {
  margin: 4px 0 0 52px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
}
.cmt-subs .cmt-sub { padding: 10px 0 0; border-bottom: 0; }
.cmt-subs .cmt-sub .avatar { width: 30px; height: 30px; }
.cmt-subs .cmt-sub .cmt-txt { font-size: 13.5px; }
.cmt-sub-more { font-size: 12px; padding: 6px 0 2px 40px; }

/* 回复按钮（时间旁，hover 显色） */
.cmt-reply {
  border: 0; background: transparent; cursor: pointer;
  font-size: 12px; color: var(--muted); padding: 0 4px;
  transition: color .15s;
}
.cmt-reply:hover { color: var(--c2); }

/* 回复状态条 */
.reply-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(6, 182, 212, .08);
  border: 1px solid rgba(6, 182, 212, .25);
  border-radius: 10px;
  padding: 7px 12px;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: var(--c2);
  animation: msgIn .25s ease;
}
.reply-bar .link { cursor: pointer; font-size: 12px; }

/* 等级徽章 */
.lv-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 700;
  padding: 1px 8px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(6,182,212,.15), rgba(59,130,246,.15));
  color: var(--c2);
  border: 1px solid rgba(6, 182, 212, .3);
  vertical-align: middle;
  font-style: normal;
}
[data-theme="dark"] .lv-badge {
  background: linear-gradient(135deg, rgba(6,182,212,.2), rgba(59,130,246,.2));
}

/* 等级进度条（个人中心） */
.lv-progress { margin-top: 10px; }
.lv-progress .lv-track {
  height: 8px; border-radius: 999px;
  background: var(--card-2);
  overflow: hidden;
}
.lv-progress .lv-fill {
  height: 100%; border-radius: 999px;
  background: var(--grad);
  transition: width .5s var(--lg-ease, ease);
}
.lv-progress .lv-text {
  display: flex; justify-content: space-between;
  font-size: 11.5px; color: var(--muted); margin-top: 5px;
}

/* 移动端子回复缩进减小 */
@media (max-width: 560px) {
  .cmt-subs { margin-left: 34px; padding-left: 10px; }
}

/* ============================================================
   顶栏消息 hover 预览面板
   ============================================================ */
.bell-wrap { position: relative; }
.bell-drop {
  position: absolute; top: calc(100% + 8px); right: -40px;
  width: 320px; max-width: calc(100vw - 32px);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 300; overflow: hidden;
}
.bell-wrap:hover .bell-drop,
.bell-wrap:focus-within .bell-drop {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.bell-drop-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.bell-drop-head em {
  font-style: normal; font-size: 11px; color: #fff;
  background: var(--danger); border-radius: 999px; padding: 1px 8px;
}
.bell-drop-list { max-height: 300px; overflow-y: auto; }
.bell-item {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.bell-item:hover { background: var(--card-2); }
.bell-item:last-child { border-bottom: 0; }
.bell-item .n-ico { font-size: 16px; line-height: 1.4; }
.bell-item .n-main { flex: 1; min-width: 0; display: block; }
.bell-item .n-main b {
  display: block; font-size: 12.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bell-item .n-main i {
  font-style: normal; font-size: 11.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
}
.bell-item time { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.bell-item.unread .n-main b::after {
  content: ''; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--danger); margin-left: 5px;
  vertical-align: middle;
}
.bell-empty { padding: 24px 0; text-align: center; font-size: 12.5px; }
.bell-drop-foot {
  display: block; text-align: center; font-size: 12.5px;
  padding: 10px; border-top: 1px solid var(--line); color: var(--c2);
}
.bell-drop-foot:hover { background: var(--card-2); }

/* 深色模式 */
[data-theme="dark"] .bell-drop { background: var(--card); }

/* 移动端：改为点击展开（无 hover），并全宽贴边 */
@media (hover: none) {
  .bell-wrap:hover .bell-drop { visibility: hidden; opacity: 0; }
}

/* ============================================================
   视觉重构 v4：去 AI 味（专业设计系统语言）
   原则：单一主色克制使用 · 圆角收敛至 10-12px · 阴影统一为两层柔和 ·
        去除玻璃拟态滥用 · 图标统一线性 · 留白替代装饰
   ============================================================ */

:root {
  /* 色彩：主色只做强调，不做背景大面积填充 */
  --c1: #0891b2;          /* 深一档的青，比 #06B6D4 更沉稳 */
  --c2: #2563eb;          /* 深一档的蓝 */
  --brand: #0e7490;
  --brand-2: #1d4ed8;
  --grad: linear-gradient(135deg, #0891b2, #2563eb);
  --grad-soft: linear-gradient(135deg, rgba(8,145,178,.08), rgba(37,99,235,.08));

  /* 表面：更中性的灰阶，去掉蓝紫倾向 */
  --bg: #f7f8fa;
  --bg-soft: #eef0f4;
  --card: #ffffff;
  --card-2: #f9fafb;
  --line: #e8eaef;
  --line-strong: #d6dae2;

  /* 文字：提高对比度，弱化次要文字 */
  --text: #111827;
  --text-2: #374151;
  --muted: #6b7280;
  --muted-2: #9ca3af;

  --danger: #dc2626;
  --ok: #059669;
  --warn: #d97706;

  /* 圆角：收敛（16px → 12px），按钮 8px */
  --r-card: 12px;
  --r-btn: 9px;
  --r-sm: 6px;
  --r-pill: 999px;

  /* 阴影：统一两层，弱化，不用彩色阴影 */
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-md: 0 2px 4px rgba(16, 24, 40, .04), 0 4px 12px rgba(16, 24, 40, .06);
  --shadow-lg: 0 4px 8px rgba(16, 24, 40, .04), 0 12px 28px rgba(16, 24, 40, .08);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* 深色模式：中性深灰，不用蓝紫 */
[data-theme="dark"] {
  --bg: #0f1115;
  --bg-soft: #171a20;
  --card: #191c22;
  --card-2: #1f232a;
  --line: #272b33;
  --line-strong: #363b45;
  --text: #e8eaed;
  --text-2: #c4c8cf;
  --muted: #8b919c;
  --muted-2: #626873;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, .35);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, .45);
}

/* ---- 图标基础 ---- */
.ico {
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
  color: currentColor;
  transition: color .15s var(--ease);
}
.ico-fill { color: currentColor; }

/* ---- 顶栏：去玻璃拟态，改实色 + 细边框 ---- */
.topbar {
  background: var(--card) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
}
.topbar.scrolled {
  box-shadow: var(--shadow) !important;
}
.topbar .logo-mark {
  background: var(--grad) !important;
  border-radius: 8px !important;
  font-weight: 700;
  letter-spacing: -.3px;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px !important;
  border-radius: var(--r-btn) !important;
  font-size: 13.5px;
  color: var(--muted) !important;
  font-weight: 450;
  transition: color .15s, background .15s !important;
}
.nav-links a:hover { color: var(--text) !important; background: var(--card-2) !important; }
.nav-links a.on {
  color: var(--text) !important;
  background: var(--card-2) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
.nav-links a.on::after { display: none !important; } /* 去掉底部渐变条 */

.search-box {
  background: var(--card-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-btn) !important;
  box-shadow: none !important;
}
.search-box:focus-within {
  border-color: var(--c2) !important;
  background: var(--card) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1) !important;
}
.search-box button {
  color: var(--muted) !important;
  display: inline-flex; align-items: center;
}
.icon-btn {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--muted) !important;
  border-radius: var(--r-btn) !important;
  width: 34px !important; height: 34px !important;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s, background .15s !important;
}
.icon-btn:hover { background: var(--card-2) !important; color: var(--text) !important; }
.user-btn {
  background: transparent !important;
  border: 1px solid transparent !important;
  padding: 4px 8px 4px 4px !important;
  border-radius: var(--r-pill) !important;
}
.user-btn:hover { background: var(--card-2) !important; }
.user-drop, .bell-drop {
  border-radius: var(--r-card) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-lg) !important;
  backdrop-filter: none !important;
  background: var(--card) !important;
}
.user-drop a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px !important;
  font-size: 13.5px;
  color: var(--text-2);
  border-radius: var(--r-sm);
  margin: 2px 6px;
}
.user-drop a:hover { background: var(--card-2) !important; color: var(--text); }
.user-drop a .ico { color: var(--muted); }

/* ---- VIP / 等级角标：收敛为细边框小标签 ---- */
.vip-tag, .lv-badge {
  font-size: 10px !important;
  font-weight: 600 !important;
  padding: 1px 6px !important;
  border-radius: var(--r-sm) !important;
  background: var(--grad-soft) !important;
  color: var(--brand) !important;
  border: 1px solid rgba(8, 145, 178, .22) !important;
  letter-spacing: .2px;
  font-style: normal;
  line-height: 1.5;
}
[data-theme="dark"] .vip-tag, [data-theme="dark"] .lv-badge {
  background: rgba(8, 145, 178, .14) !important;
  color: #4dd0e1 !important;
  border-color: rgba(8, 145, 178, .3) !important;
}

/* ---- 按钮：主按钮去大圆角/去流光，改克制实色 ---- */
.btn-main {
  background: var(--grad) !important;
  border-radius: var(--r-btn) !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06) !important;
  font-weight: 550 !important;
  letter-spacing: .1px;
  transition: filter .15s, transform .1s !important;
}
.btn-main:hover { filter: brightness(1.06); box-shadow: 0 2px 6px rgba(16,24,40,.1) !important; }
.btn-main:active { transform: scale(.985) !important; }
.btn-main::after { display: none !important; } /* 去掉流光 */
.btn-ghost {
  background: var(--card) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--r-btn) !important;
  color: var(--text-2) !important;
  box-shadow: none !important;
  font-weight: 500;
}
.btn-ghost:hover {
  border-color: var(--muted-2) !important;
  color: var(--text) !important;
  background: var(--card-2) !important;
}

/* ---- 卡片：统一小圆角 + 单层细边框 ---- */
.wall-card {
  border-radius: var(--r-card) !important;
  box-shadow: none !important;
  border: 1px solid var(--line) !important;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease) !important;
}
.wall-card:hover {
  border-color: var(--line-strong) !important;
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-2px) !important;
}
.wall-thumb { border-radius: var(--r-card) var(--r-card) 0 0 !important; }
.wall-meta { padding: 10px 12px 11px !important; }
.wall-title { font-size: 13.5px !important; font-weight: 550 !important; letter-spacing: -.1px; }
.wall-sub {
  font-size: 11.5px !important;
  color: var(--muted) !important;
  display: flex; gap: 12px; align-items: center;
  margin-top: 3px;
}
.wall-sub span { display: inline-flex; align-items: center; gap: 3px; }

/* 卡片角标：去彩色底，改半透明黑 */
.res-tag, .type-tag {
  background: rgba(17, 24, 39, .62) !important;
  backdrop-filter: blur(4px);
  border-radius: var(--r-sm) !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
  padding: 2px 6px !important;
  color: #fff !important;
  letter-spacing: .2px;
}
.type-tag { padding: 3px 5px !important; display: inline-flex; align-items: center; }

/* 卡片悬浮收藏：默认隐藏，hover 淡入 */
.quick-fav {
  background: rgba(17, 24, 39, .62) !important;
  backdrop-filter: blur(4px);
  border: 0 !important;
  border-radius: var(--r-sm) !important;
  width: 28px !important; height: 28px !important;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff !important;
  opacity: 0;
  transition: opacity .18s, background .18s, transform .12s !important;
}
.wall-card:hover .quick-fav { opacity: 1; }
.quick-fav:hover { background: rgba(17, 24, 39, .82) !important; transform: scale(1.06); }
.quick-fav.on { opacity: 1; color: #f43f5e !important; background: rgba(255,255,255,.92) !important; }
.quick-fav.on .ico { color: #f43f5e !important; }
@media (hover: none) { .quick-fav { opacity: .92; } }

/* ---- 分类胶囊：去渐变，改描边 ---- */
.cat-pill {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-btn) !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  color: var(--text-2) !important;
  font-weight: 450;
  gap: 6px;
  transition: border-color .15s, color .15s, background .15s !important;
}
.cat-pill:hover {
  border-color: var(--muted-2) !important;
  color: var(--text) !important;
  background: var(--card-2) !important;
  transform: none !important;
}
.cat-pill i { font-style: normal; font-size: 15px; opacity: .9; }
.cat-pill em {
  font-style: normal;
  font-size: 11px !important;
  color: var(--muted-2) !important;
  background: transparent !important;
  padding: 0 !important;
  margin-left: 2px !important;
}
.cat-pill:hover em { color: var(--muted) !important; background: transparent !important; }

/* ---- 筛选 chip / 排序 ---- */
.filter-chip, .col-tab {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-btn) !important;
  font-size: 13px !important;
  color: var(--text-2) !important;
  padding: 7px 13px !important;
}
.filter-chip.on, .col-tab.on {
  background: var(--text) !important;
  border-color: var(--text) !important;
  color: #fff !important;
  font-weight: 550 !important;
}
[data-theme="dark"] .filter-chip.on, [data-theme="dark"] .col-tab.on {
  background: #e8eaed !important; color: #111827 !important; border-color: #e8eaed !important;
}
.sort-bar { border-bottom: 1px solid var(--line) !important; }
.sort-item { font-size: 13.5px !important; color: var(--muted) !important; padding: 8px 2px !important; }
.sort-item.on { color: var(--text) !important; font-weight: 600 !important; }
.sort-item.on::after { background: var(--text) !important; height: 2px !important; }

/* ---- 底部 tabbar：线性图标 + 小字 ---- */
.tabbar {
  background: var(--card) !important;
  border-top: 1px solid var(--line) !important;
  box-shadow: 0 -1px 3px rgba(16, 24, 40, .04) !important;
  backdrop-filter: none !important;
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px !important;
  color: var(--muted) !important;
  padding: 7px 0 !important;
  transition: color .15s !important;
}
.tabbar a .ico { color: var(--muted-2); }
.tabbar a.on { color: var(--text) !important; font-weight: 550; }
.tabbar a.on .ico { color: var(--c2); }
[data-theme="dark"] .tabbar a.on .ico { color: #60a5fa; }
.tabbar a i { display: none !important; } /* 旧 emoji 容器隐藏 */

/* ---- 面板/区块：去大面积渐变标题，改细线分隔 ---- */
.sec-head h2 {
  font-size: 19px !important;
  font-weight: 650 !important;
  letter-spacing: -.3px;
  display: flex; align-items: center; gap: 8px;
}
.sec-head h2 .ico { color: var(--muted); }
.sec-more {
  font-size: 13px !important;
  color: var(--muted) !important;
  display: inline-flex; align-items: center; gap: 2px;
}
.sec-more:hover { color: var(--text) !important; }

/* ---- 表单：统一 8px 圆角 + 细边框 ---- */
input[type=text], input[type=search], input[type=email], input[type=password],
input[type=number], input[type=url], select, textarea {
  border-radius: var(--r-btn) !important;
  border: 1px solid var(--line-strong) !important;
  background: var(--card) !important;
  font-size: 13.5px;
  transition: border-color .15s, box-shadow .15s !important;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--c2) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1) !important;
  outline: none;
}
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea {
  background: var(--card) !important;
  border-color: var(--line-strong) !important;
  color: var(--text);
}

/* ---- 详情页：动作按钮收敛 ---- */
.act-btn {
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--r-btn) !important;
  background: var(--card) !important;
  font-size: 13.5px !important;
  font-weight: 500;
  box-shadow: none !important;
  gap: 6px;
  display: inline-flex; align-items: center; justify-content: center;
}
.act-btn:hover {
  border-color: var(--muted-2) !important;
  color: var(--text) !important;
  transform: none !important;
  box-shadow: var(--shadow) !important;
}
.act-btn.on {
  background: var(--text) !important;
  border-color: var(--text) !important;
  color: #fff !important;
}
[data-theme="dark"] .act-btn.on { background: #e8eaed !important; color: #111827 !important; border-color: #e8eaed !important; }
.act-btn.on .ico { color: inherit !important; }

.dl-panel {
  border-left: none !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-card) !important;
  box-shadow: none !important;
}
.dl-panel h3 {
  background: var(--card-2) !important;
  border-bottom: 1px solid var(--line) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 13px 16px !important;
}
.btn-dl {
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--r-btn) !important;
  background: var(--card) !important;
  font-size: 13.5px !important;
  box-shadow: none !important;
}
.btn-dl-hot {
  background: var(--grad) !important;
  border-color: transparent !important;
  color: #fff !important;
}

/* ---- 标签 pill：去渐变实心，改浅底 ---- */
.pill {
  background: var(--grad-soft) !important;
  color: var(--brand) !important;
  border: 1px solid rgba(8, 145, 178, .18) !important;
  border-radius: var(--r-sm) !important;
  font-size: 12px !important;
  padding: 4px 10px !important;
  font-weight: 500;
}
.pill:hover { transform: none !important; box-shadow: none !important; }
.pill-plain { background: var(--card-2) !important; color: var(--muted) !important; border-color: var(--line) !important; }
.pill-soft { background: transparent !important; color: var(--muted) !important; border-color: var(--line) !important; border-style: solid !important; }
.pill-soft:hover { color: var(--text) !important; border-color: var(--muted-2) !important; }

/* ---- 信息卡：去 hover 位移 ---- */
.info-card {
  border-radius: var(--r-card) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}
.info-card:hover { transform: none !important; box-shadow: none !important; border-color: var(--line-strong) !important; }
.info-icon {
  border-radius: 8px !important;
  background: var(--card-2) !important;
  color: var(--muted) !important;
  width: 36px !important; height: 36px !important;
}
.info-label { font-size: 11px !important; letter-spacing: .4px !important; color: var(--muted-2) !important; }
.info-value { font-size: 14px !important; font-weight: 500; }

/* ---- 评论区 ---- */
.cmt-form textarea {
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--r-btn) !important;
  background: var(--card) !important;
}
.cmt-item .avatar { border-radius: 50%; }
.cmt-name { font-size: 13px !important; font-weight: 600 !important; }
.cmt-txt { font-size: 13.5px !important; line-height: 1.65 !important; color: var(--text-2) !important; }
.cmt-time { font-size: 11.5px !important; color: var(--muted-2) !important; }
.cmt-reply { color: var(--muted) !important; font-weight: 500; }
.cmt-reply:hover { color: var(--c2) !important; }
.cmt-subs { border-left-color: var(--line) !important; }

/* ---- 分页 ---- */
.pager a {
  border-radius: var(--r-sm) !important;
  border: 1px solid var(--line) !important;
  background: var(--card) !important;
  color: var(--text-2) !important;
  font-size: 13px;
}
.pager a.on { background: var(--text) !important; color: #fff !important; border-color: var(--text) !important; }

/* ---- 空状态 ---- */
.empty-block, .grid-empty {
  border-radius: var(--r-card) !important;
  border: 1px dashed var(--line-strong) !important;
  background: transparent !important;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---- toast：去渐变大圆角 ---- */
.toast {
  border-radius: var(--r-btn) !important;
  background: rgba(17, 24, 39, .94) !important;
  font-size: 13.5px !important;
  box-shadow: var(--shadow-lg) !important;
  backdrop-filter: blur(8px);
}

/* ---- 返回顶部：圆形小按钮，低调 ---- */
.back-top {
  border-radius: 50% !important;
  background: var(--card) !important;
  border: 1px solid var(--line-strong) !important;
  box-shadow: var(--shadow-md) !important;
  color: var(--text-2) !important;
  width: 40px !important; height: 40px !important;
}
.back-top:hover { background: var(--card-2) !important; border-color: var(--muted-2) !important; }

/* ---- 限流：去掉多余装饰动效（保留必要过渡） ---- */
.reveal, .revealed { opacity: 1 !important; transform: none !important; }

/* ---- 响应式微调 ---- */
@media (max-width: 768px) {
  .sec-head h2 { font-size: 17px !important; }
  .wall-title { font-size: 13px !important; }
}
/* ============================================================
   视觉重构 v4.1：图标落地补齐（SVG 尺寸/对齐/触点可见性）
   ============================================================ */
.cat-pill i { display: inline-flex; align-items: center; justify-content: center; }
.emoji-ico { font-style: normal; font-size: 14px; line-height: 1; }
.score-stars i { display: inline-flex; align-items: center; justify-content: center; }
.score-stars i .ico { transition: color .15s; }
.score-stars i.on .ico { color: #f59e0b; }
.info-icon .ico { color: currentColor; }
.dl-panel h3 { display: flex; align-items: center; gap: 7px; }
.dl-panel h3 .ico { color: var(--muted); }
.btn-dl-hot { background: var(--c2) !important; box-shadow: none !important; }
.btn-dl-hot:hover { background: var(--brand-2) !important; box-shadow: var(--shadow) !important; }
.btn-dl .ico, .btn-main .ico, .act-btn .ico { opacity: .95; }

/* 个人中心九宫格入口 */
.entry i { display: flex; align-items: center; justify-content: center; font-style: normal; margin-bottom: 7px; color: var(--text-2); }
.entry:hover i { color: var(--c2); }
.entry .ico { color: inherit; }

/* 顶栏主题按钮 */
.theme-ico { display: inline-flex; align-items: center; justify-content: center; }

/* VIP 权益表 */
.cell-yes { display: inline-flex; align-items: center; color: var(--ok); }
.cell-no { color: var(--muted-2); }

/* 触屏设备：悬浮收藏按钮常显（无 hover 可用） */
@media (hover: none) {
  .quick-fav { opacity: 1 !important; transform: none !important; }
}

/* 列表/卡片里的计数图标 */
.wall-sub .ico { color: var(--muted-2); }
.wall-sub span:hover .ico { color: var(--muted); }
/* ============================================================
   视觉重构 v4.2：去掉最后一层"渐变堆叠"
   品牌标 / 分段控件 / 专题角标 改实色，渐变只保留在图片遮罩上
   ============================================================ */
.topbar .logo-mark {
  background: #111827 !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: none !important;
}
[data-theme="dark"] .topbar .logo-mark {
  background: #e8eaed !important;
  color: #111827 !important;
}

/* 分段控件：实色反转，不做渐变 */
.type-switch { border-radius: 9px !important; }
.type-switch button {
  border-radius: 8px !important;
  padding: 7px 16px !important;
  font-size: 13px !important;
  font-weight: 500;
}
.type-switch button.on {
  background: var(--text) !important;
  background-image: none !important;
  color: var(--card) !important;
  box-shadow: none !important;
}
[data-theme="dark"] .type-switch button.on { background: #e8eaed !important; color: #111827 !important; }

/* 专题卡片角标：半透明黑 + 白字，替代渐变胶囊 */
.topic-info span {
  background: rgba(0, 0, 0, .42) !important;
  background-image: none !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .18);
  font-weight: 500;
  letter-spacing: .1px;
}

/* 页脚：去掉多余光晕 */
.site-footer { background-image: none !important; }
/* v4.3 等级徽章去渐变 */
.vip-tag, .lv-badge { background-image: none !important; background-color: rgba(8,145,178,.10) !important; }
[data-theme="dark"] .vip-tag, [data-theme="dark"] .lv-badge { background-color: rgba(8,145,178,.16) !important; }

/* ============================================================
   视觉重构 v4.4：顶栏回归"通栏 + 细分割线"
   去掉悬浮胶囊与 26px 圆角，去掉移动端横向溢出的根因
   ============================================================ */
.topbar {
  position: sticky !important;
  top: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
}
.topbar.scrolled { box-shadow: var(--shadow) !important; }

/* 移动端：搜索框可收缩，操作区不挤压 */
@media (max-width: 768px) {
  .topbar-inner { gap: 8px !important; padding: 0 14px !important; height: 56px !important; }
  .search-box { flex: 1 1 auto !important; min-width: 0 !important; height: 36px !important; }
  .search-box input { min-width: 0 !important; width: 100% !important; font-size: 13px !important; background: transparent; }
  .top-actions { flex: 0 0 auto !important; gap: 2px !important; }
  .top-actions .icon-btn { width: 32px !important; height: 32px !important; }
  .top-actions .user-btn { height: 32px !important; padding: 0 !important; }
  .bell-drop {
    position: fixed !important;
    top: 62px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-height: 70vh;
    overflow-y: auto;
  }
}
@media (max-width: 360px) {
  .search-box input::placeholder { color: transparent !important; }
}
/* ============================================================
   视觉重构 v4.5：清除玻璃拟态与渐变文字（最后一批"廉价感"来源）
   面板统一为：白底 + 1px 描边 + 12px 圆角 + 无阴影
   主按钮统一为实色蓝；渐变色文字全部移除
   ============================================================ */
.btn-main,
.btn-main.btn-block {
  background: var(--c2) !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: none !important;
}
.btn-main:hover { background: var(--brand-2) !important; }
.btn-main:active { transform: translateY(1px); }
.btn-main:disabled, .btn-main[disabled] { background: var(--line) !important; color: var(--muted) !important; }

.detail-meta, .dl-panel, .auth-card, .form-card, .stat-item, .entry,
.plan-card, .rights-table table, .notif-item, .dl-record, .calendar, .modal-box {
  background: var(--card) !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: 1px solid var(--line) !important;
}
.modal-box {
  border-radius: var(--r-card) !important;
  box-shadow: 0 16px 48px rgba(16, 24, 40, .18) !important;
}
.entry:hover, .stat-item:hover { transform: none !important; box-shadow: none !important; border-color: var(--line-strong) !important; }

/* 会员页：去渐变大标题与彩色 hero */
.vip-hero {
  background: var(--card) !important;
  background-image: none !important;
  padding: 34px 20px !important;
}
.vip-hero h1 {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--text) !important;
  font-size: 27px !important;
  letter-spacing: -.4px;
}
.plan-card { border-width: 1px !important; }
.plan-card:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: var(--line-strong) !important;
}
.plan-card.has-tag { border-color: var(--c2) !important; }
.plan-tag {
  background: var(--text) !important;
  background-image: none !important;
  color: var(--card) !important;
  font-weight: 600;
}
.lv-fill { background: var(--c2) !important; background-image: none !important; }
.pill {
  background: var(--card-2) !important;
  background-image: none !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}
/* v4.6 邀请卡去渐变 */
.vip-invite { background: var(--card) !important; background-image: none !important; border: 1px solid var(--line) !important; box-shadow: none !important; }

/* v4.7 深色模式：卡片回归实色，不再半透明 */
[data-theme="dark"] .wall-card,
[data-theme="dark"] .topic-card,
[data-theme="dark"] .banner-wrap {
  background: var(--card) !important;
  background-image: none !important;
  backdrop-filter: none !important;
}

/* v4.8 排序标签去渐变 */
/* v4.9 顶栏搜索：外层胶囊即控件，内层 input 去掉原生描边/背景/焦点环 */
.search-box input[type="search"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  color: var(--text) !important;
  font-size: 13.5px !important;
  line-height: 1.25 !important;
}
.search-box input[type="search"]:focus {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.search-box input[type="search"]::-webkit-search-decoration,
.search-box input[type="search"]::-webkit-search-cancel-button,
.search-box input[type="search"]::-webkit-search-results-button,
.search-box input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  display: none;
}
.search-box input[type="search"]::placeholder {
  color: var(--muted);
  opacity: .92;
}
/* 全站搜索输入统一去原生控件外观（404 等独立搜索框保留自身边框） */
input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  display: none;
}

/* ============================================================
   视觉重构 v4.9：细节精修（选区/焦点/排版/滚动）
   把遗留的旧品牌色统一到新色板，补齐现代排版细节
   ============================================================ */
::selection { background: rgba(37, 99, 235, .22) !important; }
[data-theme="dark"] ::selection { background: rgba(96, 165, 250, .35) !important; }
:focus-visible { outline-color: var(--c2) !important; }

/* 标题排版：两行标题自动平衡断行（渐进增强） */
h1, h2, h3, .wall-title, .detail-title { text-wrap: balance; }

/* 锚点平滑滚动（尊重减弱动效偏好） */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* 图片不可拖拽/误选（壁纸站细节） */
img { -webkit-user-drag: none; user-select: none; }

/* 链接下划线偏移（仅对有下划线的文字链接生效） */
a.link, .footer-links a, p a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* ============================================================
   投稿页分辨率识别卡（v4.9 设计语言：白底细边 12px）
   ============================================================ */
.img-probe {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 10px 12px;
  margin-bottom: 16px; overflow: hidden;
}
.img-probe img {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: var(--r-sm); background: var(--card-2);
  border: 1px solid var(--line); flex-shrink: 0;
}
.img-probe .probe-body { min-width: 0; }
.img-probe .probe-body b { font-size: 13.5px; font-weight: 600; letter-spacing: .1px; }
.img-probe .probe-body p { margin-top: 3px; }
/* ============================================================
   v4.11：商业运营细节（协议页排版 / 页脚 ICP）
   ============================================================ */
.article-card { padding: 30px 34px; }
.article-card h1 { font-size: 22px; font-weight: 650; letter-spacing: -.3px; }
.article-body {
  max-width: 760px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--text-2, #374151);
  margin-top: 18px;
}
.article-body h3 {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  margin: 22px 0 8px;
  padding-left: 10px;
  border-left: 3px solid var(--c2);
  line-height: 1.4;
}
.article-body p { margin: 8px 0; }
.article-body b { color: var(--text); font-weight: 600; }

/* 页脚 ICP 备案链接 */
.site-footer .icp { color: var(--muted); text-decoration: none; transition: color .15s; }
.site-footer .icp:hover { color: var(--c2); }
/* ============================================================
   v4.12：视觉精修（评论区/横幅/价格卡/空态/滚动条/暗色对比度）
   ============================================================ */

/* ---- 评论区：头像气泡式精修 ---- */
.cmt-item {
  display: flex; gap: 12px;
  padding: 14px 12px;
  border-radius: var(--r-card);
  transition: background .15s;
}
.cmt-item:hover { background: var(--card-2); }
.cmt-item > .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  flex-shrink: 0; border: 1px solid var(--line);
}
.cmt-item.cmt-sub > .avatar { width: 28px; height: 28px; }
.cmt-body { min-width: 0; flex: 1; }
.cmt-name {
  font-size: 13px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.mine-tag {
  font-size: 10px; font-weight: 500; padding: 1px 6px;
  background: rgba(37, 99, 235, .12); color: var(--c2);
  border-radius: 999px;
}
.cmt-txt {
  font-size: 14px; color: var(--text-2, #374151);
  line-height: 1.7; margin: 4px 0; word-break: break-word;
}
.cmt-time {
  font-size: 11.5px; color: var(--muted-2, #9ca3af);
  display: flex; align-items: center; gap: 10px;
}
.cmt-reply {
  font-size: 11.5px; color: var(--muted); background: none; border: 0;
  cursor: pointer; padding: 0; transition: color .15s;
}
.cmt-reply:hover { color: var(--c2); }
.cmt-del { color: var(--muted-2, #9ca3af); background: none; border: 0; cursor: pointer; }
.cmt-del:hover { color: var(--danger); }
/* 楼中楼：缩进 + 左连接线 */
.cmt-subs {
  margin: 6px 0 4px 24px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
  display: grid; gap: 4px;
}
.cmt-subs .cmt-item { padding: 8px 10px; }
.cmt-subs .cmt-item:hover { background: transparent; }

/* ---- 发表框 ---- */
.cmt-form textarea {
  border-radius: var(--r-btn); transition: border-color .15s, box-shadow .15s;
}
.cmt-form textarea:focus {
  border-color: var(--c2); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
  outline: none;
}

/* ---- Banner：圆角 + 精致指示点 ---- */
.banner-wrap {
  border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--shadow);
}
.banner-dots i {
  width: 18px; height: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, .45); transition: all .25s;
}
.banner-dots i.on {
  width: 26px; background: #fff;
}

/* ---- VIP 价格卡：价格字型 + 选中态 + 悬浮 ---- */
.plan-price {
  font-size: 40px; font-weight: 700; letter-spacing: -1px;
  line-height: 1.1;
}
.plan-price .cur { font-size: 18px; font-weight: 600; }
.plan-card { transition: transform .2s, border-color .2s, box-shadow .2s; }
.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md) !important;
  border-color: var(--c2) !important;
}
.plan-card ul li::before {
  content: ""; display: inline-block; width: 4px; height: 4px;
  border-radius: 50%; background: var(--c2); margin-right: 8px;
  vertical-align: 3px;
}

/* ---- 壁纸卡片：标题 hover 主色 ---- */
.wall-card .wall-title { transition: color .15s; }
.wall-card:hover .wall-title { color: var(--c2); }

/* ---- 空状态 ---- */
.empty-block {
  padding: 56px 20px;
  background: var(--card); border: 1px dashed var(--line-strong);
  border-radius: var(--r-card);
}
.empty-block p { color: var(--muted); margin-bottom: 14px; }

/* ---- 全站细滚动条（WebKit） ---- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-strong, #d6dae2); border-radius: 999px;
  border: 2px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--muted-2, #9ca3af); border: 2px solid transparent; background-clip: padding-box; }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong, #d6dae2) transparent; }

/* ---- 暗色模式边框对比度补强 ---- */
[data-theme="dark"] .wall-card,
[data-theme="dark"] .panel,
[data-theme="dark"] .dl-panel,
[data-theme="dark"] .stat-item,
[data-theme="dark"] .empty-block,
[data-theme="dark"] .cmt-item:hover { border-color: var(--line-strong); }
[data-theme="dark"] .empty-block { border-style: dashed; }

/* ---- 详情页信息芯片精修 ---- */
.info-chip, .detail-meta .chip {
  background: var(--card-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  color: var(--text-2, #374151) !important;
  font-size: 12px;
}

/* ---- 按钮 focus 可见性（键盘用户） ---- */
.btn-main:focus-visible, .btn-ghost:focus-visible, .act-btn:focus-visible {
  outline: 2px solid var(--c2); outline-offset: 2px;
}

/* ---- 详情大标题 ---- */
.detail-title, .detail-viewer + .detail-meta h2 {
  font-size: 24px; font-weight: 700; letter-spacing: -.4px;
  line-height: 1.3;
}
/* ---- 评论区空状态 ---- */
.cmt-empty {
  padding: 44px 20px 36px;
  text-align: center;
  color: var(--muted-2, #9ca3af);
  background: var(--card-2);
  border-radius: var(--r-card);
  border: 1px dashed var(--line-strong);
}
.cmt-empty .ico { opacity: .55; }
.cmt-empty p { margin-top: 10px; font-size: 13px; }
/* ============================================================
   v5 PREMIUM：高级感设计层
   理念：深色氛围 + 环境光晕 + 玻璃拟态 + 渐变细节 + 金色 VIP
   有品位地使用渐变与模糊——少而精，只出现在关键表面
   ============================================================ */

/* ---- 环境光晕：页面背景的深度氛围（暗色） ---- */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 40% at 85% -5%, rgba(8, 145, 178, .10), transparent 60%),
    radial-gradient(50% 35% at 10% 8%, rgba(37, 99, 235, .08), transparent 60%);
}
body::after {
  content: "";
  position: fixed; inset: auto 0 0 0; height: 40vh;
  pointer-events: none; z-index: 0;
  background: radial-gradient(55% 60% at 50% 115%, rgba(37, 99, 235, .05), transparent 65%);
}
[data-theme="dark"] body::before {
  background:
    radial-gradient(60% 40% at 85% -5%, rgba(8, 145, 178, .14), transparent 60%),
    radial-gradient(50% 35% at 10% 8%, rgba(37, 99, 235, .12), transparent 60%);
}
body > * { position: relative; z-index: 1; }

/* ---- 深色底色再沉一档（高级感的深邃） ---- */
[data-theme="dark"] { --bg: #0B0E15; }
[data-theme="dark"] body { background: #0B0E15; }

/* ---- 顶栏：玻璃拟态 ---- */
.topbar {
  background: rgba(255, 255, 255, .72) !important;
  backdrop-filter: blur(20px) saturate(1.7);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  border-bottom: 1px solid rgba(255, 255, 255, .45) !important;
}
[data-theme="dark"] .topbar {
  background: rgba(15, 17, 21, .66) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .06) !important;
}
.topbar.scrolled {
  box-shadow: 0 8px 32px rgba(9, 14, 25, .10) !important;
}
[data-theme="dark"] .topbar.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, .5) !important;
}

/* ---- 搜索框：玻璃内嵌 ---- */
.topbar .search-box {
  background: rgba(255, 255, 255, .55) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 24, 40, .08) !important;
}
[data-theme="dark"] .topbar .search-box {
  background: rgba(255, 255, 255, .05) !important;
  border-color: rgba(255, 255, 255, .09) !important;
}

/* ---- 主按钮：品牌渐变 + 高级光晕 ---- */
.btn-main {
  background: linear-gradient(135deg, #0891B2, #2563EB) !important;
  background-image: linear-gradient(135deg, #0891B2, #2563EB) !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, .28) !important;
  transition: box-shadow .25s, transform .2s, background .2s !important;
}
.btn-main:hover {
  box-shadow: 0 6px 24px rgba(37, 99, 235, .42) !important;
  transform: translateY(-1px);
  background: linear-gradient(135deg, #0AA0C4, #2F70F0) !important;
}
.btn-main:active { transform: translateY(0); }

/* ---- 壁纸卡片：悬浮渐变描边 + 层次抬升 ---- */
.wall-card {
  border-radius: 14px;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s, border-color .3s;
}
.wall-card::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .3s;
  background: linear-gradient(160deg, rgba(8, 145, 178, .08), transparent 40%, rgba(37, 99, 235, .10));
}
.wall-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -12px rgba(9, 14, 25, .18);
}
.wall-card:hover::after { opacity: 1; }
[data-theme="dark"] .wall-card:hover {
  box-shadow: 0 20px 44px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(96, 165, 250, .25) inset;
}
[data-theme="dark"] .wall-card::after {
  background: linear-gradient(160deg, rgba(8, 145, 178, .16), transparent 45%, rgba(37, 99, 235, .18));
}
.wall-card .wall-thumb img { transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.wall-card:hover .wall-thumb img { transform: scale(1.06); }

/* ---- Banner：电影感 ---- */
.banner-wrap {
  border-radius: 18px !important;
  box-shadow: 0 24px 60px -16px rgba(9, 14, 25, .3) !important;
}
.banner-mask {
  background: linear-gradient(180deg, rgba(6, 10, 20, 0) 35%, rgba(6, 10, 20, .78) 100%) !important;
}
.banner-label {
  background: rgba(255, 255, 255, .14) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .22);
}

/* ---- 分区标题：渐变字 ---- */
.sec-head h2, .comment-panel > h3 {
  font-size: 20px; font-weight: 700; letter-spacing: -.3px;
  background: linear-gradient(120deg, var(--text) 55%, var(--c2) 130%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="dark"] .sec-head h2 {
  background: linear-gradient(120deg, #F2F4F8 50%, #7CB8F5 130%);
  -webkit-background-clip: text; background-clip: text;
}

/* ---- 详情页下载面板：渐变 CTA ---- */
.btn-dl-hot {
  background: linear-gradient(135deg, #0891B2, #2563EB) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, .3) !important;
  transition: box-shadow .25s, transform .2s !important;
}
.btn-dl-hot:hover {
  box-shadow: 0 8px 28px rgba(37, 99, 235, .45) !important;
  transform: translateY(-1px) !important;
}

/* ---- 详情页信息卡：轻玻璃 ---- */
.info-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .65), rgba(255, 255, 255, .45)) !important;
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .5) !important;
  box-shadow: 0 4px 18px rgba(16, 24, 40, .05) !important;
}
[data-theme="dark"] .info-card {
  background: linear-gradient(180deg, rgba(30, 36, 48, .55), rgba(22, 27, 38, .45)) !important;
  border-color: rgba(255, 255, 255, .07) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .3) !important;
}

/* ---- 评论区：气泡精修（玻璃底） ---- */
.cmt-item {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.cmt-item:hover {
  background: var(--card);
  border-color: rgba(37, 99, 235, .18);
  box-shadow: 0 4px 16px rgba(16, 24, 40, .06);
}
.cmt-subs { background: transparent; }

/* ---- VIP 价格卡：暗夜鎏金 ---- */
.plan-card {
  background: linear-gradient(165deg, #141A28, #0D1120) !important;
  border: 1px solid rgba(245, 185, 86, .25) !important;
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .55) !important;
  position: relative;
  overflow: hidden;
}
.plan-card::before {
  content: "";
  position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(245, 185, 86, .09), transparent);
  transform: skewX(-18deg);
  transition: left .6s ease;
  pointer-events: none;
}
.plan-card:hover::before { left: 130%; }
.plan-card:hover { transform: translateY(-6px) !important; border-color: rgba(245, 185, 86, .55) !important; }
.plan-card .plan-price, .plan-card .plan-price * {
  background: linear-gradient(120deg, #F5B956, #F59E0B);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #F5B956;
}
.plan-tag {
  background: linear-gradient(120deg, #F5B956, #E8A33D) !important;
  color: #141A28 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(245, 185, 86, .35);
}
.plan-card .btn-main {
  background: linear-gradient(135deg, #F5B956, #E8A33D) !important;
  color: #141A28 !important;
  box-shadow: 0 6px 20px rgba(245, 185, 86, .3) !important;
}
.plan-card .btn-main:hover { box-shadow: 0 8px 26px rgba(245, 185, 86, .45) !important; }
[data-theme="light"] .vip-page, .vip-page {
  background:
    radial-gradient(50% 30% at 50% 0%, rgba(245, 185, 86, .06), transparent 70%),
    transparent;
}

/* ---- 评论区头部计数 ---- */
.comment-panel > h3 {
  display: flex; align-items: center; gap: 8px;
}

/* ---- 登录/注册卡片：品牌玻璃 ---- */
.auth-card, .form-card {
  background: rgba(255, 255, 255, .82) !important;
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .55) !important;
  box-shadow: 0 24px 60px -20px rgba(9, 14, 25, .18) !important;
}
[data-theme="dark"] .auth-card, [data-theme="dark"] .form-card {
  background: rgba(21, 26, 38, .72) !important;
  border-color: rgba(255, 255, 255, .08) !important;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6) !important;
}

/* ---- 页脚：融入氛围 ---- */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(37, 99, 235, .035)) !important;
}
.site-footer .icp { color: var(--muted-2, #9ca3af); }
/* ============================================================
   v5.1：玻璃顶栏终版（高特异性覆盖 v4 去玻璃规则）
   ============================================================ */
html .topbar,
html[data-theme="dark"] .topbar {
  background: rgba(255, 255, 255, .68) !important;
  background-color: rgba(255, 255, 255, .68) !important;
  backdrop-filter: blur(22px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.8) !important;
  border-bottom: 1px solid rgba(16, 24, 40, .06) !important;
}
html[data-theme="dark"] .topbar {
  background: rgba(13, 16, 24, .62) !important;
  background-color: rgba(13, 16, 24, .62) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .07) !important;
}
html .topbar .search-box,
html[data-theme="dark"] .topbar .search-box {
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* ============================================================
   v2.15.1：详情页评论区布局修复
   标题行 flex（标题+举报按钮两端对齐），替代 float 布局——
   float 半宽按钮会把 flex BFC 的 .cmt-form 压缩到剩余半幅
   ============================================================ */
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.panel-head h3 {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.comment-panel .report-btn {
  flex-shrink: 0;
  min-height: 0;
  padding: 7px 14px;
  font-size: 12.5px;
  border-radius: 999px;
}
.cmt-form { clear: both; }
@media (max-width: 560px) {
  .comment-panel .report-btn { min-width: 0 !important; }
}

/* ============================================================
   v2.16.0 TURING 图凌风
   参考：图凌壁纸 APP —— 三列贴边瀑布流 / 纯净无文字卡片 /
   信息叠图 / 薄荷青点缀 / 蓝青渐变下载 CTA / 沉浸详情
   ============================================================ */
:root {
  --mint: #2fd8c8;
  --mint-soft: rgba(47, 216, 200, .16);
  --grad-dl: linear-gradient(135deg, #2563eb 0%, #2fd8c8 100%);
}

/* ============================================================
   v2.16.4：详情信息区图凌式重构
   玻璃数据条（分辨率/大小/评分/浏览四格）+ 元信息行 + 紧凑操作
   ============================================================ */
.stats-glass {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 16px 0 10px;
  padding: 14px 6px;
  border-radius: 16px;
  background: rgba(12, 15, 22, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .5);
}
[data-theme="dark"] .stats-glass {
  background: rgba(26, 30, 40, .88);
  border-color: rgba(255, 255, 255, .07);
}
.sg-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 6px;
  min-height: 52px;
}
.sg-item + .sg-item { border-left: 1px solid rgba(255, 255, 255, .12); }
.sg-item b {
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .01em;
  white-space: nowrap;
}
.sg-item span { font-size: 10.5px; color: rgba(255, 255, 255, .55); white-space: nowrap; }
.sg-item.sg-score { gap: 2px; }
.sg-item.sg-score .score-stars { display: flex; gap: 1px; line-height: 1; }
.sg-item.sg-score .score-stars i { display: flex; font-size: 15px; }
.sg-item.sg-score .score-stars i svg { pointer-events: none; }
.meta-line {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.8;
}
.meta-line .link { font-weight: 600; }
.info-desc {
  font-size: 13px;
  color: var(--text-2, var(--text));
  line-height: 1.75;
  margin: 0 0 6px;
}
/* 操作按钮紧凑化（一排四枚玻璃按钮） */
.detail-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.detail-actions .act-btn {
  min-width: 0;
  padding: 11px 6px;
  font-size: 13px;
  border-radius: 12px;
  justify-content: center;
  gap: 5px;
}
@media (min-width: 901px) {
  .stats-glass { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px; }
  .sg-item { min-height: 56px; }
  .sg-item + .sg-item { border-left: 0; }
  .sg-item:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .12); }
  .sg-item:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .12); }
}
@media (max-width: 560px) {
  .stats-glass { margin: 14px 0 8px; padding: 12px 4px; }
  .sg-item b { font-size: 13px; }
  .sg-item span { font-size: 10px; }
}

/* ---- 1. 三列贴边瀑布流（全端统一，图凌灵魂） ---- */
.wall-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 5px !important;
}
.wall-card {
  position: relative;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
.wall-card:hover { transform: none !important; box-shadow: none !important; }
.wall-card::after { display: none !important; }
.wall-thumb {
  border-radius: 12px !important;
  box-shadow: 0 1px 4px rgba(10, 14, 24, .10);
}
[data-theme="dark"] .wall-thumb {
  background: #14141a !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.wall-thumb img { border-radius: 12px !important; }
@media (max-width: 768px) {
  .wall-grid { gap: 4px !important; }
  .wall-thumb, .wall-thumb img { border-radius: 8px !important; }
}

/* ---- 2. 纯净卡片：标题信息叠图，悬停浮现（移动端隐藏，还原图凌纯图流） ---- */
.wall-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  margin: 0 !important;
  padding: 34px 12px 10px !important;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 15, .74));
  border-radius: 0 0 12px 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .28s ease, transform .28s ease;
  pointer-events: none;
}
.wall-meta .wall-title {
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}
.wall-meta .wall-sub { color: rgba(255, 255, 255, .82) !important; margin: 4px 0 0 !important; font-size: 12px; }
.wall-meta .wall-sub span { color: rgba(255, 255, 255, .82) !important; }
.wall-card:hover .wall-meta { opacity: 1; transform: none; }
@media (hover: none) {
  .wall-meta { display: none !important; }
}

/* 分辨率/类型标签收敛 */
.res-tag {
  font-size: 10px !important;
  padding: 2px 7px !important;
  background: rgba(8, 10, 16, .55) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 0 !important;
  color: rgba(255, 255, 255, .92) !important;
}
@media (max-width: 768px) {
  .res-tag { font-size: 9px !important; padding: 1px 6px !important; }
  .type-tag { display: none !important; }
}
.quick-fav {
  background: rgba(8, 10, 16, .45) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff !important;
}
.quick-fav:hover { background: var(--mint) !important; }

/* ---- 3. type-switch：图凌式 tab 条（粗黑当前项 + 薄荷胶囊滑块） ---- */
.type-switch {
  background: var(--bg-soft) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 1px 2px rgba(30, 60, 120, .04) !important;
  padding: 4px 12px 6px !important;
  gap: 26px !important;
  border-radius: 14px !important;
}
.type-switch button {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 8px 2px !important;
  font-size: 16px !important;
  font-weight: 600;
  color: var(--muted) !important;
  position: relative;
  border-radius: 0 !important;
  transition: color .2s;
}
.type-switch button.on {
  color: var(--text) !important;
  font-weight: 900 !important;
}
.type-switch button.on::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -1px;
  transform: translateX(-50%);
  width: 30px; height: 7px;
  border-radius: 99px;
  background: var(--mint);
  opacity: .5;
}

/* ---- 4. 区块标题加重（图凌式粗黑大标题） ---- */
.sec-head h2 {
  font-size: 22px !important;
  font-weight: 900 !important;
  letter-spacing: .01em;
}

/* ---- 5. 详情页：紫粉渐变下载 CTA + 黑底标签胶囊 + 玻璃数据卡 ---- */
.dl-btns .btn-dl {
  background: var(--grad-dl) !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 26px -10px rgba(37, 99, 235, .45) !important;
}
.detail-actions .btn-dl:not(.btn-ghost) {
  background: var(--grad-dl) !important;
}
.wall-tags a, .wall-tags span, .detail-tags a, .tag-chip {
  background: rgba(12, 14, 20, .88) !important;
  color: #fff !important;
  border: 0 !important;
}
[data-theme="dark"] .wall-tags a, [data-theme="dark"] .detail-tags a { background: rgba(28, 30, 40, .92) !important; }
.act-btn.on, .act-btn.active {
  border-color: var(--mint) !important;
  color: var(--mint) !important;
}
.act-btn.on svg, .act-btn.active svg { color: var(--mint) !important; }

/* ---- 6. 空态：图凌式大字「完」 ---- */
.grid-end {
  font-size: 22px !important;
  font-weight: 900 !important;
  letter-spacing: .35em;
  color: var(--muted);
  opacity: .7;
}

/* ---- 7. 薄荷青注入：收藏/关注等正向操作 ---- */
.btn-ghost.mint, .fav-item:hover, .follow-btn.on {
  border-color: var(--mint) !important;
  color: var(--mint) !important;
}

/* ---- 8. 浅色主题底色微调（图凌浅灰白；限定浅色作用域，避免污染暗色变量） ---- */
:root:not([data-theme="dark"]) {
  --bg: #f5f6f8;
  --bg-soft: #eceef1;
}

/* ============================================================
   v2.16.5：PC 宽屏自适应增强
   宽屏网格升列（1280+ 四列 / 1600+ 五列）+ 容器加宽 + 详情平衡
   ============================================================ */
@media (min-width: 1280px) {
  .container { max-width: 1360px; }
  .wall-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .banner-wrap { max-width: 1360px; }
}
@media (min-width: 1600px) {
  .container { max-width: 1560px; }
  .wall-grid { grid-template-columns: repeat(5, 1fr) !important; }
  .banner-wrap { max-width: 1560px; }
}
/* 详情页桌面：大图视觉平衡（竖图不再撑满栏宽，居中呈现） */
@media (min-width: 901px) {
  .detail-main { gap: 40px; }
  .detail-img { width: auto; max-width: 100%; max-height: 72vh; margin: 0 auto; }
  .detail-viewer { display: flex; align-items: center; justify-content: center; }
}
/* 顶栏宽屏：搜索框略放宽 */
@media (min-width: 1280px) {
  .topbar .search-box { max-width: 420px; }
}

/* ============================================================
   v2.16.7：全屏预览工具条（图凌式）
   顶部渐变信息条（标题+页码）+ 底部操作条（收藏/下载）
   ============================================================ */
.fullscreen-viewer {
  background: radial-gradient(ellipse at center, rgba(22, 28, 44, .94), rgba(4, 7, 12, .99)) !important;
}
.fs-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 14px 110px 30px 20px;
  background: linear-gradient(180deg, rgba(5, 8, 14, .88), rgba(5, 8, 14, 0));
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  z-index: 2;
  pointer-events: none;
}
.fs-topbar #fsTitle { font-size: 15px; font-weight: 600; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.fs-page {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .72);
  font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
}
.fs-toolbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(5, 8, 14, .88), rgba(5, 8, 14, 0));
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 2;
}
.fs-act {
  height: 44px;
  padding: 0 22px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(10, 12, 18, .62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, background .2s;
}
.fs-act:active { transform: scale(.94); }
.fs-act.on { border-color: var(--mint); color: var(--mint); }
.fs-act-dl {
  background: var(--grad-dl);
  border-color: transparent;
  padding: 0 28px;
  box-shadow: 0 8px 22px -10px rgba(37, 99, 235, .6);
}

/* ============================================================
   v2.16.6：数据条主题适配
   浅色主题下白卡浅影（深色玻璃块压白页太突兀）；暗色保留玻璃
   评分星实心化（.on 状态填充金色，更饱满直观）
   ============================================================ */
:root:not([data-theme="dark"]) .stats-glass {
  background: var(--card);
  border-color: var(--line);
  box-shadow: 0 10px 28px -16px rgba(40, 70, 130, .28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
:root:not([data-theme="dark"]) .sg-item b { color: var(--text); }
:root:not([data-theme="dark"]) .sg-item span { color: var(--muted); }
:root:not([data-theme="dark"]) .sg-item + .sg-item,
:root:not([data-theme="dark"]) .sg-item:nth-child(even) {
  border-left-color: var(--line);
}
:root:not([data-theme="dark"]) .sg-item:nth-child(n + 3) {
  border-top-color: var(--line);
}
.score-stars i.on svg { fill: currentColor; }

/* ============================================================
   v2.16.10：type-switch 外框恢复 + 类型切换淡入淡出 + 黑块修复 + PC 壁纸流全宽贴边
   ============================================================ */
/* 中间层的 .on 深底白字规则覆盖了图凌 tab 条——同特异性在文件尾部重新覆盖 */
.type-switch button.on {
  background: transparent !important;
  background-image: none !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
[data-theme="dark"] .type-switch button.on {
  background: transparent !important;
  color: #fff !important;
}
/* PC 壁纸流与 Banner 突破容器，贴边全宽（沉浸） */
@media (min-width: 1280px) {
  body { overflow-x: hidden; }
  .section .wall-grid,
  #wallGrid {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    padding-left: 6px;
    padding-right: 6px;
  }
  .banner-wrap {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
  }
  .banner-wrap .banner-slide { border-radius: 0; }
}

/* 类型切换：保留旧高度 + 淡出淡入，避免整页刷新跳屏 */
.wall-grid { transition: opacity .16s ease; }
.wall-grid.is-switching { opacity: .28; }

/* ============================================================
   v2.16.11：网页端巡检修复
   1) 减少动态效果时不再整页透明
   2) 首页分类不再被裁切 / 移动端壁纸恢复双列
   3) 404 中间的 0 可见、分类图标恢复正常
   4) 注册协议复选框改为明确的勾选框
   5) 详情页桌面留白改为暗色画框
   6) 会员页信息层级、暗夜鎏金可读性与首屏高度重构
   ============================================================ */

/* ---- 1. 无障碍：prefers-reduced-motion 下必须保证内容可见 ---- */
@media (prefers-reduced-motion: reduce) {
  .page-fade {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .wall-grid .wall-card { animation: none !important; }
  .banner-track { transition: none !important; }
}

/* ---- 2. 首页分类完整展示；移动端壁纸网格恢复双列 ---- */
.cat-grid.wrap2 {
  max-height: none !important;
  overflow: visible !important;
}
@media (max-width: 768px) {
  .wall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

/* ---- 3. 404：旋转的 0 不能继承透明文字填充 ---- */
.nf-code i {
  color: var(--c2) !important;
  -webkit-text-fill-color: var(--c2) !important;
  background: none !important;
}

/* ---- 4. 注册协议复选框：18px 品牌勾选框 ---- */
.agree-field {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
}
.agree-field input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  flex: 0 0 18px;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  border: 1.5px solid var(--line-strong, #d6dae2);
  border-radius: 5px;
  background: var(--card);
  cursor: pointer;
  display: inline-block;
  transition: background .15s, border-color .15s;
}
.agree-field input[type="checkbox"]:checked {
  background-color: var(--c2);
  border-color: var(--c2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
}
.agree-field input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(6, 182, 212, .35);
  outline-offset: 2px;
}
.agree-field > span {
  display: block !important;
  flex: 1;
  line-height: 1.65;
  font-size: 13px;
  color: var(--muted);
}

/* ---- 5. 详情页：桌面大图留给暗色画框，不再出现刺眼白边 ---- */
.detail-viewer { background: #0b1020 !important; }
@media (min-width: 901px) {
  .detail-viewer { padding: 0; }
  .detail-img { border-radius: 0; }
}

/* ---- 6. 会员页：暗夜鎏金信息层级重构 ---- */
.vip-page { padding-top: 16px; }

.vip-hero {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  text-align: left !important;
  padding: 22px 28px !important;
  margin-bottom: 14px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(245, 185, 86, .24) !important;
  color: #f8fafc;
  background:
    radial-gradient(120% 170% at 8% 0%, rgba(245, 185, 86, .14), transparent 55%),
    linear-gradient(135deg, #141b2b 0%, #0c111d 100%) !important;
  box-shadow: 0 18px 44px -28px rgba(4, 8, 16, .65);
  overflow: hidden;
}
.vip-hero-copy { min-width: 0; }
.vip-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: #f5b956;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .18em;
  line-height: 1;
}
.vip-eyebrow::before {
  content: "";
  width: 16px;
  height: 1.5px;
  background: #f5b956;
}
.vip-hero h1 {
  margin: 0 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  font-size: 29px !important;
  line-height: 1.22 !important;
  letter-spacing: -.5px !important;
  font-weight: 750;
}
.vip-hero p {
  margin: 7px 0 0 !important;
  color: rgba(248, 250, 252, .68) !important;
  font-size: 13px !important;
  letter-spacing: .02em;
}
.vip-hero-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}
.vip-state {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, .13) !important;
  background: rgba(255, 255, 255, .07) !important;
  color: rgba(248, 250, 252, .82) !important;
  font-size: 11.5px !important;
  line-height: 1.2;
  white-space: nowrap;
}
.vip-state.ok {
  color: #f5c76a !important;
  border-color: rgba(245, 185, 86, .35) !important;
  background: rgba(245, 185, 86, .08) !important;
}
.vip-hero-note {
  margin: 0 !important;
  color: rgba(248, 250, 252, .42) !important;
  font-size: 10.5px !important;
  letter-spacing: .03em;
}
.vip-orders {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f5c76a !important;
  font-size: 11.5px !important;
  text-decoration: none;
  opacity: .9;
}
.vip-orders:hover { opacity: 1; text-decoration: underline; }

.vip-plans-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 2px 2px 11px;
}
.vip-plans-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.2px;
}
.vip-plans-head p {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
}
.vip-plans-badge {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid rgba(245, 185, 86, .3);
  border-radius: 6px;
  background: rgba(245, 185, 86, .08);
  color: #a97723;
  font-size: 10.5px;
  line-height: 1.3;
}

.vip-page .plan-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
  align-items: stretch;
}
.vip-page .plan-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left !important;
  padding: 15px 15px 14px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(245, 185, 86, .2) !important;
  background: linear-gradient(165deg, #161d2c 0%, #0c111e 100%) !important;
  box-shadow: 0 16px 34px -24px rgba(3, 7, 14, .7) !important;
  overflow: hidden;
}
.vip-page .plan-card.has-tag {
  border-color: rgba(245, 185, 86, .55) !important;
  background:
    radial-gradient(110% 120% at 50% 0%, rgba(245, 185, 86, .09), transparent 60%),
    linear-gradient(165deg, #1a2233 0%, #0d1322 100%) !important;
}
.vip-page .plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 22px;
}
.vip-page .plan-card h3 {
  margin: 0 !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.25;
  letter-spacing: .01em;
  white-space: nowrap;
}
.vip-page .plan-tag {
  position: static !important;
  transform: none !important;
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 3px 7px !important;
  border: 1px solid rgba(245, 185, 86, .28);
  border-radius: 5px !important;
  background: rgba(245, 185, 86, .1) !important;
  color: #f5c76a !important;
  -webkit-text-fill-color: #f5c76a !important;
  font-size: 9.5px !important;
  font-weight: 600 !important;
  line-height: 1.2;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: none !important;
}
.vip-page .plan-price {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 1px;
  margin: 9px 0 0 !important;
  color: #f5b956;
  line-height: 1;
}
.vip-page .plan-price i,
.vip-page .plan-price b {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: #f5b956 !important;
  -webkit-text-fill-color: #f5b956 !important;
}
.vip-page .plan-price i {
  font-size: 12px !important;
  font-weight: 600;
  transform: translateY(-1px);
}
.vip-page .plan-price b {
  font-size: 32px !important;
  font-weight: 750;
  letter-spacing: -1.4px;
}
.vip-page .plan-price em {
  margin-left: 3px !important;
  color: rgba(248, 250, 252, .52) !important;
  -webkit-text-fill-color: rgba(248, 250, 252, .52) !important;
  background: none !important;
  font-size: 10.5px !important;
  font-style: normal;
  letter-spacing: 0;
  white-space: nowrap;
}
.vip-page .plan-days {
  margin: 5px 0 10px !important;
  color: rgba(248, 250, 252, .5) !important;
  font-size: 10.5px !important;
  line-height: 1.45;
  min-height: 15px;
}
.vip-page .plan-card ul {
  margin: 0 0 13px !important;
  padding: 0 !important;
  list-style: none;
  flex: 1;
}
.vip-page .plan-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 3px 0 !important;
  color: rgba(248, 250, 252, .76) !important;
  font-size: 11.5px !important;
  line-height: 1.45;
}
.vip-page .plan-card ul li::before { display: none !important; }
.vip-page .plan-card ul li svg {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  margin-top: 1px;
  color: #f5b956;
}
.vip-page .plan-card .btn-main {
  margin-top: auto;
  width: 100%;
  min-height: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #f6cb77 0%, #e8a33d 100%) !important;
  color: #101421 !important;
  -webkit-text-fill-color: #101421 !important;
  font-size: 12.5px !important;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: 0 6px 18px -8px rgba(245, 185, 86, .55) !important;
}
.vip-page .plan-card .btn-main:hover {
  box-shadow: 0 8px 24px -8px rgba(245, 185, 86, .7) !important;
}

.vip-page .rights-table {
  margin-top: 2px;
}
.rights-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}
.rights-head h3 {
  margin: 0 !important;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.rights-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}
.vip-page .rights-table table {
  font-size: 12.5px;
}
.vip-page .rights-table th,
.vip-page .rights-table td {
  padding: 9px 14px !important;
  line-height: 1.35;
}
.vip-page .rights-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.vip-page .rights-table td:first-child {
  color: var(--text);
  font-weight: 500;
}
.vip-page .rights-table .cell-yes svg { color: #c08a2e; }
.vip-page .rights-table .cell-em {
  color: #a97723;
  font-weight: 700;
}

@media (max-width: 1000px) {
  .vip-page .plan-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .vip-page { padding-top: 8px; }
  .vip-hero {
    display: block !important;
    padding: 20px 18px !important;
    text-align: center !important;
    margin-bottom: 12px !important;
  }
  .vip-eyebrow { justify-content: center; font-size: 9.5px; }
  .vip-hero h1 { font-size: 25px !important; }
  .vip-hero p { font-size: 12px !important; line-height: 1.6; }
  .vip-hero-side {
    align-items: center;
    margin-top: 12px;
    text-align: center;
    gap: 7px;
  }
  .vip-state { font-size: 11px !important; padding: 6px 11px !important; }
  .vip-hero-note { font-size: 10px !important; }
  .vip-plans-head { margin-bottom: 9px; align-items: flex-start; }
  .vip-plans-head h2 { font-size: 16px; }
  .vip-plans-head p { font-size: 10.5px; }
  .vip-plans-badge { display: none; }
  .vip-page .plan-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 19px;
  }
  .vip-page .plan-card {
    padding: 13px 12px 12px !important;
    border-radius: 14px !important;
  }
  .vip-page .plan-head { min-height: 19px; gap: 5px; }
  .vip-page .plan-card h3 { font-size: 12px !important; }
  .vip-page .plan-tag { font-size: 9px !important; padding: 2px 5px !important; }
  .vip-page .plan-price { margin-top: 7px !important; }
  .vip-page .plan-price i { font-size: 10px !important; }
  .vip-page .plan-price b { font-size: 27px !important; letter-spacing: -1.2px; }
  .vip-page .plan-price em { font-size: 9.5px !important; margin-left: 2px !important; }
  .vip-page .plan-days {
    display: none;
  }
  .vip-page .plan-card ul { margin-bottom: 10px !important; }
  .vip-page .plan-card ul li {
    font-size: 10.5px !important;
    gap: 4px;
    padding: 2px 0 !important;
  }
  .vip-page .plan-card ul li svg { width: 11px; height: 11px; flex-basis: 11px; }
  .vip-page .plan-card .btn-main {
    height: 35px;
    min-height: 35px;
    font-size: 11.5px !important;
  }
  .rights-head p { display: none; }
  .vip-page .rights-table th,
  .vip-page .rights-table td {
    padding: 9px 9px !important;
    font-size: 11px !important;
  }
  .vip-page .rights-table th { font-size: 10.5px !important; }
  .vip-page .rights-table th:first-child,
  .vip-page .rights-table td:first-child { width: 41%; }
}
@media (max-width: 340px) {
  .vip-page .plan-list { grid-template-columns: 1fr; }
}

/* 详情页移动端：标题先于大图出现，避免首屏只看到图片 */
.detail-mobile-head { display: none; }
@media (max-width: 900px) {
  .detail-mobile-head {
    display: block;
    padding: 0 2px 12px;
  }
  .detail-mobile-head .dm-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 7px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.4;
  }
  .detail-mobile-head .dm-meta i { font-style: normal; opacity: .45; }
  .detail-mobile-head h1 {
    margin: 0;
    color: var(--text);
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: -.3px;
  }
  .detail-wrap .detail-info .detail-title { display: none; }
}

/* 表格首列表头与内容对齐 */
.vip-page .rights-table th:first-child { text-align: left; }

/* ===== 会员页：每日 / 每月双额度 + 后台可配置权益 ===== */
.vip-page .plan-days {
  margin: 5px 0 6px !important;
}
.vip-page .plan-quota {
  display: flex;
  align-items: stretch;
  margin: 0 0 7px;
  padding: 6px 0;
  border-top: 1px solid rgba(245, 185, 86, .16);
  border-bottom: 1px solid rgba(245, 185, 86, .16);
}
.vip-page .plan-quota .pq-item {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  color: rgba(248, 250, 252, .52);
  line-height: 1;
}
.vip-page .plan-quota .pq-item + .pq-item {
  border-left: 1px solid rgba(245, 185, 86, .16);
}
.vip-page .plan-quota span {
  font-size: 9px;
  letter-spacing: .02em;
}
.vip-page .plan-quota b {
  color: #f5c76a;
  -webkit-text-fill-color: #f5c76a;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.5px;
}
.vip-page .plan-quota b.pq-unlimited {
  font-size: 15px;
  letter-spacing: 0;
}
.vip-page .plan-quota em {
  color: rgba(248, 250, 252, .38);
  font-size: 8.5px;
  font-style: normal;
}
.vip-page .plan-benefits {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0 6px;
  margin: 0 0 10px !important;
}
.vip-page .plan-benefits li {
  flex: 0 0 calc(50% - 3px);
  min-width: 0;
  padding: 2px 0 !important;
  line-height: 1.35 !important;
}

.vip-page .quota-table table {
  width: 100%;
  table-layout: fixed;
}
.vip-page .quota-table th:first-child,
.vip-page .quota-table td:first-child { width: 46%; }
.vip-page .quota-table th:nth-child(2),
.vip-page .quota-table td:nth-child(2),
.vip-page .quota-table th:nth-child(3),
.vip-page .quota-table td:nth-child(3) { width: 27%; }
.vip-page .quota-table th,
.vip-page .quota-table td {
  padding: 7px 12px !important;
  line-height: 1.35;
}
.vip-page .quota-table td {
  vertical-align: middle;
}
.vip-page .quota-table tr.is-current td {
  background: rgba(245, 185, 86, .08);
}
.vip-page .quota-table .qt-plan {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
  min-width: 0;
}
.vip-page .quota-table .qt-plan b {
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.vip-page .quota-table .qt-price {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}
.vip-page .quota-table .qt-perks {
  margin-top: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  white-space: normal;
}
.vip-page .quota-table .cell-em {
  font-size: 13px;
  font-weight: 700;
  color: #a97723;
  white-space: nowrap;
}
.vip-page .quota-note {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}
.vip-page .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .vip-page .plan-quota {
    padding: 5px 0;
    margin-bottom: 0;
  }
  .vip-page .plan-quota b { font-size: 16px; }
  .vip-page .plan-quota b.pq-unlimited { font-size: 13px; }
  .vip-page .plan-quota span { font-size: 8.5px; }
  .vip-page .plan-quota em { font-size: 8px; }
  .vip-page .quota-table th,
  .vip-page .quota-table td {
    padding: 8px 8px !important;
    font-size: 10.5px !important;
  }
  .vip-page .quota-table th:first-child,
  .vip-page .quota-table td:first-child { width: 48%; }
  .vip-page .quota-table th:nth-child(2),
  .vip-page .quota-table td:nth-child(2),
  .vip-page .quota-table th:nth-child(3),
  .vip-page .quota-table td:nth-child(3) { width: 26%; }
  .vip-page .quota-table .qt-plan { gap: 4px; flex-wrap: wrap; }
  .vip-page .quota-table .qt-plan b { font-size: 11.5px; }
  .vip-page .quota-table .qt-price { font-size: 9px; }
  .vip-page .quota-table .qt-perks { font-size: 9px; }
  .vip-page .quota-table .cell-em { font-size: 11.5px; }
  .vip-page .quota-note { font-size: 9.5px; }
}
@media (max-width: 600px) {
  /* 移动端卡片只保留价格/双额度/按钮，权益明细在下方额度表集中展示，避免四张卡撑出首屏 */
  .vip-page .plan-benefits { display: none !important; }
  .vip-page .plan-card ul { margin-bottom: 0 !important; }
  .vip-page .plan-card .btn-main { margin-top: 8px; }
}