@media screen and (max-width: 768px) {
  .mdui-container {
    width: 100% !important;
  }

  .answer {
    width: 100%;
    height: 100vh;
  }
}


@media screen and (min-width: 768px) {
  .mdui-container {
    width: 100% !important;
  }

  .answer {
    width: 100%;
    height: calc(100vh - 9em);
  }
}

* {
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
}

pre {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  background-color: #686666;
  color: #e2dfea;
  cursor: pointer;
}

/* .answer {
  width: 100%;
  height: calc(100vh - 9em);
} */

.answer .tips {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.answer .tips h4 {
  color: red;
}

.answer .tips img {
  margin-top: 30px;
  border: 1px solid #7eecd6;
  box-shadow: 0px 1px 10px 0px #7defd8;
  border-radius: 10px;
  width: 200px;
}

/* 设置 */
.select,
.setting.switch {
  display: flex;
  justify-content: space-between;
}

.setting.key-input {
  display: flex;
}

/* 问题输入框 */
.ipt {
  display: flex;
  align-items: center;
}

.answer #chatWindow {
  width: 100%;
  height: calc(100vh - 12em);
  overflow-y: auto;
}

/* 消息气泡 */
.message-bubble {
  display: flex;
  margin: 1.5em;
  position: relative;
}

.message-bubble .message-text {
  border-radius: 0.8em;
  width: auto;
  word-break: break-all;
  max-width: 80%;
  padding: 0.5em 1em;
}


.message-bubble .message-text p {
  white-space: pre-wrap;
}

.message-bubble .response ol,
ul {
  padding-left: 2em;
}

/* 错误信息样式 */
.message-bubble .message-text p.error {
  color: red;
  height: auto;
  display: block;
  white-space: normal;
  word-break: break-all;
}

.message-bubble .request {
  margin-left: auto;
}

#info p {
  text-align: center;
  width: 100%;
}