/* 新知索图标 */
.ai-news-box {
  position: fixed;
  top: 240px;
  right: 2px;
}
.ai-news-box-img {
  width: 130px;
}
/* 弹窗遮罩层 */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* 弹窗容器 */
.service-container {
  width: 900px;
  /* max-width: 800px; */
  height: 600px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .service-container {
  transform: translateY(0);
}

/* 弹窗头部 */
.service-header {
  background-color: #fff;
  color: black;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  padding-left: 10px;
  box-shadow: 0px 2px 8px 0px rgba(26, 71, 139, 0.1) !important;
  border-radius: 0px 0px 0px 0px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.service-title {
  display: flex;
  align-items: center;
}

.service-title i {
  margin-right: 8px;
}
.service-title-text {
  margin-left: 5px;
}
.service-title-one {
  font-family: PingFang SC, PingFang SC;
  font-weight: 500;
  font-size: 20px;
  color: #000000;
  text-align: left;
  font-style: normal;
  text-transform: none;
}
.service-title-two {
  font-family: PingFang SC, PingFang SC;
  font-weight: 400;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
  text-align: left;
  font-style: normal;
  text-transform: none;
}

.close-btn {
  background: none;
  border: none;
  color: black;
  font-size: 16px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.close-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* 弹窗主体 */
.service-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* 左侧聊天区域 */
.chat-section {
  flex: 2;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e2e8f0;
  background-color: #f5f9ff;
}
.chat-section-time {
  font-size: 10px;
  color: rgba(0, 0, 0, 0.4);
  font-family: PingFang SC, PingFang SC;
  font-weight: 400;
  text-align: center;
  margin-bottom: 15px;
}

.chat-area {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background-color: #f7fafc;
  /* margin-top: 20px; */
}

/* 自定义滚动条 */
.chat-area::-webkit-scrollbar {
  width: 6px;
}

.chat-area::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.chat-area::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.chat-area::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 消息气泡 */
.message {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
}

.message-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  /* background-color: #3e91f7; */
  /* color: white; */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex-shrink: 0;
}
.message-avatar-img {
  margin-top: 12px;
  width: 35px;
  height: 35px;
}

.message-user .message-avatar {
  /* background-color: #6c757d; */
  margin-right: 0;
  margin-left: 8px;
}

.message-content {
  background-color: white;
  border-radius: 4px;
  padding: 8px 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  max-width: 80%;
}

.message-user {
  flex-direction: row-reverse;
}

.message-user .message-content {
  background-color: #e3f2fd;
}

.message-content p {
  font-size: 13px;
  line-height: 1.5;
  color: #333;
  margin-bottom: 8px;
}

.message-content p:last-child {
  margin-bottom: 0;
  margin-top: 0;
}