/* ================= 原神风格设计系统 ================= */
:root {
  --bg-0: #0f1119;
  --bg-1: #161925;
  --bg-2: #1e2230;
  --panel: rgba(35, 39, 53, 0.86);
  --panel-solid: #232735;
  --panel-2: #2b3042;
  --panel-3: #343a4e;

  --gold: var(--gold-hex,#d3bc8e);
  --gold-bright: #ffe6b0;
  --gold-deep: var(--gold-hex-deep,#a8894f);
  --gold-glow: rgba(211, 188, 142, 0.35);

  /* 原神 UI 文字统一走暖金调中性色：正文暖白、次要暖米、辅助暖灰，
     避免混入冷蓝灰导致与金色主题「配色不纯」。 */
  --text: #f0ead9;
  --text-2: #d3c9b2;
  --muted: #9c927d;
  --line: rgba(211, 188, 142, 0.18);
  --line-soft: rgba(255, 255, 255, 0.06);

  --danger: #ff6b6b;
  --danger-deep: #d3454b;
  --warn: #ffbe5c;
  --ok: #86e0a8;
  --info: #7fc8f8;
  --anemo: #74c2a8;
  --geo: #fab632;
  --electro: #af8ec1;
  --hydro: #4cc2f1;
  --pyro: #ef7938;
  --cryo: #9fd6e3;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(.22, .8, .26, 1);
  --font: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  --font-title: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-0);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}
.hidden { display: none !important; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(var(--gold-rgb,211,188,142),.22); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--gold-rgb,211,188,142),.4); }

/* ================= 背景 ================= */
#bg-layer { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 78% -10%, #26304a 0%, transparent 60%),
    radial-gradient(900px 600px at 8% 100%, #1d2738 0%, transparent 62%),
    linear-gradient(160deg, #0e1018 0%, #141826 45%, #10131c 100%);
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.g1 { width: 620px; height: 620px; left: -140px; top: -180px; background: radial-gradient(circle, rgba(var(--gold-rgb,211,188,142),.16), transparent 65%); animation: float1 26s ease-in-out infinite; }
.g2 { width: 520px; height: 520px; right: -120px; top: 22%; background: radial-gradient(circle, rgba(122,168,255,.12), transparent 65%); animation: float2 32s ease-in-out infinite; }
.g3 { width: 700px; height: 700px; left: 32%; bottom: -420px; background: radial-gradient(circle, rgba(175,142,193,.12), transparent 65%); animation: float1 38s ease-in-out infinite reverse; }
.bg-stars { position: absolute; inset: 0; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 28% 62%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.4px 1.4px at 44% 28%, rgba(255,230,176,.55), transparent),
    radial-gradient(1px 1px at 62% 74%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.2px 1.2px at 78% 34%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 88% 66%, rgba(255,230,176,.4), transparent),
    radial-gradient(1px 1px at 36% 88%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 70% 10%, rgba(255,255,255,.45), transparent);
  animation: twinkle 7s ease-in-out infinite alternate;
}
.bg-vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.55) 100%); }

@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.08); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px, 24px) scale(1.12); } }
@keyframes twinkle { from { opacity: .35; } to { opacity: .7; } }

/* ================= 登录 ================= */
.login-screen { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; }
.login-panel {
  position: relative; width: 400px; max-width: 100%; padding: 42px 38px 30px;
  background: linear-gradient(170deg, rgba(43,48,66,.96), rgba(28,32,44,.97));
  border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 30px 90px rgba(0,0,0,.6), inset 0 0 60px rgba(var(--gold-rgb,211,188,142),.05);
  animation: panelIn .7s var(--ease) both;
}
.login-panel::before, .login-panel::after {
  content: ""; position: absolute; width: 26px; height: 26px; border: 1px solid var(--gold); opacity: .65;
}
.login-panel::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.login-panel::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.login-crest { width: 92px; height: 92px; margin: 0 auto 14px; animation: crestBreathe 4s ease-in-out infinite; }
.crest-svg { width: 100%; height: 100%; filter: drop-shadow(0 0 18px rgba(var(--gold-rgb,211,188,142),.5)); }
.crest-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; filter: drop-shadow(0 0 22px rgba(var(--gold-rgb,211,188,142),.55)); }
@keyframes crestSpin { to { transform: rotate(360deg); } }
@keyframes crestBreathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.login-title { font-family: var(--font-title); font-size: 26px; letter-spacing: 6px; text-align: center; margin: 0 0 6px;
  background: linear-gradient(180deg, var(--gold-hi,#fff6e2), var(--gold-hex,#d3bc8e) 60%, var(--gold-hex-deep,#a8894f)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-sub { text-align: center; color: var(--muted); font-size: 12px; letter-spacing: 2px; margin: 0 0 28px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 12px; color: var(--gold); letter-spacing: 2px; margin-bottom: 7px; }
.field input {
  width: 100%; padding: 11px 13px; background: rgba(15,17,25,.7); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-sm); outline: none; font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb,211,188,142),.12); }
.login-error { min-height: 18px; color: var(--danger); font-size: 12px; margin-bottom: 8px; }
.login-foot { margin-top: 20px; text-align: center; color: #5f6675; font-size: 11px; letter-spacing: 2px; }

/* ================= 布局 ================= */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: 224px 1fr; height: 100vh; }

.sidebar {
  display: flex; flex-direction: column; padding: 22px 14px 14px;
  background: linear-gradient(180deg, rgba(24,28,40,.92), rgba(17,20,29,.96));
  border-right: 1px solid var(--line); backdrop-filter: blur(14px);
}
.brand { display: flex; gap: 10px; align-items: center; padding: 0 8px 20px; border-bottom: 1px solid var(--line-soft); margin-bottom: 16px; }
.brand-mark {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(255,244,214,.18), rgba(185,143,78,.08));
  border: 1px solid rgba(var(--gold-rgb,211,188,142),.4);
  box-shadow: 0 0 20px rgba(var(--gold-rgb,211,188,142),.32), inset 0 0 12px rgba(255,244,214,.1);
}
.paimon-logo { width: 100%; height: 100%; object-fit: cover; animation: logoGlow 6s ease-in-out infinite; }
@keyframes logoGlow { 0%,100% { filter: drop-shadow(0 0 5px rgba(230,207,154,.4)); } 50% { filter: drop-shadow(0 0 11px rgba(255,244,214,.7)); } }
.brand-name { font-size: 14px; letter-spacing: 1px; color: var(--gold-bright); }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 3px; }
.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  color: var(--text-2); text-decoration: none; border-radius: var(--r-sm); font-size: 13.5px; letter-spacing: .5px;
  transition: background .22s var(--ease), color .22s, transform .22s;
}
.nav-item::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 0; background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  transform: translateY(-50%); border-radius: 3px; transition: height .25s var(--ease);
}
.nav-item:hover { background: rgba(var(--gold-rgb,211,188,142),.07); color: var(--text); transform: translateX(2px); }
.nav-item.active { background: linear-gradient(90deg, rgba(var(--gold-rgb,211,188,142),.16), rgba(var(--gold-rgb,211,188,142),.02)); color: var(--gold-bright); }
.nav-item.active::before { height: 22px; }
.nav-ico { width: 18px; text-align: center; font-size: 14px; opacity: .9; }
.nav-badge {
  margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; font-size: 11px;
  display: grid; place-items: center; background: rgba(var(--gold-rgb,211,188,142),.18); color: var(--gold-bright);
  border: 1px solid rgba(var(--gold-rgb,211,188,142),.3);
}
.nav-badge.hot { background: linear-gradient(140deg, #ff9d5c, #e2574c); border-color: #ffb27a; color: #fff; animation: pulseBadge 2s infinite; }
@keyframes pulseBadge { 0%,100% { box-shadow: 0 0 0 0 rgba(255,120,80,.4); } 50% { box-shadow: 0 0 0 6px rgba(255,120,80,0); } }
.sidebar-foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line-soft); }
.conn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.conn-dot.ok { background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pulseDot 2.4s infinite; }
.conn-dot.err { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.topbar {
  /* position+z-index：topbar 带 backdrop-filter 会创建独立层叠上下文，通知面板等子浮层的
     z-index 只在本上下文内生效；不给自己层级的话，审核页内容按 DOM 顺序盖住通知面板。
     30 = 高于普通内容、低于 modal(60)/toast(80)/zoom(70)，侧边栏(50)打开时仍压住顶栏。 */
  position: relative; z-index: 30;
  height: 68px; flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; border-bottom: 1px solid var(--line); background: rgba(18,21,31,.55); backdrop-filter: blur(10px);
}
.topbar-left { display: flex; align-items: baseline; gap: 12px; }
.topbar h2 { margin: 0; font-family: var(--font-title); font-size: 19px; letter-spacing: 3px; font-weight: 500; color: var(--gold-bright); }
.view-sub { font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.scan-state { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); padding: 5px 11px; border: 1px solid var(--line-soft); border-radius: 20px; }
.scan-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulseDot 2s infinite; }
.scan-state.paused i { background: var(--warn); }
.scan-state.err i { background: var(--danger); animation: none; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border: 1px solid var(--line-soft); border-radius: 30px; background: rgba(255,255,255,.02); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px;
  background: linear-gradient(150deg, #4a5470, #2b3244); border: 1px solid var(--gold); color: var(--gold-bright); }
.user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.user-meta span { font-size: 12.5px; }
.user-meta em { font-size: 10.5px; color: var(--muted); font-style: normal; letter-spacing: 1px; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; background: transparent; border: 1px solid var(--line-soft); color: var(--muted); cursor: pointer; transition: .2s; }
.icon-btn:hover { color: var(--danger); border-color: rgba(255,107,107,.4); background: rgba(255,107,107,.08); }
/* 汉堡菜单按钮：桌面端隐藏，手机端显示 */
.btn-menu { display: none; }
.btn-menu:hover { color: var(--gold); border-color: var(--line); background: rgba(var(--gold-rgb,211,188,142),.08); }
/* 侧栏抽屉遮罩（手机端）—— 纯半透明，不用 blur（移动端 backdrop-filter 易渲染异常且耗性能） */
.nav-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(6,8,14,.55); animation: maskIn .2s ease both; }

.view { flex: 1; overflow: auto; padding: 22px 26px 40px; position: relative; }
.view-enter { animation: viewIn .45s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ================= 通用组件 ================= */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; font-size: 13px; font-family: var(--font); letter-spacing: 1px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text-2);
  border-radius: var(--r-sm); transition: all .22s var(--ease); overflow: hidden; white-space: nowrap;
}
.btn:hover { border-color: rgba(var(--gold-rgb,211,188,142),.5); color: var(--gold-bright); background: rgba(var(--gold-rgb,211,188,142),.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-gold {
  background: linear-gradient(160deg, var(--gold-hi,#f4e3bb), var(--gold-hex,#d3bc8e) 45%, var(--gold-hex-mid,#b99a63)); color: var(--gold-on,#2a2114); border-color: var(--gold-hex-edge,#e8d3a6); font-weight: 600;
  box-shadow: 0 6px 18px rgba(var(--gold-rgb,211,188,142),.22);
}
.btn-gold:hover { background: linear-gradient(160deg, #fff3d2, #e2cda2 45%, #c9aa72); color: #241c10; box-shadow: 0 8px 24px rgba(var(--gold-rgb,211,188,142),.35); }
.btn-danger { border-color: rgba(255,107,107,.35); color: #ff9b9b; }
.btn-danger:hover { background: rgba(255,107,107,.12); border-color: var(--danger); color: #ffd0d0; }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; padding: 12px; }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-magic::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-magic:hover::after { animation: sheen .8s ease; }
@keyframes sheen { to { transform: translateX(120%); } }

.panel {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md);
  backdrop-filter: blur(8px); box-shadow: 0 10px 34px rgba(0,0,0,.28);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.panel-title { font-size: 14px; letter-spacing: 2px; color: var(--gold); display: flex; align-items: center; gap: 8px; }
.panel-title::before { content: "◆"; font-size: 8px; color: var(--gold-deep); }
.panel-body { padding: 16px 18px; }

.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; font-size: 11px; letter-spacing: .5px;
  border: 1px solid rgba(var(--gold-rgb,211,188,142),.28); background: rgba(var(--gold-rgb,211,188,142),.1); color: var(--gold-bright);
}
.tag-danger { border-color: rgba(255,107,107,.35); background: rgba(255,107,107,.1); color: #ffb0b0; }
.tag-ok { border-color: rgba(134,224,168,.35); background: rgba(134,224,168,.1); color: #a9f0c6; }
.tag-info { border-color: rgba(127,200,248,.35); background: rgba(127,200,248,.1); color: #b3e2ff; }
.tag-pass { border-color: rgba(126,211,149,.35); background: rgba(126,211,149,.12); color: #9fe0b4; }
.tag-warn { border-color: rgba(255,190,92,.35); background: rgba(255,190,92,.1); color: #ffd9a0; }
.tag-mute { border-color: var(--line-soft); background: rgba(255,255,255,.03); color: var(--muted); }

.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 70px 20px; color: var(--muted); }
.empty-mark { font-size: 40px; opacity: .35; animation: floatSoft 4s ease-in-out infinite; }
@keyframes floatSoft { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ================= 待审核 ================= */
.queue-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; background: rgba(15,17,25,.6); border: 1px solid var(--line-soft); border-radius: 8px; }
.seg button { padding: 6px 16px; font-size: 12.5px; background: transparent; border: 0; color: var(--muted); cursor: pointer; border-radius: 6px; transition: .2s; letter-spacing: 1px; }
.seg button.on { background: linear-gradient(150deg, rgba(var(--gold-rgb,211,188,142),.9), rgba(var(--gold-rgb-deep,185,154,99),.9)); color: var(--gold-on,#241d10); font-weight: 600; }
/* 工具栏「忽略他人已审」勾选 */
.mine-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(15,17,25,.6); cursor: pointer; user-select: none; }
.mine-toggle input { width: 14px; height: 14px; accent-color: var(--gold-hex,#d3bc8e); cursor: pointer; }
.mine-toggle span { font-size: 12.5px; color: var(--muted); letter-spacing: 1px; }
.mine-toggle:has(input:checked) span { color: var(--gold-bright); }
.toolbar-spacer { flex: 1; }

.queue-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.q-card {
  position: relative; padding: 22px 24px; min-height: 420px;
  animation: cardIn .42s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
.q-card.leaving { animation: cardOut .3s var(--ease) forwards; }
@keyframes cardOut { to { opacity: 0; transform: translateX(40px) scale(.97); } }

.q-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 18px; }
.q-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 17px;
  background: linear-gradient(150deg, #3b4560, #262c3d); border: 1px solid var(--line); color: var(--gold); }
.q-author { font-size: 15px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.q-meta { display: flex; gap: 12px; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.q-head-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.q-index { font-size: 11px; color: var(--muted); letter-spacing: 1px; }

.q-title { font-family: var(--font-title); font-size: 21px; line-height: 1.5; margin: 0 0 12px; color: #fdf8ec; letter-spacing: .5px; }
.q-content { font-size: 14px; line-height: 1.85; color: var(--text-2); white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; }
.q-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 16px; }
.q-images img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-soft); cursor: zoom-in; transition: transform .3s var(--ease), box-shadow .3s; }
.q-images img:hover { transform: scale(1.03); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.q-img-more { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; background: rgba(15,17,25,.7);
  border: 1px dashed var(--line); color: var(--gold); font-size: 15px; letter-spacing: 1px; }
.q-foot { display: flex; gap: 16px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); }
.q-copy-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--gold); font-size: 12px;
  font-family: var(--font); cursor: pointer; transition: background .15s, transform .12s; }
.q-copy-btn:hover { background: var(--gold-glow); }
.q-copy-btn:active { transform: scale(.96); }
[data-theme="light"] .q-copy-btn { color: var(--gold-hex-dark1,#7a5f28); }

/* 处置栏 */
.act-panel { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 100px); }
.act-scroll { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; min-height: 0; padding-right: 3px; }
.act-scroll::-webkit-scrollbar { width: 4px; }
.act-scroll::-webkit-scrollbar-thumb { background: rgba(var(--gold-rgb,211,188,142),.22); border-radius: 2px; }
.act-submit { flex: none; }
/* 禁言四宫格 */
.mute-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mute-grid .act-opt { padding: 8px 9px; }
.mute-grid .act-opt .act-desc { display: none; }
.act-group { padding: 14px; }
.act-group-title { font-size: 11.5px; letter-spacing: 2px; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.act-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.act-opt {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 7px; cursor: pointer;
  border: 1px solid transparent; transition: all .18s var(--ease); font-size: 13px; color: var(--text-2); position: relative;
}
.act-opt:hover { background: rgba(255,255,255,.04); border-color: var(--line-soft); }
.act-opt.on { background: rgba(var(--gold-rgb,211,188,142),.12); border-color: rgba(var(--gold-rgb,211,188,142),.45); color: var(--gold-bright); }
.act-opt.on.danger { background: rgba(255,107,107,.12); border-color: rgba(255,107,107,.5); color: #ffc0c0; }
.act-key {
  width: 20px; height: 20px; flex: none; display: grid; place-items: center; font-size: 11px; border-radius: 4px;
  background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--line-soft);
}
.act-opt.on .act-key { background: var(--gold); color: var(--gold-on,#241d10); border-color: var(--gold-bright); }
.act-opt.on.danger .act-key { background: var(--danger); color: #fff; border-color: #ffb0b0; }
.act-desc { font-size: 10.5px; color: var(--muted); margin-left: auto; }

.tag-input { display: none; padding: 8px 0 2px; }
.tag-input.show { display: block; animation: fadeSlide .25s var(--ease); }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.tag-input input, .tag-input textarea {
  width: 100%; padding: 8px 10px; background: rgba(15,17,25,.65); border: 1px solid var(--line-soft);
  border-radius: 6px; color: var(--text); font-size: 12.5px; font-family: var(--font); outline: none; resize: vertical;
}
.tag-input input:focus, .tag-input textarea:focus { border-color: var(--gold); }
.tag-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.tag-presets button { padding: 3px 9px; font-size: 11px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid var(--line-soft); color: var(--muted); cursor: pointer; }
.tag-presets button:hover { color: var(--gold-bright); border-color: var(--gold); }

.summary-bar { padding: 13px 15px; border-radius: 8px; background: rgba(15,17,25,.55); border: 1px dashed rgba(var(--gold-rgb,211,188,142),.3); font-size: 12.5px; line-height: 1.7; color: var(--text-2); }
.summary-bar b { color: var(--gold-bright); font-weight: 600; }
.summary-bar .warn { color: var(--warn); }
.summary-bar .danger { color: var(--danger); }
.submit-row { display: flex; flex-direction: column; gap: 8px; }
.submit-hint { font-size: 11px; color: var(--muted); text-align: center; letter-spacing: 1px; }
.submit-meta { display: flex; align-items: center; gap: 8px; margin: 10px 0 9px; font-size: 11.5px; color: var(--muted); letter-spacing: .5px; }
.submit-meta .spacer { flex: 1; }
.submit-meta .timer-val { color: var(--gold-bright); font-family: var(--font-title); font-size: 13.5px; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.q-timer {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 20px;
  background: rgba(116,194,168,.1); border: 1px solid rgba(116,194,168,.3); color: #8fd9c2;
  font-size: 11px; letter-spacing: .5px; font-variant-numeric: tabular-nums;
}
.q-timer i { font-style: normal; font-size: 10px; opacity: .85; }
.check-inline {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2);
  padding: 7px 10px; border: 1px solid var(--line-soft); border-radius: 6px;
  background: rgba(15,17,25,.5); cursor: pointer; transition: .2s; white-space: nowrap;
}
.check-inline:hover { border-color: var(--line); color: var(--gold-bright); }
.scope-tip { margin-top: 10px; font-size: 11.5px; color: var(--muted); letter-spacing: .5px; }
.scope-tip.on { color: #8fd9c2; }
.stat-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.stat-toolbar .spacer { flex: 1; }
.eff-top {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px dashed var(--line-soft);
}
.eff-top .eff-k { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: 1px; margin-bottom: 4px; }
.eff-top b { font-family: var(--font-title); font-size: 18px; color: var(--gold-bright); font-weight: 500; }
.eff-list { display: flex; flex-direction: column; gap: 9px; }
.eff-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 112px; gap: 10px; align-items: center; }
.eff-name { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eff-bar-wrap { height: 6px; border-radius: 4px; background: rgba(255,255,255,.05); overflow: hidden; }
.eff-bar { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); transition: width .6s var(--ease); }
.eff-num { font-size: 11px; color: var(--muted); text-align: right; white-space: nowrap; }
.eff-num em { font-style: normal; color: var(--gold-bright); margin-left: 4px; }
.detail-box { margin-top: 10px; padding: 10px 12px; border-radius: 7px; background: rgba(15,17,25,.55); border: 1px solid var(--line-soft); font-size: 12px; line-height: 1.8; color: var(--text-2); animation: fadeSlide .3s var(--ease); }
.detail-box .k { color: var(--muted); margin-right: 8px; }
.detail-box .v { color: var(--gold-bright); }
.detail-box .loading { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.spinner { width: 12px; height: 12px; border: 2px solid rgba(var(--gold-rgb,211,188,142),.25); border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.stage-hint { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 12px; color: var(--muted); border: 1px dashed var(--line-soft); border-radius: 8px; }

/* ================= 表格 ================= */
.table-wrap { overflow: auto; border-radius: var(--r-md); }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.data th {
  position: sticky; top: 0; z-index: 2; text-align: left; padding: 11px 12px; font-weight: 500; font-size: 11.5px;
  letter-spacing: 1.5px; color: var(--muted); background: #1b1f2c; border-bottom: 1px solid var(--line);
}
table.data td { padding: 12px; border-bottom: 1px solid var(--line-soft); color: var(--text-2); vertical-align: middle; }
table.data tbody tr { transition: background .18s; animation: rowIn .35s var(--ease) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
table.data tbody tr:hover { background: rgba(var(--gold-rgb,211,188,142),.05); }
table.data .cell-title { max-width: 420px; color: var(--text); }
table.data .clip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.data .muted { color: var(--muted); font-size: 12px; }
table.data .row-actions { display: flex; gap: 6px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.filter-item { display: flex; flex-direction: column; gap: 6px; }
.filter-item label { font-size: 11px; color: var(--muted); letter-spacing: 1.5px; }
.input, .select {
  padding: 8px 11px; background: rgba(15,17,25,.65); border: 1px solid var(--line-soft); border-radius: 6px;
  color: var(--text); font-size: 13px; outline: none; font-family: var(--font); transition: .2s; min-width: 130px;
}
.input:focus, .select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb,211,188,142),.1); }
.select option { background: #1c2030; }
.checkbox { width: 15px; height: 15px; accent-color: var(--gold); cursor: pointer; }

.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px 0; font-size: 12px; color: var(--muted); }
.pager-btns { display: flex; gap: 8px; }

/* ================= 数据看板 ================= */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { position: relative; padding: 18px 20px; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--gold-rgb,211,188,142),.16), transparent 70%); }
.stat-label { font-size: 11.5px; color: var(--muted); letter-spacing: 2px; margin-bottom: 10px; }
.stat-value { font-family: var(--font-title); font-size: 34px; line-height: 1; color: var(--gold-bright); letter-spacing: 1px; }
.stat-value.small { font-size: 26px; }
.stat-delta { margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.stat-delta .up { color: var(--danger); }
.stat-delta .down { color: var(--ok); }
.chart-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.chart-box { padding: 18px; min-height: 260px; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.bar-rect { transition: opacity .2s; cursor: pointer; }
.bar-rect:hover { opacity: .75; }
.donut-center { font-family: var(--font-title); fill: var(--gold-bright); }

/* ================= 弹窗 ================= */
.modal-mask { position: fixed; inset: 0; z-index: 60; background: rgba(6,8,14,.66); backdrop-filter: blur(6px); display: grid; place-items: center;
  animation: maskIn .22s ease both; padding: 20px; }
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 560px; max-width: 100%; max-height: 86vh; overflow: auto; position: relative;
  background: linear-gradient(170deg, #262b3b, #1b1f2b); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); animation: modalIn .3s var(--ease) both; padding: 26px 28px;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
.modal::before, .modal::after { content: ""; position: absolute; width: 22px; height: 22px; border: 1px solid var(--gold); opacity: .5; }
.modal::before { left: 8px; top: 8px; border-right: 0; border-bottom: 0; }
.modal::after { right: 8px; bottom: 8px; border-left: 0; border-top: 0; }
.modal h3 { margin: 0 0 6px; font-family: var(--font-title); font-size: 20px; letter-spacing: 2px; color: var(--gold-bright); font-weight: 500; }
.modal .modal-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 20px; }
.modal-body { font-size: 13.5px; line-height: 1.9; color: var(--text-2); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.modal-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.modal-list .li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 7px; background: rgba(15,17,25,.5); border: 1px solid var(--line-soft); }
.modal-list .li .ic { width: 18px; text-align: center; }
.modal-list .li.danger { border-color: rgba(255,107,107,.35); background: rgba(255,107,107,.08); }
.danger-text { color: var(--danger); }

.zoom-layer { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.85); display: grid; place-items: center; padding: 30px; animation: maskIn .2s; cursor: zoom-out; }
.zoom-layer img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }

/* toast */
.toast-wrap { position: fixed; top: 18px; right: 18px; z-index: 80; display: flex; flex-direction: column; gap: 10px; width: 340px; }
.toast {
  position: relative; display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px 16px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(150deg, rgba(43,48,66,.98), rgba(28,32,44,.98)); border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0,0,0,.5); animation: toastIn .38s var(--ease) both;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(.95); } to { opacity: 1; transform: none; } }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px) scale(.96); } }
.toast-ic { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.toast.ok .toast-ic { background: rgba(134,224,168,.15); color: var(--ok); border: 1px solid rgba(134,224,168,.4); }
.toast.err .toast-ic { background: rgba(255,107,107,.15); color: var(--danger); border: 1px solid rgba(255,107,107,.4); }
.toast.warn .toast-ic { background: rgba(255,190,92,.16); color: var(--warn); border: 1px solid rgba(255,190,92,.45); }
.toast.info .toast-ic { background: rgba(127,200,248,.15); color: var(--info); border: 1px solid rgba(127,200,248,.4); }
.toast-body { flex: 1; min-width: 0; }
.toast-title { font-size: 13.5px; color: var(--text); letter-spacing: .5px; }
.toast-desc { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.6; word-break: break-word; }
.toast-undo { margin-top: 8px; }
.toast-progress { position: absolute; left: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); animation: toastProg linear forwards; }
@keyframes toastProg { from { width: 100%; } to { width: 0; } }
.toast:hover .toast-progress { animation-play-state: paused; }
.toast-x {
  flex: none; width: 20px; height: 20px; margin: -2px -4px 0 0; border: none; border-radius: 6px;
  background: transparent; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background .15s, color .15s;
}
.toast-x:hover { background: rgba(255,255,255,.1); color: var(--text); }

/* 快捷键提示 */
.kbd { display: inline-block; padding: 1px 6px; font-size: 10.5px; border-radius: 4px; background: rgba(255,255,255,.06); border: 1px solid var(--line-soft); color: var(--muted); font-family: ui-monospace, monospace; }

/* 批量操作条 */
.bulk-bar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-top: 12px;
  background: linear-gradient(180deg, rgba(43,48,66,.98), rgba(30,34,46,.99)); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 -6px 30px rgba(0,0,0,.35); animation: bulkIn .3s var(--ease); }
@keyframes bulkIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.bulk-count { font-size: 12.5px; color: var(--gold-bright); }
.bulk-hint { font-size: 11.5px; color: var(--muted); }

.section-gap { height: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.flex { display: flex; } .gap8 { gap: 8px; } .gap12 { gap: 12px; } .items-center { align-items: center; }
.spacer { flex: 1; }
.text-muted { color: var(--muted); } .text-danger { color: var(--danger); } .text-ok { color: var(--ok); }
.fs12 { font-size: 12px; } .fs11 { font-size: 11px; }

@media (max-width: 1280px) {
  .queue-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .chart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .app { grid-template-columns: 72px 1fr; }
  .brand-text, .nav-label, .sidebar-foot span { display: none; }
  .nav-item { justify-content: center; }
  .queue-layout { grid-template-columns: 1fr; }
  .act-panel { position: static; max-height: none; }
  .act-scroll { overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ===== 用户详情（作者历史处置档案） ===== */
.mt4 { margin-top: 4px; }
.hist-badge {
  display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px;
  border-radius: 10px; font-size: 11px; font-weight: 600; cursor: pointer;
  background: rgba(193,120,60,.12); color: #a8662c; border: 1px solid rgba(193,120,60,.28);
  transition: filter .15s;
}
.hist-badge:hover { filter: brightness(.92); }
.hist-badge.hot {
  background: rgba(190,60,50,.14); color: #b02f26; border-color: rgba(190,60,50,.34);
  animation: histPulse 2.4s ease-in-out infinite;
}
@keyframes histPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(190,60,50,.18); }
  50% { box-shadow: 0 0 0 5px rgba(190,60,50,0); }
}

/* 头像占位：接口不返回头像，首字 + 按 ID 固定渐变色 */
.a-block {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px; letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.a-block.lg { width: 46px; height: 46px; font-size: 19px; }
.au-cell { display: flex; align-items: center; gap: 9px; }

.au-head { display: flex; align-items: center; gap: 12px; padding: 4px 0 12px; }
.au-name { font-size: 16px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.au-counts { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 4px 0 14px; }
.au-cnt {
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 6px; text-align: center;
  background: var(--panel-2, rgba(255,255,255,.5));
}
.au-cnt-v { font-size: 19px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.au-cnt-l { font-size: 11px; color: var(--muted); margin-top: 2px; }
.au-cnt.danger .au-cnt-v { color: #b02f26; }
.au-cnt.danger { border-color: rgba(190,60,50,.4); background: rgba(190,60,50,.06); }
.au-cnt.muted .au-cnt-v { color: var(--muted); }

.au-sec { margin-top: 4px; }
.au-sec-head {
  display: flex; align-items: center; gap: 8px; margin: 12px 0 8px;
  font-size: 12px; font-weight: 700; color: var(--text); letter-spacing: .5px;
}
.au-sec-head .btn { padding: 2px 8px; font-size: 11px; }

.au-feeds { display: flex; flex-direction: column; gap: 2px; }
.au-feed {
  display: flex; align-items: center; gap: 8px; padding: 6px 4px;
  border-bottom: 1px dashed var(--line); font-size: 12px;
}
.au-feed:last-child { border-bottom: none; }
.au-feed a { color: var(--gold); white-space: nowrap; }

/* 弹窗内容较长时可滚动 */
.modal-body { max-height: 68vh; overflow-y: auto; }

@media (max-width: 900px) {
  .au-counts { grid-template-columns: repeat(4, 1fr); }
}

/* 查看头像（详情面板内） */
.avatar-box { display: flex; align-items: center; gap: 12px; }
.avatar-box .avatar-img {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none;
  border: 2px solid var(--gold); box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: transform .18s;
}
.avatar-box .avatar-img:hover { transform: scale(1.05); }

/* 卡片头像：点击/按 0 拉取真实头像并替换占位 */
.q-avatar { cursor: pointer; overflow: hidden; flex: none; position: relative; transition: border-color .15s, transform .15s; }
.q-avatar:hover { border-color: var(--gold); transform: scale(1.05); }
.q-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.q-avatar.loading { font-size: 0; }
.q-avatar.loading .spinner { width: 16px; height: 16px; border-width: 2px; }

/* ================= 背景图（原神官方壁纸，亮暗主题各配） =================
   html[data-bg]：auto=跟随主题 | 1-8 指定图 | 无属性或 off=关闭（默认渐变） */
#bg-layer .bg-base {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  background-repeat: no-repeat; opacity: 0;
  transition: opacity .6s ease;
}
html[data-bg="1"] #bg-layer .bg-base { background-image: url('/bg/light-1.jpg'); opacity: 1; }
html[data-bg="2"] #bg-layer .bg-base { background-image: url('/bg/light-2.png'); opacity: 1; }
html[data-bg="3"] #bg-layer .bg-base { background-image: url('/bg/dark-1.jpg'); opacity: 1; }
html[data-bg="4"] #bg-layer .bg-base { background-image: url('/bg/dark-2.jpg'); opacity: 1; }
html[data-bg="5"] #bg-layer .bg-base { background-image: url('/bg/light-3.jpg'); opacity: 1; }
html[data-bg="6"] #bg-layer .bg-base { background-image: url('/bg/light-4.jpg'); opacity: 1; }
html[data-bg="7"] #bg-layer .bg-base { background-image: url('/bg/dark-3.png'); opacity: 1; }
html[data-bg="8"] #bg-layer .bg-base { background-image: url('/bg/dark-4.png'); opacity: 1; }
html[data-bg="auto"][data-theme="light"] #bg-layer .bg-base { background-image: url('/bg/light-1.jpg'); opacity: 1; }
html[data-bg="auto"][data-theme="dark"] #bg-layer .bg-base { background-image: url('/bg/dark-1.jpg'); opacity: 1; }
/* 壁纸之上的渐变遮罩：保证文字可读性（暗色加暗、亮色加白） */
#bg-layer .bg-shade { position: absolute; inset: 0; display: none; }
html[data-bg="1"] #bg-layer .bg-shade, html[data-bg="2"] #bg-layer .bg-shade,
html[data-bg="3"] #bg-layer .bg-shade, html[data-bg="4"] #bg-layer .bg-shade,
html[data-bg="5"] #bg-layer .bg-shade, html[data-bg="6"] #bg-layer .bg-shade,
html[data-bg="7"] #bg-layer .bg-shade, html[data-bg="8"] #bg-layer .bg-shade,
html[data-bg="auto"] #bg-layer .bg-shade { display: block; }
html[data-bg="1"] #bg-layer .bg-shade, html[data-bg="2"] #bg-layer .bg-shade,
html[data-bg="5"] #bg-layer .bg-shade, html[data-bg="6"] #bg-layer .bg-shade,
html[data-bg="auto"][data-theme="light"] #bg-layer .bg-shade {
  background: linear-gradient(160deg, rgba(250,247,239,.74), rgba(244,238,225,.56) 45%, rgba(236,228,210,.68));
}
html[data-bg="3"] #bg-layer .bg-shade, html[data-bg="4"] #bg-layer .bg-shade,
html[data-bg="7"] #bg-layer .bg-shade, html[data-bg="8"] #bg-layer .bg-shade,
html[data-bg="auto"][data-theme="dark"] #bg-layer .bg-shade {
  background: linear-gradient(160deg, rgba(10,12,20,.58), rgba(14,16,26,.44) 45%, rgba(8,10,16,.62));
}
/* 手机端背景图降低不透明度遮罩，省电并保证可读 */
@media (max-width: 768px) {
  html[data-bg="1"] #bg-layer .bg-shade, html[data-bg="2"] #bg-layer .bg-shade,
  html[data-bg="3"] #bg-layer .bg-shade, html[data-bg="4"] #bg-layer .bg-shade,
  html[data-bg="5"] #bg-layer .bg-shade, html[data-bg="6"] #bg-layer .bg-shade,
  html[data-bg="7"] #bg-layer .bg-shade, html[data-bg="8"] #bg-layer .bg-shade,
  html[data-bg="auto"] #bg-layer .bg-shade { opacity: .92; }
}

/* ================= 手机端悬浮快捷处置按钮 ================= */
/* 桌面端隐藏（桌面用右侧审核栏 + 快捷键），≤768px 显示 */
.fab-bar { display: none; }
.fab {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid; cursor: pointer;
  font-size: 16px; font-weight: 700; font-family: var(--font); letter-spacing: 0;
  box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .15s var(--ease), box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.fab:active { transform: scale(.92); }
.fab-ok { background: linear-gradient(150deg, #4f9e6f, #2f7d4f); border-color: #6fc793; color: #eafff2; }
.fab-warn { background: linear-gradient(150deg, var(--gold-btn1,#c99b3f), var(--gold-btn2,#a8781e)); border-color: var(--gold-btn3,#e3bb6a); color: var(--gold-hi,#fff6e2); }
.fab-danger { background: linear-gradient(150deg, #c75b5b, #a83a3a); border-color: #e08a8a; color: #ffeded; }

@media (max-width: 768px) {
  .fab-bar {
    display: flex; position: fixed; right: 14px; bottom: 18px; z-index: 40;
    flex-direction: column; gap: 10px;
  }
  /* 手机端全面禁用 backdrop-filter：修复点导航后莫名虚化 + 降低渲染负担 */
  .topbar, .sidebar, .panel, .modal-mask, .nav-backdrop, .toast, .login-panel {
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  .sidebar { background: linear-gradient(180deg, rgba(24,28,40,.985), rgba(17,20,29,.995)); }
  .topbar { background: rgba(18,21,31,.94); }
  [data-theme="light"] .sidebar { background: linear-gradient(180deg, rgba(250,247,239,.995), rgba(240,235,222,.998)); }
  [data-theme="light"] .topbar { background: rgba(250,247,239,.95); }
  .view { padding-bottom: 260px; } /* 给悬浮按钮留空间 */
}

/* ================= 帖子评论区（卡片下方） ================= */
.cmt-wrap { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-soft); }
.cmt-item { padding: 10px 12px; border-radius: 8px; background: rgba(15,17,25,.45); border: 1px solid var(--line-soft); margin-bottom: 8px; }
[data-theme="light"] .cmt-item { background: rgba(255,255,255,.65); }
.cmt-head { display: flex; align-items: center; gap: 10px; font-size: 12px; margin-bottom: 5px; }
.cmt-head b { color: var(--gold-bright); }
.cmt-body { font-size: 13px; line-height: 1.7; color: var(--text-2); word-break: break-word; white-space: pre-wrap; }
.cmt-replies { margin-top: 8px; padding: 6px 10px; border-left: 2px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.7; }
.cmt-reply b { color: var(--text-2); font-weight: 600; }

/* 计时中状态 */
.q-timer.on { background: rgba(134,224,168,.16); border-color: rgba(134,224,168,.5); color: #a9f0c6; animation: pulseDot 2.4s infinite; }

/* ================= 日间主题 ================= */
/* 夜间（dark）为默认，见 :root；此处为 light 覆盖 */
[data-theme="light"] {
  --bg-0: #efece3;
  --bg-1: #f7f4ec;
  --bg-2: #fdfbf5;
  --panel: rgba(255, 253, 247, 0.92);
  --panel-solid: var(--panel-white,#fffdf7);
  --panel-2: var(--panel-beige,#f4f0e6);
  --panel-3: #e9e3d4;

  --gold: var(--gold-hex-dark2,#8f7440);
  --gold-bright: var(--gold-hex-dark1,#7a5f28);
  --gold-deep: #b0965e;
  --gold-glow: rgba(154, 130, 82, 0.25);

  --text: #2e2b24;
  --text-2: #4a463c;
  --muted: #8d8776;
  --line: rgba(154, 130, 82, 0.4);
  --line-soft: rgba(74, 70, 60, 0.13);

  --danger: #c74e4e;
  --danger-deep: #a83a3a;
  --warn: #a86f1e;
  --ok: #35855a;
  --info: #2f6fa3;
  --shadow: 0 18px 50px rgba(96, 84, 52, 0.22);
}
[data-theme="light"] #bg-layer {
  background:
    radial-gradient(1200px 700px at 78% -10%, var(--gold-hi,#fff6e2) 0%, transparent 60%),
    radial-gradient(900px 600px at 8% 100%, var(--bg-beige1,#efe6d2) 0%, transparent 62%),
    linear-gradient(160deg, var(--bg-beige2,#f6f2e8) 0%, var(--bg-beige3,#efeadd) 45%, var(--bg-beige4,#f4efe3) 100%);
}
[data-theme="light"] .bg-glow { opacity: .35; }
[data-theme="light"] .bg-stars { opacity: .12; }
[data-theme="light"] .bg-vignette { background: radial-gradient(120% 90% at 50% 40%, transparent 60%, rgba(120,105,70,.14) 100%); }

[data-theme="light"] .login-panel {
  background: linear-gradient(170deg, rgba(var(--panel-white-rgb,255,253,247),.98), rgba(var(--panel-beige-rgb,244,239,228),.98));
  box-shadow: 0 30px 90px rgba(var(--gold-shadow-rgb,96,84,52),.3), inset 0 0 60px rgba(var(--gold-rgb,211,188,142),.1);
}
[data-theme="light"] .login-title { background: linear-gradient(180deg, var(--gold-hex-dark1,#7a5f28), var(--gold-hex-deep,#a8894f) 60%, var(--gold-hex-dark2,#8f7440)); -webkit-background-clip: text; background-clip: text; }
[data-theme="light"] .field input { background: rgba(255,255,255,.85); color: var(--text); }
[data-theme="light"] .login-foot { color: var(--muted); }

[data-theme="light"] .sidebar { background: linear-gradient(180deg, rgba(250,247,239,.96), rgba(240,235,222,.98)); }
[data-theme="light"] .topbar { background: rgba(250,247,239,.72); }
[data-theme="light"] .user-chip { background: rgba(255,255,255,.6); }
[data-theme="light"] .btn { background: rgba(255,255,255,.6); }
[data-theme="light"] .seg { background: rgba(74,70,60,.07); }
[data-theme="light"] .seg button.on { background: linear-gradient(150deg, var(--gold-hex,#d3bc8e), var(--gold-hex-mid,#b99a63)); color: var(--gold-on,#241d10); }
[data-theme="light"] .q-title { color: var(--gold-hex-dark1,#33291a); }
[data-theme="light"] .q-avatar { background: linear-gradient(150deg, #f2ead6, #ddcea9); }
[data-theme="light"] .q-img-more { background: rgba(244,240,230,.9); }
[data-theme="light"] .tag-danger { color: #b0483f; }
[data-theme="light"] .tag-ok { color: #2f7d4f; }
[data-theme="light"] .tag-info { color: #2c6d9e; }
[data-theme="light"] .tag-pass { color: #2f7d47; }
[data-theme="light"] .tag-warn { color: #96690f; }
[data-theme="light"] .q-timer { color: #2f7d60; }
[data-theme="light"] .scope-tip.on { color: #2f7d60; }
[data-theme="light"] .summary-bar { background: rgba(255,255,255,.65); }
[data-theme="light"] .check-inline { background: rgba(255,255,255,.7); }
[data-theme="light"] .detail-box { background: rgba(255,255,255,.65); }
[data-theme="light"] .tag-input input, [data-theme="light"] .tag-input textarea { background: rgba(255,255,255,.85); color: var(--text); }
[data-theme="light"] .act-key { background: rgba(74,70,60,.08); }
[data-theme="light"] .act-opt.on.danger { color: #b0483f; }
[data-theme="light"] .btn-danger { color: #c74e4e; }
[data-theme="light"] .btn-danger:hover { color: #a83a3a; }
[data-theme="light"] .eff-bar-wrap { background: rgba(74,70,60,.12); }
[data-theme="light"] table.data th { background: #efe9db; }
[data-theme="light"] .select option { background: var(--panel-white,#fffdf7); color: var(--text); }
[data-theme="light"] .input, [data-theme="light"] .select { background: rgba(255,255,255,.85); color: var(--text); }
[data-theme="light"] .modal-mask { background: rgba(var(--gold-shadow-rgb,96,84,52),.35); }
[data-theme="light"] .modal { background: linear-gradient(170deg, var(--panel-white,#fffdf7), var(--panel-beige2,#f1ecdf)); }
[data-theme="light"] .toast { background: linear-gradient(150deg, rgba(var(--panel-white-rgb,255,253,247),.99), rgba(244,240,230,.99)); }
[data-theme="light"] .bulk-bar { background: linear-gradient(180deg, rgba(var(--panel-white-rgb,255,253,247),.98), rgba(244,240,230,.99)); }
[data-theme="light"] .kbd { background: rgba(74,70,60,.08); }
[data-theme="light"] .skeleton { background: linear-gradient(90deg, rgba(74,70,60,.06), rgba(74,70,60,.12), rgba(74,70,60,.06)); background-size: 200% 100%; }
[data-theme="light"] .zoom-layer { background: rgba(60,54,40,.82); }

/* ================= 手机端专属 UI（≤768px） ================= */
@media (max-width: 768px) {
  /* 整体布局：侧栏改为抽屉 */
  .app { display: block; height: 100dvh; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; width: 272px;
    transform: translateX(-104%); transition: transform .28s var(--ease);
    box-shadow: 24px 0 70px rgba(0,0,0,.35); padding: 18px 14px 14px;
    /* 抽屉必须完全不透明：否则切换导航时透出壁纸+遮罩，看起来像"虚化" */
    background: #12151f !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  [data-theme="light"] .sidebar { background: #faf7ef !important; }
  .sidebar.open { transform: none; }
  /* 遮罩只负责"变暗"，绝不拦截点击：pointer-events:none 让点击穿透到抽屉导航项。
     （sidebar 有 transform 会创建层叠上下文，导致即便 z-index 更低遮罩也会被 touch 命中，
       真人手指点导航会点到遮罩上 → 导航无法切换。关抽屉改由 .main 点击处理。） */
  #nav-backdrop {
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    pointer-events: none;
  }
  #nav-backdrop.hidden { animation: none !important; opacity: 0; }
  /* 抽屉打开时，点主内容区即可关闭抽屉 */
  body.nav-open .main { cursor: pointer; }
  .btn-menu { display: grid; place-items: center; }
  .brand-text, .nav-label, .sidebar-foot span { display: block; }
  .nav-item { justify-content: flex-start; }

  /* 顶栏紧凑化 */
  .main { height: 100dvh; }
  .topbar { height: 54px; padding: 0 12px; gap: 8px; }
  .topbar-left { gap: 10px; align-items: center; min-width: 0; }
  .topbar h2 { font-size: 16px; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .view-sub, .scan-state, .user-meta { display: none; }
  .user-chip { padding: 2px; border-radius: 50%; }
  .topbar-right { gap: 8px; }

  /* 内容区 */
  .view { padding: 12px 12px 60px; -webkit-overflow-scrolling: touch; }

  /* 待审核卡片 */
  .q-card { padding: 16px 14px; min-height: 0; }
  .q-title { font-size: 18px; }
  .q-content { font-size: 13.5px; max-height: 46vh; }
  .q-images { grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); }
  .q-meta, .q-foot { flex-wrap: wrap; gap: 6px 12px; }
  .q-head-right { flex: none; gap: 6px; }
  .q-index, .q-timer { white-space: nowrap; }
  .q-index { font-size: 10px; }
  .queue-layout { grid-template-columns: 1fr; }
  .act-panel { position: static; max-height: none; }
  .act-scroll { overflow: visible; padding-right: 0; }
  .act-group { padding: 12px 10px; }
  .act-opt { padding: 12px 10px; }
  .mute-grid .act-opt { padding: 12px 8px; }

  /* 按钮触控目标加大 */
  .btn { padding: 11px 14px; }
  .btn-sm { padding: 8px 12px; }
  .icon-btn { width: 36px; height: 36px; }

  /* 筛选栏：竖排、占满宽 */
  .filter-bar { gap: 8px; }
  .filter-item { flex: 1 1 100%; }
  .filter-item.half { flex: 1 1 calc(50% - 4px); }
  .input, .select { width: 100%; min-width: 0; }

  /* 表格：横向滚动 + 首列吸顶保持 */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.data { min-width: 680px; }
  table.data th, table.data td { padding: 10px 10px; }
  .pager { flex-wrap: wrap; gap: 8px; }

  /* 数据看板 */
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-value { font-size: 26px; }
  .stat-card { padding: 14px 14px; }
  .chart-grid, .grid-2 { grid-template-columns: 1fr; }
  .eff-top b { font-size: 15px; }
  .eff-row { grid-template-columns: 48px minmax(0,1fr) 84px; gap: 8px; }

  /* 用户详情计数 */
  .au-counts { grid-template-columns: repeat(3, 1fr); }

  /* 弹窗全屏化（覆盖 JS 内联宽度） */
  .modal {
    position: fixed; inset: 0; width: 100% !important; max-width: 100% !important;
    height: 100%; max-height: 100% !important; border-radius: 0; padding: 18px 16px 26px;
  }
  .modal-mask { padding: 0; }
  .modal-body { max-height: none; overflow: visible; }
  .modal-actions { flex-wrap: wrap; }
  .modal-actions .btn { flex: 1 1 auto; min-width: 96px; }

  /* toast 移到底部，绝不遮挡顶部抽屉导航（原 top:10px 占满宽度会盖住导航项，导致点了没反应） */
  .toast-wrap {
    width: auto; left: 12px; right: 12px; top: auto; bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 44;              /* 低于 sidebar(50)/backdrop(45)：抽屉打开时不压在导航之上 */
    pointer-events: none;     /* 容器穿透，空白区域不拦截点击 */
    gap: 8px;
  }
  .toast-wrap .toast { pointer-events: auto; }  /* 卡片本体仍可点关闭 */
  /* 抽屉打开时 toast 让位：彻底隐藏，避免任何遮挡/黑块观感 */
  body.nav-open .toast-wrap { display: none; }

  /* 图片放大层 */
  .zoom-layer { padding: 12px; }
  .zoom-layer img { max-width: 95vw; max-height: 86vh; }

  /* 批量操作条 & 其他 */
  .bulk-bar { flex-wrap: wrap; padding: 10px 12px; }
  .queue-toolbar, .stat-toolbar { gap: 8px; }
  .seg button { padding: 7px 12px; }

  /* 登录页 */
  .login-panel { width: auto; padding: 30px 22px 22px; }
  .login-title { font-size: 21px; letter-spacing: 3px; }
}

/* ================================================================
   手机端专属审核 UI（≤768px）— 完全独立，不再压缩桌面布局
   卡片标注分行不挤压 + 底部大按钮操作区 + 底部抽屉确认
   ================================================================ */
@media (max-width: 768px) {
  /* 手机端隐藏桌面的悬浮小圆按钮与右侧处置面板，改用底部操作区 */
  .fab-bar { display: none !important; }
  .queue-layout { display: block; }
  .view:has(.m-audit) { padding-bottom: 20px; }

  .m-audit { display: flex; flex-direction: column; gap: 14px; }
  .m-card { padding: 16px 14px 14px; border-radius: var(--r-md); }

  /* 头部：作者为王，右侧章节/计时不挤压作者名 */
  .m-head { display: flex; align-items: flex-start; gap: 11px; }
  .m-head .q-avatar { flex: 0 0 46px; width: 46px; height: 46px; font-size: 20px; }
  .m-head-main { flex: 1 1 auto; min-width: 0; }
  .m-author {
    font-size: 16px; font-weight: 700; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .m-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
  .m-head-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
  .m-chip {
    font-size: 11px; padding: 3px 9px; border-radius: 20px; white-space: nowrap;
    background: var(--gold-glow); color: var(--gold-bright); border: 1px solid var(--line);
    max-width: 108px; overflow: hidden; text-overflow: ellipsis;
  }
  [data-theme="light"] .m-chip { color: var(--gold-hex-dark3,#6b5220); }
  .m-head .q-timer { font-size: 11px; }

  /* 标注区：每条独立成行，绝不挤在作者名后 */
  .m-flags { display: flex; flex-direction: column; gap: 7px; margin: 13px 0 2px; }
  .mflag {
    display: flex; align-items: flex-start; gap: 8px; line-height: 1.5;
    font-size: 12.5px; padding: 8px 11px; border-radius: 9px;
    border: 1px solid var(--line-soft); background: rgba(255,255,255,.04);
    word-break: break-word;
  }
  [data-theme="light"] .mflag { background: rgba(74,70,60,.05); }
  .mflag > span { flex: 0 0 auto; font-weight: 700; }
  .mflag b { font-weight: 700; }
  .mflag-trans { color: var(--info); border-color: rgba(127,200,248,.28); }
  .mflag-reviewed { color: var(--gold); border-color: rgba(var(--gold-rgb,211,188,142),.28); }
  .mflag-tag { color: var(--warn); border-color: rgba(255,190,92,.25); }
  .mflag-hist { color: var(--danger); border-color: rgba(255,107,107,.3); cursor: pointer; }
  .mflag-hist.hot { background: rgba(255,107,107,.1); }
  .mflag-hist::after { content: '›'; margin-left: auto; align-self: center; font-size: 16px; opacity: .6; }
  .mflag .ok-t { color: var(--ok); }

  /* 正文 */
  .m-card .q-title { font-size: 19px; line-height: 1.45; margin:14px 0 8px; word-break: break-word; }
  .m-card .q-content { font-size: 14px; line-height: 1.7; max-height: 42vh; word-break: break-word; }
  .m-card .q-images { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
  .m-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--muted); }
  .m-progress { margin-left: auto; font-size: 11px; }
  .m-progress b { color: var(--gold-bright); }

  /* 上一条 / 下一条 / 复制 */
  .m-nav { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .m-nav-btn {
    min-height: 42px; border-radius: 10px; border: 1px solid var(--line);
    background: var(--panel); color: var(--text-2); font-size: 13px; font-family: var(--font);
    -webkit-tap-highlight-color: transparent;
  }
  .m-nav-btn:disabled { opacity: .35; }
  .m-nav-btn:active:not(:disabled) { transform: scale(.97); }

  /* 底部操作区：4 个大按钮，图标 + 名称 + 一句人话说明 */
  .m-ops {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 13px 12px; box-shadow: var(--shadow);
  }
  .m-ops-hint { font-size: 11.5px; color: var(--muted); text-align: center; margin-bottom: 10px; letter-spacing: .5px; }
  .m-ops-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .m-op {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-height: 84px; padding: 10px 8px; border-radius: 12px; cursor: pointer;
    border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
    font-family: var(--font); -webkit-tap-highlight-color: transparent;
    transition: transform .12s var(--ease), filter .12s;
  }
  .m-op:active { transform: scale(.95); filter: brightness(1.12); }
  .m-op-ico { font-size: 24px; line-height: 1; font-weight: 700; }
  .m-op-label { font-size: 15px; font-weight: 700; }
  .m-op-desc { font-size: 10.5px; color: var(--muted); text-align: center; line-height: 1.4; }
  .m-op-ok { background: linear-gradient(150deg, rgba(79,158,111,.22), rgba(47,125,79,.14)); border-color: rgba(134,224,168,.4); }
  .m-op-ok .m-op-ico, .m-op-ok .m-op-label { color: var(--ok); }
  .m-op-warn { background: linear-gradient(150deg, rgba(201,155,63,.22), rgba(168,120,30,.14)); border-color: rgba(255,190,92,.4); }
  .m-op-warn .m-op-ico, .m-op-warn .m-op-label { color: var(--warn); }
  .m-op-danger { background: linear-gradient(150deg, rgba(199,91,91,.2), rgba(168,58,58,.12)); border-color: rgba(255,107,107,.35); }
  .m-op-danger .m-op-ico, .m-op-danger .m-op-label { color: var(--danger); }
  [data-theme="light"] .m-op-desc { color: #857d6b; }
  .m-more-btn {
    width: 100%; min-height: 40px; margin-top: 10px; border-radius: 10px;
    border: 1px dashed var(--line); background: transparent; color: var(--gold);
    font-size: 12.5px; font-family: var(--font); -webkit-tap-highlight-color: transparent;
  }
  .m-more-btn:active { background: var(--gold-glow); }

  /* 底部抽屉：从底部滑出，拇指可达 */
  .msheet-mask {
    position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end;
    background: rgba(4,6,11,.55); opacity: 0; transition: opacity .2s ease;
  }
  .msheet-mask.show { opacity: 1; }
  .msheet {
    width: 100%; max-height: 88vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: var(--panel-solid); border-radius: 20px 20px 0 0;
    border-top: 1px solid var(--line); padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
    transform: translateY(100%); transition: transform .24s var(--ease);
    box-shadow: 0 -12px 50px rgba(0,0,0,.4);
  }
  .msheet-mask.show .msheet { transform: translateY(0); }
  [data-theme="light"] .msheet { background: var(--panel-white,#fffdf7); }
  .msheet-grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 4px auto 12px; }
  .msheet-head h3 { font-size: 18px; color: var(--text); margin: 0 0 5px; font-family: var(--font-title); }
  .msheet-sub { font-size: 12.5px; color: var(--gold); margin-bottom: 10px; }
  [data-theme="light"] .msheet-sub { color: var(--gold-hex-dark1,#7a5f28); }
  .msheet-body { font-size: 13.5px; color: var(--text-2); line-height: 1.7; }
  .msheet-note {
    background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 10px;
    padding: 12px 13px; margin-bottom: 10px;
  }
  .msheet-note b { color: var(--text); }
  .danger-note { border-color: rgba(255,107,107,.35); background: rgba(255,107,107,.08); }
  .danger-note b { color: var(--danger); }
  .msheet-tip { font-size: 12px; color: var(--info); padding: 6px 2px; }
  .msheet-actions { display: flex; gap: 10px; margin-top: 16px; }
  .msheet-btn { flex: 1 1 0; min-width: 0; min-height: 48px; font-size: 15px; }

  /* 抽屉里的「更多处置」行 */
  .msheet-rows { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
  .msheet-row {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
    padding: 12px 12px; border-radius: 11px; border: 1px solid var(--line-soft);
    background: var(--panel-2); color: var(--text); font-family: var(--font);
    -webkit-tap-highlight-color: transparent;
  }
  .msheet-row:active { transform: scale(.98); }
  .msheet-row.danger { border-color: rgba(255,107,107,.3); }
  .msheet-row.danger .mr-ico, .msheet-row.danger .mr-main { color: var(--danger); }
  .mr-ico { font-size: 20px; color: var(--gold); flex: 0 0 26px; text-align: center; }
  .mr-main { flex: 1 1 auto; font-size: 14px; font-weight: 600; }
  .mr-main small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; }
  .mr-go { font-size: 20px; color: var(--muted); }
  .msheet-field { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
  .msheet-field .input { margin-top: 5px; }
  .tag-presets { display: flex; flex-wrap: wrap; gap: 7px; }
  .tag-presets button {
    font-size: 12px; padding: 6px 11px; border-radius: 16px; border: 1px solid var(--line);
    background: var(--panel-2); color: var(--text-2); font-family: var(--font);
  }

  /* 移交版主：大按钮列表，名字为王 */
  .m-mod-list { display: flex; flex-direction: column; gap: 9px; padding: 2px 0; }
  .m-mod {
    display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
    padding: 13px 14px; min-height: 64px; border-radius: 12px;
    border: 1px solid var(--line-soft); background: var(--panel-2);
    color: var(--text); font-family: var(--font); -webkit-tap-highlight-color: transparent;
  }
  .m-mod.on { border-color: var(--gold); background: var(--gold-glow); }
  .mm-av {
    flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    font-size: 19px; background: var(--panel-3); color: var(--gold-bright);
  }
  [data-theme="light"] .mm-av { color: var(--gold-hex-dark3,#6b5220); }
  .m-mod.on .mm-av { background: var(--gold-deep); color: var(--gold-on,#1a1408); }
  .mm-main { flex: 1 1 auto; min-width: 0; }
  .mm-main b { display: block; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mm-main small { font-size: 11.5px; color: var(--muted); }
  .mm-check { font-size: 22px; color: var(--gold); flex: 0 0 auto; }
  .m-mod.on .mm-check { color: var(--gold-bright); }
}

/* ===== 发送站内通知（美化） ===== */
.notify-wrap { display: flex; flex-direction: column; gap: 14px; }
.notify-topline { display: flex; align-items: center; gap: 8px; }
.notify-topline .nt-hint { font-size: 11.5px; color: var(--muted); }
.notify-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .notify-grid { grid-template-columns: 1fr; } }
.notify-col { min-width: 0; }
.notify-col > .nt-label { font-size: 12px; color: var(--gold); letter-spacing: 1px; margin-bottom: 7px; display: flex; align-items: center; justify-content: space-between; }
.notify-col > .nt-label .nt-count { color: var(--muted); letter-spacing: 0; }
.nt-recipients { border: 1px solid var(--line-soft); border-radius: 10px; background: var(--panel-2); overflow: hidden; }
.nt-search { width: 100%; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; color: var(--text); padding: 9px 12px; font-size: 12.5px; outline: none; font-family: var(--font); }
.nt-search::placeholder { color: var(--muted); }
.nt-list { max-height: 210px; overflow-y: auto; padding: 5px; }
.nt-opt { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 8px; cursor: pointer; transition: .15s; border: 1px solid transparent; }
.nt-opt:hover { background: rgba(255,255,255,.04); }
.nt-opt.on { background: rgba(var(--gold-rgb,211,188,142),.12); border-color: rgba(var(--gold-rgb,211,188,142),.38); }
.nt-box { flex: 0 0 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line-soft); display: grid; place-items: center; font-size: 11px; color: transparent; }
.nt-opt.on .nt-box { background: var(--gold); border-color: var(--gold); color: var(--gold-on,#241d10); }
.nt-name { font-size: 13px; color: var(--text); flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-role { font-size: 10.5px; color: var(--muted); border: 1px solid var(--line-soft); border-radius: 20px; padding: 1px 7px; }
.nt-all { border-bottom: 1px solid var(--line-soft); border-radius: 0; margin-bottom: 4px; }
.nt-field { width: 100%; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--panel-2); color: var(--text); padding: 10px 12px; font-size: 13px; outline: none; font-family: var(--font); transition: .15s; }
.nt-field:focus { border-color: var(--gold); }
.nt-field::placeholder { color: var(--muted); }
textarea.nt-field { resize: vertical; min-height: 92px; line-height: 1.7; }
.nt-kinds { display: flex; gap: 8px; }
.nt-kind { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border-radius: 9px; border: 1px solid var(--line-soft); background: var(--panel-2); color: var(--muted); cursor: pointer; font-size: 12.5px; transition: .15s; }
.nt-kind.on { border-color: var(--gold); color: var(--gold-bright); background: rgba(var(--gold-rgb,211,188,142),.1); }
.nt-kind.warn.on { border-color: #ff8a8a; color: #ffb0b0; background: rgba(255,107,107,.1); }
[data-theme="light"] .nt-kind.on { color: var(--gold-hex-dark1,#7a5f28); }
[data-theme="light"] .nt-kind.warn.on { color: #b0483f; }
[data-theme="light"] .nt-opt.on .nt-box { color: #fff; }

/* ===== 版本管理（二级页） ===== */
.rel-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.rel-head .spacer { flex: 1; }
.rel-stat { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.rel-stat .rs-card { flex: 1; min-width: 120px; border: 1px solid var(--line-soft); border-radius: 12px; padding: 13px 15px; background: var(--panel-2); }
.rel-stat .rs-card .rs-num { font-size: 26px; font-family: var(--font-title); color: var(--gold-bright); line-height: 1.1; }
.rel-stat .rs-card .rs-lbl { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
[data-theme="light"] .rel-stat .rs-card .rs-num { color: var(--gold-hex-dark1,#7a5f28); }
.rel-card { border: 1px solid var(--line-soft); border-radius: 12px; background: var(--panel-2); padding: 15px 16px; margin-bottom: 11px; }
.rel-card .rel-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rel-card .rel-ver { font-size: 16px; font-weight: 600; color: var(--text); }
.rel-card .rel-title { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.rel-card .rel-notes { font-size: 12.5px; color: var(--text-2); line-height: 1.7; margin-top: 10px; white-space: pre-wrap; }
.rel-card .rel-meta { font-size: 11px; color: var(--muted); margin-top: 9px; display: flex; gap: 14px; flex-wrap: wrap; }
.rel-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.rel-status { font-size: 10.5px; border-radius: 20px; padding: 2px 9px; border: 1px solid var(--line-soft); }
.rel-status.pending { color: var(--gold-bright); border-color: rgba(var(--gold-rgb,211,188,142),.4); }
.rel-status.published { color: #7fd6a0; border-color: rgba(127,214,160,.4); }
.rel-status.archived { color: var(--muted); }
[data-theme="light"] .rel-status.pending { color: var(--gold-hex-dark1,#7a5f28); }
.rel-progress { margin-top: 12px; }
.rel-progress .rp-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.08); overflow: hidden; }
.rel-progress .rp-fill { height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); transition: width .25s; }
.rel-progress .rp-txt { font-size: 11.5px; color: var(--muted); margin-top: 6px; display: flex; justify-content: space-between; }
.rel-targets { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.rel-targets b { color: var(--gold); font-weight: 500; }
.rel-empty { text-align: center; color: var(--muted); padding: 50px 20px; font-size: 13px; }
.rel-target-list { max-height: 220px; overflow-y: auto; border: 1px solid var(--line-soft); border-radius: 10px; padding: 5px; background: var(--panel-2); }
.rel-mode-grid { display: flex; gap: 8px; margin: 12px 0; }
.rel-mode { flex: 1; border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px; cursor: pointer; text-align: center; transition: .15s; }
.rel-mode.on { border-color: var(--gold); background: rgba(var(--gold-rgb,211,188,142),.1); }
.rel-mode b { display: block; font-size: 13px; color: var(--text); }
.rel-mode small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
