:root {
  /* --ai-primary-color: #21549b; */
  --ai-primary-color: #568faf;
}

.ai-draggable-ele {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  pointer-events: none;
  font-family: Arial, serif;
}

.ai-draggable-icon {
  width: 130px;
  height: 104px;
  position: absolute;
  top: 50%;
  right: 55px;
  z-index: 1001;
  cursor: pointer;
  background-image: url("../images/ai/page1/ai-logo.png");
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: all;
}

.ai-chat-main {
  display: none;
  position: absolute;
  right: 130px;
  bottom: 10px;
  flex-direction: column;
  pointer-events: all;
  z-index: 1002;
}

.ai-chat-main.show {
  display: flex;
}

.ai-chat-main-img {
  background-image: url("../images/ai/page1/ai-header.png");
  background-repeat: no-repeat;
  margin-bottom: -24px;
  height: 146px;
  z-index: 1003;
  margin-left: 20px;
}

.ai-chat-window {
  width: 611px;
  height: 715px;
  background-color: #ffffff;
  border-radius: 32px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  padding: 22px 26px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.chat-header-img {
  background-image: url("../images/ai/page1/ai-header.png");
}

.chat-close-btn {
  width: 21px;
  height: 21px;
  color: #000000;
  background: url("../images/ai/ai-window-close.png");
  border: none;
  font-size: 21px;
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.chat-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.chat-content {
  flex: 1;
  padding: 2px 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.chat-message {
  display: flex;
  gap: 10px;
}

.chat-message .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.chat-message .message-content-text {
  line-height: 30px;
  word-break: break-all;
  word-wrap: break-word;
  padding: 16px 20px;
  border-radius: 16px;
}

.chat-message.ai {
  align-self: flex-start;
}

.chat-message.ai .avatar {
  background-image: url("../images/ai/page1/ai-ai.jpg");
}

.chat-message.ai .message-content {
  background-repeat: no-repeat;
  background-image: url("../images/ai/ai-ai-message.png");
  background-position: left;
}

.chat-message.ai .message-content-text {
  background-color: #f7f7f7;
  margin-left: 10px;
  color: #000000;
}

.chat-message.user .avatar {
  background-image: url("../images/ai/page1/ai-user.png");
}

.chat-message.user {
  align-self: flex-end;
}

.chat-message.user .message-content {
  background-repeat: no-repeat;
  background-image: url("../images/ai/page1/ai-user-message.png");
  background-position: right;
}

.chat-message.user .message-content-text {
  background-color: var(--ai-primary-color);
  margin-right: 10px;
  color: #ffffff;
}

.chat-input-area {
  padding: 36px 29px;
  background-color: var(--ai-primary-color);
  border-top: 1px solid #e9ecef;
  display: flex;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  padding: 0 14px;
  border: none;
  border-radius: 21px 0 0 21px;
  font-size: 16px;
  height: 40px;
}

.chat-input:focus {
  outline: none;
}

.chat-send-btn {
  background-image: url("../images/ai/page1/ai-send-btn.png");
  background-repeat: no-repeat;
  background-size: 24px 22px;
  background-position: center;
  background-color: #ffffff;
  padding: 12px;
  border: none;
  border-radius: 0 21px 21px 0;
  width: 50px;
  height: 40px;
  cursor: pointer;
  flex-shrink: 0;
}

/* 滚动条样式 */
.chat-content::-webkit-scrollbar {
  width: 6px;
}

.chat-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.chat-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.chat-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
