/* 汇必通官网 - 全站悬浮客服挂件 */
.hbt-kefu-root{position:fixed;right:22px;bottom:88px;z-index:9998;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;-webkit-tap-highlight-color:transparent}

/* 圆形头像按钮 */
.hbt-kefu-fab{position:relative;width:56px;height:56px;border-radius:50%;border:none;padding:0;cursor:pointer;
  background:linear-gradient(135deg,#46d2e6 0%,#2084a6 55%,#0d4a6e 100%);
  box-shadow:0 6px 22px rgba(13,74,110,.38);
  display:flex;align-items:center;justify-content:center;overflow:hidden;
  transition:transform .25s ease,box-shadow .25s ease}
.hbt-kefu-fab:hover{transform:translateY(-2px) scale(1.04);box-shadow:0 10px 26px rgba(13,74,110,.45)}
.hbt-kefu-fab svg{width:56px;height:56px;display:block}
.hbt-kefu-fab::after{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid rgba(255,255,255,.75);
  animation:hbtKefuPulse 2.4s ease-out infinite;pointer-events:none}
@keyframes hbtKefuPulse{0%{transform:scale(1);opacity:.85}70%{transform:scale(1.45);opacity:0}100%{transform:scale(1.45);opacity:0}}
.hbt-kefu-root.is-open .hbt-kefu-fab::after{animation:none;opacity:0}

/* 未读红点 */
.hbt-kefu-dot{position:absolute;top:-1px;right:-1px;width:14px;height:14px;border-radius:50%;background:#ff3b30;
  border:2px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.hbt-kefu-root.is-open .hbt-kefu-dot,.hbt-kefu-root.seen .hbt-kefu-dot{display:none}

/* 招呼气泡 */
.hbt-kefu-hi{position:absolute;right:66px;bottom:14px;background:#fff;color:#0d4a6e;font-size:13px;line-height:1.5;
  padding:8px 12px;border-radius:14px 14px 2px 14px;box-shadow:0 4px 16px rgba(13,74,110,.18);white-space:nowrap;
  opacity:0;transform:translateX(10px);transition:opacity .3s,transform .3s;pointer-events:none;max-width:60vw}
.hbt-kefu-hi.show{opacity:1;transform:translateX(0)}
.hbt-kefu-root.is-open .hbt-kefu-hi{opacity:0;transform:translateX(10px)}

/* 展开面板 */
.hbt-kefu-panel{position:absolute;right:0;bottom:70px;width:252px;background:#fff;border-radius:18px;
  box-shadow:0 16px 44px rgba(10,42,80,.28);overflow:hidden;
  opacity:0;visibility:hidden;transform:translateY(12px) scale(.96);transform-origin:bottom right;
  transition:opacity .22s ease,transform .22s ease,visibility .22s}
.hbt-kefu-root.is-open .hbt-kefu-panel{opacity:1;visibility:visible;transform:translateY(0) scale(1)}

.hbt-kefu-head{background:linear-gradient(135deg,#46d2e6 0%,#2084a6 55%,#0d4a6e 100%);color:#fff;padding:14px 16px;display:flex;align-items:center;gap:10px}
.hbt-kefu-avatar{width:38px;height:38px;border-radius:50%;flex:0 0 38px;overflow:hidden;background:rgba(255,255,255,.22);display:flex;align-items:center;justify-content:center}
.hbt-kefu-avatar svg{width:38px;height:38px}
.hbt-kefu-title{font-size:15px;font-weight:700;letter-spacing:.5px}
.hbt-kefu-sub{font-size:11px;opacity:.85;margin-top:2px}
.hbt-kefu-close{position:absolute;top:8px;right:10px;color:rgba(255,255,255,.85);font-size:18px;line-height:1;cursor:pointer;background:none;border:none;padding:4px}

.hbt-kefu-body{padding:14px 16px 16px;text-align:center}
.hbt-kefu-qr{width:160px;height:160px;margin:0 auto;border-radius:10px;overflow:hidden;background:#f4f7fa;display:block}
.hbt-kefu-qr img{width:100%;height:100%;object-fit:contain;display:block}
.hbt-kefu-tip{margin-top:10px;font-size:12px;color:#5a6b7b;line-height:1.6}
.hbt-kefu-tip b{color:#0d4a6e}
.hbt-kefu-btn{display:block;margin-top:12px;width:100%;border:none;border-radius:10px;padding:10px 0;font-size:14px;font-weight:700;color:#fff;cursor:pointer;
  background:linear-gradient(135deg,#2ea8c4 0%,#0d4a6e 100%);box-shadow:0 4px 14px rgba(13,74,110,.3);text-decoration:none;text-align:center}
.hbt-kefu-btn:active{transform:translateY(1px)}
.hbt-kefu-foot{padding:9px 16px;background:#f4f7fa;font-size:11px;color:#8b98a5;text-align:center;border-top:1px solid #e8eef3}

/* 移动端 */
@media (max-width:768px){
  .hbt-kefu-root{right:16px;bottom:84px}
  .hbt-kefu-fab{width:52px;height:52px}
  .hbt-kefu-fab svg{width:52px;height:52px}
  .hbt-kefu-panel{width:230px}
  .hbt-kefu-hi{font-size:12px;right:62px}
}
