/* 独立样式文件：自定义壁纸管理 + 平台公告 + markdown 正文。
   单独成文件，避免改动 app.css（背景规则的 bug 高发区）。 */

/* ---- 自定义壁纸网格 ---- */
.wp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.wp-item {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel-2);
  display: flex;
  flex-direction: column;
}
.wp-item > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  border-bottom: 1px solid var(--line-soft);
}
.wp-meta { padding: 9px 11px 11px; }

/* ---- 平台公告条目 ---- */
.ann-item {
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold-deep, #a8894f);
  border-radius: 8px;
  padding: 13px 15px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, .02);
}
.ann-item:last-child { margin-bottom: 0; }
[data-theme="light"] .ann-item { background: rgba(255, 255, 255, .55); }

/* ---- markdown 正文（公告 + 发布预览）---- */
.md-body { font-size: 12.5px; line-height: 1.85; color: var(--text-2); word-break: break-word; }
.md-body > :first-child { margin-top: 8px; }
.md-body > :last-child { margin-bottom: 2px; }
.md-body h1, .md-body h2, .md-body h3,
.md-body h4, .md-body h5, .md-body h6 {
  color: var(--gold-bright);
  font-weight: 700;
  line-height: 1.4;
  margin: 12px 0 6px;
}
[data-theme="light"] .md-body h1, [data-theme="light"] .md-body h2,
[data-theme="light"] .md-body h3, [data-theme="light"] .md-body h4,
[data-theme="light"] .md-body h5, [data-theme="light"] .md-body h6 { color: var(--gold-hex-dark3,#6b5220); }
.md-body h1 { font-size: 18px; }
.md-body h2 { font-size: 16px; }
.md-body h3 { font-size: 14.5px; }
.md-body h4, .md-body h5, .md-body h6 { font-size: 13px; }
.md-body p { margin: 6px 0; }
.md-body ul, .md-body ol { margin: 6px 0; padding-left: 22px; }
.md-body ul { list-style: disc; }
.md-body ol { list-style: decimal; }
.md-body li { margin: 3px 0; }
.md-body strong { color: var(--text); font-weight: 700; }
[data-theme="light"] .md-body strong { color: #241d0f; }
.md-body em { font-style: italic; }
.md-body a { color: var(--gold-bright); text-decoration: underline; }
[data-theme="light"] .md-body a { color: var(--gold-hex-dark3,#8a6a22); }
.md-body code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: .92em;
  background: rgba(211, 188, 142, .14);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 1px 5px;
}
.md-body pre {
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 10px 12px;
  overflow: auto;
  margin: 8px 0;
}
.md-body pre code { background: none; border: 0; padding: 0; }
.md-body blockquote {
  border-left: 3px solid var(--gold-deep, #a8894f);
  padding: 2px 0 2px 12px;
  margin: 8px 0;
  color: var(--muted);
}
.md-body hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }

@media (max-width: 768px) {
  .wp-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
}

/* ---- 壁纸分类：上传表单三列 + 分组标题 ---- */
.wp-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.wp-cat-group { margin-bottom: 18px; }
.wp-cat-group:last-child { margin-bottom: 0; }
.wp-cat-title {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}
.wp-cat-name {
  font-size: 13px; font-weight: 700; color: var(--gold-bright);
}
[data-theme="light"] .wp-cat-name { color: var(--gold-hex-dark3,#6b5220); }
.wp-cat-count {
  font-size: 11px; color: var(--muted);
  background: rgba(211, 188, 142, .12); border-radius: 10px;
  padding: 1px 8px;
}
@media (max-width: 768px) {
  .wp-form-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ================= 背景图画廊（分类大块 → 挑壁纸）================= */
.bg-gallery-panel .panel-body { padding: 16px; }

/* 当前背景快捷条 */
.bg-current {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding: 10px 12px; margin-bottom: 16px;
  border: 1px solid var(--line-soft); border-radius: 10px;
  background: rgba(211, 188, 142, .06);
}
.bg-current-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bg-current-thumb {
  width: 72px; height: 44px; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--line); flex-shrink: 0; display: block;
}
.bg-current-none {
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--muted); background: rgba(0,0,0,.15);
}
.bg-current-meta { min-width: 0; }
.bg-current-label { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.bg-current-name {
  font-size: 13px; color: var(--gold-bright); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px;
}
[data-theme="light"] .bg-current-name { color: var(--gold-hex-dark3,#6b5220); }
.bg-current-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* 一级：分类大块卡片 */
.bg-cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px;
}
.bg-cat-card {
  display: block; width: 100%; padding: 0; cursor: pointer; text-align: left;
  border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden;
  background: var(--panel-2); color: var(--text);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.bg-cat-card:hover {
  transform: translateY(-3px); border-color: var(--gold-deep, #a8894f);
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}
.bg-cat-cover { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; }
.bg-cat-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s ease;
}
.bg-cat-card:hover .bg-cat-cover img { transform: scale(1.06); }
.bg-cat-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 55%); pointer-events: none;
}
.bg-cat-label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px;
}
.bg-cat-name { font-size: 14px; font-weight: 700; color: var(--text); }
.bg-cat-count {
  font-size: 11px; color: var(--gold-bright);
  background: rgba(211, 188, 142, .14); border-radius: 10px; padding: 2px 9px; white-space: nowrap;
}
[data-theme="light"] .bg-cat-count { color: var(--gold-hex-dark3,#6b5220); }

/* 二级：分类内壁纸缩略图网格 */
.bg-wall-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.bg-wall-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
}
.bg-wall-card {
  display: block; width: 100%; padding: 0; cursor: pointer; text-align: left;
  border: 2px solid transparent; border-radius: 10px; overflow: hidden;
  background: var(--panel-2); color: var(--text);
  transition: transform .15s ease, border-color .15s ease;
}
.bg-wall-card:hover { transform: translateY(-2px); border-color: rgba(var(--gold-rgb,211,188,142),.5); }
.bg-wall-card.selected { border-color: var(--gold-bright, #d3bc8e); box-shadow: 0 0 0 2px rgba(var(--gold-rgb,211,188,142),.25); }
.bg-wall-thumb { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; }
.bg-wall-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bg-wall-check {
  position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold-bright, #d3bc8e); color: var(--gold-on,#1a1408); font-size: 13px; font-weight: 800;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.bg-wall-card.selected .bg-wall-check { display: flex; }
.bg-wall-tone {
  position: absolute; top: 6px; right: 6px; font-size: 10px; line-height: 1;
  padding: 3px 6px; border-radius: 6px; color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.bg-wall-tone.light { background: rgba(180, 140, 60, .9); }
.bg-wall-tone.dark { background: rgba(30, 40, 70, .9); }
.bg-wall-name {
  font-size: 12px; padding: 8px 10px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

@media (max-width: 768px) {
  .bg-cat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .bg-wall-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
  .bg-current-name { max-width: 160px; }
  .bg-current { padding: 8px; }
}

/* ================= 帖子视频（腾讯 CDN 直连播放）================= */
.tag-video {
  color: #7fd3ff; border: 1px solid rgba(90, 190, 255, .45);
  background: rgba(60, 150, 220, .14); border-radius: 20px;
  padding: 0 8px; font-size: 11px; line-height: 18px; white-space: nowrap;
}
[data-theme="light"] .tag-video { color: #1f6fa8; border-color: rgba(31, 111, 168, .35); background: rgba(31, 111, 168, .1); }

.q-video { margin-top: 12px; max-width: 520px; }
.q-video-cover {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 10px; border: 1px solid var(--line-soft); cursor: pointer;
  background: #0b0f16 center/cover no-repeat;
}
.q-video-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.q-video-blank {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: rgba(255,255,255,.7);
  background: radial-gradient(circle at 50% 40%, rgba(90,150,220,.28), rgba(10,14,22,.95));
}
.q-video-tag {
  position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 8px;
  font-size: 11px; color: #fff; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px);
}
.q-video-dur {
  position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 6px;
  font-size: 11px; color: #fff; background: rgba(0, 0, 0, .6); font-variant-numeric: tabular-nums;
}
.q-video-mask {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .18); transition: background .18s ease;
}
.q-video-cover:hover .q-video-mask { background: rgba(0, 0, 0, .32); }
.q-video-play {
  width: 56px; height: 56px; border-radius: 50%; padding-left: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--gold-on,#1a1408); background: rgba(var(--gold-chip-rgb,235,214,170), .95);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transition: transform .16s ease;
}
.q-video-cover:hover .q-video-play { transform: scale(1.08); }
.q-video-cover.q-video-loading .q-video-play { font-size: 0; }
.q-video-cover.q-video-loading .q-video-play::after {
  content: ''; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(var(--gold-on-rgb,26,20,8), .25); border-top-color: var(--gold-on,#1a1408);
  animation: qvspin .7s linear infinite;
}
@keyframes qvspin { to { transform: rotate(360deg); } }
.q-video-hint { font-size: 11px; color: var(--muted); margin-top: 6px; }
.q-video-el {
  width: 100%; display: block; border-radius: 10px; background: #000;
  border: 1px solid var(--line-soft); max-height: 60vh;
}
.q-video-note {
  margin-top: 12px; padding: 8px 12px; border-radius: 8px; font-size: 12px;
  color: var(--text); background: rgba(60, 150, 220, .1);
  border: 1px solid rgba(90, 190, 255, .28);
}
[data-theme="light"] .q-video-note { color: #1f4e6e; background: rgba(31, 111, 168, .08); }
.mflag-video, .mflag-video span { color: #7fd3ff; }
[data-theme="light"] .mflag-video, [data-theme="light"] .mflag-video span { color: #1f6fa8; }
@media (max-width: 768px) {
  .q-video { max-width: 100%; }
  .q-video-play { width: 48px; height: 48px; font-size: 19px; }
}
.q-video-fallback {
  padding: 14px 16px; border-radius: 10px; font-size: 12px;
  border: 1px dashed var(--line); background: rgba(0, 0, 0, .18);
  color: var(--muted); display: flex; flex-direction: column; gap: 8px;
}
.q-video-fallback a { color: var(--info); font-weight: 600; text-decoration: none; }
[data-theme="light"] .q-video-fallback { background: rgba(0, 0, 0, .04); }

/* ================= 手机端：底部悬浮处置条 + 勾选式「更多」弹窗 =================
   悬浮条常驻屏幕底部，通过 / 屏蔽 一键提交；「更多」弹窗勾选后统一提交。
   放在 extra.css（app.css 之后加载），避免改动背景规则高发区。
   注意：手机端全局禁用了 backdrop-filter（历史修复导航虚化），此处不用它。 */

/* --- 悬浮条（只有手机端 HTML 会渲染 .m-dock，故全局定义，resize 也不塌） --- */
.m-dock {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 45; display: flex; gap: 8px; padding: 8px;
  background: rgba(20, 24, 34, .94);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .05) inset;
}
[data-theme="light"] .m-dock {
  background: rgba(252, 250, 244, .96);
  box-shadow: 0 10px 30px rgba(60, 50, 30, .18);
}
.m-quick {
  flex: 1 1 0; min-width: 0; height: 46px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; font-family: var(--font); font-size: 14.5px; font-weight: 700;
  color: #fff; cursor: pointer; letter-spacing: .5px;
  -webkit-tap-highlight-color: transparent; user-select: none;
  transition: transform .12s var(--ease), filter .12s;
}
.m-quick .qico { font-size: 16px; line-height: 1; }
.m-quick:active { transform: scale(.95); filter: brightness(1.1); }
.m-quick-ok {
  background: linear-gradient(150deg, #4f9e6f, #2f7d4f); border-color: #6fc793;
  box-shadow: 0 4px 14px rgba(47, 125, 79, .35); color: #eafff2;
}
.m-quick-warn {
  background: linear-gradient(150deg, var(--gold-btn1,#c99b3f), var(--gold-btn2,#a8781e)); border-color: var(--gold-btn3,#e3bb6a);
  box-shadow: 0 4px 14px rgba(168, 120, 30, .32); color: #fff6e2;
}
.m-quick-more {
  flex: 0 0 auto; padding: 0 15px;
  background: var(--panel-2); border-color: var(--line); color: var(--text);
  box-shadow: none;
}
[data-theme="light"] .m-quick-more { color: var(--text-2); }

/* 审核页给悬浮条留出空间，避免遮住卡片底部（覆盖 app.css 的 20px） */
@media (max-width: 768px) {
  .view:has(.m-audit) { padding-bottom: 96px !important; }
}

/* toast 抬到悬浮条上方：审核页 dock 常驻屏幕底部（bottom 12px + 高约 62px），
   toast 若仍从 bottom 14px 弹出会正好压在悬浮条上。仅在有 dock 的审核页生效。 */
body:has(.m-dock) .toast-wrap { bottom: calc(88px + env(safe-area-inset-bottom)); }

/* --- 「更多」勾选弹窗 --- */
.mcheck-group { margin-bottom: 14px; }
.mcheck-gt {
  font-size: 11.5px; color: var(--muted); letter-spacing: .5px;
  margin: 0 0 8px; font-weight: 600;
}
.mcheck-item {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line-soft);
  background: var(--panel-2); color: var(--text); margin-bottom: 7px; cursor: pointer;
  font-family: var(--font); -webkit-tap-highlight-color: transparent;
  transition: border-color .12s, background .12s;
}
.mcheck-item:last-child { margin-bottom: 0; }
.mcheck-box {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 6px;
  border: 2px solid var(--line); display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: transparent;
  transition: background .12s, border-color .12s, color .12s;
}
.mcheck-item.on { border-color: var(--gold); background: var(--gold-glow); }
.mcheck-item.on .mcheck-box { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--gold-on,#1a1408); }
.mcheck-item.danger.on { border-color: var(--danger); background: rgba(255, 107, 107, .12); }
.mcheck-item.danger.on .mcheck-box { background: var(--danger); border-color: var(--danger); color: #fff; }
.mcheck-main { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.mcheck-main small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.mcheck-item.danger:not(.on) .mcheck-main { color: var(--danger); }

.mcheck-sub { display: none; margin: 2px 0 10px 31px; }
.mcheck-sub.show { display: block; animation: mcheckIn .16s ease both; }
@keyframes mcheckIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.mcheck-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 4px; }
.mcheck-chip {
  font-size: 12.5px; padding: 7px 13px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text-2); font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
}
.mcheck-chip.on { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--gold-on,#1a1408); font-weight: 700; }

.mcheck-summary {
  font-size: 12.5px; color: var(--text-2); background: var(--panel-2);
  border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; margin-top: 4px;
  min-height: 18px; line-height: 1.5;
}
.mcheck-summary b { color: var(--gold-bright); font-weight: 700; }
.mcheck-summary .dg { color: var(--danger); font-weight: 700; }

.mcheck-transfer {
  width: 100%; min-height: 42px; margin-top: 10px; border-radius: 10px;
  border: 1px dashed var(--line); background: transparent; color: var(--info);
  font-size: 12.5px; font-family: var(--font); -webkit-tap-highlight-color: transparent;
}
.mcheck-transfer:active { background: rgba(127, 200, 248, .12); }

/* 提交按钮含不可逆处置时，红底醒目（覆盖 app.css 的描边式 .btn-danger） */
.msheet-btn.btn-danger {
  background: linear-gradient(150deg, #c75b5b, #a83a3a);
  border-color: #e08a8a; color: #ffeded; font-weight: 700;
}

/* ---- 修复悬浮定位根因 ----
   .view-enter 的 viewIn 动画用了 both，动画结束后会把 .view 的 transform 残留成
   identity matrix(1,0,0,1,0,0)。任何非 none 的 transform 都会给 .view 创建包含块，
   使内部 position:fixed 的手机悬浮条 / 桌面 FAB 相对 .view 定位、随内容一起滚动
   （长帖子滚动几百 px 时悬浮条会滚走）。改为 backwards：动画结束后 transform 恢复
   none，fixed 重新相对视口。视觉无变化（to 帧本就是 opacity:1 / transform:none）。 */
.view-enter { animation-fill-mode: backwards; }

/* ===== 快速评论 / 私信（PC 审核卡片下方） ===== */
.q-quick {
  margin-top: 14px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255, 255, 255, .025);
}
[data-theme="light"] .q-quick { background: rgba(0, 0, 0, .02); }
.q-quick-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px; font-weight: 600; color: var(--gold-bright); margin-bottom: 10px;
}
.q-quick-head .kbd { font-size: 10px; padding: 1px 5px; }
.q-quick-row {
  display: grid; grid-template-columns: 92px minmax(0, 1fr);
  gap: 6px 10px; align-items: center; margin-bottom: 10px;
}
.q-quick-row:last-child { margin-bottom: 0; }
.q-quick-label { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.q-quick-row > .input { width: 100%; min-width: 0; }
.q-quick-presets {
  grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.q-quick-chip {
  font-size: 11px; line-height: 1.6; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--text-2);
  cursor: pointer; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.q-quick-chip:hover { border-color: var(--gold); color: var(--gold-bright); }
.q-quick-nopreset { font-size: 11px; color: var(--muted); }
.q-quick-warn { grid-column: 2; font-size: 11px; color: #e08a8a; }
.q-quick-warn.hidden { display: none; }
.input.q-quick-blocked { opacity: .5; cursor: not-allowed; }

/* ===== 手机端「更多」里禁言自定义时长 ===== */
.mcheck-custom { display: none; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.mcheck-custom.show { display: flex; }
.mcheck-custom .input { width: 90px; flex: 0 0 90px; }
.mcheck-custom .select { width: 100px; flex: 0 0 100px; }
.mcheck-custom-pv { font-size: 11px; color: var(--muted); }

/* ===== 移动帖子面板（低频功能） ===== */
.move-panel { padding: 2px 0; }
.move-tip {
  font-size: 12px; line-height: 1.7; color: var(--muted);
  padding: 8px 12px; margin-bottom: 10px; border-radius: 8px;
  background: rgba(211, 188, 142, .08); border: 1px solid var(--line);
}
.move-ch-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px; max-height: 46vh; overflow-y: auto; padding: 2px;
}
.move-ch {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  color: var(--text); transition: .16s; min-width: 0;
}
.move-ch:hover:not(:disabled) { border-color: var(--gold); background: rgba(var(--gold-rgb,211,188,142),.12); transform: translateY(-1px); }
.move-ch:disabled { opacity: .6; cursor: default; }
.move-ch.cur { border-color: var(--gold); background: rgba(var(--gold-rgb,211,188,142),.16); }
.move-ch.restrict .move-ch-name { color: var(--warn); }
.move-ch-name {
  font-size: 13px; font-weight: 600; color: var(--gold-bright);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.move-ch-tag { font-size: 10.5px; color: var(--muted); }
.move-updated { margin-top: 8px; text-align: right; }
[data-theme="light"] .move-ch { background: rgba(255,255,255,.7); }
[data-theme="light"] .move-ch:hover:not(:disabled) { background: rgba(var(--gold-rgb-dark,154,130,82),.12); }
[data-theme="light"] .move-ch.cur { background: rgba(var(--gold-rgb-dark,154,130,82),.16); }
[data-theme="light"] .move-ch-name { color: var(--gold-bright); }

/* ===== 评论列表「管理删除」按钮 ===== */
.cmt-del {
  margin-left: auto; font-size: 11px; line-height: 1.6; padding: 1px 8px;
  border-radius: 999px; border: 1px solid rgba(199,78,78,.45);
  background: transparent; color: var(--danger); cursor: pointer; white-space: nowrap;
}
.cmt-del:hover:not(:disabled) { background: rgba(199,78,78,.14); border-color: var(--danger); }
.cmt-del:disabled { opacity: .5; cursor: default; }
[data-theme="light"] .cmt-del { color: #b0483f; border-color: rgba(176,72,63,.45); }

/* ===== 通知中心（右上角铃铛） ===== */
.notice-wrap { position: relative; }
.notice-btn { position: relative; font-size: 15px; }
.notice-btn.has-unread { color: var(--gold-bright); }
.notice-dot {
  position: absolute; top: -4px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--danger); color: #fff; font-size: 10px; font-style: normal;
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(199,78,78,.5); line-height: 1;
}
.notice-panel {
  /* 低于 modal-mask(60)/msheet(90)/toast(80)，避免遮住弹窗按钮或被误判为面板外点击 */
  position: absolute; top: 42px; right: 0; width: 360px; max-width: 88vw; z-index: 55;
  background: linear-gradient(150deg, rgba(43,48,66,.99), rgba(28,32,44,.99));
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.55);
  overflow: hidden; animation: noticeIn .2s var(--ease) both;
}
@keyframes noticeIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.notice-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--line-soft);
  font-size: 13px; color: var(--gold-bright); font-weight: 600; letter-spacing: .5px;
}
.notice-list { max-height: 420px; overflow: auto; padding: 8px; }
.notice-empty { padding: 36px 12px; text-align: center; color: var(--muted); font-size: 12px; }
.notice-card {
  display: flex; gap: 10px; padding: 11px 10px; border-radius: 9px; margin-bottom: 6px;
  background: rgba(255,255,255,.035); border: 1px solid var(--line-soft); cursor: pointer; transition: .15s;
}
.notice-card:hover { background: rgba(var(--gold-rgb,211,188,142),.08); border-color: rgba(var(--gold-rgb,211,188,142),.3); }
.notice-card.read { opacity: .62; }
.notice-card.warn { border-left: 3px solid var(--warn); }
.notice-card-ic {
  width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: rgba(127,200,248,.14); color: var(--info); font-size: 14px;
}
.notice-card.warn .notice-card-ic { background: rgba(255,190,92,.16); color: var(--warn); }
.notice-card-body { flex: 1; min-width: 0; }
.notice-card-title { font-size: 12.5px; color: var(--text); font-weight: 600; line-height: 1.5; }
.notice-card-desc { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.55; }
.notice-card-foot { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.notice-time { font-size: 10px; color: var(--muted); margin-right: auto; }
.notice-action {
  font-size: 11px; padding: 3px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text-2); transition: .15s;
}
.notice-action:hover { border-color: var(--gold); color: var(--gold-bright); }
.notice-action.gold { border-color: rgba(var(--gold-rgb,211,188,142),.5); color: var(--gold-bright); background: rgba(var(--gold-rgb,211,188,142),.12); }
.notice-action.gold:hover { background: rgba(var(--gold-rgb,211,188,142),.22); }
[data-theme="light"] .notice-panel { background: linear-gradient(150deg, var(--panel-white,#fffdf7), var(--panel-beige,#f4f0e6)); }
[data-theme="light"] .notice-card { background: rgba(255,255,255,.85); }

/* ===== 管理设置 · 敏感词 ===== */
.word-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.word-item {
  display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 9px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); position: relative;
}
.word-item.off { opacity: .55; }
.word-text { font-size: 14px; font-weight: 600; color: var(--gold-bright); word-break: break-all; }
.word-meta { font-size: 10.5px; color: var(--muted); }
.word-ops { display: flex; gap: 6px; margin-top: 2px; }
.word-ops .btn { flex: 1; }
.hit-summary {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 11px; cursor: pointer;
  background: linear-gradient(120deg, rgba(255,190,92,.10), rgba(255,190,92,.03));
  border: 1px solid rgba(255,190,92,.3); transition: .16s;
}
.hit-summary:hover { border-color: var(--warn); background: rgba(255,190,92,.16); transform: translateY(-1px); }
.hit-summary-ico { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255,190,92,.16); color: var(--warn); font-size: 22px; }
.hit-summary-main { flex: 1; }
.hit-summary-title { font-size: 15px; color: var(--text); font-weight: 600; }
.hit-summary-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.hit-summary-arrow { font-size: 20px; color: var(--warn); }
[data-theme="light"] .hit-summary { background: rgba(168,111,30,.08); }

/* 命中二级面板 */
.hit-panel { max-height: 62vh; overflow: auto; }
.hit-tip { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.hit-tip b { color: var(--warn); }
.hit-list { border: 1px solid var(--line-soft); border-radius: 9px; overflow: hidden; }
.hit-row {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; cursor: pointer;
  border-bottom: 1px solid var(--line-soft); transition: .14s;
}
.hit-row:last-child { border-bottom: none; }
.hit-row:hover { background: rgba(var(--gold-rgb,211,188,142),.06); }
.hit-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hit-row-title { font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hit-row-meta { font-size: 10.5px; color: var(--muted); line-height: 1.5; }
.hit-action-row, .hit-batch-row, .hit-dispose-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 2px; border-bottom: 1px solid var(--line-soft);
}
.hit-radio { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); cursor: pointer; }
.hit-batch-row .btn, .hit-dispose-row .btn { flex: none; }

/* ================= 用户权重：审核前建议卡 / 徽章 / 详情 ================= */
.wa-chip {
  display: inline-flex; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; cursor: pointer; letter-spacing: .3px;
  border: 1px solid var(--line); transition: .15s;
}
.wa-chip:hover { transform: translateY(-1px); filter: brightness(1.15); }
.wa-card {
  margin: 0 0 12px; padding: 12px 13px; border-radius: 11px; cursor: pointer;
  background: linear-gradient(125deg, rgba(var(--gold-rgb,211,188,142),.10), rgba(var(--gold-rgb,211,188,142),.02));
  border: 1px solid rgba(var(--gold-rgb,211,188,142),.28); transition: .15s;
}
.wa-card:hover { border-color: var(--gold); background: rgba(var(--gold-rgb,211,188,142),.14); }
.wa-head { display: flex; align-items: center; gap: 12px; }
.wa-ring {
  width: 52px; height: 52px; flex: none; border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--wa) * 1%), rgba(255,255,255,.08) 0);
  display: grid; place-items: center; position: relative; box-shadow: 0 0 16px rgba(var(--gold-rgb,211,188,142),.3);
}
.wa-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--panel, #1c202c); }
.wa-ring > span { position: relative; font-family: var(--font-title); font-size: 17px; font-weight: 700; color: var(--gold-bright); line-height: 1; }
.wa-ring > span i { font-size: 10px; font-style: normal; opacity: .7; }
.wa-head-main { min-width: 0; flex: 1; }
.wa-title { font-size: 13px; color: var(--text); font-weight: 700; }
.wa-level {
  display: inline-block; margin-left: 6px; font-size: 10px; padding: 1px 7px; border-radius: 999px;
  background: rgba(var(--gold-rgb,211,188,142),.2); color: var(--gold-bright);
}
.wa-sub { font-size: 10.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.wa-advice {
  display: flex; gap: 8px; margin-top: 10px; padding: 9px 10px; border-radius: 8px;
  background: rgba(127,200,248,.07); border-left: 3px solid var(--info);
  font-size: 11.5px; color: var(--text-2); line-height: 1.6;
}
.wa-advice-ico { color: var(--info); flex: none; }
.wa-advice b { color: var(--gold-bright); }
.wa-disc { font-size: 10px; color: var(--muted); margin-top: 8px; line-height: 1.5; opacity: .85; }
/* 分级配色 */
.wa-a .wa-ring { --ring: #7fd8a0; background: conic-gradient(#7fd8a0 calc(var(--wa, 100) * 1%), rgba(255,255,255,.08) 0); }
.wa-b .wa-ring { background: conic-gradient(var(--gold) calc(var(--wa, 85) * 1%), rgba(255,255,255,.08) 0); }
.wa-c .wa-level { background: rgba(255,190,92,.2); color: var(--warn); }
.wa-d .wa-level, .wa-e .wa-level { background: rgba(255,107,107,.2); color: var(--danger); }
.wa-d, .wa-e { border-color: rgba(255,107,107,.3); }
.wa-d .wa-ring { background: conic-gradient(#ffbe5c calc(var(--wa, 40) * 1%), rgba(255,255,255,.08) 0); }
.wa-e .wa-ring { background: conic-gradient(var(--danger) calc(var(--wa, 20) * 1%), rgba(255,255,255,.08) 0); }
.wa-chip.wa-a { color: #5fc98a; border-color: rgba(95,201,138,.4); }
.wa-chip.wa-b { color: var(--gold-bright); }
.wa-chip.wa-c { color: var(--warn); border-color: rgba(255,190,92,.4); }
.wa-chip.wa-d, .wa-chip.wa-e { color: var(--danger); border-color: rgba(255,107,107,.45); }
[data-theme="light"] .wa-ring::before { background: var(--panel-white,#fffdf7); }
[data-theme="light"] .wa-card { background: rgba(var(--gold-rgb,211,188,142),.12); }

/* 权重详情弹窗 */
.wd-top { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.wd-score {
  width: 84px; height: 84px; flex: none; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle, rgba(var(--gold-rgb,211,188,142),.2), transparent 70%); border: 2px solid var(--gold); position: relative;
}
.wd-score > span { font-family: var(--font-title); font-size: 30px; font-weight: 700; color: var(--gold-bright); line-height: 1; }
.wd-score > i { font-size: 13px; color: var(--gold-bright); font-style: normal; }
.wd-score > em { display: block; font-size: 11px; color: var(--muted); font-style: normal; margin-top: 2px; }
.wd-score.good { border-color: #7fd8a0; } .wd-score.bad { border-color: var(--danger); }
.wd-name { font-size: 15px; font-weight: 700; color: var(--text); }
.wd-facts, .wd-ai { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.wd-ai { color: var(--info); }
.wd-advice {
  display: flex; gap: 9px; padding: 11px 12px; border-radius: 9px; margin-bottom: 14px;
  background: rgba(127,200,248,.08); border-left: 3px solid var(--info); font-size: 12px; color: var(--text-2); line-height: 1.6;
}
.wd-advice > span { color: var(--info); flex: none; }
.wd-advice b { color: var(--gold-bright); }
.wd-section-title { font-size: 11.5px; color: var(--gold-bright); font-weight: 600; margin: 14px 0 8px; letter-spacing: .5px; }
.wd-bars { display: flex; flex-direction: column; gap: 6px; }
.wb-row { display: flex; align-items: center; gap: 9px; font-size: 11px; }
.wb-label { width: 132px; flex: none; color: var(--text-2); }
.wb-track { flex: 1; height: 7px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.wb-track > i { display: block; height: 100%; border-radius: 99px; background: var(--gold); }
.wb-track > i.wb-r { background: linear-gradient(90deg, #ffbe5c, var(--danger)); }
.wb-track > i.wb-g { background: linear-gradient(90deg, #7fd8a0, var(--gold)); }
.wb-row > b { width: 30px; text-align: right; color: var(--text); font-weight: 600; }
.wd-parts { font-size: 10.5px; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.wd-disc { font-size: 10.5px; color: var(--muted); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); line-height: 1.6; opacity: .9; }

/* 用户详情页：权重列 + 建议卡 */
.au-wbadge { display: inline-flex; align-items: center; font-family: var(--font-title); font-size: 15px; font-weight: 700; padding: 3px 9px; border-radius: 8px; border: 1px solid var(--line); color: var(--gold-bright); }
.au-wbadge i { font-size: 10px; font-style: normal; opacity: .7; }
.au-wbadge.wa-a { color: #5fc98a; border-color: rgba(95,201,138,.4); }
.au-wbadge.wa-c { color: var(--warn); border-color: rgba(255,190,92,.4); }
.au-wbadge.wa-d, .au-wbadge.wa-e { color: var(--danger); border-color: rgba(255,107,107,.45); }
/* 作者页直接处置工具栏 */
.au-direct-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; padding: 10px 12px; border-radius: 9px;
  background: rgba(255,107,107,.05); border: 1px solid rgba(255,107,107,.18); }
.au-da-label { font-size: 11.5px; font-weight: 700; color: var(--danger); letter-spacing: 1px; margin-right: 2px; }
.au-direct-actions .btn { font-size: 12px; }
#au-mute-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#au-mute-grid .btn { padding: 10px; }
.au-weight-card {
  display: flex; gap: 16px; align-items: center; margin-bottom: 14px; padding: 14px; border-radius: 10px;
  background: linear-gradient(125deg, rgba(var(--gold-rgb,211,188,142),.10), rgba(var(--gold-rgb,211,188,142),.02)); border: 1px solid rgba(var(--gold-rgb,211,188,142),.28);
}
.au-weight-score { width: 68px; height: 68px; flex: none; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 2px solid var(--gold); }
.au-weight-score > span { font-family: var(--font-title); font-size: 24px; font-weight: 700; color: var(--gold-bright); line-height: 1; }
.au-weight-score > i { font-size: 11px; font-style: normal; color: var(--gold-bright); }
.au-weight-score > em { display: block; font-size: 10px; color: var(--muted); font-style: normal; }
.au-weight-card.wa-e .au-weight-score, .au-weight-card.wa-d .au-weight-score { border-color: var(--danger); }
.au-weight-body { min-width: 0; flex: 1; }
.au-weight-title { font-size: 13px; font-weight: 700; color: var(--text); }
.au-weight-facts { font-size: 10.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.au-weight-advice { font-size: 11.5px; color: var(--text-2); margin-top: 7px; line-height: 1.6; }
.au-weight-disc { font-size: 10px; color: var(--muted); margin-top: 6px; opacity: .85; }

/* 手机端权重提示条 */
.mflag-weight { border-left: 3px solid var(--info); }
.mflag-weight.wa-d, .mflag-weight.wa-e { border-left-color: var(--danger); }
.mflag-weight b { color: var(--gold-bright); }

/* ================= PC 快速评论 / 私信：卡片式美化 ================= */
.qi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.qi-card {
  padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); transition: .18s;
}
.qi-comment { border-top: 2px solid var(--info); }
.qi-dm { border-top: 2px solid var(--gold); }
.qi-card:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb,211,188,142),.1); }
.qi-card.qi-disabled { opacity: .5; filter: grayscale(.5); }
.qi-card-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.qi-ico {
  width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; font-size: 15px;
}
.qi-ico-c { background: rgba(127,200,248,.14); }
.qi-ico-d { background: rgba(var(--gold-rgb,211,188,142),.16); }
.qi-card-titles { flex: 1; min-width: 0; }
.qi-name { font-size: 12.5px; font-weight: 700; color: var(--text); }
.qi-desc { font-size: 10px; color: var(--muted); margin-top: 1px; }
.qi-count { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.qi-input-wrap { position: relative; }
.qi-input {
  width: 100%; padding: 8px 10px; border-radius: 8px; font-size: 12px; color: var(--text);
  background: rgba(0,0,0,.16); border: 1px solid var(--line-soft); outline: none; transition: .15s; resize: none;
}
.qi-input::placeholder { color: var(--muted); }
.qi-input:focus { border-color: var(--gold); background: rgba(0,0,0,.24); }
.qi-input:disabled { cursor: not-allowed; }
[data-theme="light"] .qi-input { background: rgba(255,255,255,.7); }
.qi-presets { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.qi-presets-label { font-size: 10px; color: var(--muted); margin-right: 2px; }
.qi-card .q-quick-chip {
  font-size: 10px; padding: 3px 9px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-soft); background: rgba(255,255,255,.04); color: var(--text-2); transition: .14s;
}
.qi-comment .q-quick-chip:hover { border-color: var(--info); color: var(--info); background: rgba(127,200,248,.1); }
.qi-dm .q-quick-chip:hover { border-color: var(--gold); color: var(--gold-bright); background: rgba(var(--gold-rgb,211,188,142),.1); }
.qi-card .q-quick-nopreset { font-size: 10px; color: var(--muted); }
.qi-warn { font-size: 10.5px; color: #e08a8a; margin-top: 7px; }
.qi-warn.hidden { display: none; }
@media (max-width: 720px) { .qi-grid { grid-template-columns: 1fr; } }

/* 登录页派蒙徽记柔光 */
.login-crest { position: relative; }
.login-crest::after {
  content: ''; position: absolute; inset: -10px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--gold-rgb,211,188,142),.22), transparent 70%); z-index: -1; pointer-events: none;
}

/* ================= 强制 Token 授权弹窗（token-auth.js） ================= */
.ta-mask {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow: auto;
  background: rgba(6, 8, 14, .82); backdrop-filter: blur(8px);
}
.ta-box {
  width: 660px; max-width: 100%; background: var(--panel-solid); border: 1px solid var(--line);
  border-radius: 14px; padding: 26px 28px 20px; box-shadow: 0 24px 80px rgba(0,0,0,.55);
  animation: taIn .25s var(--ease);
}
@keyframes taIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.ta-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.ta-mark {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; color: var(--gold-bright);
  background: linear-gradient(150deg, rgba(var(--gold-rgb,211,188,142),.2), rgba(var(--gold-rgb-deep,168,137,79),.08));
  border: 1px solid var(--line);
}
.ta-head h3 { margin: 0 0 6px; font-family: var(--font-title); font-size: 19px; letter-spacing: 1px; color: var(--gold-bright); font-weight: 600; }
.ta-head p { margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.ta-warn {
  border: 1px solid rgba(255,107,107,.45); background: rgba(255,107,107,.08);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 18px;
  color: var(--danger); font-size: 12.5px; line-height: 1.7;
}
.ta-warn-t { font-weight: 700; margin-bottom: 2px; letter-spacing: .5px; }
.ta-warn strong { color: #ff8f8f; }
.ta-declaration {
  border: 1px solid var(--line); background: rgba(140,140,140,.06);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 18px;
  color: var(--text-2); font-size: 12px; line-height: 1.9; white-space: pre-line;
  max-height: 150px; overflow-y: auto;
}
[data-theme="light"] .ta-declaration { background: rgba(120,100,60,.05); border-color: rgba(120,100,60,.28); color: #6b5a35; }
.ta-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.ta-tab {
  appearance: none; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: 9px 18px 11px; font-size: 13.5px; font-family: var(--font); letter-spacing: .5px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .18s;
}
.ta-tab:hover { color: var(--text); }
.ta-tab.on { color: var(--gold-bright); border-bottom-color: var(--gold); font-weight: 600; }
.ta-rec {
  display: inline-block; margin-left: 7px; padding: 1px 6px; border-radius: 999px;
  font-size: 10px; font-weight: 600; letter-spacing: 0; vertical-align: 1px;
  color: var(--gold-bright); background: rgba(var(--gold-rgb,211,188,142),.18);
}
.ta-rec-note {
  font-size: 12.5px; line-height: 1.6; color: var(--gold-bright);
  background: rgba(var(--gold-rgb,211,188,142),.1); border: 1px solid rgba(var(--gold-rgb,211,188,142),.28);
  border-radius: 8px; padding: 9px 12px; margin-bottom: 12px;
}
.ta-rec-note b { font-weight: 600; }
.ta-go { display: block; width: 100%; padding: 12px; font-size: 15px; font-weight: 600; margin-top: 2px; }
.ta-pane { display: none; }
.ta-pane.on { display: block; }
.ta-desc { font-size: 13px; color: var(--text-2); line-height: 1.7; margin: 0 0 14px; }
.ta-desc b, .ta-inline { color: var(--gold-bright); }
.ta-inline { font-weight: 600; }
.ta-hint { font-size: 11.5px; color: var(--muted); line-height: 1.6; margin: 10px 0 0; }
.ta-scan { display: flex; gap: 20px; align-items: center; }
.ta-qr {
  flex: 0 0 auto; width: 172px; height: 172px; border-radius: 10px; overflow: hidden;
  background: #fff; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line);
  display: grid; place-items: center;
}
.ta-qr img { width: 100%; height: 100%; display: block; }
.ta-qr-ph { color: #8b7355; font-size: 12px; text-align: center; padding: 10px; line-height: 1.6; }
.ta-qr-ph span { font-size: 10.5px; }
.ta-scan-side { flex: 1; }
.ta-step { font-size: 13px; color: var(--text-2); margin: 0 0 10px; display: flex; align-items: center; gap: 9px; }
.ta-step b {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(var(--gold-rgb,211,188,142),.16); color: var(--gold-bright); font-size: 12px; font-weight: 600;
}
.ta-expire { font-size: 11px; color: var(--muted); margin: 12px 0 8px; }
.ta-link {
  display: block; word-break: break-all; font-size: 12px; color: var(--gold-bright);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 13px; text-decoration: none; line-height: 1.6;
}
.ta-link:hover { border-color: var(--gold); }
.ta-pane .input { font-family: var(--font); letter-spacing: .3px; }
.ta-status {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: rgba(var(--gold-rgb,211,188,142),.12); border: 1px solid rgba(var(--gold-rgb,211,188,142),.4);
  display: flex; flex-direction: column; gap: 5px;
}
.ta-status[hidden] { display: none; }
.ta-status b { font-size: 13.5px; color: var(--gold-bright); }
.ta-status span { font-size: 12px; color: var(--text-2); line-height: 1.6; }
.ta-status b.ok { color: #3fa66a; }
[data-theme="light"] .ta-status b { color: var(--gold-hex-dark3,#7a5f1e); }
[data-theme="light"] .ta-status b.ok { color: #237a45; }
.ta-confirm { display: block; width: 100%; margin-top: 18px; padding: 11px; font-size: 14px; }
.ta-confirm:disabled { opacity: .7; cursor: wait; }
.ta-foot {
  margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line-soft);
  font-size: 11px; color: var(--muted); text-align: center; line-height: 1.6;
}
[data-theme="light"] .ta-box { background: #fbf8f0; box-shadow: 0 24px 70px rgba(60,45,20,.28); }
[data-theme="light"] .ta-head h3 { color: var(--gold-hex-dark3,#6b5220); }
[data-theme="light"] .ta-warn { background: rgba(200,40,40,.06); border-color: rgba(190,45,45,.4); color: #b32626; }
[data-theme="light"] .ta-warn strong { color: #c22b2b; }
[data-theme="light"] .ta-tab.on { color: var(--gold-hex-dark3,#6b5220); border-bottom-color: var(--gold-hex-dark3,#8a6a22); }
[data-theme="light"] .ta-rec { color: var(--gold-hex-dark3,#6b5220); background: rgba(var(--gold-rgb-dark,154,130,82),.18); }
[data-theme="light"] .ta-rec-note { color: var(--gold-hex-dark3,#6b5220); background: rgba(var(--gold-rgb-dark,154,130,82),.1); border-color: rgba(var(--gold-rgb-dark2,138,106,34),.3); }
[data-theme="light"] .ta-desc b, [data-theme="light"] .ta-inline, [data-theme="light"] .ta-link { color: var(--gold-hex-dark3,#7a5f1e); }
[data-theme="light"] .ta-step b { background: rgba(var(--gold-rgb-dark,154,130,82),.16); color: var(--gold-hex-dark3,#6b5220); }
[data-theme="light"] .ta-qr-ph { color: var(--gold-hex-dark3,#6b5220); }
@media (max-width: 640px) {
  .ta-box { padding: 20px 18px 16px; }
  .ta-scan { flex-direction: column; align-items: stretch; }
  .ta-qr { margin: 0 auto; }
}

/* 授权弹窗「退出账号」出口 */
.ta-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ta-logout {
  appearance: none; border: 1px solid var(--line); background: transparent; color: var(--muted);
  cursor: pointer; padding: 7px 14px; border-radius: 8px; font-size: 11.5px; font-family: var(--font);
  transition: .18s;
}
.ta-logout:hover { border-color: var(--gold); color: var(--gold-bright); }
[data-theme="light"] .ta-logout:hover { color: var(--gold-hex-dark3,#7a5f1e); border-color: var(--gold-hex-dark3,#8a6a22); }

/* ================= 媒体预览：列表 / 帖子广场缩略条 + 全屏查看器 =================
   纯前端组件 media-viewer.js 使用。缩略条嵌在表格单元格内，尺寸刻意做小，
   不撑高行、不挤占标题；查看器 z-index 130，高于弹窗(60)/放大(70)，低于授权(300)。 */
.mi-thumbs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 3px 0; }
.mi-thumb {
  position: relative; width: 34px; height: 34px; padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 5px; background: var(--panel-2);
  cursor: zoom-in; transition: border-color .18s, transform .18s;
}
.mi-thumb:hover { border-color: var(--gold); transform: translateY(-1px); }
.mi-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mi-thumb-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); font-size: 14px; }
.mi-thumb.is-video { cursor: pointer; }
.mi-thumb-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, .32); color: #fff; font-size: 13px; text-shadow: 0 1px 3px #000;
}
.mi-thumb-more {
  display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 5px;
  border: 1px dashed var(--line); border-radius: 5px; color: var(--muted);
  font-size: 11px; cursor: zoom-in; background: transparent;
}
.mi-thumb-more:hover { color: var(--gold); border-color: var(--gold); }
[data-theme="light"] .mi-thumb, [data-theme="light"] .mi-thumb-more { border-color: rgba(var(--gold-rgb-dark2,138,106,34),.35); }
[data-theme="light"] .mi-thumb-play { background: rgba(0,0,0,.4); }

/* --- 全屏查看器 --- */
.mvi-layer {
  position: fixed; inset: 0; z-index: 130; display: flex; flex-direction: column;
  background: rgba(6, 8, 14, .96); animation: maskIn .18s;
}
body.mvi-open { overflow: hidden; }
.mvi-top {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid var(--line-soft);
}
.mvi-tt { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mvi-mark { color: var(--gold); }
.mvi-name { color: var(--text); font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvi-tools { display: flex; align-items: center; gap: 14px; }
.mvi-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.mvi-btn {
  appearance: none; border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 14px; transition: .18s;
}
.mvi-btn:hover { border-color: var(--gold); color: var(--gold-bright); }
.mvi-stage {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; padding: 16px 24px; overflow: hidden;
}
.mvi-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 16px 50px rgba(0,0,0,.5); }
.mvi-opennew { color: var(--muted); font-size: 11px; text-decoration: none; }
.mvi-opennew:hover { color: var(--gold); }
.mvi-video { width: min(92vw, 900px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mvi-vcover {
  position: relative; width: 100%; aspect-ratio: 16/9; max-height: 68vh; overflow: hidden;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #000;
}
.mvi-vcover img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mvi-vblank { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); font-size: 46px; }
.mvi-vplay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(211, 188, 142, .92); color: #1a1a1a; font-size: 24px; padding-left: 4px;
  box-shadow: 0 6px 24px rgba(0,0,0,.45); transition: transform .18s;
}
.mvi-vcover:hover .mvi-vplay { transform: translate(-50%, -50%) scale(1.08); }
.mvi-vcover.loading .mvi-vplay { font-size: 0; }
.mvi-vcover.loading .mvi-vplay::after {
  content: ''; width: 26px; height: 26px; border: 3px solid rgba(26,26,26,.25);
  border-top-color: #1a1a1a; border-radius: 50%; animation: mviSpin .7s linear infinite;
}
@keyframes mviSpin { to { transform: rotate(360deg); } }
.mvi-vdur {
  position: absolute; right: 10px; bottom: 10px; padding: 2px 7px; border-radius: 5px;
  background: rgba(0,0,0,.62); color: #fff; font-size: 11px; font-variant-numeric: tabular-nums;
}
.mvi-vhint { color: var(--muted); font-size: 11px; }
.mvi-player { width: min(92vw, 900px); max-height: 72vh; border-radius: 8px; background: #000; }
.mvi-vfall { color: var(--muted); font-size: 11px; }
.mvi-vfall a { color: var(--info); }
.mvi-foot {
  flex: 0 0 auto; display: flex; align-items: center; gap: 12px; justify-content: center;
  padding: 10px 18px; border-top: 1px solid var(--line-soft);
}
.mvi-nav {
  flex: 0 0 auto; appearance: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  font-size: 22px; line-height: 1; cursor: pointer; transition: .18s;
}
.mvi-nav:hover { border-color: var(--gold); color: var(--gold-bright); }
.mvi-film { display: flex; gap: 7px; overflow-x: auto; max-width: min(80vw, 720px); padding: 3px; }
.mvi-f {
  flex: 0 0 auto; width: 46px; height: 46px; padding: 0; overflow: hidden; border-radius: 6px;
  border: 2px solid transparent; background: var(--panel-2); cursor: pointer; opacity: .6; transition: .18s;
}
.mvi-f img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mvi-f span { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); font-size: 16px; }
.mvi-f.is-video { border-color: rgba(var(--gold-rgb,211,188,142),.4); }
.mvi-f.on { opacity: 1; border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-glow); }
.mvi-tip { flex: 0 0 auto; text-align: center; color: var(--muted); font-size: 10.5px; padding: 0 0 10px; }
[data-theme="light"] .mvi-layer { background: rgba(244, 240, 230, .97); }
[data-theme="light"] .mvi-vplay { background: rgba(var(--gold-rgb-dark,154,130,82),.94); color: #fff; }
[data-theme="light"] .mvi-vdur { background: rgba(0,0,0,.7); }
@media (max-width: 640px) {
  .mvi-top { padding: 10px 12px; }
  .mvi-stage { padding: 10px 10px; }
  .mvi-film { max-width: 74vw; }
  .mvi-f { width: 40px; height: 40px; }
  .mvi-vplay { width: 52px; height: 52px; font-size: 20px; }
}

/* 卡片内视频「全屏查看」小按钮：与内联播放并存，点开走媒体查看器 */
.q-video-full {
  appearance: none; border: 0; background: transparent; color: var(--gold);
  font-family: var(--font); font-size: 11px; cursor: pointer; padding: 0 0 0 8px;
  text-decoration: underline; text-underline-offset: 2px;
}
.q-video-full:hover { color: var(--gold-bright); }
[data-theme="light"] .q-video-full { color: var(--gold-hex-dark3,#7a5f1e); }

/* ================= 协管群机器人面板 ================= */
.bot-grid { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(260px, 2fr); gap: 18px; margin-bottom: 16px; }
.switch-line { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text); font-size: 13px; }
.switch-line input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }
.bot-status { border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; background: var(--panel-2); }
.bot-status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 20px; }
.bot-status-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; padding: 3px 0; border-bottom: 1px dashed var(--line-soft); }
.bot-status-item > span:last-child { color: var(--text); text-align: right; word-break: break-all; }
@media (max-width: 720px) { .bot-grid { grid-template-columns: 1fr; gap: 12px; } }

/* 推送协管群勾选框（审核页 / 帖子广场页共享，复用 .mine-toggle 基础样式） */
.bot-notify-toggle:has(input:checked) { border-color: var(--gold); background: rgba(var(--gold-rgb,211,188,142),.1); }
.bot-notify-toggle:has(input:checked) span { color: var(--gold-bright); }
.bot-notify-toggle span::before { content: '📣 '; }
[data-theme="light"] .bot-notify-toggle { background: rgba(255,255,255,.7); }

/* 违规警告身份组按钮（版主专用，即时加组） */
.warn-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.warn-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 6px; border: 1px solid rgba(230,150,80,.45); border-radius: 8px; background: rgba(230,150,80,.10); color: #e8a866; font-size: 13px; cursor: pointer; transition: .15s; }
.warn-btn:hover { background: rgba(230,150,80,.22); border-color: #e8a866; }
.warn-btn.on { background: rgba(230,150,80,.32); border-color: #e8a866; color: #ffc890; box-shadow: inset 0 0 0 1px rgba(232,168,102,.4); }
.warn-btn:active { transform: translateY(1px); }
.warn-btn .act-key { font-size: 11px; }
[data-theme="light"] .warn-btn { background: rgba(200,110,30,.08); color: #b5651d; border-color: rgba(200,110,30,.4); }
[data-theme="light"] .warn-btn:hover { background: rgba(200,110,30,.16); }
[data-theme="light"] .warn-btn.on { background: rgba(200,110,30,.26); border-color: #b5651d; color: #8a4a10; }
.wr-mod { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px dashed var(--line-soft); cursor: pointer; font-size: 13px; }
.wr-mod:hover { background: rgba(var(--gold-rgb,211,188,142),.08); }

/* 快捷键与操作说明：分组键位表（解决处置项太多挤在一起看不见） */
#kb-toggle { margin-left: auto; }
.kb-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.kb-group { border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; }
.kb-group-title { padding: 7px 11px; font-size: 12px; font-weight: 600; color: var(--gold, #d3bc8e); background: rgba(var(--gold-rgb,211,188,142),.08); border-bottom: 1px solid var(--line-soft); }
.kb-rows { padding: 4px 0; }
.kb-row { display: flex; align-items: center; gap: 10px; padding: 5px 11px; font-size: 12px; line-height: 1.5; }
.kb-row + .kb-row { border-top: 1px dashed var(--line-soft); }
.kb-row .kbd { flex: 0 0 40px; min-width: 40px; text-align: center; }
.kb-rules { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
[data-theme="light"] .kb-group-title { color: #8a6a2f; background: rgba(200,150,40,.08); }
/* 审核页底部多组快捷键提示：改为块级、宽松行距，避免一长串挤在一起看不见 */
.stage-hint-keys { display: block; }
.stage-hint-keys .fs11 { display: block; line-height: 1.9; }
.stage-hint-keys b { color: var(--text-2, #b9b9b9); font-weight: 600; }

/* 管理日志「原文」留证按钮与详情弹窗 */
.log-raw-btn { margin-left: 6px; padding: 1px 7px !important; font-size: 11px !important; line-height: 1.6 !important; }
.log-raw { font-size: 13px; }
.log-raw-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.log-raw-title { font-weight: 700; font-size: 15px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.log-raw-content {
  white-space: pre-wrap; word-break: break-word; line-height: 1.85;
  max-height: 340px; overflow-y: auto; padding: 12px 14px; border-radius: 8px;
  background: rgba(140,140,140,.07); border: 1px solid var(--line); margin-bottom: 10px;
}
[data-theme="light"] .log-raw-content { background: rgba(120,100,60,.05); border-color: rgba(120,100,60,.22); }

/* 实习协管：粉色身份标识 */
.tag-pink {
  color: #d64b96 !important; background: rgba(230,110,180,.14) !important;
  border: 1px solid rgba(230,110,180,.45) !important;
}
[data-theme="light"] .tag-pink { color: #c22d7e !important; background: rgba(230,110,180,.12) !important; }

/* 管理日志「原文」弹窗：图片/视频封面留证 */
.log-raw-media-title { font-size: 13px; font-weight: 700; margin: 14px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.log-raw-media { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.log-raw-media-item { position: relative; width: 116px; height: 116px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: rgba(140,140,140,.08); }
.log-raw-media-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.log-raw-media-item img.img-err { opacity: 0; }
.log-raw-media-item::before { content: '图片'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); }
.log-raw-media-tag { position: absolute; left: 0; bottom: 0; right: 0; font-size: 10px; line-height: 18px; text-align: center; color: #fff; background: rgba(0,0,0,.55); }

/* ===== 移交审核附言输入框：带标签 + 聚焦高亮 + 实时字数 ===== */
.transfer-note-wrap { display: block; position: relative; margin-top: 4px; }
.transfer-note-wrap .tn-label {
  display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  color: var(--gold-bright, var(--gold)); letter-spacing: .5px; margin-bottom: 7px;
}
.transfer-note-wrap .tn-label em {
  font-style: normal; font-size: 10.5px; font-weight: 400; color: var(--muted);
  padding: 1px 6px; border: 1px solid var(--line); border-radius: 20px; letter-spacing: 0;
}
.transfer-note-wrap .qa-input.transfer-note {
  width: 100%; resize: vertical; min-height: 52px; padding: 9px 11px 22px;
  border: 1px solid var(--line); border-radius: 9px; background: rgba(140,140,140,.06);
  color: var(--text, inherit); font-size: 13px; line-height: 1.5; outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.transfer-note-wrap .qa-input.transfer-note::placeholder { color: var(--muted); opacity: .8; }
.transfer-note-wrap .qa-input.transfer-note:focus {
  border-color: var(--gold); background: rgba(var(--gold-rgb,211,188,142),.07);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb,211,188,142),.13);
}
.transfer-note-wrap .tn-count {
  position: absolute; right: 10px; bottom: 8px; font-size: 10.5px; color: var(--muted);
  font-variant-numeric: tabular-nums; pointer-events: none;
}
[data-theme="light"] .transfer-note-wrap .qa-input.transfer-note { background: rgba(120,100,60,.04); }

/* 手机端成员资料查询入口（查加入时间 / 查身份组） */
.m-query-row { display: flex; gap: 8px; margin-top: 10px; padding: 0 2px; }
.m-query-btn {
  flex: 1; min-height: 34px; padding: 6px 8px; font-size: 12.5px; color: var(--text-2, var(--text));
  background: rgba(var(--gold-rgb,211,188,142),.08); border: 1px solid var(--line); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.m-query-btn:active { background: rgba(var(--gold-rgb,211,188,142),.2); border-color: var(--gold); transform: scale(.98); }
[data-theme="light"] .m-query-btn { color: #6b5a35; }

/* 协管申请版主处置：类型选择按钮组 */
.wr-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.wr-type {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer;
  background: rgba(140,140,140,.06); color: var(--text-2, var(--text)); transition: all .16s;
}
.wr-type b { font-size: 13px; font-weight: 600; }
.wr-type small { font-size: 11px; color: var(--muted); }
.wr-type:hover { border-color: var(--gold); background: rgba(var(--gold-rgb,211,188,142),.09); }
.wr-type.on { border-color: var(--gold); background: rgba(var(--gold-rgb,211,188,142),.16); box-shadow: 0 0 0 2px rgba(var(--gold-rgb,211,188,142),.12); }
.wr-type.on b { color: var(--gold-bright, var(--gold)); }
.wr-level-row { margin-top: 14px; }
[data-theme="light"] .wr-type { background: rgba(120,100,60,.04); }
[data-theme="light"] .wr-type.on b { color: #8a6d2f; }

/* ===== 手机端右侧竖置处置 rail（覆盖顶部底部 dock 方案）=====
   5 个拇指可达的圆形按钮：通过 / 屏蔽 / 删除 / 禁言 / 更多，
   靠右侧悬浮、垂直排列，不遮挡正文；卡片右侧留白避免压字。 */
@media (max-width: 768px) {
  .m-dock {
    position: fixed !important;
    left: auto !important; right: 10px !important;
    top: 50%; bottom: auto !important;
    transform: translateY(-50%);
    width: 60px; padding: 8px 6px;
    display: flex !important; flex-direction: column; gap: 10px;
    background: transparent; border: 0; border-radius: 0;
    box-shadow: none; z-index: 46;
  }
  [data-theme="light"] .m-dock { background: transparent; box-shadow: none; }
  .m-quick {
    flex: 0 0 auto !important; width: 48px; height: 48px;
    min-width: 0; padding: 0; border-radius: 50%;
    flex-direction: column; gap: 1px;
    font-size: 9px; font-weight: 600; letter-spacing: 0;
    box-shadow: 0 3px 12px rgba(0,0,0,.32);
    backdrop-filter: none;
  }
  .m-quick .qico { font-size: 19px; line-height: 1; }
  .m-quick .qlabel { font-size: 9px; line-height: 1; opacity: .95; }
  .m-quick:active { transform: scale(.9); }
  .m-quick-ok { background: linear-gradient(150deg,#4f9e6f,#2f7d4f); border-color:#6fc793; color:#eafff2; }
  .m-quick-warn { background: linear-gradient(150deg,var(--gold-btn1,#c99b3f),var(--gold-btn2,#a8781e)); border-color:var(--gold-btn3,#e3bb6a); color:#fff6e2; }
  .m-quick-del { background: linear-gradient(150deg,#c85a5a,#a53b3b); border-color:#e58484; color:#fff0f0; }
  .m-quick-mute { background: linear-gradient(150deg,#5a86c8,#3b63a5); border-color:#84abe5; color:#eef4ff; }
  .m-quick-more { background: var(--panel-2); border-color: var(--line); color: var(--text); box-shadow: 0 3px 12px rgba(0,0,0,.25); }
  /* 卡片右侧留白，避免竖置 rail 压住正文 */
  .view:has(.m-audit) .m-card { padding-right: 58px !important; }
  /* toast 不再需要为底部 dock 抬高 */
  body:has(.m-dock) .toast-wrap { bottom: calc(14px + env(safe-area-inset-bottom)); }
}

/* ================= AI审核（实验室功能）================= */
/* 左侧导航 NEW 上标 */
.nav-item { position: relative; }
.nav-new {
  position: absolute; top: 4px; right: 6px;
  font-size: 8px; line-height: 1; font-weight: 800;
  color: #fff; background: linear-gradient(135deg, #ff5d5d, #e62828);
  padding: 2px 3px; border-radius: 4px; letter-spacing: .3px;
  box-shadow: 0 1px 3px rgba(230,40,40,.4);
}
/* 全部改用 app.css 的主题变量，深色/浅色自动跟随；禁止用 --card/--bg-soft/--bg（项目未定义，会回退成白底导致夜间白底白字） */
.ai-notice {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 190, 92, .10);
  border: 1px solid rgba(255, 190, 92, .32); color: var(--warn);
  border-radius: 10px; padding: 9px 14px; margin-bottom: 16px;
  font-size: 13px; line-height: 1.5;
}
.ai-notice-ico { font-size: 15px; flex: none; }
.ai-gate { display: flex; justify-content: center; align-items: center; min-height: 60vh; }
.ai-gate-card {
  max-width: 460px; text-align: center; padding: 38px 32px;
  background: var(--panel-solid); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow);
}
.ai-gate-ico { font-size: 46px; }
.ai-gate-card h2 { margin: 12px 0 10px; font-size: 20px; color: var(--text); }
.ai-gate-card p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 6px 0; }
.ai-gate-card p.ai-gate-sub { font-size: 12px; }
.ai-gate-card .btn { margin-top: 18px; min-width: 160px; }
.ai-wrap { display: flex; flex-direction: column; gap: 16px; }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ai-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px;
}
.ai-card-hd { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.ai-card-ico { font-size: 26px; flex: none; line-height: 1.2; }
.ai-card-hd h3 { margin: 0 0 4px; font-size: 16px; color: var(--text); }
.ai-card-hd p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.ai-scan-opts { display: flex; gap: 18px; margin-bottom: 12px; font-size: 13px; color: var(--text-2); }
.ai-scan-opts label { cursor: pointer; }
.ai-progress { margin: 12px 0; }
.ai-progress-bar { height: 10px; background: var(--panel-3); border-radius: 6px; overflow: hidden; }
.ai-progress-fill {
  height: 100%; width: 0; border-radius: 6px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transition: width .35s ease;
}
.ai-progress-txt { font-size: 12px; color: var(--muted); margin-top: 6px; }
.ai-hint { font-size: 12px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.ai-auto-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 14px; color: var(--text); }
.ai-state-on { color: var(--ok); font-weight: 600; }
.ai-state-off { color: var(--muted); }
.ai-auto-card .btn.ghost { margin-top: 4px; }
.ai-list-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.ai-list-count { color: var(--muted); font-size: 12px; margin-right: auto; }
.ai-list { display: flex; flex-direction: column; gap: 10px; }
.ai-empty { text-align: center; color: var(--muted); padding: 36px 0; font-size: 13px; }
.ai-item {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 14px;
  background: var(--panel-2);
}
.ai-item-chk { padding-top: 3px; }
.ai-item-body { flex: 1; min-width: 0; }
.ai-item-title { font-size: 14px; font-weight: 600; margin-bottom: 5px; word-break: break-word; color: var(--text); }
.ai-no { color: var(--warn); font-weight: 800; margin-right: 4px; }
.ai-item-meta { font-size: 11px; color: var(--muted); margin-bottom: 6px; line-height: 1.5; }
.ai-item-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.ai-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.ai-tag.reason { background: rgba(255, 190, 92, .15); color: var(--warn); }
.ai-tag.action { background: rgba(255, 107, 107, .15); color: var(--danger); }
.ai-item-why { font-size: 12px; color: var(--muted); line-height: 1.5; }
.ai-item-ops { display: flex; flex-direction: column; gap: 6px; flex: none; }
.ai-item-ops .btn { font-size: 12px; padding: 5px 10px; }
.ai-admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ai-beta-list { max-height: 320px; overflow: auto; }
.ai-beta-row { padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; color: var(--text-2); }
.ai-cfg { display: flex; flex-direction: column; gap: 12px; }
.ai-cfg label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
.ai-input, .ai-textarea {
  width: 100%; box-sizing: border-box; padding: 8px 10px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-2); color: var(--text); font-family: inherit;
}
.ai-input::placeholder, .ai-textarea::placeholder { color: var(--muted); }
.ai-textarea { min-height: 200px; resize: vertical; line-height: 1.6; }

/* 手机端：AI审核单独精简 UI */
@media (max-width: 768px) {
  .ai-notice { font-size: 12px; padding: 8px 10px; }
  .ai-grid { grid-template-columns: 1fr; }
  .ai-card { padding: 14px; }
  .ai-card-hd h3 { font-size: 15px; }
  .ai-gate-card { padding: 26px 18px; }
  .ai-list-bar { gap: 6px; }
  .ai-list-bar .btn { flex: 1 1 44%; font-size: 12px; padding: 7px 4px; }
  .ai-list-count { flex-basis: 100%; text-align: center; margin: 0; }
  .ai-item { flex-wrap: wrap; padding: 10px; }
  .ai-item-chk { order: 0; }
  .ai-item-body { order: 1; flex-basis: calc(100% - 30px); }
  .ai-item-ops { order: 2; flex-direction: row; flex-basis: 100%; }
  .ai-item-ops .btn { flex: 1; padding: 8px 4px; }
  .ai-admin-actions .btn { flex: 1 1 46%; }
}
.ai-quota-tip {
  font-size: 12px; color: var(--ok); background: rgba(134, 224, 168, .10);
  border: 1px solid rgba(134, 224, 168, .32); border-radius: 8px; padding: 7px 10px; margin-bottom: 12px;
}

/* 后台 staff 用户名：版主绿 / 超管蓝 / owner 红（均加粗）。协管群消息不使用这些类。 */
.uname { font-weight: 700; }
.uname-reviewer { color: var(--ok); }
.uname-admin { color: var(--info); }
.uname-owner { color: var(--danger); }
[data-theme="light"] .uname-reviewer { color: #2f7d4f; }
[data-theme="light"] .uname-admin { color: #2c6d9e; }
[data-theme="light"] .uname-owner { color: #b0483f; }

/* AI 通过记录快速复核：带图列表 */
.ai-pass-list { max-height: 52vh; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.ai-pass-row { display: flex; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.ai-pass-body { flex: 1; min-width: 0; }
.ai-pass-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.ai-pass-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; justify-content: flex-end; }
.ai-pass-bar .btn { flex: 0 0 auto; }
@media (max-width: 768px) {
  .ai-pass-bar .btn { flex: 1 1 44%; }
  .ai-pass-list { max-height: 45vh; }
}

/* AI 审核：查看全文按钮 + 全文弹窗（日/夜间通用） */
.ai-full-btn {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 5px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--gold-bright);
  font-size: 11px; font-weight: 600; line-height: 1.6; cursor: pointer; white-space: nowrap;
  vertical-align: middle; transition: filter .15s;
}
.ai-full-btn:hover { filter: brightness(1.2); }
[data-theme="light"] .ai-full-btn { color: #8a6a1f; }
.ai-full { max-height: 66vh; overflow: auto; }
.ai-full-title { font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.5; margin-bottom: 10px; word-break: break-word; }
.ai-full-text { font-size: 14px; color: var(--text-2); line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.ai-full-media { margin-top: 14px; }
.ai-full-note { margin-top: 12px; font-size: 12px; color: var(--warn); }
.ai-full-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.ai-full-foot a { color: var(--gold-bright); font-size: 13px; text-decoration: none; }
.ai-full-foot a:hover { text-decoration: underline; }

/* ===== 审核反馈 Flash：单条覆盖、节奏自适应、日/夜间通用 =====
   桌面端：右上角紧凑一条，替代原来堆叠的 toast。
   手机端：彻底重做——不再从底部弹出挡住卡片/右侧 rail，改为固定在顶栏下方的细横幅，
          一行文字 + 可选撤销按钮，快审时一闪而过；抽屉打开时让位隐藏。 */
.flash-bar {
  position: fixed; z-index: 43; pointer-events: none;
  display: flex; align-items: center; gap: 8px;
  opacity: 0; visibility: hidden;
}
.flash-bar.show { opacity: 1; visibility: visible; }
.flash-bar.out { opacity: 0; visibility: visible; }
.flash-ic {
  flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
}
.flash-bar.type-ok  .flash-ic { background: rgba(134,224,168,.18); color: var(--ok); }
.flash-bar.type-err .flash-ic { background: rgba(255,107,107,.18); color: var(--danger); }
.flash-bar.type-warn .flash-ic { background: rgba(255,190,92,.2); color: var(--warn); }
.flash-bar.type-info .flash-ic { background: rgba(127,200,248,.18); color: var(--info); }
.flash-txt { flex: 1; min-width: 0; font-size: 13px; color: var(--text); font-weight: 600; letter-spacing: .3px; }
.flash-acts { flex: none; display: flex; gap: 6px; pointer-events: auto; }
.flash-act {
  border: 1px solid var(--gold); background: rgba(var(--gold-rgb,211,188,142),.12); color: var(--gold-bright);
  border-radius: 6px; padding: 3px 10px; font-size: 12px; font-family: var(--font); cursor: pointer;
}
.flash-act.danger { border-color: var(--danger); color: var(--danger); background: rgba(255,107,107,.1); }
.flash-act:active { transform: scale(.95); }
[data-theme="light"] .flash-act { color: #8a6a1f; }
.flash-prog { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--gold); animation: flashProg linear forwards; }
@keyframes flashProg { from { width: 100%; } to { width: 0; } }

/* 桌面：右上角，比 toast 更靠上更紧凑，单条 */
@media (min-width: 769px) {
  .flash-bar {
    top: 16px; right: 18px; min-width: 220px; max-width: 380px;
    padding: 9px 13px 11px; border-radius: 9px; overflow: hidden;
    background: linear-gradient(150deg, rgba(43,48,66,.98), rgba(28,32,44,.98));
    border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.45);
    transform: translateY(-8px); transition: opacity .2s var(--ease), transform .2s var(--ease);
    pointer-events: auto;
  }
  .flash-bar.show { transform: none; }
  [data-theme="light"] .flash-bar { background: linear-gradient(150deg, rgba(255,253,247,.99), rgba(244,240,230,.99)); }
}

/* 手机端：顶栏下方通栏细横幅——换地方显示，绝不压底部卡片/右侧竖置 rail */
@media (max-width: 768px) {
  .flash-bar {
    top: calc(54px + env(safe-area-inset-top)); left: 0; right: 0;
    min-height: 40px; padding: 7px 14px 8px;
    background: linear-gradient(150deg, rgba(43,48,66,.97), rgba(28,32,44,.97));
    border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.3);
    transform: translateY(-100%); transition: opacity .18s var(--ease), transform .18s var(--ease);
    pointer-events: none;
  }
  .flash-bar.show { transform: none; }
  .flash-txt { font-size: 12.5px; }
  [data-theme="light"] .flash-bar { background: linear-gradient(150deg, rgba(255,253,247,.98), rgba(244,240,230,.98)); }
  /* 抽屉导航打开时让位，避免盖住导航项 */
  body.nav-open .flash-bar { display: none; }
}

/* 手机端通知统一上移：普通 toast 也从底部挪到顶栏下方，
   与审核 flash 错开高度，彻底告别「底部弹窗挡卡片 / 挡右侧竖置 rail」。 */
@media (max-width: 768px) {
  .toast-wrap, body:has(.m-dock) .toast-wrap {
    top: calc(54px + env(safe-area-inset-top) + 46px) !important;
    bottom: auto !important;
    left: 12px; right: 12px; width: auto;
    z-index: 43;
  }
  body.nav-open .toast-wrap { display: none; }
}

/* ===== 数据广场：椭圆形词云 ===== */
.wc-panel { margin-bottom: 14px; }
.wc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.wc-tools { display: flex; align-items: center; gap: 8px; }
.wc-body { padding: 10px 12px 14px; overflow: hidden; }
.wc-body.folded { display: none; }
.wc-svg { display: block; width: 100%; height: auto; max-height: 300px; }
.wc-svg .wc-word { cursor: pointer; font-family: var(--font-title); font-weight: 600; transition: opacity .15s, filter .15s; }
.wc-svg .wc-word:hover { opacity: 1 !important; filter: brightness(1.25); }
.wc-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 40px 12px; }
[data-theme="light"] .wc-svg .wc-word { font-weight: 700; }
@media (max-width: 768px) {
  .wc-head { padding: 10px 12px; }
  .wc-body { padding: 6px 4px 10px; }
  .wc-svg { max-height: 220px; }
}

/* 审核 flash 里的「推送协管群成功」等附加标记 */
.flash-badge { font-weight: 700; white-space: nowrap; }
@media (max-width: 768px) { .flash-badge { font-size: 11.5px; } }

/* ============================================================
   V7.3「她所眷爱的世界」· 至冬冰封主题（2026-12-04）
   仅作用于深色主题；light 主题完全不受影响。
   纯 CSS 覆盖，不改动 app.css / JS / 后端；回滚=删除本段。
   ============================================================ */
html[data-ui="version"] {
  /* 冰蓝色板：暖金 -> 冷蓝，零暖色 */
  --gold: #7fc9e8;
  --gold-bright: #d6f0ff;
  --gold-deep: #3f8fb5;
  --gold-glow: rgba(110,205,242,.38);
  --text: #dceefb;
  --text-2: #b6d9ee;
  --muted: #87aac4;
  --line: rgba(143,216,255,.22);
  --line-soft: rgba(168,226,255,.09);
  --panel: rgba(16,44,68,.88);
  --panel-solid: #123049;
  --panel-2: #173a58;
  --panel-3: #1e4a6c;
  --bg-0: #061c30;
  --bg-1: #0a2a45;
  --bg-2: #0e3454;
  --cryo: #8fe0ff;
  --info: #7fd8ff;
  --warn: #ffce7a;
}

/* 背景：至冬冰封壁纸真正铺底（走 .bg-base，取消原来几乎看不见的 ::after 覆层） */
html[data-ui="version"] #bg-layer {
  background: linear-gradient(160deg, #082744 0%, #0b3152 45%, #041a2e 100%);
}
/* 女皇冰封壁纸：真实显示，右侧渐隐遮罩顺带盖住原图时钟水印 */
html[data-ui="version"] #bg-layer .bg-base {
  background-image: url('/bg/cryo-wall.jpg') !important;
  background-position: center 20% !important;
  background-size: cover !important;
  opacity: .9 !important;
  filter: saturate(.92) contrast(1.04);
}
html[data-ui="version"] #bg-layer .bg-shade {
  display: block !important;
  background: linear-gradient(90deg, rgba(4,18,30,.34) 0%, rgba(4,18,30,.12) 52%, rgba(4,18,30,.8) 100%) !important;
}
/* 卡顿治理：光斑去 blur、去无限动画（登录首屏全屏合成的最重开销），改静态渐变 */
html[data-ui="version"] #bg-layer .bg-glow { animation: none !important; filter: none !important; opacity: .55 !important; }
html[data-ui="version"] #bg-layer .bg-stars { animation: none !important; }
html[data-ui="version"] #bg-layer .bg-glow.g1 {
  background: radial-gradient(circle, rgba(95,224,255,.16), transparent 65%);
}
html[data-ui="version"] #bg-layer .bg-glow.g2 {
  background: radial-gradient(circle, rgba(110,205,242,.13), transparent 65%);
}
html[data-ui="version"] #bg-layer .bg-glow.g3 {
  background: radial-gradient(circle, rgba(95,224,255,.1), transparent 65%);
}
html[data-ui="version"] #bg-layer::after { display: none !important; }

/* 侧边栏：冰晶质感 + 顶部霜白咬边 */
html[data-ui="version"] .sidebar {
  background:
    linear-gradient(180deg, rgba(16,48,74,.94), rgba(6,26,44,.97));
  border-right: 1px solid rgba(143,216,255,.22);
  box-shadow: inset 0 1px 0 rgba(214,240,255,.35), inset -6px 0 20px -12px rgba(95,224,255,.5);
}
/* 品牌徽章：冰蓝冷光（派蒙 logo 保留，仅换光晕） */
html[data-ui="version"] .brand-mark {
  background: radial-gradient(circle at 50% 40%, rgba(143,216,255,.22), rgba(95,224,255,.06));
  border-color: rgba(143,216,255,.5);
  box-shadow: 0 0 20px rgba(95,224,255,.38), inset 0 0 12px rgba(214,240,255,.14);
}
html[data-ui="version"] .paimon-logo { animation: logoGlowCryo 6s ease-in-out infinite; }
@keyframes logoGlowCryo {
  0%,100% { filter: drop-shadow(0 0 5px rgba(143,216,255,.5)); }
  50% { filter: drop-shadow(0 0 12px rgba(214,240,255,.85)); }
}
html[data-ui="version"] .brand-name { color: var(--gold-bright); }

/* 导航：选中态冰蓝发光 + 左侧霜条 */
html[data-ui="version"] .nav-item:hover {
  background: rgba(95,224,255,.09);
}
html[data-ui="version"] .nav-item.active {
  background: linear-gradient(90deg, rgba(95,224,255,.20), rgba(95,224,255,.02));
  color: var(--gold-bright);
  box-shadow: inset 0 0 18px -8px rgba(95,224,255,.6);
}
html[data-ui="version"] .nav-item::before {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
}
html[data-ui="version"] .nav-badge {
  background: rgba(95,224,255,.18); color: var(--gold-bright); border-color: rgba(143,216,255,.4);
}

/* 滚动条冷色 */
html[data-ui="version"] ::-webkit-scrollbar-thumb { background: rgba(143,216,255,.24); }
html[data-ui="version"] ::-webkit-scrollbar-thumb:hover { background: rgba(143,216,255,.42); }

/* 面板 / 按钮 / 分段控件：把残留的暖金硬编码压成冰蓝 */
html[data-ui="version"] .btn-gold,
html[data-ui="version"] .seg button.on {
  background: linear-gradient(150deg, #d6f0ff, #7fc9e8 55%, #4aa8cf);
  color: #06263e;
  border-color: rgba(214,240,255,.7);
}
html[data-ui="version"] .ann-item { border-left-color: var(--gold-deep); }

/* 顶栏「版本UI / 普通UI」切换按钮：版本UI 下雪花冰蓝高亮，鼠标悬停不再变红 */
#btn-ui.ui-switch { font-size: 17px; line-height: 1; }
html[data-ui="version"] #btn-ui.ui-switch {
  color: var(--gold-bright);
  border-color: rgba(143,216,255,.45);
  background: rgba(95,224,255,.1);
  text-shadow: 0 0 10px rgba(143,216,255,.7);
}
html[data-ui="version"] #btn-ui.ui-switch:hover {
  color: #fff; border-color: rgba(214,240,255,.75); background: rgba(95,224,255,.2);
}

/* ============================================================
   全屏 HTML 公告弹窗（iframe 同源加载发版页面）
   ============================================================ */
.ann-html-layer {
  position: fixed; inset: 0; z-index: 65; display: flex; flex-direction: column;
  background: rgba(3,12,22,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: maskIn .22s ease both; transition: opacity .2s;
}
.ann-html-head {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px; border-bottom: 1px solid var(--line, rgba(143,216,255,.22));
  background: rgba(6,26,44,.85);
}
.ann-html-title { font-size: 15px; font-weight: 700; letter-spacing: 1px; color: var(--gold-bright, #d6f0ff); }
.ann-html-close {
  cursor: pointer; padding: 7px 18px; border-radius: 8px; font-size: 13px;
  border: 1px solid rgba(143,216,255,.4); background: rgba(95,224,255,.1); color: var(--gold-bright, #d6f0ff);
  transition: .2s;
}
.ann-html-close:hover { background: rgba(95,224,255,.22); border-color: rgba(214,240,255,.7); }
.ann-html-frame { flex: 1 1 auto; width: 100%; border: 0; background: transparent; }
.ann-html-foot { flex: 0 0 auto; padding: 8px 22px; text-align: center; font-size: 11.5px; color: var(--muted, #87aac4); border-top: 1px solid var(--line-soft, rgba(168,226,255,.09)); }
/* iframe 载入前的占位反馈：发版页含大量动效，避免打开瞬间一片空白 */
.ann-html-stage { position: relative; flex: 1 1 auto; min-height: 0; }
.ann-html-stage .ann-html-frame { position: absolute; inset: 0; height: 100%; }
.ann-html-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 14px; color: #a9cfe8; font-size: 13px; letter-spacing: 2px;
  background: linear-gradient(160deg,#082744,#0b3152 48%,#041a2e); transition: opacity .25s ease; }
.ann-html-load .snow { font-size: 30px; color: #bfe9ff; animation: bootSpin 2.4s linear infinite; }
.ann-html-load.done { opacity: 0; pointer-events: none; }

/* 公告中心：HTML 发版公告的「点击查看更新内容」入口 */
.ann-html-entry { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.ann-html-link { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px;
  border-radius: 10px; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-decoration: none;
  border: 1px solid rgba(143,216,255,.45); color: #d6f0ff;
  background: linear-gradient(150deg, rgba(95,224,255,.16), rgba(23,76,117,.3));
  transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.ann-html-link:hover { transform: translateY(-2px); border-color: rgba(214,240,255,.8);
  background: linear-gradient(150deg, rgba(95,224,255,.28), rgba(23,76,117,.42)); }
.ann-html-ico { font-size: 15px; color: #8fe0ff; }
.ann-html-arrow { font-size: 15px; opacity: .8; }
.ann-html-newtab { font-size: 11.5px; color: #87aac4; text-decoration: none; }
.ann-html-newtab:hover { color: #d6f0ff; }
/* 普通UI：入口回归中性，不启用冰封特效 */
html[data-ui="normal"] .ann-html-link { color: var(--text, inherit); border-color: var(--line, #444);
  background: rgba(127,127,127,.1); }
html[data-ui="normal"] .ann-html-link:hover { border-color: var(--line, #666); background: rgba(127,127,127,.18); transform: none; }
html[data-ui="normal"] .ann-html-ico, html[data-ui="normal"] .ann-html-load .snow { color: inherit; }
html[data-ui="normal"] .ann-html-load { background: #11151e; color: #9aa6b6; }

/* ============================================================
   V7.3 配色补全（2026-12-05）：把 app.css 散落的暖金硬编码在版本UI下统一压成冰蓝
   仅 html[data-ui="version"] 生效；普通UI 完全不受影响。
   ============================================================ */
/* 登录标题：暖金渐变 -> 冰蓝渐变 */
html[data-ui="version"] .login-title {
  background: linear-gradient(180deg, #f4fbff, #8fd8ff 60%, #4aa8cf) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
}
/* 派蒙徽章光晕：暖金 -> 冰蓝 */
html[data-ui="version"] .crest-img { filter: drop-shadow(0 0 22px rgba(95,224,255,.55)) !important; }
html[data-ui="version"] .crest-svg { filter: drop-shadow(0 0 18px rgba(95,224,255,.5)) !important; }
html[data-ui="version"] .login-crest { animation: crestBreatheCryo 4s ease-in-out infinite; }
@keyframes crestBreatheCryo {
  0%,100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(143,216,255,.4)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 14px rgba(214,240,255,.7)); }
}
/* 品牌徽章底/边/光晕：暖金 rgba -> 冰蓝（覆盖 app.css 136-141） */
html[data-ui="version"] .brand-mark {
  background: radial-gradient(circle at 50% 40%, rgba(143,216,255,.2), rgba(74,168,207,.08)) !important;
  border-color: rgba(143,216,255,.45) !important;
  box-shadow: 0 0 20px rgba(95,224,255,.34), inset 0 0 12px rgba(214,240,255,.12) !important;
}
html[data-ui="version"] .paimon-logo { animation: logoGlowCryo 6s ease-in-out infinite !important; }
/* 输入框聚焦光晕 */
html[data-ui="version"] .field input:focus { box-shadow: 0 0 0 3px rgba(95,224,255,.16) !important; }
/* 主按钮 hover（之前只覆盖了常态，漏了 hover） */
html[data-ui="version"] .btn-gold:hover {
  background: linear-gradient(150deg, #eafaff, #9bdcf5 55%, #5fbfe0) !important;
  color: #06263e !important; border-color: rgba(234,250,255,.85) !important;
  box-shadow: 0 8px 24px rgba(95,224,255,.4) !important;
}
/* 通用按钮 hover 暖金边/底 */
html[data-ui="version"] .btn:hover { border-color: rgba(95,224,255,.5) !important; background: rgba(95,224,255,.1) !important; }
html[data-ui="version"] .btn-menu:hover { color: var(--gold) !important; border-color: var(--line) !important; background: rgba(95,224,255,.1) !important; }
/* 标签：警告橙黄 -> 冰蓝（公告弹窗里的「公告」tag 等） */
html[data-ui="version"] .tag-warn { border-color: rgba(143,216,255,.4) !important; background: rgba(95,224,255,.12) !important; color: #bfe9ff !important; }
/* 分段控件 on 态 */
html[data-ui="version"] .seg button.on { background: linear-gradient(150deg, rgba(143,216,255,.92), rgba(74,168,207,.92)) !important; color: #06263e !important; }
/* 复选框强调色 */
html[data-ui="version"] .mine-toggle input { accent-color: #7fc9e8 !important; }
/* 操作选项 on 态 */
html[data-ui="version"] .act-opt.on { background: rgba(95,224,255,.14) !important; border-color: rgba(143,216,255,.5) !important; color: var(--gold-bright) !important; }
/* 汇总条虚线边 */
html[data-ui="version"] .summary-bar { border-color: rgba(143,216,255,.3) !important; }
/* 加载 spinner */
html[data-ui="version"] .spinner { border-color: rgba(143,216,255,.25) !important; border-top-color: var(--gold) !important; }
/* 滚动条 warm 兜底 */
html[data-ui="version"] ::-webkit-scrollbar-thumb { background: rgba(143,216,255,.26) !important; }
html[data-ui="version"] .act-scroll::-webkit-scrollbar-thumb { background: rgba(143,216,255,.26) !important; }
/* 面板/登录面板暖金内阴影 */
html[data-ui="version"] .login-panel { box-shadow: 0 30px 90px rgba(0,0,0,.6), inset 0 0 60px rgba(95,224,255,.05) !important; }
/* 顶栏徽标 on 态暖金底 */
html[data-ui="version"] .nav-badge { background: rgba(95,224,255,.18) !important; }

/* ============================================================
   V7.3 冰封套装（2026-12-05）：真实冰晶光标 + 点击霜花特效
   仅版本UI 生效；普通UI 保持系统默认光标与无特效。
   ============================================================ */
/* 鼠标光标：整套走本地真实素材（default 指针 + pointer 手型），配系统回退 */
html[data-ui="version"],
html[data-ui="version"] body { cursor: url('/assets/cursor/cryo-default.png') 6 4, auto !important; }
html[data-ui="version"] a,
html[data-ui="version"] button,
html[data-ui="version"] [role="button"],
html[data-ui="version"] .btn,
html[data-ui="version"] .nav-item,
html[data-ui="version"] label { cursor: url('/assets/cursor/cryo-pointer.png') 8 4, pointer !important; }

/* 点击霜花特效：.btn / .nav-item 点击时 ::after 绽放一圈冰晶，纯 CSS、GPU 友好。
   不套裸 button：避免给带角标/浮层/select 的按钮加 overflow:hidden 造成误伤。 */
html[data-ui="version"] .btn,
html[data-ui="version"] .nav-item { position: relative; }
html[data-ui="version"] .btn:not(.btn-magic)::after,
html[data-ui="version"] .nav-item::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px;
  margin: -7px 0 0 -7px; border-radius: 50%; pointer-events: none; z-index: 5;
  background: radial-gradient(circle, rgba(234,250,255,.85) 0%, rgba(143,216,255,.55) 40%, transparent 70%);
  opacity: 0; transform: scale(.2);
}
html[data-ui="version"] .btn:not(.btn-magic):active::after,
html[data-ui="version"] .nav-item:active::after { animation: frostTap .45s ease-out; }
@keyframes frostTap {
  0% { opacity: .9; transform: scale(.2) rotate(0deg); }
  60% { opacity: .55; transform: scale(2.4) rotate(45deg); }
  100% { opacity: 0; transform: scale(3.2) rotate(60deg); }
}
/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html[data-ui="version"] .btn:not(.btn-magic)::after,
  html[data-ui="version"] .nav-item::after,
  html[data-ui="version"] button::after { animation: none !important; }
}

/* ===== 重处置二次确认（删除及以上）：卡面底部横排提示，字号够大、不压内容 ===== */
.sp-cell.sp-armed {
  border-color: #e2705f;
  box-shadow: 0 0 0 2px rgba(226, 112, 95, .5), 0 0 22px rgba(226, 112, 95, .26);
}
.sp-cell.sp-armed .sp-acts { opacity: .3; pointer-events: none; }
.sp-confirm {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  display: none; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 8px; border-radius: 0 0 11px 11px;
  background: linear-gradient(180deg, rgba(168, 46, 34, .9), rgba(124, 26, 20, .96));
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .6px;
  line-height: 1.15; text-align: center; white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}
.sp-cell.sp-armed .sp-confirm { display: flex; animation: spArmIn .18s ease; }
@keyframes spArmIn { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ================= ⚡ 高速审核（7.3.1）================= */
.sp-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.sp-title { font-weight: 700; font-size: 15px; }
.sp-progress { font-size: 12px; color: var(--muted); }
.sp-btn-toggle { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.sp-grid { display: flex; flex-direction: column; gap: 10px; }
.sp-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; overflow: hidden; max-height: 460px; transition: opacity .5s ease, transform .5s ease, max-height .5s ease; }
.sp-row.sp-row-out { opacity: 0; transform: translateY(-10px); max-height: 0; }
.sp-row.sp-row-gone { display: none; }
.sp-cell { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: border-color .18s, box-shadow .18s, transform .18s, opacity .3s; }
.sp-cell:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--line) 60%, #7fd3e8 40%); }
/* 当前待审核格：符合冰封配色的高亮框 */
.sp-cell.sp-cur { border-color: #7fd3e8; box-shadow: 0 0 0 2px rgba(127, 211, 232, .45), 0 0 20px rgba(127, 211, 232, .22); }
.sp-idx { position: absolute; top: 5px; left: 7px; font-size: 10px; color: var(--muted); z-index: 5; background: rgba(0,0,0,.32); border-radius: 4px; padding: 0 4px; line-height: 15px; }
/* 焦点计时：框到谁谁开始，离开暂停，处置定格；统一 1.23 秒精度 */
.sp-timer { position: absolute; top: 5px; right: 7px; z-index: 5; font-size: 10.5px; line-height: 15px; padding: 0 5px; border-radius: 4px; background: rgba(0,0,0,.34); color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.sp-cell.sp-cur .sp-timer, .sp-timer.is-live { color: #bfe9f6; background: rgba(18, 64, 76, .72); }
.sp-cell.sp-done .sp-timer { opacity: .7; }
/* 媒体区：4 列小格用固定高度，保证 4 行能同屏看全 */
.sp-cover { position: relative; height: 104px; background: var(--bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sp-cover > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.sp-cell:hover .sp-cover > img { transform: scale(1.03); }
.sp-nomedia { font-size: 11px; color: var(--muted); }
.sp-cover-empty { background: repeating-linear-gradient(135deg, transparent, transparent 7px, rgba(127,211,232,.05) 7px, rgba(127,211,232,.05) 14px); }
/* 多图马赛克：2 张并排 / 3 张左大右二 / 4 张 2×2 */
.sp-mosaic { display: grid; gap: 2px; padding: 0; }
.sp-mosaic[data-n="2"] { grid-template-columns: 1fr 1fr; }
.sp-mosaic[data-n="3"] { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
.sp-mosaic[data-n="3"] .sp-mz:first-child { grid-row: span 2; }
.sp-mosaic[data-n="4"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.sp-mz { position: relative; overflow: hidden; min-height: 0; cursor: zoom-in; }
.sp-mz img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-mz-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(9, 22, 30, .62); color: #cfeff7; font-size: 14px; font-weight: 700; }
/* 视频：封面 + 居中播放钮 */
.sp-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: rgba(9,22,30,.55); border: 1px solid rgba(255,255,255,.55); color: #fff; display: grid; place-items: center; font-size: 11px; padding-left: 2px; z-index: 4; }
/* 角标：视频 / 图片数量，一眼分清「带视频」「多图」「图文混排」 */
.sp-mtags { position: absolute; left: 5px; bottom: 5px; display: flex; gap: 4px; z-index: 4; }
.sp-mtag { background: rgba(9, 22, 30, .68); color: #dceef5; border-radius: 4px; font-size: 10px; padding: 1px 5px; line-height: 14px; white-space: nowrap; }
.sp-mtag-v { color: #bfe9f6; }
.sp-mtag-i { color: #d9e6c8; }
.sp-body { padding: 7px 9px 9px; flex: 1; }
.sp-t { font-size: 12.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; }
.sp-m { font-size: 10.5px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 盖章：写的是真实动作，颜色区分「通过 / 限流 / 删除类 / 忽略」 */
.sp-stamp { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; font-size: 21px; font-weight: 800; letter-spacing: 3px; color: #8fe3f0; background: rgba(9, 22, 30, .58); text-shadow: 0 2px 12px rgba(0,0,0,.55); transform: rotate(-14deg); pointer-events: none; z-index: 6; white-space: nowrap; }
.sp-cell.sp-done { opacity: .58; }
/* 暂存待整行提交：盖章但保持明亮 + 金色虚线框，提示「可聚焦回去改判，整行凑齐才真正提交」 */
.sp-cell.sp-done.sp-pending { opacity: 1; border-color: #d8b25e; box-shadow: inset 0 0 0 1px rgba(216, 178, 94, .45); }
.sp-cell.sp-done.sp-pending .sp-stamp { background: rgba(9, 22, 30, .38); }
.sp-cell.sp-done .sp-stamp { display: flex; animation: spStamp .34s ease; }
.sp-d-approve .sp-stamp { color: #8fe3f0; }
.sp-d-restrict .sp-stamp { color: #f2c66d; }
.sp-d-delete .sp-stamp, .sp-d-blacklist .sp-stamp, .sp-d-delete_all_blacklist .sp-stamp { color: #f08a8a; letter-spacing: 1px; }
.sp-d-ignore .sp-stamp { color: #c2cdd6; }
.sp-d-mute .sp-stamp, .sp-d-tag .sp-stamp { color: #b7c8f5; }
@keyframes spStamp { from { opacity: 0; transform: rotate(-14deg) scale(1.5); } to { opacity: 1; transform: rotate(-14deg) scale(1); } }
.sp-acts { display: flex; gap: 5px; padding: 0 8px 8px; }
.sp-acts .btn { flex: 1; padding: 3px 0; font-size: 11.5px; border-radius: 6px; }
.btn-xs { padding: 3px 8px; font-size: 12px; border-radius: 6px; }
/* 悬浮键位表：可收起 */
.sp-keys { position: fixed; right: 22px; bottom: 22px; width: 300px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.28); z-index: 42; font-size: 12px; overflow: hidden; }
.sp-keys.collapsed .sp-keys-body { display: none; }
.sp-keys-hd { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--line); font-weight: 600; }
.sp-keys-close { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; padding: 0 4px; }
.sp-keys-body { padding: 8px 12px 12px; display: grid; grid-template-columns: 1fr; gap: 4px; max-height: 300px; overflow: auto; }
.sp-k { display: flex; justify-content: space-between; gap: 8px; }
.sp-k b { color: #7fd3e8; font-weight: 700; min-width: 84px; }
/* 更多处置浮层 */
.sp-more-menu { position: fixed; z-index: 200; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.3); padding: 6px; display: flex; flex-direction: column; gap: 2px; min-width: 170px; }
.sp-more-menu button { background: none; border: none; text-align: left; padding: 8px 10px; border-radius: 6px; color: var(--text); cursor: pointer; font-size: 13px; }
.sp-more-menu button:hover { background: var(--bg); }
.sp-more-menu button.danger { color: #e06a6a; }
.sp-mm-title { padding: 6px 10px; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
/* 手机端不提供高速界面（正常不会进到此处，仅作兜底） */
@media (max-width: 768px) {
  .sp-grid .sp-row { grid-template-columns: 1fr 1fr; }
  .sp-cover { height: 92px; }
  .sp-keys { width: calc(100vw - 32px); right: 16px; }
}

/* ================= 开发组专属「腾讯后台」皮肤（工单#24）=================
   判断逻辑：仅 html[data-isdev="1"] 且普通UI态 data-ui="normal" 时生效。
   版本活动界面 / 冰封界面（data-ui="version"）对所有人正常显示，绝不受影响。
   设计口径：腾讯云控制台风——中性冷灰底 + 白/深灰卡片 + 1px 细边框 + 小圆角，
   蓝色 #0052D9 只做「主按钮 / 选中 / 链接 / 关键数字」的点睛，不做大面积渐变和光晕。
   左上角标题切「内网版」（任何 UI 态都切）。
   注意：用户名/头衔颜色（.uname-dev）保持不变，这里只动界面配色。 */
html[data-isdev="1"][data-ui="normal"] {
  --dev-accent: #0052d9;
  --dev-accent-bright: #0052d9;
  --dev-accent-deep: #003c9e;
  --gold-rgb: 0,82,217;
  --gold-rgb-deep: 0,82,217;
  --gold-rgb-dark: 78,89,110;
  --gold-rgb-dark2: 78,89,110;
  --gold-chip-rgb: 0,82,217;
  --gold-on-rgb: 255,255,255;
  --gold-btn1: #0052d9;
  --gold-btn2: #0046c0;
  --gold-btn3: #0052d9;
  --gold-shadow-rgb: 29,33,41;
  /* 控制台是小圆角、扁平化 */
  --r-sm: 3px;
  --r-md: 4px;
  --r-lg: 6px;
}
/* 控制台亮色：中性冷灰底 + 纯白卡片 + #e5e6eb 细边框 */
html[data-isdev="1"][data-ui="normal"][data-theme="light"] {
  --bg-0: #f2f3f5;
  --bg-1: #f7f8fa;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --panel-2: #f7f8fa;
  --panel-3: #f0f1f3;
  --text: #1d2129;
  --text-2: #4e5969;
  --muted: #86909c;
  --line: #e5e6eb;
  --line-soft: #f0f1f3;
  --gold: #0052d9;
  --gold-bright: #0052d9;
  --gold-deep: #003c9e;
  --gold-glow: rgba(0,82,217,.16);
  --gold-hi: #e8f0ff;
  --gold-hex: #0052d9;
  --gold-hex-deep: #003c9e;
  --gold-hex-mid: #2468d9;
  --gold-hex-edge: #b8cdf0;
  --gold-hex-dark1: #1d2129;
  --gold-hex-dark2: #0052d9;
  --gold-hex-dark3: #4e5969;
  --gold-on: #ffffff;
  --shadow: 0 4px 16px rgba(29,33,41,.06);
  /* 米金面板/背景 → 控制台冷灰白 */
  --panel-white: #ffffff;
  --panel-beige: #f7f8fa;
  --panel-beige2: #f2f3f5;
  --panel-white-rgb: 255,255,255;
  --panel-beige-rgb: 247,248,250;
  --bg-beige1: #f2f3f5;
  --bg-beige2: #f2f3f5;
  --bg-beige3: #f7f8fa;
  --bg-beige4: #f7f8fa;
}
html[data-isdev="1"][data-ui="normal"][data-theme="light"] .dev-accent-text { color: var(--dev-accent); }
/* 控制台暗色：中性深灰（不是藏青），蓝只做点缀 */
html[data-isdev="1"][data-ui="normal"][data-theme="dark"] {
  --bg-0: #141416;
  --bg-1: #18181b;
  --bg-2: #1e1e22;
  --panel: rgba(30,30,34,.94);
  --panel-solid: #1e1e22;
  --panel-2: #26262b;
  --panel-3: #2e2e34;
  --text: #e8e8ea;
  --text-2: #c9c9ce;
  --muted: #8f8f99;
  --line: rgba(255,255,255,.09);
  --line-soft: rgba(255,255,255,.06);
  --gold: #4c8bf5;
  --gold-bright: #6aa1ff;
  --gold-deep: #0052d9;
  --gold-glow: rgba(76,139,245,.2);
  --gold-hi: #cfe0ff;
  --gold-hex: #6aa1ff;
  --gold-hex-deep: #0052d9;
  --gold-hex-mid: #2f6fe0;
  --gold-hex-edge: #3b7de0;
  --gold-hex-dark1: #9dbdf5;
  --gold-hex-dark2: #6aa1ff;
  --gold-hex-dark3: #9dbdf5;
  --gold-on: #ffffff;
  --shadow: 0 8px 24px rgba(0,0,0,.45);
  --panel-white: #1e1e22;
  --panel-beige: #26262b;
  --panel-beige2: #2e2e34;
  --panel-white-rgb: 30,30,34;
  --panel-beige-rgb: 38,38,43;
  --bg-beige1: #141416;
  --bg-beige2: #141416;
  --bg-beige3: #18181b;
  --bg-beige4: #18181b;
}
/* 背景层：控制台是干净纯色底（用户自选壁纸时不动） */
html[data-isdev="1"][data-ui="normal"]:not([data-bg]) #bg-layer {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0)) !important;
}
html[data-isdev="1"][data-ui="normal"] .bg-glow,
html[data-isdev="1"][data-ui="normal"] .bg-stars,
html[data-isdev="1"][data-ui="normal"] .bg-vignette { display: none !important; }
/* 侧栏 / 顶栏：纯色 + 1px 分隔线，扁平 */
html[data-isdev="1"][data-ui="normal"][data-theme="light"] .sidebar {
  background: #ffffff;
  border-right: 1px solid #e5e6eb;
  box-shadow: none;
}
html[data-isdev="1"][data-ui="normal"][data-theme="light"] .topbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e6eb;
  box-shadow: none;
}
html[data-isdev="1"][data-ui="normal"][data-theme="dark"] .sidebar {
  background: #18181b;
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: none;
}
html[data-isdev="1"][data-ui="normal"][data-theme="dark"] .topbar {
  background: #18181b;
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: none;
}
/* 主按钮：控制台扁平蓝，白字，无渐变无光晕 */
html[data-isdev="1"][data-ui="normal"] .btn-gold {
  background: #0052d9;
  border-color: #0052d9;
  color: #ffffff;
  box-shadow: none;
}
html[data-isdev="1"][data-ui="normal"] .btn-gold:hover { background: #0046c0; border-color: #0046c0; }
/* 次按钮：白底细边，hover 浅蓝 */
html[data-isdev="1"][data-ui="normal"][data-theme="light"] .btn {
  background: #ffffff;
  border-color: #e5e6eb;
  color: #1d2129;
  box-shadow: none;
}
html[data-isdev="1"][data-ui="normal"][data-theme="light"] .btn:hover { border-color: #0052d9; color: #0052d9; }
/* 左上角：内网版标题切换（普通UI态 / 冰封等任何 UI 态都显示内网版） */
html[data-isdev="1"] .brand-sub-normal { display: none; }
html[data-isdev="1"] .brand-sub-dev { display: block; letter-spacing: .5px; }
html[data-isdev="1"][data-ui="normal"] .brand-sub-dev { color: var(--dev-accent); font-weight: 600; }
/* 开发组用户名金色（身份颜色不动，改的只是界面） */
.uname-dev { color: #f4d06a; font-weight: 700; text-shadow: 0 0 12px rgba(244,208,106,.35); }
[data-theme="light"] .uname-dev { color: #8a6a1e; text-shadow: none; }
/* 欢迎弹窗：控制台式（左侧蓝色装饰线，不用大光斑） */
.dev-welcome { text-align: center; padding: 10px 0 4px; }
.dev-welcome-crest { font-size: 40px; color: var(--dev-accent); line-height: 1; margin-bottom: 14px; }
.dev-welcome-name { font-size: 17px; color: var(--text); font-weight: 600; margin-bottom: 8px; }
.dev-welcome-name b { color: var(--dev-accent); }
.dev-welcome-sub { font-size: 12.5px; color: var(--muted); }
html[data-isdev="1"][data-ui="normal"] .modal { border: 1px solid var(--line); }
/* 控制台质感：面板扁平化（去玻璃模糊/大投影），导航选中=浅蓝底蓝字 */
html[data-isdev="1"][data-ui="normal"] .panel {
  background: var(--panel-solid);
  backdrop-filter: none;
  box-shadow: none;
  border: 1px solid var(--line);
}
html[data-isdev="1"][data-ui="normal"] .modal { background: var(--panel-solid); }
html[data-isdev="1"][data-ui="normal"] .brand-name { color: var(--text); font-weight: 600; }
html[data-isdev="1"][data-ui="normal"] .nav-item.active {
  background: rgba(0,82,217,.08);
  color: var(--dev-accent);
  transform: none;
}
html[data-isdev="1"][data-ui="normal"][data-theme="dark"] .nav-item.active {
  background: rgba(76,139,245,.14);
  color: #9cc2ff;
}
html[data-isdev="1"][data-ui="normal"] .nav-item:hover { transform: none; }
html[data-isdev="1"][data-ui="normal"] .nav-badge { background: rgba(0,82,217,.1); color: var(--dev-accent); }
html[data-isdev="1"][data-ui="normal"][data-theme="dark"] .nav-badge { background: rgba(76,139,245,.16); color: #9cc2ff; }

/* ===== 语音包选择 / 配置（工单#24）===== */
.voice-pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.vp-card { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; cursor: pointer; background: var(--panel-2); transition: border-color .15s, background .15s; }
.vp-card:hover { border-color: rgba(106,161,255,.5); }
.vp-card.on { border-color: var(--gold-bright); background: rgba(106,161,255,.12); box-shadow: 0 0 0 1px var(--gold-glow) inset; }
.vp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.vp-ico { color: var(--gold-bright); font-size: 16px; }
.vp-name { font-weight: 600; color: var(--text); flex: 1; }
.vp-on { font-size: 11px; color: #ffffff; background: var(--dev-accent); padding: 1px 7px; border-radius: 10px; }
.vp-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.vp-chip { font-size: 11px; color: var(--gold-bright); background: rgba(106,161,255,.14); border-radius: 6px; padding: 1px 7px; }
/* 配置面板 */
.vpc-wrap { max-height: 62vh; overflow: auto; padding-right: 4px; }
.vpc-pack { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; padding: 10px 12px; }
.vpc-pack-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--gold-bright); font-weight: 600; margin-bottom: 8px; }
.vpc-pack-ops { display: flex; gap: 6px; }
.vpc-row { border-top: 1px solid var(--line-soft); padding: 8px 0; }
.vpc-row-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; margin-bottom: 6px; }
.vpc-items { display: flex; flex-wrap: wrap; gap: 6px; }
.vp-item { display: inline-flex; align-items: center; gap: 4px; background: var(--panel-3); border-radius: 6px; padding: 2px 4px 2px 8px; font-size: 11.5px; max-width: 230px; }
.vp-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.vp-mini { background: none; border: none; color: var(--gold); cursor: pointer; font-size: 12px; padding: 2px 4px; }
.vp-mini.danger { color: var(--danger); }
.vp-upload { position: relative; cursor: pointer; color: var(--gold-bright); font-size: 11.5px; border: 1px dashed var(--line); border-radius: 6px; padding: 2px 8px; }
.vp-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

/* 开发组控制台：分段控件选中=白底蓝字胶囊（亮）/ 深灰底浅蓝字（暗） */
html[data-isdev="1"][data-ui="normal"][data-theme="light"] .seg button.on {
  background: #ffffff;
  color: #0052d9;
  box-shadow: 0 1px 3px rgba(29,33,41,.1);
}
html[data-isdev="1"][data-ui="normal"][data-theme="dark"] .seg button.on {
  background: #2e2e34;
  color: #9cc2ff;
}
