/**
 * call.v1.css —— 音视频通话浮层（客服台 / 客户页共用）
 * 现代玻璃拟态风
 */
.tmc {
  position: fixed;
  inset: 0;
  z-index: 2147480000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: radial-gradient(120% 120% at 50% 0%, #1b2130 0%, #0d111a 55%, #06080d 100%);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.tmc[hidden] { display: none !important; }
body.tmc-on { overflow: hidden; }

/* 顶部信息 */
.tmc-head {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: max(46px, env(safe-area-inset-top));
  transition: opacity .25s;
}
.tmc-av {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2fbf8f, #12805c);
  box-shadow: 0 0 0 0 rgba(47, 191, 143, .55);
  overflow: hidden;
  flex: none;
}
.tmc-av.big { width: 104px; height: 104px; font-size: 40px; }
.tmc-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tmc[data-mode="out"] .tmc-av,
.tmc[data-mode="in"] .tmc-av {
  animation: tmcPulse 1.9s ease-out infinite;
}
@keyframes tmcPulse {
  0%   { box-shadow: 0 0 0 0 rgba(47, 191, 143, .5); }
  70%  { box-shadow: 0 0 0 22px rgba(47, 191, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 191, 143, 0); }
}
.tmc-nm { font-size: 19px; font-weight: 600; letter-spacing: .3px; }
.tmc-st {
  font-size: 14px;
  color: rgba(255, 255, 255, .66);
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
}

/* 舞台 */
.tmc-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.tmc-remote {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #05070b;
  display: none;
}
.tmc[data-mode="busy"][data-video="1"] .tmc-remote { display: block; }
.tmc-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.tmc[data-mode="busy"][data-video="1"] .tmc-ph { display: none; }
.tmc-tip { font-size: 13px; color: rgba(255, 255, 255, .5); }

.tmc-local {
  position: absolute;
  right: 16px;
  bottom: 132px;
  width: 108px;
  height: 150px;
  border-radius: 14px;
  object-fit: cover;
  background: #0b0f16;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  transform: scaleX(-1);
  display: none;
  transition: opacity .2s;
}
.tmc[data-video="1"][data-mode="busy"] .tmc-local,
.tmc[data-video="1"][data-mode="out"] .tmc-local { display: block; }

/* 底部按钮 */
.tmc-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(30px, env(safe-area-inset-bottom));
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.tmc-ib,
.tmc-hang,
.tmc-accept,
.tmc-reject {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: #fff;
  font-size: 11px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .15s, background .15s, opacity .15s;
}
.tmc-ib:active,
.tmc-hang:active,
.tmc-accept:active,
.tmc-reject:active { transform: scale(.93); }
.tmc-ib .ic,
.tmc-hang .ic,
.tmc-accept .ic,
.tmc-reject .ic { font-size: 19px; line-height: 1; }
.tmc-ib .lb,
.tmc-hang .lb,
.tmc-accept .lb,
.tmc-reject .lb { font-size: 10px; opacity: .82; }
.tmc-ib.off { background: rgba(255, 255, 255, .9); color: #12161f; }
.tmc-hang {
  background: linear-gradient(135deg, #ff5f57, #d92d20);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 10px 26px rgba(217, 45, 32, .38);
}
.tmc-accept {
  background: linear-gradient(135deg, #34d399, #0f9d6d);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 10px 26px rgba(15, 157, 109, .4);
}
.tmc-reject {
  background: linear-gradient(135deg, #ff6b6b, #d92d20);
  box-shadow: 0 10px 26px rgba(217, 45, 32, .36);
}

/* 呼出 / 通话中：不要「接听/拒接」 */
.tmc[data-mode="out"] .tmc-accept,
.tmc[data-mode="out"] .tmc-reject,
.tmc[data-mode="busy"] .tmc-accept,
.tmc[data-mode="busy"] .tmc-reject { display: none; }
/* 来电：只有接听/拒接 */
.tmc[data-mode="in"] .tmc-hang,
.tmc[data-mode="in"] .tmc-ib { display: none; }
.tmc[data-mode="in"] .tmc-bar { gap: 46px; }

/* 桌面端收窄一点，别糊满整屏 */
@media (min-width: 720px) {
  .tmc { align-items: center; }
  .tmc-stage { border-radius: 0; }
  .tmc-head { padding-top: 54px; }
  .tmc-local { width: 132px; height: 178px; right: 22px; bottom: 150px; }
  .tmc-bar { gap: 26px; }
  .tmc-ib, .tmc-hang, .tmc-accept, .tmc-reject { width: 66px; height: 66px; }
}

/* ============================================================
   拉黑：客服台提示条 + 拉黑弹窗；客户页受限横幅
   ============================================================ */

/* ---- 客服台：会话头部提示条 ---- */
.blkbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 14px;
  background: #fff5f5;
  border-bottom: 1px solid #ffe0e0;
  color: #c0392b;
  font-size: 12.5px;
  line-height: 1.5;
}
.blkbar[hidden] { display: none !important; }
.blkbar::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e74c3c;
  flex: none;
}
.blkbar #blkBarText { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blkbar button {
  flex: none;
  border: 1px solid #f3c2c2;
  background: #fff;
  color: #c0392b;
  border-radius: 7px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.blkbar button:hover { background: #ffecec; }

/* ---- 客服台：拉黑弹窗 ---- */
.blkdesc {
  padding: 0 18px 10px;
  font-size: 12.5px;
  color: #8a93a5;
  line-height: 1.65;
}
.blkchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 4px;
}
.blkchip {
  border: 1px solid #e3e8f0;
  background: #f7f9fc;
  color: #4a5568;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all .14s;
  font-family: inherit;
}
.blkchip:hover { border-color: #ffc9c9; background: #fff5f5; color: #c0392b; }
.blkchip.on { background: #e74c3c; border-color: #e74c3c; color: #fff; }
.blkinpwrap { padding: 12px 18px 4px; }
.blkinp {
  width: 100%;
  box-sizing: border-box;
  height: 36px;
  border: 1px solid #e3e8f0;
  border-radius: 9px;
  padding: 0 12px;
  font-size: 13px;
  color: #1f2733;
  outline: none;
  background: #fbfcfe;
  font-family: inherit;
}
.blkinp:focus { border-color: #0a9d6b; background: #fff; box-shadow: 0 0 0 3px rgba(10, 157, 107, .1); }
.btn.danger { background: #e74c3c !important; border-color: #e74c3c !important; color: #fff !important; }
.btn.danger:hover { background: #d63c2b !important; }

/* ---- 客户页：被限制发言横幅 ---- */
.vc-blockbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: #fff5f5;
  border-bottom: 1px solid #ffe0e0;
  color: #c0392b;
  font-size: 12.5px;
  line-height: 1.5;
}
.vc-blockbar.hidden { display: none !important; }
.vc-blockbar svg { flex: none; }
.vc-blockbar span { flex: 1; min-width: 0; }

/* 受限时输入区整体变灰 */
.vc-blockbar ~ .vc-foot .vc-send:disabled,
.vc-send:disabled { opacity: .45; cursor: not-allowed; }
