/* ===========================================================
   ui-refresh.css — 大厅 / 资料 / 公屏 / 私聊 / 加好友 视觉重做
   风格取自声屿自己的语言：玻璃拟态 + 蓝紫渐变 + 大圆角胶囊，
   只在信息架构上借鉴主流语音客户端的组织方式，不做视觉复刻。
   =========================================================== */

/* ---------- 大厅：主导航条 ---------- */

.lobby-nav {
  max-width: 1280px;
  margin: 14px auto 0;
  padding: 0 4px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.lobby-nav::-webkit-scrollbar { display: none; }

.lobby-nav-item {
  flex: 0 0 auto;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
.lobby-nav-item:hover { color: var(--text); background: rgba(255, 255, 255, .55); }
.lobby-nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, #5b8def, #8b6cf0);
  box-shadow: 0 6px 18px rgba(91, 141, 239, .32);
}

/* ---------- 大厅：主区 + 右栏 ---------- */

.lobby-body {
  max-width: 1280px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 238px;
  gap: 18px;
  align-items: start;
  padding-top: 16px;
}
.lobby-main { min-width: 0; }

.lobby-side {
  position: sticky;
  top: 16px;
  border-radius: 20px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-block { display: flex; flex-direction: column; gap: 8px; }
.side-title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
}
.side-empty {
  font-size: 12.5px;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .45);
  border: 1px dashed rgba(120, 140, 180, .28);
}
.side-action {
  width: 100%;
  text-align: left;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(120, 140, 180, .22);
  background: rgba(255, 255, 255, .62);
  color: var(--text);
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.side-action:hover {
  background: rgba(255, 255, 255, .9);
  border-color: rgba(91, 141, 239, .45);
  transform: translateX(2px);
}

/* ---------- 大厅：岛屿卡片 ---------- */

.lobby-head { align-items: center; margin-bottom: 14px; }
.lobby-head h2 { margin: 0; }
.create-row { display: flex; gap: 8px; }
.create-row input { width: 148px; }
.create-row .primary { white-space: nowrap; }
.channel-list { grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 14px; }
.channel-card { border-radius: 18px; }
.channel-cover { height: 108px; }
.channel-card.featured { grid-column: span 2; grid-row: span 1; }
.channel-card.featured .channel-cover { min-height: 108px; height: 108px; }
.channel-card h3 { font-size: 14px; }
.channel-body { padding: 11px 13px 13px; gap: 6px; }
.channel-card .primary { border-radius: 10px; padding: 8px 0; font-size: 13px; }

/* ---------- 添加好友弹窗 ---------- */

.modal-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(24, 34, 52, .46);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 60;
}
.friend-modal {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid rgba(120, 140, 180, .18);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(28, 40, 70, .28);
  animation: fm-pop .18s ease-out;
}
@keyframes fm-pop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.fm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
}
.fm-head h3 { margin: 0; font-size: 15px; }
.fm-body { padding: 0 18px 6px; display: flex; flex-direction: column; gap: 8px; }

.fm-target {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(91, 141, 239, .10), rgba(139, 108, 240, .08));
}
.fm-target .mini-avatar { width: 34px; height: 34px; }
.fm-name { font-size: 14px; font-weight: 600; }
.fm-uid { font-size: 12px; }

.fm-label { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.fm-textarea, .fm-input, .fm-select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(120, 140, 180, .26);
  background: rgba(255, 255, 255, .82);
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--text);
  font-family: inherit;
  resize: none;
}
.fm-textarea:focus, .fm-input:focus, .fm-select:focus {
  outline: none;
  border-color: rgba(91, 141, 239, .6);
  box-shadow: 0 0 0 3px rgba(91, 141, 239, .12);
}
.fm-row { display: flex; align-items: center; gap: 8px; }
.fm-row .fm-label { margin: 0; flex: 0 0 auto; }
.fm-row .fm-select { flex: 1 1 auto; }
.fm-new-group {
  flex: 0 0 auto;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(120, 140, 180, .3);
  background: transparent;
  color: var(--muted);
  cursor: not-allowed;
}
.fm-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px 18px;
}
.fm-foot .ghost, .fm-foot .primary { min-width: 92px; border-radius: 12px; padding: 9px 0; }

/* ---------- 个人资料：信息行 ---------- */

.profile-card { border-radius: 22px; }
.profile-fields, .profile-list { display: flex; flex-direction: column; gap: 0; }
.field-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(120, 140, 180, .16);
}
.field-row:last-child { border-bottom: 0; }
.field-row > label,
.field-row > .field-key {
  font-size: 13px;
  color: var(--muted);
}
.field-row > .field-val { font-size: 13.5px; }

/* ---------- 私聊窗口 ---------- */

.dm-panel { border-radius: 18px; width: min(392px, 100%); }
.dm-head { padding: 12px 14px; border-bottom: 1px solid rgba(120, 140, 180, .16); }
.dm-name { font-size: 14px; font-weight: 600; }
.dm-list { padding: 14px; gap: 10px; }
.dm-form {
  border-top: 1px solid rgba(120, 140, 180, .16);
  padding: 10px 12px 12px;
  display: flex;
  gap: 8px;
}
.dm-form input { border-radius: 12px; }

/* ---------- 房间公屏 ---------- */

.room-shell { gap: 14px; }
.chat-form input, .chat-input { border-radius: 12px; }
.member-list .member-row { border-radius: 10px; }

/* ---------- 窄屏 ---------- */

@media (max-width: 980px) {
  .lobby-body { grid-template-columns: minmax(0, 1fr); }
  .lobby-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .lobby-side .side-block { flex: 1 1 180px; }
  .channel-list { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .channel-card.featured { grid-column: span 1; }
}

/* ---------- 个人资料：封面 + 分区 tab ---------- */

.profile-card { padding: 0; overflow: hidden; }
.profile-cover {
  position: relative;
  height: 96px;
  background: linear-gradient(120deg, #6f8ff5 0%, #9a7bf0 46%, #63c7d8 100%);
}
.profile-cover .cover-glow {
  position: absolute; inset: 0;
  background: radial-gradient(220px 110px at 22% 8%, rgba(255, 255, 255, .42), transparent 62%),
              radial-gradient(180px 90px at 82% 96%, rgba(255, 255, 255, .22), transparent 60%);
}

.profile-tabs {
  display: flex;
  gap: 4px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(120, 140, 180, .16);
}
.ptab {
  border: 0;
  background: transparent;
  padding: 12px 14px 11px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.ptab:hover { color: var(--text); }
.ptab.active { color: var(--text); font-weight: 600; border-bottom-color: #6f8ff5; }

.profile-top { padding: 18px 24px 0; }
.profile-stats { padding: 0 24px; }
.profile-form { padding: 4px 24px 22px; }
.profile-pane { padding: 8px 24px 26px; }
.pane-empty {
  border-radius: 16px;
  border: 1px dashed rgba(120, 140, 180, .28);
  background: rgba(255, 255, 255, .5);
  padding: 22px;
  text-align: center;
  font-size: 14px;
}
.pane-empty b { font-size: 20px; color: #6f8ff5; }
.pane-empty p { margin: 6px 0 0; }

/* ---------- 私聊：工具行 ---------- */

.dm-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px 0;
}
.dm-tools .tool-btn { width: 28px; height: 28px; }
.dm-tools .tool-btn svg { width: 17px; height: 17px; }
.dm-tools-spacer { flex: 1 1 auto; }

/* ---------- 房间：贴合声屿的整体感 ---------- */

.room-wide .member-panel h3 { font-size: 13px; letter-spacing: .02em; }
.member-row { padding: 7px 9px; }
.chat-panel .chat-toolbar { border-top: 1px solid rgba(120, 140, 180, .14); padding-top: 8px; }

/* 修正：头像行三个子元素导致 grid 塌列 */
.profile-form .field-row { grid-template-columns: 96px minmax(0, 1fr); }
.profile-form .avatar-url { grid-column: 2 / -1; width: 100%; }
.profile-form .avatar-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile-form .avatar-upload-side { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.profile-form .field-row > label { line-height: 1.35; }
.profile-top { padding-top: 14px; }
.profile-card .profile-stats { margin-top: 4px; }

/* 私聊面板要实心，否则背后卡片透上来 */
.dm-panel {
  background: #fff;
  border: 1px solid rgba(120, 140, 180, .18);
  box-shadow: 0 20px 50px rgba(28, 40, 70, .22);
}
.dm-overlay { background: rgba(24, 34, 52, .34); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.dm-list { background: #fbfcff; }

/* ---------- 资料页：窄视口不溢出 ---------- */

.profile-wrap { width: min(600px, 100%); }
.profile-card { width: 100%; }

.profile-form .field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 18px;
}
.profile-form .field-grid .field-row { grid-template-columns: 72px minmax(0, 1fr); }

.profile-form input,
.profile-form select {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.profile-form input[type="date"] { padding-right: 8px; }

.profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 14px;
}
.profile-actions .meta { margin-right: auto; }
.profile-actions .primary, .profile-actions .ghost { flex: 0 0 auto; }

.profile-stats { gap: 10px; }
.profile-stats .stat-card { min-width: 0; padding: 12px 8px; }

@media (max-width: 620px) {
  .profile-form .field-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-form .field-row { grid-template-columns: 66px minmax(0, 1fr); }
  .profile-top { padding: 14px 16px 0; }
  .profile-stats { padding: 0 16px; }
  .profile-form, .profile-pane { padding-left: 16px; padding-right: 16px; }
  .profile-tabs { padding: 0 10px; }
  .profile-cover { height: 72px; }
}

/* ===========================================================
   资料页排布重写（#screen-profile 作用域，覆盖前面所有散规则）
   参考思路：标签左固定宽、值右占满、单列对齐、行高一致、
   统计卡固定三等分、头像与昵称左对齐不居中。
   =========================================================== */

#screen-profile .profile-wrap {
  width: min(600px, calc(100% - 32px));
  margin: 0 auto;
  box-sizing: border-box;
}
#screen-profile .profile-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0;
  display: block;
}

/* 封面 */
#screen-profile .profile-cover { height: 88px; }

/* 分区 tab */
#screen-profile .profile-tabs {
  display: flex;
  gap: 2px;
  padding: 0 18px;
  box-sizing: border-box;
}
#screen-profile .ptab { padding: 11px 13px 10px; font-size: 13px; }

/* 头像 + 昵称：始终左对齐 */
#screen-profile .profile-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 16px 18px 12px;
  box-sizing: border-box;
}
#screen-profile .profile-avatar-lg {
  width: 64px; height: 64px;
  flex: 0 0 64px;
  font-size: 22px;
}
#screen-profile .profile-id-text { min-width: 0; }
#screen-profile .profile-id-text h2 { margin: 0 0 2px; font-size: 18px; }
#screen-profile .profile-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; }
#screen-profile .profile-badges:empty { display: none; }

/* 三张统计卡：永远三等分，不塌成竖排 */
#screen-profile .profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 18px;
  margin: 0 0 4px;
  box-sizing: border-box;
}
#screen-profile .stat-card {
  min-width: 0;
  padding: 11px 6px;
  border-radius: 12px;
  text-align: center;
}
#screen-profile .stat-card .num { font-size: 17px; }
#screen-profile .stat-card .label { font-size: 11.5px; white-space: nowrap; }

/* 字段区：统一单列，标签固定宽 */
#screen-profile .profile-form {
  display: block;
  padding: 6px 18px 18px;
  box-sizing: border-box;
}
#screen-profile .profile-form .field-grid {
  display: block;
  padding: 0;
  margin: 0;
}
#screen-profile .profile-form .field-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  margin: 0;
  border-bottom: 1px dashed rgba(120, 140, 180, .16);
}
#screen-profile .profile-form .field-row:last-child { border-bottom: 0; }
#screen-profile .profile-form .field-row > label {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.3;
  white-space: normal;
  word-break: keep-all;
}
#screen-profile .profile-form input,
#screen-profile .profile-form select {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13.5px;
}
#screen-profile .profile-form input[type="date"] { padding-right: 6px; }

/* 头像行内的元素不参与两列，纵向自然排 */
#screen-profile .profile-form .field-row:has(.avatar-upload) { align-items: start; }
#screen-profile .avatar-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#screen-profile .avatar-upload-side { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
#screen-profile .avatar-preview { width: 44px; height: 44px; flex: 0 0 44px; }
#screen-profile .avatar-upload-hint { font-size: 11.5px; }

/* 性别行：两个按钮内联，不撑高 */
#screen-profile .gender-row { display: flex; gap: 8px; }
#screen-profile .gender-option {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px; font-size: 13px;
}

/* 底部按钮：右对齐、上下留白一致 */
#screen-profile .profile-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 0 2px;
  margin: 0;
  border-top: 0;
}
#screen-profile .profile-actions .meta { margin-right: auto; font-size: 12px; }
#screen-profile .profile-actions .primary,
#screen-profile .profile-actions .ghost {
  flex: 0 0 auto;
  min-width: 84px;
  height: 38px;
  border-radius: 10px;
}

/* 岛屿 / 动态分区 */
#screen-profile .profile-pane { padding: 10px 18px 22px; }
#screen-profile .pane-empty { padding: 20px 16px; }

/* 窄屏：只让「头像行」和按钮换行，字段仍单列 */
@media (max-width: 560px) {
  #screen-profile .profile-wrap { width: calc(100% - 20px); }
  #screen-profile .profile-cover { height: 72px; }
  #screen-profile .profile-top { padding: 14px 14px 10px; gap: 12px; }
  #screen-profile .profile-avatar-lg { width: 56px; height: 56px; flex-basis: 56px; font-size: 20px; }
  #screen-profile .profile-id-text h2 { font-size: 16px; }
  #screen-profile .profile-tabs { padding: 0 8px; }
  #screen-profile .ptab { padding: 10px 10px 9px; font-size: 12.5px; }
  #screen-profile .profile-stats { padding: 0 14px; gap: 6px; }
  #screen-profile .stat-card { padding: 9px 4px; }
  #screen-profile .stat-card .num { font-size: 15px; }
  #screen-profile .stat-card .label { font-size: 10.5px; }
  #screen-profile .profile-form { padding: 4px 14px 16px; }
  #screen-profile .profile-form .field-row { grid-template-columns: 66px minmax(0, 1fr); gap: 8px; }
  #screen-profile .profile-pane { padding: 8px 14px 18px; }
}

/* 覆盖 style.css 的窄屏居中规则（那条把资料头改成了竖排居中） */
#screen-profile .profile-top {
  flex-direction: row;
  align-items: center;
  text-align: left;
}
#screen-profile .profile-badges,
#screen-profile .profile-meta { justify-content: flex-start; }
#screen-profile .profile-id-text { text-align: left; }

/* ---------- 收款账户 ---------- */
.payout-card {
  margin: 6px 18px 18px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(120, 140, 180, .16);
  border-radius: 14px;
  background: #fff;
}
.payout-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.payout-head h3 { margin: 0; font-size: 15px; }
.payout-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.payout-list:empty { display: none; }
.payout-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: #f7f9ff; border: 1px solid rgba(120, 140, 180, .14);
}
.payout-item .bank {
  font-size: 12px; color: #5b8def; background: rgba(91, 141, 239, .1);
  padding: 2px 7px; border-radius: 6px; flex: none;
}
.payout-item .no { font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; letter-spacing: .4px; }
.payout-item .holder { font-size: 12px; color: #8a93a6; }
.payout-item .flag {
  font-size: 11px; color: #22a06b; border: 1px solid rgba(34, 160, 107, .35);
  padding: 1px 6px; border-radius: 5px;
}
.payout-item .ops { margin-left: auto; display: flex; gap: 6px; }
.payout-item .ops button {
  font-size: 12px; padding: 4px 9px; border-radius: 7px;
  border: 1px solid rgba(120, 140, 180, .28); background: #fff; cursor: pointer;
  color: #4a5468;
}
.payout-item .ops button:hover { border-color: #5b8def; color: #5b8def; }
.payout-item .ops button.danger:hover { border-color: #e05353; color: #e05353; }
.payout-form { display: flex; flex-direction: column; gap: 8px; }
.payout-form .sec-row { grid-template-columns: 92px minmax(0, 1fr); }
.payout-types { display: flex; gap: 14px; }
.payout-types .radio { display: flex; align-items: center; gap: 5px; font-size: 13px; }
.payout-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.payout-actions .meta { margin-right: auto; }
.payout-actions .meta.err { color: #e05353; }
.payout-actions .meta.ok { color: #22a06b; }
.payout-audit { margin-top: 12px; border-top: 1px dashed rgba(120, 140, 180, .22); padding-top: 10px; }
.payout-audit summary { cursor: pointer; font-size: 12.5px; color: #6b7488; }
.audit-list { list-style: none; margin: 8px 0 0; padding: 0; font-size: 12px; color: #6b7488; }
.audit-list li { padding: 3px 0; border-bottom: 1px dashed rgba(120, 140, 180, .12); }
@media (max-width: 640px) {
  .payout-card { margin: 4px 12px 14px; padding: 14px 12px 12px; }
  .payout-form .sec-row { grid-template-columns: 74px minmax(0, 1fr); }
}


/* 地区三级联动 */
.region-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.region-select {
  width: 100%; height: 38px; padding: 0 8px;
  border: 1px solid rgba(120, 140, 180, .26); border-radius: 10px;
  background: #fff; color: #2b3a55; font-size: 13px;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #9aa6b8 50%), linear-gradient(135deg, #9aa6b8 50%, transparent 50%);
  background-position: calc(100% - 14px) 16px, calc(100% - 9px) 16px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.region-select:focus { outline: none; border-color: #5b8def; box-shadow: 0 0 0 3px rgba(91,141,239,.14); }
@media (max-width: 520px) {
  .region-row { grid-template-columns: minmax(0, 1fr); }
}

/* ===== 顶栏动作区（问题反馈 / 更改外观 / 好友） ===== */
.lobby-header { display: flex; align-items: center; gap: 12px; }
.lobby-search { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.top-acts { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.top-ico {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(30, 42, 68, .1);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
  color: #57657f;
  cursor: pointer;
  transition: background .16s, color .16s, border-color .16s, transform .16s;
}
.top-ico svg { width: 17px; height: 17px; flex: 0 0 17px; min-width: 17px; }
.top-ico:hover { background: #fff; color: #3d6cf0; border-color: rgba(61, 108, 240, .3); }
.top-ico:active { transform: scale(.95); }

/* ===== 外观面板 ===== */
.cos-modal, .fb-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; }
.cos-modal.hidden, .fb-modal.hidden { display: none; }
.cos-mask { position: absolute; inset: 0; background: rgba(24, 32, 48, .38); backdrop-filter: blur(3px); }

.cos-panel {
  position: relative;
  width: min(720px, calc(100vw - 40px));
  max-height: calc(100vh - 80px);
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(24, 32, 48, .26);
  overflow: hidden;
}

.cos-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(30, 42, 68, .08);
}
.cos-head b { font-size: 15.5px; color: #1d2637; }
.cos-close {
  width: 28px; height: 28px; border: 0; border-radius: 8px;
  background: rgba(30, 42, 68, .06); color: #57657f;
  font-size: 18px; line-height: 1; cursor: pointer;
}
.cos-close:hover { background: rgba(30, 42, 68, .12); }

.cos-tabs { display: flex; gap: 6px; padding: 12px 20px 0; flex-wrap: wrap; }
.cos-tab {
  padding: 7px 14px; border-radius: 999px; border: 1px solid transparent;
  background: rgba(30, 42, 68, .05); color: #57657f;
  font-size: 13px; cursor: pointer;
}
.cos-tab:hover { background: rgba(30, 42, 68, .09); }
.cos-tab.on { background: #3d6cf0; color: #fff; }

.cos-body { padding: 14px 20px 20px; overflow-y: auto; }
.cos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }

.cos-tile {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 10px 10px;
  border: 1.5px solid rgba(30, 42, 68, .09);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s, box-shadow .16s, transform .16s;
  text-align: left;
}
.cos-tile:hover { border-color: rgba(61, 108, 240, .38); transform: translateY(-1px); }
.cos-tile.on { border-color: #3d6cf0; box-shadow: 0 0 0 3px rgba(61, 108, 240, .14); }
.cos-tile.locked { opacity: .46; cursor: not-allowed; }
.cos-tile.locked:hover { border-color: rgba(30, 42, 68, .09); transform: none; }

.cos-preview { display: flex; align-items: center; justify-content: center; height: 46px; }

.cos-name {
  font-size: 13px; font-weight: 700;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-image: linear-gradient(135deg, #8f9bff, #6fc6f2);
}
.cos-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #5b8def; color: #fff; font-size: 15px; font-weight: 700;
  box-sizing: border-box;
}
.cos-bubble {
  padding: 6px 10px; border-radius: 12px;
  font-size: 11.5px; color: #3d4a61;
  border: 1px solid rgba(30, 42, 68, .07);
  max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  box-sizing: border-box;
}
.cos-card {
  width: 100%; height: 40px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11.5px; letter-spacing: .5px;
}
.cos-theme {
  width: 46px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; color: #3d4a61;
  border: 1px solid rgba(30, 42, 68, .1);
}
.cos-theme-light { background: linear-gradient(180deg, #fff, #eef2fa); }
.cos-theme-warm { background: linear-gradient(180deg, #fffaf1, #f3e6d3); }
.cos-theme-cool { background: linear-gradient(180deg, #f4f8ff, #dde8f8); }
.cos-theme-dark { background: linear-gradient(180deg, #3a4257, #232a3b); color: #e8edf7; border-color: transparent; }

.cos-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cos-meta b { font-size: 12.5px; color: #1d2637; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cos-meta i { font-size: 11px; color: #8b97ab; font-style: normal; }

.cos-check {
  position: absolute; top: 7px; right: 8px;
  width: 17px; height: 17px; border-radius: 50%;
  background: #3d6cf0; color: #fff;
  font-size: 11px; line-height: 17px; text-align: center;
}

.cos-toast {
  position: absolute; left: 50%; bottom: 18px;
  transform: translate(-50%, 14px);
  padding: 8px 16px; border-radius: 999px;
  background: rgba(29, 38, 55, .9); color: #fff;
  font-size: 12.5px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.cos-toast.show { opacity: 1; transform: translate(-50%, 0); }
.cos-toast.bad { background: rgba(196, 62, 62, .94); }

/* ===== 问题反馈 ===== */
.fb-panel {
  position: relative;
  width: min(460px, calc(100vw - 40px));
  background: #fff; border-radius: 18px;
  box-shadow: 0 24px 70px rgba(24, 32, 48, .26);
  overflow: hidden;
}
.fb-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 7px; }
.fb-tip { margin: 0 0 6px; font-size: 12.5px; line-height: 1.7; color: #6b788f; }
.fb-label { font-size: 12.5px; color: #57657f; font-weight: 600; margin-top: 4px; }
.fb-input {
  width: 100%; box-sizing: border-box;
  padding: 9px 12px; border-radius: 10px;
  border: 1px solid rgba(30, 42, 68, .13);
  background: #fbfcfe; font-size: 13.5px; color: #1d2637;
  font-family: inherit; outline: none;
}
.fb-input:focus { border-color: #3d6cf0; background: #fff; box-shadow: 0 0 0 3px rgba(61, 108, 240, .12); }
.fb-area { resize: vertical; min-height: 92px; line-height: 1.6; }
.fb-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.fb-msg { font-size: 12.5px; color: #6b788f; flex: 1 1 auto; }
.fb-msg.bad { color: #c43e3e; }
.fb-msg.ok { color: #2f9e73; }

@media (max-width: 620px) {
  .top-acts { gap: 6px; }
  .top-ico { width: 30px; height: 30px; flex-basis: 30px; border-radius: 9px; }
  .top-ico svg { width: 15px; height: 15px; flex: 0 0 15px; min-width: 15px; }
  .cos-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}

/* ===== 大厅顶部导航（横向 tab） ===== */
.lobby-nav.main-nav {
  display: flex; align-items: center; gap: 2px;
  padding: 0 4px;
  border-bottom: 1px solid rgba(30, 42, 68, .07);
  position: relative;
}
.main-nav .lobby-nav-item {
  position: relative;
  padding: 11px 15px 12px;
  border: 0; background: transparent;
  font-size: 13.5px; color: #5d6a80; font-weight: 500;
  cursor: pointer; border-radius: 0;
  transition: color .16s;
}
.main-nav .lobby-nav-item:hover { color: #2b3a55; }
.main-nav .lobby-nav-item.active { color: #3d6cf0; font-weight: 700; }
.main-nav .lobby-nav-item.active::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: -1px;
  height: 2.5px; border-radius: 2px; background: #3d6cf0;
}
.nav-refresh {
  margin-left: auto;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: transparent; color: #8b97ab;
  cursor: pointer;
}
.nav-refresh:hover { background: rgba(30, 42, 68, .06); color: #3d6cf0; }
.nav-refresh svg { width: 15px; height: 15px; flex: 0 0 15px; }

/* ===== 右侧「我的频道」 ===== */
.my-chan-list { display: flex; flex-direction: column; gap: 2px; }
.my-chan {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 7px 8px;
  border: 0; border-radius: 9px; background: transparent;
  text-align: left; cursor: pointer;
  transition: background .15s;
}
.my-chan:hover { background: rgba(30, 42, 68, .05); }
.my-chan-icon {
  width: 30px; height: 30px; flex: 0 0 30px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700;
}
.my-chan-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.my-chan-text b {
  font-size: 12.5px; color: #2b3a55; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.my-chan-text i { font-size: 11px; color: #8b97ab; font-style: normal; }
.my-chan-dot {
  width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%;
  background: #35c07f; box-shadow: 0 0 0 2px rgba(53, 192, 127, .18);
}
.my-chan-empty {
  padding: 10px 8px; font-size: 12.5px; color: #97a2b5;
  border: 1px dashed rgba(30, 42, 68, .13); border-radius: 9px; text-align: center;
}

/* ===== 窄屏（≤620px）压紧 ===== */
@media (max-width: 620px) {
  .main-nav { overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav .lobby-nav-item { padding: 10px 11px; font-size: 13px; white-space: nowrap; }
}

/* ===== 房间：头部统计胶囊 ===== */
.room-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 20px 11px;
  border-bottom: 1px solid rgba(30, 42, 68, .07);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(8px);
}
.room-bar-title { display: flex; align-items: center; gap: 14px; min-width: 0; flex-wrap: wrap; }
.room-title { margin: 0; font-size: 16.5px; font-weight: 700; color: #1d2637; letter-spacing: .01em; }
.room-meta-hidden { display: none; }
.room-bar-acts { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.room-stats { display: flex; align-items: center; gap: 7px; }
.rs-chip {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 4px 10px; border-radius: 8px;
  background: rgba(61, 108, 240, .07);
  font-size: 12px; line-height: 1.5;
}
.rs-chip i { font-style: normal; color: #7b8aa3; }
.rs-chip b { color: #2b4bb3; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ===== 房间：成员树 ===== */
.member-panel {
  display: flex; flex-direction: column;
  padding: 0; overflow: hidden;
}
.member-panel > h3 {
  margin: 0; padding: 12px 14px 10px;
  font-size: 12.5px; font-weight: 700; color: #4a5872; letter-spacing: .04em;
  border-bottom: 1px solid rgba(30, 42, 68, .06);
}
.member-list { flex: 1 1 auto; overflow-y: auto; padding: 6px 8px 12px; }

.member-group { margin-bottom: 6px; }
.group-title {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 6px 5px;
  font-size: 11.5px; font-weight: 600; color: #8b97ab; letter-spacing: .04em;
}
.group-title .count {
  padding: 0 5px; border-radius: 6px;
  background: rgba(30, 42, 68, .07); color: #6b788f; font-size: 10.5px;
}

.member-row {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 8px; border-radius: 9px;
  font-size: 13px; color: #2b3a55;
  transition: background .14s;
}
.member-row:hover { background: rgba(30, 42, 68, .045); }
.member-row.on-mic { background: rgba(61, 108, 240, .075); }
.member-row .mic-dot {
  width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%;
  background: rgba(30, 42, 68, .13);
}
.member-row.on-mic .mic-dot { background: #35c07f; box-shadow: 0 0 0 3px rgba(53, 192, 127, .16); }
.member-row .rank {
  min-width: 15px; text-align: right;
  font-size: 11px; color: #a3adbd; font-variant-numeric: tabular-nums;
}
.member-row .name {
  flex: 0 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 500;
}
.member-row .role-tag {
  flex: 0 0 auto;
  padding: 1px 6px; border-radius: 5px;
  background: rgba(30, 42, 68, .06);
  font-size: 10.5px; color: #7b8aa3;
}
.member-row.on-mic .role-tag { background: rgba(53, 192, 127, .14); color: #2b8f61; }

/* ===== 房间：公屏 ===== */
.chat-panel { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.chat-list { flex: 1 1 auto; overflow-y: auto; margin: 0; padding: 14px 18px 8px; list-style: none; }
.chat-toolbar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px;
  border-top: 1px solid rgba(30, 42, 68, .07);
  background: rgba(255, 255, 255, .6);
}
.chat-form { flex: 1 1 auto; min-width: 0; }
.chat-form input {
  width: 100%; box-sizing: border-box;
  padding: 9px 13px; border-radius: 10px;
  border: 1px solid rgba(30, 42, 68, .13);
  background: #fbfcfe; font-size: 13.5px; color: #1d2637; outline: none;
}
.chat-form input:focus { border-color: #3d6cf0; background: #fff; box-shadow: 0 0 0 3px rgba(61, 108, 240, .12); }
.tool-btn {
  width: 32px; height: 32px; flex: 0 0 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(30, 42, 68, .1); border-radius: 9px;
  background: rgba(255, 255, 255, .8); color: #6b788f;
  cursor: pointer;
}
.tool-btn:disabled { opacity: .5; cursor: not-allowed; }
.tool-btn svg { width: 16px; height: 16px; flex: 0 0 16px; }

/* ===== 频道公告 ===== */
.room-ico {
  width: 30px; height: 30px; flex: 0 0 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(30, 42, 68, .1);
  border-radius: 8px;
  background: #fff; color: #6b788f; cursor: pointer;
  transition: background .14s, color .14s, border-color .14s;
}
.room-ico svg { width: 16px; height: 16px; flex: 0 0 16px; }
.room-ico:hover { background: rgba(61, 108, 240, .08); color: #3d6cf0; border-color: rgba(61, 108, 240, .28); }
.room-ico.on { background: rgba(61, 108, 240, .12); color: #3d6cf0; border-color: rgba(61, 108, 240, .38); }

.room-notice {
  position: absolute;
  top: 76px; right: 16px;
  width: 264px;
  max-height: calc(100% - 150px);
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(30, 42, 68, .1);
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(22, 34, 58, .16);
  z-index: 30;
  overflow: hidden;
}
.room-notice.hidden { display: none; }
.rn-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 10px 10px 13px;
  border-bottom: 1px solid rgba(30, 42, 68, .07);
}
.rn-head b { flex: 1 1 auto; font-size: 13px; font-weight: 700; color: #222d40; letter-spacing: .02em; }
.rn-x {
  width: 22px; height: 22px; flex: 0 0 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 6px; background: transparent;
  color: #93a0b4; cursor: pointer;
}
.rn-x svg { width: 13px; height: 13px; }
.rn-x:hover { background: rgba(30, 42, 68, .06); color: #3d6cf0; }
.rn-body {
  padding: 12px 13px;
  overflow-y: auto;
  font-size: 12.5px; line-height: 1.85; color: #445167;
}
.rn-line { margin: 0; word-break: break-all; }
.rn-line + .rn-line { margin-top: 2px; }
.rn-edit {
  border-top: 1px solid rgba(30, 42, 68, .07);
  padding: 10px 12px 12px;
}
.rn-edit.hidden { display: none; }
.rn-edit textarea {
  width: 100%; min-height: 76px; resize: vertical;
  padding: 8px 10px;
  border: 1px solid rgba(30, 42, 68, .12);
  border-radius: 8px;
  font: inherit; font-size: 12.5px; line-height: 1.7; color: #2d3a50;
  background: #fbfcfe;
}
.rn-edit textarea:focus { outline: none; border-color: rgba(61, 108, 240, .5); background: #fff; }
.rn-edit-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.rn-msg { flex: 1 1 auto; font-size: 11.5px; color: #2f9e6f; }
.rn-msg.bad { color: #d94848; }
.rn-save { flex: 0 0 auto; height: 30px; padding: 0 14px; font-size: 12.5px; border-radius: 8px; }

body.narrow .room-notice { position: static; width: auto; margin: 8px 10px; max-height: none; }

/* ===== 大厅右侧栏：四页签 ===== */
.lobby-side {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid rgba(30, 42, 68, .08);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(22, 34, 58, .06);
  overflow: hidden;
  min-height: 0;
}
.side-tabs {
  display: flex; align-items: center;
  gap: 2px;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(30, 42, 68, .07);
  flex: 0 0 auto;
}
.side-tab {
  flex: 1 1 0; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px;
  background: transparent; color: #8b98ad; cursor: pointer;
  transition: background .14s, color .14s;
}
.side-tab svg { width: 18px; height: 18px; flex: 0 0 18px; }
.side-tab:hover { background: rgba(30, 42, 68, .05); color: #46587a; }
.side-tab.on { background: rgba(61, 108, 240, .1); color: #3d6cf0; }

.side-panes { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 0 10px; }
.side-pane.hidden { display: none; }

.side-group { padding: 0 4px; }
.side-group + .side-group { margin-top: 1px; }
.side-group-head {
  width: 100%;
  display: flex; align-items: center; gap: 6px;
  padding: 9px 9px;
  border: 0; border-radius: 8px;
  background: transparent;
  font-size: 12.5px; font-weight: 600; color: #37455c;
  cursor: pointer; text-align: left;
}
.side-group-head:hover { background: rgba(30, 42, 68, .04); }
.side-group-head span { flex: 1 1 auto; }
.side-group-head em { font-style: normal; font-size: 11px; font-weight: 500; color: #9aa6b8; }
.sg-arrow { width: 13px; height: 13px; flex: 0 0 13px; color: #a8b4c6; transition: transform .16s; }
.side-group.collapsed .sg-arrow { transform: rotate(-90deg); }
.side-group.collapsed > :not(.side-group-head) { display: none; }

.side-empty {
  padding: 2px 9px 10px;
  font-size: 11.5px; color: #a3aebe; line-height: 1.7;
}
.side-empty-block { padding: 6px 12px 14px; }
.side-empty-block p { margin: 0 0 8px; }
.side-link {
  display: block; width: 100%;
  padding: 7px 0;
  border: 0; background: transparent;
  font-size: 12.5px; color: #3d6cf0; text-align: left; cursor: pointer;
}
.side-link:hover { text-decoration: underline; }

.side-chips { display: flex; gap: 6px; padding: 8px 10px 4px; }
.side-chip {
  padding: 4px 12px;
  border: 0; border-radius: 20px;
  background: rgba(30, 42, 68, .05);
  font-size: 12px; color: #5c6b83; cursor: pointer;
}
.side-chip.on { background: rgba(61, 108, 240, .12); color: #3d6cf0; font-weight: 600; }

.side-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
.side-app {
  height: 44px;
  border: 1px solid rgba(30, 42, 68, .09);
  border-radius: 10px;
  background: #fbfcfe;
  font-size: 12.5px; color: #45536b; cursor: pointer;
  transition: border-color .14s, background .14s, color .14s;
}
.side-app:hover { border-color: rgba(61, 108, 240, .35); background: #fff; color: #3d6cf0; }

/* 好友条目 */
.side-friend-list { padding: 0 6px 4px; }
.sf-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 6px;
  border-radius: 9px;
  cursor: pointer;
}
.sf-item:hover { background: rgba(30, 42, 68, .045); }
.sf-av {
  width: 28px; height: 28px; flex: 0 0 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(140deg, #5b8def, #7c5cf0);
  color: #fff; font-size: 12px; font-weight: 700;
}
.sf-text { min-width: 0; flex: 1 1 auto; }
.sf-text b { display: block; font-size: 12.5px; color: #2d3a50; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-text i { display: block; font-style: normal; font-size: 10.5px; color: #9aa6b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #c6cedb; }
.sf-dot.on { background: #22c07a; }

body.narrow .lobby-side { margin-top: 10px; }
body.narrow .side-apps { grid-template-columns: 1fr; }

/* ===== 房间（对齐主流语音房 频道窗） ===== */
.screen-room { display: flex; flex-direction: column; height: 100%; background: #ffffff; position: relative; overflow: hidden; }

/* 频道条 */
.rm-head {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 12px;
  background: #2b3340;
  color: #dfe6f2;
}
.rm-head-left { flex: 1 1 auto; display: flex; align-items: center; gap: 7px; min-width: 0; }
.rm-head-right { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.rm-ch-ico {
  width: 22px; height: 22px; flex: 0 0 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px; background: linear-gradient(140deg, #e2534a, #c93a30);
  color: #fff; font-size: 12px; font-weight: 700;
}
.rm-ch-name {
  font-size: 14px; font-weight: 700; color: #fff;
  max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rm-chip {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(255, 255, 255, .1);
  font-size: 11.5px; color: #c3cddd;
}
.rm-chip b { color: #fff; font-weight: 600; }
.rm-ico {
  width: 24px; height: 24px; flex: 0 0 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 5px; background: transparent;
  color: #93a1b8; cursor: pointer;
}
.rm-ico svg { width: 15px; height: 15px; flex: 0 0 15px; }
.rm-ico:not(:disabled):hover { background: rgba(255, 255, 255, .12); color: #fff; }
.rm-ico:disabled { cursor: default; opacity: .55; }
.rm-status { font-size: 11.5px; color: #8d9bb2; }
.rm-render { color: #8d9bb2; font-size: 11.5px; }
.rm-leave {
  height: 26px; padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 6px;
  background: transparent; color: #dfe6f2;
  font-size: 12px; cursor: pointer;
}
.rm-leave:hover { background: rgba(255, 255, 255, .12); }

/* 工具条 */
.rm-tools {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 4px;
  height: 36px; padding: 0 10px;
  background: #363f4d;
  border-bottom: 1px solid rgba(0, 0, 0, .18);
}
.rm-tool {
  width: 26px; height: 26px; flex: 0 0 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 5px; background: transparent;
  color: #93a1b8; cursor: pointer;
}
.rm-tool svg { width: 16px; height: 16px; flex: 0 0 16px; }
.rm-tool:not(:disabled):hover { background: rgba(255, 255, 255, .12); color: #fff; }
.rm-tool:disabled { cursor: default; opacity: .6; }
.rm-mode {
  margin-left: 6px; padding: 2px 8px;
  border-radius: 4px; background: rgba(255, 255, 255, .09);
  font-size: 11.5px; color: #b9c5d8;
}
.rm-mic-links { display: flex; gap: 10px; margin-left: 10px; }
.rm-mic-links a { font-size: 11.5px; color: #7b8aa2; text-decoration: none; }
.rm-mic-links a:hover { color: #9dc0ff; }

/* 主体 */
.rm-body { flex: 1 1 auto; display: flex; min-height: 0; position: relative; }

/* 左成员树 */
.rm-tree {
  flex: 0 0 246px;
  display: flex; flex-direction: column;
  background: #ffffff;
  border-right: 1px solid #e3eaf5;
  min-height: 0;
}
.rm-tree-head {
  flex: 0 0 auto;
  padding: 7px 12px;
  font-size: 11.5px; font-weight: 600; color: #4a5568;
  background: #f7faff;
  border-bottom: 1px solid #e3eaf5;
}
.rm-tree-count { font-weight: 500; color: #9aa6b8; }
.rm-tree-list { flex: 1 1 auto; overflow-y: auto; padding: 4px 0 10px; }

/* 右公屏 */
.rm-main {
  flex: 1 1 auto; display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  background: #fff;
}
.rm-chat { flex: 1 1 auto; margin: 0; padding: 14px 18px; list-style: none; overflow-y: auto; }
.rm-audio {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 5px 18px;
  border-top: 1px solid #eef1f6;
  font-size: 11px; color: #9aa6b8;
}
.rm-audio-label { color: #b3bdcc; }
.rm-audio-val { color: #8c99ac; }

/* 右侧竖排图标栏 */
.rm-rail {
  position: absolute; top: 8px; right: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: 4px 0;
  background: #f7f9fc;
  border: 1px solid #e3e9f2;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  z-index: 20;
}
.rm-rail-btn {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: #7b8aa2; cursor: pointer;
}
.rm-rail-btn svg { width: 17px; height: 17px; flex: 0 0 17px; }
.rm-rail-btn:not(:disabled):hover { color: #3d6cf0; }
.rm-rail-btn:disabled { cursor: default; opacity: .6; }
.rm-rail-btn.on { color: #3d6cf0; background: rgba(61, 108, 240, .1); border-radius: 6px; }

/* 公告面板：从右侧滑出，覆盖公屏 */
.room-notice {
  position: absolute;
  top: 8px; right: 34px; bottom: 8px;
  width: min(720px, calc(100% - 300px));
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid #e3e9f2;
  border-radius: 8px;
  box-shadow: -8px 0 28px rgba(22, 34, 58, .12);
  z-index: 25;
  overflow: hidden;
}
.room-notice.hidden { display: none; }

/* 输入条 */
/* 输入条按 语音房：浮在公屏右下角的圆角小框 */
.rm-main { position: relative; }
.rm-inputbar {
  position: absolute; right: 18px; bottom: 44px;
  width: 320px; max-width: calc(100% - 36px); z-index: 24;
  display: flex; align-items: center; gap: 3px;
  padding: 5px 6px 5px 10px;
  background: rgba(255,255,255,.97);
  border: 1px solid #e3eaf5;
  border-radius: 22px;
  box-shadow: 0 6px 20px rgba(30,58,138,.10);
}
.rm-inputbar .rm-form { flex: 1 1 auto; min-width: 0; }
.rm-inputbar #chat-input {
  height: 30px; border: 0; background: transparent; font-size: 13px; padding: 0 4px;
}
.rm-inputbar #chat-input:focus { outline: none; box-shadow: none; }
.rm-inputbar .rm-tool-line { width: 26px; height: 26px; flex: 0 0 26px; }
/* 公屏底部留出输入框的位置，避免最后一条被压住 */
.rm-chat { padding-bottom: 88px !important; }
.rm-tool-line { color: #7b8aa2; }
.rm-form { flex: 1 1 auto; }
.rm-form input {
  width: 100%; height: 30px;
  padding: 0 10px;
  border: 1px solid #dde4ef;
  border-radius: 6px;
  background: #fff;
  font: inherit; font-size: 12.5px; color: #2d3a50;
}
.rm-form input:focus { outline: none; border-color: #9dc0ff; }

/* 底部工具栏 */
.rm-footer {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 10px;
  background: #ffffff;
  border-top: 1px solid #e3eaf5;
}
.rm-foot-left { flex: 1 1 auto; display: flex; align-items: center; gap: 6px; min-width: 0; }
.rm-foot-mid { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; }
.rm-foot-right { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; }
.rm-foot-name { font-size: 11.5px; color: #5c6b83; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-foot-btn {
  height: 24px; padding: 0 10px;
  border: 1px solid #d7dfec; border-radius: 5px;
  background: #fff; color: #43516a;
  font-size: 11.5px; cursor: pointer;
}
.rm-foot-btn.primary { background: #3d6cf0; border-color: #3d6cf0; color: #fff; }
.rm-foot-btn:hover { border-color: #9dc0ff; }
.rm-foot-hint { font-size: 11px; color: #9aa6b8; padding: 0 4px; }
.rm-foot-item {
  height: 24px; padding: 0 9px;
  border: 0; border-radius: 5px; background: transparent;
  color: #6d7c93; font-size: 11.5px; cursor: pointer;
}
.rm-foot-item:not(:disabled):hover { background: rgba(30, 42, 68, .06); color: #3d6cf0; }
.rm-foot-item:disabled { cursor: default; opacity: .72; }

body.narrow .rm-tree { flex: 0 0 100%; }
body.narrow .rm-body { flex-direction: column; }
body.narrow .rm-rail { position: static; flex-direction: row; border-radius: 0; border: 0; border-bottom: 1px solid #e3e9f2; }
body.narrow .room-notice { position: static; width: auto; margin: 0; box-shadow: none; border-radius: 0; }
body.narrow .rm-foot-mid, body.narrow .rm-foot-right { display: none; }
body.narrow .rm-head { flex-wrap: wrap; height: auto; padding: 6px 10px; }

/* 撤回 */
.chat-text.recalled { color: #9aa3b2; font-style: italic; }
.chat-recall {
  margin-left: 6px; padding: 0 6px; height: 18px; line-height: 18px;
  font-size: 11px; color: #8b97ab; background: transparent;
  border: 1px solid #dfe4ec; border-radius: 6px; cursor: pointer;
  opacity: 0; transition: opacity .15s;
}
.chat-row:hover .chat-recall { opacity: 1; }
.chat-recall:hover { color: #3b6ef0; border-color: #b9cdf5; background: #f2f6ff; }
.rm-error {
  margin: 0 14px 6px; padding: 6px 10px; font-size: 12.5px;
  color: #b4232c; background: #fdeef0; border: 1px solid #f6cdd2; border-radius: 8px;
}
.rm-error.hidden { display: none; }

/* ＠全体成员 */
.rm-mention {
  font-weight: 700; font-size: 15px; color: #5a6b85;
  width: 30px; height: 30px; line-height: 1; border-radius: 8px;
}
.rm-mention:hover:not([disabled]) { color: #3b6ef0; background: #eef4ff; }
.rm-mention.on { color: #fff; background: #3b6ef0; }
.rm-mention.locked { opacity: .45; cursor: not-allowed; }
.chat-mention-all {
  margin-left: 6px; padding: 0 5px; height: 17px; line-height: 17px;
  font-size: 11px; color: #b4232c; background: #fdeef0;
  border: 1px solid #f6cdd2; border-radius: 5px;
}

/* 访客记录 */
.visitor-panel {
  position: absolute; top: 8px; right: 34px; bottom: 8px;
  width: min(320px, calc(100% - 300px));
  display: flex; flex-direction: column;
  background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(20,35,60,.18);
  z-index: 30; overflow: hidden;
}
.visitor-panel.hidden { display: none; }
.vp-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-bottom: 1px solid #eef1f6;
}
.vp-head b { font-size: 14px; color: #223047; }
.vp-hint { font-size: 11.5px; color: #9aa6b8; }
.vp-head .rn-x { margin-left: auto; }
.vp-list { flex: 1; overflow-y: auto; padding: 6px 8px; margin: 0; list-style: none; }
.vp-row { display: flex; align-items: center; gap: 9px; padding: 8px 6px; border-radius: 9px; }
.vp-row:hover { background: #f6f8fc; }
.vp-ava {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px;
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700;
}
.vp-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vp-name { font-size: 13px; font-weight: 600; }
.vp-time { font-size: 11.5px; color: #9aa6b8; }
.vp-empty { padding: 22px 8px; text-align: center; font-size: 12.5px; color: #9aa6b8; }

/* 页面水印 */
.room-watermark {
  position: absolute; inset: 0; pointer-events: none;
  /* 原来 .9 × 文字 0.16 ≈ 0.144，太实；降到 .55，实际约 0.07，能看见但不抢眼 */
  z-index: 1; opacity: .55;
}

/* 昵称流光：渐变裁到文字 + 高光带扫过（右→左） */
.nick-shimmer {
  background-image: var(--nick-grad);
  background-size: 220% 100%;
  background-position: 120% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: nickShimmer var(--nick-speed, 7s) linear infinite;
}
@keyframes nickShimmer {
  0%   { background-position: 120% 0%; }
  100% { background-position: -120% 0%; }
}
@media (prefers-reduced-motion: reduce) {
  .nick-shimmer { animation: none; background-position: 50% 0%; }
}

/* 频道流光条：按房间等级换配色，文字渐变 + 高光带扫过（高光宽度 ~5%） */
.rm-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 26px;
  padding: 0 12px;
  border-radius: 6px;
  margin: 6px 10px 0;
  background: linear-gradient(90deg, rgba(210,225,255,.55), rgba(235,225,255,.55), rgba(255,232,232,.55));
  overflow: hidden;
}
.band-mark { font-size: 11px; color: #8fb3ff; }
.band-sep { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #b9a7ff; }
.band-text {
  -webkit-text-stroke: 0.3px rgba(0,0,0,.10);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .5px;
  background-size: 220% 100%;
  background-position: 120% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: bandShimmer 3.4s linear infinite;
  white-space: nowrap;
}
@keyframes bandShimmer {
  0% { background-position: 120% 0%; }
  100% { background-position: -120% 0%; }
}

/* 1..6 级配色 */
.rm-band[data-level="1"] .band-text { background-image: linear-gradient(90deg,#6b7c93 0%,#6b7c93 44%,rgba(255,255,255,.55) 50%,#6b7c93 56%,#6b7c93 100%); }
.rm-band[data-level="2"] .band-text { background-image: linear-gradient(90deg,#2f7fbf 0%,#2f7fbf 44%,rgba(255,255,255,.55) 50%,#2f7fbf 56%,#2f7fbf 100%); }
.rm-band[data-level="3"] .band-text { background-image: linear-gradient(90deg,#3fa7a0 0%,#3fa7a0 44%,rgba(255,255,255,.55) 50%,#3fa7a0 56%,#3fa7a0 100%); }
.rm-band[data-level="4"] .band-text { background-image: linear-gradient(90deg,#4a6bff 0%,#7c5cff 30%,rgba(255,255,255,.55) 50%,#7c5cff 70%,#4a6bff 100%); }
.rm-band[data-level="5"] .band-text { background-image: linear-gradient(90deg,#8b5dff 0%,#d4547a 35%,rgba(255,255,255,.55) 50%,#d4547a 65%,#8b5dff 100%); }
.rm-band[data-level="6"] .band-text { background-image: linear-gradient(90deg,#ff8a1a 0%,#ff4d6d 35%,rgba(255,255,255,.55) 50%,#ff4d6d 65%,#ff8a1a 100%); }

/* 6 级额外加粉色底 */
.rm-band[data-level="5"] { background: linear-gradient(90deg, rgba(232,225,255,.7), rgba(255,225,245,.7)); }
.rm-band[data-level="6"] { background: linear-gradient(90deg, rgba(255,232,225,.75), rgba(255,225,240,.75)); }

body.narrow .rm-band { margin: 4px 6px 0; height: 24px; }
body.narrow .band-text { font-size: 11px; }
@media (prefers-reduced-motion: reduce) {
  .band-text { animation: none; background-position: 50% 0%; }
}

/* 公告里的网址链接 */
.rn-line .rn-link {
  color: #3b6ef0;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.rn-line .rn-link:hover { color: #2a55c8; }

/* ===== 房间内交互补全（room-ui.js） ===== */
.rx-layer{position:fixed;z-index:9500;min-width:200px;animation:rxIn .14s ease-out}
@keyframes rxIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.rx-layer>div{background:#fff;border:1px solid #e3e8f0;border-radius:12px;box-shadow:0 12px 32px rgba(30,45,70,.16);overflow:hidden}
.rx-tool.rx-open,.rm-tool.rx-open{background:#eef3ff;color:#3f5bd6}

.rx-emoji{display:grid;grid-template-columns:repeat(9,1fr);gap:2px;padding:8px;width:268px}
.rx-emoji-i{width:28px;height:28px;border:0;background:transparent;border-radius:7px;font-size:17px;line-height:1;cursor:pointer}
.rx-emoji-i:hover{background:#eef3ff}

.rx-search{width:264px;padding:10px}
.rx-search-i{width:100%;height:32px;border:1px solid #dbe2ee;border-radius:8px;padding:0 10px;font-size:13px;outline:none}
.rx-search-i:focus{border-color:#7c8cf8}
.rx-search-list{margin-top:8px;max-height:260px;overflow-y:auto}
.rx-search-row{display:flex;justify-content:space-between;gap:8px;padding:7px 8px;border-radius:8px;cursor:pointer;font-size:13px}
.rx-search-row:hover{background:#f2f6ff}
.rx-sr-id{color:#93a0b8;font-size:12px}
.rx-empty{padding:14px 8px;text-align:center;color:#93a0b8;font-size:12.5px}

.rx-mlist{width:260px;max-height:340px;overflow-y:auto;padding:8px}
.rx-mlist-head{padding:4px 6px 8px;font-size:12px;color:#93a0b8;border-bottom:1px solid #eef1f7;margin-bottom:6px}
.rx-mlist-row{display:flex;align-items:center;gap:8px;padding:6px;border-radius:8px;font-size:13px}
.rx-mlist-row:hover{background:#f6f9ff}
.rx-ml-rank{width:18px;color:#b6c0d3;font-size:12px;text-align:right}
.rx-ml-name{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rx-ml-role{color:#93a0b8;font-size:12px}

.rx-me{width:272px;padding:14px}
.rx-me-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.rx-me-head b{font-size:15px}
.rx-me-id{color:#93a0b8;font-size:12px;margin-top:2px}
.rx-me-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.rx-me-grid>div{background:#f7f9fd;border-radius:9px;padding:8px 10px;display:flex;flex-direction:column;gap:2px}
.rx-me-grid span{font-size:11.5px;color:#93a0b8}
.rx-me-grid b{font-size:13.5px}
.rx-me-link{width:100%;height:34px;border:1px solid #dbe2ee;border-radius:9px;background:#fff;cursor:pointer;font-size:13px}
.rx-me-link:hover{border-color:#7c8cf8;color:#3f5bd6}

.rx-vol{display:inline-flex;align-items:center;gap:6px;margin-left:8px}
.rx-vol-ico{font-size:13px;opacity:.7}
.rx-vol-range{width:74px;accent-color:#6a7cf5}
.rx-vol-off .rx-vol-ico{opacity:.3}

.rx-dm-btn{position:absolute;right:8px;top:50%;transform:translateY(-50%);height:22px;padding:0 8px;border:1px solid #dbe2ee;background:#fff;border-radius:6px;font-size:11.5px;color:#4a5a78;cursor:pointer;opacity:0;transition:opacity .12s}
.chat-row{position:relative}
.chat-row:hover .rx-dm-btn{opacity:1}
.rx-dm-btn:hover{border-color:#7c8cf8;color:#3f5bd6}

.rx-menu{min-width:170px;padding:6px}
.rx-menu-head{padding:6px 8px 8px;font-size:12px;color:#93a0b8;border-bottom:1px solid #eef1f7;margin-bottom:4px}
.rx-menu-tip{padding:8px;font-size:12.5px;color:#93a0b8;line-height:1.5}
.rx-menu-item{display:block;width:100%;text-align:left;padding:8px 10px;border:0;background:transparent;border-radius:8px;font-size:13px;cursor:pointer;color:#31405c}
.rx-menu-item:hover{background:#f2f6ff}
.rx-menu-item.danger{color:#d64545}
.rx-menu-item.danger:hover{background:#fdf0f0}

.member-row.rx-hit{background:#fff7e6;box-shadow:inset 0 0 0 1px #ffd591;border-radius:8px}

/* ===== 频道右键菜单 / 频道管理弹窗 ===== */
.cm-layer{position:fixed;z-index:9600}
.cm-menu{min-width:186px;background:#fff;border:1px solid #e3e8f0;border-radius:12px;box-shadow:0 14px 36px rgba(30,45,70,.18);padding:6px}
.cm-menu-head{padding:6px 10px 8px;font-size:12px;color:#93a0b8;border-bottom:1px solid #eef1f7;margin-bottom:4px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-menu-item{display:block;width:100%;text-align:left;padding:8px 10px;border:0;background:transparent;border-radius:8px;font-size:13px;color:#31405c;cursor:pointer}
.cm-menu-item:hover{background:#f2f6ff}
.cm-menu-item.dim{color:#b6c0d3}
.cm-menu-item.dim:hover{background:#fafbfe;color:#93a0b8}
.cm-menu-item.danger{color:#d64545}
.cm-menu-item.danger:hover{background:#fdf0f0}
.cm-menu-sep{height:1px;background:#eef1f7;margin:5px 6px}

.cm-mask{position:fixed;inset:0;background:rgba(18,28,44,.42);display:grid;place-items:center;z-index:9700}
.cm-box{width:min(420px,calc(100vw - 32px));background:#fff;border-radius:14px;box-shadow:0 24px 64px rgba(20,32,52,.28);overflow:hidden}
.cm-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #eef1f7}
.cm-head b{font-size:14.5px}
.cm-x{width:26px;height:26px;border:0;background:#f2f5fa;border-radius:7px;font-size:16px;line-height:1;color:#7c8aa3;cursor:pointer}
.cm-body{padding:14px 16px;max-height:52vh;overflow-y:auto}
.cm-row{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.cm-label{width:64px;flex:0 0 64px;font-size:13px;color:#7c8aa3}
.cm-input{flex:1 1 auto;min-width:0;height:36px;border:1px solid #dbe2ee;border-radius:9px;padding:0 11px;font-size:13.5px;outline:none}
.cm-input:focus{border-color:#7c8cf8;box-shadow:0 0 0 3px rgba(124,140,248,.12)}
.cm-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid #eef1f7;background:#fbfcfe}
.cm-btn{height:34px;padding:0 16px;border:1px solid #dbe2ee;background:#fff;border-radius:9px;font-size:13px;color:#31405c;cursor:pointer}
.cm-btn:hover{border-color:#7c8cf8;color:#3f5bd6}
.cm-btn.primary{background:linear-gradient(135deg,#6a7cf5,#8a6cf0);border-color:transparent;color:#fff}
.cm-btn.primary:hover{filter:brightness(1.06)}

.cm-kv{display:flex;gap:10px;padding:7px 0;border-bottom:1px dashed #f0f3f8;font-size:13px}
.cm-kv:last-child{border-bottom:0}
.cm-kv>span{width:72px;flex:0 0 72px;color:#93a0b8}
.cm-kv>b{flex:1 1 auto;font-weight:500;color:#31405c;word-break:break-all}

.cm-tm{display:flex;flex-direction:column;gap:8px}
.cm-tm-item{display:flex;flex-direction:column;gap:3px;padding:11px 13px;border:1px solid #dbe2ee;border-radius:10px;background:#fff;text-align:left;cursor:pointer}
.cm-tm-item b{font-size:13.5px;color:#31405c}
.cm-tm-item span{font-size:12px;color:#93a0b8}
.cm-tm-item.on{border-color:#7c8cf8;background:#f5f7ff}
.cm-tm-item:hover{border-color:#a9b6f5}

.cm-mq-head{padding:4px 2px 8px;font-size:12px;color:#93a0b8;border-bottom:1px solid #eef1f7;margin-bottom:6px}
.cm-mq-empty{padding:18px;text-align:center;color:#b6c0d3;font-size:13px}
.cm-mq-row{display:flex;align-items:center;gap:10px;padding:6px 4px;font-size:13px;border-radius:8px}
.cm-mq-row:nth-child(even){background:#fafbff}
.cm-mq-pos{width:20px;color:#b6c0d3;font-size:12px;text-align:right}
.cm-mq-name{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-mq-id{color:#93a0b8;font-size:12px}

.cm-toast{position:fixed;left:50%;bottom:56px;transform:translateX(-50%);background:#2b3340;color:#fff;padding:9px 18px;border-radius:10px;font-size:13px;z-index:9800;opacity:1;transition:opacity .35s,transform .35s}
.cm-toast.bad{background:#c23b3b}
.cm-toast.out{opacity:0;transform:translateX(-50%) translateY(6px)}

/* ---------- 频道设置（顶部页签 + 卡片分组） ---------- */
.cx-layer[hidden] { display: none !important; }
.cx-layer { position: fixed; inset: 0; z-index: 9600; display: flex; align-items: center; justify-content: center; }
.cx-mask { position: absolute; inset: 0; background: rgba(20, 28, 44, .40); backdrop-filter: blur(3px); }
.cx-box {
  position: relative; width: min(780px, calc(100vw - 40px));
  height: min(584px, calc(100vh - 48px));
  background: #f7f9fc; border-radius: 16px; overflow: hidden;
  box-shadow: 0 26px 64px rgba(14, 22, 38, .30);
  display: flex; flex-direction: column;
}

.cx-head {
  flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 16px 18px 12px;
  background: linear-gradient(135deg, #eef3ff 0%, #f6f0ff 100%);
}
.cx-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 30px;
  background: linear-gradient(135deg, #5b8def, #8b6bf0);
  box-shadow: 0 6px 14px rgba(91, 141, 239, .32);
}
.cx-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cx-title b { font-size: 15px; color: #1e2a3f; font-weight: 700; letter-spacing: .02em; }
.cx-title i { font-size: 11.5px; color: #7d8aa0; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-x {
  margin-left: auto; width: 28px; height: 28px; border: 0; border-radius: 9px;
  background: rgba(255, 255, 255, .7); color: #6b7a90; font-size: 17px; line-height: 1;
  cursor: pointer; transition: background .15s;
}
.cx-x:hover { background: #fff; color: #33415c; }

.cx-tabs {
  flex: 0 0 auto; display: flex; gap: 6px; padding: 0 18px 10px; overflow-x: auto;
  scrollbar-width: none;
}
.cx-tabs::-webkit-scrollbar { display: none; }
.cx-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 13px; border: 1px solid transparent; border-radius: 20px;
  background: rgba(255, 255, 255, .72); color: #52617a; font-size: 12.5px; cursor: pointer;
  transition: all .15s;
}
.cx-tab-i { font-size: 11px; opacity: .55; }
.cx-tab:hover { background: #fff; color: #2c3d59; }
.cx-tab.on {
  background: #fff; color: #3554d1; font-weight: 700;
  border-color: rgba(99, 132, 245, .34);
  box-shadow: 0 4px 12px rgba(91, 141, 239, .18);
}
.cx-tab.on .cx-tab-i { opacity: 1; }

.cx-pane { flex: 1 1 auto; overflow-y: auto; padding: 4px 18px 16px; min-height: 0; }

.cx-card {
  background: #fff; border-radius: 13px; margin-bottom: 12px;
  border: 1px solid #eaeff7; overflow: hidden;
}
.cx-card-h {
  display: flex; align-items: baseline; gap: 8px; padding: 13px 16px 0;
}
.cx-card-h b { font-size: 13px; color: #26344d; font-weight: 700; }
.cx-card-h span { font-size: 11.5px; color: #96a3b7; }
.cx-card-b { padding: 12px 16px 16px; }

.cx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.cx-grid.one { grid-template-columns: 1fr; }
.cx-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cx-k { font-size: 12px; color: #78869c; }
.cx-v { min-width: 0; }
.cx-h { margin: 5px 0 0; font-size: 11px; color: #a4b0c2; line-height: 1.6; }

.cx-input {
  width: 100%; height: 36px; box-sizing: border-box;
  border: 1px solid #e2e8f2; border-radius: 10px; background: #fbfcfe;
  padding: 0 11px; font-size: 13px; color: #22304a; font-family: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.cx-input:focus {
  outline: none; background: #fff; border-color: #7f9cf5;
  box-shadow: 0 0 0 3px rgba(99, 132, 245, .15);
}
.cx-input.ta { height: 62px; padding: 9px 11px; resize: vertical; line-height: 1.65; }
.cx-affix { position: relative; }
.cx-affix .cx-input { padding-right: 40px; }
.cx-affix span {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 11.5px; color: #9aa7ba; pointer-events: none;
}
.cx-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #3d4d68; padding-top: 6px; cursor: pointer; }
.cx-check input { width: 15px; height: 15px; accent-color: #5b8def; }

.cx-switchbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cx-sel { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #78869c; }
.cx-sel .cx-input { width: 180px; }
.cx-pill {
  font-size: 11.5px; color: #3f5da8; background: #eef3ff;
  border-radius: 20px; padding: 4px 12px;
}

.cx-adm {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border: 1px solid #eef2f8; border-radius: 11px; background: #fbfcfe; margin-bottom: 8px;
}
.cx-adm-a {
  width: 28px; height: 28px; flex: 0 0 28px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #dbe6ff, #e9dcff); color: #4a5fd0;
  font-size: 12px; font-weight: 700;
}
.cx-adm-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cx-adm-t b { font-size: 12.5px; color: #22304a; font-weight: 600; }
.cx-adm-t i { font-size: 10.5px; color: #9aa7ba; font-style: normal; }
.cx-adm .cx-btn { margin-left: auto; }
.cx-addrow { display: flex; gap: 8px; margin-top: 4px; }
.cx-addrow .cx-input { flex: 1 1 auto; }
.cx-addrow .cx-btn { flex: 0 0 auto; white-space: nowrap; }

.cx-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 9px; }
.cx-theme {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px;
  border: 1px solid #e6ecf5; border-radius: 11px; background: #fbfcfe;
  font-size: 12.5px; color: #465770; cursor: pointer; transition: all .15s;
}
.cx-theme:hover { border-color: #c5d4ef; background: #fff; }
.cx-theme.on {
  border-color: #7f9cf5; background: #fff; color: #3554d1; font-weight: 700;
  box-shadow: 0 4px 12px rgba(91, 141, 239, .18);
}
.cx-swatch { width: 18px; height: 18px; border-radius: 6px; flex: 0 0 18px; }
.cx-swatch.s-default { background: linear-gradient(135deg, #f3f6fa, #ccd7e6); }
.cx-swatch.s-snow { background: linear-gradient(135deg, #cfe6ff, #2478c7); }
.cx-swatch.s-spring { background: linear-gradient(135deg, #ffd8e8, #e0467a); }
.cx-swatch.s-azure { background: linear-gradient(135deg, #bfe9ff, #1f8fd6); }
.cx-swatch.s-violet { background: linear-gradient(135deg, #ded1ff, #6b46c1); }
.cx-swatch.s-flame { background: linear-gradient(135deg, #ffd2c6, #d0402a); }
.cx-swatch.s-jade { background: linear-gradient(135deg, #cbf0e1, #2e9e78); }
.cx-swatch.s-midnight { background: linear-gradient(135deg, #55637a, #101a2c); }

.cx-note {
  margin: 0 0 12px; padding: 10px 13px; border-radius: 11px;
  background: #f2f6fd; color: #7b8aa0; font-size: 11.5px; line-height: 1.75;
}
.cx-note code {
  background: #e6edfa; color: #3f5da8; border-radius: 5px; padding: 1px 5px;
  font-size: 11px; font-family: inherit;
}
.cx-empty { margin: 0; padding: 14px 0; color: #a4b0c2; font-size: 12.5px; }

.cx-foot {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-top: 1px solid #eaeff7; background: #fff;
}
.cx-msg { font-size: 11.5px; color: #96a3b7; margin-right: auto; }
.cx-btn {
  height: 33px; padding: 0 16px; border: 1px solid #e2e8f2; border-radius: 10px;
  background: #fff; color: #465770; font-size: 12.5px; cursor: pointer;
  transition: all .15s;
}
.cx-btn:hover { border-color: #c5d4ef; color: #2c3d59; }
.cx-btn.solid {
  background: linear-gradient(180deg, #5b8def, #4a7be0);
  border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 6px 16px rgba(91, 141, 239, .26);
}
.cx-btn.solid:hover { filter: brightness(1.05); }
.cx-btn.xs { height: 25px; padding: 0 10px; font-size: 11.5px; border-radius: 8px; }

.cx-toast {
  position: absolute; left: 50%; bottom: 68px;
  transform: translateX(-50%) translateY(8px);
  background: rgba(30, 42, 63, .94); color: #fff; font-size: 12.5px;
  padding: 8px 16px; border-radius: 20px; opacity: 0; pointer-events: none;
  transition: all .18s ease;
}
.cx-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.cx-toast.bad { background: rgba(190, 45, 45, .95); }

body.narrow .cx-box { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
body.narrow .cx-grid { grid-template-columns: 1fr; }
body.narrow .cx-head { padding: 12px 14px 8px; }
body.narrow .cx-tabs { padding: 0 14px 8px; }
body.narrow .cx-pane { padding: 2px 14px 12px; }
body.narrow .cx-foot { padding: 10px 14px; }

/* 未读红点（E1） */
.friend-badge,
.tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px; margin-left: 6px;
  border-radius: 8px; background: #e5484d; color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: 0;
  vertical-align: middle;
}
.tab-badge { position: absolute; top: 4px; right: 4px; margin: 0; }
.side-tab { position: relative; }

/* ---------- 个人资料：独立浮层（仿 语音房 资料窗） ---------- */
#screen-profile {
  position: fixed; inset: 0; z-index: 9300;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16, 24, 40, .42);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  padding: 0;
}
#screen-profile.hidden { display: none !important; }
#screen-profile .profile-wrap {
  width: min(780px, calc(100vw - 24px));
  height: min(880px, calc(100vh - 20px));
  background: #fff; border-radius: 16px;
  box-shadow: 0 24px 64px rgba(10, 20, 40, .3);
  display: flex; flex-direction: column; overflow: hidden;
}
#screen-profile .profile-bar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid #eef1f7;
  background: linear-gradient(180deg, #fbfcff, #f7f9fd);
}
#screen-profile .profile-bar h2 { font-size: 15px; font-weight: 700; margin: 0; color: #1e2a3b; }
#screen-profile .profile-bar .ghost { font-size: 12.5px; padding: 5px 10px; }
#screen-profile .profile-card {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
  width: 100%; border-radius: 0; padding: 0 20px 14px;
  box-shadow: none; background: transparent;
}
#screen-profile .profile-cover { height: 44px; border-radius: 0 0 10px 10px; margin: 0 -20px 0; }
#screen-profile .profile-form {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px 16px; align-items: start;
}
#screen-profile .profile-form .field-row { margin: 0; }
#screen-profile .profile-form .field-row-wide { grid-column: 1 / -1; }
#screen-profile .profile-form .field-row-wide textarea {
  width: 100%; min-height: 64px; padding: 8px 11px;
  border: 1px solid #e2e8f2; border-radius: 10px;
  font: inherit; line-height: 1.55; resize: vertical;
  background: #fbfcfe; color: #1e2a3b;
}
#screen-profile .profile-form .field-row-wide textarea:focus {
  outline: none; border-color: #7aa7ff; background: #fff;
  box-shadow: 0 0 0 3px rgba(87, 135, 255, .12);
}
#screen-profile .profile-form input.readonly { background: #f4f6fa; color: #5a6a82; cursor: default; }
#screen-profile .profile-form .kyc-card,
#screen-profile .profile-form .profile-actions { grid-column: 1 / -1; }
#screen-profile .gender-option { width: auto; justify-self: start; }
#screen-profile .region-row select { min-width: 0; text-overflow: ellipsis; }
#screen-profile .profile-stats { gap: 10px; }
#screen-profile .stat-card { padding: 10px 8px; }
#screen-profile .profile-top { padding: 12px 0 6px; }

.profile-extra {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e6ebf3;
}
.px-block { min-width: 0; }
.px-title { font-size: 12px; font-weight: 650; color: #33445c; margin-bottom: 7px; display: flex; align-items: center; gap: 6px; }
.px-count { font-size: 10.5px; font-weight: 600; color: #7c8aa3; background: #eef2f8; border-radius: 8px; padding: 1px 7px; }
.px-row { display: flex; flex-wrap: wrap; gap: 5px; min-height: 24px; }
.px-empty { font-size: 11.5px; color: #9aa6b8; line-height: 1.55; }
.px-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 8px;
  background: linear-gradient(135deg, #f3f7ff, #eef1ff);
  border: 1px solid #e2e9f6; font-size: 11.5px; color: #3a5a9a; font-weight: 600;
}
.px-chip.gold { background: linear-gradient(135deg,#fff8e8,#fdf0d2); border-color:#f0dfae; color:#9a6b12; }
.px-chip.violet { background: linear-gradient(135deg,#f6f2ff,#efe9ff); border-color:#e0d6fb; color:#6b46c1; }
.px-chip.mint { background: linear-gradient(135deg,#effaf6,#e6f7f0); border-color:#cdeee0; color:#1f7a5c; }

@media (max-width: 820px) {
  #screen-profile .profile-wrap { width: calc(100vw - 20px); height: calc(100vh - 20px); }
  #screen-profile .profile-form { grid-template-columns: 1fr; }
  .profile-extra { grid-template-columns: 1fr; }
}

#screen-profile .profile-form .inline-pair { display: flex; gap: 8px; align-items: center; }
#screen-profile .profile-form .inline-pair input[type="date"] { flex: 1 1 auto; min-width: 0; }
#screen-profile .profile-form .inline-pair input.readonly { flex: 0 0 92px; text-align: center; }
#screen-profile .avatar-row { grid-column: 1 / -1; }
#screen-profile .avatar-row .avatar-upload { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#screen-profile .avatar-row .avatar-preview { width: 46px; height: 46px; }
#screen-profile .avatar-row .avatar-upload-hint { flex: 1 1 100%; margin-top: 2px; }
#screen-profile .profile-form input,
#screen-profile .profile-form select { height: 33px; font-size: 13px; }
#screen-profile .profile-form .field-row > label,
#screen-profile .profile-form .field-key { font-size: 12.5px; }

#screen-profile .profile-bar { padding: 9px 16px; }
#screen-profile .profile-top { padding: 8px 0 4px; }
#screen-profile .profile-top .avatar { width: 54px; height: 54px; font-size: 20px; }
#screen-profile .profile-top .profile-name { font-size: 16px; }
#screen-profile .profile-stats { margin-top: 8px; }
#screen-profile .stat-card { padding: 7px 6px; }
#screen-profile .stat-card .stat-num { font-size: 14px; }
#screen-profile .stat-card .stat-label { font-size: 10.5px; }
#screen-profile .profile-tabs { padding: 0 6px; }
#screen-profile .profile-tabs .ptab { padding: 7px 10px; font-size: 12.5px; }
#screen-profile .avatar-row { padding: 4px 0 !important; }
#screen-profile .profile-form .field-row { min-height: 0; padding: 3px 0; }
#screen-profile .profile-form .field-row > label,
#screen-profile .profile-form .field-key { font-size: 12px; }
#screen-profile .profile-extra { margin-top: 8px; padding-top: 8px; gap: 10px; }
#screen-profile .px-title { margin-bottom: 5px; }
#screen-profile .profile-actions { padding-top: 8px; }

#screen-profile .profile-form .field-row-wide textarea { min-height: 50px; height: 50px; padding: 6px 10px; }
#screen-profile .kyc-card { margin: 0 !important; padding: 10px 12px !important; }
#screen-profile .kyc-head { margin-bottom: 4px; }
#screen-profile .kyc-note { font-size: 11.5px; line-height: 1.5; margin-bottom: 6px; }
#screen-profile .px-chip { padding: 2px 7px; font-size: 11px; }
#screen-profile .profile-actions { margin-top: 4px; }
#screen-profile .profile-actions button { height: 34px; font-size: 13px; }
#screen-profile .avatar-row .avatar-preview { width: 42px; height: 42px; }
#screen-profile .avatar-row .avatar-upload button { height: 32px; font-size: 12.5px; }
#screen-profile .stat-card { padding: 6px 4px !important; }
#screen-profile .profile-stats { gap: 8px !important; margin-top: 6px !important; }
#screen-profile .profile-tabs .ptab { padding: 6px 9px !important; font-size: 12px !important; }
#screen-profile .profile-cover { margin-bottom: 0 !important; }

/* 最后一轮：成就/业务压成单行；实名说明收起 */
#screen-profile .profile-extra {
  grid-template-columns: 1fr !important; gap: 4px !important;
  margin-top: 6px !important; padding-top: 6px !important;
}
#screen-profile .px-block { display: flex; align-items: center; gap: 8px; min-height: 22px; }
#screen-profile .px-title { margin: 0 !important; flex: 0 0 auto; white-space: nowrap; }
#screen-profile .px-row { flex: 1 1 auto; flex-wrap: nowrap; overflow: hidden; }
#screen-profile .px-empty { font-size: 11px; }
#screen-profile .kyc-note { display: none !important; }
#screen-profile .kyc-card { padding: 8px 12px !important; }
#screen-profile .kyc-row { margin: 4px 0 !important; }
#screen-profile .kyc-actions { margin-top: 6px !important; }

/* 保存/还原固定在弹窗底部，滚动时始终可见 */
#screen-profile .profile-card { padding-bottom: 0 !important; }
#screen-profile .profile-actions {
  position: sticky; bottom: 0; z-index: 3;
  margin: 0 -20px 0 !important; padding: 9px 20px 11px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.86), #fff 42%);
  border-top: 1px solid #eef1f7;
  backdrop-filter: blur(4px);
}
#screen-profile .profile-extra { margin-bottom: 8px !important; }

/* ===== 资料窗：底部固定图标栏（仿 语音房） ===== */
#screen-profile .profile-card { padding-bottom: 0 !important; }
#screen-profile .profile-foot {
  flex: 0 0 auto; border-top: 1px solid #eef1f7; background: #fbfcff;
  padding: 7px 16px 9px; display: flex; flex-direction: column; gap: 5px;
}
#screen-profile .pf-row { display: flex; align-items: center; gap: 8px; min-height: 26px; }
#screen-profile .pf-label { flex: 0 0 62px; font-size: 11.5px; color: #7c8aa3; }
#screen-profile .pf-icons { flex: 1 1 auto; display: flex; align-items: center; gap: 5px; overflow-x: auto; }
#screen-profile .px-ico {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; cursor: default;
  box-shadow: 0 1px 3px rgba(20,40,80,.14);
}
#screen-profile .px-ico.gold { background: linear-gradient(135deg,#f5c451,#e09b1e); }
#screen-profile .px-ico.violet { background: linear-gradient(135deg,#a78bfa,#7c5cff); }
#screen-profile .px-ico.mint { background: linear-gradient(135deg,#5ed3ae,#22a97e); }
#screen-profile .px-ico.blue { background: linear-gradient(135deg,#5b8def,#3560d8); }
#screen-profile .px-ico.rainbow { background: linear-gradient(135deg,#5b8def,#8b6bf0,#e0467a,#f0a63c); }
#screen-profile .px-ico.pink { background: linear-gradient(135deg,#f78fb3,#e0467a); }
#screen-profile .profile-actions { display: none !important; }
#screen-profile .pf-actions { flex: 0 0 auto; display: flex; gap: 6px; }
#screen-profile .pf-actions button { height: 27px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
#screen-profile .profile-extra { display: none !important; }
/* 频道页签表格 */
#screen-profile .pf-chlist { width: 100%; border-collapse: collapse; font-size: 12.5px; }
#screen-profile .pf-chlist th {
  text-align: left; font-weight: 600; color: #7c8aa3; font-size: 11.5px;
  padding: 6px 8px; border-bottom: 1px solid #eef1f7; white-space: nowrap;
}
#screen-profile .pf-chlist td { padding: 7px 8px; border-bottom: 1px dashed #f0f3f8; color: #33445c; }
#screen-profile .pf-chlist tr:hover td { background: #f8faff; }
#screen-profile .pf-role { font-weight: 650; }
#screen-profile .pf-contrib { font-variant-numeric: tabular-nums; }
#screen-profile .pf-nick { display: inline-flex; align-items: center; gap: 5px; }
#screen-profile .pf-dot { width: 6px; height: 6px; border-radius: 50%; background: #22a97e; }
#screen-profile .pf-emptybox { padding: 24px 0; text-align: center; color: #9aa6b8; font-size: 12.5px; }

/* 经典式头部：头像压封面 + 昵称带(ID) + 右上双计数 */
#screen-profile .profile-cover { height: 72px !important; position: relative; }
#screen-profile .profile-top {
  position: relative; margin-top: -34px; align-items: flex-end;
  gap: 12px; padding: 0 2px 6px;
}
#screen-profile .profile-avatar-lg {
  width: 74px; height: 74px; border: 3px solid #fff; border-radius: 50%;
  box-shadow: 0 6px 18px rgba(20,40,80,.18); flex: 0 0 74px; font-size: 26px;
}
#screen-profile .profile-id-text { padding-bottom: 4px; min-width: 0; }
#screen-profile .pn-line { display: flex; align-items: baseline; gap: 6px; margin: 0; }
#screen-profile #profile-name { font-size: 19px; font-weight: 700; }
#screen-profile .pn-id { font-size: 12.5px; color: #8a94a6; font-weight: 400; }
#screen-profile .profile-meta { margin-top: 2px; }
#screen-profile .profile-meta .meta { font-size: 11.5px; color: #97a1b2; margin-right: 8px; }
#screen-profile .profile-badges { margin-top: 3px; }
#screen-profile .profile-side {
  margin-left: auto; display: flex; gap: 16px; padding-bottom: 8px;
}
#screen-profile .ps-item {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-size: 12px; color: #6b7a90; min-width: 34px;
}
#screen-profile .ps-ico { font-size: 15px; line-height: 1; color: #e2506a; }
#screen-profile .ps-item:last-child .ps-ico { color: #5b8def; }

#screen-profile .profile-tabs { margin-top: 2px; border-bottom: 1px solid #eef1f7; }
#screen-profile .profile-top { margin-top: -34px; }

/* 头部位移修正：只让头像上浮，文字留在白区 */
#screen-profile .profile-top {
  margin-top: 0 !important; align-items: flex-start !important;
  padding: 0 2px 8px !important;
}
#screen-profile .profile-avatar-lg { margin-top: -38px; }
#screen-profile .profile-id-text { padding-top: 4px; }
#screen-profile .profile-side { padding-top: 6px; }
#screen-profile .profile-cover { height: 64px !important; }

/* 查看态 / 编辑态 */
#screen-profile .profile-card.viewing .profile-form { display: none !important; }
#screen-profile .profile-card.editing #profile-view { display: none !important; }
#screen-profile .profile-view { padding: 4px 2px 0; }
#screen-profile .pv-list { margin: 0; padding: 0; display: grid; gap: 2px; }
#screen-profile .pv-row {
  display: grid; grid-template-columns: 74px 1fr; gap: 10px;
  padding: 5px 2px; border-bottom: 1px dashed #eef1f7; align-items: start;
}
#screen-profile .pv-row:last-child { border-bottom: 0; }
#screen-profile .pv-row dt { margin: 0; font-size: 12.5px; color: #8a94a6; }
#screen-profile .pv-row dd { margin: 0; font-size: 13px; color: #26303f; word-break: break-all; }
#screen-profile .pv-row-wide { grid-template-columns: 1fr; }
#screen-profile .pv-row-wide dt { margin-bottom: 2px; }
#screen-profile .pv-actions { display: flex; justify-content: flex-end; padding: 10px 2px 4px; }
#screen-profile .pv-actions button { height: 32px; padding: 0 18px; font-size: 13px; }

/* 图标管理面板 */
.im-layer { position: fixed; inset: 0; z-index: 9600; display: flex; align-items: center; justify-content: center; }
.im-layer.hidden { display: none !important; }
.im-mask { position: absolute; inset: 0; background: rgba(16,24,40,.45); backdrop-filter: blur(2px); }
.im-box {
  position: relative; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 60px);
  background: #fff; border-radius: 14px; box-shadow: 0 24px 64px rgba(10,20,40,.32);
  display: flex; flex-direction: column; overflow: hidden;
}
.im-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #eef1f7; }
.im-head b { font-size: 14px; }
.im-x { border: 0; background: transparent; font-size: 20px; line-height: 1; color: #8a94a6; cursor: pointer; padding: 0 4px; }
.im-tabs { display: flex; gap: 6px; padding: 10px 14px 0; }
.im-tab { border: 1px solid #e3e8f2; background: #f7f9fd; border-radius: 8px 8px 0 0; padding: 6px 12px; font-size: 12.5px; color: #5a6a82; cursor: pointer; }
.im-tab.on { background: #fff; color: #3554d1; border-bottom-color: #fff; font-weight: 650; }
.im-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px 14px 4px; }
.im-sec { border: 1px solid #eef1f7; border-radius: 10px; padding: 8px 10px 10px; margin-bottom: 10px; }
.im-sec-title { font-size: 12px; color: #8a94a6; margin-bottom: 8px; }
.im-sec-title span { color: #3554d1; font-weight: 650; }
.im-grid { display: flex; flex-wrap: wrap; gap: 7px; min-height: 26px; }
.im-empty { font-size: 12px; color: #b3bccb; padding: 4px 0; }
.im-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px 12px; border-top: 1px solid #eef1f7; background: #fbfcff; }
.im-foot button { height: 30px; padding: 0 16px; font-size: 13px; }
.im-grid .px-ico { cursor: pointer; }
.im-grid .px-ico:hover { transform: translateY(-1px); }

/* 公屏成员列表：尾灯 + 勋章（与资料窗图标管理互联） */
.member-row .mem-tail {
  flex: 0 0 auto; width: 15px; height: 15px; line-height: 15px; border-radius: 4px;
  font-size: 10px; text-align: center; color: #fff; margin-right: 2px;
}
.member-row .mem-medal {
  flex: 0 0 auto; width: 15px; height: 15px; line-height: 15px; border-radius: 50%;
  font-size: 10px; text-align: center; color: #fff; margin-left: 3px;
}
.tail-tvip, .medal-mvip { background: linear-gradient(135deg,#f6b73c,#e08b12); }
.tail-tnoble, .medal-mnoble { background: linear-gradient(135deg,#8b6cf0,#5b3fd1); }
.tail-tvanity, .medal-mvanity { background: linear-gradient(135deg,#4fa8f5,#2c7be5); }
.tail-tbase { background: linear-gradient(135deg,#5cc9a7,#2e9c7d); }
.medal-mgrow { background: linear-gradient(135deg,#f38ba8,#d6455f); }

/* 马甲 / 官方 / 会员等级 / 实名 */
.member-row .mem-role {
  flex: 0 0 auto; font-size: 10.5px; line-height: 16px; padding: 0 6px;
  border-radius: 8px; margin-left: 4px; white-space: nowrap; font-weight: 650;
}
.member-row .mem-official {
  flex: 0 0 auto; font-size: 10px; line-height: 16px; padding: 0 6px; border-radius: 8px;
  color: #f5d76e; background: linear-gradient(135deg,#1c1a17,#3a3326);
  border: 1px solid #d4af37; margin-left: 4px; letter-spacing: .5px; font-weight: 700;
}
/* 会员等级：盾牌底 + 罗马数字，四档配色 */
.member-row .mem-vip {
  position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 1px;
  height: 16px; padding: 0 5px 0 4px; margin-left: 3px; border-radius: 4px 4px 5px 5px;
  font-style: normal; font-weight: 700;
}
.member-row .mem-vip em {
  font-style: normal; font-size: 9.5px; line-height: 1; letter-spacing: .2px;
  color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.25);
}
.member-row .mem-vip.vp-bronze { background: linear-gradient(180deg,#c99b6a,#9a6f3f); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.member-row .mem-vip.vp-silver { background: linear-gradient(180deg,#b9c4d4,#7f8da3); box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
.member-row .mem-vip.vp-ruby   { background: linear-gradient(180deg,#f4778f,#c32646); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 6px rgba(195,38,70,.35); }
.member-row .mem-vip.vp-royal  { background: linear-gradient(180deg,#a98bff,#5b3fd1 60%,#3a2496); box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 0 8px rgba(91,63,209,.45); }
.member-row .mem-vip .vp-crown {
  width: 6px; height: 6px; margin-right: 1px;
  background: linear-gradient(135deg,#ffe9a8,#f6c443);
  clip-path: polygon(50% 0,100% 100%,0 100%);
}
/* 说话状态：脉冲绿点（不是实名） */
.member-row .mem-speaking {
  flex: 0 0 auto; width: 14px; height: 14px; margin-left: 3px;
  display: inline-flex; align-items: center; justify-content: center;
}
.member-row .mem-speaking i {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.65);
  animation: speakPulse 1.1s ease-out infinite;
}
@keyframes speakPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.65); }
  70%  { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.member-row.on-mic .mem-speaking i, .member-row .mem-speaking i { background: #22c55e; }
.member-row .role-tag { display: none; }

/* 独立公屏窗：只显示房间，去掉外壳 */
body.standalone-room .shell-titlebar,
body.standalone-room .shell-resize,
body.standalone-room #screen-auth,
body.standalone-room #screen-lobby,
body.standalone-room #screen-profile { display: none !important; }
body.standalone-room #app-shell {
  width: 100vw !important; height: 100vh !important;
  border-radius: 0 !important; box-shadow: none !important;
  max-width: none !important; max-height: none !important;
}
body.standalone-room .screen-room { display: block !important; }
body.standalone-room .screen-room.hidden { display: block !important; }

/* 窄版 285px：按钮不换行、图标收紧 */
body.narrow .top-acts { gap: 4px !important; }
body.narrow .top-acts .top-ico { width: 28px !important; min-width: 28px !important; height: 28px !important; }
body.narrow #btn-friends {
  white-space: nowrap !important; padding: 0 10px !important;
  min-width: auto !important; width: auto !important; font-size: 12.5px !important;
  height: 28px !important; line-height: 28px !important; flex: 0 0 auto !important;
}
body.narrow .top-user { gap: 6px !important; }
body.narrow .top-user .tu-name { font-size: 13px !important; }
body.narrow .main-nav { overflow-x: auto !important; scrollbar-width: none; }
body.narrow .main-nav::-webkit-scrollbar { display: none; }
body.narrow .lobby-side { display: none !important; }
body.narrow .island-grid { grid-template-columns: 1fr !important; }
body.narrow .lobby-head { flex-wrap: wrap !important; gap: 8px !important; }
body.narrow .lobby-head .new-island { flex: 1 1 100% !important; }

/* ============ 窄版房间页（窗口 < 390px） ============ */
body.narrow .rm-tree { display: none !important; }
body.narrow .rm-rail { display: none !important; }
/* 285 宽下右侧信息栏会挤死舞台，收进「宽版」再看公告/广播 */
body.narrow .rm-info { display: none !important; }
body.narrow .rm-main { flex: 1 1 auto !important; min-width: 0 !important; }
body.narrow .rm-body { flex-direction: row !important; }

/* 头部精简：只留首字 + 名字 + 在线 + 离开 */
body.narrow .rm-head { height: 36px !important; flex-wrap: nowrap !important; padding: 0 8px !important; }
body.narrow .rm-chip-id { display: none !important; }
body.narrow .rm-head-left .rm-ico { display: none !important; }
body.narrow .rm-status { display: none !important; }   /* 状态文案在 285 宽会把头部挤成三行 */
body.narrow .rm-ch-ico { width: 20px !important; height: 20px !important; font-size: 11px !important; }
body.narrow .rm-ch-name { font-size: 12.5px !important; max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.narrow .rm-chip { padding: 0 5px !important; font-size: 10.5px !important; }
body.narrow .rm-leave { padding: 0 8px !important; height: 22px !important; font-size: 11px !important; }

/* 工具条：只留必要项，横向可滚 */
body.narrow .rm-tools { overflow-x: auto; scrollbar-width: none; height: 30px; padding: 0 6px; gap: 6px; }
body.narrow .rm-tools::-webkit-scrollbar { display: none; }
body.narrow .rm-tool { height: 24px; padding: 0 6px; }
body.narrow .rm-tool svg { width: 14px; height: 14px; flex: 0 0 14px; }
body.narrow .rm-mode, body.narrow .rm-mic-links { display: none !important; }

/* 公屏消息：头像缩小、字号收紧 */
body.narrow .rm-chat { padding: 6px 8px !important; }
body.narrow .chat-row { gap: 6px !important; }
body.narrow .chat-ava { width: 22px !important; height: 22px !important; flex: 0 0 22px !important; font-size: 10px !important; }
body.narrow .chat-body { font-size: 11.5px !important; }
body.narrow .chat-time { display: none !important; }

/* 输入条：上下两层，发送按钮不挤 */
body.narrow .rm-inputbar { flex-wrap: wrap; padding: 6px !important; gap: 5px; }
body.narrow .rm-inputbar .rm-in-tools { display: none !important; }
body.narrow .rm-input { flex: 1 1 100% !important; order: 1; height: 30px !important; }
body.narrow #btn-send { order: 2; flex: 1 1 100% !important; height: 30px !important; }
body.narrow .rm-inputbar .rm-in-ico { order: 0; }

/* 底栏：图标化，不换行 */
body.narrow .rm-footer { flex-wrap: nowrap; overflow-x: auto; padding: 4px 6px !important; height: 36px !important; gap: 4px; }
body.narrow .rm-footer::-webkit-scrollbar { display: none; }
body.narrow .rm-foot-ava { width: 24px !important; height: 24px !important; flex: 0 0 24px !important; }
body.narrow .rm-foot-name { display: none !important; }
body.narrow .rm-foot-btn { padding: 0 8px !important; font-size: 11px !important; height: 24px !important; white-space: nowrap; }
body.narrow .rm-vol { display: none !important; }
body.narrow .rm-foot-hint { display: none !important; }

/* 窄版四图标：统一描边风格 */
/* 旧的 .nl-q / .nl-quick 窄版 tab 样式已迁到 css/narrow-lobby.css，这里不再重复定义 */

/* ============ 房间三区可拖拽 ============ */
.rm-resizer {
  flex: 0 0 auto; background: transparent; position: relative;
  z-index: 5; transition: background .15s;
}
.rm-resizer-v { width: 5px; cursor: col-resize; margin: 0 -2px; }
.rm-resizer-h { height: 5px; cursor: row-resize; margin: -2px 0; }
.rm-resizer::after {
  content: ""; position: absolute; background: #cfd8e6; border-radius: 2px;
  opacity: 0; transition: opacity .15s;
}
.rm-resizer-v::after { left: 2px; top: 50%; transform: translateY(-50%); width: 1px; height: 34px; }
.rm-resizer-h::after { top: 2px; left: 50%; transform: translateX(-50%); height: 1px; width: 34px; }
.rm-resizer:hover::after, .rm-resizer.dragging::after { opacity: 1; background: #5b8def; }
.rm-resizer:hover, .rm-resizer.dragging { background: rgba(91,141,239,.10); }
body.rs-dragging { cursor: col-resize; user-select: none; }
body.rs-dragging-h { cursor: row-resize; user-select: none; }

/* 输入区高度随拖拽变化 */
.rm-main { --chat-flex: 1; }
.rm-chat { flex: var(--chat-flex) 1 0 !important; min-height: 60px; }

/* 收藏星标 */
.cover-fav {
  position: absolute; right: 8px; top: 8px; width: 26px; height: 26px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.82);
  color: #8a94a6; cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s, color .15s, background .15s;
}
.channel-card:hover .cover-fav, .cover-fav.on { opacity: 1; }
.cover-fav:hover { background: #fff; color: #f0a020; }
.cover-fav.on { color: #f0a020; }

.channel-card.is-fav { border-color: #f3dfae; }
.fav-tag {
  display: inline-block; margin-left: 6px; padding: 0 6px; height: 16px; line-height: 16px;
  font-size: 10.5px; font-weight: 500; color: #b4780a;
  background: #fdf3dc; border-radius: 4px; vertical-align: 2px;
}

/* 权限不足的管理按钮：灰化 + 不大红大绿 */
.rm-rail-btn.is-locked,
.rm-rail-btn:disabled {
  opacity: .38; cursor: not-allowed;
}
.rn-save:disabled { opacity: .45; cursor: not-allowed; }

/* 公屏右键菜单 */
.chat-ctx {
  position: fixed; z-index: 9700; min-width: 168px;
  background: #fff; border: 1px solid #e3eaf5; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(31,41,55,.14), 0 2px 6px rgba(31,41,55,.08);
  padding: 5px; font-size: 13px; color: #1f2937;
  user-select: none;
}
.chat-ctx-item {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 5px; cursor: pointer; white-space: nowrap;
}
.chat-ctx-item:hover { background: #eef4ff; color: #1d4ed8; }
.chat-ctx-item.is-off { color: #b6c0cf; cursor: not-allowed; }
.chat-ctx-item.is-off:hover { background: transparent; color: #b6c0cf; }
.chat-ctx-item.is-on { color: #1d4ed8; }
.cc-check { width: 12px; display: inline-block; font-size: 11px; color: #2f6fed; }

/* 拒收：本地隐藏 */
#chat-list.block-all .chat-row { display: none; }
#chat-list.block-all::after {
  content: "已拒收公屏所有消息（右键可恢复）";
  display: block; padding: 18px; text-align: center;
  color: #8a94a6; font-size: 12.5px;
}
#chat-list.block-media .chat-media,
#chat-list.block-media .gift-chip { display: none; }

/* 登录页品牌区：纯蓝白 + 全部居中 */
.auth-brand {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 0;
  padding: 0 32px;
  background: #ffffff !important;
  border-right: 1px solid #e8eefb;
}
.auth-brand .brand-logo {
  width: 124px; height: 124px; border-radius: 50%;
  box-shadow: 0 10px 28px rgba(30,58,138,.14);
  display: block;
}
.auth-brand .brand-name {
  margin: 26px 0 0; font-size: 44px; letter-spacing: 10px;
  color: #16305e; font-weight: 700; text-indent: 10px;
}
.auth-brand .brand-slogan {
  margin: 10px 0 0; font-size: 17px; letter-spacing: 1px;
  color: #4a668f;
}
.auth-brand .brand-points {
  list-style: none; padding: 0; margin: 34px 0 0;
  display: flex; flex-direction: column; gap: 12px;
  max-width: 460px; align-items: center;
}
.auth-brand .brand-points li {
  font-size: 15.5px; line-height: 1.8;
  color: #35507a; text-align: center;
}
.auth-brand .brand-points i { display: none; }

.auth-brand .brand-sites {
  display: grid; grid-template-columns: auto auto;
  column-gap: 10px; row-gap: 8px;
  margin: 30px auto 0; padding: 0;
  background: none; border: 0; box-shadow: none;
  justify-content: center; align-items: baseline;
}
.auth-brand .brand-sites p { display: contents; }
.auth-brand .bs-k {
  text-align: right; font-size: 14.5px; line-height: 1.8; color: #6b7f9e;
}
.auth-brand .bs-v {
  text-align: left; font-size: 15px; line-height: 1.8;
  color: #16305e; font-weight: 700; letter-spacing: .2px;
}
.auth-brand .brand-sites i { display: none; }

/* 右侧表单也不抢色：白底 */
#screen-auth, .auth-split { background: #ffffff !important; }

body.narrow .auth-brand { display: none !important; }

/* 成员行按 语音房：所有标记紧贴左侧，右侧留白 */
.member-row { justify-content: flex-start; }
.member-row .name { margin-right: 2px; }
.member-row .mem-role { margin-left: 3px; }

/* 独立公屏窗：房间铺满整窗，公屏区真正伸展 */
body.standalone-room #screen-room {
  position: fixed; inset: 0; display: flex !important;
  flex-direction: column; height: 100% !important; margin: 0 !important;
  border-radius: 0 !important; box-shadow: none !important;
}
body.standalone-room .rm-body { flex: 1 1 auto !important; min-height: 0 !important; }
body.standalone-room .rm-main { flex: 1 1 auto !important; min-height: 0 !important; }
body.standalone-room .rm-chat { flex: 1 1 auto !important; min-height: 120px !important; }
body.standalone-room .rm-inputbar { bottom: 74px; }

/* 公屏顶部提示行 */
.rm-chat-head {
  flex: 0 0 auto; padding: 6px 18px 0;
  font-size: 11.5px; color: #9aa7ba; letter-spacing: .3px;
}
/* 底栏：麦克风图标 + 状态文字（语音房 样式） */
.rm-foot-left { display: flex; align-items: center; gap: 8px; }
.rm-foot-mic {
  width: 28px; height: 28px; flex: 0 0 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: transparent; padding: 0;
  color: #56667f; cursor: pointer; transition: background .15s, color .15s;
}
.rm-foot-mic:hover { background: #eef2f9; color: #2f6fed; }
.rm-foot-mic.on { color: #2f6fed; background: #e8f0ff; }
.rm-foot-mic svg { width: 18px; height: 18px; }
.rm-foot-status { font-size: 12px; color: #8b98ab; letter-spacing: .2px; }
.rm-foot-status.on { color: #2f9e6e; }

/* 浮动输入框里的发送按钮 */
.rm-send {
  flex: 0 0 auto; height: 28px; padding: 0 12px; margin-left: 2px;
  border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg,#5b8def,#3d6cf0); color: #fff;
  font-size: 12.5px; font-weight: 600; letter-spacing: .5px;
}
.rm-send:hover { filter: brightness(1.05); }
.rm-send:active { filter: brightness(.95); }

/* 公屏消息行：头像不被裁、不换行 */
#chat-list .chat-row { align-items: flex-start; gap: 7px; }
#chat-list .chat-row .mini-avatar {
  width: 30px; height: 30px; flex: 0 0 30px;
  border-radius: 50%; overflow: hidden;
}
#chat-list .chat-row .mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
/* 消息行里昵称与徽章允许换行，避免撑破 */
#chat-list .chat-row .chat-main { min-width: 0; flex: 1 1 auto; }

/* 发言模式下拉（工具条最左） */
.rm-talkmode {
  height: 26px; flex: 0 0 auto; margin-right: 4px;
  padding: 0 22px 0 8px; border-radius: 7px;
  border: 1px solid #dfe6f2; background: #fff;
  font-size: 12px; color: #46566f; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8a97ad 50%),
                    linear-gradient(135deg, #8a97ad 50%, transparent 50%);
  background-position: calc(100% - 11px) 11px, calc(100% - 7px) 11px;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}
.rm-talkmode:hover { border-color: #c8d6ee; }
.rm-talkmode:disabled { opacity: .55; cursor: not-allowed; }

/* 公屏区：去掉四周多余留白，右侧给竖排栏让位 */
#chat-list.rm-chat { padding: 4px 46px 78px 12px !important; }
.rm-chat-head { padding: 5px 46px 2px 12px; }
/* 底部业务按钮：可用状态 */
.rm-foot-item:not(:disabled) { color: #46566f; cursor: pointer; }
.rm-foot-item:not(:disabled):hover { color: #2f6fed; }

/* 输入框可上下拖拽调高度（语音房 图2 标注） */
.rm-inputbar {
  align-items: flex-end !important;
  min-height: 42px;
}
.rm-inputbar #chat-input {
  width: 100%;
  min-height: 26px;
  max-height: 108px;
  resize: none !important;
  line-height: 1.5;
  padding: 4px 4px !important;
  font-family: inherit;
  overflow-y: auto;
}
.rm-input-resize {
  position: absolute; top: -3px; left: 14px; right: 14px;
  height: 7px; cursor: ns-resize; z-index: 2;
  border-radius: 4px;
}
.rm-input-resize:hover { background: rgba(61,108,240,.14); }

#chat-input, textarea#chat-input { resize: none !important; }
#chat-input::-webkit-resizer { display: none !important; }

/* 房间页去掉 style.css:55 的 .screen{padding:24px} 四周白边 */
#screen-room.screen,
#screen-room {
  padding: 0 !important;
  margin: 0 !important;
}
body.standalone-room #screen-room { padding: 0 !important; }
/* 外壳也别再加内边距 */
.app-shell > .shell-body { padding: 0 !important; }

/* 公屏：极淡底 + 撑满，避免大片空白显得没内容 */
#chat-list.rm-chat {
  background: #fbfcff;
  padding: 10px 46px 92px 14px !important;
}
#chat-list.rm-chat .chat-row {
  padding: 5px 8px;
  border-radius: 8px;
}
#chat-list.rm-chat .chat-row:hover { background: rgba(91,141,239,.055); }

/* 空状态 */
#chat-list.rm-chat:empty::after,
#chat-list.rm-chat.is-empty::after {
  content: "还没有人说话，来打个招呼吧";
  display: block; text-align: center;
  color: #a9b4c6; font-size: 13px; padding: 40px 0;
}


/* ===== 经典式房间三栏：中栏大屏麦位 + 公屏下移 + 右栏信息 ===== */
#screen-room .rm-main {
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
  background: #f4f7fb;
}
#screen-room .rm-stage {
  flex: 0 0 auto; padding: 14px 16px 10px;
  background: linear-gradient(180deg,#eaf1fb 0%,#f4f7fb 100%);
  border-bottom: 1px solid #e3eaf5;
}
#screen-room .rm-stage-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
#screen-room .rm-stage-title { font-size: 15px; font-weight: 700; color: #1f2a3d; }
#screen-room .rm-stage-tag {
  font-size: 11px; color: #4a7fd8; background: #e2ecfd;
  border-radius: 9px; padding: 1px 8px; font-weight: 600;
}
#screen-room .rm-stage-meta { margin-left: auto; font-size: 12px; color: #8b97ab; }

#screen-room .rm-seats {
  display: grid; grid-template-columns: repeat(var(--seat-cols, 5), minmax(0, 1fr)); gap: 10px;
}
#screen-room .rm-seat {
  position: relative; border-radius: 12px; padding: 14px 8px 10px;
  background: rgba(255,255,255,.82); border: 1px solid #dfe8f5;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  min-height: 132px; justify-content: center;
  transition: box-shadow .18s, transform .18s;
}
#screen-room .rm-seat:hover { box-shadow: 0 6px 18px rgba(40,90,170,.12); }
#screen-room .rm-seat-no {
  position: absolute; top: 6px; left: 9px; font-size: 11px;
  color: #9aa8be; font-weight: 700;
}
#screen-room .rm-seat-av {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg,#5f8dfa,#7d6cf6); color: #fff;
  font-size: 21px; font-weight: 700; overflow: hidden;
}
#screen-room .rm-seat-av img { width: 100%; height: 100%; object-fit: cover; }
#screen-room .rm-seat-empty .rm-seat-av { background: #e8eefa; color: #a9b7cc; }
#screen-room .rm-seat-name {
  font-size: 12.5px; color: #2b3a52; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; font-weight: 600;
}
#screen-room .rm-seat-btn {
  font-size: 12px; color: #4a7fd8; background: #eef4fe; border: 1px solid #d7e5fb;
  border-radius: 8px; padding: 3px 12px; cursor: pointer;
}
#screen-room .rm-seat-btn:hover { background: #e2ecfd; }
#screen-room .rm-seat.talking .rm-seat-av {
  box-shadow: 0 0 0 3px rgba(74,197,140,.45); animation: seatPulse 1.4s infinite;
}
@keyframes seatPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(74,197,140,.45); }
  50%     { box-shadow: 0 0 0 7px rgba(74,197,140,.16); }
}

#screen-room .rm-chatwrap {
  flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0;
  position: relative;
}
#screen-room .rm-chatwrap .rm-chat { flex: 1 1 auto; min-height: 0; }

/* 右栏信息面板 */
#screen-room .rm-info {
  width: 268px; flex: 0 0 268px; display: flex; flex-direction: column;
  background: #fff; border-left: 1px solid #e6ecf6; min-height: 0;
}
#screen-room .rm-info-tabs {
  display: flex; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid #eef2f9;
}
#screen-room .rm-info-tab {
  flex: 0 0 auto; font-size: 12.5px; padding: 6px 10px 8px; color: #7a869c;
  background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
}
#screen-room .rm-info-tab.on { color: #2f6fe0; font-weight: 700; border-bottom-color: #2f6fe0; }
#screen-room .rm-info-body {
  flex: 1 1 auto; overflow-y: auto; padding: 12px; font-size: 12.5px;
  color: #4a5568; line-height: 1.75;
}
#screen-room .rm-info-body h4 {
  font-size: 12.5px; color: #1f2a3d; margin: 0 0 8px; font-weight: 700;
}
#screen-room .rm-info-empty { color: #a3adbe; text-align: center; padding: 24px 0; }
#screen-room .rm-info-item {
  padding: 7px 0; border-bottom: 1px dashed #eef2f9; display: flex; gap: 8px;
}
#screen-room .rm-info-item:last-child { border-bottom: 0; }
#screen-room .rm-info-time { color: #a3adbe; font-size: 11.5px; flex: 0 0 auto; }

#screen-room .rm-info-body::-webkit-scrollbar { width: 8px; }
#screen-room .rm-info-body::-webkit-scrollbar-thumb {
  background: #d5dfee; border-radius: 4px;
}
#screen-room .rm-info-body::-webkit-scrollbar-thumb:hover { background: #bccbdf; }
#screen-room .rm-info-body::-webkit-scrollbar-track { background: transparent; }
#screen-room .rm-seat-empty .rm-seat-av svg { color: #b6c4d8; }

/* 去掉房间页最外层多余滚动条 */
#screen-room, #screen-room.screen { overflow: hidden !important; }
#screen-room .rm-body { overflow: hidden !important; }
#screen-room .rm-info { overflow: hidden; }

/* ===== 公屏消息：经典式两行（元信息行 + 正文行），去掉头像圈 ===== */
#screen-room .chat-row {
  display: block; padding: 6px 10px 7px; border-radius: 8px;
}
#screen-room .chat-row + .chat-row { margin-top: 1px; }
#screen-room .chat-row .chat-main {
  display: block; min-width: 0;
}
#screen-room .chat-meta {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  font-size: 12px; line-height: 1.5; margin-bottom: 1px;
}
#screen-room .chat-meta .from {
  font-weight: 700; font-size: 12.5px;
}
#screen-room .chat-meta .chat-no {
  color: #93a1b8; font-size: 11.5px;
}
#screen-room .chat-meta .time {
  color: #a8b3c6; font-size: 11.5px; margin-left: 2px;
}
#screen-room .chat-body {
  font-size: 13.5px; line-height: 1.62; color: #25303f;
  padding-left: 1px; word-break: break-word;
}
#screen-room .chat-body .chat-text.recalled { color: #a8b3c6; font-style: italic; }
#screen-room .chat-row:hover { background: rgba(74,127,216,.045); }
/* 自己的消息淡蓝底 */
#screen-room .chat-row.mine { background: rgba(74,127,216,.06); }

/* 公屏会员图标 */
.chat-vip { display: inline-flex; align-items: center; margin-right: 2px; cursor: help; }
.chat-vip img { display: block; height: 14px; width: auto; }

/* 成员树会员图标（图2 圆角方块 V） */
.mem-vip-img { display: inline-flex; align-items: center; margin: 0 2px; cursor: help; }
.mem-vip-img img { height: 15px; width: auto; display: block; }
/* 公屏「靓」图标 */
.chat-novou { display: inline-flex; align-items: center; margin: 0 3px 0 2px; vertical-align: -2px; }
.chat-novou img { height: 14px; width: auto; display: block; }


/* ===== 公屏（房间）对齐主流语音房 版式 v20261201b —— 仅宽版，窄版保持原样 ===== */
body.narrow .rm-foot-kbd { display: none; }

body:not(.narrow) .rm-head {
  height: 46px; background: #1c1c1e; color: #e8ecf3; padding: 0 10px 0 12px;
}
body:not(.narrow) .rm-ch-ico { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 6px; font-size: 12.5px; }
body:not(.narrow) .rm-ch-name { font-size: 14.5px; font-weight: 600; letter-spacing: .2px; }
body:not(.narrow) .rm-chip {
  padding: 2px 7px; border-radius: 10px; background: rgba(255,255,255,.13);
  font-size: 11.5px; color: #cfd6e2;
}
body:not(.narrow) .rm-ico { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 6px; color: #b9c2d0; }
body:not(.narrow) .rm-leave {
  height: 28px; padding: 0 13px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.26); color: #e8ecf3; font-size: 12.5px;
}

body:not(.narrow) .rm-tools {
  height: 34px; padding: 0 10px; gap: 2px;
  background: #fbfcfd; border-bottom: 1px solid #e9edf4;
}
body:not(.narrow) .rm-tools .rm-tool { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 6px; color: #5d6a7e; }
body:not(.narrow) .rm-tools .rm-tool:not(:disabled):hover { background: #eef2f9; color: #2f3948; }
body:not(.narrow) .rm-mode { background: #eef2f9; color: #5b6a80; border-radius: 12px; padding: 3px 10px; }
body:not(.narrow) .rm-mic-links a { color: #8b97a9; }

body:not(.narrow) .rm-tree { flex: 0 0 232px; background: #fff; border-right: 1px solid #eceff5; }
body:not(.narrow) .rm-tree-head {
  padding: 8px 12px 6px; background: #fff; border-bottom: 1px solid #f0f3f8;
  display: flex; flex-direction: column; gap: 2px;
}
.rm-tree-mode { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: #2f3948; }
.rm-tree-mode svg { width: 11px; height: 11px; color: #98a3b5; }
.rm-tree-tip { font-size: 11px; color: #a4aebf; font-weight: 400; }
.rm-tree-count { color: #8b97a9; font-weight: 600; }

body:not(.narrow) .rm-inputbar { background: #fbfcfd; border-top: 1px solid #eceff5; padding: 7px 10px; gap: 6px; }
body:not(.narrow) .rm-inputbar #chat-input {
  border: 1px solid #e3e9f2; border-radius: 15px; background: #fff; padding: 6px 12px; font-size: 12.5px;
}
body:not(.narrow) .rm-inputbar .rm-tool-line { width: 28px; height: 28px; flex: 0 0 28px; color: #5d6a7e; }
body:not(.narrow) .rm-send {
  height: 28px; padding: 0 16px; border-radius: 14px; background: #3554d1;
  color: #fff; font-size: 12.5px; border: 0; cursor: pointer;
}
body:not(.narrow) .rm-send:hover { background: #2b45b0; }

body:not(.narrow) .rm-footer { background: #fff; border-top: 1px solid #eceff5; padding: 6px 12px; }
body:not(.narrow) .rm-foot-mic { width: 28px; height: 28px; border-radius: 6px; color: #4f5b6d; }
body:not(.narrow) .rm-foot-status { font-size: 11.5px; color: #9aa5b6; }
body:not(.narrow) .rm-foot-kbd {
  margin-left: 4px; padding: 1px 7px; border-radius: 9px;
  background: #f1f4f9; color: #7d8798; font-size: 10.5px;
}
body:not(.narrow) .rm-foot-item {
  height: 26px; padding: 0 10px; border-radius: 13px;
  border: 1px solid #e6ebf3; background: #fff; font-size: 12px; color: #5d6a7e; cursor: pointer;
}
body:not(.narrow) .rm-foot-item:not(:disabled):hover { border-color: #cfd9ea; color: #3554d1; }

/* ===== 公屏完全对齐主流语音房（v20261202a）：3 图标工具行 / 树形成员 / 空舞台 / 输入行图标簇 ===== */
body:not(.narrow) #screen-room .rm-tools { gap: 10px; padding: 0 12px; }
body:not(.narrow) #screen-room .rm-tools .rm-tool { width: 26px; height: 26px; flex: 0 0 26px; color: #4a5568; }
body:not(.narrow) #screen-room .rm-tools .rm-tool svg { width: 17px; height: 17px; }
body:not(.narrow) #screen-room .rm-tools-sp { flex: 1 1 auto; }

/* 成员栏头：一行「自由模式 ▾」+「游客不能发言」 */
body:not(.narrow) #screen-room .rm-tree-head {
  flex-direction: row; align-items: center; justify-content: space-between;
  padding: 9px 12px; gap: 8px; border-bottom: 1px solid #eef1f6;
}
body:not(.narrow) #screen-room .rm-mode-sel {
  appearance: none; -webkit-appearance: none;
  border: 0; background: transparent; padding: 0 14px 0 0;
  font-size: 13px; font-weight: 600; color: #2f3948; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.6 6 7.6l3-3' fill='none' stroke='%2398a3b5' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0 center; background-size: 11px 11px;
}
body:not(.narrow) #screen-room .rm-tree-tip { font-size: 11px; color: #a9b3c4; }

/* 树形成员列表 */
body:not(.narrow) #screen-room .rm-tree-list { padding: 2px 0; }
body:not(.narrow) #screen-room .member-group { margin: 0; }
body:not(.narrow) #screen-room .group-title {
  display: flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 12px; font-size: 12.5px; color: #3d4759; font-weight: 500;
  background: #fff; border-bottom: 1px solid #f4f6fa;
}
body:not(.narrow) #screen-room .group-title::before {
  content: ""; width: 0; height: 0; border-left: 4px solid #b3bccb;
  border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent;
}
body:not(.narrow) #screen-room .group-title .count { color: #98a3b5; font-weight: 400; }
body:not(.narrow) #screen-room .member-row {
  height: 30px; padding: 0 12px 0 24px; gap: 5px;
  border-bottom: 1px solid #f6f8fb; background: #fff;
}
body:not(.narrow) #screen-room .member-row:hover { background: #f7f9fd; }
body:not(.narrow) #screen-room .member-row .name { font-size: 12.5px; color: #3d4759; }

/* 自由模式：舞台留白，不出座位卡（切到麦序/主席模式仍可上麦） */
body:not(.narrow) #screen-room[data-mode="free"] .rm-seats { display: none; }
body:not(.narrow) #screen-room[data-mode="free"] .rm-stage {
  background: #fff; border-bottom: 1px solid #f0f3f8; min-height: 0; padding: 8px 14px;
}
body:not(.narrow) #screen-room[data-mode="free"] .rm-stage-head { padding: 0; }
body:not(.narrow) #screen-room .rm-chatwrap { background: #fff; }
body:not(.narrow) #screen-room .rm-chat-head {
  font-size: 11.5px; color: #a9b3c4; padding: 6px 14px; background: #fff; border-bottom: 1px solid #f4f6fa;
}

/* 输入行图标簇 */
body:not(.narrow) #screen-room .rm-inputbar { gap: 4px; padding: 6px 12px; }
body:not(.narrow) #screen-room .rm-inputbar .rm-tool-line { width: 26px; height: 26px; flex: 0 0 26px; }
body:not(.narrow) #screen-room .rm-in-ico { width: 24px; height: 24px; flex: 0 0 24px; color: #7b8798; }
body:not(.narrow) #screen-room .rm-form { flex: 1 1 auto; }
body:not(.narrow) #screen-room #chat-input { width: 100%; }
body:not(.narrow) #screen-room .rm-input-resize { display: none; }

/* 底部功能条：头像 + 音乐 + 按F2 */
body:not(.narrow) #screen-room .rm-foot-left { gap: 7px; }
body:not(.narrow) #screen-room .rm-foot-avatar {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%;
  background: linear-gradient(135deg, #6f8cf0, #3554d1); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 600; cursor: pointer;
}
body:not(.narrow) #screen-room .rm-foot-kbd { order: 5; }
body:not(.narrow) #screen-room .rm-foot-status { order: 7; }

/* 输入行：行业的浮动胶囊，图标收紧，发送按钮固定宽度 */
body:not(.narrow) #screen-room .rm-inputbar {
  left: 241px; right: 276px; bottom: 46px; width: auto; max-width: none;
  justify-content: flex-start;
  margin: 0; padding: 5px 8px 5px 10px; border-radius: 16px;
  border: 1px solid #e8ecf3; background: #fff; box-shadow: 0 1px 3px rgba(24,40,72,.05);
}
body:not(.narrow) #screen-room .rm-in-ico { width: 22px; height: 22px; flex: 0 0 22px; }
body:not(.narrow) #screen-room .rm-in-ico svg { width: 15px; height: 15px; }
body:not(.narrow) #screen-room .rm-inputbar .rm-tool-line { width: 24px; height: 24px; flex: 0 0 24px; }
body:not(.narrow) #screen-room #chat-input { border: 0; background: transparent; padding: 5px 8px; height: 26px; }
body:not(.narrow) #screen-room .rm-send { flex: 0 0 auto; margin-left: 2px; height: 26px; padding: 0 14px; }
body:not(.narrow) #screen-room .rm-chatwrap { padding-bottom: 4px; }

/* 窄版：新增的头像/音乐/第二个麦克风不显示，避免挤压 */
body.narrow .rm-foot-avatar,
body.narrow .rm-foot-music,
body.narrow .rm-foot-mic2 { display: none !important; }
body:not(.narrow) #screen-room #chat-input { resize: none; }
body:not(.narrow) #screen-room .rm-inputbar #chat-input { overflow: hidden; scrollbar-width: none; }
body:not(.narrow) #screen-room .rm-inputbar #chat-input::-webkit-scrollbar { width: 0; height: 0; }

/* 窄版输入行：新增的装饰图标不占位，保持单行 */
body.narrow #screen-room .rm-in-ico { display: none !important; }
body.narrow #screen-room .rm-inputbar { flex-wrap: nowrap; }
body.narrow #screen-room .rm-inputbar #chat-input { overflow: hidden; }
body.narrow #screen-room .rm-inputbar .rm-form { flex: 1 1 auto; min-width: 0; }
body.narrow #screen-room .rm-inputbar #chat-input { width: 100%; height: 30px; padding: 0 4px; }
body.narrow #screen-room .rm-inputbar .rm-send { flex: 0 0 auto; }
body.narrow #screen-room .rm-inputbar { gap: 2px; padding: 4px 6px 4px 8px; }
body.narrow #screen-room .rm-inputbar .rm-tool-line { width: 22px; height: 22px; flex: 0 0 22px; }
body.narrow #screen-room .rm-inputbar .rm-send { padding: 0 10px; height: 26px; font-size: 12px; }
body.narrow #screen-room .rm-inputbar .rm-mention { display: none !important; }

/* 宽版：右侧房间信息默认收起（对齐主流语音房空舞台），点顶栏 ⓘ 展开 */
body:not(.narrow) #screen-room .rm-info { display: none; }
body:not(.narrow) #screen-room .rm-info.open { display: flex; }
body:not(.narrow) #screen-room #btn-room-info.on { color: #7fb0ff; }
body:not(.narrow) #screen-room[data-mode="free"] .rm-stage-head { display: none; }
body:not(.narrow) #screen-room[data-mode="free"] .rm-stage { padding: 0; border-bottom: 0; }
/* 信息栏收起时，输入胶囊铺满主区（:has 在 Chromium 121+ 可用） */
body:not(.narrow) #screen-room:has(.rm-info:not(.open)) .rm-inputbar { right: 14px; }

/* 位置微调：按 语音房 实测（顶栏 50 / 工具行 44 / 左栏 250 / 频道行 30） */
body:not(.narrow) #screen-room .rm-head { height: 50px; }
body:not(.narrow) #screen-room .rm-tools { height: 44px; align-items: center; }
body:not(.narrow) #screen-room .rm-tree { flex: 0 0 250px; }
body:not(.narrow) #screen-room .rm-tree-chan { height: 30px; }
body:not(.narrow) #screen-room .rm-inputbar { left: 259px; }
/* 输入胶囊再压扁一点（语音房 32-34px） */
body:not(.narrow) #screen-room .rm-inputbar { padding: 3px 8px 3px 10px; height: 34px; }
body:not(.narrow) #screen-room .rm-inputbar #chat-input { height: 26px; line-height: 26px; }
body:not(.narrow) #screen-room .rm-inputbar .rm-send { height: 24px; line-height: 24px; }
/* 语音房 自由模式没有「所有人可以发言」提示条 */
body:not(.narrow) #screen-room[data-mode="free"] .rm-chat-head { display: none; }
#screen-room .rm-tree-chan { border-bottom: 1px solid #eef1f6; }
body:not(.narrow) #screen-room .rm-inputbar { box-sizing: border-box; height: 34px; }
body:not(.narrow) #screen-room .rm-inputbar { min-height: 0; }

/* 本地音乐播放条（伴奏） */
.ms-bar{position:fixed;left:50%;transform:translateX(-50%);bottom:64px;z-index:9000;
  display:flex;align-items:center;gap:10px;min-width:420px;max-width:min(680px,calc(100% - 32px));
  padding:8px 12px;border-radius:14px;background:rgba(255,255,255,.96);
  border:1px solid #e6ecf5;box-shadow:0 10px 30px rgba(20,40,80,.16);backdrop-filter:blur(10px)}
.ms-bar[hidden]{display:none!important}
.ms-ico{width:26px;height:26px;border-radius:9px;flex:0 0 26px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#5b8def,#8b6df0);color:#fff;font-size:14px}
.ms-main{flex:1 1 auto;min-width:0}
.ms-name{font-size:12.5px;color:#1f2937;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms-track{height:4px;border-radius:3px;background:#e8eef8;margin-top:5px;cursor:pointer;position:relative}
.ms-track i{display:block;height:100%;width:0;border-radius:3px;background:linear-gradient(90deg,#5b8def,#8b6df0)}
.ms-time{font-size:11px;color:#8a94a6;font-variant-numeric:tabular-nums;flex:0 0 auto}
.ms-btns{display:flex;align-items:center;gap:4px;flex:0 0 auto}
.ms-btn{width:26px;height:26px;border:0;background:transparent;border-radius:8px;cursor:pointer;
  color:#4b5563;font-size:12px;line-height:1}
.ms-btn:hover{background:#eef3fb;color:#3554d1}
.ms-vol{width:64px;height:4px;accent-color:#5b8def;cursor:pointer}
.ms-toast{position:fixed;left:50%;transform:translateX(-50%);bottom:120px;z-index:9100;
  padding:8px 14px;border-radius:10px;background:rgba(31,41,55,.92);color:#fff;font-size:12.5px}

/* 在线搜歌面板 */
.ms-btn.ms-online{color:#3554d1}
.ms-panel{position:fixed;left:50%;transform:translateX(-50%);bottom:104px;z-index:9001;
  width:min(560px,calc(100% - 32px));max-height:min(440px,60vh);display:flex;flex-direction:column;
  border-radius:16px;background:#fff;border:1px solid #e6ecf5;box-shadow:0 18px 48px rgba(20,40,80,.22);overflow:hidden}
.ms-panel[hidden]{display:none!important}
.ms-p-head{display:flex;gap:8px;padding:12px;border-bottom:1px solid #eef1f7}
.ms-q{flex:1 1 auto;min-width:0;height:34px;padding:0 12px;border-radius:10px;border:1px solid #dfe6f1;
  font-size:13px;outline:none}
.ms-q:focus{border-color:#5b8def;box-shadow:0 0 0 3px rgba(91,141,239,.14)}
.ms-go{height:34px;padding:0 16px;border:0;border-radius:10px;background:#3554d1;color:#fff;
  font-size:13px;cursor:pointer}
.ms-go:hover{background:#2a44b8}
.ms-x{width:34px;height:34px;border:0;border-radius:10px;background:transparent;color:#8a94a6;cursor:pointer}
.ms-x:hover{background:#f2f5fa}
.ms-p-note{padding:8px 14px;font-size:11.5px;color:#8a94a6;line-height:1.5;background:#fafcff;
  border-bottom:1px solid #eef1f7}
.ms-list{flex:1 1 auto;overflow-y:auto}
.ms-row{display:flex;align-items:center;gap:10px;padding:9px 14px;border-bottom:1px solid #f4f7fb}
.ms-row:hover{background:#f7fafe}
.ms-i{width:20px;flex:0 0 20px;font-size:11px;color:#b7c3d4;text-align:right}
.ms-t{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.ms-t b{font-size:13px;color:#1f2937;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms-t i{font-size:11.5px;color:#8a94a6;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms-d{font-size:11px;color:#a9b4c5;font-variant-numeric:tabular-nums;flex:0 0 auto}
.ms-p{height:28px;padding:0 12px;border:1px solid #dfe6f1;border-radius:8px;background:#fff;
  font-size:12px;color:#3554d1;cursor:pointer;flex:0 0 auto}
.ms-p:hover{background:#eef3ff;border-color:#b9ccf5}
.ms-empty{padding:28px 14px;text-align:center;font-size:12.5px;color:#a9b4c5}

/* ---------- 公屏表情面板（动态 + 经典） ---------- */
.rx-ep{width:300px}
.rx-ep-tabs{display:flex;gap:4px;padding:8px 8px 0}
.rx-ep-tab{flex:0 0 auto;height:26px;padding:0 12px;border:1px solid #e6ecf5;border-radius:8px;
  background:#fff;color:#5a6a82;font-size:12.5px;cursor:pointer;transition:.15s}
.rx-ep-tab:hover{background:#f4f8ff;border-color:#c9d8f5}
.rx-ep-tab.on{background:#3554d1;border-color:#3554d1;color:#fff;font-weight:600}
.rx-ep-body{padding:8px;max-height:232px;overflow-y:auto}

.rx-ep-anim{width:52px;height:52px;border:0;background:transparent;border-radius:12px;
  cursor:pointer;padding:6px;display:inline-flex;transition:transform .12s}
.rx-ep-anim:hover{background:#eef3ff;transform:scale(1.08)}
.rx-ep-anim svg{width:100%;height:100%;overflow:visible}

/* 共用面部 */
.rx-ep-anim .e-face{fill:#ffd84d;stroke:#e8a900;stroke-width:2}
.rx-ep-anim .e-eye{fill:#3b2f14;stroke:none}
.rx-ep-anim .e-eye-l,.rx-ep-anim .e-eye-r{animation:e-blink 4.2s infinite}
.rx-ep-anim .e-eye-r{animation-delay:.08s}
.rx-ep-anim .e-mouth{fill:none;stroke:#3b2f14;stroke-width:2.4;stroke-linecap:round}
.rx-ep-anim .e-open{fill:#7a2b1c;stroke:#3b2f14;stroke-width:2}
.rx-ep-anim .e-frown{fill:none;stroke:#3b2f14;stroke-width:2.4;stroke-linecap:round}
.rx-ep-anim .e-tear{fill:#5bb8ff;opacity:0;animation:e-tear 2.6s infinite}

/* 第 2 个（大笑）：整体跳动 */
.rx-ep-anim:nth-child(2) svg{animation:e-hop 1s infinite}
.rx-ep-anim:nth-child(2) .e-open{animation:e-laugh .5s infinite alternate}

/* 爱心：beat + 渐变 */
.rx-ep-anim .e-heart{fill:#ff5a7a;stroke:#d62f52;stroke-width:2;transform-origin:24px 24px;animation:e-beat 1.1s infinite}
.rx-ep-anim .e-shine{fill:none;stroke:rgba(255,255,255,.85);stroke-width:2.6;stroke-linecap:round}
.rx-ep-anim:nth-child(3) svg{animation:e-beat-outer 1.1s infinite}

/* 火焰：跳动 + 内焰闪烁 */
.rx-ep-anim .e-flame{fill:url(#none);fill:#ff8a3d;stroke:#e0551a;stroke-width:1.6;transform-origin:24px 44px;animation:e-flicker .42s infinite alternate}
.rx-ep-anim .e-flame-in{fill:#ffd23d;opacity:.95;animation:e-flicker .3s infinite alternate-reverse}

/* 点赞：上下晃 */
.rx-ep-anim:nth-child(5) svg{animation:e-bob 1.4s infinite}
.rx-ep-anim .e-thumb{fill:#ffb01f;stroke:#c88000;stroke-width:1.6}
.rx-ep-anim .e-hand{fill:#ffc94d;stroke:#c88000;stroke-width:1.8}

@keyframes e-blink{0%,92%,100%{transform:scaleY(1)}95%{transform:scaleY(.1)}}
@keyframes e-tear{0%,60%{opacity:0;transform:translateY(0)}70%{opacity:1}100%{opacity:0;transform:translateY(7px)}}
@keyframes e-hop{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes e-laugh{from{transform:scaleY(1)}to{transform:scaleY(1.18)}}
@keyframes e-beat{0%,100%{transform:scale(1)}30%{transform:scale(1.16)}}
@keyframes e-beat-outer{0%,100%{transform:scale(1)}30%{transform:scale(1.05)}}
@keyframes e-flicker{from{transform:scaleY(1) scaleX(1)}to{transform:scaleY(1.14) scaleX(.94)}}
@keyframes e-bob{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-2px) rotate(-5deg)}}

/* 经典 emoji 网格在面板里铺满 */
.rx-ep-body .rx-emoji{width:100%;grid-template-columns:repeat(9,1fr);padding:0}

/* 公屏内的动态表情：与消息文字同高，不撑行 */
.chat-anim{display:inline-block;width:26px;height:26px;vertical-align:-7px;margin:0 1px}
.chat-anim svg{width:100%;height:100%;overflow:visible}
.chat-anim .e-face{fill:#ffd84d;stroke:#e8a900;stroke-width:2}
.chat-anim .e-eye{fill:#3b2f14}
.chat-anim .e-eye-l,.chat-anim .e-eye-r{animation:e-blink 4.2s infinite;transform-origin:center}
.chat-anim .e-mouth{fill:none;stroke:#3b2f14;stroke-width:2.4;stroke-linecap:round}
.chat-anim .e-open{fill:#7a2b1c;stroke:#3b2f14;stroke-width:2}
.chat-anim .e-frown{fill:none;stroke:#3b2f14;stroke-width:2.4;stroke-linecap:round}
.chat-anim .e-tear{fill:#5bb8ff;opacity:0;animation:e-tear 2.6s infinite}
.chat-anim .e-heart{fill:#ff5a7a;stroke:#d62f52;stroke-width:2;transform-origin:24px 24px;animation:e-beat 1.1s infinite}
.chat-anim .e-shine{fill:none;stroke:rgba(255,255,255,.85);stroke-width:2.6;stroke-linecap:round}
.chat-anim .e-flame{fill:#ff8a3d;stroke:#e0551a;stroke-width:1.6;transform-origin:24px 44px;animation:e-flicker .42s infinite alternate}
.chat-anim .e-flame-in{fill:#ffd23d;animation:e-flicker .3s infinite alternate-reverse}
.chat-anim .e-thumb{fill:#ffb01f;stroke:#c88000;stroke-width:1.6}
.chat-anim .e-hand{fill:#ffc94d;stroke:#c88000;stroke-width:1.8}

/* ---------- 进场视频特效层（透明 WebM） ---------- */
.ev-layer{position:fixed;inset:0;z-index:9500;pointer-events:none;
  display:flex;align-items:center;justify-content:center;
  opacity:0;transition:opacity .26s}
.ev-layer.on{opacity:1}
.ev-video{width:min(880px,86vw);height:auto;max-height:74vh;object-fit:contain;
  filter:drop-shadow(0 18px 44px rgba(0,0,0,.45))}
.ev-name{position:absolute;left:50%;bottom:16%;transform:translateX(-50%);
  font-size:15px;font-weight:700;color:#fff;letter-spacing:.04em;
  text-shadow:0 2px 12px rgba(0,0,0,.6);white-space:nowrap}

/* ===== 进场视频 · 全屏模式（实景 CG 素材） ===== */
/* 透明叠加：屏幕混合让暗部透出公屏，亮部叠在上面 */
.ev-layer.ev-full {
  background: transparent;
  opacity: 1;                   /* 曾经 .70 + screen 混合，软件渲染下会把整页糊成灰白 */
  isolation: isolate;
}
/* 混合模式只挂在 video 上 —— 只合成一块矩形，不是整屏 */
.ev-layer.ev-full .ev-video {
  width: min(1280px, 96vw); height: auto;
  max-width: none; max-height: 92vh;
  object-fit: contain; filter: none;
  mix-blend-mode: normal;       /* 不用 screen：透明 WebM 自己带 alpha，混合反而发白 */
  transform: translateZ(0);
}
.ev-layer.ev-full .ev-name {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%);
  font-size: 22px; letter-spacing: 2px;
  text-shadow: 0 2px 14px rgba(0,0,0,.85), 0 0 30px rgba(120,180,255,.6);
}
.ev-skip {
  position: absolute; right: 22px; bottom: 20px;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(0,0,0,.42); color: #fff; font-size: 13px;
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px); cursor: pointer; z-index: 2;
  animation: evSkipIn .5s .8s both;
}
.ev-skip:hover { background: rgba(0,0,0,.62); }
@keyframes evSkipIn { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }

/* ── 聊天气泡（按账号 cosmetics.bubble）── */
.chat-row[data-bubble="mist"]  .chat-body > .chat-text,
.chat-row[data-bubble="mist"]  .chat-body { }

/* 环形气泡：九宫格 border-image —— 两端珠子/弧线固定，只有中间段拉伸 */
.chat-row[data-bubble] .chat-text{
  display:inline-block; vertical-align:top;
  border:12px solid transparent;
  padding:2px 8px 4px;
  margin:2px -20px -6px;
  border-radius:0; background:none; box-shadow:none;
  box-decoration-break:clone;
  border-image-slice:34 54 44 54 fill;
  border-image-width:12px 20px 14px 20px;
  border-image-outset:0;
  border-image-repeat:stretch;
}
.chat-row[data-bubble="plain"] .chat-text{border-image-source:url(/assets/bubble/wide_plain.png?v=20261229a)}
.chat-row[data-bubble="mist"]  .chat-text{border-image-source:url(/assets/bubble/wide_mist.png?v=20261229a)}
.chat-row[data-bubble="mint"]  .chat-text{border-image-source:url(/assets/bubble/wide_mint.png?v=20261229a)}
.chat-row[data-bubble="sand"]  .chat-text{border-image-source:url(/assets/bubble/wide_sand.png?v=20261229a)}
.chat-row[data-bubble="lilac"] .chat-text{border-image-source:url(/assets/bubble/wide_lilac.png?v=20261229a)}
.chat-row[data-bubble="night"] .chat-text{border-image-source:url(/assets/bubble/wide_night.png?v=20261229a)}

/* 气泡皮肤预览图（换装面板） */
.cos-bubble-img { width: 46px; height: 46px; object-fit: contain; display: block; }
.chat-row .chat-text{padding:5px 10px;border-radius:10px;display:inline-block;max-width:min(680px,92%)}

/* ── 昵称前缀铭牌 ── */
.name-prefix{display:inline-block;font-size:10.5px;line-height:1;padding:2px 5px;margin-right:4px;
  border-radius:4px;font-weight:650;letter-spacing:.3px;vertical-align:1px;white-space:nowrap}
.np-frost  {background:linear-gradient(180deg,#e8f6ff,#cbe9ff);color:#1f6ea8;border:1px solid #b3daf5}
.np-sword  {background:linear-gradient(180deg,#fff4d6,#ffe2a8);color:#8a5a00;border:1px solid #f0cf8a}
.np-abyss  {background:linear-gradient(180deg,#efe8ff,#dccdff);color:#5a3bb0;border:1px solid #cdb8f5}
.np-soul   {background:linear-gradient(180deg,#ffe6ec,#ffc9d6);color:#a8203f;border:1px solid #f5b3c4}

/* 官方认证频道徽标 */
.channel-card .official-tag {
  display: inline-block; margin-left: 6px; padding: 0 6px;
  height: 16px; line-height: 16px; border-radius: 8px;
  font-size: 10px; font-weight: 600; color: #7a4e00;
  background: linear-gradient(135deg, #ffe9b0, #f2c14e);
  vertical-align: 2px;
}

/* 频道自定义图标（官方认证频道 LOGO） */
.channel-cover .cover-logo {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%;
  box-shadow: 0 6px 18px rgba(10, 16, 32, .28);
}
.nl-chan .ic { overflow: visible; }
.nl-chan .ic .ic-img {
  width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: block;
}
.rm-ch-ico.has-logo {
  background: transparent !important; box-shadow: none !important;
  width: 22px; height: 22px; padding: 0;
}
.rm-ch-ico.has-logo img { width: 100%; height: 100%; border-radius: 5px; display: block; }

/* 侧栏「官方消息」与频道图标 */
.my-chan-icon.has-img { padding: 0; overflow: hidden; background: none; }
.my-chan-icon.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.my-chan .mc-official {
  display: inline-block; margin-left: 5px; padding: 0 5px; height: 15px; line-height: 15px;
  border-radius: 7px; font-size: 9.5px; font-weight: 600; font-style: normal;
  color: #7a4e00; background: linear-gradient(135deg, #ffe9b0, #f2c14e);
  vertical-align: 1px;
}
.my-chan.is-official { background: linear-gradient(180deg, #fffdf6, #fff); }

/* 我的频道「管理」小按钮 + 清理弹层 */
.side-group-head .side-mini-btn {
  margin-left: auto; margin-right: 6px; padding: 0 7px; height: 18px; line-height: 18px;
  font-size: 11px; color: #6b7688; background: #f1f4f9; border: 0; border-radius: 9px; cursor: pointer;
}
.side-group-head .side-mini-btn:hover { background: #e6ecf7; color: #3554d1; }
.side-dlg-mask {
  position: fixed; inset: 0; background: rgba(12,16,24,.42); z-index: 70;
  display: flex; align-items: center; justify-content: center;
}
.side-dlg {
  width: 300px; background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,.26);
}
.side-dlg-hd { padding: 12px 14px; font-size: 13.5px; font-weight: 700; color: #26303f; border-bottom: 1px solid #eef1f6; }
.side-dlg-bd { padding: 12px 14px; }
.side-dlg-row { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #4a5568; margin-bottom: 12px; cursor: pointer; }
.side-dlg-row input { width: 14px; height: 14px; }
.side-dlg-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.side-dlg-acts button {
  height: 26px; padding: 0 11px; font-size: 12px; cursor: pointer;
  border: 1px solid #dde3ee; border-radius: 13px; background: #f7f9fd; color: #55617a;
}
.side-dlg-acts button:hover { border-color: #b9caf5; color: #3554d1; background: #eef3ff; }
.side-dlg-ft { display: flex; justify-content: flex-end; padding: 10px 14px 14px; }
.side-dlg-ft button {
  height: 27px; padding: 0 16px; font-size: 12.5px; cursor: pointer; border: 0;
  border-radius: 14px; background: #3554d1; color: #fff;
}

/* ===== 房间窄版：窗口 < 700px 时收起成员树与信息栏，公屏占满 ===== */
@media (max-width: 700px) {
  #screen-room .rm-body { grid-template-columns: 1fr !important; }
  #screen-room .rm-tree { display: none !important; }
  #screen-room .rm-info { display: none !important; }
  #screen-room .rm-main { min-width: 0 !important; overflow: hidden !important; }
  #screen-room .rm-stage { overflow: hidden !important; }
  #screen-room .rm-seats { width: 100%; box-sizing: border-box; }
  #screen-room .rm-seats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px !important; padding: 8px !important; }
  #screen-room .rm-seat { min-height: 84px !important; }
  #screen-room .rm-seat .seat-no { font-size: 10px !important; }
  #screen-room .rm-seat .seat-slot { width: 40px !important; height: 40px !important; }
  #screen-room .rm-seat .seat-join { font-size: 10.5px !important; padding: 3px 8px !important; }
  #screen-room .rm-stage-head { flex-wrap: wrap; gap: 4px 8px; padding: 6px 10px !important; }
  #screen-room .rm-stage-head .rm-ch-name { max-width: 150px; }
  #screen-room .rm-input { left: 8px !important; right: 8px !important; bottom: 8px !important; }
  #screen-room .rm-chat { padding: 6px 10px 6px !important; }
  #screen-room .chat-row { gap: 6px !important; }
  #screen-room .rm-foot { flex-wrap: wrap !important; gap: 6px !important; padding: 6px 8px !important; }
  #screen-room .rm-foot .rm-foot-tools { flex-wrap: wrap; gap: 8px; }
  /* 窄版下成员树用浮层按钮唤出 */
  #screen-room .rm-tree-fab { display: inline-flex !important; }
}

/* 成员树唤出按钮（宽版隐藏） */
#screen-room .rm-tree-fab {
  display: none; position: absolute; left: 8px; top: 52px; z-index: 40;
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid #dbe4f2; background: #fff;
  align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(30,50,90,.10);
}
#screen-room .rm-tree-fab svg { width: 15px; height: 15px; stroke: #4a5d7c; }
#screen-room .rm-tree-fab:active { background: #eef3fd; }
body.rm-tree-open #screen-room .rm-tree {
  display: flex !important; position: absolute; left: 0; top: 0; bottom: 0; z-index: 50;
  width: 220px; background: #fff; box-shadow: 4px 0 18px rgba(24,42,74,.16);
}

/* ===== 房间左栏底部·个人展馆卡 ===== */
.rm-pcard { margin-top: auto; padding: 9px 10px 10px; border-top: 1px solid #eef3fa; background: #fff; flex: 0 0 auto; }
.rm-pcard .pc-top { display: flex; align-items: center; gap: 8px; }
.rm-pcard .pc-av { width: 32px; height: 32px; border-radius: 50%; flex: 0 0 32px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#6b8cf5,#8b6df0); color: #fff; font-size: 13px; font-weight: 600; }
.rm-pcard .pc-nm { font-size: 12.5px; font-weight: 600; color: #25334b; max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-pcard .pc-sub { font-size: 10.5px; color: #e0a33a; }
.rm-pcard .pc-nums { display: flex; gap: 6px; margin: 8px 0 7px; }
.rm-pcard .pc-n { flex: 1 1 0; text-align: center; background: #f5f8fd; border-radius: 6px; padding: 4px 2px; }
.rm-pcard .pc-n b { font-size: 12px; color: #3554d1; font-weight: 700; }
.rm-pcard .pc-n span { font-size: 9.5px; color: #9aa5b8; }
.rm-pcard .pc-n em { display: block; font-style: normal; font-size: 9.5px; color: #8a94a6; margin-top: 1px; }
.rm-pcard .pc-bar { position: relative; height: 14px; border-radius: 7px; background: #eef3fa; overflow: hidden; display: flex; align-items: center; }
.rm-pcard .pc-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: linear-gradient(90deg,#f3c14a,#e0930f); border-radius: 7px; transition: width .3s; }
.rm-pcard .pc-bar-lv { position: relative; z-index: 1; width: 100%; text-align: center; font-size: 9.5px; color: #6b7891; }

/* ===== 相册浮层 ===== */
#pc-album { position: fixed; inset: 0; background: rgba(15,23,42,.42); z-index: 9998; display: flex; align-items: center; justify-content: center; }
#pc-album .pc-album-panel { width: 460px; max-height: 78vh; background: #fff; border-radius: 14px; display: flex; flex-direction: column;
  box-shadow: 0 22px 60px rgba(15,23,42,.35); overflow: hidden; }
#pc-album .pc-album-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #eef3fa; }
#pc-album .pc-album-head b { font-size: 14px; color: #25334b; }
#pc-album .pc-album-head span { font-size: 11.5px; color: #8a94a6; }
#pc-album .pc-album-head button { margin-left: auto; width: 26px; height: 26px; border: 0; border-radius: 7px; background: #f2f5fa; color: #6b7891; cursor: pointer; font-size: 15px; }
#pc-album .pc-album-grid { flex: 1; overflow-y: auto; padding: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; min-height: 120px; }
#pc-album .pc-album-item { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #f2f5fa; }
#pc-album .pc-album-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
#pc-album .pc-album-item button { position: absolute; right: 3px; top: 3px; width: 19px; height: 19px; border: 0; border-radius: 50%;
  background: rgba(15,23,42,.6); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
#pc-album .pc-album-item:hover button { opacity: 1; }
#pc-album .pc-album-empty { grid-column: 1 / -1; text-align: center; color: #9aa5b8; font-size: 12.5px; padding: 34px 0; }
#pc-album .pc-album-foot { padding: 11px 16px; border-top: 1px solid #eef3fa; text-align: right; }
#pc-album .pc-album-up { display: inline-block; padding: 7px 15px; border-radius: 8px; background: linear-gradient(135deg,#5b7cfa,#7c5cff);
  color: #fff; font-size: 12.5px; cursor: pointer; }

/* 侧栏「应用」格子改成图标 + 文字（对齐主流语音房两列图标格） */
.side-apps { gap: 9px; padding: 10px 10px 12px; }
.side-app {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  height: 58px; padding: 0 4px; text-align: center; font-size: 11.5px; line-height: 1;
}
.side-apps { overflow-x: hidden; }
.side-app .sa-ic {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; line-height: 1;
  box-shadow: 0 2px 6px rgba(29, 41, 66, .14);
}
.side-app .sa-ic.vip    { background: linear-gradient(135deg, #ffd979, #e0a53a); }
.side-app .sa-ic.noble  { background: linear-gradient(135deg, #b79bf3, #7d5cd6); }
.side-app .sa-ic.vanity { background: linear-gradient(135deg, #7fb3ff, #3f74e0); }
.side-app .sa-ic.trade  { background: linear-gradient(135deg, #6fd5c4, #2f9d8b); }
.side-app .sa-ic.orders { background: linear-gradient(135deg, #9fb6d4, #5c7899); }
.side-app .sa-ic.fb     { background: linear-gradient(135deg, #ffb1a0, #e2684f); }
.side-app .sa-tx { white-space: nowrap; }
.side-app:hover { color: #3d6cf0; }
body.narrow .side-apps { gap: 8px; }

/* 「跟随爵位」卡：虚线框 + 不同于普通色卡 */
.cos-tile.cos-follow { border-style: dashed !important; border-color: #b9c8e6 !important; background: #f7faff !important; }
.cos-tile.cos-follow.on { border-color: #3554d1 !important; background: #eef3ff !important; }
.cos-tile.cos-follow .cos-meta b { color: #3554d1; }
.cos-auto-ico { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, #6f86ff, #4a63d8); color: #fff; font-size: 13px; font-style: normal; }

/* ===== VIP 方块徽章 + 流光扫过 ===== */
.vip-tile {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px; overflow: hidden; vertical-align: middle;
  color: #fff; font-weight: 800; line-height: 1; letter-spacing: 0;
  background: linear-gradient(155deg, #a48bff 0%, #7c53e8 42%, #5b32c9 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 1px 2px rgba(27,29,34,.35);
  text-shadow: 0 1px 1px rgba(40,20,90,.55);
}
.vip-tile::after {
  content: ''; position: absolute; top: -60%; left: -130%; width: 55%; height: 220%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.92) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  animation: vipShine 3.2s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes vipShine {
  0% { left: -130%; }
  45% { left: 130%; }
  100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) { .vip-tile::after { animation: none; } }

/* ===== 个人卡折叠（防被底栏挤压） ===== */
.rm-pcard .pc-top { position: relative; }
.rm-pcard .pc-fold {
  margin-left: auto; flex: 0 0 auto;
  width: 20px; height: 20px; border-radius: 6px;
  border: 1px solid #e3eaf5; background: #fff;
  color: #7b8aa3; font-size: 12px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .18s, color .15s, border-color .15s;
}
.rm-pcard .pc-fold:hover { color: #3d6cf0; border-color: #b9cdf5; }
body.pc-folded .rm-pcard .pc-fold { transform: rotate(180deg); }
body.pc-folded .rm-pcard .pc-nums,
body.pc-folded .rm-pcard .pc-bar { display: none !important; }
body.pc-folded .rm-pcard { padding-bottom: 8px; }

/* 成员树列表独立滚动，个人卡永远贴底不被裁 */
body:not(.narrow) #screen-room .rm-tree { overflow: hidden; }
body:not(.narrow) #screen-room .rm-tree-list,
body:not(.narrow) #screen-room .rm-tree-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
}

/* ===== 录音按钮状态 ===== */
.rm-foot-item.rec-on {
  background: #fff1f1 !important; border-color: #f3b4b4 !important; color: #d63b3b !important;
  display: inline-flex !important; align-items: center; gap: 5px;
}
.rm-foot-item.rec-on .rec-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #e04848;
  animation: recPulse 1.1s ease-in-out infinite;
}
@keyframes recPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.82); } }
.rm-foot-item.rec-on .rec-time { font-variant-numeric: tabular-nums; letter-spacing: .3px; }

.rec-toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 8px);
  background: rgba(22, 32, 52, .94); color: #fff; font-size: 12.5px;
  padding: 9px 16px; border-radius: 9px; z-index: 9800;
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
  box-shadow: 0 8px 24px rgba(10, 20, 40, .28);
}
.rec-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ===== 进场特效：跳过 / 不再显示 ===== */
.ev-skipbar {
  position: absolute; right: 22px; bottom: 20px;
  display: flex; align-items: center; gap: 9px;
}
.ev-btn {
  height: 32px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font-size: 13px; font-family: inherit; letter-spacing: .2px;
  border: 1px solid rgba(255, 255, 255, .3); color: #fff;
  background: rgba(0, 0, 0, .42); backdrop-filter: blur(4px);
  transition: background .15s, border-color .15s, transform .1s;
}
.ev-btn:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .55); }
.ev-btn:active { transform: scale(.96); }
.ev-btn-never { color: rgba(255, 255, 255, .72); font-size: 12.5px; }
.ev-btn-never:hover { color: #fff; }

/* 外观面板里的「进入特效」开关 */
.cos-entry-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 9px 12px; margin-bottom: 10px;
  background: #f7faff; border: 1px solid #e6eefc; border-radius: 10px;
}
.cos-entry-row .lbl { font-size: 12.5px; color: #4a5d7c; }
.cos-entry-row .hint { font-size: 11px; color: #93a0b8; margin-top: 2px; }
.cos-switch {
  width: 40px; height: 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: #cfd9e8; position: relative; transition: background .18s; flex: 0 0 auto;
}
.cos-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform .18s;
  box-shadow: 0 1px 3px rgba(20, 40, 80, .22);
}
.cos-switch.on { background: #3554d1; }
.cos-switch.on::after { transform: translateX(18px); }

/* 进场特效层不拦鼠标，跳过条单独可点 */
.ev-layer { pointer-events: none !important; }
.ev-layer .ev-skipbar { pointer-events: auto !important; }

/* 麦序模式工具条：控麦 | 禁麦 | 抢麦 */
.rm-micbar { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; }
.rm-micbar .sp { color: #d7dee9; font-style: normal; font-size: 11px; }
.rm-micbar .rm-mb {
  border: 0; background: none; padding: 0 4px; height: 18px; line-height: 18px;
  font-size: 11.5px; color: #3d7ff0; cursor: pointer; border-radius: 3px;
}
.rm-micbar .rm-mb:hover { background: #eaf1ff; }
.rm-micbar .rm-mb.on { background: #3554d1; color: #fff; }

/* 进场视频 · 右下角小窗（自己进房时） */
.ev-layer.ev-pip {
  inset: auto 18px 108px auto !important;
  width: 260px !important; height: auto !important;
  display: block; opacity: .96; pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.ev-layer.ev-pip .ev-video {
  width: 100% !important; height: auto !important; max-height: 200px !important; object-fit: contain;
  border-radius: 10px; filter: drop-shadow(0 10px 26px rgba(0,0,0,.5));
}
.ev-layer.ev-pip .ev-name {
  position: fixed !important; left: 50% !important; top: 56px !important;
  bottom: auto !important; right: auto !important;
  height: auto !important; max-height: 44px !important; line-height: 1.2 !important;
  transform: translateX(-50%) !important;
  margin: 0; padding: 9px 26px; border-radius: 999px;
  width: min(520px, 52vw); box-sizing: border-box;
  font-size: 15px; font-weight: 800; text-align: center; letter-spacing: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none; z-index: 9600;
}
.ev-layer.ev-pip .ev-pip-x {
  position: absolute; top: -8px; right: -8px; width: 20px; height: 20px;
  border-radius: 50%; border: 0; cursor: pointer; pointer-events: auto;
  background: rgba(0,0,0,.55); color: #fff; font-size: 13px; line-height: 18px;
}
/* 麦序模式：栏头一行放得下「模式 + 控麦|禁麦|抢麦」，提示文字让位 */
.rm-tree.mic-mode .rm-tree-tip { display: none; }
.rm-micbar { flex-wrap: nowrap; white-space: nowrap; }
.rm-micbar .rm-mb { white-space: nowrap; }

/* ===== 播放伴奏：二选一菜单 ===== */
.ms-menu {
  position: fixed; z-index: 9700; display: flex; flex-direction: column; gap: 2px;
  padding: 6px; border-radius: 12px; background: #fff;
  box-shadow: 0 12px 34px rgba(18, 32, 58, .20), 0 0 0 1px rgba(24, 40, 72, .06);
  min-width: 170px;
}
.ms-menu-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 11px; border: 0; border-radius: 9px; background: transparent;
  font-size: 13px; color: #26324a; cursor: pointer; text-align: left;
}
.ms-menu-item:hover { background: #f2f6ff; color: #3551d1; }
.ms-ico { width: 26px; height: 26px; border-radius: 8px; flex: none; position: relative; }
.ms-ico.folder { background: linear-gradient(135deg, #b9c6ff, #8f9bff); }
.ms-ico.folder::after {
  content: ''; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px;
  background: #fff; border-radius: 2px;
}
.ms-ico.disc { background: linear-gradient(135deg, #e0c6ff, #b48bff); }
.ms-ico.disc::after {
  content: '♪'; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 13px;
}

/* ===== 平台曲库面板 ===== */
.mlib-mask {
  position: fixed; inset: 0; z-index: 9750; display: flex; align-items: center;
  justify-content: center; background: rgba(12, 20, 34, .42);
  opacity: 0; pointer-events: none; transition: opacity .18s;
}
.mlib-mask.on { opacity: 1; pointer-events: auto; }
.mlib {
  width: min(520px, 92vw); max-height: min(560px, 86vh); display: flex;
  flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(10, 22, 44, .32); transform: translateY(10px);
  transition: transform .18s;
}
.mlib-mask.on .mlib { transform: translateY(0); }
.mlib-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px; border-bottom: 1px solid #eef2f9;
}
.mlib-head b { font-size: 14.5px; color: #1f2b42; }
.mlib-x {
  width: 26px; height: 26px; border: 0; border-radius: 8px; background: #f3f6fc;
  color: #6b7a92; font-size: 12px; cursor: pointer;
}
.mlib-x:hover { background: #e8eefb; color: #3551d1; }
.mlib-hint {
  padding: 8px 16px; font-size: 11.5px; line-height: 1.6; color: #8a97ac;
  background: #f8fafe; border-bottom: 1px solid #eef2f9;
}
.mlib-tabs { display: flex; gap: 4px; padding: 10px 14px 6px; flex-wrap: wrap; }
.mlib-tab {
  padding: 5px 13px; border: 0; border-radius: 999px; background: #f2f5fb;
  color: #5c6b85; font-size: 12.5px; cursor: pointer;
}
.mlib-tab:hover { background: #e9effb; }
.mlib-tab.on { background: #3551d1; color: #fff; }
.mlib-cols {
  display: grid; grid-template-columns: 1fr 96px 62px; gap: 8px;
  padding: 6px 16px; font-size: 11px; color: #9aa7bc; border-bottom: 1px solid #f2f5fb;
}
.mlib-rows { flex: 1; overflow-y: auto; padding: 4px 8px 8px; min-height: 120px; }
.mlib-row {
  display: grid; grid-template-columns: 1fr 96px 62px; gap: 8px; align-items: center;
  padding: 8px; border-radius: 9px; cursor: pointer; font-size: 12.5px;
}
.mlib-row:hover { background: #f5f8ff; }
.mlib-row.on { background: #eef3ff; }
.mlib-row.on .mlib-n { color: #3551d1; font-weight: 600; }
.mlib-n { color: #26324a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mlib-a { color: #7d8ba3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mlib-tag {
  font-size: 10.5px; color: #9aa7bc; background: #f3f6fc; border-radius: 5px;
  padding: 2px 6px; text-align: center;
}
.mlib-tag.ok { color: #1f8f6a; background: #e9f8f2; }
.mlib-bar {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center;
  padding: 10px 14px 12px; border-top: 1px solid #eef2f9; background: #fbfcfe;
}
.mlib-cover {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, #d9c2ff, #9a6bff); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.mlib-cover.spin { animation: mlibSpin 4s linear infinite; }
@keyframes mlibSpin { to { transform: rotate(360deg); } }
.mlib-meta { min-width: 0; }
.mlib-name { font-size: 12.5px; color: #26324a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mlib-pos { font-size: 10.5px; color: #9aa7bc; margin-top: 2px; font-variant-numeric: tabular-nums; }
.mlib-seek { width: 100%; grid-column: 2 / 3; accent-color: #3551d1; height: 3px; }
.mlib-ctl { display: flex; gap: 4px; grid-column: 3 / 4; grid-row: 1 / 3; align-items: center; }
.mlib-btn {
  width: 28px; height: 28px; border: 0; border-radius: 8px; background: #fff;
  color: #45536d; font-size: 12px; cursor: pointer; box-shadow: 0 0 0 1px #e6ecf7 inset;
}
.mlib-btn:hover { background: #f0f5ff; color: #3551d1; }
.mlib-btn.main {
  width: 32px; height: 32px; background: #3551d1; color: #fff; font-size: 13px;
  box-shadow: none;
}
.mlib-btn.main:hover { background: #2b46bc; }
.mlib-btn.on { background: #eef3ff; color: #3551d1; }
.mlib-toast {
  position: fixed; left: 50%; bottom: 110px; transform: translate(-50%, 6px);
  background: rgba(22, 32, 52, .94); color: #fff; font-size: 12.5px;
  padding: 9px 16px; border-radius: 9px; z-index: 9900; opacity: 0;
  transition: opacity .2s, transform .2s; pointer-events: none;
}
.mlib-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 麦序工具条：强制单行、与模式下拉同高，避免换行重叠 */
body:not(.narrow) #screen-room .rm-tree-head {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 6px;
  height: 30px; padding: 0 8px; box-sizing: border-box; overflow: hidden;
}
body:not(.narrow) #screen-room .rm-tree-head .rm-micbar { flex: 0 0 auto; }
body:not(.narrow) #screen-room .rm-tree-tip {
  flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
body:not(.narrow) #screen-room .rm-micbar .rm-mb { height: 20px; line-height: 20px; }

/* ===== 曲库：导入按钮 + 空态 ===== */
.mlib-head { display: flex; align-items: center; gap: 8px; }
.mlib-head > b { flex: 1 1 auto; }
.mlib-head .mlib-import {
  height: 26px; padding: 0 11px; border-radius: 7px; border: 1px solid #cfdcf6;
  background: #f2f6ff; color: #3551d1; font-size: 12px; cursor: pointer;
  font-family: inherit; white-space: nowrap;
}
.mlib-head .mlib-import:hover { background: #e6eeff; border-color: #b6c9f0; }
.mlib-empty {
  padding: 34px 12px; text-align: center; color: #93a0b8; font-size: 12.5px; line-height: 1.9;
}

/* 爵位 / 官方 小方块（公屏 + 成员树通用，带流光扫光） */
.b-tile {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px; font-weight: 700; line-height: 1; color: #fff;
  vertical-align: middle; overflow: hidden; flex: 0 0 auto;
  box-shadow: 0 1px 2px rgba(20, 30, 50, .18);
}
.b-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.75) 46%, transparent 62%);
  transform: translateX(-120%); animation: bTileShine 3.6s ease-in-out infinite;
}
@keyframes bTileShine { 0%,70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.b-tile.noble {
  color: #fff6d8;
  padding: 0 3px;
  border: 1px solid #b98a22;
  text-shadow: 0 0 5px rgba(255, 214, 92, .95), 0 1px 0 rgba(0, 0, 0, .7);
  background: linear-gradient(115deg,
    #c8891a 0%, #ffd75e 16%, #a06bff 34%, #d05bd8 48%, #ffd75e 66%, #c8891a 84%, #c8891a 100%);
  background-size: 320% 100%;
  animation: nobleFlowBg 4.6s linear infinite, nobleGlow 2.4s ease-in-out infinite;
  overflow: hidden;
}
/* 一道流动高光扫过（不挡字，纯叠加） */
.b-tile.noble::after {
  content: ""; position: absolute; top: -40%; bottom: -40%; width: 36%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.85), transparent);
  transform: skewX(-18deg);
  animation: nobleStreak 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes nobleStreak {
  0% { left: -60%; opacity: 0; }
  18% { opacity: .9; }
  55% { opacity: .9; }
  75%, 100% { left: 120%; opacity: 0; }
}
@keyframes nobleFlowBg {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
@keyframes nobleGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(255, 186, 64, .45), inset 0 0 5px rgba(255, 210, 110, .30); }
  50% { box-shadow: 0 0 13px rgba(255, 150, 220, .60), inset 0 0 8px rgba(180, 140, 255, .50); }
}
@media (prefers-reduced-motion: reduce) {
  .b-tile.noble { animation: none; }
  .b-tile.noble::after { animation: none; opacity: .5; }
}
.b-tile.official { padding: 0 5px; border-radius: 3px; background: linear-gradient(160deg, #3a2a10, #1d1508 70%); color: #ffcf6a; border: 1px solid #8a6a25; letter-spacing: .5px; }
@media (prefers-reduced-motion: reduce) { .b-tile::after { animation: none; } }

/* ===== 资料窗：我的靓号行 ===== */
.pf-vanity-no { font-weight: 600; color: #3551d1; letter-spacing: .5px; }
.pf-vanity-sell {
  margin-left: 10px; height: 24px; padding: 0 10px; border-radius: 6px;
  border: 1px solid #cfdcf6; background: #f2f6ff; color: #3551d1;
  font-size: 12px; cursor: pointer; font-family: inherit;
}
.pf-vanity-sell:hover { background: #e6eeff; border-color: #b6c9f0; }

/* ===== 首屏防闪：有 token 时不闪登录屏 ===== */
html[data-boot="auth"] #screen-auth { display: none !important; }
html[data-boot="auth"] #screen-lobby { display: block !important; }
html[data-boot="auth"] body { background: #eef2f9; }
/* app.js 一旦决定显示哪个屏，就交回正常规则 */
/* 之前写成 display:revert !important，会把 .hidden 一起顶掉 → 登录页盖住大厅（白屏） */
html[data-boot="ready"] #screen-auth:not(.hidden) { display: block !important; }
html[data-boot="ready"] .screen.hidden { display: none !important; }

/* 公屏右侧快捷工具条（分享 / 浏览器打开 / 回大厅） */
.rm-quick {
  position: fixed; right: 12px; top: 46%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 60;
}
.rm-quick .rq-item {
  width: 30px; height: 30px; border-radius: 50%; padding: 0; display: inline-flex; flex: 0 0 auto;
  align-items: center; justify-content: center; color: #5d6a7e; background: #fff;
  border: 1px solid #e6eaf2; box-shadow: 0 2px 8px rgba(30, 45, 70, .08); cursor: pointer;
}
.rm-quick .rq-item:hover { color: #3554d1; border-color: #c9d8ff; }
.rm-quick .rq-item svg { width: 16px; height: 16px; }
body.narrow .rm-quick { display: none; }
/* 快捷条只在公屏里出现，大厅/登录页隐藏 */
body:has(#screen-room.hidden) .rm-quick { display: none; }

/* 官方图标：整行最前，略大 + 金色光晕，和 V/爵位区分开 */
.chat-meta .chat-official { display: inline-flex; align-items: center; margin-right: 2px; }
.chat-meta .chat-official img,
.chat-meta .chat-official svg {
  filter: drop-shadow(0 0 4px rgba(255, 196, 64, .55));
}

/* 交易：等待财务确认 */
.t-notice {
  margin: 8px 0 2px; padding: 9px 12px; border-radius: 9px;
  background: #fff8e8; border: 1px solid #f3ddb0; color: #8a6412;
  font-size: 12.5px; line-height: 1.6;
}
.t-actions .waiting {
  height: 30px; padding: 0 14px; border-radius: 8px; font-size: 13px;
  background: #f1f4f9; color: #93a0b8; border: 1px solid #dde4ef; cursor: not-allowed;
}

/* 收藏备注小标签 */
.my-chan-list .fav-note {
  margin-left: auto; flex: 0 0 auto; max-width: 92px;
  font-size: 10.5px; line-height: 16px; padding: 0 6px; border-radius: 8px;
  background: #fff6e0; color: #a9701c; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* 无权限的控麦/禁麦：灰化但仍可见，点击给出原因 */
.rm-micbar .rm-mb.locked {
  color: #b7bfcd !important; cursor: not-allowed;
  background: transparent !important; border-color: transparent !important;
}
.rm-micbar .rm-mb.locked:hover { background: transparent !important; }

/* 收藏拖动排序 */
#side-fav .my-chan { cursor: grab; }
#side-fav .my-chan.dragging { opacity: .45; }
#side-fav .my-chan[draggable="true"]:hover { outline: 1px dashed rgba(53,84,209,.35); outline-offset: -1px; }

/* 底栏左侧：仿 语音房（头像 / 喇叭 / 麦克风 / 推子 / F2 键帽 / 按住F2说话） */
.rm-foot-left { display: flex; align-items: center; gap: 8px; }
.rm-foot-ico {
  width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px;
  background: transparent; color: #5c6878; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.rm-foot-ico svg { width: 17px; height: 17px; }
.rm-foot-ico:hover { background: #eef2f8; color: #2f6bd8; }
.rm-foot-ico.muted { color: #d9534f; }
.rm-foot-kbd {
  min-width: 26px; height: 20px; padding: 0 5px; margin-left: 2px;
  border: 1px solid #c8d1de; border-bottom-width: 2px; border-radius: 4px;
  background: #fff; color: #4a5666; font-size: 11px; font-weight: 700;
  line-height: 18px; text-align: center; cursor: pointer;
}
.rm-foot-kbd.on, .rm-foot-kbd:active { background: #3554d1; border-color: #2c46b0; color: #fff; }
.rm-foot-hint { font-size: 11.5px; color: #7b8798; margin-left: 2px; user-select: none; }

.rm-voice-pop {
  position: absolute; left: 12px; bottom: 44px; z-index: 9800;
  width: 208px; padding: 10px 12px 8px;
  background: #fff; border: 1px solid #e3e8f1; border-radius: 10px;
  box-shadow: 0 10px 28px rgba(20, 32, 56, .16);
}
.rm-vp-hd { font-size: 12px; color: #55617a; margin-bottom: 8px; }
.rm-vp-row { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 8px; margin-bottom: 8px; }
.rm-vp-row > span { font-size: 12px; color: #6b7788; }
.rm-vp-row input[type=range] { width: 100%; accent-color: #3554d1; }
.rm-vp-row.mute { grid-template-columns: 46px auto; justify-content: start; }
/* 旧的内联音量条不再需要（已并入 🔊 / 推子浮层） */
.rm-foot-left .rx-vol { display: none !important; }
/* 顺序钉死：头像 → 喇叭 → 麦克风 → 推子 → F2 键帽 → 文案 */
.rm-foot-left > #rm-foot-avatar { order: 1; }
.rm-foot-left > #btn-vol { order: 2; }
.rm-foot-left > #btn-mic { order: 3; }
.rm-foot-left > #btn-voice { order: 4; }
.rm-foot-left > #btn-mic2 { order: 5; }
.rm-foot-left > .rm-foot-hint { order: 6; }
.rm-foot-left > #mic-status { order: 7; }


/* 顶部那条「试 频道名 (N)」与树里的当前行重复，隐藏（语音房 没有这一行） */
body:not(.narrow) #screen-room #rm-tree-chan { display: none !important; }

/* 喇叭 / 麦克风的「关闭」红线（语音房 图 3 的样式） */
.rm-foot-ico.off { position: relative; color: #d9534f; }
.rm-foot-ico.off::after {
  content: ""; position: absolute; left: 4px; right: 4px; top: 50%;
  height: 2px; background: #e04b45; border-radius: 2px;
  transform: rotate(-45deg); box-shadow: 0 0 0 1px rgba(255,255,255,.9);
}

/* 竖向音量条（语音房 点喇叭弹出的那根绿色条） */
.rm-vol-pop {
  position: absolute; left: 34px; bottom: 40px; z-index: 9800;
  width: 40px; padding: 10px 0 8px;
  background: #fff; border: 1px solid #e3e8f1; border-radius: 12px;
  box-shadow: 0 10px 26px rgba(20,32,56,.16);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.rm-vol-pop .rm-vp-track {
  width: 10px; height: 96px; border-radius: 6px; background: #eef2f8;
  position: relative; overflow: hidden; cursor: pointer;
}
.rm-vol-pop .rm-vp-fill {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, #4ed08a, #22b06a);
  border-radius: 6px; transition: height .08s linear;
}
.rm-vol-pop .rm-vp-num { font-size: 11px; color: #7b8798; }
.rm-vol-pop.muted .rm-vp-fill { background: #cfe3d8; }

/* 表情面板 */
.rm-emoji-pop {
  position: absolute; left: 8px; bottom: 42px; z-index: 9700;
  width: 268px; max-height: 176px; overflow-y: auto;
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px;
  padding: 8px; background: #fff; border: 1px solid #e3e8f1;
  border-radius: 10px; box-shadow: 0 12px 30px rgba(20,32,56,.16);
}
.rm-emoji {
  width: 24px; height: 24px; padding: 0; border: 0; border-radius: 5px;
  background: transparent; font-size: 17px; line-height: 24px; cursor: pointer;
}
.rm-emoji:hover { background: #eef3ff; }
.rm-foot-status.warn { color: #d9534f; }
.rm-foot-status.warn:hover { text-decoration: underline; }
.rm-vp-test {
  width: 100%; height: 26px; margin-top: 2px; border: 1px solid #d6dbe6;
  border-radius: 6px; background: #f7f9fc; color: #3653b6; font-size: 12px; cursor: pointer;
}
.rm-vp-test:hover { background: #eef3ff; }
.rm-vp-row.dev { grid-template-columns: 46px 1fr; }
.rm-vp-dev {
  width: 100%; height: 26px; border: 1px solid #d6dbe6; border-radius: 6px;
  background: #fff; color: #36405a; font-size: 12px; padding: 0 4px;
}
.rm-vp-meter { height: 6px; border-radius: 4px; background: #eef2f8; margin: 2px 0 8px; overflow: hidden; }
.rm-vp-meter > i { display: block; height: 100%; width: 0; background: #d7dfea; transition: width .1s linear; }
.rm-vp-reset {
  width: 100%; height: 24px; margin-top: 6px; border: 1px dashed #e0b4b1;
  border-radius: 6px; background: #fff7f6; color: #c0504b; font-size: 11.5px; cursor: pointer;
}
.rm-vp-reset:hover { background: #fdeceb; }
/* 上麦请求进行中：图标脉冲，避免“点了没反应”的错觉 */
.rm-foot-ico.busy { animation: rmMicPulse .7s ease-in-out infinite; }
@keyframes rmMicPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* ── 徽章 / 靓字图标在公屏与成员树的统一尺寸（防遮挡）── */
.chat-row .mem-medal,
.chat-row .name-prefix,
.chat-row .badge{
  display:inline-flex; align-items:center; justify-content:center;
  vertical-align:middle; line-height:1; margin:0 2px; flex:none;
}
.chat-row .mem-medal img,
.chat-row .name-prefix img,
.chat-name img.medal-img,
.chat-name img.prefix-img{
  height:16px; width:auto; max-height:16px; display:block; object-fit:contain;
}
.chat-name,
.chat-meta{
  display:flex; align-items:center; gap:4px; flex-wrap:wrap; min-width:0;
}
.chat-row .mem-medal:empty{ display:none; }
.cos-kind-img{ width:44px; height:44px; object-fit:contain; display:block; margin:0 auto; }
/* 统一约束注入的图标尺寸：靓字/勋章/尾灯，成员树与公屏共用 */
.name-prefix img, .mem-medal img, .medal-img, .prefix-img{
  width:16px; height:16px; object-fit:contain;
  display:inline-block; vertical-align:-3px; margin:0 2px;
}
.chat-row .name-prefix img, .chat-row .mem-medal img{ width:16px; height:16px; }
.name-prefix{ display:inline-flex; align-items:center; }
/* 资料卡头像圆形 */
.pf-avatar, .pf-avatar img, .profile-avatar, .profile-avatar img{ border-radius:50%; overflow:hidden; }

/* 顶栏「更换外观」：T 恤图标 + 金色描边 + 悬浮黑色提示（对齐主流语音房） */
.top-ico.gold { border-color: #e7dcc2; color: #a98c4e; background: #fffdf7; }
.top-ico.gold:hover { border-color: #e0c684; color: #8f6f2d; background: #fff8e6; box-shadow: 0 0 0 2px rgba(224, 198, 132, .22); }
.top-ico.gold svg { width: 17px; height: 17px; }
.top-ico[data-tip] { position: relative; }
.top-ico[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute; top: calc(100% + 9px); left: 50%; transform: translateX(-50%);
  background: #2b2f38; color: #fff; font-size: 12px; line-height: 1;
  padding: 6px 9px; border-radius: 4px; white-space: nowrap; z-index: 60;
  pointer-events: none;
}
.top-ico[data-tip]:hover::before {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-bottom-color: #2b2f38; z-index: 60;
  pointer-events: none;
}
/* 资料卡头像框叠加 */
#pf-avatar[data-frame]{ position:relative; }
#pf-avatar[data-frame]::after{
  content:''; position:absolute; left:-14%; top:-14%; width:128%; height:128%;
  background-image:var(--pf-frame); background-size:contain;
  background-repeat:no-repeat; background-position:center;
  pointer-events:none;
}
/* 头像框叠加：必须允许溢出，否则被 overflow:hidden 裁掉 */
#pf-avatar[data-frame]{ overflow:visible !important; }
#pf-avatar{ background-size:cover; background-position:center; }


/* —— 图标流光：面板磁贴扫光 —— */
.cos-tile, .cos-follow{ position:relative; overflow:hidden; }
.cos-tile::after{
  content:''; position:absolute; left:-60%; top:-60%; width:220%; height:220%;
  background:linear-gradient(115deg, transparent 42%, rgba(255,255,255,.62) 50%, transparent 58%);
  transform:translateX(-120%) rotate(0.001deg);
  animation:cosShine 3.2s ease-in-out infinite;
  pointer-events:none; mix-blend-mode:screen;
}
@keyframes cosShine{
  0%   { transform:translateX(-120%); }
  55%  { transform:translateX(120%); }
  100% { transform:translateX(120%); }
}
/* 公屏小图标也来一点流光 */
.name-prefix img, .mem-medal img, .medal-img, .prefix-img{
  animation:iconGlow 2.6s ease-in-out infinite;
}
@keyframes iconGlow{
  0%,100%{ filter:drop-shadow(0 0 0 rgba(255,255,255,0)) brightness(1); }
  50%    { filter:drop-shadow(0 0 4px rgba(150,200,255,.95)) brightness(1.18); }
}


/* —— 头像框动态：缓慢摆动 + 呼吸光 + 转动的锥形高光 —— */
#pf-avatar[data-frame]::after{
  animation:frameSway 6.5s ease-in-out infinite, frameBreath 3s ease-in-out infinite;
}
@keyframes frameSway{
  0%,100%{ transform:rotate(-2.5deg) scale(1); }
  50%    { transform:rotate(2.5deg)  scale(1.02); }
}
@keyframes frameBreath{
  0%,100%{ filter:drop-shadow(0 0 2px rgba(120,180,255,.45)); }
  50%    { filter:drop-shadow(0 0 9px rgba(150,210,255,.95)) brightness(1.1); }
}
#pf-avatar[data-frame]::before{
  content:''; position:absolute; left:-16%; top:-16%; width:132%; height:132%;
  border-radius:50%; pointer-events:none;
  background:conic-gradient(from 0deg, transparent 0 72%, rgba(255,255,255,.75) 82%, transparent 92%);
  -webkit-mask:radial-gradient(circle, transparent 62%, #000 68%);
          mask:radial-gradient(circle, transparent 62%, #000 68%);
  animation:frameSpin 4.5s linear infinite;
}
@keyframes frameSpin{ to{ transform:rotate(360deg); } }

/* 自己麦位上的「下麦」按钮 */
.rm-seat.mine { box-shadow: inset 0 0 0 1.5px #cfe0ff; }
.rm-seat-btn.rm-seat-drop { background: #fff; color: #3554d1; border: 1px solid #b9cdf2; }
.rm-seat-btn.rm-seat-drop:hover { background: #eef3ff; }
/* 可点击的麦位：空位=上麦，自己的位=下麦 */
#rm-seats .rm-seat-empty, #rm-seats .rm-seat.mine { cursor: pointer; }
#rm-seats .rm-seat.mine:hover { box-shadow: inset 0 0 0 1.5px #9bbcff; }
#rm-seats .rm-seat-empty:hover .rm-seat-btn { background: #e8efff; }

/* ===== 成员树：行内信息放大（用户 2026-11-24 要求：偏小、看不清） ===== */
.member-row{ padding:8px 10px; gap:8px; font-size:14.5px; }
.member-row .mic-dot{ width:7px; height:7px; flex:0 0 7px; }
.member-row .rank{ min-width:17px; font-size:12px; color:#8b97ab; }
.member-row .name{
  font-weight:650; letter-spacing:.2px; color:#1f2c44;
  text-shadow:0 1px 0 rgba(255,255,255,.65);
}
.member-row .role-tag{
  padding:2px 8px; border-radius:6px; font-size:12px; font-weight:700;
  background:linear-gradient(160deg,rgba(255,214,102,.95),rgba(214,160,32,.95));
  color:#4a3200; border:1px solid rgba(255,255,255,.5);
  box-shadow:0 1px 3px rgba(120,90,10,.28);
}
.member-row.on-mic .role-tag{
  background:linear-gradient(160deg,#5ce0a4,#2b9e6b); color:#04301c; border-color:rgba(255,255,255,.55);
}
/* 昵称后的会员/爵位/靓号/官方小图标：从 16px 提到 19px */
.member-row .mem-medal img,
.member-row .medal-img,
.member-row .badge img,
.member-row .name-prefix img,
.member-row .vip-tier img{ width:19px !important; height:19px !important; object-fit:contain; vertical-align:-4px; }
.member-row .badge,
.member-row .mem-medal,
.member-row .role-meta{ font-size:12px; }

/* ===== 成员树：马甲标签 / 官方标 / 内联 SVG 一并放大 ===== */
.member-row .mem-role{
  font-size:12.5px !important; font-weight:800 !important; letter-spacing:.3px;
  padding:2px 8px !important; border-radius:6px !important;
  box-shadow:0 1px 3px rgba(20,35,60,.18);
}
.member-row .mem-official{
  font-size:12.5px !important; font-weight:800 !important;
  padding:2px 8px !important; border-radius:6px !important;
  background:linear-gradient(160deg,#3a2a10,#1b1306) !important;
  color:#ffd76a !important; border:1px solid rgba(255,215,106,.55) !important;
  text-shadow:0 1px 2px rgba(0,0,0,.5);
  box-shadow:0 1px 4px rgba(20,12,0,.35);
}
.member-row svg{ width:19px !important; height:19px !important; vertical-align:-4px; }
.member-row .name{ font-size:14.5px !important; }


/* ===== 进房横幅：与进场名字条同一套玻璃样式 ===== */
.banner-layer{ position:fixed; left:0; top:0; width:0; height:0; z-index:9600; pointer-events:none; }
.banner-layer .banner-name{
  position: fixed !important; left: 50% !important; top: 56px !important;
  bottom: auto !important; right: auto !important;
  height: auto !important; max-height: 44px !important; line-height: 1.2 !important;
  transform: translateX(-50%) !important;
  margin: 0; padding: 9px 26px; border-radius: 999px;
  width: min(520px, 52vw); box-sizing: border-box;
  font-size: 15px; font-weight: 800; text-align: center; letter-spacing: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transition: opacity .26s;
}
.banner-layer.on .banner-name{ opacity: 1; }

/* ===== 成员列表上下滑动兜底 ===== */
#screen-room .rm-body{ min-height:0; }
#screen-room .rm-tree{ min-height:0; overflow:hidden; }
#screen-room .rm-tree-list{
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto !important; overflow-x: hidden;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  max-height: 100%;
}
#screen-room .rm-tree-list::-webkit-scrollbar{ width:6px; }
#screen-room .rm-tree-list::-webkit-scrollbar-thumb{ background:rgba(120,140,170,.45); border-radius:3px; }
#screen-room .rm-tree-list::-webkit-scrollbar-track{ background:transparent; }

/* 双击打开资料：元信息行不选中文字，并给出可点提示 */
.chat-meta{ -webkit-user-select:none; user-select:none; cursor:default; }
.chat-meta .from{ cursor:pointer; }

/* ===== 频道广播：单行紧凑标签 ===== */
.chat-row .chat-bc-tag{
  display:inline-flex; align-items:center; gap:3px;
  height:17px; padding:0 7px; margin-right:2px;
  border-radius:5px; font-size:11px; font-weight:700; line-height:1;
  color:#fff; letter-spacing:.3px;
  background:linear-gradient(180deg,#5b8cff,#3f6ce0);
  box-shadow:0 1px 3px rgba(63,108,224,.32), inset 0 1px 0 rgba(255,255,255,.3);
  vertical-align:middle;
}
.chat-row .chat-bc-tag::before{ content:'📢'; font-size:10px; line-height:1; }

/* ===== 频道广播（YY 写法）：频道广播：管理员[昵称](uid)说: (H:M:S) ===== */
.chat-row .chat-bc-line{
  display:flex; align-items:center; flex-wrap:wrap; gap:2px;
  font-size:12.5px; line-height:1.5; color:#3f6ce0;
}
.chat-row .chat-bc-line .bc-ico{ color:#3f6ce0; flex:none; margin-right:2px; }
.chat-row .chat-bc-line .bc-k{ font-weight:700; }
.chat-row .chat-bc-line .bc-role{ color:#3f6ce0; }
.chat-row .chat-bc-line .bc-name{ color:#2b58c9; font-weight:700; }
.chat-row .chat-bc-line .bc-uid{ color:#5b7fd8; }
.chat-row .chat-bc-line .bc-say{ color:#3f6ce0; }
.chat-row .chat-bc-line .bc-time{ color:#8a97b0; margin-left:2px; }

/* ===== 底栏「自由发言」模式按钮（对齐 YY） ===== */
#screen-room .rm-foot-mode{
  display:inline-flex; align-items:center; gap:6px; height:30px; padding:0 12px;
  border:1px solid #cfdaea; background:#fff; color:#2b3550; border-radius:8px;
  font-size:13px; font-weight:600; cursor:pointer; transition:.15s;
}
#screen-room .rm-foot-mode:hover{ border-color:#8fb0e6; color:#2f6ce0; }
#screen-room .rm-foot-mode .fm-smile{ font-size:15px; line-height:1; color:#5b6b86; }
#screen-room .rm-foot-mode.mode-ptt{ border-color:#f0b24a; color:#a5680a; background:#fff8ea; }
#screen-room .rm-foot-mode.mode-ptt .fm-smile{ color:#e08d0c; }
#screen-room .rm-foot-kbd b{ font-size:12px; margin-right:5px; letter-spacing:.3px; }
#screen-room .rm-foot-kbd.live{ border-color:#2f6ce0; color:#2f6ce0; box-shadow:0 0 0 2px rgba(47,108,224,.16); }
#screen-room #btn-mic.talking{ animation:micPulse 1s ease-in-out infinite; }
@keyframes micPulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(47,108,224,.55);} 50%{ box-shadow:0 0 0 5px rgba(47,108,224,0);} }

/* ===== 靓号页：切筛选不跳屏 ===== */
#vanity-list{ min-height: 520px; transition: opacity .12s; }
#vanity-list.loading{ opacity:.45; pointer-events:none; }
#vanity-list .vn-card{ min-height: 118px; }

/* ===== 靓号页：位数/价位筛选条显示不全 & 卡片卡顿 ===== */
#vanity-chips, .vn-filters, #digit-chips, #band-chips{
  display:flex; flex-wrap:wrap; gap:8px; overflow:visible !important; height:auto !important; max-height:none !important;
}
#digit-chips .vn-chip, #band-chips .vn-chip{
  flex:0 0 auto; min-width:64px; text-align:center; white-space:nowrap;
}
.vn-filter-row{ flex-wrap:wrap !important; overflow:visible !important; }
#vanity-list .vn-card{ content-visibility:auto; contain-intrinsic-size:118px; }

/* ===== 岛币 / 送礼面板 ===== */
.vc-btn{ position:relative; gap:2px; }
.vc-btn b{ font-size:11px; color:#c08a1e; line-height:1; }
.vc-btn i{ font-style:normal; font-size:10px; color:#8a6a20; line-height:1; }
.vc-panel{ position:fixed; z-index:9999; left:50%; top:50%; transform:translate(-50%,-50%);
  width:min(460px,92vw); background:#fff; border-radius:16px; box-shadow:0 24px 60px rgba(20,40,80,.28);
  padding:16px 18px 14px; font-family:"Microsoft YaHei",sans-serif; }
.vc-head{ display:flex; align-items:center; gap:10px; font-size:15px; color:#1f2c44; }
.vc-head b{ flex:0 0 auto; font-weight:700; }
.vc-head span{ flex:1 1 auto; text-align:right; font-weight:800; color:#c08a1e; font-size:18px; }
.vc-x{ border:0; background:transparent; font-size:20px; line-height:1; color:#9aa7bd; cursor:pointer; }
.vc-tip{ margin:8px 0 12px; font-size:12px; color:#7c8aa2; line-height:1.6; }
.vc-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.vc-gift{ display:flex; flex-direction:column; align-items:center; gap:3px; padding:12px 6px 10px;
  border:1px solid #e3e9f4; border-radius:12px; background:#fbfdff; cursor:pointer; transition:.15s; }
.vc-gift:hover{ border-color:#b9cdf6; background:#f4f8ff; transform:translateY(-1px); }
.vc-ico{ font-size:22px; line-height:1; color:#3f6ce0; }
.vc-name{ font-size:12.5px; color:#2b3550; font-weight:600; }
.vc-price{ font-size:12px; color:#c08a1e; font-weight:700; }
.vc-foot{ display:flex; align-items:center; gap:10px; margin-top:13px; }
.vc-recharge{ font-size:12.5px; color:#3f6ce0; text-decoration:none; border:1px solid #c9d9f8;
  border-radius:999px; padding:5px 12px; background:#f4f8ff; }
.vc-msg{ font-size:12.5px; color:#3aa06a; }
.vc-msg.bad{ color:#d9534f; }

/* 顶栏岛币胶囊 + 资料卡岛币行 */
.vc-top{ display:inline-flex; align-items:center; gap:5px; text-decoration:none;
  border:1px solid #e7d3a6; background:linear-gradient(180deg,#fff9ec,#fff2d9);
  border-radius:999px; padding:5px 12px; height:28px; box-sizing:border-box; }
.vc-top b{ font-size:11.5px; color:#a9761a; font-weight:700; }
.vc-top i{ font-style:normal; font-size:12px; color:#7a5510; font-weight:800; }
.vc-top:hover{ border-color:#dcbe7c; }
.pf-vcoin{ display:inline-flex; align-items:center; gap:8px; margin-top:8px; font-size:12.5px; color:#6d7a90; }
.pf-vcoin b{ font-size:15px; color:#a9761a; font-weight:800; }
.pf-vcoin a{ font-size:12px; color:#3f6ce0; text-decoration:none; border:1px solid #c9d9f8;
  border-radius:999px; padding:2px 10px; background:#f4f8ff; }

/* 岛币胶囊：数字过长时压缩显示，不挤压相邻按钮 */
.vc-btn{ flex:0 0 auto; }
.vc-btn i{ display:inline-block; max-width:64px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vc-top{ flex:0 0 auto; }
.vc-top i{ display:inline-block; max-width:70px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* 顶栏通用悬浮提示（图标无文字时用） */
.ghost[data-tip]{ position:relative; }
.ghost[data-tip]:hover::after{
  content: attr(data-tip);
  position:absolute; top:calc(100% + 9px); left:50%; transform:translateX(-50%);
  background:#2b2f38; color:#fff; font-size:12px; line-height:1; padding:6px 9px;
  border-radius:4px; white-space:nowrap; z-index:60; pointer-events:none;
}
.ghost[data-tip]:hover::before{
  content:""; position:absolute; top:100%; left:50%; transform:translateX(-50%);
  border:5px solid transparent; border-bottom-color:#2b2f38; z-index:60; pointer-events:none;
}
.vc-top[data-tip]:hover::after{ content:attr(data-tip); position:absolute; top:calc(100% + 9px);
  left:50%; transform:translateX(-50%); background:#2b2f38; color:#fff; font-size:12px;
  line-height:1; padding:6px 9px; border-radius:4px; white-space:nowrap; z-index:60; pointer-events:none; }

/* 频道管理 · 头像上传 */
.ca-ava{ width:44px; height:44px; border-radius:12px; display:inline-flex; align-items:center;
  justify-content:center; background:#eef2f9 center/cover no-repeat; border:1px solid var(--line,#e6ecf5);
  vertical-align:middle; margin-right:8px; }
.ca-ava i{ font-style:normal; font-size:11.5px; color:#9aa7bb; }
