/* 万众编剧网 AI 客服助手 - 样式 */
#wzbj-ai-fab {
  position: fixed;
  right: 24px;
  bottom: 80px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3586bf 0%, #2a6fa0 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(53, 134, 191, 0.4);
  z-index: 9998;
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 24px;
  user-select: none;
}
#wzbj-ai-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(53, 134, 191, 0.55);
}
#wzbj-ai-fab .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

#wzbj-ai-panel {
  position: fixed;
  right: 24px;
  bottom: 150px;
  width: 360px;
  height: 520px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
}
#wzbj-ai-panel.open {
  display: flex;
}

#wzbj-ai-header {
  background: linear-gradient(135deg, #3586bf 0%, #2a6fa0 100%);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#wzbj-ai-header .title {
  font-size: 15px;
  font-weight: 600;
}
#wzbj-ai-header .sub {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 2px;
}
#wzbj-ai-close {
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  opacity: 0.9;
  padding: 0 4px;
}
#wzbj-ai-close:hover { opacity: 1; }

#wzbj-ai-quick {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #fafbfc;
}
#wzbj-ai-quick .q-chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #d9e6f2;
  color: #3586bf;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
#wzbj-ai-quick .q-chip:hover {
  background: #3586bf;
  color: #fff;
  border-color: #3586bf;
}
#wzbj-ai-quick .q-more-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin-top: 6px;
}
#wzbj-ai-quick .q-toggle {
  border-style: dashed;
  color: #888;
  border-color: #c8d6e5;
  font-size: 11px;
  padding: 3px 10px;
}
#wzbj-ai-quick .q-toggle:hover {
  background: #f0f5fa;
  color: #3586bf;
  border-color: #3586bf;
}

#wzbj-ai-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  background: #f7f9fb;
}
#wzbj-ai-body::-webkit-scrollbar { width: 6px; }
#wzbj-ai-body::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

.wzbj-msg {
  margin-bottom: 12px;
  display: flex;
}
.wzbj-msg.user { justify-content: flex-end; }
.wzbj-msg .bubble {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.7;
  word-break: break-word;
}
.wzbj-msg.bot .bubble {
  background: #fff;
  color: #333;
  border: 1px solid #eee;
  border-top-left-radius: 2px;
}
.wzbj-msg.user .bubble {
  background: #3586bf;
  color: #fff;
  border-top-right-radius: 2px;
}
.wzbj-msg .bubble p { margin: 0 0 8px; }
.wzbj-msg .bubble p:last-child { margin-bottom: 0; }
.wzbj-msg .bubble strong { color: #2a6fa0; }
.wzbj-msg.user .bubble strong { color: #fff; }
.wzbj-msg .bubble a { color: #3586bf; }

#wzbj-ai-input {
  display: flex;
  border-top: 1px solid #f0f0f0;
  background: #fff;
  padding: 8px;
  gap: 6px;
}
#wzbj-ai-input input {
  flex: 1;
  border: 1px solid #e0e6ed;
  border-radius: 18px;
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
}
#wzbj-ai-input input:focus { border-color: #3586bf; }
#wzbj-ai-input button {
  background: #3586bf;
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
}
#wzbj-ai-input button:hover { background: #2a6fa0; }

/* 手机端适配 */
@media (max-width: 480px) {
  #wzbj-ai-fab { right: 16px; bottom: 70px; width: 50px; height: 50px; font-size: 22px; }
  #wzbj-ai-panel {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 80vh;
    border-radius: 12px 12px 0 0;
  }
}
