/* ============================================================
   生气的音频专用监棚 · UI v4（录音棚设备质感）
   主题 8 套：全白 / YY 橙金 / 深蓝 / 暗灰 / 录音棚绿 / 暖木胡桃 / 霓虹夜店 / 复古血橙
   —— html[data-theme] 切换；光效全部走主题变量（LED 环 / 光晕 / 焦点圈随主题变色）
   新增变量：--accent-soft 强调弱背景 · --focus-ring 焦点光圈
             --on-soft 说话弱背景 · --on-glow 说话光晕 · --led LED 环色
             --on-grad 开麦按钮渐变 · --on-text 开麦按钮文字色
   ============================================================ */

/* ---------- 主题：全白（默认） ---------- */
:root, [data-theme="white"] {
  color-scheme: light;
  --bg: #f3f4f6;
  --bg2: #ffffff;
  --panel: #ffffff;
  --panel2: #eef1f5;
  --text: #1b2233;
  --muted: #64708c;
  --border: rgba(25, 35, 60, 0.14);
  --accent: #f59e0b;
  --accent2: #ff9d2e;
  --grad: linear-gradient(135deg, #ffc94d 0%, #ff9d2e 100%);
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --topgrad: linear-gradient(90deg, #ffffff 0%, #eef1f5 100%);
  --barbg: linear-gradient(180deg, #ffffff 0%, #eef1f5 100%);
  --statbg: rgba(25, 35, 60, 0.04);
  --hover: rgba(245, 158, 11, 0.08);
  --on-color: #16a34a;
  --n1: #0284c7; --n2: #7c3aed; --n3: #059669; --n4: #e11d48;
  --logo-text: #241703;
  --shadow: 0 4px 16px rgba(25, 35, 60, 0.10);
  --accent-soft: rgba(245, 158, 11, 0.10);
  --focus-ring: rgba(245, 158, 11, 0.18);
  --on-soft: rgba(22, 163, 74, 0.07);
  --on-glow: rgba(22, 163, 74, 0.32);
  --led: #16a34a;
}

/* ---------- 主题：YY 橙金 ---------- */
[data-theme="yy"] {
  color-scheme: dark;
  --bg: #14100b;
  --bg2: #1a150e;
  --panel: linear-gradient(180deg, #231b10 0%, #1e170d 100%);
  --panel2: #2b2216;
  --text: #f7f1e3;
  --muted: #b3a487;
  --border: rgba(255, 190, 80, 0.16);
  --accent: #ffb020;
  --accent2: #ff9d2e;
  --grad: linear-gradient(135deg, #ffcc4d 0%, #ff9d2e 100%);
  --ok: #6ee76e;
  --warn: #ffd76e;
  --danger: #ff8a7a;
  --topgrad: linear-gradient(90deg, #2b2013 0%, #14100b 100%);
  --barbg: linear-gradient(180deg, #2b2013 0%, #14100b 100%);
  --statbg: rgba(26, 21, 14, 0.7);
  --hover: rgba(255, 176, 32, 0.07);
  --on-color: #6ee76e;
  --n1: #ffd76e; --n2: #ffa48a; --n3: #a4e8a4; --n4: #8ecbff;
  --logo-text: #241703;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  --accent-soft: rgba(255, 176, 32, 0.10);
  --focus-ring: rgba(255, 176, 32, 0.20);
  --on-soft: rgba(110, 231, 110, 0.08);
  --on-glow: rgba(110, 231, 110, 0.35);
  --led: #6ee76e;
}

/* ---------- 主题：深蓝 ---------- */
[data-theme="blue"] {
  color-scheme: dark;
  --bg: #070d1a;
  --bg2: #0a1224;
  --panel: linear-gradient(180deg, #101a2e 0%, #0d1526 100%);
  --panel2: #14203a;
  --text: #e8eefb;
  --muted: #8fa3c9;
  --border: rgba(120, 160, 220, 0.16);
  --accent: #38bdf8;
  --accent2: #6366f1;
  --grad: linear-gradient(135deg, #22d3ee 0%, #6366f1 100%);
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --topgrad: linear-gradient(90deg, #0d1a34 0%, #0a1224 100%);
  --barbg: linear-gradient(180deg, #0d1a34 0%, #0a1224 100%);
  --statbg: rgba(7, 13, 26, 0.55);
  --hover: rgba(56, 189, 248, 0.07);
  --on-color: #34d399;
  --n1: #7dd3fc; --n2: #c4b5fd; --n3: #6ee7b7; --n4: #fda4af;
  --logo-text: #061021;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  --accent-soft: rgba(56, 189, 248, 0.10);
  --focus-ring: rgba(56, 189, 248, 0.20);
  --on-soft: rgba(52, 211, 153, 0.08);
  --on-glow: rgba(52, 211, 153, 0.32);
  --led: #34d399;
}

/* ---------- 主题：暗灰 ---------- */
[data-theme="gray"] {
  color-scheme: dark;
  --bg: #121212;
  --bg2: #191919;
  --panel: linear-gradient(180deg, #1f1f25 0%, #1a1a1f 100%);
  --panel2: #26262c;
  --text: #e8e8e8;
  --muted: #9a9aa5;
  --border: rgba(255, 255, 255, 0.12);
  --accent: #ffb020;
  --accent2: #ff9d2e;
  --grad: linear-gradient(135deg, #ffcc4d 0%, #ff9d2e 100%);
  --ok: #6ee76e;
  --warn: #ffd76e;
  --danger: #ff8a7a;
  --topgrad: linear-gradient(90deg, #232323 0%, #141414 100%);
  --barbg: linear-gradient(180deg, #232323 0%, #141414 100%);
  --statbg: rgba(0, 0, 0, 0.35);
  --hover: rgba(255, 176, 32, 0.07);
  --on-color: #6ee76e;
  --n1: #ffd76e; --n2: #ffa48a; --n3: #a4e8a4; --n4: #8ecbff;
  --logo-text: #241703;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  --accent-soft: rgba(255, 176, 32, 0.10);
  --focus-ring: rgba(255, 176, 32, 0.20);
  --on-soft: rgba(110, 231, 110, 0.08);
  --on-glow: rgba(110, 231, 110, 0.35);
  --led: #6ee76e;
}

/* ---------- 主题：录音棚绿（SSL 调音台） ---------- */
[data-theme="studio-green"] {
  color-scheme: dark;
  --bg: #0a120e;
  --bg2: #0d1712;
  --panel: linear-gradient(180deg, #121f18 0%, #0e1913 100%);
  --panel2: #16261e;
  --text: #e4f2e8;
  --muted: #7fa88e;
  --border: rgba(110, 231, 183, 0.14);
  --accent: #34d399;
  --accent2: #10b981;
  --grad: linear-gradient(135deg, #4ade80 0%, #10b981 100%);
  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #f87171;
  --topgrad: linear-gradient(90deg, #12241b 0%, #0a120e 100%);
  --barbg: linear-gradient(180deg, #12241b 0%, #0a120e 100%);
  --statbg: rgba(10, 18, 14, 0.6);
  --hover: rgba(52, 211, 153, 0.07);
  --on-color: #4ade80;
  --n1: #6ee7b7; --n2: #93c5fd; --n3: #fcd34d; --n4: #f9a8d4;
  --logo-text: #04130b;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  --accent-soft: rgba(52, 211, 153, 0.10);
  --focus-ring: rgba(52, 211, 153, 0.20);
  --on-soft: rgba(74, 222, 128, 0.08);
  --on-glow: rgba(74, 222, 128, 0.35);
  --led: #4ade80;
}

/* ---------- 主题：暖木胡桃（录音棚木装修） ---------- */
[data-theme="warm-wood"] {
  color-scheme: dark;
  --bg: #1c1410;
  --bg2: #241a14;
  --panel: linear-gradient(180deg, #2c1f16 0%, #261b13 100%);
  --panel2: #35261c;
  --text: #f5ebe0;
  --muted: #b39b85;
  --border: rgba(210, 160, 110, 0.16);
  --accent: #d98e4a;
  --accent2: #c97b3d;
  --grad: linear-gradient(135deg, #e8a86a 0%, #c97b3d 100%);
  --ok: #86d99b;
  --warn: #e8b86a;
  --danger: #e87a6a;
  --topgrad: linear-gradient(90deg, #362619 0%, #1c1410 100%);
  --barbg: linear-gradient(180deg, #362619 0%, #1c1410 100%);
  --statbg: rgba(28, 20, 16, 0.65);
  --hover: rgba(217, 142, 74, 0.08);
  --on-color: #86d99b;
  --n1: #e8b86a; --n2: #d98e9a; --n3: #a8d8b0; --n4: #9ec8e8;
  --logo-text: #2a1608;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  --accent-soft: rgba(217, 142, 74, 0.12);
  --focus-ring: rgba(217, 142, 74, 0.22);
  --on-soft: rgba(134, 217, 155, 0.08);
  --on-glow: rgba(134, 217, 155, 0.35);
  --led: #86d99b;
}

/* ---------- 主题：霓虹夜店 ---------- */
[data-theme="neon"] {
  color-scheme: dark;
  --bg: #0d0817;
  --bg2: #120c1f;
  --panel: linear-gradient(180deg, #181028 0%, #140d22 100%);
  --panel2: #201536;
  --text: #f0e8ff;
  --muted: #a08cc8;
  --border: rgba(200, 140, 255, 0.16);
  --accent: #e85cff;
  --accent2: #22d3ee;
  --grad: linear-gradient(135deg, #e85cff 0%, #22d3ee 100%);
  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #fb5c8d;
  --topgrad: linear-gradient(90deg, #241543 0%, #0d0817 100%);
  --barbg: linear-gradient(180deg, #241543 0%, #0d0817 100%);
  --statbg: rgba(13, 8, 23, 0.6);
  --hover: rgba(232, 92, 255, 0.08);
  --on-color: #4ade80;
  --n1: #e88aff; --n2: #22d3ee; --n3: #ffb86b; --n4: #7dd3fc;
  --logo-text: #1a0a2e;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  --accent-soft: rgba(232, 92, 255, 0.10);
  --focus-ring: rgba(232, 92, 255, 0.20);
  --on-soft: rgba(74, 222, 128, 0.08);
  --on-glow: rgba(74, 222, 128, 0.35);
  --led: #4ade80;
}

/* ---------- 主题：复古血橙（Neve 老台子） ---------- */
[data-theme="blood-orange"] {
  color-scheme: dark;
  --bg: #1a100c;
  --bg2: #211510;
  --panel: linear-gradient(180deg, #2a1913 0%, #241510 100%);
  --panel2: #331f18;
  --text: #f7ece5;
  --muted: #bd9184;
  --border: rgba(255, 140, 100, 0.15);
  --accent: #ff6b47;
  --accent2: #e8542e;
  --grad: linear-gradient(135deg, #ff8a5c 0%, #e8542e 100%);
  --ok: #7fd88f;
  --warn: #ffb454;
  --danger: #ff5470;
  --topgrad: linear-gradient(90deg, #33201a 0%, #1a100c 100%);
  --barbg: linear-gradient(180deg, #33201a 0%, #1a100c 100%);
  --statbg: rgba(26, 16, 12, 0.65);
  --hover: rgba(255, 107, 71, 0.08);
  --on-color: #7fd88f;
  --n1: #ffb454; --n2: #ff8fa3; --n3: #b8e0a0; --n4: #a0d8ef;
  --logo-text: #2a0f05;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  --accent-soft: rgba(255, 107, 71, 0.12);
  --focus-ring: rgba(255, 107, 71, 0.20);
  --on-soft: rgba(127, 216, 143, 0.08);
  --on-glow: rgba(127, 216, 143, 0.35);
  --led: #7fd88f;
}

/* 开麦按钮「点亮」态的通用渐变/文字色（说话=绿色是全主题通用语义） */
:root {
  --on-grad: linear-gradient(135deg, #6ee76e, #22a35a);
  --on-text: #04180a;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  transition: background 0.2s ease, color 0.2s ease;
}

/* ---------- 骨架 ---------- */
.app {
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.layout { display: flex; min-height: 0; padding: 10px; }

/* ---------- 顶栏：房间信息条 ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--topgrad);
  border-bottom: 1px solid var(--border);
}

.room-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.room-logo {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  font-size: 22px;
  background: var(--grad);
  border-radius: 12px;
  color: var(--logo-text);
  box-shadow: var(--shadow);
}

.room-info { min-width: 0; }
.room-name { font-size: 17px; font-weight: 700; letter-spacing: 0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tag {
  margin-left: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 1px 8px;
  vertical-align: 2px;
  opacity: 0.85;
}

.room-sub { margin-top: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-sub .hl { color: var(--accent); font-weight: 600; }
.room-sub .dot { margin: 0 6px; opacity: 0.5; }

.room-right { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  font-size: 16px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

/* 权限徽章 */
.vd-role { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--panel2); color: var(--muted); white-space: nowrap; }
.vd-role.owner { color: var(--warn); background: rgba(217, 119, 6, 0.15); }
.vd-role.admin { color: #4da3ff; background: rgba(77, 163, 255, 0.14); }
.vd-role.creator { color: #b98bff; background: rgba(185, 139, 255, 0.14); }

.vd-ow-login {
  font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer;
}
.vd-ow-login:hover { background: var(--hover); }

/* ---------- 中部布局 ---------- */
.sidebar { width: 268px; min-width: 200px; overflow-y: auto; padding-right: 6px; }

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-left: 10px;
  overflow: hidden;
}

/* ---------- 面板通用 ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

/* 面板标题右侧的小胶囊链接（双开 ↗ 等）：accent 弱底 + 悬停渐变 */
.h2-link {
  float: right;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 2px 10px;
  line-height: 1.5;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.h2-link:hover {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 2px 10px var(--focus-ring);
}

.row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.row label { flex: 0 0 76px; font-size: 12px; color: var(--muted); }

input[type="text"], input[type="password"], select {
  flex: 1;
  min-width: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
}
input[type="text"]:focus, input[type="password"]:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
input[type="range"] { flex: 1; accent-color: var(--accent); }
.val { flex: 0 0 auto; font-size: 12px; color: var(--accent); font-weight: 600; min-width: 44px; text-align: right; }

button { font-family: inherit; }
.primary {
  background: var(--grad);
  color: #241703;
  border: none;
  border-radius: var(--radius);
  padding: 9px 18px;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: filter 0.12s ease, transform 0.12s ease;
}
.primary:hover { filter: brightness(1.08); }
.primary:active { transform: scale(0.97); }

.ghost, .mini {
  background: var(--panel2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}
.mini { padding: 7px 12px; flex: 0 0 auto; font-size: 12px; }
.ghost:hover, .mini:hover { border-color: var(--accent); color: var(--accent); }

/* 频道面板：进入 / 创建 双按钮 */
.chan-btns { display: flex; gap: 8px; margin: 2px 0 6px; }
.chan-btns button { flex: 1; padding: 9px 10px; font-size: 13px; }
.chan-btns .ghost { font-weight: 600; }

/* 进入/切换频道加载浮层（层级低于弹窗，密码弹窗可正常弹出） */
.switch-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 3, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
}
.switch-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.switch-txt { font-size: 14px; font-weight: 600; color: var(--text); }
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.danger {
  background: rgba(220, 38, 38, 0.10);
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  padding: 9px 18px;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
}
.danger:hover { background: rgba(220, 38, 38, 0.18); }

.warn { color: var(--warn); font-size: 12px; padding: 8px; }
.transport { margin-top: 4px; }

/* ---------- 频道列表 ---------- */
.chan-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; min-height: 26px; }
.sidebar .chan-list { min-height: 120px; align-content: flex-start; }

.chan-empty { color: var(--muted); font-size: 12px; }

.chan-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.12s ease;
}
.chan-chip:hover { border-color: var(--accent); }
.chan-chip.current { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.chan-mg { color: var(--warn); cursor: pointer; font-weight: 700; padding-left: 2px; }

/* ---------- 频道列表树（频道→成员 两级，从上到下） ---------- */
.chan-tree { display: flex; flex-direction: column; gap: 2px; margin: 4px 0; min-height: 120px; max-height: 62vh; overflow-y: auto; }
.tree-room {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: border-color 0.12s ease;
}
.tree-room:hover { border-color: var(--accent); }
.tree-room.current { border-color: var(--accent); color: var(--accent); }
/* 子频道：父频道下的缩进节点（弱化视觉层级） */
.tree-room.sub { margin-left: 18px; font-weight: 500; font-size: 12.5px; background: transparent; }
.tree-label { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-meta { font-size: 11px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.tree-mem {
  font-size: 12px; color: var(--muted);
  padding: 1px 0 1px 22px;
  position: relative;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tree-mem::before { content: '├'; position: absolute; left: 8px; opacity: 0.45; }

/* 主界面右上角 P2P 快捷切换按钮 */
.route-btn {
  height: 34px;
  padding: 0 12px;
  font-size: 12px; font-weight: 700;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.12s ease, color 0.12s ease;
}
.route-btn:hover { border-color: var(--accent); color: var(--accent); }
.route-btn.route-on { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }

/* 后台频道置顶按钮（已置顶高亮） */
.pin-toggle.pinned { border-color: var(--accent); color: var(--accent); font-weight: 700; }

/* ---------- 拖拽条 ---------- */
.vsplit {
  flex: 0 0 6px;
  cursor: col-resize;
  border-radius: 3px;
  transition: background 0.15s ease;
}
.vsplit:hover, .vsplit.active { background: var(--focus-ring); }

.hsplit {
  height: 10px;
  margin: 2px 0;
  display: grid;
  place-items: center;
  cursor: row-resize;
}
.hsplit span {
  width: 64px; height: 4px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.15s ease;
}
.hsplit:hover span, .hsplit.active span { background: var(--accent); }

.chat-file-link { color: var(--accent); text-decoration: underline; cursor: pointer; }
.chat-file-link:hover { color: var(--text); }
.chat-file-old { color: var(--muted); font-size: 11px; }
.chat-file-del {
  margin-left: 6px; padding: 0 6px; font-size: 11px; line-height: 18px;
  color: var(--muted); background: transparent; border: 1px solid var(--border);
  border-radius: 6px; cursor: pointer;
}
.chat-file-del:hover { color: #e5484d; border-color: #e5484d; }
.chat-send.file-btn { flex: none; padding: 0 12px; }

/* ---------- 麦序头像圈 ---------- */
.mic-panel { margin-bottom: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.mic-head {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--muted);
  margin: -2px 0 10px;
}
.mic-tip { font-weight: 400; letter-spacing: 0; opacity: 0.75; margin-left: 8px; }

.mic-strip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  overflow-x: auto;
  padding: 14px 2px 6px;
  min-height: 126px;
}

.vm {
  flex: 0 0 auto;
  width: 94px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  padding: 6px 2px 8px;
  border-radius: 12px;
  transition: background 0.15s ease;
}
.vm:hover { background: var(--hover); }

.vm-avatar {
  position: relative;
  width: 62px; height: 62px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 24px; font-weight: 700;
  color: var(--logo-text);
  background: var(--grad);
  border: 2px solid var(--border);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
.vm-avatar.me { border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus-ring); }

/* 熄灭装饰环：隐约可见的 LED 点环；说话时让位给声波扩散 */
.vm-avatar::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--led) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, transparent 0 62%, #000 66% 88%, transparent 92%);
  mask: radial-gradient(circle, transparent 0 62%, #000 66% 88%, transparent 92%);
  opacity: 0.10;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
/* 说话声波：三重波浪从头像边缘向外涌动、渐次淡出 */
.vm.talking .vm-avatar::before {
  opacity: 0;
  animation: wave-pulse 1.8s ease-out infinite;
}
@keyframes wave-pulse {
  0% {
    box-shadow: 0 0 0 0 var(--on-glow), 0 0 0 0 transparent, 0 0 0 0 transparent;
  }
  33% {
    box-shadow: 0 0 0 7px transparent, 0 0 0 0 var(--on-glow), 0 0 0 0 transparent;
  }
  66% {
    box-shadow: 0 0 0 10px transparent, 0 0 0 5px transparent, 0 0 0 0 var(--on-glow);
  }
  100% {
    box-shadow: 0 0 0 12px transparent, 0 0 0 10px transparent, 0 0 0 7px transparent;
  }
}

/* 说话光效：不再用绿圈描边（用户反馈移除），仅保留微缩放起伏 + 绿点/浅底提示 */
.vm.talking .vm-avatar {
  transform: scale(1.05);
}
.vm.talking { background: var(--on-soft); }
/* 减少动态效果：说话声波停用，退回静态光环。
   注意：动态头像框是用户主动装备的装饰道具（含付费/限定），不在停用范围——
   2026-10-17 修复：此前这里一刀切 animation:none 导致 Windows"动画效果"关闭的机器上
   头像框全部静止（Chromium 会报 prefers-reduced-motion: reduce） */
@media (prefers-reduced-motion: reduce) {
  .vm.talking .vm-avatar::before { animation: none; opacity: 0; }
}

/* ---------- 动态头像框：光带沿头像边框流转（复用 ::before 环形层，CSS 本地渲染零带宽） ---------- */
.vm-avatar.avframe-gold::before,
.vm-avatar.avframe-neon::before,
.vm-avatar.avframe-rainbow::before {
  opacity: 1;
  animation: frame-spin 3s linear infinite;
}
.vm-avatar.avframe-gold::before {
  background: conic-gradient(from 0deg, #ffd76e, #ff9d2e, #fff3c4, #ff9d2e, #ffd76e);
}
.vm-avatar.avframe-neon::before {
  background: conic-gradient(from 0deg, var(--accent), var(--accent2), var(--accent));
}
.vm-avatar.avframe-rainbow::before {
  background: conic-gradient(from 0deg, #ff6b6b, #ffb86b, #6ee76e, #22d3ee, #e88aff, #ff6b6b);
}
/* 幻彩呼吸：静态渐变 + 明灭，不旋转 */
.vm-avatar.avframe-breath::before {
  background: conic-gradient(from 0deg, var(--accent), var(--accent2), var(--accent));
  animation: frame-breath 2.4s ease-in-out infinite;
}
@keyframes frame-spin { to { transform: rotate(360deg); } }
@keyframes frame-breath { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
/* 说话时框与声波共存：保留框动画，叠加波浪 box-shadow（仅旧版光带框；华丽框走 .afd 装饰层） */
.vm.talking .vm-avatar.avframe-gold::before,
.vm.talking .vm-avatar.avframe-neon::before,
.vm.talking .vm-avatar.avframe-rainbow::before,
.vm.talking .vm-avatar.avframe-breath::before {
  opacity: 1;
  animation: frame-spin 3s linear infinite, wave-pulse 1.8s ease-out infinite;
}

/* 被本地静音的人 */
.vm.locally-muted .vm-avatar {
  filter: grayscale(1) brightness(0.6);
}
.vm.locally-muted .vm-avatar::after {
  content: '🔇';
  position: absolute;
  font-size: 15px;
}

.vm-nick {
  max-width: 90px;
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vm-badge {
  font-size: 10px; font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}
.vm-badge.owner { color: var(--warn); background: rgba(217, 119, 6, 0.15); }
.vm-badge.admin { color: #4da3ff; background: rgba(77, 163, 255, 0.14); }
.vm-badge.creator { color: #b98bff; background: rgba(185, 139, 255, 0.14); }

.vm-act {
  font-size: 9px; font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--muted);
  cursor: pointer;
}
.vm-act:hover { border-color: var(--accent); color: var(--accent); }

.vm-mic { position: absolute; top: 4px; right: 10px; font-size: 11px; color: var(--muted); }
.vm-mic.on { color: var(--on-color); }

/* ---------- 运行状态 ---------- */
.stats-panel { margin-bottom: 0; }

.stats { display: flex; gap: 8px; flex-wrap: wrap; }
.stats + .stats { margin-top: 8px; }
.stat {
  flex: 1;
  min-width: 0;
  background: var(--statbg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  display: flex; align-items: center; gap: 6px;
  min-height: 28px;
}
.stat .k { color: var(--muted); font-size: 11px; white-space: nowrap; }
.stat span:last-of-type {
  font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-variant-numeric: tabular-nums; letter-spacing: 0.3px;
}

/* ---------- 大公屏（聊天） ---------- */
.chat-panel {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  min-height: 120px;
  overflow: hidden;
  margin-bottom: 0;
}

.chat-head {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--muted);
  margin: -2px 0 8px;
  display: flex; align-items: center;
}
.chat-head .icon-btn { margin-left: auto; font-size: 13px; padding: 2px 8px; }

/* ---------- 频道文件管理面板 ---------- */
.fm-list {
  max-height: 320px; overflow-y: auto;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 6px; margin-top: 10px;
}
/* 频道成员管理弹窗（跨频道调度/踢人） */
.roster-row {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 8px; border-radius: 8px;
}
.roster-row + .roster-row { border-top: 1px dashed var(--border); }
.roster-nick { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-nick .r-admin { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; }
.roster-nick .r-admin.ow { color: #d97706; background: rgba(217, 119, 6, 0.14); }
.roster-nick .r-admin.super { color: var(--accent); background: rgba(245, 158, 11, 0.12); }
.roster-nick .r-admin.chan { color: #7c3aed; background: rgba(124, 58, 237, 0.12); }
.roster-row select { max-width: 130px; padding: 4px 6px; font-size: 12px; }
.roster-row .r-btn { padding: 4px 10px; font-size: 11px; font-weight: 700; border-radius: 8px; cursor: pointer; border: 1px solid var(--border); background: transparent; color: inherit; }
.roster-row .r-btn:hover { border-color: var(--accent); color: var(--accent); }
.roster-row .r-btn.danger { border-color: var(--danger); color: var(--danger); }
.roster-empty { padding: 14px; text-align: center; color: var(--muted); font-size: 13px; }
.fm-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 8px;
}
.fm-row:hover { background: var(--panel2); }
.fm-info { flex: 1; min-width: 0; }
.fm-name {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fm-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.fm-ops { display: flex; gap: 6px; flex: 0 0 auto; }
.fm-ops .mini { padding: 4px 10px; }
.fm-del:hover { color: #e5484d; border-color: #e5484d; }
.fm-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 12px; }

/* ---------- 屏幕直播 ---------- */
.screen-btn { font-weight: 700; }
.screen-btn.screen-live {
  color: #fff; background: #e5484d; border-color: #e5484d;
  animation: screen-pulse 1.6s ease-in-out infinite;
}
@keyframes screen-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(229, 72, 77, 0); }
}
.screen-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; margin-bottom: 8px;
  background: rgba(229, 72, 77, 0.1); border: 1px solid rgba(229, 72, 77, 0.4);
  border-radius: 8px; font-size: 12px; font-weight: 600; color: #e5484d;
}
.screen-bar .mini { padding: 3px 10px; }
.screen-viewer {
  position: fixed; inset: 0; z-index: 120;
  background: #000; display: flex; flex-direction: column;
}
.screen-viewer .sv-head {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; color: #fff;
  background: rgba(20, 20, 24, 0.92); font-size: 13px; font-weight: 700;
}
.screen-viewer .sv-ops { margin-left: auto; display: flex; gap: 8px; }
.screen-viewer .sv-ops .mini { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.screen-viewer .sv-ops .sv-close:hover { color: #ff6b70; border-color: #ff6b70; }
.screen-viewer video {
  flex: 1; min-height: 0; width: 100%; object-fit: contain; background: #000;
}
.sv-loading {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  color: #aaa; font-size: 14px; letter-spacing: 2px;
}

.chat-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-hint { color: var(--muted); font-size: 12px; text-align: center; padding: 14px 0; }

.chat-line {
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 13px;
  word-break: break-all;
  transition: background 0.12s ease;
}
.chat-line:hover { background: var(--hover); }
.chat-line.self { background: var(--accent-soft); }
.chat-name { font-weight: 700; margin-right: 6px; }

/* 公屏图片：只加载可见缩略图；大图使用浏览器顶层对话框。 */
.chat-image-button {
  display: flex; align-items: center; justify-content: center;
  width: fit-content; max-width: 100%; min-width: min(180px, 100%); min-height: 100px;
  margin-top: 6px; padding: 0; overflow: hidden; border: 1px solid var(--border);
  border-radius: 8px; background: var(--hover); color: var(--muted); cursor: zoom-in;
}
.chat-image-button img { display: block; max-width: min(260px, 100%); max-height: 156px; object-fit: contain; }
.chat-image-button img[hidden], .chat-image-button span[hidden] { display: none; }
.chat-image-button span { padding: 12px; font-size: 12px; }
.chat-image-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chat-panel.image-drag-over { outline: 2px dashed var(--accent); outline-offset: -3px; }
.chat-image-preview {
  width: min(1000px, 94vw); max-width: 94vw; max-height: 92dvh; padding: 12px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--panel); color: var(--text);
  overflow: hidden;
}
.chat-image-preview::backdrop { background: #000b; }
.chat-image-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chat-image-toolbar > span { flex: 1; min-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-image-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.chat-image-toolbar button { flex: none; padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
.chat-image-toolbar button:hover:not(:disabled) { background: var(--hover); }
.chat-image-toolbar button:disabled { opacity: 0.4; cursor: default; }
.chat-image-toolbar button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chat-image-toolbar output { min-width: 42px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.chat-image-preview > img { display: block; max-width: 100%; max-height: calc(92dvh - 85px); margin: auto; object-fit: contain; }
.chat-image-viewport { position: relative; height: min(68dvh, 680px); max-height: calc(92dvh - 150px); min-height: 80px; overflow: hidden; border-radius: 8px; background: var(--hover); touch-action: none; user-select: none; }
.chat-image-viewport > img { position: absolute; top: 0; left: 0; display: block; max-width: none; max-height: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; }
.chat-image-viewport.can-pan { cursor: grab; }
.chat-image-viewport.is-panning { cursor: grabbing; }
.chat-image-viewport:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.chat-image-hint { margin: 8px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

.chat-log .chat-line:nth-child(4n + 1) .chat-name { color: var(--n1); }
.chat-log .chat-line:nth-child(4n + 2) .chat-name { color: var(--n2); }
.chat-log .chat-line:nth-child(4n + 3) .chat-name { color: var(--n3); }
.chat-log .chat-line:nth-child(4n)     .chat-name { color: var(--n4); }

.chat-row { display: flex; gap: 8px; margin-top: 8px; }
.chat-row input { flex: 1; }
.chat-send {
  flex: 0 0 auto;
  background: var(--grad);
  color: #241703;
  border: none;
  border-radius: var(--radius);
  padding: 8px 20px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; }
.chat-row input:disabled { opacity: 0.5; }

/* ---------- 底部操作条：开麦 + 静音 + 音量 ---------- */
.voice-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--barbg);
  border-top: 1px solid var(--border);
}

.talk {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad);
  color: #241703;
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow);
}
.talk:hover { filter: brightness(1.08); }
.talk:active { transform: scale(0.97); }
.talk:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.talk.active {
  background: var(--on-grad);
  color: var(--on-text);
  box-shadow: 0 0 0 3px var(--on-glow), 0 0 24px var(--on-glow);
  animation: talkPulse 2s ease-in-out infinite;
}
@keyframes talkPulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--on-glow), 0 0 16px var(--on-glow); }
  50% { box-shadow: 0 0 0 3px var(--on-glow), 0 0 28px var(--on-glow); }
}
@media (prefers-reduced-motion: reduce) { .talk.active { animation: none; } }

.mute-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.mute-btn:hover:not(:disabled) { border-color: var(--accent); }
.mute-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.mute-btn.muted { background: var(--accent-soft); color: var(--warn); border-color: var(--warn); }

/* 悬浮音量弹层：悬停开麦/频道音量按钮时向上弹出百分比滑条（0-100） */
.vol-pop-wrap { position: relative; flex: 0 0 auto; display: inline-flex; }
.vol-pop {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0; /* 左对齐锚定（开麦按钮贴屏幕左缘，居中会被 body overflow:hidden 裁掉） */
  width: 236px;
  max-width: calc(100vw - 24px);
  padding: 12px 14px 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card, 12px);
  box-shadow: var(--shadow);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  /* 收起延迟：鼠标移开后停留 0.55s 才开始收回（delay 只在非悬停态生效），来回移动不闪没 */
  transition: opacity 0.2s ease 0.55s, transform 0.2s ease 0.55s, visibility 0s linear 0.75s;
}
/* 悬停按钮或弹层本身都保持展开；键盘聚焦滑条时也展开（鼠标点击后移开即收起，不粘屏） */
.vol-pop-wrap:hover .vol-pop,
.vol-pop-wrap:has(:focus-visible) .vol-pop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.15s ease 0s, transform 0.15s ease 0s, visibility 0s;
}
/* 隐形桥：盖住按钮与弹层之间 12px 空隙，鼠标从按钮移向滑条途中不丢 hover */
.vol-pop::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
.vol-pop::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 52px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--border);
}
.vol-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.vol-pop input[type="range"] { width: 100%; }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 3, 0.45);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 100;
}
[data-theme="yy"] .modal, [data-theme="blue"] .modal, [data-theme="gray"] .modal,
[data-theme="studio-green"] .modal, [data-theme="warm-wood"] .modal,
[data-theme="neon"] .modal, [data-theme="blood-orange"] .modal { background: rgba(0, 0, 0, 0.6); }

.modal-box {
  width: min(92vw, 420px);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow);
}

.modal-box h3 { margin: 0 0 6px; font-size: 16px; }
.modal-box input, .modal-box select { width: 100%; box-sizing: border-box; }

.modal-sub { color: var(--muted); font-size: 12px; margin: 0 0 10px; }
.modal-error { color: var(--danger); font-size: 12px; margin: 8px 0 0; }
.modal-btns { display: flex; gap: 8px; margin-top: 14px; }
.modal-btns button { flex: 1; }
.mg-label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 6px; }

/* 设置弹窗页签 */
.set-nav { display: flex; gap: 6px; margin: 10px 0 4px; }
.set-nav-btn {
  flex: 1; padding: 7px 0; font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); border-radius: 8px; background: var(--panel2); color: var(--muted);
}
.set-nav-btn.active { background: var(--grad); border-color: transparent; color: var(--logo-text); }
.set-sec { margin-top: 4px; }

/* 黄V 认证徽标（昵称旁） */
.nick-row { display: flex; align-items: center; gap: 8px; }
.nick-row input { flex: 1; }
.vbadge {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  font-size: 11px;
}
.vm-badge.v {
  border-radius: 50%; padding: 0; width: 16px; height: 16px;
  display: inline-grid; place-items: center; font-size: 10px;
}
.vbadge, .vm-badge.v {
  box-sizing: border-box;
  border: 1px solid transparent;
  background: radial-gradient(circle at 35% 22%, #393b35 0%, #1b1d1b 44%, #0b0d0d 100%) padding-box,
    conic-gradient(from 35deg, #8e682b, #ffe6a0 24%, #b08736 48%, #6e4e1c 67%, #edcc79 88%, #8e682b) border-box;
  color: #f5e8b6;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-weight: 700; font-style: normal; line-height: 1; letter-spacing: 0;
  text-shadow: 0 1px 1px #000;
  box-shadow: inset 0 0 0 1px rgba(255, 233, 167, .12), 0 0 0 1px rgba(151, 112, 40, .25), 0 0 4px rgba(215, 171, 74, .25);
}
.vm-badge.vt {
  color: #b26a00; background: rgba(255, 210, 77, 0.18);
  border: 1px solid rgba(255, 180, 40, 0.55);
  border-radius: 999px; padding: 1px 8px;
  font-size: 10px; font-weight: 700;
}

.set-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--statbg);
}

.avatar-row { display: flex; align-items: center; gap: 12px; }
.avatar-row input[type="file"] { flex: 1; font-size: 12px; color: var(--muted); }

.acct-list { display: flex; flex-direction: column; gap: 6px; max-height: 180px; overflow-y: auto; }
.acct-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 8px; background: var(--panel2); font-size: 12px;
}
.acct-row .acct-name { font-weight: 700; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-row button {
  font-size: 10px; padding: 3px 8px; border-radius: 8px; border: none; cursor: pointer;
  background: var(--bg2); color: var(--muted);
}
.acct-row button.acct-del { background: rgba(220, 38, 38, 0.12); color: var(--danger); }
.acct-new-row { display: flex; gap: 8px; }
.acct-new-row input { flex: 1; }
.acct-new-row select { width: 110px; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 窄屏适配（平板/窄窗口：竖排布局） ---------- */
@media (max-width: 860px) {
  body { overflow: auto; }
  .app { height: auto; min-height: 100vh; }
  .layout { flex-direction: column; }
  .sidebar { width: 100%; overflow: visible; }
  .vsplit { display: none; }
  .main { padding-left: 0; min-height: 60vh; }
  .voice-bar { flex-wrap: wrap; }
  .topbar { flex-wrap: wrap; }
}

/* ---------- 手机端适配（≤640px 竖屏：固定顶栏 + 纵向滚动主体 + 底部 Dock） ---------- */
@media (max-width: 640px) {
  body { overflow: hidden; -webkit-tap-highlight-color: transparent; }
  /* dvh 跟随手机浏览器工具栏收展，老内核回退 100vh */
  .app { height: 100vh; height: 100dvh; grid-template-rows: auto minmax(0, 1fr) auto; }

  /* 顶栏收紧：装饰徽标与角色徽章让位，操作按钮加大到触控尺寸 */
  .topbar { padding: 8px 12px; gap: 8px; }
  .room-logo { width: 36px; height: 36px; font-size: 18px; border-radius: 10px; }
  .room-name { font-size: 15px; }
  .tag, .vd-role { display: none; }
  .room-right { gap: 6px; }
  .icon-btn { width: 38px; height: 38px; font-size: 17px; }
  .route-btn { height: 38px; padding: 0 12px; }

  /* 主体单列自然高度，整体滚动；聊天区给固定视口高度内部滚动 */
  .layout { padding: 8px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .sidebar { padding-right: 0; flex: 0 0 auto; }
  .main { padding-left: 0; min-height: 0; flex: 0 0 auto; }
  .panel { padding: 12px; }
  .vsplit, .hsplit { display: none; }
  .mic-panel { flex: 0 0 auto; }
  .chat-panel { flex: 0 0 auto; }
  .chat-log { height: 36dvh; }

  /* 麦序：横向滑动保留，头像略缩 */
  .mic-strip { gap: 10px; padding: 10px 2px 4px; min-height: 108px; }
  .vm { width: 78px; }
  .vm-avatar { width: 52px; height: 52px; font-size: 20px; }
  .vm-nick { max-width: 74px; }

  /* 输入字号 ≥16px：防 iOS 聚焦自动放大页面 */
  input[type="text"], input[type="password"], select, .chat-row input { font-size: 16px; }
  .mini { padding: 9px 12px; }

  /* 底部 Dock：开麦铺满一行，贴安全区 */
  .voice-bar { flex-wrap: wrap; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .talk-wrap { flex: 1 1 auto; } /* 开麦弹层包裹层代替 .talk 撑满一行 */
  .talk { flex: 1 1 auto; justify-content: center; padding: 12px 18px; }
  .mute-btn { padding: 12px 14px; }

  /* 弹窗改底部抽屉风：贴底圆角卡，避开 Home 条 */
  .modal { display: flex; align-items: flex-end; justify-content: center; }
  .modal-box {
    width: 100%; max-height: 88dvh;
    border-radius: 18px 18px 0 0; border-bottom: none;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .modal-btns button { padding: 12px; font-size: 14px; }
  .set-nav-btn { padding: 10px 0; }

  /* 屏幕直播浮层：头部避开刘海，按钮加大 */
  .screen-viewer .sv-head { padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px; }
  .screen-viewer .sv-ops .mini { padding: 10px 12px; font-size: 13px; }

  /* 大喇叭横幅上移，避免压住底部 Dock */
  .horn-bar { top: auto; bottom: 92px; }
}

/* ================= 背包 ================= */
.bp-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bp-tab { padding: 6px 12px; border-radius: 14px; border: 1px solid #333; background: transparent; color: inherit; cursor: pointer; font-size: 13px; transition: all .15s; }
.bp-tab:hover { border-color: var(--accent); }
.bp-tab.active { background: var(--accent); border-color: var(--accent); color: #111; font-weight: 600; }
.bp-list { max-height: 46vh; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; padding: 2px; }
.bp-item { border: 1px solid #333; border-radius: 14px; padding: 12px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(0,0,0,.18)); transition: transform .15s, border-color .15s; }
.bp-item:hover { transform: translateY(-2px); border-color: #555; }
.bp-item.equipped { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 0 14px rgba(255,255,255,.06); }
.bp-item .bp-prev { height: 76px; display: flex; align-items: center; justify-content: center; }
.bp-item .bp-name { font-size: 14px; font-weight: 600; }
.bp-item .bp-desc { font-size: 11px; opacity: .65; min-height: 14px; }
.bp-item .bp-count { font-size: 11px; color: var(--accent); }
.bp-item .bp-acts { display: flex; gap: 6px; }
.bp-item button { font-size: 12px; padding: 4px 12px; }
/* 所见即所得预览 */
.bp-mini-vm { display: flex; align-items: center; gap: 6px; border: 2px solid #444; border-radius: 12px; padding: 8px 12px; background: #161616; }
.bp-mini-vm .bm-ava { width: 30px; height: 30px; border-radius: 50%; background: #333; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.bp-mini-vm .bm-nick { font-size: 12px; }
/* 麦序框迷你预览：与成员卡同款加强特效（类名 mf-mf-* = 前缀 mf- + 物品 id） */
.bp-mini-vm.mf-mf-gold { animation: mfx-gold 2.8s ease-in-out infinite; }
.bp-mini-vm.mf-mf-ice { animation: mfx-ice 3.2s ease-in-out infinite; }
.bp-mini-vm.mf-mf-purple { animation: mfx-purple 3.4s ease-in-out infinite; }
.bp-mini-vm.mf-mf-neon { animation: mfx-neon 1.6s steps(1) infinite, mfx-neon-glow 2.2s ease-in-out infinite; }
.bp-mini-vm.mf-mf-rose { animation: mfx-rose 1.4s ease-in-out infinite; }
.bp-mini-vm.mf-mf-shadow { animation: mfx-shadow 3.6s ease-in-out infinite; }
.bp-mini-vm.mf-mf-sunset { animation: mfx-sunset 4s linear infinite; }
.bp-mini-vm.mf-mf-aurora { animation: mfx-aurora 3.2s linear infinite; }
.bp-mini-plate { font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 8px; color: #fff; }
.bp-mini-plate.ti-ti-new { background: #2b6cb0; } .bp-mini-plate.ti-ti-pro { background: #805ad5; } .bp-mini-plate.ti-ti-star { background: linear-gradient(90deg,#b7791f,#ecc94b); color: #1a1200; } .bp-mini-plate.ti-ti-master { background: #9b2c2c; }
.bp-mini-ava { position: relative; width: 46px; height: 46px; border-radius: 50%; background: #2a2a2a; border: 2px solid #444; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.bp-mini-ava.af-mini.is-vdragon { background: transparent; border-color: transparent; }
.bp-mini-ava.af-mini.is-vdragon::before { content: ''; position: absolute; inset: 1px; border: 1px solid #444; border-radius: 50%; background: #2a2a2a; }
.bp-mini-ava .bm-emblem { position: absolute; right: -5px; bottom: -5px; font-size: 15px; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border: none; background: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
/* 物品卡角标 */
.bp-eq-tag { position: absolute; top: -7px; left: -7px; background: var(--accent); color: #111; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; z-index: 2; }
.bp-num-tag { position: absolute; top: -7px; right: -7px; background: #d4af37; color: #111; min-width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; padding: 0 6px; z-index: 2; }
.bp-item { position: relative; }
/* 商店购买卡（未拥有物品）：预览微弱化 + 价格加粗醒目 */
.bp-item.shop .bp-prev { opacity: .85; }
.bp-item.shop .bp-count { font-weight: 700; }
/* 公告弹窗：以清晰的标题、正文和操作层级呈现通知。 */
.ann-box { width: min(92vw, 560px); max-width: none; padding: 32px; border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: 14px; box-shadow: 0 24px 70px rgba(0, 0, 0, .22); overflow-wrap: anywhere; }
.ann-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 22px; }
.ann-mark svg { width: 22px; height: 22px; }
.ann-kicker { color: var(--muted); font-size: 11px; font-weight: 600; margin-bottom: 8px; }
.ann-box h3 { margin: 0 0 18px; font-size: clamp(22px, 3vw, 28px); line-height: 1.35; font-weight: 650; letter-spacing: -.02em; }
.ann-text { white-space: pre-wrap; font-size: 15px; line-height: 1.8; color: var(--text); margin: 0; max-height: 44vh; overflow-y: auto; }
.ann-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); margin-top: 26px; padding-top: 20px; }
.ann-footer-note { color: var(--muted); font-size: 12px; }
.ann-box #annClose { min-width: 104px; min-height: 38px; padding: 8px 20px; font-size: 13px; }
.ann-box #annClose:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 520px) { .ann-box { width: 100%; padding: 26px 22px 22px; } .ann-mark { margin-bottom: 18px; } .ann-text { font-size: 14px; max-height: 48vh; } .ann-footer { align-items: stretch; flex-direction: column; gap: 12px; } .ann-box #annClose { width: 100%; } }
/* 声纹迷你动画预览 */
.bp-mini-ava.bm-vo.vo-wave { animation: vo-wave .45s ease-in-out infinite; border-color: #39d6ff; }
.bp-mini-ava.bm-vo.vo-pulse { animation: vo-pulse .55s ease-out infinite; border-color: #ffaa3c; }
.bp-mini-ava.bm-vo.vo-fire { animation: vo-fire .35s linear infinite; border-color: #ff7b00; }
.bp-mini-ava.bm-vo.vo-eq { animation: vo-eq .45s ease-in-out infinite; border-color: #7bffb0; }
.bp-mini-ava.bm-vo.vo-spin { animation: vo-spin .8s linear infinite; border-color: #ffe066; }
.bp-mini-ava.bm-vo.vo-heart { animation: vo-heart .9s ease-in-out infinite; border-color: #ff5b8a; }
.bp-mini-ava.bm-vo.vo-rainbow { animation: vo-rainbow 1.6s linear infinite; border-color: #ff9df0; }
.bp-mini-ava.bm-vo.vo-liquid { animation: vo-liquid 1.8s ease-in-out infinite; border-color: #9d8cff; }
.bp-mini-sfx { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; background: #222; border: 2px solid; }
.bp-mini-sfx.sfx-sfx-pop { border-color: #ff9d00; } .bp-mini-sfx.sfx-sfx-chime { border-color: #6ad4ff; } .bp-mini-sfx.sfx-sfx-ding { border-color: #7bffb0; } .bp-mini-sfx.sfx-sfx-coin { border-color: #ffd54a; } .bp-mini-sfx.sfx-sfx-up { border-color: #b39bff; }
.bp-mini-tk { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; background: #222; border: 1px solid #555; }
.bp-mini-tk.tk-tk-horn { border-color: #d4af37; background: #2a2413; }
.bp-mini-tk.tk-tk-invis { border-color: #6a6a8f; background: #1c1c2a; }
.bp-mini-tk.tk-tk-color { border-color: #ffd700; background: #2a241c; }
.bp-mini-tk.tk-tk-spark { border-color: #ff7bac; background: #2a131f; }

/* 烟花庆祝层 */
.fest-layer { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.fest-p { position: absolute; top: -30px; animation-name: fest-fall; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes fest-fall { to { transform: translateY(110vh) rotate(720deg); opacity: .1; } }

/* ================= 装备特效（加强版） ================= */
/* 麦序框：专属动画特效（边框色 + 外辉光 + 内透光三层联动；成员卡与背包预览共用 keyframes） */
.vm.mf-gold, .bp-mini-vm.mf-mf-gold { border-color: #d4af37; animation: mfx-gold 2.8s ease-in-out infinite; }
.vm.mf-ice, .bp-mini-vm.mf-mf-ice { border-color: #6ad4ff; animation: mfx-ice 3.2s ease-in-out infinite; }
.vm.mf-purple, .bp-mini-vm.mf-mf-purple { border-color: #b06aff; animation: mfx-purple 3.4s ease-in-out infinite; }
.vm.mf-neon, .bp-mini-vm.mf-mf-neon { border-color: #39ff8f; animation: mfx-neon 1.6s steps(1) infinite, mfx-neon-glow 2.2s ease-in-out infinite; }
.vm.mf-rose, .bp-mini-vm.mf-mf-rose { border-color: #ff9db4; animation: mfx-rose 1.4s ease-in-out infinite; }
.vm.mf-shadow, .bp-mini-vm.mf-mf-shadow { border-color: #6a3de8; animation: mfx-shadow 3.6s ease-in-out infinite; }
.vm.mf-sunset, .bp-mini-vm.mf-mf-sunset { border-color: #ff6a3d; animation: mfx-sunset 4s linear infinite; }
.vm.mf-aurora, .bp-mini-vm.mf-mf-aurora { border-color: #39ffd0; animation: mfx-aurora 3.2s linear infinite; }
/* 黄金：呼吸金辉（外晕 + 内透同步胀缩，如镀金流光） */
@keyframes mfx-gold {
  0%, 100% { border-color: #d4af37; box-shadow: 0 0 8px rgba(212,175,55,.5), inset 0 0 6px rgba(255,215,100,.18); }
  50% { border-color: #ffe28a; box-shadow: 0 0 20px 3px rgba(255,200,60,.85), inset 0 0 14px rgba(255,215,100,.45); }
}
/* 寒冰：冰蓝冷光脉动 + 高光偏移（霜环感） */
@keyframes mfx-ice {
  0%, 100% { border-color: #6ad4ff; box-shadow: 0 0 8px rgba(106,212,255,.5), inset 0 0 6px rgba(180,235,255,.2); }
  50% { border-color: #c2efff; box-shadow: 0 0 20px 3px rgba(106,212,255,.9), 0 0 34px rgba(160,225,255,.4), inset 0 0 14px rgba(200,240,255,.5); }
}
/* 星云紫：深紫辉光缓慢鼓胀（星云吞噬感） */
@keyframes mfx-purple {
  0%, 100% { border-color: #b06aff; box-shadow: 0 0 10px rgba(176,106,255,.5), inset 0 0 6px rgba(200,150,255,.2); }
  50% { border-color: #d5aaff; box-shadow: 0 0 22px 4px rgba(176,106,255,.9), inset 0 0 16px rgba(210,160,255,.5); }
}
/* 霓虹：高频闪断（霓虹灯管）+ 双层光晕呼吸 */
@keyframes mfx-neon {
  0%, 100% { border-color: #39ff8f; } 12% { border-color: #baffdd; } 18% { border-color: #39ff8f; } 44% { border-color: #39ff8f; } 50% { border-color: #6fffc0; } 56% { border-color: #39ff8f; }
}
@keyframes mfx-neon-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(57,255,143,.55), inset 0 0 5px rgba(57,255,143,.25); }
  50% { box-shadow: 0 0 22px 4px rgba(57,255,143,.95), 0 0 40px rgba(57,255,143,.35), inset 0 0 14px rgba(57,255,143,.5); }
}
/* 玫瑰：心跳式粉辉（快-慢双跳节律） */
@keyframes mfx-rose {
  0%, 100% { border-color: #ff9db4; box-shadow: 0 0 7px rgba(255,157,180,.55), inset 0 0 5px rgba(255,157,180,.25); }
  28% { border-color: #ffc4d4; box-shadow: 0 0 19px 3px rgba(255,157,180,.9), inset 0 0 12px rgba(255,180,200,.5); }
  42% { border-color: #ff9db4; box-shadow: 0 0 10px rgba(255,157,180,.6), inset 0 0 6px rgba(255,157,180,.3); }
  60% { border-color: #ffd0dc; box-shadow: 0 0 15px 2px rgba(255,157,180,.75), inset 0 0 10px rgba(255,180,200,.4); }
}
/* 暗影：深紫黑气沉浮（低频深呼吸，辉光内敛） */
@keyframes mfx-shadow {
  0%, 100% { border-color: #4a2fa0; box-shadow: 0 0 6px rgba(106,61,232,.4), inset 0 0 10px rgba(20,8,50,.6); }
  50% { border-color: #8a5cff; box-shadow: 0 0 24px 5px rgba(106,61,232,.75), inset 0 0 18px rgba(106,61,232,.45); }
}
/* 落日：橙→金→绯 四相流转（日光推移） */
@keyframes mfx-sunset {
  0%, 100% { border-color: #ff6a3d; box-shadow: 0 0 12px rgba(255,106,61,.6), inset 0 0 8px rgba(255,170,60,.25); }
  33% { border-color: #ffb03d; box-shadow: 0 0 16px rgba(255,180,60,.7), inset 0 0 10px rgba(255,200,90,.35); }
  66% { border-color: #ff4d6a; box-shadow: 0 0 16px rgba(255,77,106,.65), inset 0 0 10px rgba(255,120,140,.35); }
}
/* 极光：三色流动 + 辉光同步呼吸（顶层特效） */
@keyframes mfx-aurora {
  0%, 100% { border-color: #39ffd0; box-shadow: 0 0 12px rgba(57,255,208,.6), inset 0 0 8px rgba(57,255,208,.3); }
  33% { border-color: #6ad4ff; box-shadow: 0 0 18px 2px rgba(106,212,255,.8), inset 0 0 12px rgba(106,212,255,.4); }
  66% { border-color: #b06aff; box-shadow: 0 0 18px 2px rgba(176,106,255,.8), inset 0 0 12px rgba(176,106,255,.4); }
}
/* 铭牌：高稀有度加流光（星耀/大师） */
.ti-plate { font-size: 10px; line-height: 1; padding: 2px 6px; border-radius: 6px; margin-left: 4px; color: #fff; vertical-align: middle; }
.ti-ti-new { background: #2b6cb0; }
.ti-ti-pro { background: #805ad5; }
.ti-ti-star { background: linear-gradient(90deg, #b7791f, #ecc94b, #b7791f); background-size: 200% 100%; color: #1a1200; animation: ti-shine 2.6s linear infinite; box-shadow: 0 0 8px rgba(236,201,75,.55); }
.ti-ti-master { background: linear-gradient(90deg, #9b2c2c, #ff6b6b, #9b2c2c); background-size: 200% 100%; animation: ti-shine 2.6s linear infinite; box-shadow: 0 0 8px rgba(255,107,107,.55); }
@keyframes ti-shine { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
/* 勋章角标（头像右下；形状当面名字+专属动画） */
.vm-avatar { position: relative; }
.bd-emblem { position: absolute; right: -5px; bottom: -5px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; width: 20px; height: 20px; border: none; background: none; padding: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
/* 经济等级角标：头像左上角胶囊（Lv1-100，每 10 级一档视觉特效，颜色/光效/动画各不相同） */
.lv-badge { position: absolute; left: -6px; top: -5px; min-width: 20px; height: 17px; padding: 0 5px; border-radius: 9px; color: #fff; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 1px 3px rgba(0,0,0,.4); z-index: 2; letter-spacing: .3px; font-variant-numeric: tabular-nums; }
/* Lv1-9 · 初识：石墨灰 */
.lv-t1 { background: linear-gradient(135deg, #9ca3af, #565f6e); }
/* Lv10-19 · 青铜 */
.lv-t2 { background: linear-gradient(135deg, #d9a066, #8f4f26); box-shadow: 0 1px 3px rgba(0,0,0,.4), inset 0 0 4px rgba(255,255,255,.3); }
/* Lv20-29 · 白银 */
.lv-t3 { background: linear-gradient(135deg, #eef4fa, #8fa3b8); box-shadow: 0 1px 3px rgba(0,0,0,.4), 0 0 6px rgba(214,230,248,.6); }
/* Lv30-39 · 黄金 */
.lv-t4 { background: linear-gradient(135deg, #ffd75e, #d97706); box-shadow: 0 1px 3px rgba(0,0,0,.4), 0 0 7px rgba(255,196,0,.65); }
/* Lv40-49 · 铂金 */
.lv-t5 { background: linear-gradient(135deg, #e0f7ff, #4da8cc); box-shadow: 0 1px 3px rgba(0,0,0,.4), 0 0 8px rgba(77,168,204,.65); }
/* Lv50-59 · 翡翠 */
.lv-t6 { background: linear-gradient(135deg, #6ee7b7, #047857); box-shadow: 0 1px 3px rgba(0,0,0,.4), 0 0 8px rgba(16,185,129,.6); }
/* Lv60-69 · 紫曜 */
.lv-t7 { background: linear-gradient(135deg, #d8b4fe, #6d28d9); box-shadow: 0 1px 3px rgba(0,0,0,.4), 0 0 9px rgba(139,92,246,.7); }
/* Lv70-79 · 红宝石 */
.lv-t8 { background: linear-gradient(135deg, #fda4af, #be123c); box-shadow: 0 1px 3px rgba(0,0,0,.4), 0 0 9px rgba(244,63,94,.65); }
/* Lv80-89 · 极光（流动渐变） */
.lv-t9 { background: linear-gradient(135deg, #67e8f9, #a78bfa, #34d399, #67e8f9); background-size: 300% 300%; animation: lv-aurora 3s linear infinite; box-shadow: 0 1px 3px rgba(0,0,0,.4), 0 0 10px rgba(103,232,249,.55); }
@keyframes lv-aurora { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
/* Lv90-100 · 王者（金红流转 + 呼吸光晕） */
.lv-t10 { background: linear-gradient(135deg, #fde047, #f97316, #ef4444, #fde047); background-size: 300% 300%; animation: lv-king 2.4s linear infinite, lv-pulse 1.6s ease-in-out infinite; }
@keyframes lv-king { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
@keyframes lv-pulse { 0%,100% { box-shadow: 0 1px 4px rgba(0,0,0,.45), 0 0 5px 1px rgba(251,191,36,.5); } 50% { box-shadow: 0 1px 4px rgba(0,0,0,.45), 0 0 13px 4px rgba(251,191,36,.95); } }
/* 满级 Lv100：金冠加持 */
.lv-max { box-shadow: 0 1px 4px rgba(0,0,0,.45), 0 0 14px 3px rgba(253,224,71,.9); }
.bd-bd-heart { animation: bd-heart 1s ease-in-out infinite; }
@keyframes bd-heart { 0%,100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } 45% { transform: scale(1.22); } }
.bd-bd-thunder { animation: bd-flash 1.2s ease-in-out infinite; }
@keyframes bd-flash { 0%,100% { opacity: 1; } 46% { opacity: .35; transform: rotate(10deg) scale(1.1); } 52% { opacity: 1; transform: rotate(-6deg); } }
.bd-bd-moon { animation: bd-moon 3s ease-in-out infinite; }
@keyframes bd-moon { 0%,100% { transform: rotate(-10deg); } 50% { transform: rotate(12deg); } }
.bd-bd-star { animation: bd-twinkle 1.4s ease-in-out infinite; }
@keyframes bd-twinkle { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.8); } }
.bd-bd-crown { animation: bd-wobble 2s ease-in-out infinite; }
@keyframes bd-wobble { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.bd-bd-mic { animation: bd-pulse 1s ease-in-out infinite; }
@keyframes bd-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.bd-bd-dj { animation: bd-wobble 1.6s ease-in-out infinite reverse; }
.bd-bd-flame { animation: bd-fire .8s ease-in-out infinite; }
@keyframes bd-fire { 0%,100% { transform: scale(1) rotate(-6deg); } 50% { transform: scale(1.2) rotate(6deg); } }
/* 声纹（说话时麦序框/头像动态特效；装备后接管视觉，抑制默认三重声波避免互相遮盖） */
.vm.talking.vo-wave .vm-avatar::before,
.vm.talking.vo-pulse .vm-avatar::before,
.vm.talking.vo-fire .vm-avatar::before,
.vm.talking.vo-eq .vm-avatar::before,
.vm.talking.vo-spin .vm-avatar::before,
.vm.talking.vo-heart .vm-avatar::before,
.vm.talking.vo-rainbow .vm-avatar::before,
.vm.talking.vo-liquid .vm-avatar::before { animation: none; opacity: 0; }
.vm.talking.vo-wave .vm-avatar { animation: vo-wave 0.45s ease-in-out infinite; border: 2px solid #39d6ff; border-radius: 32%; }
@keyframes vo-wave { 0%,100% { border-radius: 46%; transform: scale(1.08); } 50% { border-radius: 32%; transform: scale(1); } }
.vm.talking.vo-pulse .vm-avatar { animation: vo-pulse 0.55s ease-out infinite; border: 2px solid #ffaa3c; }
@keyframes vo-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,170,60,.75); } 100% { box-shadow: 0 0 0 16px rgba(255,170,60,0); } }
.vm.talking.vo-fire .vm-avatar { animation: vo-fire 0.35s linear infinite; border: 2px solid #ff7b00; }
@keyframes vo-fire { 0%,100% { filter: hue-rotate(0deg) drop-shadow(0 0 8px #ff7b00); } 50% { filter: hue-rotate(45deg) drop-shadow(0 0 16px #ffb700); } }
.vm.talking.vo-eq .vm-avatar { animation: vo-eq 0.45s ease-in-out 3; border: 2px solid #7bffb0; }
@keyframes vo-eq { 0%,100% { transform: scaleY(1); } 25% { transform: scaleY(1.18); } 50% { transform: scaleY(.85); } 75% { transform: scaleY(1.1); } }
.vm.talking.vo-spin .vm-avatar { animation: vo-spin 0.8s linear infinite; border: 2px solid #ffe066; }
@keyframes vo-spin { 0%,100% { transform: rotate(-5deg) scale(1.05); } 50% { transform: rotate(5deg) scale(1.1); } }
.vm.talking.vo-heart .vm-avatar { animation: vo-heart 0.9s ease-in-out infinite; border: 2px solid #ff5b8a; }
@keyframes vo-heart { 0%,100% { transform: scale(1); } 10% { transform: scale(1.2); } 20% { transform: scale(1.06); } 30% { transform: scale(1.16); } 40% { transform: scale(1); } }
.vm.talking.vo-rainbow .vm-avatar { animation: vo-rainbow 1.6s linear infinite; border: 2px solid #ff9df0; }
@keyframes vo-rainbow { 0%,100% { filter: hue-rotate(0deg) saturate(1.5); } 50% { filter: hue-rotate(180deg) saturate(1.5); } }
.vm.talking.vo-liquid .vm-avatar { animation: vo-liquid 1.8s ease-in-out infinite; border: 2px solid #9d8cff; }
@keyframes vo-liquid {
  0%,100% { border-radius: 45% 55% 50% 50% / 55% 45% 60% 40%; transform: scale(1); }
  33% { border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%; transform: scale(1.06); }
  66% { border-radius: 40% 60% 45% 55% / 60% 40% 55% 45%; transform: scale(0.97); }
}
/* 彩色昵称 */
.vm-nick.nick-color { color: #ffd700; text-shadow: 0 0 8px rgba(255,215,0,.8); }
/* 大喇叭横幅 */
.horn-bar { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b); color: #222; padding: 10px 24px; border-radius: 26px; font-weight: 700; z-index: 120; box-shadow: 0 6px 20px rgba(0,0,0,.45); display: flex; align-items: center; gap: 8px; max-width: 90vw; }
.horn-ico { font-size: 18px; }

/* ---------- 文件传输进度条（底部悬浮，非模态可取消） ---------- */
/* 文件传输管理面板：右下角多任务列表（上传↑/下载↓，进度+速度+单任务取消） */
.xfer-panel { position: fixed; right: 16px; bottom: 78px; z-index: 110; width: min(92vw, 340px); background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px 8px; box-shadow: 0 6px 24px rgba(0,0,0,.2); }
.xfer-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.xfer-title { font-size: 12px; font-weight: 800; color: var(--text); }
.xfer-count { font-size: 11px; color: var(--muted); flex: 1; }
.xfer-clear { font-size: 11px; padding: 1px 8px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; }
.xfer-clear:hover { color: var(--text); }
.xfer-list { display: flex; flex-direction: column; gap: 8px; max-height: 40vh; overflow-y: auto; }
.xfer-item { background: var(--panel2); border: 1px solid var(--border); border-radius: 10px; padding: 7px 9px 8px; }
.xfer-row1 { display: flex; align-items: center; gap: 7px; min-width: 0; }
.xfer-dir { font-size: 12px; font-weight: 800; width: 15px; text-align: center; flex: 0 0 auto; }
.xfer-dir.up { color: var(--accent); }
.xfer-dir.down { color: #22c55e; }
.xfer-fname { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xfer-pct { font-size: 12px; font-weight: 800; color: var(--accent); min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; }
.xfer-cancel { flex: 0 0 auto; width: 20px; height: 20px; line-height: 17px; padding: 0; text-align: center; font-size: 12px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; }
.xfer-cancel:hover { border-color: var(--danger); color: var(--danger); }
.xfer-track { margin: 6px 0 4px; height: 7px; border-radius: 999px; background: var(--bg2, var(--panel)); overflow: hidden; }
.xfer-fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #ff9d2e); transition: width .2s; }
.xfer-fill.down { background: linear-gradient(90deg, #22c55e, #86efac); }
.xfer-item.state-done .xfer-fill, .xfer-item.state-cancel .xfer-fill { background: var(--muted); }
.xfer-item.state-error .xfer-fill { background: var(--danger, #ef4444); }
.xfer-row2 { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.xfer-size { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xfer-speed { font-weight: 700; }
.xfer-state.done { color: #22c55e; }
.xfer-state.error { color: var(--danger, #ef4444); }
.xfer-state.cancel { color: var(--muted); }
@media (max-width: 640px) { .xfer-panel { right: 8px; left: 8px; width: auto; bottom: 88px; } }

/* ---------- 华丽动态头像框 v2（14 款，DOM/SVG 装饰层，各端本地渲染零带宽） ---------- */
.afd { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 1; pointer-events: none; }
.afd .afs { position: absolute; width: 170px; height: 170px; left: -85px; top: -85px; transform-origin: 85px 85px; transform: scale(var(--afs, .574)); }
.afd[data-af="wing"] .afs { width: 260px; height: 200px; left: -130px; top: -100px; }
.afd[data-af="flame"] .afs { width: 200px; height: 200px; left: -100px; top: -100px; }
.afd[data-af="crown"] .afs { width: 200px; height: 190px; left: -100px; top: -95px; }
.afd[data-af="cloud"] .afs { width: 210px; height: 190px; left: -105px; top: -95px; }
.afd[data-af="phoenix"] .afs { width: 230px; height: 190px; left: -115px; top: -95px; }
.afd[data-af="ice"] .afs { width: 180px; height: 180px; left: -90px; top: -90px; }
.afd .af-halo { position: absolute; border-radius: 50%; z-index: 1; }
.afd .af-ring { position: absolute; border-radius: 50%; z-index: 2; }
.afd .af-orbit { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 4; pointer-events: none; animation: af-spin var(--d, 7s) linear infinite; animation-delay: var(--dl, 0s); }
.afd .af-orbit.rv { animation-name: af-spinRev; }
.afd .af-orbit>i { position: absolute; left: 50%; top: 50%; width: var(--s, 22px); height: var(--s, 22px); margin: calc(var(--s, 22px)/-2) 0 0 calc(var(--s, 22px)/-2); transform: rotate(var(--a, 0deg)) translateY(calc(-1*var(--r, 80px))); }
.afd .af-orbit>i>svg { display: block; width: 100%; height: 100%; overflow: visible; animation: af-counter var(--d, 7s) linear infinite; animation-delay: var(--dl, 0s); }
.afd .af-orbit.rv>i>svg { animation-name: af-counterRv; }
.afd .af-sp { position: absolute; width: 13px; height: 13px; z-index: 2; color: #bcd8ff; filter: drop-shadow(0 0 5px currentColor); animation: af-twinkle var(--t, 2.4s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
.afd .bf .wl, .afd .bf .wr { transform-origin: 12px 11.8px; animation: af-flap var(--fd, .3s) ease-in-out infinite alternate; }
.afd .af-pb { position: absolute; z-index: 4; filter: drop-shadow(0 0 4px rgba(255,255,255,.55)); }
.afd .af-pb .bf { width: 100%; height: 100%; overflow: visible; }
.afd .af-hearts svg { width: 100%; height: 100%; overflow: visible; }
@keyframes af-spin { to { transform: rotate(360deg); } }
@keyframes af-spinRev { to { transform: rotate(-360deg); } }
@keyframes af-counter { from { transform: rotate(calc(var(--a,0deg)*-1)); } to { transform: rotate(calc(var(--a,0deg)*-1 - 360deg)); } }
@keyframes af-counterRv { from { transform: rotate(calc(var(--a,0deg)*-1)); } to { transform: rotate(calc(var(--a,0deg)*-1 + 360deg)); } }
@keyframes af-twinkle { 0%, 100% { opacity: .15; transform: scale(.5); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes af-floaty { from { transform: translateY(-2px); } to { transform: translateY(3px); } }
@keyframes af-flap { from { transform: scaleX(1); } to { transform: scaleX(.3); } }
@keyframes af-hup { 0% { opacity: 0; transform: translateY(6px) scale(.4); } 12% { opacity: .95; } 70% { opacity: .75; } 100% { opacity: 0; transform: translate(var(--sx,12px), -112px) scale(1.05); } }
@keyframes af-wv { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(16deg); } }
@keyframes af-flapW { from { transform: rotate(-2.2deg); } to { transform: rotate(2.8deg); } }
@keyframes af-sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes af-glint { from { opacity: .85; } to { opacity: 1; } }
@keyframes af-sqTw { 0%, 100% { opacity: .15; transform: rotate(45deg) scale(.5); } 50% { opacity: 1; transform: rotate(45deg) scale(1.12); } }
@keyframes af-flick { from { transform: scaleY(.75); } to { transform: scaleY(1.12); } }
@keyframes af-breathe { from { transform: scale(1); } to { transform: scale(1.025); } }
@keyframes af-wflap { from { transform: scaleY(.72); } to { transform: scaleY(1.08); } }
@keyframes af-wigL { 0%, 55%, 100% { transform: rotate(var(--tilt,0deg)); } 62% { transform: rotate(calc(var(--tilt,0deg) + 7deg)); } 70% { transform: rotate(calc(var(--tilt,0deg) - 3deg)); } 78% { transform: rotate(calc(var(--tilt,0deg) + 4deg)); } 86% { transform: rotate(var(--tilt,0deg)); } }
@keyframes af-phoenixC { from { transform: rotate(calc(var(--a,0deg)*-1)) scaleY(1.667); } to { transform: rotate(calc(var(--a,0deg)*-1 - 360deg)) scaleY(1.667); } }
@keyframes af-phoenixR { from { transform: rotate(calc(var(--a,0deg)*-1)) scaleY(1.667); } to { transform: rotate(calc(var(--a,0deg)*-1 + 360deg)) scaleY(1.667); } }

/* f1 霜月蝶梦 */
.afd[data-af="bfly"] .af-halo { top: 18px; right: 18px; bottom: 18px; left: 18px; background: radial-gradient(circle, transparent 58%, rgba(120,190,255,.28) 72%, transparent 78%); filter: blur(1px); }
.afd[data-af="bfly"] .af-ring { top: 16px; right: 16px; bottom: 16px; left: 16px; border: 1.5px solid rgba(150,205,255,.5); box-shadow: 0 0 14px rgba(120,190,255,.35), inset 0 0 10px rgba(120,190,255,.25); }
.afd[data-af="bfly"] .af-moon { position: absolute; left: 14px; top: 12px; width: 17px; height: 17px; z-index: 2; filter: drop-shadow(0 0 5px rgba(190,225,255,.95)); animation: af-floaty 4s ease-in-out infinite alternate; }
.afd[data-af="bfly"] .af-sp { color: #a8d4ff; }
/* f2 绯梦心羽 */
.afd[data-af="heartf"] .af-halo { top: 16px; right: 16px; bottom: 16px; left: 16px; background: radial-gradient(circle, transparent 60%, rgba(255,110,199,.25) 74%, transparent 80%); filter: blur(2px); }
.afd[data-af="heartf"] .af-ring { top: 15px; right: 15px; bottom: 15px; left: 15px; border: 1.5px solid rgba(255,140,210,.4); box-shadow: 0 0 16px rgba(255,110,199,.35); }
.afd .af-sweep { position: absolute; border-radius: 50%; z-index: 2; }
.afd[data-af="heartf"] .af-sweep { top: 15px; right: 15px; bottom: 15px; left: 15px; background: rgba(255,120,205,.5); background: conic-gradient(from 0deg, transparent 0 30deg, rgba(255,120,205,.95) 90deg, rgba(170,100,255,.9) 150deg, transparent 210deg 360deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4.5px), #000 calc(100% - 3.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4.5px), #000 calc(100% - 3.5px)); filter: drop-shadow(0 0 6px rgba(255,120,205,.8)); animation: af-spin 4.5s linear infinite; }
.afd[data-af="heartf"] .af-hearts i { position: absolute; bottom: 10px; width: 13px; height: 13px; opacity: 0; z-index: 4; filter: drop-shadow(0 0 4px rgba(255,120,205,.85)); animation: af-hup 3.2s ease-in-out infinite; animation-delay: var(--dl, 0s); }
/* f3 绒星猫语 */
.afd[data-af="cat"] .af-ears { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); display: flex; z-index: 2; }
.afd[data-af="cat"] .af-ear { width: 46px; height: 41px; overflow: visible; }
.afd[data-af="cat"] .af-ear .eo { fill: #232837; stroke: #39415a; stroke-width: 1.4; stroke-linejoin: round; }
.afd[data-af="cat"] .af-ear .ei { fill: url(#gPink); }
.afd[data-af="cat"] .af-el { --tilt: -14deg; transform-origin: 78% 92%; animation: af-wigL 3.4s ease-in-out infinite; }
.afd[data-af="cat"] .af-er { --tilt: 14deg; margin-left: 30px; transform-origin: 22% 92%; animation: af-wigL 3.4s ease-in-out infinite; animation-delay: .12s; }
.afd[data-af="cat"] .af-sp { color: #ffc4e2; }
/* f4 星核幻环 */
.afd[data-af="core"] .af-ring { top: 14px; right: 14px; bottom: 14px; left: 14px; background: rgba(64,255,218,.45); background: conic-gradient(from 40deg, rgba(64,255,218,.9), rgba(56,189,255,.7) 120deg, rgba(64,255,218,.15) 220deg, rgba(64,255,218,.9) 360deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); box-shadow: 0 0 18px rgba(64,255,218,.3); filter: drop-shadow(0 0 6px rgba(64,255,218,.5)); }
.afd[data-af="core"] .af-ring2 { top: 27px; right: 27px; bottom: 27px; left: 27px; border: 1px solid rgba(94,255,225,.22); }
.afd[data-af="core"] .af-comet-orbit { position: absolute; top: 14px; right: 14px; bottom: 14px; left: 14px; z-index: 4; pointer-events: none; animation: af-spin 3.6s linear infinite; }
.afd[data-af="core"] .af-trail { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; background: rgba(94,255,225,.2); background: conic-gradient(from -60deg, rgba(94,255,225,0) 0deg, rgba(94,255,225,.06) 30deg, rgba(94,255,225,.65) 57deg, rgba(255,255,255,.9) 59.4deg, transparent 60.2deg 360deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 4px)); filter: blur(.5px); }
.afd[data-af="core"] .af-comet { position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -5.5px; border-radius: 50%; background: #eafffb; transform: translateY(-69px); box-shadow: 0 0 10px 3px rgba(94,255,225,.95), 0 0 22px 8px rgba(64,255,218,.45); }
.afd[data-af="core"] .af-sq { position: absolute; width: 5px; height: 5px; background: #9ff5e4; z-index: 2; box-shadow: 0 0 6px rgba(94,255,225,.9); animation: af-sqTw 2.8s ease-in-out infinite; animation-delay: var(--dl, 0s); }
/* f5 霓虹星轨 */
.afd[data-af="orbit"] .af-halo { top: 14px; right: 14px; bottom: 14px; left: 14px; background: radial-gradient(circle, transparent 62%, rgba(150,80,255,.22) 76%, transparent 82%); filter: blur(2px); }
.afd[data-af="orbit"] .af-ra { position: absolute; top: 16px; right: 16px; bottom: 16px; left: 16px; border-radius: 50%; z-index: 2; background: rgba(255,80,220,.45); background: conic-gradient(from 0deg, transparent 0 20deg, rgba(255,80,220,.95) 70deg, rgba(140,80,255,.9) 130deg, transparent 190deg 360deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); filter: drop-shadow(0 0 5px rgba(255,80,220,.7)); animation: af-spin 5.5s linear infinite; }
.afd[data-af="orbit"] .af-rb { position: absolute; top: 27px; right: 27px; bottom: 27px; left: 27px; border-radius: 50%; z-index: 2; background: rgba(80,200,255,.4); background: conic-gradient(from 180deg, transparent 0 40deg, rgba(80,200,255,.9) 100deg, rgba(90,120,255,.85) 160deg, transparent 230deg 360deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 2.5px)); filter: drop-shadow(0 0 5px rgba(80,200,255,.7)); animation: af-spinRev 7.5s linear infinite; }
/* f6 随心挥手 */
.afd[data-af="wave"] .af-halo { top: 16px; right: 16px; bottom: 16px; left: 16px; background: radial-gradient(circle, transparent 60%, rgba(255,255,255,.12) 75%, transparent 82%); filter: blur(1px); }
.afd[data-af="wave"] .af-ring { top: 16px; right: 16px; bottom: 16px; left: 16px; border: 1.5px solid rgba(255,255,255,.28); box-shadow: 0 0 12px rgba(255,255,255,.15); }
.afd[data-af="wave"] .af-hand { position: absolute; left: 0; bottom: 6px; width: 58px; height: 58px; z-index: 5; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); transform-origin: 60% 80%; animation: af-wv 1.1s ease-in-out infinite; }
.afd[data-af="wave"] .af-sp { color: #e8f1ff; }
/* f7 霜羽女神之翼 */
.afd[data-af="wing"] .af-halo { top: 40px; left: 70px; width: 120px; height: 120px; background: radial-gradient(circle, rgba(255,255,255,.42), rgba(255,255,255,0) 72%); }
.afd[data-af="wing"] .af-wings { position: absolute; top: 0; left: 0; width: 260px; height: 200px; z-index: 1; filter: drop-shadow(0 1px 5px rgba(100,120,190,.5)); }
.afd[data-af="wing"] .af-wingA { transform-box: view-box; transform-origin: 115px 140px; animation: af-flapW 3.4s ease-in-out infinite alternate; }
.afd[data-af="wing"] .af-flowers { position: absolute; left: 96px; top: 0; width: 78px; height: 52px; z-index: 4; transform-origin: 50% 100%; animation: af-sway 4.2s ease-in-out infinite alternate; filter: drop-shadow(0 1px 3px rgba(255,140,170,.5)); }
.afd[data-af="wing"] .af-roses { position: absolute; left: 8px; bottom: 4px; width: 52px; height: 40px; z-index: 4; filter: drop-shadow(0 1px 3px rgba(255,120,160,.45)); }
.afd[data-af="wing"] .af-roses2 { left: auto; right: 10px; bottom: 8px; width: 44px; height: 34px; }
.afd[data-af="wing"] .af-ice { position: absolute; left: 65px; bottom: 0; width: 130px; height: 34px; z-index: 4; filter: drop-shadow(0 0 5px rgba(190,230,255,.7)); animation: af-glint 3s ease-in-out infinite alternate; }
.afd[data-af="wing"] .af-pearls { position: absolute; top: 0; left: 0; width: 260px; height: 200px; z-index: 4; }
.afd[data-af="wing"] .af-sp { color: #fff; }
.afd[data-af="wing"] .af-sp.pk { color: #ffc7e0; }
/* f8 炽羽凰环 */
.afd[data-af="flame"] .af-halo { top: 36px; right: 36px; bottom: 36px; left: 36px; background: radial-gradient(circle, rgba(255,225,160,.35), rgba(255,225,160,0) 72%); }
.afd[data-af="flame"] .af-fring { position: absolute; top: 22px; right: 22px; bottom: 22px; left: 22px; border-radius: 50%; z-index: 2; background: conic-gradient(from 0deg, rgba(255,255,255,.95), rgba(255,214,140,.85) 60deg, rgba(255,255,255,.12) 130deg, rgba(255,240,200,.9) 200deg, rgba(255,200,100,.7) 280deg, rgba(255,255,255,.95) 360deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 8px)); mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 8px)); filter: blur(1px) drop-shadow(0 0 8px rgba(255,205,120,.75)); animation: af-spin 10s linear infinite; }
.afd[data-af="flame"] .af-ring2 { top: 30px; right: 30px; bottom: 30px; left: 30px; border: 1px solid rgba(255,235,190,.35); }
.afd[data-af="flame"] .af-fw svg { display: block; width: 100%; height: 100%; overflow: visible; transform-box: view-box; transform-origin: 13px 62px; animation: af-flick .9s ease-in-out infinite alternate; animation-delay: var(--fdl, 0s); }
.afd[data-af="flame"] .af-sp { color: #ffd98a; }
/* f9 素描蝶环 */
.afd[data-af="sketch"] .af-sk1 { top: 20px; right: 20px; bottom: 20px; left: 20px; border: 2px solid rgba(255,255,255,.85); transform: rotate(-2deg); box-shadow: 0 0 8px rgba(255,255,255,.25); }
.afd[data-af="sketch"] .af-sk2 { top: 23px; right: 17px; bottom: 23px; left: 17px; border: 1px solid rgba(255,255,255,.35); transform: rotate(1.5deg); }
.afd[data-af="sketch"] .af-arcs { position: absolute; top: 0; left: 0; width: 170px; height: 170px; z-index: 2; }
.afd[data-af="sketch"] .bf path, .afd[data-af="sketch"] .bf ellipse { stroke: #8f99ad; stroke-width: .6; }
/* f10 粉羽心冕 */
.afd[data-af="crown"] .af-halo { top: 44px; left: 46px; width: 108px; height: 108px; background: radial-gradient(circle, rgba(255,190,220,.4), rgba(255,190,220,0) 72%); }
.afd[data-af="crown"] .af-heartG { position: absolute; top: 0; left: 0; width: 200px; height: 190px; z-index: 1; filter: drop-shadow(0 0 10px rgba(255,170,210,.55)); }
.afd[data-af="crown"] .af-hb { transform-box: view-box; transform-origin: 100px 96px; animation: af-breathe 3.6s ease-in-out infinite alternate; }
.afd[data-af="crown"] .af-hearts i { position: absolute; bottom: 14px; width: 11px; height: 11px; opacity: 0; z-index: 4; filter: drop-shadow(0 0 4px rgba(255,140,200,.85)); animation: af-hup 3s ease-in-out infinite; animation-delay: var(--dl, 0s); }
.afd[data-af="crown"] .af-sp { color: #ffc7e0; }
/* f11 紫云星月环 */
.afd[data-af="cloud"] .af-halo { top: 40px; left: 50px; width: 110px; height: 110px; background: radial-gradient(circle, rgba(190,175,255,.35), rgba(190,175,255,0) 72%); }
.afd[data-af="cloud"] .af-ell { position: absolute; left: 50%; top: 50%; width: 210px; height: 210px; margin: -105px 0 0 -105px; transform: scaleY(.52); z-index: 2; }
.afd[data-af="cloud"] .af-pf svg { display: block; width: 100%; height: 100%; overflow: visible; filter: blur(.4px); animation: none; }
.afd[data-af="cloud"] .af-goldring { position: absolute; top: 44px; right: 44px; bottom: 44px; left: 44px; border-radius: 50%; z-index: 1; background: conic-gradient(from 120deg, rgba(255,228,160,.95), rgba(255,216,130,.2) 110deg, rgba(255,240,200,.9) 230deg, rgba(255,228,160,.95) 360deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); filter: drop-shadow(0 0 6px rgba(255,216,130,.55)); animation: af-spin 26s linear infinite; }
.afd[data-af="cloud"] .af-moon { position: absolute; right: 34px; top: 12px; width: 17px; height: 17px; z-index: 2; filter: drop-shadow(0 0 5px rgba(255,240,200,.95)); animation: af-floaty 4s ease-in-out infinite alternate; }
.afd[data-af="cloud"] .af-sp { color: #cabdff; }
/* f12 月蝶白环 */
.afd[data-af="moonbf"] .af-mring { top: 22px; right: 22px; bottom: 22px; left: 22px; border: 3px solid rgba(255,255,255,.85); box-shadow: 0 0 14px rgba(255,255,255,.4), inset 0 0 8px rgba(255,255,255,.3); filter: blur(.4px); }
.afd[data-af="moonbf"] .af-marc { position: absolute; top: 22px; right: 22px; bottom: 22px; left: 22px; border-radius: 50%; z-index: 2; background: conic-gradient(from 0deg, transparent 0 40deg, rgba(255,255,255,.95) 100deg, rgba(255,255,255,.25) 170deg, transparent 230deg 360deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); filter: drop-shadow(0 0 5px rgba(255,255,255,.8)); animation: af-spin 12s linear infinite; }
/* f13 冰蓝星蝶环 */
.afd[data-af="ice"] .af-halo { top: 34px; left: 34px; width: 112px; height: 112px; background: radial-gradient(circle, rgba(140,210,255,.35), rgba(140,210,255,0) 72%); }
.afd[data-af="ice"] .af-iring { position: absolute; top: 20px; right: 20px; bottom: 20px; left: 20px; border-radius: 50%; z-index: 2; background: conic-gradient(from 0deg, rgba(190,240,255,.95), rgba(90,180,255,.85) 80deg, rgba(255,255,255,.15) 150deg, rgba(140,220,255,.9) 230deg, rgba(70,150,255,.6) 300deg, rgba(190,240,255,.95) 360deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); filter: drop-shadow(0 0 6px rgba(120,200,255,.8)); animation: af-spin 9s linear infinite; }
.afd[data-af="ice"] .af-ish svg { display: block; width: 100%; height: 100%; overflow: visible; animation: af-twinkle 2.6s ease-in-out infinite; animation-delay: var(--fdl, 0s); }
.afd[data-af="ice"] .af-tilt { position: absolute; left: 50%; top: 50%; width: 180px; height: 180px; margin: -90px 0 0 -90px; transform: rotate(-18deg); z-index: 4; }
.afd[data-af="ice"] .af-ell { position: absolute; top: 0; right: 0; bottom: 0; left: 0; transform: scaleY(.42); }
.afd[data-af="ice"] .af-odt { display: block; width: 100%; height: 100%; border-radius: 50%; background: #dff4ff; box-shadow: 0 0 8px 2px rgba(150,220,255,.95); }
.afd[data-af="ice"] .af-sp { color: #9fd8ff; }
/* f14 双凤恋玫 */
.afd[data-af="phoenix"] .af-halo { top: 38px; left: 62px; width: 106px; height: 106px; background: radial-gradient(circle, rgba(210,200,255,.35), rgba(210,200,255,0) 72%); }
.afd[data-af="phoenix"] .af-tilt { position: absolute; left: 50%; top: 50%; width: 230px; height: 230px; margin: -115px 0 0 -115px; transform: rotate(-14deg); z-index: 4; }
.afd[data-af="phoenix"] .af-ell { position: absolute; top: 0; right: 0; bottom: 0; left: 0; transform: scaleY(.6); }
.afd[data-af="phoenix"] .af-orbit>i>span { display: block; width: 100%; height: 100%; animation: af-phoenixC var(--d, 10s) linear infinite; animation-delay: var(--dl, 0s); }
.afd[data-af="phoenix"] .af-orbit>i>span svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 6px rgba(240,240,255,.6)); }
.afd[data-af="phoenix"] .af-wng { transform-box: view-box; transform-origin: 26px 22px; animation: af-wflap 1.1s ease-in-out infinite alternate; }
.afd[data-af="phoenix"] .af-rose { position: absolute; left: 85px; bottom: -2px; width: 60px; height: 54px; z-index: 5; filter: drop-shadow(0 0 6px rgba(255,255,255,.35)); }
.afd[data-af="phoenix"] .af-sp { color: #e8e2ff; }
/* f18 白凤羽环：真图素材（/icons/frame-wreath.png，环心已拟合对齐头像圈）+ 星光动画 */
.afd .af-wr-glow { position: absolute; left: 6px; top: 34px; width: 118px; height: 112px; border-radius: 50%; background: radial-gradient(circle, rgba(255,228,166,.4) 16%, rgba(255,206,120,.16) 48%, transparent 70%); filter: blur(4px); animation: wreath-glow 4.5s ease-in-out infinite; z-index: -1; }
/* 真图头像框基础规则：绝对定位 + 拉伸铺满拟合框（缺此规则会按 PNG 原始尺寸渲染，超大且错位） */
.afd[data-af="lbutter"] .af-wr-img, .afd[data-af="pwheart"] .af-wr-img, .afd[data-af="vdragon"] .af-wr-img,
.afd[data-af="wring"] .af-wr-img, .afd[data-af="bflyice"] .af-wr-img, .afd[data-af="wphoenix"] .af-wr-img {
  position: absolute; background-size: 100% 100%; background-repeat: no-repeat;
}
/* 真图框动态：transform-origin 定在各自环心，动起来环不偏 */
.afd[data-af="lbutter"] .af-wr-img { left: 32.6px; top: 31.5px; width: 100.2px; height: 114.1px; background-image: url(/icons/frame-lbutter.png); transform-origin: 52.4px 53.5px; animation: af-img-swayA 6.5s ease-in-out infinite; }
.afd[data-af="pwheart"] .af-wr-img { left: 25.3px; top: 36px; width: 120.1px; height: 113.4px; background-image: url(/icons/frame-pwheart.png); transform-origin: 59.7px 49px; animation: af-img-beat 1.6s ease-in-out infinite; }
/* 紫龙的头像孔位于原图 (107.8,81.4)，内半径约 58px；用孔位校准，不能用整张素材的中心。 */
.afd[data-af="vdragon"] .af-wr-img { left: 7.42px; top: 26.42px; width: 146.81px; height: 148.97px; background-image: url(/icons/frame-vdragon.png); transform-origin: 77.58px 58.58px; animation: af-img-rock 8s ease-in-out infinite; }
.afd[data-af="wring"] .af-wr-img { left: 28.8px; top: 31px; width: 101.8px; height: 110.2px; background-image: url(/icons/frame-wring.png); transform-origin: 56.2px 54px; animation: af-img-swayB 7.5s ease-in-out infinite; }
.afd[data-af="bflyice"] .af-wr-img { left: 31.3px; top: 37px; width: 101.8px; height: 98.6px; background-image: url(/icons/frame-bflyice.png); transform-origin: 53.7px 48px; animation: af-img-orbit 11s linear infinite; }
.afd[data-af="wphoenix"] .af-wr-img { left: 31px; top: 37.3px; width: 101.8px; height: 104px; background-image: url(/icons/frame-wphoenix.png); transform-origin: 54px 47.7px; animation: af-img-bob 5.5s ease-in-out infinite; }
.afd[data-af="wreath"] .af-wr-img { position: absolute; left: 27.1px; top: 31.3px; width: 101.8px; height: 114.1px; background-image: url(/icons/frame-wreath.png); background-size: 100% 100%; background-repeat: no-repeat; transform-origin: 57.9px 53.7px; animation: wreath-sway 7s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(255,222,150,.35)); }
.afd .af-star-big { position: absolute; left: 45.8px; top: 29px; width: 32px; height: 32px; z-index: 5; color: #fffbe9; filter: drop-shadow(0 0 10px rgba(255,246,220,.95)) drop-shadow(0 0 20px rgba(255,214,130,.7)); animation: wreath-star 3.2s ease-in-out infinite; }
@keyframes wreath-sway { 0%, 100% { transform: rotate(-2.6deg) scale(1); } 50% { transform: rotate(2.6deg) scale(1.02); } }
@keyframes wreath-glow { 0%, 100% { opacity: .65; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes wreath-star { 0%, 100% { transform: scale(.8) rotate(-12deg); opacity: .8; } 50% { transform: scale(1.18) rotate(10deg); opacity: 1; } }
/* 真图框主题动画 */
@keyframes af-img-swayA { 0%, 100% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.2deg) scale(1.015); } }
@keyframes af-img-swayB { 0%, 100% { transform: rotate(2.4deg) scale(1.015); } 50% { transform: rotate(-2.4deg); } }
@keyframes af-img-beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.055); } 28% { transform: scale(1); } 42% { transform: scale(1.04); } 56% { transform: scale(1); } }
@keyframes af-img-rock { 0%, 100% { transform: rotate(1.6deg); } 50% { transform: rotate(-1.6deg); } }
@keyframes af-img-orbit { to { transform: rotate(360deg); } }
@keyframes af-img-bob { 0%, 100% { transform: rotate(-1deg); } 50% { transform: rotate(1deg); } }
/* 各框光晕配色 */
.afd[data-af="pwheart"] .af-wr-glow { background: radial-gradient(circle, rgba(255,160,210,.42) 16%, rgba(255,110,180,.16) 48%, transparent 70%); }
.afd[data-af="vdragon"] .af-wr-glow { background: radial-gradient(circle, rgba(195,155,255,.42) 16%, rgba(150,105,255,.16) 48%, transparent 70%); }
.afd[data-af="bflyice"] .af-wr-glow { background: radial-gradient(circle, rgba(155,215,255,.42) 16%, rgba(110,180,255,.16) 48%, transparent 70%); }
.afd[data-af="wphoenix"] .af-wr-glow { background: radial-gradient(circle, rgba(255,236,220,.42) 16%, rgba(255,190,150,.16) 48%, transparent 70%); }
/* 头像框装饰层（.afd）为用户装备的装饰道具，不受系统"减弱动态效果"停用（同上 2026-10-17 修复） */

/* Hold-to-dispatch uses the existing channel tree. */
.member-draggable { cursor: grab; user-select: none; }
.member-holding { outline: 1px dashed var(--accent, #668899); outline-offset: 2px; }
body.member-dispatching, body.member-dispatching * { cursor: grabbing !important; user-select: none !important; }
#chanList .tree-room.member-drop-target { outline: 2px solid var(--accent, #668899); outline-offset: -2px; background: var(--soft-selected, rgba(100,140,160,.2)); }
.member-drag-ghost { position: fixed; z-index: 20000; pointer-events: none; max-width: min(360px, calc(100vw - 16px)); padding: 10px 14px; border: 1px solid var(--accent, #668899); border-radius: 8px; color: var(--text, #fff); background: var(--panel, #252b32); box-shadow: 0 6px 20px #0003; font-size: 13px; overflow-wrap: anywhere; }
