/* AI 智能客服悬浮组件（PC/H5 共用） */
.qby-ai-fab{position:fixed;right:20px;bottom:24px;width:52px;height:52px;border-radius:50%;background:linear-gradient(135deg,#2b6cff,#7b5cff);color:#fff;border:none;font-size:24px;cursor:pointer;box-shadow:0 6px 18px rgba(43,108,255,.35);z-index:9999;display:flex;align-items:center;justify-content:center}
.qby-ai-fab:hover{transform:scale(1.06)}
.qby-ai-panel{position:fixed;right:20px;bottom:88px;width:340px;max-width:calc(100vw - 32px);height:440px;max-height:calc(100vh - 120px);background:#fff;border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.18);z-index:10000;display:none;flex-direction:column;overflow:hidden;border:1px solid #eef1f8}
.qby-ai-panel.open{display:flex}
.qby-ai-hd{padding:12px 14px;background:linear-gradient(135deg,#2b6cff,#7b5cff);color:#fff;font-weight:600;font-size:14px;display:flex;justify-content:space-between;align-items:center}
.qby-ai-hd span{opacity:.8;font-size:11px;font-weight:400;margin-left:6px}
.qby-ai-close{background:none;border:none;color:#fff;font-size:18px;cursor:pointer;line-height:1}
.qby-ai-msgs{flex:1;overflow-y:auto;padding:12px;background:#f8f9fc}
.qby-ai-msg{margin-bottom:10px;display:flex;flex-direction:column}
.qby-ai-msg.user{align-items:flex-end}
.qby-ai-msg .bubble{max-width:88%;padding:9px 12px;border-radius:12px;font-size:13px;line-height:1.7;white-space:pre-wrap;word-break:break-word}
.qby-ai-msg.bot .bubble{background:#fff;color:#333;border:1px solid #eef1f8}
.qby-ai-msg.user .bubble{background:#2b6cff;color:#fff}
.qby-ai-sugs{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 8px}
.qby-ai-sug{border:1px solid #d6e4ff;color:#2b6cff;background:#f0f5ff;border-radius:999px;padding:4px 10px;font-size:12px;cursor:pointer}
.qby-ai-input{border-top:1px solid #eef1f8;padding:10px;display:flex;gap:8px}
.qby-ai-input input{flex:1;border:1px solid #e5e8ef;border-radius:8px;padding:9px 10px;font-size:13px;outline:none;min-width:0}
.qby-ai-input input:focus{border-color:#2b6cff}
.qby-ai-input button{border:none;background:#2b6cff;color:#fff;border-radius:8px;padding:0 14px;font-size:13px;cursor:pointer}
@media(max-width:640px){.qby-ai-fab{right:14px;bottom:16px}.qby-ai-panel{right:10px;bottom:76px;width:calc(100vw - 20px);height:60vh}}
