.chat {
  width: 350px;
  border: 1px solid rgba(5, 5, 5, 0.1);
  margin-bottom: 40px;
  border-radius: 10px;
  overflow: hidden;
  position: fixed;
  right: 95px;
  top: 307px;
  background: #fff;
  z-index: 100;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.3);
}
.chat-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  font-size: 24px;
  user-select: none;
}
.chat-title {
  height: 70px;
  line-height: 70px;
  text-align: center;
  font-weight: bold;
  background-image: linear-gradient(97deg, rgb(242, 249, 254) 0%, rgb(247, 243, 255) 100%);
  color: rgba(0, 0, 0, 0.88);
  letter-spacing: 1px;
}
.chat-wrapper {
  display: flex;
  flex-direction: column;
}
.chat-content {
  padding: 20px;
  flex-grow: 1;
  overflow: auto;
  height: 300px;
}
.chat-input {
  /* background: #eee; */
  padding: 20px;
  position: relative;
}
/* message */
.markdown-body {
  background-color: #f0f0f0;
  color: #333;
  word-break: break-all;
}
.markdown-body ul {
  list-style: disc;
}
.markdown-body--think {
  font-size: 14px;
  color: #6b6b6b;
  margin-bottom: 10px;
  border-left: 2px solid #ddd;
  padding-left: 15px;
}
.markdown-body--think:before {
  content: '深度思考';
  display: block;
}
.markdown-body--answer {
  line-height: 1.5;
}
.message {
  flex-direction: column;
  margin-bottom: 15px;
}
.message-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.message-avatar {
  border: 1px solid #eee;
  border-radius: 10px;
  width: 37px;
  height: 37px;
  padding: 3px;
  box-sizing: content-box;
  margin-bottom: 10px;
}
.message-avatar img {
  width: 37px;
  height: 37px;
}
.message-content {
  background: #f0f0f0;
  padding: 8px 16px;
  line-height: 1.5;
  border-radius: 10px;
}

/* message: user or assistant */

.message.assistant .message-wrapper {
  align-items: flex-start;
}

/* input */
.chat-input textarea {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 2px solid #1677ff;
  resize: none;
  padding: 10px;
  outline: none;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: rgba(0, 0, 0, 0.08) 0px 6px 16px 0px, rgba(0, 0, 0, 0.12) 0px 3px 6px -4px, rgba(0, 0, 0, 0.05) 0px 9px 28px 8px;
}
.chat-input button {
  position: absolute;
  right: 30px;
  bottom: 30px;
  border: none;
  background: #1677ff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
}
.chat-input button:hover {
  background: #4096ff;
}
.chat-input button svg {
  width: 16px;
  height: 16px;
}

/* 笔记本电脑版 */
@media screen and (min-width: 500px) and (max-height: 800px) {
  .chat{
    top: 10px;
  }
}

/* 手机版 */
@media screen and (max-width: 500px) {
  .chat {
    width: 90%;
    right: 5%;
    left: 5%;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.3);
    top: 50%;
    transform: translateY(-50%);
  }
}
