.title{
  font-size: 32px;
  text-align: center;
  font-weight: bold;
  padding-top: 4px;
  height:50px;
}

.chat-container {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.avatar-container {
  display: flex;
  align-items: flex-start;
  margin: 5px 0;
  padding: 0px;
}

.user-message {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 5px 0;
}

.ai-message {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 5px 0;
}

.message-content {
  padding: 10px;
  border-radius: 5px;
  word-break: break-word; /* 处理消息内容换行问题 */
  max-width: 310px; /* 设置消息内容的最大宽度，超过这个宽度会自动换行 */
}


.user-message .message-content {
  background-color: #ffecb3; /* 更合适的用户消息背景颜色 */
}

.ai-message .message-content {
  background-color: #e0f7fa; /* 更合适的AI消息背景颜色 */
}

.avatar1 {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 10px;
  border: 2px solid #ccc; /* 添加边框 */
}

.avatar2 {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
  border: 2px solid #ccc; /* 添加边框 */
}

.user-message .avatar1 {
  background-color: #007bff;
  color: rgb(255, 255, 255);
}

.ai-message .avatar2 {
  background-color: #007bff;
  color: rgb(255, 255, 255);
}

.sendButton{
  width:60px;
}