/* 存客宝官网 · AI 客服挂件样式（毛玻璃浮层） */
.ckb-ai-root { position: fixed; right: 22px; bottom: 22px; z-index: 9998; font-family: inherit; }
.ckb-ai-trigger {
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-size: 24px;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4); transition: transform 0.2s;
}
.ckb-ai-trigger:hover { transform: scale(1.08); }
.ckb-ai-panel {
  position: absolute; right: 0; bottom: 70px; width: 340px; max-width: calc(100vw - 32px);
  height: 460px; max-height: calc(100vh - 120px); display: none; flex-direction: column;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(14px);
  border: 1px solid rgba(99, 102, 241, 0.18); border-radius: 16px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.22);
}
.ckb-ai-panel.open { display: flex; animation: ckbAiIn 0.25s ease; }
@keyframes ckbAiIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.ckb-ai-head {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 16px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff;
}
.ckb-ai-head strong { display: block; font-size: 15px; }
.ckb-ai-head span { font-size: 11px; opacity: 0.85; }
.ckb-ai-close { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.ckb-ai-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ckb-ai-msg { max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.ckb-ai-msg.bot { align-self: flex-start; background: #f1f5f9; color: #0f172a; border-bottom-left-radius: 4px; }
.ckb-ai-msg.user { align-self: flex-end; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border-bottom-right-radius: 4px; }
.ckb-ai-typing { padding: 4px 16px; font-size: 12px; color: #64748b; }
.ckb-ai-typing.is-hidden { display: none; }
.ckb-ai-foot { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(15, 23, 42, 0.08); }
.ckb-ai-foot input {
  flex: 1; border: 1px solid rgba(15, 23, 42, 0.14); border-radius: 10px; padding: 9px 12px; font-size: 13px; outline: none;
}
.ckb-ai-foot input:focus { border-color: #6366f1; }
.ckb-ai-foot button {
  border: none; border-radius: 10px; padding: 0 16px; cursor: pointer; font-size: 13px; font-weight: 600;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff;
}
.ckb-ai-foot button:disabled { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 480px) {
  .ckb-ai-root { right: 14px; bottom: 14px; }
  .ckb-ai-panel { width: calc(100vw - 28px); height: 70vh; }
}
