/* ================= 私信（消息列表 / 聊天气泡） ================= */
.msg-row { display: flex; align-items: center; gap: 11px; padding: 12px 4px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .18s; }
.msg-row:active { background: rgba(255, 255, 255, .03); }
.msg-row .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.msg-row .tx b { font-size: 14px; color: var(--txt); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.msg-row .ct { font-size: 11px; color: var(--txt-3); font-weight: 400; }
.msg-row .tx span { font-size: 12.5px; color: var(--txt-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-row .rt { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.msg-row .tm { font-size: 11px; color: var(--txt-3); }
.badge-n { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand, #ff5b28); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }

/* tabbar 未读红点 */
.tabbar .t { position: relative; }
.tabbar .dot { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: #ff5b28; color: #fff; font-style: normal; font-size: 10px; line-height: 15px; text-align: center; }

/* 聊天页 */
.chat-wrap { display: flex; flex-direction: column; }
.chat-tip { margin: 8px 2px 4px; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.5;
  background: rgba(255, 138, 0, .1); color: #ffb066; border: 1px solid rgba(255, 138, 0, .25); }
.chat-tip.ok { background: rgba(74, 200, 140, .1); color: #6ad6a0; border-color: rgba(74, 200, 140, .25); }
.chat-list { padding: 8px 0 96px; -webkit-overflow-scrolling: touch; }
.chat-empty { text-align: center; color: var(--txt-3); font-size: 12.5px; padding: 40px 0; }
.bubble { max-width: 76%; margin: 8px 0; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; word-break: break-word; position: relative; }
.bubble.peer { background: var(--line, #ece7e1); color: var(--txt); border-bottom-left-radius: 5px; margin-right: auto; }
.bubble.mine { background: linear-gradient(135deg, var(--brand-2, #ff8f47), var(--brand, #ff6b1a)); color: #fff; border-bottom-right-radius: 5px; margin-left: auto; }
.bubble .bt { display: block; font-size: 10.5px; opacity: .6; margin-top: 4px; text-align: right; }
/* 发送框固定在页面底部（悬在底部导航之上），页面滚动时不动 */
.chat-bar {
  position: fixed; left: 0; right: 0; bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  z-index: 11; max-width: 430px; margin: 0 auto;
  display: flex; gap: 8px; padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--bg, #12141a);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .18);
}
@media (min-width: 760px) { .chat-bar { left: 50%; right: auto; width: 430px; transform: translateX(-50%); } }
.chat-bar .input { flex: 1; }
.chat-bar .btn { flex: 0 0 auto; padding: 0 18px; }

/* 用户主页按钮组 */
.hd-acts { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; }
