/* ==================== 微信 App 完整独立样式表 (wechat.css) ==================== */
.qaq-wechat-app {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, var(--qaq-theme-bg-start), var(--qaq-theme-bg-end));
  color: var(--qaq-font-color);
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
}
.qaq-wechat-app.qaq-open {
  transform: translateX(0);
}
.qaq-desktop[data-qaq-nav="three-btn"] .qaq-wechat-app {
  bottom: 44px;
}

/* 顶栏 */
.qaq-wx-topbar {
  position: relative;
  z-index: 25;
  display: grid;
  grid-template-columns: 84px 1fr 84px;
  align-items: center;
  height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-shrink: 0;
}
.qaq-wx-top-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qaq-wx-top-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.qaq-wx-icon-btn {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: transparent;
  color: var(--qaq-font-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.12s;
}
.qaq-wx-icon-btn:active {
  background: rgba(0, 0, 0, 0.08);
  transform: scale(0.92);
}
.qaq-wx-float-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--qaq-font-color);
  opacity: 0.75;
}
.qaq-wx-top-title {
  text-align: center;
  font-size: calc(15px * var(--qaq-font-scale));
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 左上角浮窗遮罩与左侧滑出抽屉 */
.qaq-wx-float-mask {
  position: absolute;
  inset: 0;
  z-index: 58;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.qaq-wx-float-mask.qaq-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.qaq-wx-float-drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 82%;
  max-width: 310px;
  z-index: 60;
  overflow-y: auto;
  background: rgba(248, 248, 250, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 14px 0 36px rgba(0, 0, 0, 0.16);
  padding: 16px 14px 24px;
  transform: translateX(-104%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s;
}
.qaq-wx-float-drawer.qaq-show {
  transform: translateX(0);
  visibility: visible;
}
.qaq-wx-float-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #666;
  margin: 8px 0 6px;
}
.qaq-wx-float-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}
.qaq-wx-float-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 11px 8px 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #dedede;
  cursor: pointer;
  text-align: center;
  transition: transform 0.14s;
}
.qaq-wx-float-card:active {
  transform: scale(0.95);
}
.qaq-wx-float-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid #ccc;
  background: linear-gradient(145deg, var(--qaq-theme-bg-start), var(--qaq-theme-bg-end));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.qaq-wx-float-card-title {
  font-size: 12px;
  font-weight: 700;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qaq-wx-float-card-sub {
  font-size: 10px;
  color: #888;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qaq-wx-float-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: #666;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 右上角 + 号下拉菜单 */
.qaq-wx-plus-menu {
  position: absolute;
  top: 52px;
  right: 12px;
  z-index: 35;
  min-width: 148px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(42, 42, 45, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.95);
  transform-origin: top right;
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.qaq-wx-plus-menu.qaq-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.qaq-wx-plus-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: transparent;
  color: #f5f5f7;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}
.qaq-wx-plus-item:active,
.qaq-wx-plus-item:hover {
  background: rgba(255, 255, 255, 0.12);
}
.qaq-wx-plus-item i {
  width: 16px;
  text-align: center;
  font-size: 14px;
}

/* 右上角全能搜索独立遮罩页 */
.qaq-wx-search-overlay {
  position: absolute;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, var(--qaq-theme-bg-start), var(--qaq-theme-bg-end));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.22s ease, visibility 0.2s;
}
.qaq-wx-search-overlay.qaq-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.qaq-wx-search-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px);
}
.qaq-wx-search-input-box {
  flex: 1;
  height: 36px;
  padding: 0 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d5d5d5;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #777;
}
.qaq-wx-search-input-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--qaq-font-color);
  font-size: 13px;
}
.qaq-wx-search-prefix {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.08);
  color: var(--qaq-font-color);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.qaq-wx-search-prefix.qaq-show {
  display: inline-flex;
}
.qaq-wx-search-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 14px 30px;
  scrollbar-width: none;
}
.qaq-wx-search-body::-webkit-scrollbar {
  display: none;
}

/* 主体列表容器与会话行 */
.qaq-wx-main-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 14px 20px;
  scrollbar-width: none;
}
.qaq-wx-main-body::-webkit-scrollbar {
  display: none;
}
.qaq-wx-pinned-block {
  margin-bottom: 12px;
}
.qaq-wx-block-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 7px 4px;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.045);
  color: var(--qaq-font-color);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.qaq-wx-block-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}
.qaq-wx-pin-corner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.055);
  color: #777;
  font-size: 9px;
}
.qaq-wx-temp-tag {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 99px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  color: #777;
  font-weight: 500;
}
.qaq-wx-pin-tag {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  color: #777;
  font-weight: 500;
}

.qaq-wx-chat-group {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #dedede;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.qaq-wx-chat-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background-color 0.15s;
}
.qaq-wx-chat-row:active {
  background: rgba(0, 0, 0, 0.07);
}
.qaq-wx-chat-row:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 74px;
  right: 14px;
  height: 1px;
  background: #eaeaea;
}
.qaq-wx-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}
.qaq-wx-avatar {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  border: 1px solid #ccc;
  background: linear-gradient(145deg, var(--qaq-theme-bg-start), var(--qaq-theme-bg-end));
  background-position: center;
  background-size: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--qaq-font-color);
}
.qaq-wx-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 99px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
}
.qaq-wx-badge-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e53935;
  border: 1.5px solid #fff;
}
.qaq-wx-chat-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.qaq-wx-chat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.qaq-wx-chat-name {
  font-size: calc(14px * var(--qaq-font-scale));
  font-weight: 600;
  color: var(--qaq-font-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.qaq-wx-chat-time {
  font-size: 11px;
  color: #999;
  flex-shrink: 0;
}
.qaq-wx-chat-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.qaq-wx-chat-msg {
  font-size: calc(12px * var(--qaq-font-scale));
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.qaq-wx-mute-icon {
  font-size: 11px;
  color: #aaa;
  flex-shrink: 0;
}

/* 底部四切面 Tab 栏 */
.qaq-wx-tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 54px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  flex-shrink: 0;
  z-index: 20;
}
.qaq-wx-tab-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  color: #888;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
}
.qaq-wx-tab-btn i {
  font-size: 17px;
}
.qaq-wx-tab-btn.qaq-active {
  color: var(--qaq-font-color);
  font-weight: 700;
}
.qaq-wx-tab-badge {
  position: absolute;
  top: 4px;
  left: calc(50% + 6px);
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 99px;
  background: #e53935;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}
.qaq-wx-tab-badge.qaq-show {
  display: inline-flex;
}

/* 二级/三级/四级子页面容器（关键！绝不能漏，否则所有子页面会全部叠在主屏上） */
.qaq-wx-chat-room {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, var(--qaq-theme-bg-start), var(--qaq-theme-bg-end));
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.26s;
}
.qaq-wx-chat-room.qaq-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.qaq-wx-room-head-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.qaq-wx-room-substatus {
  font-size: 10px;
  color: #888;
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.qaq-wx-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2e7d32;
}
.qaq-wx-sys-tip {
  align-self: center;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
  color: #888;
  font-size: 11px;
  text-align: center;
  max-width: 86%;
}

/* 置顶收藏横幅（位于置顶聊天最上方，只显示第一行字） */
.qaq-wx-pinned-fav-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dedede;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  cursor: pointer;
}
.qaq-wx-pinned-fav-bar i {
  font-size: 13px;
  color: #666;
  flex-shrink: 0;
}
.qaq-wx-pinned-fav-text {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--qaq-font-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 投诉过多后的顶部红色警示条 */
.qaq-wx-warn-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fef2f2;
  border-bottom: 1px solid #fecaca;
  color: #dc2626;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

/* 通用美化按键 */
.qaq-wx-btn-primary,
.qaq-wx-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s, background-color 0.15s;
}
.qaq-wx-btn-primary {
  background: #222;
  color: #fff;
  border: 1px solid #222;
}
.qaq-wx-btn-secondary {
  background: #f0f0f2;
  color: #222;
  border: 1px solid #d8d8dc;
}
.qaq-wx-btn-primary:active,
.qaq-wx-btn-secondary:active {
  transform: scale(0.96);
}

/* ==================== 聊天室消息列表与带无缝描边小尾巴的气泡 ==================== */
.qaq-wx-msg-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background-color: #f2f3f5; /* 雾面浅银灰底色 */
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.qaq-wx-bubble-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* 己方消息靠右反转 */
.qaq-wx-bubble-row.qaq-me {
  flex-direction: row-reverse;
}

.qaq-wx-bubble-row.qaq-selecting {
  padding-left: 28px;
}

.qaq-wx-select-chk {
  position: absolute;
  left: 2px;
  top: 8px;
  width: 18px;
  height: 18px;
  accent-color: #222;
}

/* 聊天室内的左右头像：36x36 + 5px圆角 */
.qaq-wx-bubble-row > .qaq-wx-avatar {
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px !important;
  border-radius: 5px !important;
  font-size: 12px !important;
  font-weight: 600;
  box-shadow: none;
  background-color: #ffffff;
  color: #6b7280;
  border: 1px solid #e1e3e8 !important;
}

/* 己方头像：珠光银底 + 冷灰边 */
.qaq-wx-bubble-row.qaq-me > .qaq-wx-avatar {
  background-color: #d8dce3;
  color: #374151;
  border: 1px solid #c5c9d1 !important;
}

/* 核心：气泡与无缝描边小尾巴（接收方：纯白 + 极细浅银边） */
.qaq-wx-bubble {
  max-width: 100%;
  min-height: 36px;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 6px;
  position: relative;
  word-wrap: break-word;
  word-break: break-word;
  background-color: #ffffff;
  color: #1f2937;
  border: 1px solid #e2e4e9;
  box-shadow: none;
}

/* 小尾巴公共属性（旋转45度的正方形） */
.qaq-wx-bubble::before {
  content: "";
  position: absolute;
  top: 13px;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background-color: #ffffff;
  border-left: 1px solid #e2e4e9;
  border-bottom: 1px solid #e2e4e9;
  left: -5px; /* 刚好盖住气泡左侧主边框，实现无缝衔接 */
}

/* 右侧：发送方气泡 (珠光浅银 + 冷灰银边) */
.qaq-wx-bubble-row.qaq-me .qaq-wx-bubble {
  background-color: #e4e7ec;
  color: #1f2937;
  border: 1px solid #cfd4dc;
}

.qaq-wx-bubble-row.qaq-me .qaq-wx-bubble::before {
  left: auto;
  right: -5px; /* 刚好盖住气泡右侧主边框，实现无缝衔接 */
  background-color: #e4e7ec;
  border-left: none;
  border-bottom: none;
  border-right: 1px solid #cfd4dc;
  border-top: 1px solid #cfd4dc;
}
.qaq-wx-quote-box {
  margin-top: 4px;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
  color: #666;
  font-size: 11px;
  line-height: 1.4;
  max-width: 100%;
}

/* 语音气泡 */
/* 语音外层包裹独立自适应，绝不被下方转文字撑宽 */
.qaq-wx-voice-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
}
.qaq-wx-bubble-row.qaq-me .qaq-wx-voice-wrap {
  align-items: flex-end;
}
.qaq-wx-voice-wrap > .qaq-wx-bubble {
  width: fit-content;
  flex-shrink: 0;
}

/* 语音气泡 */
.qaq-wx-voice-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 56px;
  cursor: pointer;
  user-select: none;
}
.qaq-wx-voice-bubble.qaq-playing i {
  animation: qaqVoiceWave 0.6s ease-in-out infinite alternate;
  color: #111;
}
@keyframes qaqVoiceWave {
  0% { opacity: 0.35; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.12); }
}
.qaq-wx-voice-trans-box {
  margin-top: 6px;
  padding: 7px 11px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e4e9;
  font-size: 12px;
  color: #374151;
  line-height: 1.5;
  max-width: 220px;
  width: fit-content;
  word-break: break-word;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
/* 转账气泡：高级黑白灰/雾面银灰，无红绿配色 */
.qaq-wx-tx-card {
  display: flex;
  flex-direction: column;
  width: 218px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #dcdce0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  transition: opacity 0.15s, transform 0.12s;
}
.qaq-wx-tx-card:active {
  transform: scale(0.98);
}
.qaq-wx-bubble-row.qaq-me .qaq-wx-tx-card {
  background: #f2f3f5;
  border-color: #d4d7dd;
}
/* 已接收/已退回/已撤回时整体呈现克制的浅雾银灰态 */
.qaq-wx-tx-card[data-tx-status="accepted"],
.qaq-wx-tx-card[data-tx-status="returned"],
.qaq-wx-tx-card[data-tx-status="recalled"] {
  opacity: 0.78;
  background: #f7f7f9 !important;
}
.qaq-wx-tx-main {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 62px;
  padding: 0 13px;
}
.qaq-wx-tx-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #d4d7dd;
  background: #f4f4f6;
  color: #1f2937;
}
/* 待处理：深炭黑底 + 银白极简图标 */
.qaq-wx-tx-card[data-tx-status="sent"] .qaq-wx-tx-icon {
  background: #27272a;
  border-color: #27272a;
  color: #f4f4f6;
}
/* 已接收：珠光浅银底 + 深灰勾 */
.qaq-wx-tx-card[data-tx-status="accepted"] .qaq-wx-tx-icon {
  background: #e4e7ec;
  border-color: #cfd4dc;
  color: #374151;
}
/* 已退回 / 已撤回：雾灰底 + 冷灰标识 */
.qaq-wx-tx-card[data-tx-status="returned"] .qaq-wx-tx-icon,
.qaq-wx-tx-card[data-tx-status="recalled"] .qaq-wx-tx-icon {
  background: #ebedf0;
  border-color: #d8dce3;
  color: #6b7280;
}
.qaq-wx-tx-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.qaq-wx-tx-card.qaq-has-note .qaq-wx-tx-info {
  justify-content: flex-start;
}
.qaq-wx-tx-amount {
  font-size: 15px;
  font-weight: 800;
  color: #18181b;
  line-height: 1.25;
}
.qaq-wx-tx-note {
  font-size: 11px;
  color: #71717a;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qaq-wx-tx-foot {
  padding: 4px 13px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 10px;
  color: #888;
  background: rgba(0, 0, 0, 0.015);
  display: flex;
  justify-content: space-between;
}

/* 合并转发的聊天记录卡片 */
.qaq-wx-chat-history-card {
  width: 226px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #dcdce0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.qaq-wx-chat-history-body {
  padding: 10px 12px;
}
.qaq-wx-chat-history-title {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
  line-height: 1.35;
}
.qaq-wx-chat-history-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: #6b7280;
  line-height: 1.4;
  border-left: 2px solid #d8dce3;
  padding-left: 8px;
}
.qaq-wx-chat-history-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qaq-wx-chat-history-foot {
  padding: 4px 12px;
  border-top: 1px solid #f0f0f2;
  font-size: 10px;
  color: #9ca3af;
  background: #fafafa;
}
/* 个人名片长方形卡片 */
.qaq-wx-contact-card {
  width: 210px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #dedede;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.qaq-wx-contact-card-body {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
}
.qaq-wx-contact-card-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #f0f0f2 center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.qaq-wx-contact-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qaq-wx-contact-card-wxid {
  font-size: 10px;
  color: #888;
  margin-top: 2px;
}
.qaq-wx-contact-card-foot {
  padding: 5px 12px;
  border-top: 1px solid #f0f0f0;
  font-size: 10px;
  color: #888;
  background: #fafafa;
}

/* 相册文字描述图卡片 */
.qaq-wx-desc-img-card {
  width: 172px;
  border-radius: 12px;
  background: #f8f8fa;
  border: 1px solid #dcdce0;
  padding: 12px;
  cursor: pointer;
  text-align: center;
}
.qaq-wx-desc-img-thumb {
  width: 100%;
  height: 92px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e4e4e7, #f4f4f5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #52525b;
  font-size: 22px;
}
.qaq-wx-desc-img-hint {
  font-size: 10px;
  color: #71717a;
  margin-top: 6px;
}
/* 微信文件消息卡片（点击可打开阅读内容） */
.qaq-wx-file-card {
  width: 224px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #dcdce0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.12s, background-color 0.15s;
}
.qaq-wx-file-card:active {
  transform: scale(0.97);
  background: #f8f8fa;
}
.qaq-wx-file-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
}
.qaq-wx-file-card-info {
  flex: 1;
  min-width: 0;
}
.qaq-wx-file-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}
.qaq-wx-file-card-meta {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}
.qaq-wx-file-card-icon {
  width: 40px;
  height: 44px;
  border-radius: 8px;
  background: #f2f3f5;
  border: 1px solid #e2e4e9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #4b5563;
  flex-shrink: 0;
}
.qaq-wx-file-card-ext {
  font-size: 8px;
  font-weight: 800;
  margin-top: 2px;
  text-transform: uppercase;
  color: #6b7280;
}
.qaq-wx-file-card-foot {
  padding: 4px 13px;
  border-top: 1px solid #f0f0f2;
  font-size: 10px;
  color: #9ca3af;
  background: #fafafa;
  display: flex;
  justify-content: space-between;
}
.qaq-wx-voice-svg.qaq-flip { transform: scaleX(-1); }
.qaq-wx-voice-bubble.qaq-playing .v-arc-2 { animation: qaqArcPulse 0.9s infinite 0.15s; }
.qaq-wx-voice-bubble.qaq-playing .v-arc-3 { animation: qaqArcPulse 0.9s infinite 0.35s; }
@keyframes qaqArcPulse { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

/* 消息长按菜单：最多一行5个、浅色竖线与换行横线分隔 */
.qaq-wx-msg-ctx-popover {
  position: fixed;
  z-index: 9999;
  display: grid;
  background: rgba(38, 38, 41, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
  color: #fff;
}
.qaq-wx-msg-ctx-btn {
  position: relative;
  padding: 8px 11px;
  background: transparent;
  color: #f4f4f6;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
  border: none;
}
.qaq-wx-msg-ctx-btn:not(.qaq-row-last)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 22%;
  height: 56%;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}
.qaq-wx-msg-ctx-btn.qaq-has-bottom-line::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

/* 聊天室底部输入栏与抽屉 */
.qaq-wx-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  flex-shrink: 0;
}
.qaq-wx-input-wrap-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  padding: 0 32px 0 11px;
}
.qaq-wx-input-wrap-box input {
  width: 100%;
  height: 100%;
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  font-size: 13px;
  color: #222;
  outline: none;
}
.qaq-wx-stt-mic-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #b0b0b5;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
}
.qaq-wx-stt-mic-btn.qaq-listening {
  color: #6b7280;
  background: #e5e7eb;
  box-shadow: inset 0 0 0 1px #cfd4dc;
}
.qaq-wx-icon-btn.qaq-voice-recording {
  color: #6b7280 !important;
  background: #e5e7eb !important;
  box-shadow: inset 0 0 0 1px #cfd4dc;
}
.qaq-wx-bottom-panel {
  display: none;
  height: 250px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(246, 246, 248, 0.96);
  overflow-y: auto;
  padding: 16px 14px;
  flex-shrink: 0;
}
.qaq-wx-bottom-panel.qaq-show {
  display: block;
}
.qaq-wx-plus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
}
.qaq-wx-plus-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--qaq-font-color);
}
.qaq-wx-plus-grid-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e2e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.qaq-wx-plus-grid-item span {
  font-size: 11px;
  color: #666;
}
.qaq-wx-sticker-img {
  max-width: 112px;
  max-height: 112px;
  border-radius: 10px;
  display: block;
  cursor: pointer;
}

/* 个人信息与角色设置单元格 */
.qaq-wx-info-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background 0.14s;
}
.qaq-wx-info-cell:last-child {
  border-bottom: none;
}
.qaq-wx-info-cell:active {
  background: rgba(0, 0, 0, 0.05);
}
.qaq-wx-info-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--qaq-font-color);
  flex-shrink: 0;
}
.qaq-wx-info-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 68%;
  color: #888;
  font-size: 13px;
}
.qaq-wx-info-val {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 收付款条码与二维码 */
.qaq-wx-pay-barcode {
  width: 100%;
  height: 52px;
  border-radius: 8px;
  background: repeating-linear-gradient(
    90deg,
    #222 0px, #222 3px,
    transparent 3px, transparent 6px,
    #222 6px, #222 7px,
    transparent 7px, transparent 11px,
    #222 11px, #222 15px,
    transparent 15px, transparent 18px
  );
  opacity: 0.88;
}
.qaq-wx-pay-qrbox {
  width: 136px;
  height: 136px;
  margin: 8px auto;
  border-radius: 14px;
  border: 1px solid #ddd;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 86px;
  color: #222;
}

/* 消息长按弹出菜单（最多一行5个，浅色竖线分隔，防出屏幕边界） */
.qaq-wx-msg-ctx-popover {
  position: fixed;
  z-index: 9999;
  display: grid;
  background: rgba(38, 38, 41, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
  color: #fff;
}
.qaq-wx-msg-ctx-btn {
  position: relative;
  padding: 7px 10px;
  background: transparent;
  color: #f4f4f6;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
}
.qaq-wx-msg-ctx-btn:active {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 7px;
}
.qaq-wx-msg-ctx-btn:not(.qaq-row-last)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 22%;
  height: 56%;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
}

/* 正在语音输入浮层：极简磨砂银灰白胶囊设计 */
.qaq-wx-voice-rec-toast {
  position: absolute;
  left: 50%;
  bottom: 66px;
  transform: translateX(-50%);
  z-index: 80;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid #d8dce3;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
  white-space: nowrap;
}
.qaq-wx-rec-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 14px;
}
.qaq-wx-rec-wave span {
  width: 2.5px;
  height: 6px;
  border-radius: 2px;
  background: #6b7280;
  animation: qaqRecBarBounce 0.85s ease-in-out infinite;
}
.qaq-wx-rec-wave span:nth-child(2) { animation-delay: 0.15s; height: 12px; }
.qaq-wx-rec-wave span:nth-child(3) { animation-delay: 0.3s; height: 9px; }
.qaq-wx-rec-wave span:nth-child(4) { animation-delay: 0.45s; height: 13px; }
@keyframes qaqRecBarBounce {
  0%, 100% { transform: scaleY(0.45); opacity: 0.5; }
  50% { transform: scaleY(1.15); opacity: 1; }
}

/* 夜间模式适配 */
.qaq-desktop.qaq-night-mode .qaq-wechat-app,
.qaq-desktop.qaq-night-mode .qaq-wx-chat-room,
.qaq-desktop.qaq-night-mode .qaq-wx-search-overlay {
  background: linear-gradient(145deg, #1c1c1e, #111113);
}
.qaq-desktop.qaq-night-mode .qaq-wx-topbar,
.qaq-desktop.qaq-night-mode .qaq-wx-tabbar,
.qaq-desktop.qaq-night-mode .qaq-wx-input-bar,
.qaq-desktop.qaq-night-mode .qaq-wx-search-top {
  background: rgba(28, 28, 30, 0.86);
  border-color: #333336;
}
.qaq-desktop.qaq-night-mode .qaq-wx-float-drawer,
.qaq-desktop.qaq-night-mode .qaq-wx-bottom-panel {
  background: rgba(28, 28, 30, 0.96);
  border-color: #3a3a3c;
}
.qaq-desktop.qaq-night-mode .qaq-wx-chat-group,
.qaq-desktop.qaq-night-mode .qaq-wx-float-card,
.qaq-desktop.qaq-night-mode .qaq-wx-search-input-box,
.qaq-desktop.qaq-night-mode .qaq-wx-bubble,
.qaq-desktop.qaq-night-mode .qaq-wx-tx-card,
.qaq-desktop.qaq-night-mode .qaq-wx-contact-card,
.qaq-desktop.qaq-night-mode .qaq-wx-desc-img-card,
.qaq-desktop.qaq-night-mode .qaq-wx-pinned-fav-bar {
  background: #242426;
  border-color: #3a3a3c;
  color: #f0f0f0;
}
.qaq-desktop.qaq-night-mode .qaq-wx-bubble-row.qaq-me .qaq-wx-bubble {
  background: #3a3a3c;
  border-color: #48484c;
  color: #ffffff;
}
.qaq-desktop.qaq-night-mode .qaq-wx-chat-row:not(:last-child)::after {
  background: #333336;
}
.qaq-desktop.qaq-night-mode .qaq-wx-avatar,
.qaq-desktop.qaq-night-mode .qaq-wx-float-card-icon,
.qaq-desktop.qaq-night-mode .qaq-wx-plus-grid-icon {
  background: linear-gradient(145deg, #2c2c2e, #1e1e20);
  border-color: #3d3d40;
}
.qaq-desktop.qaq-night-mode .qaq-wx-input-wrap-box {
  background: #18181a;
  border-color: #444448;
}
.qaq-desktop.qaq-night-mode .qaq-wx-input-wrap-box input {
  color: #f0f0f0;
}
.qaq-desktop.qaq-night-mode .qaq-wx-tx-amount,
.qaq-desktop.qaq-night-mode .qaq-wx-contact-card-name {
  color: #f0f0f0;
}
.qaq-desktop.qaq-night-mode .qaq-wx-btn-secondary {
  background: #2c2c2e;
  border-color: #444;
  color: #f0f0f0;
}

.qaq-desktop.qaq-night-mode .qaq-wx-msg-list {
  background-color: #141416;
}
.qaq-desktop.qaq-night-mode .qaq-wx-bubble::before {
  background-color: #242426;
  border-color: #3a3a3c;
}
.qaq-desktop.qaq-night-mode .qaq-wx-bubble-row.qaq-me .qaq-wx-bubble::before {
  background-color: #3a3a3c;
  border-color: #48484c;
}
/* ==================== 群聊成员网格 & 聊天记录日历检索样式 ==================== */
.qaq-wx-group-members-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 8px;
  padding: 14px 12px;
}
.qaq-wx-group-member-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.qaq-wx-group-member-ava {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #dcdce0;
  background: #f2f3f5 center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #4b5563;
}
.qaq-wx-group-member-name {
  font-size: 11px;
  color: #666;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 聊天记录日历网格：有聊天为黑色数字，无聊天为浅灰色数字 */
.qaq-wx-cal-box {
  background: #ffffff;
  border: 1px solid #e2e4e9;
  border-radius: 14px;
  padding: 14px 12px;
  margin-bottom: 12px;
}
.qaq-wx-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
}
.qaq-wx-cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 6px;
}
.qaq-wx-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.qaq-wx-cal-day {
  height: 36px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  user-select: none;
  position: relative;
}
/* 没有聊天记录的日期：浅色数字 */
.qaq-wx-cal-day.qaq-no-msg {
  color: #d1d5db;
  font-weight: 400;
  cursor: default;
}
/* 有聊天记录的日期：纯黑色加粗数字，可点击 */
.qaq-wx-cal-day.qaq-has-msg {
  color: #111827;
  font-weight: 800;
  cursor: pointer;
  background: #f4f4f6;
}
.qaq-wx-cal-day.qaq-has-msg::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #111827;
  position: absolute;
  bottom: 4px;
}
.qaq-wx-cal-day.qaq-has-msg.qaq-cal-active {
  background: #1f2937;
  color: #ffffff;
}
.qaq-wx-cal-day.qaq-has-msg.qaq-cal-active::after {
  background: #ffffff;
}
/* ==================== 切换账号过场 ==================== */
.qaq-wx-acc-switch-mask {
  position: absolute;
  inset: 0;
  z-index: 96;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 243, 245, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.qaq-wx-acc-switch-mask.qaq-show { opacity: 1; }
.qaq-wx-acc-switch-mask.qaq-hide { opacity: 0; }
.qaq-wx-acc-switch-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 30px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e2e4e9;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  transform: scale(0.92) translateY(8px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.qaq-wx-acc-switch-mask.qaq-show .qaq-wx-acc-switch-card { transform: none; }
.qaq-wx-acc-switch-ava {
  width: 56px !important;
  height: 56px !important;
  border-radius: 14px !important;
  font-size: 22px;
}
.qaq-wx-acc-switch-name { font-size: 15px; font-weight: 800; color: #111827; }
.qaq-wx-acc-switch-tip { font-size: 11px; color: #6b7280; }
.qaq-wx-acc-switch-bar {
  width: 120px;
  height: 3px;
  border-radius: 99px;
  background: #e5e7eb;
  overflow: hidden;
}
.qaq-wx-acc-switch-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: #1f2937;
  animation: qaqAccBar 0.7s ease forwards;
}
@keyframes qaqAccBar { to { width: 100%; } }

/* 切换后列表从右侧滑入 */
#qaqWxMainBody.qaq-wx-acc-enter {
  animation: qaqAccEnter 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes qaqAccEnter {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: none; }
}

/* ==================== 关联账号头像条 ==================== */
.qaq-wx-acc-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}
.qaq-wx-acc-strip::-webkit-scrollbar { display: none; }
.qaq-wx-acc-strip-item {
  flex: 0 0 auto;
  width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.qaq-wx-acc-strip-ava { transition: transform 0.14s; }
.qaq-wx-acc-strip-item:active .qaq-wx-acc-strip-ava { transform: scale(0.94); }
.qaq-wx-acc-strip-item.qaq-active .qaq-wx-avatar {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 3.5px #1f2937;
}
.qaq-wx-acc-strip-name {
  max-width: 60px;
  font-size: 11px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qaq-wx-acc-strip-item.qaq-active .qaq-wx-acc-strip-name { color: #111827; font-weight: 700; }

/* 夜间模式 */
.qaq-desktop.qaq-night-mode .qaq-wx-acc-switch-mask { background: rgba(17, 17, 19, 0.72); }
.qaq-desktop.qaq-night-mode .qaq-wx-acc-switch-card { background: #242426; border-color: #3a3a3c; }
.qaq-desktop.qaq-night-mode .qaq-wx-acc-switch-name { color: #f0f0f0; }
.qaq-desktop.qaq-night-mode .qaq-wx-acc-switch-bar { background: #3a3a3c; }
.qaq-desktop.qaq-night-mode .qaq-wx-acc-switch-bar span { background: #f0f0f0; }
.qaq-desktop.qaq-night-mode .qaq-wx-acc-strip-item.qaq-active .qaq-wx-avatar {
  box-shadow: 0 0 0 2px #1c1c1e, 0 0 0 3.5px #f0f0f0;
}
.qaq-desktop.qaq-night-mode .qaq-wx-acc-strip-item.qaq-active .qaq-wx-acc-strip-name { color: #f0f0f0; }

/* 微信语音通话页 */
.qaq-wx-call-page {
  z-index: 70 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 42px 20px 24px;
  color: #fff;
  background: linear-gradient(160deg, #555, #292929) !important;
}

.qaq-wx-call-status {
  margin-top: 20px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  text-align: center;
}

.qaq-wx-call-name {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
}

.qaq-wx-call-duration {
  min-height: 26px;
  margin-top: 8px;
  color: rgba(255, 255, 255, .72);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.qaq-wx-call-hints {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  margin-top: 18px;
}

.qaq-wx-call-hints input {
  box-sizing: border-box;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 9px;
  outline: none;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 12px;
}

.qaq-wx-call-hints input::placeholder {
  color: rgba(255, 255, 255, .58);
}

.qaq-wx-call-transcript {
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow-y: auto;
  margin: 16px 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .12);
}

.qaq-wx-call-line {
  margin: 8px 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.qaq-wx-call-keyboard {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
}

.qaq-wx-call-keyboard[hidden] {
  display: none !important;
}

.qaq-wx-call-keyboard input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  outline: none;
}

.qaq-wx-call-keyboard button {
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
}

.qaq-wx-call-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  padding-bottom: 12px;
}

.qaq-wx-call-controls button {
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  cursor: pointer;
}

.qaq-wx-call-controls button i {
  font-size: 21px;
}

.qaq-wx-call-controls button.qaq-active {
  background: rgba(255, 255, 255, .34);
}

.qaq-wx-call-controls .qaq-wx-call-hangup {
  background: #e53935;
}