/* 通用粉色圆点旋转loading效果 */
/* div里添加6个span */
.public-loading-circle {
  width: 100vw;
  height: 100vh;
  background: transparent;
  --amount: 20;
  display: flex;
  justify-content: center;
  align-items: center;
}
.public-loading-circle span {
  width: 2vmin;
  height: 2vmin;
  border-radius: 4vmin;
  backface-visibility: hidden;
  position: absolute;
  animation-name: move;
  animation-timing-function: cubic-bezier(0.4, 0, 1, 0.8);
  animation-iteration-count: infinite;
  animation-duration: 3s;
  transform-origin: -1vmin center;
}
.public-loading-circle span:nth-child(1) {
  background: #e4606b;
  animation-delay: -0.5s;
  opacity: 0;
}
.public-loading-circle span:nth-child(2) {
  background: #e4606b;
  animation-delay: -1s;
  opacity: 0;
}
.public-loading-circle span:nth-child(3) {
  background: #cc7f85;
  animation-delay: -1.5s;
  opacity: 0;
}
.public-loading-circle span:nth-child(4) {
  background: #cc7f85;
  animation-delay: -2s;
  opacity: 0;
}
.public-loading-circle span:nth-child(5) {
  background: #eebfc3;
  animation-delay: -2.5s;
  opacity: 0;
}
.public-loading-circle span:nth-child(6) {
  background: #eebfc3;
  animation-delay: -3s;
  opacity: 0;
}
@keyframes move {
  0% {
    transform: scale(1) rotate(0deg) translate3d(0, 0, 1px);
  }
  30% {
    opacity: 1;
  }
  100% {
    z-index: 10;
    transform: scale(0) rotate(360deg) translate3d(0, 0, 1px);
  }
}

/* 粉色按钮的通用loading效果 */
/* div里添加4个dot */
.public-pink-btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.public-pink-btn-loading .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #fff;
  animation: stretch 1s ease-in-out infinite;
}
/* 第一个点 */
.public-pink-btn-loading .dot:nth-child(1) {
  animation-delay: 0s;
}

/* 第二个点 */
.public-pink-btn-loading .dot:nth-child(2) {
  animation-delay: 0.3s;
}

/* 第三个点 */
.public-pink-btn-loading .dot:nth-child(3) {
  animation-delay: 0.6s;
}

/* 第四个点 */
.public-pink-btn-loading .dot:nth-child(4) {
  animation-delay: 0.9s;
}

/* 关键帧动画 */
@keyframes stretch {
  0%, 100% {
      transform: scaleY(1);
  }
  50% {
      transform: scaleY(2);
  }
}
