/* ===== 基础 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
:root {
  --wx-green: #07c160;
  --wx-green-dark: #06ad56;
  --bubble-self: #95ec69;
  --bubble-other: #ffffff;
  --rail-bg: #2e2e2e;
  --rail-bg2: #262626;
  --list-bg: #f7f7f7;
  --chat-bg: #f5f5f5;
  --head-bg: #f5f5f5;
  --line: #e3e3e3;
  --text: #191919;
  --text-2: #7f7f7f;
  --text-3: #b2b2b2;
}
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: #d8dbe0;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input, textarea { font-family: inherit; font-size: inherit; color: inherit; outline: none; border: none; background: none; }
button { cursor: pointer; }
.hidden { display: none !important; }

/* ===== 桌面容器 ===== */
.desktop {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}

/* ===== 登录页 ===== */
.brand-foot {
  margin-top: 8px; padding-top: 10px; border-top: 1px solid #f0f0f0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12px; color: var(--text-3); text-align: left; letter-spacing: .3px;
}
.app-foot {
  flex: none; min-height: 30px; display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 12px; color: #b2b2b2; background: #fafafa;
  border-top: 1px solid var(--line); user-select: none; padding: 2px 8px;
}
/* 页脚「©」由圆圈包围的 C */
.copy-mark {
  flex: none; width: 17px; height: 17px; border-radius: 50%;
  border: 1.2px solid currentColor; display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 10px; line-height: 1; font-weight: 700; opacity: .85;
}
.brand-foot-txt, .app-foot-txt { display: flex; flex-direction: column; line-height: 1.35; }
.brand-foot-txt b, .app-foot-txt b { font-weight: 600; }
.brand-foot-txt i, .app-foot-txt i { font-style: normal; font-size: 11px; opacity: .75; }
.login-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #eef2f6 0%, #dfe5ec 100%); overflow: auto; padding: 16px 0; }
/* 浏览器窗口较矮时整体等比缩小，保证注册表单全部可见 */
.login-box { width: 380px; flex: none; }
.login-card { transform-origin: top center; }

/* 矮屏紧凑模式 */
@media (max-height: 780px) {
  .login-card { padding: 24px 26px 20px; }
  .login-brand { margin-bottom: 14px; }
  .login-logo { width: 50px; height: 50px; font-size: 27px; margin-bottom: 8px; }
  .login-title { font-size: 18px; }
  .login-tabs { margin-bottom: 14px; }
  .field { margin-bottom: 11px; }
  .field input, .code-row input { height: 38px; }
  .btn-primary { height: 40px; }
  .lpanel-tip { padding: 8px 10px; margin-bottom: 10px; }
}
@media (max-height: 620px) {
  .login-card { padding: 18px 22px 16px; }
  .login-brand { margin-bottom: 10px; }
  .login-logo { width: 42px; height: 42px; font-size: 23px; margin-bottom: 6px; }
  .login-sub { display: none; }
  .field { margin-bottom: 9px; }
  .field label { margin-bottom: 4px; }
  .field input, .code-row input { height: 34px; }
  .btn-primary { height: 36px; font-size: 14px; }
  .avatar-list button { height: 28px; font-size: 17px; }
}
.login-card {
  width: 380px; padding: 36px 34px 28px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.16);
  text-align: left;
}
.login-brand { text-align: center; margin-bottom: 22px; }
.login-logo {
  width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 14px;
  background: var(--wx-green); color: #fff; font-size: 34px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(7,193,96,.35);
}
.login-title { font-size: 20px; font-weight: 600; }
.login-sub { margin-top: 6px; font-size: 13px; color: var(--text-2); }

.login-tabs { display: flex; gap: 6px; background: #f2f3f5; padding: 4px; border-radius: 10px; margin-bottom: 20px; }
.ltab { flex: 1; padding: 8px 0; border-radius: 8px; font-size: 14px; color: var(--text-2); }
.ltab.is-on { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.lpanel { display: none; }
.lpanel.is-on { display: block; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.field input, .code-row input {
  width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid #e0e0e0; border-radius: 8px; background: #fafafa;
  transition: border-color .15s, background .15s;
}
.field input:focus, .code-row input:focus { border-color: var(--wx-green); background: #fff; }
.field input:disabled { background: #f2f2f2; color: #999; cursor: not-allowed; }
.field-tip { margin-top: 5px; font-size: 12px; color: var(--text-3); line-height: 1.5; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.btn-code {
  flex: none; padding: 0 14px; height: 42px; border-radius: 8px;
  border: 1px solid var(--wx-green); color: var(--wx-green); font-size: 13px; white-space: nowrap;
}
.btn-code:disabled { border-color: #ccc; color: #aaa; cursor: default; }

.btn-primary {
  width: 100%; height: 44px; border-radius: 8px; margin-top: 6px;
  background: var(--wx-green); color: #fff; font-size: 15px; letter-spacing: 2px;
}
.btn-primary:hover { background: var(--wx-green-dark); }
.btn-primary:disabled { background: #b9e6cb; cursor: default; }
.btn-wechat { display: flex; align-items: center; justify-content: center; gap: 8px; letter-spacing: 0; }
.wx-ico { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.wx-hint { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-bottom: 14px; }

.login-msg { min-height: 20px; margin-top: 12px; font-size: 13px; color: #e64340; text-align: center; line-height: 1.6; }
.login-msg.ok { color: var(--wx-green); }
.login-foot { margin-top: 10px; font-size: 12px; color: var(--text-3); text-align: center; line-height: 1.6; }
.login-link { margin-top: 12px; text-align: center; font-size: 13px; }
.login-link a { color: var(--wx-green); text-decoration: none; }
.login-link a:hover { text-decoration: underline; }
.lpanel-tip { font-size: 12px; color: var(--text-3); line-height: 1.7; background: #f6f7f9; border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; }
.rc-list { display: flex; flex-direction: column; gap: 6px; }
.rc-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }
.rc-item.is-on { border-color: var(--wx-green); background: #f0faf4; }
.rc-item .rc-av { font-size: 22px; width: 28px; text-align: center; }
.rc-item .rc-tx b { font-size: 14px; }
.rc-item .rc-tx span { display: block; font-size: 12px; color: var(--text-3); }
.field-err { min-height: 16px; margin-top: 5px; font-size: 12px; color: #e64340; }

/* ===== 主界面 ===== */
.main {
  width: 1080px; height: 690px; max-width: 96vw; max-height: 94vh;
  display: flex; overflow: hidden;
  background: #fff; border-radius: 10px;
  box-shadow: 0 22px 60px rgba(0,0,0,.28);
}

/* 左侧图标栏 */
.rail {
  width: 58px; flex: none; background: var(--rail-bg);
  display: flex; flex-direction: column; align-items: center; padding: 22px 0 14px;
}
.rail-avatar {
  width: 36px; height: 36px; border-radius: 5px; background: #4a4a4a;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  cursor: pointer; margin-bottom: 22px;
}
.rail-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.rail-btn { position: relative; width: 44px; height: 44px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.rail-btn .ico { font-size: 20px; filter: grayscale(1) brightness(1.7); opacity: .75; }
.rail-btn:hover { background: rgba(255,255,255,.06); }
.rail-btn.is-on .ico { filter: none; opacity: 1; }
.rail-btn.is-on::before { content: ""; position: absolute; left: -7px; top: 12px; width: 3px; height: 20px; background: var(--wx-green); border-radius: 2px; }
.rail-btn .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #fa5151; border: 1.5px solid var(--rail-bg); }
.rail-bottom { display: flex; flex-direction: column; gap: 4px; }

/* 列表栏 */
.pane-list { width: 288px; flex: none; background: var(--list-bg); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.list-head { height: 60px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.search-box { flex: 1; height: 28px; background: #e3e3e3; border-radius: 4px; display: flex; align-items: center; padding: 0 8px; }
.search-box .s-ico { font-size: 12px; opacity: .6; }
.search-box input { flex: 1; margin-left: 6px; background: none; font-size: 13px; }
.add-btn { width: 28px; height: 28px; border-radius: 4px; background: #e3e3e3; font-size: 18px; line-height: 1; color: #5c5c5c; }
.add-btn:hover { background: #d9d9d9; }
.list-scroll { flex: 1; overflow-y: auto; }
.list-stack { display: flex; flex-direction: column; }

/* 会话条目 */
.conv { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; position: relative; }
.conv:hover { background: #eee; }
.conv.is-on { background: #c9c9c9; }
.conv-av { width: 40px; height: 40px; flex: none; border-radius: 4px; background: #dcdcdc; display: flex; align-items: center; justify-content: center; font-size: 22px; position: relative; overflow: hidden; }
.conv-av img { width: 100%; height: 100%; object-fit: cover; }
.conv-av .badge { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #fa5151; color: #fff; font-size: 11px; line-height: 17px; text-align: center; border: 1.5px solid var(--list-bg); }
.conv-body { flex: 1; min-width: 0; }
.conv-row { display: flex; align-items: baseline; gap: 8px; }
.conv-name { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-time { font-size: 11px; color: var(--text-3); flex: none; }
.conv-msg { margin-top: 3px; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv.is-on .conv-time, .conv.is-on .conv-msg { color: #6b6b6b; }

/* 通讯录 */
.contact-sec { padding: 8px 14px 4px; font-size: 12px; color: var(--text-2); background: var(--list-bg); }
.contact { display: flex; align-items: center; gap: 10px; padding: 8px 14px; cursor: pointer; }
.contact:hover { background: #eee; }
.contact-av { width: 32px; height: 32px; flex: none; border-radius: 4px; background: #dcdcdc; display: flex; align-items: center; justify-content: center; font-size: 18px; overflow: hidden; }
.contact-av img { width: 100%; height: 100%; object-fit: cover; }
.contact-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-tag { margin-left: auto; font-size: 11px; color: var(--text-3); }

/* 聊天栏 */
.pane-chat { flex: 1; min-width: 0; background: var(--chat-bg); display: flex; flex-direction: column; position: relative; }
.chat-head { height: 60px; flex: none; background: var(--head-bg); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 18px; }
.chat-title { flex: 0 1 auto; max-width: 58%; font-size: 16px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-status { flex: none; font-size: 12px; color: var(--text-3); margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-status.is-online { color: var(--wx-green); }
.more-btn, .back-btn { font-size: 20px; color: #5c5c5c; padding: 0 4px; }
.more-btn { margin-left: auto; }
.online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--wx-green); margin-left: 5px; vertical-align: middle; }
.back-btn { display: none; font-size: 26px; margin-right: 6px; }

.msg-scroll { flex: 1; overflow-y: auto; padding: 16px 18px 8px; }
.msg-stack { display: flex; flex-direction: column; gap: 14px; }
.msg-time { align-self: center; font-size: 11px; color: #b2b2b2; background: rgba(0,0,0,.04); padding: 2px 8px; border-radius: 3px; }
.msg-sys { align-self: center; font-size: 11px; color: #9a9a9a; }
.msg { display: flex; gap: 10px; align-items: flex-start; max-width: 78%; }
.msg.is-self { align-self: flex-end; flex-direction: row-reverse; }
.msg-av { width: 38px; height: 38px; flex: none; border-radius: 4px; background: #dcdcdc; display: flex; align-items: center; justify-content: center; font-size: 20px; overflow: hidden; }
.msg-av img { width: 100%; height: 100%; object-fit: cover; }
.msg-main { min-width: 0; }
.msg-sender { font-size: 11px; color: #9a9a9a; margin-bottom: 4px; }
.bubble {
  position: relative; padding: 9px 12px; border-radius: 5px;
  background: var(--bubble-other); font-size: 14px; line-height: 1.55;
  word-break: break-word; white-space: pre-wrap; box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.bubble::after { content: ""; position: absolute; top: 12px; left: -5px; border: 5px solid transparent; border-right-color: var(--bubble-other); border-left: 0; }
.msg.is-self .bubble { background: var(--bubble-self); }
.msg.is-self .bubble::after { left: auto; right: -5px; border-right: 0; border-left: 5px solid var(--bubble-self); }
.bubble img.media { display: block; max-width: 220px; max-height: 240px; border-radius: 4px; }
.bubble .file-link { color: #1677ff; text-decoration: none; }
.msg-fail { align-self: flex-end; font-size: 12px; color: #e64340; margin-top: 2px; }

/* 空态 */
.empty-chat { position: absolute; inset: 60px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--text-3); }
.empty-logo { width: 74px; height: 74px; border-radius: 16px; background: #e8e8e8; color: #fff; font-size: 40px; display: flex; align-items: center; justify-content: center; }
.empty-tip { font-size: 12px; }

/* 输入区 */
.composer { flex: none; border-top: 1px solid var(--line); background: #fff; padding: 6px 14px 10px; display: flex; flex-direction: column; }
.composer-tools { display: flex; gap: 4px; padding: 2px 0 4px; }
.tool { width: 30px; height: 28px; border-radius: 4px; font-size: 17px; display: flex; align-items: center; justify-content: center; opacity: .75; }
.tool:hover { background: #f0f0f0; opacity: 1; }
.composer textarea { flex: none; height: 88px; resize: none; font-size: 14px; line-height: 1.6; padding: 4px 2px; background: none; }
.composer-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.composer-foot .hint { font-size: 11px; color: var(--text-3); }
.btn-send { padding: 5px 18px; border-radius: 4px; background: #e9e9e9; color: #666; font-size: 13px; }
.btn-send.can { background: var(--wx-green); color: #fff; }
.btn-send.can:hover { background: var(--wx-green-dark); }

/* ===== 表情 ===== */
.emoji-pop { position: fixed; z-index: 60; width: 320px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.emoji-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; max-height: 190px; overflow-y: auto; }
.emoji-grid button { height: 30px; font-size: 19px; border-radius: 4px; }
.emoji-grid button:hover { background: #f0f0f0; }

/* ===== 弹窗 ===== */
.modal-mask { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; }
.modal { width: 400px; max-height: 84vh; overflow-y: auto; background: #fff; border-radius: 12px; padding: 24px 26px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.modal h3 { font-size: 17px; margin-bottom: 6px; }
.modal-sub { font-size: 12px; color: var(--text-2); margin-bottom: 16px; line-height: 1.6; }
.modal-btns { display: flex; gap: 10px; margin-top: 18px; }
.btn-ghost { flex: 1; height: 40px; border-radius: 8px; background: #f2f3f5; color: #555; }
.modal-btns .btn-primary { flex: 1; margin-top: 0; height: 40px; letter-spacing: 0; }

.avatar-pick { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.avatar-pick.compact { margin-bottom: 8px; }
.avatar-preview { width: 56px; height: 56px; flex: none; border-radius: 8px; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 32px; overflow: hidden; }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-album { display: flex; align-items: center; gap: 10px; margin: -8px 0 14px; }
/* 资料里的密码：固定只读，改密走独立弹窗，避免误改 */
.pwd-fixed { display: flex; align-items: center; gap: 8px; }
.pwd-fixed input {
  flex: 1; min-width: 0; background: #f5f5f5; color: #999; cursor: default;
}
.pwd-fixed .btn-code { flex: none; height: 34px; padding: 0 12px; font-size: 13px; }
.pwd-fixed input:disabled { opacity: 1; -webkit-text-fill-color: #999; }
.album-tip { font-size: 12px; color: var(--text-3); }

/* 管理面板 */
.modal-wide { width: 640px; }
.admin-tabs { display: flex; gap: 6px; background: #f2f3f5; padding: 4px; border-radius: 10px; margin-bottom: 12px; }
.atab { flex: 1; padding: 7px 0; border-radius: 8px; font-size: 13px; color: var(--text-2); }
.atab.is-on { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.admin-item.is-clickable { cursor: pointer; }
.admin-item.is-clickable:hover { background: #f7f7f7; }
.admin-chat { margin-top: 10px; max-height: 34vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fafafa; }
.admin-chat-head { font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.admin-msg { display: flex; gap: 8px; padding: 5px 4px; border-bottom: 1px solid #efefef; font-size: 12px; align-items: flex-start; }
.admin-msg:last-child { border-bottom: none; }
.am-time { color: var(--text-3); flex: none; }
.am-who { color: #2b6cd4; flex: none; max-width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-body { color: #333; word-break: break-word; }
.am-body img { max-width: 160px; max-height: 120px; border-radius: 4px; display: block; }
.admin-toolbar { display: flex; gap: 8px; margin-bottom: 12px; }
.admin-toolbar input { flex: 1; height: 36px; border: 1px solid #e0e0e0; border-radius: 8px; background: #fafafa; padding: 0 12px; }
.admin-list { max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.admin-item { display: flex; gap: 10px; padding: 10px 8px; border-bottom: 1px solid #f0f0f0; align-items: flex-start; flex-wrap: wrap; }
.admin-item:last-child { border-bottom: none; }
.admin-av { width: 38px; height: 38px; flex: none; border-radius: 5px; background: #eee; display: flex; align-items: center; justify-content: center; font-size: 20px; overflow: hidden; }
.admin-av img { width: 100%; height: 100%; object-fit: cover; }
.admin-info { flex: 1; min-width: 160px; }
.admin-name { font-size: 14px; }
.admin-wx { font-size: 12px; color: var(--text-2); margin-left: 4px; }
.admin-meta { margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.admin-stat { font-size: 11px; color: var(--text-3); }
.admin-ops { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; padding-left: 48px; }
.tag { font-size: 11px; padding: 1px 7px; border-radius: 3px; background: #f0f0f0; color: #666; }
.tag-admin { background: #e8f0ff; color: #2b6cd4; }
.tag-on { background: #e6f7ec; color: #06ad56; }
.tag-ban { background: #fdeaea; color: #d93025; }
.tag-mute { background: #fff4e0; color: #b26a00; }
.req-badge {
  display: inline-block; min-width: 17px; height: 17px; line-height: 17px;
  padding: 0 5px; margin-left: 6px; border-radius: 9px;
  background: #fa5151; color: #fff; font-size: 11px; text-align: center; vertical-align: middle;
}
.req-list { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.req-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.req-item .u-info { flex: 1; min-width: 0; }
.req-item .mini-btn { margin-left: 4px; }
.tag-real { background: #eef3ff; color: #3b5bdb; }
.tag-cmo {
  margin-left: 6px; background: linear-gradient(135deg, #ffd76e, #f5a623);
  color: #6b3d00; font-weight: 700; letter-spacing: .3px;
  box-shadow: 0 1px 3px rgba(245, 166, 35, .35);
}
.mini-op { font-size: 12px; padding: 4px 9px; border-radius: 5px; background: #f2f3f5; color: #555; }
.mini-op:hover { background: #e8e8e8; }
.mini-op.warn { background: #fff1f0; color: #d93025; }
.mini-op.danger { background: #d93025; color: #fff; }
.mini-op.ok { background: #e6f7ec; color: #06ad56; }
.mini-op:disabled { opacity: .5; cursor: default; }

.search-result { margin-top: 6px; min-height: 60px; border-top: 1px solid var(--line); padding-top: 12px; }
.muted { color: var(--text-2); font-size: 13px; }
.user-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; }
.user-row .u-av { width: 40px; height: 40px; border-radius: 5px; background: #eee; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.user-row .u-info { flex: 1; min-width: 0; }
.user-row .u-name { font-size: 14px; }
.user-row .u-wx { font-size: 12px; color: var(--text-2); }
.mini-btn { padding: 5px 14px; border-radius: 5px; background: var(--wx-green); color: #fff; font-size: 13px; }
.mini-btn.gray { background: #e6e6e6; color: #999; }

.pick-list { max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.pick-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px; cursor: pointer; }
.pick-item:hover { background: #f6f6f6; }
.pick-item .box { width: 18px; height: 18px; border-radius: 3px; border: 1.5px solid #cfcfcf; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; }
.pick-item.is-on .box { background: var(--wx-green); border-color: var(--wx-green); }
.pick-name { font-size: 14px; }

.card-head { display: flex; align-items: center; gap: 14px; }
.card-avatar { width: 56px; height: 56px; border-radius: 8px; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.card-name { font-size: 17px; font-weight: 500; }
.card-wxid { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.card-sign { margin-top: 14px; font-size: 13px; color: #666; background: #f7f7f7; padding: 10px 12px; border-radius: 8px; }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; top: 42px; transform: translateX(-50%);
  z-index: 90; max-width: 74vw;
  background: rgba(0,0,0,.78); color: #fff; font-size: 13px;
  padding: 9px 16px; border-radius: 6px; line-height: 1.5;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.16); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

/* ===== 移动端 ===== */
@media (max-width: 820px) {
  body { background: #fff; }
  .main { width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 0; box-shadow: none; }
  .rail {
    position: absolute; left: 0; bottom: 0; top: auto; width: 100%; height: 52px;
    flex-direction: row; padding: 0; z-index: 30; border-top: 1px solid #3a3a3a;
  }
  .rail-avatar { display: none; }
  .rail-nav { flex-direction: row; flex: 1; justify-content: space-around; gap: 0; }
  .rail-btn { width: 52px; height: 52px; }
  .rail-btn.is-on::before { display: none; }
  .rail-bottom { display: none; }
  .pane-list { width: 100%; border-right: none; }
  .pane-chat { position: absolute; inset: 0; z-index: 20; background: var(--chat-bg); }
  .back-btn { display: block; }
  .chat-status { display: none; }
  .login-card { width: min(380px, 92vw); padding: 28px 22px; }
  .emoji-pop { width: min(320px, 92vw); }
  .modal { width: min(400px, 92vw); }
}
