/* 聊天宝 - 样式（电脑 + 手机自适应） */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --bg: #f3f4f6;
  --panel: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --text-soft: #6b7280;
  --green: #10b981;
  --red: #ef4444;
}
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}
.hidden { display: none !important; }
.mobile-only { display: none; }

/* ===== 登录/注册 ===== */
.auth-view {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  padding: 16px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.auth-logo { text-align: center; margin-bottom: 18px; }
.logo-bubble {
  width: 64px; height: 64px; margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff; font-size: 30px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.auth-card h1 { font-size: 22px; }
.auth-sub { color: var(--text-soft); font-size: 13px; margin-top: 4px; }
.auth-tabs { display: flex; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.tab {
  flex: 1; padding: 10px 0; background: none; border: none;
  font-size: 15px; color: var(--text-soft); cursor: pointer; border-bottom: 2px solid transparent;
}
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.inp {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; margin-bottom: 10px; outline: none; background: #fafafa;
}
.inp:focus { border-color: var(--primary); background: #fff; }
.auth-hint { font-size: 12px; color: var(--text-soft); margin-bottom: 6px; }
.auth-error { font-size: 13px; color: var(--red); min-height: 18px; margin-bottom: 6px; }
.btn-primary {
  width: 100%; padding: 12px; border: none; border-radius: 10px;
  background: var(--primary); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.btn-primary:active { background: var(--primary-dark); }
.btn-primary:disabled { opacity: .6; }

/* ===== 主界面 ===== */
.main-view { display: flex; height: 100vh; }
.sidebar {
  width: 300px; min-width: 240px; background: var(--panel);
  border-right: 1px solid var(--border); display: flex; flex-direction: column;
}
.sidebar-head { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.me { display: flex; align-items: center; gap: 10px; }
.me-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0;
  cursor: pointer; overflow: hidden; font-size: 16px;
}
.me-avatar:hover { opacity: .85; }
.me-avatar .avatar-img { width: 100%; height: 100%; object-fit: cover; }
.me-info { flex: 1; min-width: 0; }
.me-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-uid { font-size: 12px; color: var(--text-soft); }
.btn-small {
  padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; font-size: 12px; color: var(--text); cursor: pointer; white-space: nowrap;
}
.btn-small:active { background: #f3f4f6; }
.btn-small.danger { color: var(--red); border-color: #fecaca; }
.btn-audio-call { color: var(--green); border-color: #a7f3d0; font-weight: 600; }
.btn-video-call { color: var(--primary); border-color: #bfdbfe; font-weight: 600; }
.sidebar-search { position: relative; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.sidebar-search .inp { margin: 0; }
.search-results {
  position: absolute; left: 14px; right: 14px; top: 52px; z-index: 20;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
  max-height: 240px; overflow-y: auto;
}
.search-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px;
}
.search-item:last-child { border-bottom: none; }
.search-item .sname { font-weight: 500; }
.search-item .sbtn {
  padding: 5px 10px; border: none; border-radius: 8px; background: var(--primary); color: #fff; font-size: 12px; cursor: pointer;
}
.search-item .sbtn:disabled { background: #9ca3af; }
.search-tip { padding: 12px; font-size: 13px; color: var(--text-soft); text-align: center; }
.requests-section { padding: 10px 14px; border-bottom: 1px solid var(--border); background: #fffbeb; }
.section-title { font-size: 12px; color: var(--text-soft); padding: 8px 14px; font-weight: 600; }
.btn-requests {
  display: flex; align-items: center; justify-content: space-between; width: calc(100% - 28px);
  margin: 0 14px 8px; padding: 10px 12px; border: 1px solid #fbbf24; background: #fffbeb;
  border-radius: 10px; font-size: 14px; font-weight: 600; color: #b45309; cursor: pointer;
  box-sizing: border-box;
}
.btn-requests:hover { background: #fef3c7; }
.req-badge {
  min-width: 20px; height: 20px; border-radius: 10px; background: #ef4444; color: #fff;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.req-modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(17,24,39,.5);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.req-modal-card {
  width: 100%; max-width: 360px; background: #fff; border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25); overflow: hidden;
}
.req-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #f3f4f6; font-weight: 700; font-size: 15px;
}
.req-modal-list { padding: 6px 16px; max-height: 320px; overflow-y: auto; }
.req-modal-empty { padding: 24px 16px; text-align: center; color: #9ca3af; font-size: 14px; }
.req-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; font-size: 14px; gap: 8px;
}
.req-item .rname { font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req-btns { display: flex; gap: 6px; }
.req-btns .ok { border: none; background: var(--green); color: #fff; padding: 5px 10px; border-radius: 8px; cursor: pointer; font-size: 12px; }
.req-btns .no { border: 1px solid var(--border); background: #fff; padding: 5px 10px; border-radius: 8px; cursor: pointer; font-size: 12px; }
.friends-list { flex: 1; overflow-y: auto; }
.friend-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; border-bottom: 1px solid #f3f4f6;
}
.friend-item:hover { background: #f9fafb; }
.friend-item.active { background: #eff6ff; }
.friend-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: #e0e7ff; color: #4338ca;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex-shrink: 0; position: relative;
  overflow: hidden;
}
.friend-avatar .avatar-img { width: 100%; height: 100%; object-fit: cover; }
.dot {
  position: absolute; bottom: 0; right: 0; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid #fff; background: #9ca3af;
}
.dot.online { background: var(--green); }
.friend-meta { flex: 1; min-width: 0; }
.friend-name { font-size: 15px; font-weight: 500; }
.note-sub { font-size: 11px; color: var(--text-soft); margin-left: 6px; font-weight: 400; }
.friend-status { font-size: 12px; color: var(--text-soft); }
.sidebar-empty { padding: 30px 14px; text-align: center; color: var(--text-soft); font-size: 13px; }

/* ===== 聊天区 ===== */
.chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-soft);
}
.empty-bubble {
  width: 80px; height: 80px; border-radius: 50%; background: #e5e7eb; color: #9ca3af;
  font-size: 36px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.chat-panel { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  border-bottom: 1px solid var(--border); background: #fff;
}
.chat-peer { flex: 1; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.peer-dot { width: 10px; height: 10px; border-radius: 50%; background: #9ca3af; }
.peer-dot.online { background: var(--green); }
.chat-actions { display: flex; gap: 6px; }
.messages { flex: 1; overflow-y: auto; padding: 16px; background: #f9fafb; }
.msg-row { display: flex; align-items: flex-start; margin-bottom: 14px; }
.msg-row.mine { justify-content: flex-end; }
.msg-avatar {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  margin: 0 8px; background: #dbeafe; color: #fff; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msg-main { max-width: 70%; display: flex; flex-direction: column; }
.msg-row.mine .msg-main { align-items: flex-end; }
.msg-bubble {
  padding: 9px 13px; border-radius: 14px; font-size: 15px; line-height: 1.45;
  word-break: break-word; position: relative; white-space: pre-wrap;
}
.msg-row.mine .msg-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg-row.theirs .msg-bubble { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg-img {
  display: block; max-width: 260px; max-height: 320px; border-radius: 12px;
  cursor: zoom-in; border: 1px solid var(--border);
}
.msg-row.mine .msg-img { border-color: transparent; }
.msg-voice audio {
  max-width: 240px; height: 36px; display: block; border-radius: 10px;
}
.btn-emoji.recording {
  background: #fee2e2; color: #ef4444; border-radius: 50%;
  animation: recPulse 1s ease-in-out infinite;
}
@keyframes recPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); }
  50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}
.msg-time { font-size: 11px; color: var(--text-soft); margin: 3px 4px 0; }
.msg-row.mine .msg-time { text-align: right; }
.msg-recalled { color: var(--text-soft); font-size: 13px; font-style: italic; text-align: center; margin: 6px 0; }
.msg-recall-btn {
  display: inline-block; margin: 6px 0 0 0; padding: 3px 12px;
  border: 1px solid #fecaca; border-radius: 8px; background: #fff5f5;
  color: #dc2626; font-size: 12px; font-weight: 600; cursor: pointer;
}
.msg-row.mine .msg-recall-btn { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.18); }
.msg-row.mine .msg-recall-btn:hover { background: rgba(255,255,255,.3); }
.chat-input-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--border); background: #fff;
}
.btn-emoji { width: 40px; height: 40px; border: none; background: none; font-size: 22px; cursor: pointer; flex-shrink: 0; }
.inp-msg {
  flex: 1; resize: none; border: 1px solid var(--border); border-radius: 12px;
  padding: 8px 12px; font-size: 15px; line-height: 24px; outline: none;
  max-height: 120px; font-family: inherit; background: #fafafa;
}
.inp-msg:focus { border-color: var(--primary); background: #fff; }
.chat-input-bar .btn-primary { width: auto; padding: 10px 18px; }

/* ===== 表情面板 ===== */
.emoji-panel {
  position: fixed; right: 16px; bottom: 76px; z-index: 50;
  width: 312px; max-width: calc(100vw - 32px); max-height: 260px; overflow-y: auto;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.15); padding: 12px; display: grid;
  grid-template-columns: repeat(8, 1fr); gap: 4px;
}
.emoji-panel span {
  font-size: 24px; text-align: center; padding: 4px; cursor: pointer; border-radius: 8px;
}
.emoji-panel span:hover { background: #f3f4f6; }

/* ===== 视频通话 ===== */
.video-modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center; padding: 12px;
}
.video-container { position: relative; width: 100%; max-width: 640px; aspect-ratio: 16/10; }
.video-container video { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; background: #000; }
#local-video {
  position: absolute; right: 10px; top: 10px; width: 30%; height: 28%; border-radius: 10px;
  border: 2px solid rgba(255,255,255,.4); object-fit: cover;
}
.video-status {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  color: #fff; background: rgba(0,0,0,.55); padding: 6px 14px; border-radius: 20px; font-size: 14px;
}
.video-controls {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 12px;
}
.btn-video-ctl {
  width: 48px; height: 48px; border-radius: 50%; border: none; font-size: 20px; cursor: pointer;
  background: rgba(255,255,255,.25); color: #fff;
}
.btn-video-ctl.hangup { background: var(--red); }
.btn-video-ctl.off { opacity: .4; }

/* ===== 语音通话 ===== */
.audio-modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center; padding: 12px;
}
.audio-card {
  background: #fff; border-radius: 20px; padding: 28px 32px; width: 100%; max-width: 320px;
  text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.audio-avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--primary); color: #fff; font-size: 40px;
  display: flex; align-items: center; justify-content: center;
}
.audio-peer { font-size: 16px; font-weight: 600; color: #111827; margin-bottom: 6px; }
.audio-status { font-size: 14px; color: #6b7280; margin-bottom: 20px; }
.audio-controls { display: flex; gap: 12px; justify-content: center; }
.btn-audio-ctl {
  min-width: 84px; padding: 10px 16px; border-radius: 24px; border: none;
  font-size: 14px; cursor: pointer; color: #fff; background: #6b7280;
}
.btn-audio-ctl.accept { background: #22c55e; }
.btn-audio-ctl.decline { background: var(--red); }
.btn-audio-ctl.hangup { background: var(--red); }

/* ===== 手机适配 ===== */
@media (max-width: 768px) {
  .mobile-only { display: inline-block; }
  .sidebar { width: 100%; min-width: 0; }
  .chat-main { width: 100%; }
  .main-view.mobile-chat .sidebar { display: none; }
  .main-view.mobile-list .chat-main { display: none; }
  .auth-card { padding: 22px 18px; }
  .msg-main { max-width: 82%; }
}


/* ===== 弹出菜单（消息操作 / 加号菜单）===== */
.msg-menu {
  position: fixed; z-index: 9999; min-width: 140px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  padding: 6px 0; user-select: none;
}
.msg-menu-item {
  padding: 12px 18px; font-size: 14px; color: #333;
  cursor: pointer; white-space: nowrap;
}
.msg-menu-item:hover { background: #f3f4f6; }
.msg-menu-item:first-child { border-radius: 12px 12px 0 0; }
.msg-menu-item:last-child { border-radius: 0 0 12px 12px; }
#menu-recall { color: #dc2626; font-weight: 600; }

/* ===== 输入框录音状态（长按说话）===== */
.inp-msg.voice-recording {
  background: #fee2e2 !important; border-color: #ef4444 !important;
  color: #ef4444; font-weight: 600;
  animation: recPulse 1s ease-in-out infinite;
}
@keyframes recPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.35); }
  50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}

/* ===== 语音/打字切换（微信式）===== */
.voice-hold {
  flex: 1; height: 40px; border-radius: 20px;
  background: #f3f4f6; border: 1px solid #d1d5db;
  color: #111827; font-size: 14px; cursor: pointer;
  user-select: none;
}
.voice-hold.recording {
  background: #fee2e2; border-color: #ef4444;
  color: #ef4444; font-weight: 600;
  animation: recPulse 1s ease-in-out infinite;
}

/* ===== 忘记密码 / 密保 ===== */
select.inp {
  appearance: none; -webkit-appearance: none;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 12px center;
  padding-right: 34px; color: #333;
}
.auth-forgot {
  display: block; margin: 12px auto 0; border: none; background: none;
  color: #3b82f6; font-size: 13px; cursor: pointer; text-decoration: underline;
}
.auth-forgot:hover { color: #2563eb; }

/* ===== 消息引用（长按消息→引用） ===== */
.msg-reply {
  background: rgba(0,0,0,.05); border-left: 3px solid var(--primary); border-radius: 6px;
  padding: 5px 9px; margin-bottom: 6px; font-size: 12px; color: #6b7280;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.msg-row.mine .msg-reply { background: rgba(255,255,255,.16); border-left-color: rgba(255,255,255,.65); color: rgba(255,255,255,.88); }

/* 输入框上方引用条 */
.reply-bar {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: #f0f4ff; border-top: 1px solid var(--border); border-bottom: 1px solid #dbeafe;
  font-size: 13px; color: #475569;
}
.reply-bar.hidden { display: none; }
.reply-bar-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-bar-x { border: none; background: none; color: #94a3b8; font-size: 15px; cursor: pointer; padding: 2px 6px; }
.reply-bar-x:hover { color: #ef4444; }

/* ===== 图片大图预览 ===== */
.img-viewer {
  position: fixed; inset: 0; background: rgba(0,0,0,.93); z-index: 10000;
  display: flex; flex-direction: column;
}
.img-viewer.hidden { display: none; }
.img-viewer-bar {
  color: #e5e7eb; font-size: 13px; padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;
}
.img-viewer-close {
  background: rgba(255,255,255,.18); border: none; color: #fff; border-radius: 8px;
  padding: 6px 14px; cursor: pointer; font-size: 13px;
}
.img-viewer-close:hover { background: rgba(255,255,255,.3); }
.img-viewer-stage { flex: 1; overflow: hidden; position: relative; touch-action: none; cursor: grab; }
.img-viewer-stage:active { cursor: grabbing; }
#img-viewer-img {
  position: absolute; left: 50%; top: 50%;
  transform-origin: center center;
  max-width: 92%; max-height: 92%; object-fit: contain;
  user-select: none; -webkit-user-drag: none; will-change: transform;
}

/* ===== 我的资料菜单 ===== */
.me-uid-item { color: #6b7280; font-size: 13px; cursor: default; }
.me-uid-item:hover { background: transparent; }

/* 引用跳转定位后的高亮闪烁 */
.msg-flash { animation: msgFlash 1.8s ease; border-radius: 10px; }
@keyframes msgFlash {
  0% { background: rgba(59,130,246,.30); box-shadow: 0 0 0 3px rgba(59,130,246,.25); }
  100% { background: transparent; box-shadow: none; }
}

/* ===== 管理后台（总控） ===== */
.btn-admin {
  margin: 10px 12px; padding: 10px; border: 1px dashed #3b82f6; border-radius: 10px;
  background: #eff6ff; color: #2563eb; font-size: 14px; cursor: pointer; width: calc(100% - 24px);
}
.btn-admin:hover { background: #dbeafe; }
.admin-wrap { display: flex; flex-direction: column; height: 100%; padding: 14px; box-sizing: border-box; max-width: 860px; margin: 0 auto; width: 100%; }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.admin-title { font-size: 17px; font-weight: 700; color: #1e293b; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 8px; text-align: center; }
.stat-card span { display: block; font-size: 22px; font-weight: 700; color: #2563eb; }
.stat-card label { font-size: 12px; color: #64748b; }
.admin-search { display: flex; gap: 8px; margin-bottom: 8px; }
.admin-search .inp { flex: 1; }
.admin-tip { font-size: 12px; color: #94a3b8; margin: 6px 0 8px; }
.admin-user-list { flex: 1; overflow-y: auto; }
.admin-user-row {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.admin-u-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: #dbeafe; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.admin-u-main { flex: 1; min-width: 0; }
.admin-u-name { font-size: 15px; font-weight: 600; color: #1e293b; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.admin-u-sub { font-size: 12px; color: #94a3b8; font-weight: 400; }
.admin-flag { font-size: 11px; background: #2563eb; color: #fff; border-radius: 4px; padding: 1px 6px; }
.admin-online { font-size: 11px; color: #16a34a; }
.admin-u-meta { font-size: 12px; color: #64748b; margin-top: 2px; }
.admin-u-btn { flex-shrink: 0; }
.admin-detail-card { max-width: 560px; }
.admin-detail-info { font-size: 13px; color: #475569; background: #f8fafc; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; line-height: 1.7; }
.admin-detail-sep { font-size: 13px; font-weight: 600; color: #334155; margin: 10px 0 6px; }
.admin-f-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 6px; border-bottom: 1px solid #f1f5f9;
}
.admin-f-name { flex: 1; font-size: 14px; color: #1e293b; display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.admin-f-meta { font-size: 12px; color: #64748b; flex-shrink: 0; }
.admin-f-btns { display: flex; gap: 6px; flex-shrink: 0; }
.admin-detail-ops { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.pw-submit { width: 100%; margin-top: 10px; }

/* ===== 小视频消息 ===== */
.msg-video {
  display: block; max-width: 280px; max-height: 320px;
  border-radius: 10px; background: #000; cursor: pointer;
}
.vid-viewer-video {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  max-width: 92%; max-height: 88%; background: #000; border-radius: 6px;
}
/* ===== 转发消息 ===== */
.msg-fwd-tag {
  font-size: 12px; color: #64748b; margin-bottom: 4px;
  background: rgba(100,116,139,.12); border-radius: 6px; padding: 2px 8px; display: inline-block;
}
/* ===== 转发弹窗 ===== */
.fw-share-row { margin-bottom: 10px; }
.fw-f-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 6px;
  border-bottom: 1px solid #f1f5f9;
}
.fw-f-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: #dbeafe; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.fw-f-name { flex: 1; font-size: 14px; color: #1e293b; display: flex; align-items: center; gap: 6px; min-width: 0; }
.fw-f-sub { font-size: 12px; color: #94a3b8; font-weight: 400; }
