/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  overflow: hidden;
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: #b9b9b9;
  background-image: url("../assets/loading-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* 微信浏览器下拉刷新优化 */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
  /* 移除 touch-action 限制，让 Part1 可以正常滚动 */
}

/* 屏幕基础样式 */
.screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* 加载页面样式 */
#loading-screen {
  background-image: url("../assets/loading-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* 临时背景色，当图片加载失败时显示 */
  background-color: transparent;
  z-index: 10;
}

.loading-content {
  text-align: center;
  color: white;
  position: absolute;
  left: 0;
  top: auto;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loading-gif {
  margin-bottom: 0px;
}

.loading-gif img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.loading-text {
  font-size: 16px;
  margin-bottom: 20px;
}

/* 小鸟 GIF 样式 */
.bird-gif-container {
  margin: 0px 0;
  text-align: center;
}

#bird-gif {
  width: 180px;
  height: 180px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

/* 小鸟 GIF 停止播放状态 */
#bird-gif.stopped {
  opacity: 0.7;
  filter: grayscale(50%);
}

.progress-bar {
  width: 600px;
  height: 4px;
  background-color: #eee;
  border-radius: 2px;
  margin: 0 auto 15px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #a5af33;
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 4px #a5af33;
}

.progress-text {
  font-size: 14px;
  opacity: 0.8;
  color: #a5af33;
  margin-bottom: 200px;
}

/* 继续按钮样式 */
.continue-button {
  position: absolute;
  bottom: 160px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 11;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  /* 去掉按钮默认样式 */
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-focus-ring-color: transparent;
}

.continue-button.show {
  opacity: 1;
  animation: continueButtonBounce 2s infinite;
}

.continue-button img {
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 60px;
  display: block;
}

.continue-button:hover {
  transform: translateX(-50%) translateY(-2px);
}

.continue-button:active {
  transform: translateX(-50%) translateY(0);
}

/* 继续按钮跳动动画 */
@keyframes continueButtonBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* 海报上滑提示跳动动画 */
@keyframes posterUphintBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* 视频页面样式 */
#video-screen {
  background-color: transparent;
  z-index: 5;
}

.intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skip-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 16px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  z-index: 6;
  transition: all 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-focus-ring-color: transparent;
}

.skip-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.5);
}

/* 首页样式 */
#home-screen {
  background-color: transparent;
  position: relative;
}

.home-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.home-background-video::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* 首页文字图片容器样式 */
.home-text-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-top: 20%;
  z-index: 3;
}

.home-text {
  max-width: 70%;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0;
}

/* 底部上滑提示图片样式 */
.up-hint {
  width: auto;
  height: auto;
  max-width: 160px;
  max-height: 160px;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  margin-bottom: 5vw;
  /* 去掉默认样式 */
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-focus-ring-color: transparent;
}

.up-hint.show {
  opacity: 0.5;
  animation: upHintBounce 2s infinite;
}

/* 底部上滑提示图片跳动动画 */
@keyframes upHintBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

#home-text-1 {
  margin: 20vh auto 0 auto;
  width: 70%;
}

#home-text-2 {
  margin-top: 50px;
  width: 40%;
  position: absolute;
  right: 5vw;
}

.activity-button {
  position: relative;
  top: 200px;
  z-index: 2;
  padding: 15px 30px;
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(238, 90, 36, 0.4);
  /* 取消文字选中和点击效果 */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-focus-ring-color: transparent;
}

.activity-button:hover {
  box-shadow: 0 6px 20px rgba(238, 90, 36, 0.6);
}
/* 上滑提示样式 */
.swipe-hint {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  z-index: 3;
  animation: swipeHint 2s infinite;
}

.swipe-hint-white {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.swipe-hint-up {
  position: relative;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  top: auto;
  color: #667eea;
  margin: 20px 0;
  text-align: center;
  animation: swipeHint 2s infinite;
}

/* Part3 底部没有更多内容提示样式 */
.swipe-hint-disabled {
  animation: none;
  opacity: 0.5;
  color: #999;
}

/* Part1 视频页面样式 */
#part1-video-screen {
  background-color: transparent;
  z-index: 3;
}

.part1-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1; /* 视频在底层 */
}

.swipe-hint p {
  font-size: 14px;
  margin: 0;
  opacity: 0.8;
}

@keyframes swipeHint {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* Part1 合并页面样式 */
#part1-screen {
  background-color: transparent;
  z-index: 3;
  overflow: hidden;
  position: relative;
  /* 覆盖默认的 screen 样式以支持滚动 */
  display: block;
  align-items: initial;
  justify-content: initial;
}

.part1-scrollable-container {
  width: 100%;
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  position: relative;
  z-index: 2; /* 滚动容器在视频容器之上 */
  /* 确保滚动可以正常工作 */
  touch-action: pan-y;
  padding-top: 100vh; /* 为固定的视频容器预留空间 */
}

.part1-video-container {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: 1; /* 视频容器在底层，不阻断滚动 */
  pointer-events: none; /* 关键：让视频容器不接收触摸事件，允许下层滚动 */
}

.part1-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1; /* 视频在底层 */
}

.part1-poster-container {
  /* 全屏父容器 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-top: 15vw;
  z-index: 4; /* 确保海报容器在所有内容之上 */
  pointer-events: none; /* 让容器不接收触摸事件，允许下层滚动 */
}

.part1-poster {
  /* 海报图片样式 */
  width: 80%;
  height: auto;
  max-height: 70%;
  object-fit: contain;
}

.part1-poster-uphint {
  /* 上滑提示图片样式 */
  width: auto;
  height: auto;
  max-width: 160px;
  max-height: 160px;
  object-fit: contain;
  margin-bottom: 5%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.part2-poster-uphint {
  /* 上滑提示图片样式 */
  width: auto;
  height: auto;
  max-width: 160px;
  max-height: 160px;
  object-fit: contain;
  margin-bottom: 5%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.part3-poster-uphint {
  /* 上滑提示图片样式 */
  width: auto;
  height: auto;
  max-width: 160px;
  max-height: 160px;
  object-fit: contain;
  margin-bottom: 5%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.part1-poster-uphint.show,
.part2-poster-uphint.show,
.part3-poster-uphint.show {
  opacity: 0.8;
  animation: posterUphintBounce 2s infinite;
}

#p1-uphint {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#p1-uphint.show {
  opacity: 0.8;
  animation: posterUphintBounce 2s infinite;
}

.part1-detail {
  width: 100%;
  min-height: 120vh; /* 增加最小高度以确保有足够内容滚动 */
  background-color: transparent;
  flex-shrink: 0;
  position: relative;
  z-index: 1; /* 确保详情内容在正确的层级 */
}

.content-wrapper {
  padding: 0px;
  text-align: center;
}

.part1-content-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.bottom-spacer {
  height: 120px; /* 增加底部间距，确保有足够空间滚动 */
}

/* Part1 详情页面样式 */
.detail-screen {
  background-color: #f8f9fa;
  z-index: 2;
  display: block; /* 覆盖父级screen的flex布局 */
  align-items: initial; /* 重置flex对齐 */
  justify-content: initial; /* 重置flex对齐 */
  overflow: hidden;
}

.detail-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.detail-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.detail-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
}

.scrollable-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
  position: relative;
  width: 100%;
}

/* 为 Part1 的新滚动容器移除重复的样式 */
.part1-scrollable-container .scrollable-content {
  flex: none;
  overflow: visible;
  padding: 0;
}

.text-section {
  margin-bottom: 25px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.text-section h2 {
  color: #333;
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 2px solid #667eea;
  padding-bottom: 8px;
}

.text-section h3 {
  color: #555;
  font-size: 16px;
  margin-bottom: 10px;
}

.text-section p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
  font-size: 15px;
}

.text-section ul {
  color: #666;
  line-height: 1.6;
  padding-left: 20px;
}

.text-section li {
  margin-bottom: 8px;
}

.image-section {
  margin-bottom: 25px;
  text-align: center;
}

.image-section img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.image-caption {
  color: #888;
  font-size: 14px;
  margin-top: 10px;
  font-style: italic;
}

/* 页面切换动画 */
.slide-up {
  animation: slideUp 0.5s ease-out forwards;
}

.slide-down {
  animation: slideDown 0.5s ease-out forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Part1 p1-a13 视频模态窗口样式 */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-modal-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.video-modal-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.video-player-wrapper {
  width: 100vw;
  overflow: hidden;
}

/* 视频上方文字图片样式 */
.video-text1 {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 0 20px 0;
  position: relative;
  z-index: 2;
}

.modal-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.video-modal-close {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-top: 20px;
  padding-bottom: 150px;
  width: 40vw;
  /* 移除点击选中样式 */
  -webkit-tap-highlight-color: transparent;
  -webkit-focus-ring-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  outline: none;
  /* 添加上下浮动动画 */
  animation: buttonVerticalFloating 3s ease-in-out infinite;
}

.video-modal-close:hover {
  transform: scale(1.05);
}

.video-modal-close:active {
  transform: scale(0.95);
}

.video-modal-close img {
  width: 100%;
  height: auto;
  display: block;
}

/* 图片遮罩层样式 */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay-image {
  width: 100%;
  height: 100%;
  max-height: 80%;
  object-fit: contain;
  display: block;
  object-position: center 30%;
}

.overlay-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  font-size: 16px;
}

.overlay-swipe-hint {
  position: absolute;
  bottom: 5vw;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  z-index: 101;
  animation: swipeHint 2s infinite;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.overlay-swipe-hint.show {
  opacity: 0.4;
}

.overlay-swipe-hint img {
  width: auto;
  height: auto;
  max-width: 160px;
  max-height: 160px;
  object-fit: contain;
  opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .progress-bar {
    width: 600px;
  }

  .skip-btn {
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    font-size: 12px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
  }

  .activity-button {
    padding: 12px 25px;
    font-size: 14px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
  }

  @media (max-width: 480px) {
    .loading-gif img {
      width: 60px;
      height: 60px;
    }

    .progress-bar {
      width: 380px;
    }

    .activity-button {
      padding: 10px 20px;
      font-size: 13px;
    }
  }

  /* 动画效果 */
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes fadeOut {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }

  .fade-in {
    animation: fadeIn 0.5s linear;
  }

  .fade-out {
    animation: fadeOut 0.5s linear;
  }

  @keyframes pulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
    100% {
      transform: scale(1);
    }
  }

  .pulse {
    animation: pulse 2s infinite;
  }

  /* 隐藏类 */
  .hidden {
    display: none !important;
  }
}

/* Part2 合并页面样式 */
#part2-screen {
  background-color: transparent;
  z-index: 3;
  overflow: hidden;
  position: relative;
  /* 覆盖默认的 screen 样式以支持滚动 */
  display: block;
  align-items: initial;
  justify-content: initial;
}

.part2-scrollable-container {
  width: 100%;
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  position: relative;
  z-index: 2; /* 滚动容器在视频容器之上 */
  /* 确保滚动可以正常工作 */
  touch-action: pan-y;
  padding-top: 100vh; /* 为固定的视频容器预留空间 */
}

.part2-video-container {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: 1; /* 视频容器在底层，不阻断滚动 */
  pointer-events: none; /* 关键：让视频容器不接收触摸事件，允许下层滚动 */
}

.part2-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1; /* 视频在底层 */
}

.part2-poster-container {
  /* 全屏父容器 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-top: 20vw;
  z-index: 4; /* 确保海报容器在所有内容之上 */
  pointer-events: none; /* 让容器不接收触摸事件，允许下层滚动 */
}

.part2-poster {
  /* 海报图片样式 */
  width: 80%;
  height: auto;
  max-height: 70%;
  object-fit: contain;
}

.part2-detail {
  width: 100%;
  min-height: 120vh; /* 增加最小高度以确保有足够内容滚动 */
  background-color: transparent;
  flex-shrink: 0;
  position: relative;
  z-index: 1; /* 确保详情内容在正确的层级 */
}

.part2-content-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Part3 合并页面样式 */
#part3-screen {
  background-color: transparent;
  z-index: 3;
  overflow: hidden;
  position: relative;
  /* 覆盖默认的 screen 样式以支持滚动 */
  display: block;
  align-items: initial;
  justify-content: initial;
}

.part3-scrollable-container {
  width: 100%;
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  position: relative;
  z-index: 2; /* 滚动容器在视频容器之上 */
  /* 确保滚动可以正常工作 */
  touch-action: pan-y;
  padding-top: 100vh; /* 为固定的视频容器预留空间 */
}

.part3-video-container {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: 1; /* 视频容器在底层，不阻断滚动 */
  pointer-events: none; /* 关键：让视频容器不接收触摸事件，允许下层滚动 */
}

.part3-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1; /* 视频在底层 */
}

.part3-poster-container {
  /* 全屏父容器 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-top: 20vw;
  z-index: 4; /* 确保海报容器在所有内容之上 */
  pointer-events: none; /* 让容器不接收触摸事件，允许下层滚动 */
}

.part3-poster {
  /* 海报图片样式 */
  width: 80%;
  height: auto;
  max-height: 70%;
  object-fit: contain;
}

.part3-detail {
  width: 100%;
  min-height: 120vh; /* 增加最小高度以确保有足够内容滚动 */
  background-color: transparent;
  flex-shrink: 0;
  position: relative;
  z-index: 1; /* 确保详情内容在正确的层级 */
}

.part3-content-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* 全局BGM控制按钮样式 */
.bgm-control {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 移除点击选中样式 */
  -webkit-tap-highlight-color: transparent;
  -webkit-focus-ring-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  outline: none;
}

.bgm-button {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  /* 移除点击选中样式 */
  -webkit-tap-highlight-color: transparent;
  -webkit-focus-ring-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  outline: none;
}

.bgm-button:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bgm-button:active {
  transform: scale(0.95);
}

/* BGM播放时的旋转动画 */
.bgm-button.playing {
  animation: bgmRotate 4s linear infinite;
}

@keyframes bgmRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 音符图标 */
.bgm-icon {
  width: 18px;
  height: 18px;
  position: relative;
}

/* 暂停状态的样式 */
.bgm-button.paused .bgm-icon {
  opacity: 0.6;
}

.bgm-button.paused {
  animation: none;
}

/* Part3 简单图片展示组件样式 */
.p3-simple-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  /* 移除 scroll-behavior: smooth 以改善跟手体验 */
  /* 移除 scroll-snap-type 以避免与自定义触摸处理冲突 */
  /* 隐藏滚动条但保持功能 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.p3-simple-slider::-webkit-scrollbar {
  display: none;
}

.simple-slider-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.simple-slider-content {
  display: flex;
  height: 100%;
  gap: 3vw;
}

.simple-slider-image {
  flex: 0 0 auto;
  height: 100%;
  width: 40vw;
  object-fit: contain;
  object-position: center;
  transition: all 0.7s ease-in-out;
  /* 移除 scroll-snap-align 以避免与自定义触摸处理冲突 */
  /* 默认状态 */
  /* transform: scale(0.92); */
  width: 38vw;
  /* 模糊效果 */
  filter: blur(2px);
}

/* 完全可见的图片样式 */
.simple-slider-image.visible {
  /* transform: scale(1); */
  width: 42vw;
  filter: blur(0px);
}

/* p1-a13、p2-a2 和 p3-a12 按钮上下浮动动画 */
#p1-a13,
#p2-a2,
#p3-a12 {
  animation: buttonVerticalFloating 3s ease-in-out infinite;
}

@keyframes buttonVerticalFloating {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* p3-a6 按钮左右浮动动画 */
#p3-a6 {
  animation: buttonHorizontalFloating 3s ease-in-out infinite;
}

@keyframes buttonHorizontalFloating {
  0%,
  100% {
    transform: translateX(0px);
  }
  50% {
    transform: translateX(-8px);
  }
}

/* p1-a13 专用视频播放窗口样式 */
.p1-a13-video-modal {
  position: absolute;
  top: 976vw;
  left: 0;
  width: 100%;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.p1-a13-video-modal.show {
  opacity: 1;
}

.p1-a13-video-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* 视频上方说明文字 */
.p1-a13-video-text {
  text-align: center;
  color: white;
  font-size: 16px;
  line-height: 1.4;
  max-width: 100%;
  word-wrap: break-word;
}

.p1-a13-video-text p {
  margin: 0;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
}

.p1-a13-video-text img {
  width: 100%;
  height: auto;
  display: block;
}

/* 视频播放器 */
.p1-a13-video-player {
  position: relative;
  width: 94.9vw;
  height: auto;
  max-height: 60vh;
  z-index: 2;
}

/* 视频下方背景图片 */
.p1-a13-video-bg {
  position: absolute;
  top: -13.1vw;
  left: 0;
  width: 100%;
  z-index: 1;
}

.p1-a13-video-bg img {
  width: 100%;
  height: auto;
  display: block;
}

/* 关闭按钮 */
.p1-a13-video-close {
  background: none;
  border: none;
  padding: 0;
  margin-top: 82px;
  cursor: pointer;
  transition: transform 0.2s ease;
  width: 37vw;
  height: auto;
  -webkit-tap-highlight-color: transparent;
  -webkit-focus-ring-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  outline: none;
  animation: buttonVerticalFloating 3s ease-in-out infinite;
}

.p1-a13-video-close:hover {
  transform: scale(1.1);
}

.p1-a13-video-close:active {
  transform: scale(0.9);
}

.p1-a13-video-close img {
  width: 100%;
  height: auto;
  display: block;
}

/* p2-a2 专用视频播放窗口样式 */
.p2-a2-video-modal {
  position: absolute;
  top: 322vw;
  left: 0;
  width: 100%;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.p2-a2-video-modal.show {
  opacity: 1;
}

.p2-a2-video-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* 视频上方说明文字 */
.p2-a2-video-text {
  text-align: center;
  color: white;
  font-size: 16px;
  line-height: 1.4;
  max-width: 100%;
  word-wrap: break-word;
}

.p2-a2-video-text p {
  margin: 0;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
}

.p2-a2-video-text img {
  width: 100%;
  height: auto;
  display: block;
}

/* 视频播放器 */
.p2-a2-video-player {
  position: relative;
  width: 94.9vw;
  height: auto;
  max-height: 60vh;
  z-index: 2;
}

/* 视频下方背景图片 */
.p2-a2-video-bg {
  position: absolute;
  top: -13.1vw;
  left: 0;
  width: 100%;
  z-index: 1;
}

.p2-a2-video-bg img {
  width: 100%;
  height: auto;
  display: block;
}

/* 关闭按钮 */
.p2-a2-video-close {
  background: none;
  border: none;
  padding: 0;
  margin-top: 82px;
  cursor: pointer;
  transition: transform 0.2s ease;
  width: 37vw;
  height: auto;
  -webkit-tap-highlight-color: transparent;
  -webkit-focus-ring-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  outline: none;
  animation: buttonVerticalFloating 3s ease-in-out infinite;
}

.p2-a2-video-close:hover {
  transform: scale(1.1);
}

.p2-a2-video-close:active {
  transform: scale(0.9);
}

.p2-a2-video-close img {
  width: 100%;
  height: auto;
  display: block;
}

/* p3-a12 专用视频播放窗口样式 */
.p3-a12-video-modal {
  position: absolute;
  top: 1756vw;
  left: 0;
  width: 100%;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.p3-a12-video-modal.show {
  opacity: 1;
}

.p3-a12-video-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* 视频上方说明文字 */
.p3-a12-video-text {
  text-align: center;
  color: white;
  font-size: 16px;
  line-height: 1.4;
  max-width: 100%;
  word-wrap: break-word;
}

.p3-a12-video-text p {
  margin: 0;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
}

.p3-a12-video-text img {
  width: 100%;
  height: auto;
  display: block;
}

/* 视频播放器 */
.p3-a12-video-player {
  position: relative;
  width: 94.9vw;
  height: auto;
  max-height: 60vh;
  z-index: 2;
}

/* 视频下方背景图片 */
.p3-a12-video-bg {
  position: absolute;
  top: -13.1vw;
  left: 0;
  width: 100%;
  z-index: 1;
}

.p3-a12-video-bg img {
  width: 100%;
  height: auto;
  display: block;
}

/* 关闭按钮 */
.p3-a12-video-close {
  background: none;
  border: none;
  padding: 0;
  margin-top: 82px;
  cursor: pointer;
  transition: transform 0.2s ease;
  width: 37vw;
  height: auto;
  -webkit-tap-highlight-color: transparent;
  -webkit-focus-ring-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  outline: none;
  animation: buttonVerticalFloating 3s ease-in-out infinite;
}

.p3-a12-video-close:hover {
  transform: scale(1.1);
}

.p3-a12-video-close:active {
  transform: scale(0.9);
}

.p3-a12-video-close img {
  width: 100%;
  height: auto;
  display: block;
}
