/* WANYOU 在线客服聊天窗口样式 */
.chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.chat-overlay.show { display: flex; }
.chat-box {
  background: #161616;
  border: 1px solid #333;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-header {
  background: #ff6b22;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header h3 {
  color: #fff;
  font-size: 16px;
  margin: 0;
}
.chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg {
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.chat-msg.bot {
  background: #2a2a2a;
  color: #eee;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.chat-msg.user {
  background: #ff6b22;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #2a2a2a;
}
.chat-input-row input {
  flex: 1;
  padding: 10px 12px;
  background: #0d0d0d;
  border: 1px solid #333;
  border-radius: 6px;
  color: #eee;
  font-size: 14px;
  outline: none;
}
.chat-input-row input:focus {
  border-color: #ff6b22;
}
.chat-send-btn {
  padding: 10px 18px;
  background: #ff6b22;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}
