/* ============================================================
   蓝白主题（默认）
   原则：头部深蓝、主体白、底色极浅蓝；主色统一 #2f6fed；
        正文对比度 ≥ 12:1，次要文字 ≥ 4.5:1；不用高饱和渐变。
   ============================================================ */
:root {
  --bl-brand: #2f6fed;
  --bl-brand-deep: #1d4ed8;
  --bl-ink: #1f2937;          /* 正文 12.7:1 on #fff */
  --bl-ink-2: #4a5568;        /* 次要 8.6:1 */
  --bl-ink-3: #6b7a90;        /* 辅助 4.9:1 */
  --bl-line: #e3eaf5;
  --bl-bg: #f5f8fd;           /* 极浅蓝 */
  --bl-head: #1e2a44;         /* 深蓝头部 */
}

/* 房间头部：深蓝（对齐图2 的深色条，但换成蓝调，避免纯灰发闷） */
#screen-room .rm-head {
  background: #1e2a44 !important;
  border-bottom: 1px solid #16203a !important;
}
#screen-room .rm-head h2,
#screen-room .rm-head .rm-title {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
#screen-room .rm-chip {
  background: rgba(255,255,255,.14) !important;
  color: #dbe6ff !important;
  border: 1px solid rgba(255,255,255,.18) !important;
}
#screen-room .rm-render { color: #a9bbdc !important; }

/* 第二行工具条 */
#screen-room .rm-tools {
  background: #f0f4fb !important;
  border-bottom: 1px solid var(--bl-line) !important;
  color: var(--bl-ink-2) !important;
}
#screen-room .rm-tools .tool,
#screen-room .rm-tools button { color: var(--bl-ink-2) !important; }
#screen-room .rm-tools .tool:hover { background: #e2ebfa !important; color: var(--bl-brand-deep) !important; }

/* 主体：白公屏 + 浅蓝侧栏 */
#screen-room .rm-body { background: var(--bl-bg) !important; }
#screen-room #member-list { background: #ffffff !important; }
#screen-room .rm-tree-head { background: #ffffff !important; color: #4a5568 !important; border-bottom: 1px solid #e3eaf5 !important; }

#screen-room .member-row:hover { background: #f2f7ff !important; }
#screen-room .member-row.is-me { background: #e8f0ff !important; }

#screen-room #chat-list { background: #ffffff !important; }
#screen-room .chat-line { color: var(--bl-ink) !important; }
#screen-room .chat-line .ts { color: var(--bl-ink-3) !important; }

/* 输入区 */
#screen-room .rm-inputbar {
  background: #ffffff !important;
  border-top: 1px solid var(--bl-line) !important;
}
#screen-room .rm-form input,
#screen-room #chat-input {
  background: #f7f9fd !important;
  border: 1px solid var(--bl-line) !important;
  color: var(--bl-ink) !important;
}
#screen-room .rm-form input:focus,
#screen-room #chat-input:focus {
  border-color: var(--bl-brand) !important;
  box-shadow: 0 0 0 3px rgba(47,111,237,.12) !important;
}

/* 底栏 */
#screen-room .rm-foot {
  background: #ffffff !important;
  border-top: 1px solid var(--bl-line) !important;
  color: var(--bl-ink-2) !important;
}
#screen-room .rm-foot-btn { color: var(--bl-ink-2) !important; }
#screen-room .rm-foot-btn:hover { background: #eef4ff !important; color: var(--bl-brand-deep) !important; }

/* 主按钮统一纯蓝（替掉蓝紫渐变，降低刺眼感） */
.primary,
button.primary,
#btn-friends,
#fd-go,
.fd-go {
  background: linear-gradient(180deg, #3d7bf5 0%, #2f6fed 100%) !important;
  border-color: #2f6fed !important;
  color: #fff !important;
  box-shadow: 0 1px 2px rgba(29,78,216,.18) !important;
}
.primary:hover { background: linear-gradient(180deg, #2f6fed 0%, #1d4ed8 100%) !important; }

/* 大厅：浅蓝白背景，卡片白底 */
#screen-lobby { background: var(--bl-bg) !important; }
.channel-card { background: #ffffff !important; border: 1px solid var(--bl-line) !important; }

/* 顶栏保持白，但去掉过重的阴影 */
.top-bar, #lobby-top { box-shadow: 0 1px 3px rgba(31,41,55,.06) !important; }

/* 选中态：淡蓝底 + 蓝字，不用紫色 */
.main-nav .nav.on,
.nl-q.on,
.fd-tab.on { color: var(--bl-brand-deep) !important; }
.main-nav .nav.on::after,
.fd-tab.on::after { background: var(--bl-brand) !important; }

/* 输入条与发送按钮 */
#screen-room .rm-form { background: #ffffff !important; }
#screen-room .rm-form button[type=submit],
#screen-room #btn-send { background: linear-gradient(180deg,#3d7bf5,#2f6fed) !important; border-color:#2f6fed !important; }
#screen-room .member-row { color: var(--bl-ink) !important; }
#screen-room .chat-item, #screen-room #chat-list li { color: var(--bl-ink) !important; }

/* ---- 房间蓝白：把原来那片灰色全部换掉 ---- */
#screen-room.screen-room,
.screen-room { background: #f5f8fd !important; }

#screen-room .rm-tree {
  background: #ffffff !important;
  border-right: 1px solid #e3eaf5 !important;
}
#screen-room .rm-tree-head {
  background: #f7faff !important;
  color: #4a5568 !important;
  border-bottom: 1px solid #e3eaf5 !important;
}
#screen-room .rm-tree-count { color: #94a3b8 !important; }

#screen-room .rm-main { background: #ffffff !important; }
#screen-room .rm-chat { background: #ffffff !important; }
#screen-room .rm-audio {
  background: #f7faff !important;
  border-top: 1px solid #e3eaf5 !important;
  color: #6b7a90 !important;
}
#screen-room .rm-audio-val { color: #4a5568 !important; }

/* 工具条 */
#screen-room .rm-tools { background: #ffffff !important; border-bottom: 1px solid #e3eaf5 !important; }
#screen-room .rm-tools button,
#screen-room .rm-tools .tool { color: #4a5568 !important; }
#screen-room .rm-tools .tool:hover { background: #eef4ff !important; color: #1d4ed8 !important; }

/* 底部条 */
#screen-room .rm-foot { background: #ffffff !important; border-top: 1px solid #e3eaf5 !important; }
#screen-room .rm-foot-btn { background: #f2f6fd !important; color: #33507d !important; border: 1px solid #dde7f7 !important; }
#screen-room .rm-foot-btn:hover { background: #e4eeff !important; color: #1d4ed8 !important; }

/* 输入区 */
#screen-room .rm-inputbar { background: #ffffff !important; border-top: 1px solid #e3eaf5 !important; }
#screen-room .rm-form { background: #ffffff !important; }
#screen-room #chat-input {
  background: #f7fafd !important; border: 1px solid #dde7f7 !important; color: #1f2937 !important;
}
#screen-room #chat-input:focus { border-color: #2f6fed !important; box-shadow: 0 0 0 3px rgba(47,111,237,.12) !important; }

/* 成员行 */
#screen-room .member-row { color: #1f2937 !important; }
#screen-room .member-row:hover { background: #f2f7ff !important; }


/* ===== 公屏对齐主流语音房 v20261201b（theme-blue 是最后加载的，用它压住深蓝顶栏）===== */
body:not(.narrow) #screen-room .rm-head {
  background: #1b1d22 !important; border-bottom: 1px solid #101216 !important; height: 48px;
}
body:not(.narrow) #screen-room .rm-tools {
  background: #f7f8fa !important; border-bottom: 1px solid #e8ecf3 !important; height: 34px;
}
body:not(.narrow) #screen-room .rm-tools .rm-tool { color: #5d6a7e !important; }
body:not(.narrow) #screen-room .rm-mode { background: #eef1f6 !important; color: #56617a !important; }
body:not(.narrow) #screen-room .rm-inputbar { background: #fbfcfd !important; border-top: 1px solid #eceff5 !important; }
body:not(.narrow) #screen-room .rm-footer { background: #fff !important; border-top: 1px solid #eceff5 !important; }

/* 位置微调（theme-blue 最后加载，放这里才压得住上面的高度值） */
body:not(.narrow) #screen-room .rm-head { height: 50px !important; }
body:not(.narrow) #screen-room .rm-tools { height: 44px !important; align-items: center; }
body:not(.narrow) #screen-room .rm-tools { height: 52px !important; }
