/* BlissPulp AI Chat 聊天组件样式 */
#bpai-root * { box-sizing: border-box; margin: 0; padding: 0; }
#bpai-bubble {
  position: fixed; right: 20px; bottom: 20px; z-index: 99998;
  width: 72px; height: 72px; border-radius: 50%;
  background: #128c7e; color: #fff; border: none; cursor: pointer;
  font-size: 34px; box-shadow: 0 4px 14px rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
#bpai-bubble:hover { transform: scale(1.08); }
#bpai-window {
  position: fixed; right: 20px; bottom: 100px; z-index: 99999;
  width: 400px; max-width: calc(100vw - 40px); height: 540px; max-height: calc(100vh - 130px);
  background: #fff; border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,.22);
  display: none; flex-direction: column; overflow: hidden;
  font-family: inherit;
}
#bpai-window.open { display: flex; }
#bpai-head {
  background: #128c7e; color: #fff; padding: 15px 18px; font-size: 16px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
}
#bpai-close { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }
#bpai-msgs { flex: 1; overflow-y: auto; padding: 16px; background: #f6f7f9; }
.bpai-msg { margin-bottom: 12px; display: flex; }
.bpai-msg.bot { justify-content: flex-start; }
.bpai-msg.user { justify-content: flex-end; }
.bpai-msg .bubble {
  max-width: 80%; padding: 10px 15px; border-radius: 12px; font-size: 15px; line-height: 1.5;
  word-break: break-word; white-space: pre-wrap;
}
.bpai-msg.bot .bubble { background: #fff; border: 1px solid #e5e7eb; border-bottom-left-radius: 3px; }
.bpai-msg.user .bubble { background: #128c7e; color: #fff; border-bottom-right-radius: 3px; }
#bpai-input-row { display: flex; border-top: 1px solid #e5e7eb; padding: 12px; background: #fff; }
#bpai-input { flex: 1; border: 1px solid #ddd; border-radius: 22px; padding: 10px 16px; font-size: 15px; outline: none; }
#bpai-input:focus { border-color: #128c7e; }
#bpai-send {
  margin-left: 8px; border: none; background: #128c7e; color: #fff;
  border-radius: 50%; width: 44px; height: 44px; font-size: 18px; cursor: pointer; flex-shrink: 0;
}
#bpai-send:disabled { background: #bbb; cursor: not-allowed; }
#bpai-wa { display: block; text-align: center; padding: 9px; font-size: 13px; color: #128c7e; text-decoration: none; background: #f0faf7; border-top: 1px dashed #cde8e0; }
#bpai-wa:hover { background: #e4f5f0; }
@media (max-width: 480px) { #bpai-window { width: calc(100vw - 24px); right: 12px; bottom: 84px; } }
