/* 活力宝贝 · 在线顾问（不露 AI 字样） */

:root{
  --hb-green:#20a53a;
  --hb-green-dark:#178a2f;
  --hb-bg:#ffffff;
  --hb-text:#1f2937;
  --hb-muted:#6b7280;
  --hb-border:#e5e7eb;
  --hb-shadow:0 18px 50px rgba(0,0,0,.18);
}

#hb-kefu-btn{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  background: var(--hb-bg);
  border: 1px solid var(--hb-border);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  cursor:pointer;
  user-select:none;
}

#hb-kefu-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
}

#hb-kefu-avatar{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow:hidden;
  flex-shrink:0;
}

#hb-kefu-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

#hb-kefu-label{
  display:flex;
  flex-direction:column;
  line-height:1.1;
  padding-right:6px;
}

#hb-kefu-name{
  font-weight:800;
  color: var(--hb-text);
  font-size: 14px;
}

#hb-kefu-sub{
  margin-top:3px;
  font-size: 12px;
  color: var(--hb-muted);
}

#hb-kefu-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background: var(--hb-green);
  box-shadow: 0 0 0 4px rgba(32,165,58,.15);
  flex-shrink:0;
}

/* 弹窗 */
#hb-kefu-mask{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.36);
  z-index: 9998;
  display:none;
}

#hb-kefu-panel{
  position: fixed;
  right: 18px;
  bottom: 78px;
  width: min(380px, calc(100vw - 36px));
  height: 520px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--hb-shadow);
  z-index: 9999;
  overflow:hidden;
  display:none;
  border: 1px solid rgba(0,0,0,.06);
}

.hb-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(32,165,58,.12), rgba(188,155,93,.10));
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.hb-head-left{
  display:flex;
  align-items:center;
  gap:10px;
}

.hb-head-title{
  display:flex;
  flex-direction:column;
}

.hb-title{
  font-weight:900;
  color:#111827;
  font-size:14px;
}

.hb-tip{
  font-size:12px;
  color:#374151;
  margin-top:2px;
}

.hb-close{
  border: none;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.08);
  color:#111;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor:pointer;
}

.hb-body{
  height: calc(520px - 54px - 66px);
  padding: 14px;
  overflow:auto;
  background: #fafafa;
}

.hb-msg{
  display:flex;
  gap:10px;
  margin-bottom: 12px;
}

.hb-bubble{
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 14px;
  background:#fff;
  border: 1px solid rgba(0,0,0,.06);
  color: var(--hb-text);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.hb-me{
  justify-content:flex-end;
}

.hb-me .hb-bubble{
  background: rgba(32,165,58,.10);
  border-color: rgba(32,165,58,.18);
}

.hb-foot{
  padding: 10px 12px;
  border-top: 1px solid rgba(0,0,0,.06);
  background:#fff;
}

.hb-quick{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom: 8px;
}

.hb-chip{
  font-size:12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(32,165,58,.25);
  color: var(--hb-green-dark);
  background: rgba(32,165,58,.08);
  cursor:pointer;
}

.hb-input-row{
  display:flex;
  gap:8px;
}

#hb-input{
  flex:1;
  border: 1px solid var(--hb-border);
  border-radius: 12px;
  padding: 10px 10px;
  outline:none;
  font-size: 13px;
}

#hb-send{
  border:none;
  background: var(--hb-green);
  color:#fff;
  font-weight:900;
  padding: 0 14px;
  border-radius: 12px;
  cursor:pointer;
}

#hb-send:disabled{
  opacity:.6;
  cursor:not-allowed;
}