/* 浮动咨询条：一份 DOM 双布局——桌面端右侧竖排，移动端底部横条。
   只由咨询条片段加载（bar.css 随片段注入），移动端顺带把 AI 客服
   悬浮入口上移，避免与底部条重叠。 */
.cv-bar {
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%);
  z-index: 9997; display: flex; flex-direction: column; gap: 10px;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.cv-btn {
  display: block; padding: 11px 16px; border: none; border-radius: 999px;
  background: #1677ff; color: #fff; font-size: 14px; line-height: 1;
  text-align: center; text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22); font-family: inherit;
}
.cv-btn:hover { background: #0f66dd; }
.cv-call { background: #0aa06e; }
.cv-call:hover { background: #07855b; }
.cv-wechat { background: #07c160; }
.cv-wechat:hover { background: #06a852; }
.cv-pop {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  width: 216px; padding: 18px 16px 14px; background: #fff; color: #1f2328;
  border: 1px solid #e3e6ea; border-radius: 14px; text-align: center;
  box-shadow: 0 12px 38px rgba(0, 0, 0, .28);
}
.cv-pop[hidden] { display: none; }
.cv-pop-qr { width: 168px; height: 168px; object-fit: contain; }
.cv-pop-id { margin: 8px 0; font-size: 14px; word-break: break-all; }
.cv-pop-copy {
  padding: 7px 14px; border: none; border-radius: 999px; cursor: pointer;
  background: #07c160; color: #fff; font-size: 13px; font-family: inherit;
}
.cv-pop-close {
  position: absolute; top: 4px; right: 8px; border: none; background: none;
  font-size: 18px; line-height: 1; color: #8a919c; cursor: pointer;
}
@media (max-width: 767px) {
  .cv-bar {
    top: auto; bottom: 0; left: 0; right: 0; transform: none;
    flex-direction: row; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid #e5e7eb;
  }
  .cv-btn { flex: 1; padding: 12px 6px; }
  .cv-pop {
    position: fixed; left: 50%; right: auto; top: auto; bottom: 76px;
    transform: translateX(-50%);
  }
  .aic-launcher { bottom: 76px; }
  .aic-panel { bottom: 70px; height: min(540px, calc(100vh - 150px)); }
}
