.carousel-wrapper {
  width: 100%;
  max-width: 450px;
  position: relative;
}

.carousel-container {
  width: 100%;
  height: auto;
  position: relative;
}

/* 軌道：維持物理級精準的 snap 滾動 */
.carousel-track {
  display: flex;
  width: 100%;
  height: auto;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 40px;
  /* 右邊露出 40px */
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  min-width: calc(100% - 12px);
  height: auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.carousel-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  margin: 20px 0 24px 0;
  text-align: center;
  letter-spacing: 1px;
  width: 100%;
  padding-right: 40px;
  /* 文字視覺置中修正補償 */
}

.carousel-arrow {
  position: absolute;
  top: calc(50% - 32px);
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s;
  padding: 10px;
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.85);
}

#prevBtn {
  left: 10px;
}

#nextBtn {
  right: 45px;
}

.carousel-footer {
  width: 100%;
  max-width: 450px;
  padding: 0 24px 20px 24px;
  text-align: center;
}

.carousel-indicators {
  display: flex;
  gap: 6px;
  justify-content: center;
  width: 100%;
}

.indicator-bar {
  flex: 1;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.3);
  position: relative;
  border-radius: 2px;
  cursor: pointer;
}

.indicator-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.indicator-bar.active::after {
  width: 100%;
}