/* ═══════════════════════════════════════════════════════════════
   客服机器人「小法」— 登录页智能客服样式
   2026-10-21 建 · 邱数智方（福建）科技股份有限公司
   约束：站点 CSP script-src 'self' → 本文件外置，禁止内联事件
   ═══════════════════════════════════════════════════════════════ */

/* ── 启动器：客服数字人悬浮头像（对齐作业诊断 AI 老师，可拖动） ──
   2026-10-22 邱董令：形象/悬浮方式与「作业诊断」AI 老师一致 */
#csLauncher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10100;
  width: 78px;
  height: 78px;
  border: none;
  border-radius: 50%;
  cursor: grab;
  user-select: none;
  touch-action: none;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  box-shadow: 0 8px 22px rgba(30, 109, 242, .38);
  transition: box-shadow .2s ease, transform .1s ease;
}
#csLauncher:hover { box-shadow: 0 12px 30px rgba(30, 109, 242, .5); }
#csLauncher:active { cursor: grabbing; }
/* 数字人头像圆环 */
#csLauncher .cs-lz-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(30, 109, 242, .7);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.6);
}
#csLauncher .cs-lz-ring canvas {
  width: 100%;
  height: 100%;
  display: block;
}
/* 呼吸光晕：吸引注意但不刺眼 */
#csLauncher::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, .45);
  animation: csBreath 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes csBreath {
  0%   { transform: scale(.92); opacity: .85; }
  70%  { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}
/* 未读红点 */
#csLauncher .cs-lz-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #EF4444;
  border: 2px solid #fff;
  display: none;
}
#csLauncher.cs-has-dot .cs-lz-dot { display: block; }

/* ── 面板 ── */
#csPanel {
  position: fixed;
  right: 24px;
  bottom: 94px;   /* 对齐 78px 悬浮头像上方 */
  z-index: 10101;
  width: 392px;
  max-width: calc(100vw - 32px);
  height: 588px;
  max-height: calc(100vh - 130px);
  background: #fff;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .20), 0 6px 18px rgba(15, 23, 42, .10);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(.97);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .2s ease, transform .24s cubic-bezier(.22,.7,.28,1);
  font-family: inherit;
}
#csPanel.cs-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* 头部 */
.cs-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  background: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 60%, #0EA5E9 100%);
  color: #fff;
  position: relative;
}
.cs-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px 90px at 88% -30%, rgba(255,255,255,.28), transparent 70%);
  pointer-events: none;
}
.cs-ava {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .20);
  border: 1.5px solid rgba(255, 255, 255, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 900;
  color: #fff;
  position: relative;
  z-index: 1;
}
.cs-meta { flex: 1; min-width: 0; position: relative; z-index: 1; }
.cs-meta .cs-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cs-meta .cs-name .cs-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .24);
  letter-spacing: 0;
}
.cs-meta .cs-sub {
  font-size: 11.5px;
  opacity: .9;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.cs-meta .cs-sub .cs-online {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, .3);
}
.cs-head-btns { display: flex; gap: 4px; position: relative; z-index: 1; }
.cs-hbtn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background .15s ease;
}
.cs-hbtn:hover { background: rgba(255, 255, 255, .28); }

/* 消息区 */
.cs-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 15px 14px 6px;
  background: linear-gradient(180deg, #F8FAFF 0%, #FFFFFF 42%);
  scroll-behavior: smooth;
}
.cs-body::-webkit-scrollbar { width: 6px; }
.cs-body::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
.cs-body::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

.cs-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  align-items: flex-start;
  animation: csMsgIn .26s cubic-bezier(.22,.7,.28,1) both;
}
@keyframes csMsgIn {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}
.cs-row.cs-me { flex-direction: row-reverse; }

.cs-row .cs-mini {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  margin-top: 2px;
}
.cs-row.cs-bot .cs-mini {
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}
.cs-row.cs-me .cs-mini {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #E2E8F0;
}

.cs-bubble {
  max-width: 78%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.72;
  word-break: break-word;
  white-space: pre-wrap;
}
.cs-row.cs-bot .cs-bubble {
  background: #fff;
  color: #1E293B;
  border: 1px solid #E2E8F0;
  border-top-left-radius: 5px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}
.cs-row.cs-me .cs-bubble {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #fff;
  border-top-right-radius: 5px;
  box-shadow: 0 3px 10px rgba(37, 99, 235, .24);
}
.cs-bubble b { color: #1D4ED8; }
.cs-row.cs-me .cs-bubble b { color: #fff; }

/* 思考中 */
.cs-typing { display: flex; gap: 4px; align-items: center; padding: 4px 2px; }
.cs-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94A3B8;
  animation: csDot 1.2s infinite ease-in-out;
}
.cs-typing span:nth-child(2) { animation-delay: .16s; }
.cs-typing span:nth-child(3) { animation-delay: .32s; }
@keyframes csDot {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

/* 快捷提问 chips */
.cs-chips {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px 14px 10px;
  border-top: 1px solid #F1F5F9;
  background: #fff;
  max-height: 112px;
  overflow-y: auto;
}
.cs-chip {
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
  white-space: nowrap;
}
.cs-chip:hover {
  border-color: #2563EB;
  background: #EFF6FF;
  color: #1D4ED8;
  transform: translateY(-1px);
}

/* 输入区 */
.cs-input-row {
  flex: none;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 10px 14px 12px;
  border-top: 1px solid #E2E8F0;
  background: #fff;
}
#csInput {
  flex: 1;
  min-width: 0;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: inherit;
  line-height: 1.5;
  resize: none;
  max-height: 90px;
  min-height: 40px;
  color: #1E293B;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  background: #fff;
}
#csInput::placeholder { color: #94A3B8; }
#csInput:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
#csSend {
  flex: none;
  width: 62px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s ease, box-shadow .2s ease, opacity .15s ease;
  box-shadow: 0 3px 10px rgba(37, 99, 235, .28);
}
#csSend:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37, 99, 235, .34); }
#csSend:active:not(:disabled) { transform: scale(.97); }
#csSend:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* 底部提示 */
.cs-foot {
  flex: none;
  text-align: center;
  font-size: 10.5px;
  color: #94A3B8;
  padding: 0 14px 8px;
  background: #fff;
  letter-spacing: .2px;
}

/* ═══════════ 演示高亮（Tour） ═══════════ */
.cs-tour-hl {
  position: relative !important;
  outline: 3px solid #F59E0B !important;
  outline-offset: 3px !important;
  border-radius: 8px !important;
  box-shadow: 0 0 0 6px rgba(245, 158, 11, .18), 0 0 22px rgba(245, 158, 11, .45) !important;
  animation: csHlPulse 1.5s ease-in-out infinite !important;
  z-index: 9500 !important;
}
@keyframes csHlPulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(245, 158, 11, .18), 0 0 22px rgba(245, 158, 11, .40); }
  50%      { box-shadow: 0 0 0 10px rgba(245, 158, 11, .10), 0 0 30px rgba(245, 158, 11, .60); }
}

/* 演示气泡 */
#csTip {
  position: fixed;
  z-index: 10102;
  max-width: 268px;
  background: #111827;
  color: #fff;
  border-radius: 12px;
  padding: 11px 13px 11px;
  font-size: 13px;
  line-height: 1.65;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .34);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .2s cubic-bezier(.22,.7,.28,1);
  pointer-events: none;
}
#csTip.cs-tip-in { opacity: 1; transform: none; }
#csTip::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #111827;
  transform: rotate(45deg);
}
#csTip.cs-below::after { top: -5px; left: 24px; }
#csTip.cs-above::after { bottom: -5px; left: 24px; }
#csTip .cs-tip-txt { margin-bottom: 9px; }
#csTip .cs-tip-btns { display: flex; gap: 7px; align-items: center; }
#csTip button {
  border: none;
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
}
#csTip .cs-tip-next { background: #F59E0B; color: #111827; }
#csTip .cs-tip-next:hover { background: #FBBF24; }
#csTip .cs-tip-skip { background: rgba(255, 255, 255, .14); color: #E5E7EB; }
#csTip .cs-tip-skip:hover { background: rgba(255, 255, 255, .26); }
#csTip .cs-tip-step { margin-left: auto; font-size: 11px; color: #9CA3AF; }

/* ═══════════ 移动端 ═══════════ */
@media (max-width: 560px) {
  #csLauncher { right: 16px; bottom: 16px; width: 70px; height: 70px; }
  #csPanel {
    right: 0;
    bottom: 0;
    left: 0;
    top: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
    transform: translateY(24px);
  }
  #csPanel.cs-open { transform: none; }
  .cs-bubble { max-width: 82%; }
  .cs-head { padding: 12px 14px; padding-top: max(12px, env(safe-area-inset-top)); }
  .cs-input-row { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  #csTip { max-width: calc(100vw - 40px); }
}


/* ═══════════════════════════════════════════════════════════════
   2026-10-21 v2：小艺式「面对面」升级
   数字人形象 + 唇形同步 + 语音输入 + 情绪徽章 + 字幕条
   ═══════════════════════════════════════════════════════════════ */

/* 头部改成数字人布局 */
.cs-head.cs-head-v2 {
  padding: 0;
  display: block;
  background: linear-gradient(160deg, #1D4ED8 0%, #2563EB 52%, #0EA5E9 100%);
}
.cs-face-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 10px;
}
.cs-face-ring {
  position: relative;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,.22);
  border: 2px solid rgba(255,255,255,.72);
  box-shadow: 0 4px 14px rgba(2, 8, 23, .28);
  transition: box-shadow .3s ease, border-color .3s ease;
}
/* 状态光环：说话/聆听时呼吸 */
.cs-face-ring.cs-st-speaking { border-color: #4ADE80; box-shadow: 0 0 0 3px rgba(74,222,128,.28), 0 4px 18px rgba(74,222,128,.4); }
.cs-face-ring.cs-st-listening { border-color: #FBBF24; box-shadow: 0 0 0 3px rgba(251,191,36,.32), 0 4px 18px rgba(251,191,36,.45); animation: csListenPulse 1.1s ease-in-out infinite; }
.cs-face-ring.cs-st-thinking { border-color: #93C5FD; box-shadow: 0 0 0 3px rgba(147,197,253,.3); }
@keyframes csListenPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(251,191,36,.30), 0 4px 18px rgba(251,191,36,.40); }
  50%     { box-shadow: 0 0 0 7px rgba(251,191,36,.14), 0 4px 26px rgba(251,191,36,.55); }
}
#csFaceCanvas { display: block; width: 100%; height: 100%; }

.cs-id-wrap { flex: 1; min-width: 0; position: relative; z-index: 1; }
.cs-id-name {
  font-size: 15px; font-weight: 800; color: #fff; letter-spacing: .4px;
  display: flex; align-items: center; gap: 6px;
}
.cs-id-name .cs-tag {
  font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 5px;
  background: rgba(255,255,255,.24); letter-spacing: 0;
}
.cs-id-sub {
  font-size: 11.5px; color: rgba(255,255,255,.92); margin-top: 3px;
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
}
.cs-id-sub .cs-online {
  width: 6px; height: 6px; border-radius: 50%; background: #4ADE80;
  box-shadow: 0 0 0 2px rgba(74,222,128,.32);
}
/* 情绪徽章（观言察色外显） */
.cs-mood {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: rgba(255,255,255,.22); color: #fff;
  transition: background .25s ease, transform .25s ease;
}
.cs-mood.cs-mood-anxious    { background: rgba(251,191,36,.92); color: #422006; }
.cs-mood.cs-mood-confused   { background: rgba(147,197,253,.95); color: #1E3A8A; }
.cs-mood.cs-mood-urgent     { background: rgba(248,113,113,.95); color: #450A0A; }
.cs-mood.cs-mood-frustrated { background: rgba(252,165,165,.95); color: #450A0A; }
.cs-mood.cs-mood-satisfied  { background: rgba(110,231,183,.95); color: #064E3B; }

/* 头部右侧按钮保持可见 */
.cs-head-v2 .cs-head-btns {
  position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; gap: 3px;
}
.cs-head-v2 .cs-hbtn {
  background: rgba(255,255,255,.18);
  width: 26px; height: 26px; font-size: 13px;
}
.cs-head-v2 .cs-hbtn.cs-hbtn-on { background: rgba(74,222,128,.85); color: #052E16; }

/* 字幕条：面对面时把「正在说的话」大字显示 */
.cs-subtitle {
  flex: none;
  display: none;
  margin: 0 14px 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #F1F5F9;
  border-left: 3px solid #2563EB;
  font-size: 12.5px;
  line-height: 1.6;
  color: #334155;
  max-height: 62px;
  overflow: hidden;
}
.cs-subtitle.cs-show { display: block; }
.cs-subtitle .cs-sub-who {
  font-size: 10.5px; font-weight: 800; color: #2563EB; margin-bottom: 2px;
}

/* 输入区加麦克风按钮 */
.cs-mic, .cs-tone {
  flex: none;
  width: 40px;
  height: 40px;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  background: #fff;
  font-size: 17px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .16s ease;
  padding: 0;
}
.cs-mic:hover, .cs-tone:hover { border-color: #2563EB; background: #EFF6FF; }
.cs-mic.cs-rec {
  border-color: #EF4444;
  background: #FEF2F2;
  animation: csMicPulse 1s ease-in-out infinite;
}
@keyframes csMicPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.45); }
  50%     { box-shadow: 0 0 0 7px rgba(239,68,68,.02); }
}
.cs-tone.cs-tone-off { opacity: .55; }

/* 移动端：数字人更大，面对面感更强 */
@media (max-width: 560px) {
  .cs-face-wrap { padding-top: max(12px, env(safe-area-inset-top)); }
  .cs-face-ring { width: 58px; height: 58px; }
  .cs-subtitle { margin: 0 12px 8px; }
}


/* ═══════════════════════════════════════════════════════════════
   2026-10-21 v3：面对面模式（摄像头 + 实时语音对话）
   隐私铁律：必须显式同意才开；画面只本地渲染不上传；随时可关；离场自动释放
   ═══════════════════════════════════════════════════════════════ */

/* 同意授权卡 */
.cs-consent {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(15, 23, 42, .82);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cs-consent.cs-show { display: flex; }
.cs-consent-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px 14px;
  width: 100%;
  max-width: 322px;
  box-shadow: 0 18px 48px rgba(2, 8, 23, .42);
  animation: csConsentIn .24s cubic-bezier(.22,.7,.28,1) both;
}
@keyframes csConsentIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.cs-consent-ico {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  color: #1D4ED8; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.cs-consent-title {
  text-align: center; font-size: 15px; font-weight: 800; color: #1E293B; margin-bottom: 8px;
}
.cs-consent-body {
  font-size: 12.5px; line-height: 1.75; color: #475569; margin-bottom: 12px;
}
.cs-consent-body ul { margin: 6px 0 0; padding-left: 17px; }
.cs-consent-body li { margin: 3px 0; }
.cs-consent-body b { color: #1D4ED8; }
.cs-consent-actions { display: flex; gap: 8px; }
.cs-consent-actions button {
  flex: 1; height: 40px; border-radius: 10px; border: none;
  font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: all .15s ease;
}
.cs-consent-cancel { background: #F1F5F9; color: #475569; }
.cs-consent-cancel:hover { background: #E2E8F0; }
.cs-consent-ok { background: linear-gradient(135deg, #2563EB, #1D4ED8); color: #fff; }
.cs-consent-ok:hover { filter: brightness(1.08); }

/* 摄像头画面舞台 */
.cs-face-stage {
  flex: none;
  display: none;
  position: relative;
  height: 178px;
  margin: 0 14px 8px;
  border-radius: 12px;
  overflow: hidden;
  background: #0F172A;
  border: 1px solid #1E293B;
}
.cs-face-stage.cs-show { display: block; }
#csLocalVideo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scaleX(-1);   /* 自拍镜像，符合直觉 */
  background: #0F172A;
}
/* 数字人小窗（画中画，位于摄像头画面右下角） */
.cs-pip {
  position: absolute;
  right: 9px; bottom: 9px;
  width: 62px; height: 62px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 4px 16px rgba(0,0,0,.45);
  background: #1E293B;
}
.cs-pip canvas { width: 100%; height: 100%; display: block; }

/* 舞台顶部状态条 */
.cs-stage-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 7px;
  padding: 7px 9px;
  background: linear-gradient(180deg, rgba(2,8,23,.72), rgba(2,8,23,0));
  font-size: 11px; color: #fff; font-weight: 700;
}
.cs-rec-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 0 2px rgba(239,68,68,.28);
  animation: csRecBlink 1.4s ease-in-out infinite;
}
@keyframes csRecBlink { 0%,100%{opacity:1} 50%{opacity:.28} }
.cs-stage-bar .cs-stage-spacer { flex: 1; }
.cs-stage-btn {
  border: none; border-radius: 7px; padding: 4px 9px;
  background: rgba(255,255,255,.22); color: #fff;
  font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background .15s ease;
}
.cs-stage-btn:hover { background: rgba(255,255,255,.36); }
.cs-stage-btn.cs-danger { background: rgba(239,68,68,.85); }
.cs-stage-btn.cs-danger:hover { background: #DC2626; }

/* 面对面时状态提示（在输入区上方） */
.cs-voice-status {
  flex: none;
  display: none;
  padding: 6px 14px 0;
  font-size: 11.5px;
  font-weight: 700;
  color: #2563EB;
  background: #fff;
  align-items: center;
  gap: 6px;
}
.cs-voice-status.cs-show { display: flex; }
.cs-voice-status .cs-vs-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #2563EB;
  animation: csVsPulse 1.1s ease-in-out infinite;
}
@keyframes csVsPulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.5);opacity:.4} }

/* 头部「面对面」按钮 */
/* 复用 .cs-hbtn；激活态 */
.cs-hbtn.cs-hbtn-face.cs-on {
  background: rgba(74,222,128,.9);
  color: #052E16;
}

/* 移动端：画面更高 */
@media (max-width: 560px) {
  .cs-face-stage { height: 42vh; max-height: 300px; margin: 0 12px 8px; }
  .cs-pip { width: 58px; height: 58px; }
}
