/* MARQUIS 助手 · 嵌入式对话挂件 */
.mq-chat-bubble{
  position:fixed;right:24px;bottom:24px;width:60px;height:60px;border-radius:50%;
  background:linear-gradient(135deg,#1e4b8f,#0f1b2e);
  box-shadow:0 8px 24px rgba(15,27,46,.35);display:flex;align-items:center;justify-content:center;
  cursor:pointer;z-index:9998;transition:transform .2s;
}
.mq-chat-bubble:hover{transform:scale(1.06)}
.mq-chat-bubble svg{width:30px;height:30px}
.mq-chat-badge{position:absolute;top:-2px;right:-2px;min-width:18px;height:18px;padding:0 5px;
  border-radius:9px;background:#e23b3b;color:#fff;font-size:11px;line-height:18px;text-align:center;font-weight:600}
.mq-chat-panel{
  position:fixed;right:24px;bottom:96px;width:360px;max-width:calc(100vw - 32px);height:520px;
  max-height:calc(100vh - 120px);background:#fff;border-radius:16px;
  box-shadow:0 16px 48px rgba(15,27,46,.28);display:flex;flex-direction:column;overflow:hidden;
  z-index:9999;opacity:0;transform:translateY(12px) scale(.98);pointer-events:none;
  transition:opacity .22s,transform .22s;
}
.mq-chat-panel.open{opacity:1;transform:none;pointer-events:auto}
.mq-chat-head{background:linear-gradient(135deg,#0f1b2e,#1e4b8f);color:#fff;padding:14px 16px;
  display:flex;align-items:center;gap:10px}
.mq-chat-avatar{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.15);
  display:flex;align-items:center;justify-content:center;flex-shrink:0}
.mq-chat-avatar svg{width:20px;height:20px}
.mq-chat-title{font-size:15px;font-weight:600;line-height:1.2}
.mq-chat-sub{font-size:11px;opacity:.75}
.mq-chat-close{margin-left:auto;background:none;border:none;color:#fff;opacity:.8;cursor:pointer;
  font-size:22px;line-height:1;padding:0 4px}
.mq-chat-close:hover{opacity:1}
.mq-chat-body{flex:1;overflow-y:auto;padding:16px;background:#f6f8fb;
  display:flex;flex-direction:column;gap:12px}
.mq-msg{max-width:82%;padding:10px 13px;border-radius:14px;font-size:14px;line-height:1.55;
  white-space:pre-wrap;word-break:break-word}
.mq-msg.bot{background:#fff;color:#1a2433;align-self:flex-start;border-bottom-left-radius:4px;
  box-shadow:0 1px 2px rgba(15,27,46,.06)}
.mq-msg.user{background:linear-gradient(135deg,#1e4b8f,#0f1b2e);color:#fff;align-self:flex-end;
  border-bottom-right-radius:4px}
.mq-msg.typing{display:flex;gap:4px;align-items:center}
.mq-dot{width:6px;height:6px;border-radius:50%;background:#9aa7bd;animation:mqblink 1.2s infinite}
.mq-dot:nth-child(2){animation-delay:.2s}.mq-dot:nth-child(3){animation-delay:.4s}
@keyframes mqblink{0%,60%,100%{opacity:.3}30%{opacity:1}}
.mq-chat-card{background:#fff;border:1px solid #e3e9f2;border-radius:14px;padding:14px;
  align-self:flex-start;max-width:90%;box-shadow:0 2px 8px rgba(15,27,46,.06)}
.mq-chat-card h4{margin:0 0 6px;font-size:14px;color:#0f1b2e}
.mq-chat-card p{margin:0 0 10px;font-size:13px;color:#445;line-height:1.5}
.mq-chat-card a,.mq-chat-card button{display:inline-block;background:#0f1b2e;color:#fff;border:none;
  border-radius:9px;padding:8px 14px;font-size:13px;cursor:pointer;text-decoration:none}
.mq-chat-foot{padding:10px 12px;border-top:1px solid #eef1f6;background:#fff;display:flex;gap:8px;align-items:flex-end}
.mq-chat-input{flex:1;border:1px solid #dde3ec;border-radius:12px;padding:10px 12px;font-size:14px;
  resize:none;outline:none;font-family:inherit;max-height:96px;line-height:1.4}
.mq-chat-input:focus{border-color:#1e4b8f}
.mq-chat-send{width:40px;height:40px;border-radius:11px;background:linear-gradient(135deg,#1e4b8f,#0f1b2e);
  color:#fff;border:none;cursor:pointer;flex-shrink:0;font-size:18px;display:flex;align-items:center;justify-content:center}
.mq-chat-send:disabled{opacity:.5;cursor:default}
.mq-chat-pow{text-align:center;font-size:10px;color:#9aa7bd;padding:6px 0 0}
@media(max-width:480px){.mq-chat-panel{right:12px;bottom:84px;width:calc(100vw - 24px)}}
