* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
  font-family: sans-serif;
}

.page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-image: url(./img/bg.png);
}

header footer {
  height: 50px;
  line-height: 50px;
  text-align: center;
  color: white;
  flex-shrink: 0;
}

header img {
  height: 20px;
  margin: 10px 0 0 20px;
}

footer {
  font: 12px / 1.5 Microsoft Yahei, simsun, Tahoma, Helvetica, Arial, SimHei,
    sans-serif;
  color: #666;
  margin: 0 auto 12px;
  text-align: center;
}

.content {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  transition: transform 0.8s ease-in-out;
}

.slide {
  width: 100%;
  height: 50%;
  display: flex;
  font-size: 24px;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 1rem;
  padding-top: 80px;

  p {
    font-size: 14px;
    color: #848896;
    line-height: 22px;
    letter-spacing: 4px;
    margin-top: 16px;
  }
}

.indicators {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background-color: #333;
}

/* .f 容器使用相对定位作为绝对定位的参考 */
.slide > .f {
  position: absolute;
  width: 100%;
  height: auto;
  display: flex;
}

/* .f 内部 img 使用绝对定位 */
.slide > .f img {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slide > .f img:nth-child(1) {
  width: calc(259px / 3);
  height: calc(311px / 3);
  top: 160px;
  left: 40px;
}

.slide > .f img:nth-child(2) {
  width: calc(225px / 3);
  height: calc(222px / 3);
  top: 110px;
  right: -30px;
}

.slide > .f img:nth-child(3) {
  width: calc(636px / 3);
  height: calc(619px / 3);
  top: 440px;
  left: 124px;
}

/* 可根据需要为每个 img 设置不同的 z-index 和动画延迟 */
.slide.active .f img:nth-child(1) {
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.2s;
}
.slide.active .f img:nth-child(2) {
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.4s;
}
.slide.active .f img:nth-child(3) {
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  from {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}
