/* <!-- 鐎电鐦芥い鐢告桨閺嶅嘲绱  --> */

body,
p {
  margin: 0;
}

* {
  box-sizing: border-box;
}

img,
a {
  display: block;
}

a,
a:hover,
a:link {
  text-decoration: none;
}

.chatContainer {
  width: 100%;
  max-width: 640px;
  height: 100vh;
  overflow: hidden;
  margin: auto;
  background-color: rgb(238, 238, 238);
  display: none;
  position: relative;
  z-index: 99999999999999999;
}

.chat {
  width: 100%;
  height: calc(100% - 100px);
  overflow-y: auto;
  padding: 10px 10px 0;
  padding-bottom: 100px;
}

.chatItem {
  display: flex;
  align-items: flex-start;
  margin-top: 20px;
}

.leftItem {
  justify-content: flex-start;
}

.rightItem {
  justify-content: flex-end;
}

.headImg {
  width: 40px;
  height: 40px;
}

.leftItem .headImg {
  margin-right: 15px;
}

.rightItem .headImg {
  margin-left: 15px;
}

.chatDiv {
  max-width: calc(80% - 55px);
  background-color: #fff;
  color: #000;
  padding: 10px;
  border-radius: 6px;
  position: relative;
  font-size: 16px;
  line-height: 1.3;
}

.chatDiv::before {
  content: '';
  position: absolute;
  top: 18px;
  border-top: 6px solid transparent;
  border-right: 8px solid #fff;
  border-bottom: 6px solid transparent;
}

.leftItem .chatDiv::before {
  left: -8px;
}

.rightItem .chatDiv {
  background-color: #a0e75a;
}

.rightItem .chatDiv::before {
  right: -8px;
  border-left: 8px solid #a0e75a;
  border-right: none;
}

.animated {
  height: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.loader {
  width: fit-content;
  font-weight: bold;
  font-family: monospace;
  font-size: 24px;
  clip-path: inset(0 3ch 0 0);
  animation: l4 1s steps(4) infinite;
}

.loader:before {
  content: "鏉╃偟鍤庢稉锟 ..."
}

@keyframes l4 {
  to {
    clip-path: inset(0 -1ch 0 0)
  }
}

@keyframes l3 {
  to {
    background-position: 80% 100%
  }
}

.faq {
  display: none;
}

.choise {
  width: 100%;
  max-width: 640px;
  position: fixed;
  z-index: 999;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  transition: all 0.2s linear;
}

.choiseItem {
  padding: 5px 0;
  background-color: #e6322e;
  color: #fff;
  font-size: 16px;
  border-radius: 6px;
  margin-bottom: 6px;
  width: 45%;
  text-align: center;
  margin: 1%;
  font-size: 18px;
}

#choise1,
#choise2,
#choise3,
#choise4 {
  visibility: hidden;
  opacity: 0;
}

.getBtn {
    display: none; /* Initially hidden */
    width: 100%;
    max-width: 640px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

.getBtn a {
    width: 88%;
    text-align: center;
    padding: 10px 0;
    border-radius: 50px;
    color: #fff;
    font-size: 18px;
    background-image: linear-gradient(45deg, #2b61ce, #2bd315);
    animation: btnChange 3s infinite;
}

@keyframes btnChange {
    0% {
        transform: scale(1);
    }
    33% {
        transform: scale(.95);
    }
    66% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes btnChange2 {
  25% {
    transform: scale(1.2);
  }

  50% {
    transform: scale(1);
  }

  75% {
    transform: scale(1.2);
  }
}

#xidi {
  width: 100%;
  max-width: 640px;
  height: auto;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999998;

  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#xidi a {
  width: 100%;
  height: 100%;
  margin-left: 15px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: red;
  animation: btnChange2 1.5s ease-in-out infinite;
}

#fixedBtnWrapper {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 640px;
  z-index: 999999;
}

#fixedBtn {
  display: block;
  width: 100%;
  background: linear-gradient(45deg, #2b61ce, #2bd315);
  color: white;
  text-align: center;
  padding: 15px 0;
  font-size: 18px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  animation: floatBtn 3s infinite;
}

@keyframes floatBtn {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
}
