body {
  overflow-y: hidden;
}

.chat-bg {
  position: fixed;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

.new-chat-btn{
  display: none;
  position: absolute;
  top: 106px;
  left: 30px;
  z-index: 40;
  width: 130px;
  height: 32px;
  background: #E2FFF5;
  border-radius: 16px;
  border: 1px solid #B8E7D8;
  font-weight: 400;
  font-size: 14px;
  color: #49D4A0;
  font-family: Microsoft YaHei;
  cursor: pointer;
}

.new-chat-btn .iconfont{
  margin-right: 5px;
}

.new-chat-btn:hover{
  background: #d3faed;
}

.container-menu {
  background: rgba(255, 255, 255, .6)
}

.chat-container {
  position: relative;
  padding-right: 2px;
  height: calc(100vh - 106px);
  overflow: hidden;
}

.chat-main {
  flex: 1;
  padding-top: 40px;
  padding-left: 10px;
  overflow-y: scroll;
}

.chat-default {
  display: flex;
  width: 820px;
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
}

.chat-main::-webkit-scrollbar {
  width: 8px;
  background: transparent;
}

.chat-main::-webkit-scrollbar-track {
  background: transparent;
}

.chat-main::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 5px;
}

.chat-main:hover::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
}

.chat-main:hover {}

.chat-msg-row {
  display: flex;
  width: 820px;
  margin: 0 auto 21px;
}

.chat-loading-wrap{
  width: 820px;
  margin: 0 auto 21px;
}

.chat-msg-row-user {
  justify-content: flex-end;
}

.chat-msg-row-user:not(:first-child) {
  border-top: 1px solid #DADCDF;
  padding-top: 30px;
}

.chat-msg-row-assistant {
  justify-content: flex-start;
}

.chat-msg-row-assistant:not(:last-child) {
  padding-bottom: 9px;
}

.chat-msg-bubble {
  font-family: Microsoft YaHei;
  font-weight: 400;
  font-size: 14px;
  color: #53637A;
  word-break: break-word;
}

.chat-msg-bubble-user {
  padding: 14px 24px;
  background: #E1E6F4;
  border-radius: 12px 0px 12px 12px;
  line-height: 1.5;
}

.chat-msg-bubble-assistant{
  line-height: 2;
  white-space: pre-wrap;
}

.chat-msg-avatar {
  margin: 0 5px 0 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chat-msg-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0px 1px 9px 0px rgba(184, 187, 195, 0.3);
}

.chat-bottom {
  width: 820px;
  margin: 0 auto;
  padding-bottom: 20px;
}

.chat-input .input-count {
  margin-right: 4px;
  font-size: 12px;
  color: #97A3B4;
}

.chat-container h2 {
  margin: 0 !important;
  font-family: Microsoft YaHei;
  font-weight: bold;
  font-size: 24px;
  color: #3F4855;
  line-height: 1;
  text-align: left;
}

.chat-container h4 {
  margin: 14px 0 23px 0;
  font-family: Microsoft YaHei;
  font-weight: 400;
  font-size: 14px;
  color: #8F98AB;
  line-height: 1;
}

.chat-suggest {
  flex-wrap: wrap;
}

.chat-suggest-item {
  margin: 0 12px 12px 0;
  padding: 0 20px;
  max-width: 289px;
  height: 48px;
  background: #F4F6FA;
  border-radius: 24px;
  line-height: 48px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  font-size: 14px;
  color: #697182;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-suggest-item:hover {
  background: #d9dfed;
}

.chat-suggest-item.is-loading {
  position: relative;
  padding: 0;
  cursor: default;
  background: #f5f7fa;
  overflow: hidden;
}

.chat-suggest-item.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: chat-skeleton-loading 1.4s ease-in-out infinite;
}

@keyframes chat-skeleton-loading {
  100% {
    transform: translateX(100%);
  }
}

.chat-input {
  position: relative;
  padding-top: 14px;
  box-shadow: 0px 8px 20px 0px rgba(97, 246, 202, 0.15);
  border-radius: 15px;
  background: transparent;
}

.chat-input::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(-8deg, #6BA1F6, #2FE7C5, #62FAAA, #21FBAE);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.chat-input textarea {
  min-height: 42px;
  width: 100%;
  padding: 0 20px;
  background: transparent;
  box-sizing: border-box;
  border: none;
  outline: none;
  resize: none;
  font-family: Microsoft YaHei;
  font-size: 14px;
  line-height: 1.5;
  color: #53637A;
  cursor: text;
}

.action-group {
  padding: 0 8px 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: right;
}

.chat-input .action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  outline: none;
  background: linear-gradient(to top, #6BA1F6, #2FE7C5, #62FAAA, #21FBAE);
  cursor: pointer;
  color: #fff;
}

.chat-input .action-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  filter: grayscale(20%);
}

.chat-input .action-btn .iconfont {
  font-size: 12px;
}

.chat-container .tips {
  margin-top: 12px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  font-size: 12px;
  color: #97A3B4;
}

textarea::placeholder {
  color: #97A3B4;
}

.chat-loading {
  margin-left: 10px;
  margin-bottom: 40px;
  position: relative;
  width: 1px;
  height: 1px;
}

.chat-loading::before,
.chat-loading::after {
  position: absolute;
  display: inline-block;
  width: 10px;
  height: 10px;
  content: "";
  border-radius: 100%;
  background-color: #53637A;
}

.chat-loading::before {
  left: -10px;
  animation: chat-loading-animation infinite 0.75s -0.4s cubic-bezier(0.2, 0.68, 0.18, 1.08);
}

.chat-loading::after {
  right: -10px;
  animation: chat-loading-animation infinite 0.75s cubic-bezier(0.2, 0.68, 0.18, 1.08);
}

@keyframes chat-loading-animation {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(0.1);
    opacity: 0.3;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}