/* AI 销售助手样式 v2（独立文件，站点直接用 <link> 引入） */
#ai-assistant-btn {
  position: fixed; right: 24px; bottom: 190px; z-index: 9990;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #6d5ef2, #7c6cf6); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  box-shadow: 0 4px 16px rgba(26, 86, 219, .35); transition: transform .2s, box-shadow .2s;
}
#ai-assistant-btn:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(26, 86, 219, .45); }
#ai-assistant-panel {
  position: fixed; right: 24px; bottom: 258px; z-index: 9991;
  width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100vh - 300px);
  background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(15, 42, 94, .25);
  display: none; flex-direction: column; overflow: hidden; border: 1px solid #e8e8f0;
}
#ai-assistant-panel.open { display: flex; }
.ai-head {
  background: linear-gradient(135deg, #3b2f8f, #6d5ef2); color: #fff; padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center; font-size: 14px;
}
#ai-close { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; opacity: .8; }
#ai-close:hover { opacity: 1; }
.ai-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #f7f7fb; }
.ai-msg { max-width: 88%; padding: 9px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.ai-msg.user { align-self: flex-end; background: #6d5ef2; color: #fff; border-bottom-right-radius: 4px; }
.ai-msg.bot { align-self: flex-start; background: #fff; border: 1px solid #e8e8f0; border-bottom-left-radius: 4px; }
.ai-quick { display: flex; gap: 6px; padding: 8px 12px; flex-wrap: wrap; background: #fff; border-top: 1px solid #efedf9; }
.ai-quick button { font-size: 12px; padding: 5px 10px; border-radius: 20px; border: 1px solid #ddd8f8; background: #f0eefc; color: #6d5ef2; cursor: pointer; }
.ai-quick button:hover { background: #dbeafe; }
.ai-input { display: flex; border-top: 1px solid #efedf9; background: #fff; }
.ai-input input { flex: 1; border: none; padding: 12px 14px; font-size: 13.5px; outline: none; }
.ai-input button { border: none; background: #6d5ef2; color: #fff; width: 44px; font-size: 15px; cursor: pointer; }
.ai-inq { background: #f0f6ff; border: 1px solid #d4e4fb; border-radius: 12px; padding: 12px; margin-top: 4px; align-self: stretch; }
.ai-inq-title { font-size: 13px; font-weight: 600; color: #143d9e; margin-bottom: 8px; }
.ai-inq input { width: 100%; margin-bottom: 6px; padding: 8px 10px; border: 1px solid #d4e4fb; border-radius: 8px; font-size: 13px; box-sizing: border-box; }
.ai-inq button { width: 100%; padding: 9px; background: #16a34a; color: #fff; border: none; border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.ai-inq-status { font-size: 12px; color: #16a34a; margin-top: 6px; }
.ai-contact { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #d4e0f2; font-size: 12px; color: #5b6b84; line-height: 1.7; }
.ai-contact a { color: #6d5ef2; text-decoration: none; font-weight: 600; }
.ai-contact a:hover { text-decoration: underline; }
.ai-btn-label { font-size: 10px; font-weight: 800; letter-spacing: 1px; line-height: 1; }
.ai-contact-btns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.ai-btn-wa { display: inline-flex; align-items: center; gap: 6px; background: #25d366; color: #fff; font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 999px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.ai-btn-wa:hover { transform: scale(1.04); box-shadow: 0 3px 10px rgba(37, 211, 102, .4); }
.ai-btn-mail { display: inline-flex; align-items: center; gap: 6px; background: #6d5ef2; color: #fff; font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 999px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.ai-btn-mail:hover { transform: scale(1.04); box-shadow: 0 3px 10px rgba(109, 94, 242, .4); }
@media (max-width: 640px) {
  #ai-assistant-btn { right: 16px; bottom: 176px; width: 54px; height: 54px; }
  #ai-assistant-panel { right: 8px; bottom: 236px; width: calc(100vw - 16px); height: 60vh; }
}
