.content{
    overflow: hidden;
}
.insertable {
    cursor: pointer;
    color: #0066cc;
    text-decoration: underline;
  }
/* Reset some default styles */
.chat-container {
    min-width: 100%;
    max-width: 100%;
    min-height: 100%;
    max-height: 100%;
    background-color: rgba(10, 48, 139, 0.1); /* 聊天窗口透明化 */
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background-clip: padding-box; /* 使渐变背景不覆盖边框 */
    width: 600px; /* 聊天窗口宽度 */
    display: flex;
    flex-direction: column;
    position: relative; /* 使用position: relative来确保子元素定位相对于.chat-container */
}

.chat-messages {
    padding: 20px;
    max-height: calc(80vh - 60px); /* 减去头部和底部的高度 */
    background-color: rgba(255, 255, 255, 0.1); /* 聊天窗口透明化 */
    overflow-y: auto;
    flex-grow: 1; /* 让聊天消息部分占据剩余的可用空间 */
    overflow-y: auto; /* 如果聊天消息溢出，允许滚动 */
    display: flex; /* 使用Flex布局 */
    flex-direction: column; /* 垂直排列消息气泡 */
}

.message {
    background-color: rgba(50, 50, 60); /* 消息气泡的背景色 */
    padding: 5px 10px;
    margin: 5px;
    border-radius: 5px;
    width: auto; /* 根据内容宽度自动调整宽度 */
    display: inline-block; /* 允许宽度自动调整 */
    max-width: 80%; /* 设置消息气泡的最大宽度 */
}

/* 添加消息气泡的样式 */
.user-message .message {
    background-color: rgba(50, 50, 60); /* 用户消息气泡的背景色 */
    color: #ffffff; /* 机器人消息气泡的文本颜色 */
}

.bot-message .message {
    background-color: rgba(20, 20, 30); /* 机器人消息气泡的背景色 */
    color: #ffffff; /* 机器人消息气泡的文本颜色 */
}

/* CSS 文件 */
/* 设置思考效果元素的样式 */
#thinking {
  width: 50px;
  height: 60px;
  border-radius: 50%;
  /* background-color: rgb(10, 247, 156); */
  background: linear-gradient(45deg, #0072ff, #00d4ff);
  margin: 10px auto;
  /* 设置动画效果 */
  animation: pulse 1s infinite;
  /* 设置元素的可见性为无 */
  display: none;
  min-height:50px;
  position: relative; /* 使用 relative 定位 */
  top: -160px; /* 距离顶部的距离，可以为负值 */
}


    /* 定义动画关键帧 */
    @keyframes pulse {
      0% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.2);
      }
      100% {
        transform: scale(1);
      }
    }

.chat-header {
    background-color: rgba(50, 50, 60);
    color: #fff;
    padding: 10px;
    text-align: center;
}

.chat-messages {
    padding: 10px;
    min-height: 350px;
    max-height: 550px;
    overflow-y: auto;
}

.chat-input {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background-color: #f5f5f5;
    flex-shrink: 0;
    position: sticky; /* 使用position: sticky来固定在底部 */
    bottom: 0; /* 将输入框粘在底部 */
}

#message-input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#send-button {
    min-width: 50px;
    min-height: 50px;
    background-color: rgba(52, 58, 64);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
}

#send-button:hover {
    background-color: #b2b3b4;
}
textarea {
    height: 60px;
}
  /* 样式选择栏的外观 */
select {
height: auto;
padding: 10px;
font-size: 12px;
border: 1px solid #ccc;
border-radius: 4px;
background-color: #f8f8f8;
}

/* 悬停时的样式 */
select:hover {
border-color: #999;
}

/* 选中时的样式 */
select:focus {
outline: none;
border-color: #555;
box-shadow: 0 0 5px #555;
}
@media (min-width: 768px) and (max-width: 1024px) {
    #thinking {
        top: -120px; /* 距离顶部的距离，可以为负值 */
    }
}
@media (min-width: 480px) and (max-width: 768px) {
    #thinking {
        top: -100px; /* 距离顶部的距离，可以为负值 */
    }
}
@media (max-width: 480px) {
    #thinking {
        top: -100px; /* 距离顶部的距离，可以为负值 */
    }
}

/* 免责声明样式 */
.ai-disclaimer {
    font-size: 12px;
    color: #ffffff;
    text-align: center;
    margin-top: 8px;
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    font-style: italic;
    clear: both;
}

/* 移动端侧边栏默认隐藏 */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
}