:deep(.chat-content-font),
:deep(.chat-content-font) *,
:deep(.el-bubble-content-wrapper .el-bubble-content),
:deep(.chat-embed__main_content) {
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
}

.slide-up-enter-active,
.slide-up-leave-active {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-up-enter-from,
.slide-up-leave-to {
  transform: translateY(100%);
}

/**
 * 聊天窗口的样式设置
 */
.chat-container {
  --header-height: 56px;
  --chat-padding: 12px;
  --bubble-content-max-width: 0px;
  position: fixed;
  background-image: linear-gradient(to bottom, #f0f8ff, #ffffff);

  overflow: hidden;
  z-index: 100;
  flex-direction: row; /* 横向排列 */
  height: 100%; /* 父容器高度 */
}

.small-window {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  right: var(--chat-padding); /* 距离浏览器右边框12px */
  bottom: var(--chat-padding); /* 距离浏览器下边框12px */
  border-radius: 8px;
  --main-content-height: calc(100vh - var(--chat-padding) * 2 - var(--header-height));
}

.full-screen {
  right: 0;
  bottom: 0;
  --main-content-height: calc(100vh - var(--header-height));
}

.chat-container > * {
  box-sizing: border-box; /* 确保 padding 和 border 不会影响宽度 */
}

/* 聊天窗口的头部样式设置
 */
.chat-embed__header_container {
  /* border-bottom: 1px solid #ddd; */
  display: flex;
  align-items: center;
  /* background: linear-gradient(90deg, #ebf1ff 24.34%, #e5fbf8 56.18%, #f2ebfe 90.18%); */
  height: var(--header-height);
  line-height: var(--header-height);
  overflow: hidden;
  position: relative;
}

.session-subject {
  display: block;
  margin: 0 auto;
  text-align: center;
  font-family: PingFang SC, PingFang SC;
  font-weight: 500;
  font-size: 16px;
  color: #181818;
  text-align: left;
  font-style: normal;
  text-transform: none;
}

/* 聊天窗口的头部图标样式设置
 */
.chat-embed__header_avatar {
  margin-left: calc(var(--chat-padding) * 2);
  margin-right: var(--chat-padding);
}

.chat-embed__header_tool_icon {
  right: 20px;
  position: absolute;
  gap: 28px;
  display: flex;
}

.chat-embed__sidebar {
  background: #f6f7fa;
  display: flex;
  flex-direction: column; /* 设置为上下排列 */
  border-right: 1px solid #ddd;
  padding: 20px 12px;
  width: 260px;
  height: 100%;
}
.chat-embed__main {
  padding: var(--chat-padding) var(--chat-padding) 0 var(--chat-padding);
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  height: var(--main-content-height);
  flex: 1; /* 聊天内容区域占据剩余空间 */
  overflow: hidden; /* 防止内容溢出 */
}

.chat-embed__main_content {
  flex: 1;
  box-sizing: border-box;
  min-height: 0;
  padding-bottom: var(--chat-padding); /* 与输入框保持10px间距 */
  /* overflow-y: auto;
  margin-bottom: 12px; */
}

.chat-embed__input_container {
  flex-shrink: 0; /* 不允许收缩 */
  /* margin-bottom: 50px; 距离底部 */
}

.header-icon {
  cursor: pointer;
  font-size: 20px;
}

/* 聊天默认推荐内容样式
 */
.chat-embed__recommendation + .chat-embed__recommendation {
  margin-top: 5px;
}

.content-container {
  padding: 16px;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0px 0px 8px 0px rgba(153, 153, 153, 0.15);
  border-radius: 0px 30px 30px 30px;
  /* opacity: 0.6; */
}

.chat-content-font {
  font-family: PingFang SC, PingFang SC;
  font-weight: 500;
  font-size: 16px;
  color: #181818;
  line-height: 32px;
  text-align: justified;
  font-style: normal;
  text-transform: none;
}

:deep(.el-bubble-content-wrapper .el-bubble-content-outlined) {
  border: none !important;
}

.content-container-header {
  font-size: 12px;
  color: #909399;
}
/**
// 用户消息
 */
.content-borderless-container {
  background: #e1ecfd;
  border-radius: 20px 0px 20px 20px;
  user-select: none;
  padding: 12px;
  cursor: pointer;
  transition: background-color 0.3s;
  &:hover {
    background-color: #ebeef5;
  }
}

.footer-container {
  :deep(.el-button + .el-button) {
    margin-left: 8px;
  }
}

.el-bubble-content-wrapper .el-bubble-content {
  padding: 0;
}
/* 引用文件样式 */
.doc-agg-item {
  width: 100%;
  padding: 10px;
  margin-bottom: 5px;
  border: 1px solid #eee;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  color: var(--el-color-primary);
}

.elx-xmarkdown-container {
  padding: 0;
}
