/* ========== 中聊 H5 样式 · 微信风格主题色 #07C160 ========== */
:root {
  --green: #07C160;
  --green-dark: #06AD56;
  --bubble-mine: #95EC69;
  --bg: #EDEDED;
  --bar: #F7F7F7;
  --line: #E4E4E4;
  --text: #191919;
  --sub: #888888;
  --white: #FFFFFF;
  --danger: #FA5151;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; height: 100%; overflow: hidden;
  /* 禁止 WebView/Chrome 的 Font Boosting 自动缩放，避免文字被位图重采样发虚 */
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: var(--text); background: var(--bg); font-size: 17px;
  /* 安卓上 antialiased 会让笔画变细发淡（看着像半透明），改为浏览器默认灰度渲染 */
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}
button, input, textarea { font-family: inherit; font-size: inherit; outline: none; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
svg { display: block; }
.hidden { display: none !important; }

#app, .page { position: absolute; inset: 0; }
.page { display: none; flex-direction: column; }
.page.active { display: flex; }

/* ---------- 登录 / 注册 ---------- */
#page-auth {
  background: linear-gradient(165deg, #07C160 0%, #06AD56 55%, #059B4C 100%);
  align-items: center; justify-content: flex-start;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: calc(30px + env(safe-area-inset-top)) 0 calc(26px + env(safe-area-inset-bottom));
}
.auth-wrap { width: 88%; max-width: 400px; flex: 0 0 auto; margin: auto 0; }
.auth-logo {
  color: #FFFFFF; font-size: 50px; font-weight: 700; letter-spacing: 8px;
  text-align: center; text-shadow: none;
}
.auth-sub { color: #FFFFFF; text-align: center; margin-top: 6px; font-size: 16px; letter-spacing: 2px; font-weight: 500; }
.auth-card {
  background: #fff; border-radius: 14px; padding: 22px 20px 16px;
  margin-top: 26px; box-shadow: 0 12px 36px rgba(0,0,0,.14);
}
.field { margin-bottom: 14px; }
.field input {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid #E2E2E2;
  border-radius: 8px; background: #FAFAFA; color: var(--text);
}
.field input:focus { border-color: var(--green); background: #fff; }
.btn-primary {
  width: 100%; height: 46px; border-radius: 8px; background: var(--green);
  color: #fff; font-size: 18px; font-weight: 600; letter-spacing: 2px; margin-top: 6px;
}
.btn-primary:active { background: var(--green-dark); }
.btn-link { display: block; width: 100%; color: var(--green); font-size: 16px; margin-top: 16px; }

/* ---------- 顶部栏 ---------- */
/* 关键：高度用 min-height + 安全区相加，绝不能让 env(safe-area-inset-top) 挤压内容区，
   否则刘海屏/全面屏上标题会被压成一条、看着发虚像半透明 */
.topbar {
  height: auto; min-height: calc(52px + env(safe-area-inset-top));
  background: #FFFFFF; display: flex; flex: 0 0 auto;
  align-items: center; justify-content: space-between;
  padding: env(safe-area-inset-top) 16px 0;
  border-bottom: 1px solid #E2E2E2;
  position: relative; z-index: 20;
}
.topbar-title {
  font-size: 19px; font-weight: 700; color: #000000;
  line-height: 52px; letter-spacing: .5px;
  -webkit-font-smoothing: auto; text-shadow: none;
}
.icon-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: #333; }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Tab ---------- */
.tab-panel { display: none; flex: 1; flex-direction: column; min-height: 0; }
.tab-panel.active { display: flex; }
.scroll-area { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.tabbar {
  height: auto; min-height: calc(56px + env(safe-area-inset-bottom));
  display: flex; flex: 0 0 auto; background: #FFFFFF;
  border-top: 1px solid #E2E2E2; padding-bottom: env(safe-area-inset-bottom);
}
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; color: #666666; font-size: 12px; position: relative;
}
.tab-item.active { color: var(--green); }
.tab-item svg { width: 25px; height: 25px; margin-bottom: 2px; }
.tab-badge {
  position: absolute; top: 4px; left: 55%; min-width: 17px; height: 17px;
  border-radius: 9px; background: var(--danger); color: #fff; font-size: 12px;
  line-height: 17px; text-align: center; padding: 0 4px; font-style: normal;
}

/* ---------- 列表单元格 ---------- */
.cell {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px;
  background: #fff; border-bottom: 1px solid #F0F0F0; min-height: 56px;
}
.cell:active { background: #F5F5F5; }
.cell-avatar { width: 44px; height: 44px; border-radius: 6px; flex: 0 0 44px; object-fit: cover; }
.cell-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: 0 0 40px; }
.cell-icon svg { width: 23px; height: 23px; }
.green-icon { background: #E7F8EE; color: var(--green); }
.blue-icon { background: #E8F1FD; color: #4A90E2; }
.cell-label { flex: 1; font-size: 17px; }
.cell-sub { color: var(--sub); font-size: 15px; max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-arrow { color: #C8C8C8; font-size: 22px; }
.section-title { padding: 10px 16px 6px; color: var(--sub); font-size: 14px; background: var(--bg); }

/* 会话列表项 */
.conv-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid #F2F2F2; }
.conv-item:active { background: #F5F5F5; }
.conv-main { flex: 1; min-width: 0; }
.conv-top { display: flex; justify-content: space-between; align-items: center; }
.conv-name { font-size: 18px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-time { font-size: 13px; color: #B0B0B0; margin-left: 8px; flex-shrink: 0; }
.conv-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; }
.badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--danger); color: #fff; font-size: 13px; line-height: 18px; text-align: center;
}

/* 头像占位 */
.avatar-box { width: 44px; height: 44px; border-radius: 6px; flex: 0 0 44px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #D9D9D9; color: #fff; font-size: 20px; font-weight: 500; }
.avatar-box img { width: 100%; height: 100%; object-fit: cover; }
.avatar-box.group { background: #4A90E2; }
.avatar-box.sm { width: 36px; height: 36px; flex-basis: 36px; font-size: 17px; }
.avatar-box.lg { width: 64px; height: 64px; flex-basis: 64px; font-size: 28px; border-radius: 8px; }

/* ---------- 我的 ---------- */
.me-card { background: #fff; display: flex; align-items: center; gap: 14px; padding: 22px 16px; margin-bottom: 8px; }
.me-info { flex: 1; }
.me-name { font-size: 21px; font-weight: 600; }
.me-sign { color: var(--sub); font-size: 15px; margin-top: 5px; }
.logout-cell { margin-top: 8px; justify-content: center; color: var(--danger); }

/* ---------- 聊天窗口 ---------- */
.chat-header {
  height: auto; min-height: calc(52px + env(safe-area-inset-top));
  background: #FFFFFF; border-bottom: 1px solid #E2E2E2;
  display: flex; flex: 0 0 auto; align-items: center;
  padding: env(safe-area-inset-top) 8px 0;
  position: relative; z-index: 20;
}
/* 标题绝对居中：不再受左右按钮宽度差影响（返回键放大后仍对齐屏幕正中） */
.chat-header > .chat-title {
  position: absolute; left: 0; right: 0; top: env(safe-area-inset-top); bottom: 0;
  text-align: center; font-size: 19px; font-weight: 700; color: #000000;
  line-height: 52px; padding: 0 52px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  pointer-events: none;
  -webkit-font-smoothing: auto; text-shadow: none;
}
.chat-header > button { position: relative; z-index: 2; }
/* 标题已脱离文档流，用 space-between 把返回键顶左、右侧按钮顶右 */
.chat-header { justify-content: space-between; }
.back-btn { width: 48px; height: 48px; padding: 0; display: flex; align-items: center; justify-content: center; }
.back-btn svg { width: 33px; height: 33px; flex: 0 0 33px; }
/* 头部右侧按钮与返回键等宽，保证标题绝对居中（返回键放大后不再偏移） */
.chat-header .icon-btn { width: 48px; height: 48px; padding: 0; }
.chat-header .icon-btn svg { width: 26px; height: 26px; flex: 0 0 26px; }
.msg-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 0 6px; background: var(--bg); }
.msg-row { display: flex; align-items: flex-start; gap: 10px; margin: 0 12px 16px; }
.msg-row.mine { flex-direction: row-reverse; }
.msg-avatar { width: 40px; height: 40px; border-radius: 5px; flex: 0 0 40px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #D9D9D9; color: #fff; font-size: 18px; }
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-bubble {
  position: relative; max-width: 72%; background: #fff; border-radius: 6px;
  padding: 10px 12px; font-size: 17px; line-height: 1.5; word-break: break-word; white-space: pre-wrap;
}
.msg-row.mine .msg-bubble { background: var(--bubble-mine); }
.msg-bubble::after {
  content: ''; position: absolute; top: 13px; left: -5px; width: 0; height: 0;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-right: 6px solid #fff;
}
.msg-row.mine .msg-bubble::after { left: auto; right: -5px; border-right: 0; border-left: 6px solid var(--bubble-mine); }
.msg-bubble.image { padding: 4px; background: #fff; }
.msg-bubble.image img { display: block; max-width: 200px; max-height: 200px; border-radius: 4px; }
.msg-bubble.voice { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 78px; cursor: pointer; user-select: none; -webkit-user-select: none; }
.msg-bubble.voice::after { display: none; }
.msg-bubble.voice:active { transform: scale(.97); }
/* 声波条：静止时是音量图标，播放时逐条跳动（微信式反馈） */
.voice-wave { display: flex; align-items: center; gap: 2.5px; height: 16px; flex: 0 0 auto; }
.voice-wave i { width: 3px; height: 6px; border-radius: 2px; background: currentColor; opacity: .62; transition: height .12s; }
.voice-wave i:nth-child(2) { height: 10px; }
.voice-wave i:nth-child(3) { height: 14px; }
.msg-bubble.voice.playing { background: #CDEFC9; box-shadow: inset 0 0 0 1.5px rgba(7, 193, 96, .35); }
.msg-row.mine .msg-bubble.voice.playing { background: #7FE05A; }
.msg-bubble.voice.playing .voice-wave i { opacity: 1; animation: voiceBar .8s infinite ease-in-out; }
.msg-bubble.voice.playing .voice-wave i:nth-child(2) { animation-delay: .16s; }
.msg-bubble.voice.playing .voice-wave i:nth-child(3) { animation-delay: .32s; }
@keyframes voiceBar { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1.25); } }
.voice-dur { font-size: 15px; opacity: .78; flex: 0 0 auto; }
/* 发送中 / 发送失败 状态 */
.msg-status { margin-top: 4px; font-size: 12px; color: #999; text-align: right; }
.msg-row.mine .msg-status { text-align: right; }
.msg-status.failed { color: var(--danger); }
.msg-row.failed .msg-bubble { opacity: .72; }
.msg-bubble.system { background: rgba(0,0,0,.05); color: #666; font-size: 15px; text-align: center; max-width: 88%; align-self: center; }
.msg-bubble.system::after { display: none; }
.msg-row.system { justify-content: center; }
.msg-meta { font-size: 13px; color: #9A9A9A; margin-bottom: 3px; max-width: 72%; }
.msg-row.mine .msg-meta { text-align: right; }
.play-icon { width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid #333; flex: 0 0 11px; }
.typing-tip { padding: 0 16px 8px; color: #999; font-size: 14px; }
.input-bar {
  position: relative; flex-wrap: wrap;
  min-height: 60px; display: flex; align-items: center; gap: 5px; padding: 8px 6px;
  background: #FFFFFF; border-top: 1px solid #E2E2E2; padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
/* 表情面板：占据输入栏整行、位于输入框上方，弹出时挤压消息区而不是遮挡消息 */
.emoji-panel {
  flex: 0 0 100%; order: -1;
  background: #F7F7F7; border: 1px solid var(--line); border-radius: 12px;
  padding: 8px; margin: 0 0 8px;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
  max-height: 208px; overflow-y: auto;
}
.emoji-panel .emoji {
  font-size: 28px; text-align: center; line-height: 40px; border-radius: 8px; cursor: pointer;
}
.emoji-panel .emoji:active { background: #E8F7EE; }
/* 更多面板：发红包 / 转账 */
.more-panel {
  flex: 0 0 100%; order: -1;
  background: #F7F7F7; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 10px 10px; margin: 0 0 8px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.more-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 2px 6px; border-radius: 10px; color: #4A4A4A; font-size: 13px;
}
.more-item:active { background: #ECECEC; }
.more-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.more-icon svg { width: 30px; height: 30px; }
.more-icon.rp { background: linear-gradient(135deg, #F5483B, #D8342A); }
.more-icon.tf { background: linear-gradient(135deg, #FBAD3B, #F08A1D); }
.input-bar input[type=text] {
  flex: 1; min-width: 0; height: 44px; border: 1px solid #E0E0E0; border-radius: 22px;
  padding: 0 14px; background: #FFFFFF; font-size: 17px;
}
.input-tool {
  width: 40px; height: 44px; flex: 0 0 40px; display: flex; align-items: center;
  justify-content: center; color: #333333; font-size: 14px; border-radius: 50%;
  padding: 0; /* 按钮 UA 默认 padding:1px 6px 会把图标挤窄 */
}
.input-tool svg { width: 32px; height: 32px; flex: 0 0 32px; }
/* 窄屏（320dp 老机型）收一点，保证输入框还够打字 */
@media (max-width: 344px) {
  .input-bar { gap: 3px; padding-left: 4px; padding-right: 4px; }
  .input-tool { width: 36px; flex: 0 0 36px; }
  .input-tool svg { width: 29px; height: 29px; flex: 0 0 29px; }
  .btn-send { padding: 0 10px; font-size: 16px; }
}
/* 表情键：淡绿底 + 绿色线条，紧贴输入框右侧，一眼能找到 */
.input-tool-emoji { background: #E7F8EE; color: var(--green); }
.input-tool-emoji:active { background: #D5F3E1; }
.btn-send { height: 42px; padding: 0 13px; border-radius: 21px; background: var(--green); color: #fff; font-size: 17px; font-weight: 500; }
.btn-hold-voice {
  flex: 1; height: 42px; border-radius: 6px; background: #fff; border: 1px solid #E0E0E0;
  color: #333; font-size: 17px;
}
.btn-hold-voice.recording { background: #D9D9D9; color: #C00; }

/* ---------- 弹层 / 提示 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-box { width: 100%; max-width: 360px; background: #fff; border-radius: 12px; overflow: hidden; max-height: 78vh; display: flex; flex-direction: column; }
.modal-title { padding: 18px 18px 6px; font-size: 19px; font-weight: 600; text-align: center; }
.modal-body { padding: 10px 18px 18px; overflow-y: auto; font-size: 16px; line-height: 1.6; }
.modal-body.center { text-align: center; }
.modal-actions { display: flex; border-top: 1px solid var(--line); }
.modal-actions button { flex: 1; height: 48px; font-size: 18px; color: #333; }
.modal-actions button + button { border-left: 1px solid var(--line); }
.modal-actions .primary { color: var(--green); font-weight: 600; }
.modal-actions .danger { color: var(--danger); }
.modal-input { width: 100%; height: 40px; border: 1px solid #E0E0E0; border-radius: 6px; padding: 0 10px; margin: 8px 0; }
.modal-list { max-height: 46vh; overflow-y: auto; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #F2F2F2; }
.check-row input { width: 18px; height: 18px; accent-color: var(--green); }
.check-row .avatar-box { width: 34px; height: 34px; flex-basis: 34px; font-size: 16px; }
#toast-root { position: fixed; top: 42%; left: 50%; transform: translate(-50%, -50%); z-index: 300; pointer-events: none; }
.toast {
  background: rgba(0,0,0,.76); color: #fff; padding: 10px 18px; border-radius: 8px;
  font-size: 16px; white-space: nowrap; animation: toastIn .18s ease;
}
@keyframes toastIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
.loading { text-align: center; color: var(--sub); padding: 26px; font-size: 15px; }
.empty { text-align: center; color: #B5B5B5; padding: 48px 0; font-size: 16px; }
.mini-btn {
  padding: 4px 10px; border-radius: 4px; border: 1px solid #E0E0E0;
  font-size: 14px; color: #666; background: #fff; flex-shrink: 0;
}
.mini-btn.green { color: var(--green); border-color: var(--green); }
.mini-btn.red { color: var(--danger); border-color: var(--danger); }
.group-row { cursor: pointer; }

/* ========== 我的页 v2（按图2升级） ========== */
.me-scroll { background: #F5F5F5; }
.me-card-v2 {
  background: #fff; display: flex; align-items: center; gap: 14px;
  padding: 30px 18px 22px; margin-bottom: 10px; min-height: 100px;
}
.me-card-v2 .avatar-box { width: 62px; height: 62px; flex-basis: 62px; font-size: 28px; border-radius: 8px; }
.me-card-v2 .me-info { flex: 1; min-width: 0; }
.me-card-v2 .me-name { font-size: 20px; font-weight: 600; color: #222; }
.me-card-v2 .me-uid { font-size: 14px; color: #9A9A9A; margin-top: 6px; }
.me-group { background: #fff; margin-bottom: 10px; }
.me-group .cell.v2 { padding: 0 18px; min-height: 54px; border-bottom: 1px solid #F2F2F2; }
.me-group .cell.v2:last-child { border-bottom: none; }
.cell-icon {
  width: 30px; height: 30px; flex-basis: 30px; margin-right: 12px;
  display: flex; align-items: center; justify-content: center;
}
.cell-icon svg { width: 22px; height: 22px; }
.logout-cell.v2 { justify-content: center; color: #555; }

/* ========== 会议入口页（图1） ========== */
.meeting-entry { flex: 1; background: #fff; overflow-y: auto; padding: 26px 20px; }
.mt-grid { display: flex; gap: 22px; }
.mt-tile { width: 84px; text-align: center; font-size: 16px; color: #333; cursor: pointer; }
.mt-icon {
  width: 72px; height: 72px; border-radius: 14px; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(43,127,255,.24);
}
.mt-icon svg { width: 36px; height: 36px; }
.mt-icon.join { background: linear-gradient(145deg, #5B9DFF, #2B7FFF); }
.mt-icon.create { background: linear-gradient(145deg, #5B9DFF, #2B7FFF); }
.mt-tile:active .mt-icon { transform: scale(.95); }
.mt-section-title { margin: 34px 0 8px; font-size: 15px; color: #9A9A9A; }
.mt-my-list .mt-my-row {
  display: flex; align-items: center; padding: 14px 0; border-bottom: 1px solid #F2F2F2;
}
.mt-my-row .mt-my-info { flex: 1; min-width: 0; }
.mt-my-row .mt-my-title { font-size: 17px; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-my-row .mt-my-no { font-size: 14px; color: #9A9A9A; margin-top: 4px; letter-spacing: 1px; }
.mt-my-row .mt-my-tag { font-size: 14px; padding: 3px 8px; border-radius: 10px; }
.mt-my-tag.live { background: #E8F8EE; color: #07C160; }
.mt-my-tag.ended { background: #F2F2F2; color: #999; }
.mt-my-actions { display: flex; gap: 8px; margin-left: 10px; }

/* ========== 会议室内 ========== */
#page-meeting-room { background: #F5F6F8; }
.mroom-body { flex: 1; overflow-y: auto; padding: 20px; }
.mroom-no-wrap {
  background: linear-gradient(150deg, #2B7FFF, #1759D8); border-radius: 16px;
  padding: 24px 20px; color: #fff; text-align: center;
  box-shadow: 0 8px 24px rgba(23,89,216,.22);
}
.mroom-label { font-size: 14px; opacity: .82; }
.mroom-no { font-size: 42px; font-weight: 700; letter-spacing: 8px; margin: 6px 0; font-variant-numeric: tabular-nums; }
.mroom-topic { font-size: 16px; opacity: .9; }
.mroom-copy {
  margin-top: 14px; padding: 7px 16px; border-radius: 16px; font-size: 14px;
  background: rgba(255,255,255,.2); color: #fff;
}
.mroom-status {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 22px 0 10px; font-size: 16px; color: #888;
}
.mroom-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #C8C8C8; }
.mroom-status.live .dot { background: #07C160; animation: pulse 1s infinite; }
.mroom-status.live { color: #07C160; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(1.5); } }
.mroom-speakers { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 12px 0 22px; }
.mroom-speaker { text-align: center; font-size: 14px; color: #555; width: 110px; }
.mroom-speaker > div:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.mroom-speaker .avatar-box { width: 56px; height: 56px; margin: 0 auto 6px; border-radius: 50%; font-size: 24px; border: 3px solid transparent; }
.mroom-speaker.speaking .avatar-box { border-color: #07C160; box-shadow: 0 0 0 4px rgba(7,193,96,.18); }
.mroom-tip { font-size: 14px; color: #A0A0A0; text-align: center; line-height: 1.6; }
.mroom-controls { background: #fff; padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid #EAEAEA; }
.mroom-admin-ctrl { text-align: center; }
.btn-talk {
  width: 100%; height: 52px; border-radius: 10px; background: var(--green); color: #fff;
  font-size: 19px; font-weight: 600; letter-spacing: 2px; user-select: none; -webkit-user-select: none;
  touch-action: none;
}
.btn-talk.talking { background: var(--danger); }
.mroom-hint { font-size: 14px; color: #A0A0A0; margin-top: 10px; text-align: center; }
.mroom-listener-ctrl { text-align: center; padding: 6px 0 2px; }
.listener-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px;
  background: #E8F8EE; color: #07C160; border-radius: 20px; font-size: 16px;
}
.listener-badge svg { width: 18px; height: 18px; }
.mroom-bottom-actions { display: flex; gap: 12px; margin-top: 16px; }
.mt-btn { flex: 1; height: 42px; border-radius: 8px; font-size: 17px; }
.mt-btn.ghost { background: #F2F2F2; color: #555; }
.mt-btn.danger { background: #FFECEC; color: var(--danger); }
.mt-btn.primary { background: var(--green); color: #fff; font-weight: 600; }

/* ========== 通用二级功能页 ========== */
.feature-action { font-size: 16px; color: var(--green); padding: 0 6px; cursor: pointer; min-width: 46px; text-align: center; }
.feature-body { flex: 1; overflow-y: auto; background: #F5F5F5; padding: 14px; }
.feature-card { background: #fff; border-radius: 12px; padding: 18px; margin-bottom: 12px; }
.wallet-balance { text-align: center; padding: 18px 0 12px; }
.wallet-balance .lbl { font-size: 15px; color: #999; }
.wallet-balance .val { font-size: 42px; font-weight: 700; color: #F5A623; margin-top: 6px; }
.wallet-note { text-align: center; font-size: 14px; color: #B0B0B0; padding: 10px 0 18px; }
.log-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #F2F2F2; }
.log-row:last-child { border-bottom: none; }
.log-row .t { font-size: 16px; color: #333; }
.log-row .d { font-size: 14px; color: #AAA; margin-top: 4px; }
.log-row .a { font-size: 17px; font-weight: 600; }
.log-row .a.in { color: #E4393C; }
.log-row .a.out { color: #07C160; }
.verify-status { text-align: center; padding: 10px 0 18px; }
.verify-badge { display: inline-block; padding: 8px 18px; border-radius: 18px; font-size: 16px; background: #F2F2F2; color: #888; }
.verify-badge.ok { background: #E8F8EE; color: #07C160; }
.verify-badge.wait { background: #FFF6E6; color: #E99500; }
.verify-badge.no { background: #FFECEC; color: var(--danger); }
.verify-field { margin-bottom: 12px; }
.verify-field label { display: block; font-size: 15px; color: #666; margin-bottom: 6px; }
.verify-field input { width: 100%; height: 44px; border: 1px solid #E2E2E2; border-radius: 8px; padding: 0 12px; background: #FAFAFA; }
.feature-primary { width: 100%; height: 44px; border-radius: 8px; background: var(--green); color: #fff; font-size: 17px; font-weight: 600; margin-top: 8px; }
.fav-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid #F2F2F2; }
.fav-row:last-child { border-bottom: none; }
.fav-row .fav-main { flex: 1; min-width: 0; font-size: 16px; color: #333; word-break: break-all; }
.fav-row .fav-meta { font-size: 14px; color: #AAA; margin-top: 4px; }
.fav-row img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }
.moment-publish { display: flex; gap: 8px; align-items: center; }
.moment-publish textarea { flex: 1; height: 66px; border: 1px solid #E2E2E2; border-radius: 8px; padding: 10px; resize: none; background: #FAFAFA; font-size: 16px; }
.moment-item { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.moment-hd { display: flex; align-items: center; gap: 10px; }
.moment-hd .avatar-box { width: 40px; height: 40px; flex-basis: 40px; font-size: 18px; }
.moment-hd .mn { font-size: 17px; font-weight: 600; color: #333; }
.moment-hd .mt { font-size: 14px; color: #AAA; margin-top: 3px; }
.moment-txt { font-size: 16px; color: #333; line-height: 1.6; margin: 12px 0; white-space: pre-wrap; }
.moment-img { width: 100%; max-height: 240px; object-fit: cover; border-radius: 8px; }
.moment-acts { display: flex; gap: 18px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #F2F2F2; }
.moment-acts button { font-size: 15px; color: #666; display: flex; align-items: center; gap: 4px; }
.moment-acts button.liked { color: #E4393C; }
.moment-cmts { margin-top: 10px; background: #F7F7F7; border-radius: 6px; padding: 8px 10px; font-size: 15px; color: #555; line-height: 1.7; }
.emoji-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.emoji-grid .emoji { font-size: 30px; text-align: center; padding: 10px 0; background: #fff; border-radius: 10px; cursor: pointer; }
.emoji-grid .emoji:active { background: #E8F8EE; }
.setting-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #F2F2F2; font-size: 16px; }
.setting-row:last-child { border-bottom: none; }
.setting-row .val { color: #999; font-size: 15px; }

/* ========== 红包 ========== */
.rp-balance-wrap { text-align: center; font-size: 15px; color: #888; padding: 4px 0 14px; }
.rp-balance-wrap b { color: #F5A623; font-size: 18px; }
.rp-field { margin-bottom: 12px; }
.rp-field label { display: block; font-size: 15px; color: #666; margin-bottom: 6px; }
.rp-field input { width: 100%; height: 44px; border: 1px solid #E2E2E2; border-radius: 8px; padding: 0 12px; background: #FAFAFA; font-size: 17px; }
.rp-tip { font-size: 14px; color: #B0B0B0; line-height: 1.6; padding-top: 4px; }
.rp-bubble {
  display: flex; align-items: center; gap: 10px; width: 200px; min-height: 76px;
  background: linear-gradient(135deg, #F5483B, #D8342A); border-radius: 8px;
  padding: 12px; color: #fff; cursor: pointer;
}
.rp-bubble.opened { background: linear-gradient(135deg, #E8938E, #CF7B76); }
.rp-icon { font-size: 34px; }
.rp-info { flex: 1; min-width: 0; }
.rp-wish { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-sub { font-size: 13px; opacity: .85; margin-top: 6px; }

/* ---------- 转账卡片 ---------- */
.tf-bubble {
  display: flex; align-items: center; gap: 12px; width: 208px; min-height: 78px;
  background: linear-gradient(135deg, #FBAD3B, #F08A1D); border-radius: 8px;
  padding: 12px 14px; color: #fff; cursor: pointer;
}
.tf-bubble.done { background: linear-gradient(135deg, #F0C89A, #D9A874); }
.tf-bubble.returned { background: linear-gradient(135deg, #C9C9C9, #ADADAD); }
.tf-icon {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%;
  background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center;
  font-size: 21px; font-weight: 700; line-height: 1;
}
.tf-info { flex: 1; min-width: 0; }
.tf-amt { font-size: 18px; font-weight: 600; letter-spacing: .3px; }
.tf-note { font-size: 13px; opacity: .9; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-result { text-align: center; padding: 8px 0 4px; }
.tf-result-amt { font-size: 40px; font-weight: 700; color: #F08A1D; }
.tf-result-note { font-size: 15px; color: #888; margin-top: 10px; word-break: break-all; }
.tf-result-state { font-size: 15px; color: #999; margin-top: 8px; }
.tf-field { margin-bottom: 12px; }
.tf-field label { display: block; font-size: 14px; color: #888; margin-bottom: 6px; }
.tf-field input {
  width: 100%; height: 46px; border: 1px solid #E3E3E3; border-radius: 10px;
  padding: 0 14px; font-size: 17px; background: #FAFAFA;
}
.tf-field input:focus { border-color: var(--green); background: #fff; }
.tf-balance-wrap { font-size: 14px; color: #888; margin-bottom: 14px; }
.tf-balance-wrap b { color: #F08A1D; font-size: 17px; }
.rp-result { text-align: center; padding: 10px 0; }
.rp-result-amt { font-size: 40px; font-weight: 700; color: #F5A623; }
.rp-lucky { font-size: 17px; color: #E4393C; margin-top: 8px; font-weight: 600; }
.rp-result-wish { font-size: 15px; color: #999; margin-top: 10px; }
.rp-detail-head { text-align: center; padding: 6px 0 16px; border-bottom: 1px solid #F2F2F2; }
.rp-detail-amt { font-size: 34px; font-weight: 700; color: #F5A623; }
.rp-detail-wish { font-size: 16px; color: #555; margin-top: 8px; }
.rp-detail-status { font-size: 14px; color: #AAA; margin-top: 8px; }
.rp-grab-list { max-height: 40vh; overflow-y: auto; }
.rp-grab-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F7F7F7; }
.rp-grab-row:last-child { border-bottom: none; }
.rp-grab-avatar { width: 34px; height: 34px; border-radius: 50%; background: #07C160; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.rp-grab-name { flex: 1; font-size: 16px; color: #333; }
.rp-grab-amt { font-size: 16px; font-weight: 600; color: #E4393C; }
.rp-lucky-tag { font-size: 13px; background: #FFF3E0; color: #E99500; padding: 2px 6px; border-radius: 8px; }

/* ---------- 邀请好友 ---------- */
.invite-poster {
  background: linear-gradient(160deg, #07C160 0%, #06AD56 55%, #059B4C 100%);
  border-radius: 16px; padding: 20px 18px 16px; color: #fff; text-align: center;
  margin-bottom: 12px; box-shadow: 0 8px 22px rgba(7,193,96,.22);
}
.inv-brand { font-size: 14px; letter-spacing: 4px; opacity: .9; }
.inv-slogan { font-size: 23px; font-weight: 700; margin: 6px 0 16px; letter-spacing: 1px; }
.inv-qr {
  width: 182px; height: 182px; background: #fff; border-radius: 12px;
  margin: 0 auto; padding: 8px; display: flex; align-items: center; justify-content: center;
}
.inv-qr canvas, .inv-qr img { display: block; max-width: 100%; }
.inv-code-line { margin-top: 14px; font-size: 15px; opacity: .95; }
.inv-code-line b { font-size: 21px; letter-spacing: 2px; margin-left: 4px; }
.inv-scan { font-size: 13px; opacity: .85; margin-top: 6px; }
.inv-actions { display: flex; gap: 10px; }
.inv-btn {
  flex: 1; height: 44px; border-radius: 22px; background: #F2F2F2;
  color: #333; font-size: 15px; font-weight: 500;
}
.inv-btn:active { background: #E6E6E6; }
.inv-btn.primary { background: var(--green); color: #fff; }
.inv-btn.primary:active { background: var(--green-dark); }
.inv-link { margin-top: 10px; font-size: 13px; color: #8A8A8A; word-break: break-all; text-align: center; line-height: 1.5; }
.inv-tip { font-size: 13px; color: #9A9A9A; line-height: 1.65; padding: 2px 4px 10px; }
.inv-avatar {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%;
  background: #E7F8EE; color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600;
}
.inv-done { font-size: 13px; color: #4CAF50; flex: 0 0 auto; }

/* ---------- 添加好友：搜索结果列表 ---------- */
.user-result-list { max-height: 46vh; overflow-y: auto; margin-top: 4px; }
.user-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 2px; border-bottom: 1px solid #F2F2F2;
}
.user-row:last-child { border-bottom: 0; }
.user-main { flex: 1; min-width: 0; }
.user-name {
  font-size: 16px; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-acc { font-size: 12px; color: #999; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-tag { font-size: 13px; color: #B0B0B0; flex-shrink: 0; }
.user-tip { font-size: 13px; color: #999; padding: 18px 4px; text-align: center; }
