body {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* 初始页面样式 */
.intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.intro-screen.hidden {
  pointer-events: none;
}

.intro-top {
  flex: 1;
  background-color: #000000;
  transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

.intro-bottom {
  flex: 1;
  background-color: #ffffff;
  transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

.intro-screen.hidden .intro-top {
  transform: translateY(-100%);
  opacity: 0;
}

.intro-screen.hidden .intro-bottom {
  transform: translateY(100%);
  opacity: 0;
}

.intro-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px 40px; /* 增大按钮大小 */
  font-size: 1.5rem;
  font-weight: bold; /* 字体加粗 */
  color: #fff;
  background-color: rgba(51, 51, 51, 0.7); /* 透明背景 */
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 101;
}

.intro-button:hover {
  background-color: rgba(51, 51, 51, 0.9); /* 鼠标悬停时增加不透明度 */
  transform: translate(-50%, -50%) scale(1.05);
}

.intro-button.hidden {
  display: none; /* 按钮消失 */
}

/* 图片滑动页面样式 */
.slider-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.slider-container.hidden {
  opacity: 0;
  pointer-events: none;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translateY(20%) scale(0.95);
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out, scale 0.6s ease-in-out;
  will-change: transform, opacity, scale;
}

.slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.slide.prev {
  transform: translateY(-20%) scale(0.95);
}

.prev, .next {
  position: absolute;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev::before, .next::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border: solid white;
  border-width: 3px 3px 0 0;
}

.prev::before {
  transform: rotate(-45deg);
  margin-bottom: 4px;
}

.next::before {
  transform: rotate(135deg);
  margin-top: 4px;
}

.prev {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.next {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

/* 手机端适配 */
@media (max-width: 768px) {
  .slider-container {
    height: 100vh;
  }

  .intro-button {
    font-size: 1.2rem;
    padding: 15px 30px; /* 手机端稍小 */
  }

  .prev, .next {
    width: 36px;
    height: 36px;
  }

  .prev::before, .next::before {
    width: 10px;
    height: 10px;
    border-width: 2px 2px 0 0;
  }

  .prev {
    top: 15px;
  }

  .next {
    bottom: 15px;
  }
}