/* ================= 主题变量 ================= */
:root {
  --bg: #fff8fb;
  --bg-soft: #fdeff6;
  --surface: #ffffff;
  --text: #2b2436;
  --text-soft: #6f6480;
  --text-mute: #9b90aa;
  --primary: #ff6b9d;
  --primary-soft: #ffe1ec;
  --accent: #7c9cff;
  --accent-soft: #e3eaff;
  --mint: #4ecfae;
  --gold: #f5b942;
  --line: #f0e4ee;
  --line-2: #e7d8e6;
  --shadow: 0 8px 28px rgba(160, 110, 160, 0.13);
  --shadow-hi: 0 16px 40px rgba(160, 110, 160, 0.2);
  --radius: 18px;
  --radius-sm: 12px;

  /* 详情页氛围背景用 */
  --db-rgb: 255, 248, 251;
  --surface-rgb: 255, 255, 255;
  --primary-rgb: 255, 107, 157;
  --db-g1: rgba(255, 107, 157, .38);
  --db-g2: rgba(124, 156, 255, .30);
  --db-mix: .26;
}

[data-theme="dark"] {
  --bg: #16121d;
  --bg-soft: #1e1829;
  --surface: #231c30;
  --text: #ece5f6;
  --text-soft: #a99bbd;
  --text-mute: #7d708f;
  --primary: #ff87b0;
  --primary-soft: #3a2434;
  --accent: #94b0ff;
  --accent-soft: #26304a;
  --mint: #62d9bb;
  --gold: #f0c466;
  --line: #2f2740;
  --line-2: #3b314f;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  --shadow-hi: 0 16px 40px rgba(0, 0, 0, 0.5);

  --db-rgb: 22, 18, 29;
  --surface-rgb: 35, 28, 48;
  --primary-rgb: 255, 135, 176;
  --db-g1: rgba(255, 135, 176, .42);
  --db-g2: rgba(148, 176, 255, .34);
  --db-mix: .22;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.75;
  -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; overflow-x: hidden;
}
.wrap { width: min(1200px, 94vw); margin: 0 auto; }

.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 999;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--mint)); transition: width .1s linear;
}

.deco-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; transition: opacity .45s ease; }
/* 详情页改用封面氛围背景，装饰光球会让颜色打架，收掉 */
body.detail-on .deco-layer { opacity: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .32; }
.orb-1 { width: 340px; height: 340px; background: var(--primary); top: -90px; right: -60px; animation: float 14s ease-in-out infinite; }
.orb-2 { width: 300px; height: 300px; background: var(--accent); bottom: -100px; left: -80px; animation: float 18s ease-in-out infinite reverse; }
.orb-3 { width: 220px; height: 220px; background: var(--mint); top: 45%; left: 55%; opacity: .16; animation: float 22s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px,40px); } }

/* ================= 头部 ================= */
.site-header {
  position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line);
  background: rgba(255,248,251,.85); backdrop-filter: blur(14px);
}
[data-theme="dark"] .site-header { background: rgba(22,18,29,.85); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 17px;
  box-shadow: 0 4px 14px rgba(255,107,157,.35);
}
.brand-text { font-weight: 700; font-size: 16px; line-height: 1.1; letter-spacing: .3px; }
.brand-text small { display: block; font-size: 9px; letter-spacing: 2.5px; color: var(--text-mute); font-weight: 500; }
.nav { display: flex; gap: 4px; margin-left: 6px; }
.nav-link { padding: 7px 13px; border-radius: 999px; text-decoration: none; color: var(--text-soft); font-size: 13.5px; transition: .18s; }
.nav-link:hover { background: var(--primary-soft); color: var(--primary); }
.nav-link.active { background: var(--primary); color: #fff; font-weight: 600; }
.header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.search-box { position: relative; }
.search-box input {
  width: 180px; padding: 8px 14px 8px 34px; border-radius: 999px; font-family: inherit;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 13px; outline: none; transition: .2s;
}
.search-box input:focus { width: 230px; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-mute); font-size: 15px; }
.theme-btn {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px; transition: .2s;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text-soft);
}
.theme-btn:hover { border-color: var(--primary); color: var(--primary); transform: rotate(-18deg); }

/* ================= Hero ================= */
.hero { position: relative; padding: 54px 0 100px; background: linear-gradient(160deg, var(--bg-soft), var(--bg)); }
.hero-inner { text-align: center; position: relative; z-index: 2; }
.hero-kicker { font-size: 11px; letter-spacing: 4px; color: var(--primary); font-weight: 700; margin-bottom: 12px; }
.hero-title { font-size: clamp(26px, 4.6vw, 42px); font-weight: 800; line-height: 1.35; letter-spacing: -.5px; }
.hero-title .hl { background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 14px; color: var(--text-soft); font-size: 14.5px; max-width: 620px; margin-inline: auto; }
.hero-stats { display: flex; justify-content: center; gap: 36px; margin-top: 30px; flex-wrap: wrap; }
.stat b { display: block; font-size: 25px; color: var(--primary); font-weight: 800; line-height: 1.2; }
.stat span { font-size: 12px; color: var(--text-mute); }
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; fill: var(--bg); }

/* ================= 控制栏 ================= */
.control-bar {
  margin: -48px 0 4px; position: relative; z-index: 5; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow);
}
.filter-row { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.filter-row + .filter-row { border-top: 1px dashed var(--line-2); }
.row-label { font-size: 12px; color: var(--text-mute); flex-shrink: 0; width: 32px; padding-top: 7px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; font-family: inherit;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--text-soft); transition: .16s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.chip .cnt { opacity: .6; font-size: 11px; margin-left: 4px; }
.chips-wrap { max-height: 84px; overflow-y: auto; padding-right: 4px; }
.reset-chip { margin-left: auto; background: transparent; border-style: dashed; color: var(--text-mute); }
.reset-chip:hover { border-style: solid; }

/* 角色页横幅 */
.ctx-banner {
  margin: 16px 0 4px; padding: 14px 18px; border-radius: var(--radius);
  border: 1px solid rgba(var(--primary-rgb), .34);
  background: linear-gradient(120deg, rgba(var(--primary-rgb), .12), rgba(var(--surface-rgb), .6));
  box-shadow: var(--shadow);
}
.ctx-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ctx-text { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; flex: 1; min-width: 0; }
.ctx-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .5px; color: #fff;
  background: var(--primary); padding: 2px 9px; border-radius: 999px;
}
.ctx-text b { font-size: 19px; font-weight: 800; }
.ctx-sub { font-size: 13px; color: var(--text-soft); }
.ctx-count { font-size: 12.5px; color: var(--text-mute); }
.ctx-clear {
  font-family: inherit; font-size: 12.5px; cursor: pointer;
  padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text-soft);
}
.ctx-clear:hover { border-color: var(--primary); color: var(--primary); }

/* 详情页角色 */
.char-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.char-pill {
  display: inline-flex; flex-direction: column; gap: 1px; text-decoration: none;
  padding: 7px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--bg-soft); transition: .16s;
}
.char-pill:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-1px); }
.char-pill b { font-size: 13.5px; color: var(--text); font-weight: 700; }
.char-pill:hover b { color: var(--primary); }
.char-pill span { font-size: 11.5px; color: var(--text-mute); }

.result-line { font-size: 13px; color: var(--text-mute); margin: 20px 0 18px; }

/* ================= 卡片网格 ================= */
.post-grid {
  display: grid; gap: 20px; padding-bottom: 70px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hi); border-color: var(--primary); }
.cover-box { position: relative; aspect-ratio: 2/3; background: var(--bg-soft); overflow: hidden; }
.cover-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px;
  color: rgba(255,255,255,.9); background: linear-gradient(135deg, var(--primary), var(--accent));
}
.score-badge {
  position: absolute; top: 8px; right: 8px; padding: 3px 9px; border-radius: 999px;
  background: rgba(20,14,26,.72); color: #fff; font-size: 12.5px; font-weight: 700;
  backdrop-filter: blur(4px); letter-spacing: .3px;
}
.score-badge.s90 { background: rgba(214,74,110,.92); }
.score-badge.s85 { background: rgba(120,90,200,.9); }
.score-badge.s80 { background: rgba(60,140,200,.88); }
.card-body { padding: 12px 13px 14px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 14.5px; font-weight: 700; line-height: 1.45; margin-bottom: 3px; }
.card:hover .card-title { color: var(--primary); }
.card-sub { font-size: 11.5px; color: var(--text-mute); line-height: 1.4; margin-bottom: 9px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 32px; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-mute); margin-top: auto; flex-wrap: wrap; }
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-mute); }

.empty { text-align: center; padding: 70px 0 90px; color: var(--text-mute); }
.empty-emoji { font-size: 30px; margin-bottom: 10px; }

/* ================= 详情页 ================= */

/* 氛围背景：封面图放大模糊 + 渐变遮罩 + 光晕 + 细颗粒 */
.detail-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
  opacity: 0; transition: opacity .55s ease;
}
.detail-bg.on { opacity: 1; }
.db-img {
  position: absolute; inset: -10%;
  background-position: center 22%; background-size: cover; background-repeat: no-repeat;
  filter: blur(40px) saturate(240%) contrast(108%);
  transform: scale(1.2);
  transition: background-image .5s ease, opacity .5s ease;
}
.db-glow {
  position: absolute; inset: 0; transition: background .6s ease;
  background:
    radial-gradient(58% 40% at 20% 2%, var(--db-g1), transparent 68%),
    radial-gradient(50% 36% at 84% 0%, var(--db-g2), transparent 70%),
    radial-gradient(78% 54% at 50% 28%, rgba(var(--acc, var(--primary-rgb)), .34), transparent 78%);
}
.db-mask {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(var(--db-rgb), var(--db-mix)) 0%,
    rgba(var(--db-rgb), calc(var(--db-mix) + .14)) 30%,
    rgba(var(--db-rgb), .88) 56%,
    rgb(var(--db-rgb)) 80%);
}
/* 极细颗粒，消除大面积渐变的色带 */
.db-grain {
  position: absolute; inset: 0; opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

/* 有氛围背景时，详情页面板改为半透明，让底色透出来 */
.detail .panel,
.detail .nav-card {
  background: rgba(var(--surface-rgb), .80);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}
.detail .detail-cover {
  border-color: rgba(var(--acc, var(--primary-rgb)), .34);
  box-shadow: 0 22px 60px rgba(var(--acc, var(--primary-rgb)), .28), var(--shadow);
}
.detail .detail-info h1 { text-shadow: 0 1px 18px rgba(var(--db-rgb), .55); }
.detail .section-title { text-shadow: 0 1px 12px rgba(var(--db-rgb), .6); }
@media (prefers-reduced-motion: reduce) {
  .detail-bg { transition: none; }
  .db-img { transition: none; }
}
/* 移动端：毛玻璃开销大，改回实色面板 */
@media (max-width: 720px) {
  .detail .panel, .detail .nav-card {
    background: rgba(var(--surface-rgb), .94);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .db-img { filter: blur(48px) saturate(150%); }
}

.back-btn {
  padding: 8px 18px; border-radius: 999px; cursor: pointer; font-size: 13.5px; font-family: inherit;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text-soft); transition: .18s; margin: 30px 0 26px;
}
.back-btn:hover { border-color: var(--primary); color: var(--primary); }

/* 顶部氛围横幅：封面铺满 + 主色光晕 + 底部羽化进页面底色 */
.detail-hero {
  position: relative; height: 240px; margin: 0 0 26px;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.detail-hero .dh-img {
  position: absolute; inset: -14%;
  background-position: center 26%; background-size: cover; background-repeat: no-repeat;
  filter: blur(18px) saturate(200%);
}
.detail-hero .dh-mask {
  position: absolute; inset: 0;
  background:
    radial-gradient(62% 88% at 74% 44%, rgba(var(--acc, var(--primary-rgb)), .34), transparent 72%),
    linear-gradient(180deg,
      rgba(var(--db-rgb), .16) 0%,
      rgba(var(--db-rgb), .32) 38%,
      rgba(var(--db-rgb), .80) 74%,
      rgb(var(--db-rgb)) 100%);
}
.detail-hero .dh-line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--mint), transparent);
  opacity: .85;
}
@media (max-width: 720px) { .detail-hero { height: 165px; margin-bottom: 20px; } }

.detail-top { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
@media (max-width: 720px) { .detail-top { grid-template-columns: 1fr; gap: 20px; } }
.detail-cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg-soft); }
.detail-cover img { width: 100%; display: block; }
.detail-info h1 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; line-height: 1.35; margin-bottom: 6px; }
.detail-info .romaji { font-size: 13.5px; color: var(--text-mute); margin-bottom: 18px; }
.score-line { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.score-num { font-size: 40px; font-weight: 800; line-height: 1; color: var(--primary); }
.score-meta { font-size: 13px; color: var(--text-mute); }
.score-tier {
  padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: var(--primary-soft); color: var(--primary);
}

.info-table { display: grid; grid-template-columns: 74px 1fr; gap: 8px 14px; font-size: 13.5px; margin-bottom: 18px; }
.info-table dt { color: var(--text-mute); }
.info-table dd { color: var(--text); }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 6px; }
.tag-pill {
  padding: 4px 11px; border-radius: 999px; font-size: 12px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600;
}
.tag-pill.strong { background: var(--primary-soft); color: var(--primary); }

/* 评价区 */
.section-title { font-size: 17px; font-weight: 800; margin: 40px 0 14px; padding-left: 12px; border-left: 4px solid var(--primary); }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 18px;
}
.panel h4 { font-size: 14px; font-weight: 700; margin-bottom: 10px; color: var(--accent); }
.panel p { font-size: 14.5px; color: var(--text-soft); line-height: 1.9; margin-bottom: 8px; }
.panel p:last-child { margin-bottom: 0; }
.panel b { color: var(--text); }
.panel.manual { border-left: 3px solid var(--primary); background: linear-gradient(180deg, var(--primary-soft), var(--surface) 60%); }
.panel.manual h4 { color: var(--primary); }
.review-line { display: flex; gap: 10px; margin-bottom: 10px; font-size: 14.5px; line-height: 1.85; }
.review-line .k { flex-shrink: 0; width: 62px; font-size: 12.5px; color: var(--text-mute); padding-top: 3px; font-weight: 600; }
.review-line .v { color: var(--text); }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.review-badge { font-size: 11px; padding: 3px 10px; border-radius: 999px; background: var(--mint); color: #fff; font-weight: 700; }

.desc-text { font-size: 14.5px; line-height: 1.95; color: var(--text-soft); white-space: pre-wrap; }
.desc-note { font-size: 12px; color: var(--text-mute); margin-top: 12px; font-style: italic; }

.post-nav { display: flex; gap: 14px; margin: 36px 0 80px; flex-wrap: wrap; }
.nav-card { flex: 1; min-width: 220px; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: .2s; }
.nav-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.nav-card span { font-size: 11.5px; color: var(--text-mute); display: block; }
.nav-card b { font-size: 13.5px; font-weight: 600; display: block; margin-top: 4px; line-height: 1.5; }

/* ================= 关于页 ================= */
.article-wrap { max-width: 780px; }
.about-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 44px; box-shadow: var(--shadow); }
.about-card h2 { font-size: 26px; font-weight: 800; margin-bottom: 16px; }
.about-card h3 { font-size: 16px; font-weight: 700; margin: 26px 0 8px; color: var(--primary); }
.about-card p { font-size: 15px; color: var(--text-soft); line-height: 1.9; margin-bottom: 12px; }
.about-card ul { padding-left: 20px; margin-bottom: 12px; }
.about-card li { font-size: 15px; color: var(--text-soft); margin-bottom: 6px; }
.about-sign { margin-top: 28px; text-align: right; color: var(--text-mute); font-size: 13px; }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0; background: var(--bg-soft); }
.footer-inner { text-align: center; }
.footer-brand { font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.footer-note { font-size: 12.5px; color: var(--text-mute); }

main { position: relative; z-index: 1; }
.fade-in { animation: fadeIn .4s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .nav { display: none; }
  .search-box input { width: 120px; }
  .search-box input:focus { width: 150px; }
  .hero { padding: 40px 0 92px; }
  .hero-stats { gap: 22px; }
  .about-card { padding: 28px 22px; }
}
@media (max-width: 520px) {
  .brand-text small { display: none; }
  .search-box { display: none; }
  .post-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
  .control-bar { margin-top: -30px; padding: 12px 14px; }
  .panel { padding: 18px 18px; }
}

/* ================= 类型徽章 ================= */
.badge18 {
  display: inline-block; padding: 1px 6px; border-radius: 5px; font-size: 10px;
  background: #e24b4a; color: #fff; letter-spacing: .5px; line-height: 1.5;
}
.badge18.big { font-size: 12px; padding: 3px 10px; border-radius: 7px; }
.badge-rom {
  display: inline-block; padding: 3px 10px; border-radius: 7px; font-size: 12px;
  background: var(--primary-soft); color: var(--primary);
}

/* ================= 图片淡入 / 加载更多 / 随机 / 回顶 ================= */
.cover-box img { opacity: 0; transition: opacity .35s ease; }
.cover-box img.loaded { opacity: 1; }

.random-btn {
  margin-top: 22px; padding: 10px 26px; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600;
  border: 1px solid var(--primary); background: var(--surface); color: var(--primary);
  transition: .2s; box-shadow: 0 4px 16px rgba(255,107,157,.18);
}
.random-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.more-wrap { display: flex; justify-content: center; padding: 8px 0 70px; }
.more-btn {
  padding: 11px 34px; border-radius: 999px; cursor: pointer; font-family: inherit;
  font-size: 14px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text-soft); transition: .18s;
}
.more-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.totop {
  position: fixed; right: 22px; bottom: 26px; z-index: 200; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--primary);
  box-shadow: var(--shadow); transition: .2s;
}
.totop:hover { transform: translateY(-3px); border-color: var(--primary); }

/* ================= 括号中文名 ================= */
.zh-name { font-weight: 500; color: var(--text-soft); }
.card-title .zh-name { font-size: 12px; }
.detail-info h1 .zh-name { font-size: 15px; letter-spacing: 0; }
.nav-card b .zh-name { font-size: 12px; }

/* ================= 截图缩略图 ================= */
.detail-cover { cursor: zoom-in; }
.detail-cover img { transition: transform .3s; }
.detail-cover:hover img { transform: scale(1.03); }
.zoom-hint {
  position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px;
  background: rgba(20,14,26,.66); color: #fff; font-size: 11.5px; pointer-events: none;
}
.detail-cover { position: relative; }

.shot-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.shot-thumb {
  width: 150px; height: 85px; border-radius: 10px; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--line); background: var(--bg-soft); padding: 0; transition: .2s;
}
.shot-thumb:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.shot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-empty { font-size: 13px; color: var(--text-mute); }

/* ================= 灯箱 ================= */
.lightbox {
  position: fixed; inset: 0; z-index: 9999; background: rgba(14, 9, 20, .93);
  display: flex; align-items: center; justify-content: center; padding: 56px 72px;
  animation: lbIn .18s ease both; overflow: hidden;
}
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.lb-figure img {
  max-width: calc(100vw - 144px); max-height: calc(100vh - 190px);
  object-fit: contain; border-radius: 10px; background: #000;
  transform-origin: center center; will-change: transform;
  -webkit-user-select: none; user-select: none; touch-action: none;
}
.lb-figure img.zoomed { cursor: grab; }
.lb-figure img.grabbing { cursor: grabbing; }
.lb-figure figcaption { color: rgba(255,255,255,.72); font-size: 13px; text-align: center; line-height: 1.6; }

.lb-tools {
  position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}
.lb-btn {
  min-width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 15px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff;
  font-family: inherit; transition: .16s; line-height: 1;
}
.lb-btn:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.5); }
.lb-btn-wide { border-radius: 999px; padding: 0 12px; font-size: 12.5px; width: auto; }
.lb-zoom { color: #fff; font-size: 12.5px; min-width: 46px; text-align: center; font-variant-numeric: tabular-nums; }
.lb-tip {
  position: absolute; bottom: 14px; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,.42); font-size: 11.5px; pointer-events: none;
}
.lb-close, .lb-nav {
  position: absolute; border: 1px solid rgba(255,255,255,.22); cursor: pointer;
  background: rgba(255,255,255,.1); color: #fff; font-family: inherit; transition: .18s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.5); }
.lb-close { top: 18px; right: 22px; width: 40px; height: 40px; border-radius: 50%; font-size: 17px; }
.lb-nav {
  top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%;
  font-size: 30px; line-height: 1; padding-bottom: 4px;
}
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
body.lb-open { overflow: hidden; }

@media (max-width: 640px) {
  .lightbox { padding: 56px 12px; }
  .lb-figure img { max-width: calc(100vw - 24px); max-height: calc(100vh - 205px); }
  .lb-tip { font-size: 10.5px; }
  .lb-nav { width: 42px; height: 42px; font-size: 24px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .shot-thumb { width: 118px; height: 67px; }
}
