* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none;
}

#app {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

::-webkit-scrollbar {
  display: none;
}

.container {
  display: flex;
  width: 100%;
  height: 100vh;
  flex-direction: column;
  position: relative;
}

.logo {
  position: absolute;
  top: 2vh;
  left: 2vw;
  width: 30%;
  max-width: 300px;
}

.qrcode {
  position: absolute;
  top: 13vh;
  left: 5vw;
  width: 20%;
}
.qrcode-text{
  position: absolute;
  top: 24.5vh;
  left: 4vw;
  color: #fff;
  font-size: 24px;
}
.qrcode-text p{
  margin-right: 1vw;
}
.helper-page {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
}

.helper-box {
  background-color: rgba(48, 63, 118, 0.6);
  border-radius: 16px;
  color: #ffffff;
  margin: 2vh 2vw;
  width: 40%;
  max-height: 20vh;
  font-size: clamp(16px, 2.5vw, 32px);
  border: #ffffff solid 1px;
}

.helper-text {
  padding: 1vh 2vw;
}

.helper-text div {
  margin: 5px 0;
}

.helper-text p {
  padding: 5px;
  background: #3c4c83;
  color: #ffffff;
  border-radius: 8px;
  line-height: 1.6;
  margin: 5px 0;
}

.helper-text span {
  font-weight: bold;
  font-size: clamp(16px, 2.5vw, 28px);
}

.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  justify-content: center;
  background-image: url("./img/bg.webp");
  background-size: cover;
  background-position: center;
}

.chat-page {
  position: absolute;
  display: flex;
  flex-direction: column;
  width: 90%;
  max-width: 600px;
  height: 35vh;
  right: 2vw;
  top: 2vh;
  overflow-y: scroll;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
}

.messages {
  display: flex;
  flex-direction: column;
  padding: 10px;
  font-size: clamp(14px, 2.5vw, 24px);
  line-height: 1.2;
  color: #1e293b;
}

.message {
  display: flex;
  align-items: flex-start;
  width: 90%;
  margin-bottom: 10px;
}

.message-reverse {
  flex-direction: row-reverse;
  align-self: flex-end;
}

.avatar {
  height: clamp(32px, 8vw, 64px);
  width: clamp(32px, 8vw, 64px);
  border-radius: 50%;
  margin-right: 10px;
}

.message-reverse .avatar {
  margin-left: 10px;
  margin-right: 0;
}

.message-content {
  display: flex;
  border-radius: 12px;
  background-color: #f8fafc;
  padding: 10px;
  max-width: calc(100% - 80px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: #ffffff;
}

.message-content div {
  min-height: 24px;
  word-break: break-word;
}

.left-message {
  border-top-left-radius: 0;
  background-color: #67ba5d;
}

.right-message {
  border-top-right-radius: 0;
  background-color: #4971f5;
}

.anyi-box {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.show-img {
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

@media screen and (max-width: 768px) {
  .helper-box {
    width: 60%;
    margin: 1vh 1vw;
  }

  .chat-page {
    width: 60%;
    right: 1vw;
    top: 1vh;
  }

  .message-content {
    max-width: calc(100% - 50px);
  }
}

@media screen and (max-height: 600px) {
  .anyi-box {
    height: 50vh;
  }

  .chat-page {
    height: 45vh;
  }
}
@media screen and (min-height: 1600px) {
  .helper-box {
    height: 14vh;
  }
}
@media screen and (min-width: 1920px) {
  .container {
    width: 1920px;
    height: 1080px;
  }
  .chat-container {
    background-image: url("./img/bg-h.webp");
  }

  .logo {
    width: 15%;
  }

  .helper-box {
    width: 25%;
    height: 220px;
    margin: 20px;
    font-size: 20px;
  }

  .helper-text {
    span {
      font-size: 24px;
    }
  }

  .chat-page {
    width: 35%;
    height: 50%;
    right: 40px;
    top: 100px;
  }

  .messages {
    font-size: 20px;
  }

  .avatar {
    height: 48px;
    width: 48px;
  }

  .anyi-box {
    width: 1600px;
    height: 900px;
    position: absolute;
    left: 150px;
    bottom: 0;
  }

  .show-img {
    margin-left: 0;
    width: 100%;
    position: absolute;
  }
}
