* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: #000;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Helvetica, "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #fff;
}

body {
  overflow-x: hidden;
}

img,
video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  user-select: none;
  -webkit-user-drag: none;
}

.h5-container {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  background: #fff;
  position: relative;
  min-height: 100vh;
}

.media-item {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.media-item img {
  width: 100%;
  display: block;
}

.media-video {
  position: relative;
  background: #000;
}

.media-video video {
  width: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.video-mask {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 14px 28px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 40px;
  font-size: 16px;
  letter-spacing: 2px;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.media-video.is-playing .video-mask {
  opacity: 0;
}

.media-video::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  margin-left: -36px;
  margin-top: -36px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.media-video::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  margin-left: -10px;
  margin-top: -14px;
  border-left: 22px solid #fff;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.media-video.is-playing::before,
.media-video.is-playing::after {
  opacity: 0;
}

.link-item {
  cursor: pointer;
}

.media-item[data-index="21"] {
  padding-top: 10px;
}

.media-item[data-index="19"] {
  padding-top: 5px;
  padding-bottom: 5px;
}

.link-btn {
  display: block;
  text-decoration: none;
  color: inherit;
}

.float-link {
  position: fixed;
  right: 14px;
  top: 160px;
  z-index: 99;
  padding: 14px 16px;
  background: linear-gradient(135deg, #d32f2f 0%, #ff7043 100%);
  color: #fff;
  border-radius: 28px;
  text-decoration: none;
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(211, 47, 47, 0.35);
  max-width: 120px;
  line-height: 1.4;
  text-align: center;
  animation: floatBlink 2.4s ease-in-out infinite;
}

.float-link span {
  display: inline-block;
  vertical-align: middle;
}

.float-link-bottom {
  top: auto;
  bottom: 40px;
  background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%);
  box-shadow: 0 6px 18px rgba(21, 101, 192, 0.35);
}

@keyframes floatBlink {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.03);
  }
}

.carousel-section {
  width: calc(100% - 32px);
  /* padding: 5px 5px 5px 5px; */
  margin-left: 16px;
  margin-right: 16px;
  margin-bottom: 10px;
  background: #6AABD4;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 8px;
}

.carousel-section--pink {
  background: #E098AB;
}

.carousel-section--pink .carousel-wrapper {
  background: #E098AB;
}

.carousel-section--purple {
  background: #6662AA;
}

.carousel-section--purple .carousel-wrapper {
  background: #6662AA;
}
/* .carousel-section p{
    padding:10px;
 background: #6AABD4;
} */
.carousel-wrapper {
  width: 355px;
  height: 208px;
  background: #6AABD4;
  border-radius: 8px;
  padding-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

.carousel-viewport {
  width: 335px;
  height: 155px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  display: inline-block;
  transition: background 0.3s ease, width 0.3s ease;
}

.carousel-dots .dot.active {
  background: #ffffff;
  width: 20px;
  border-radius: 4px;
}

.carousel-text {
  /* margin-top: 16px; */
  padding-left:10px;
  padding-right:10px;
  width: 355px;
  font-size: 10px;
  line-height: 1.7;
  color: #ffffff;
  text-align: center;
  letter-spacing: 1px;
  opacity: 0.92;
}

@media screen and (max-width: 480px) {
  .float-link {
    right: 10px;
    top: 120px;
    padding: 10px 12px;
    font-size: 13px;
    max-width: 96px;
  }
  .float-link-bottom {
    top: auto;
    bottom: 24px;
  }

  .carousel-wrapper {
    width: calc(100vw - 30px);
    max-width: 355px;
    height: auto;
    padding: 3vw;
  }
  .carousel-viewport {
    width: 100%;
    height: 0;
    padding-bottom: 46.27%;
  }
  .carousel-track {
    position: absolute;
    left: 0;
    top: 0;
  }
  .carousel-dots {
    bottom: 3vw;
  }
  .carousel-text {
    width: calc(100vw - 30px);
    max-width: 355px;
    font-size: 9px;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom:8px;
  }
}
