/* 智能客服组件样式 */
#chat-widget {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 9999;
}

#chat-toggle {
  width: 60px;
  height: 60px;
  background: #2c7be5;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

#chat-toggle:hover {
  transform: scale(1.05);
}

#chat-toggle i {
  color: white;
  font-size: 24px;
}

#chat-box {
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  margin-bottom: 20px;
}

.chat-header {
  padding: 16px;
  background: #2c7be5;
  color: white;
  border-radius: 12px 12px 0 0;
  font-size: 16px;
}

.chat-body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: #f8f9fa;
}

.chat-message {
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 80%;
  font-size: 14px;
  line-height: 1.5;
}

.user-message {
  background: #e3f2fd;
  margin-left: auto;
}

.bot-message {
  background: white;
  margin-right: auto;
  border: 1px solid #eee;
}

#chat-input {
  padding: 12px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 8px;
  background: white;
}

#user-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

#user-input:focus {
  border-color: #2c7be5;
}

#send-btn {
  padding: 8px 16px;
  background: #2c7be5;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#send-btn:hover {
  background: #1c5bb5;
}
