<style>
.carousel-wrapper {
  position: absolute;
  width: 100%;
  max-width: 100vw
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  animation: scroll-left 24s linear infinite;
  width: 100%;
}

.carousel-wrapper:hover .carousel-track {
  animation-play-state: paused;
}

.carousel-item {
  flex: 0 0 auto;
  width: 300px;
  height: 200px;
  margin-right: 10px;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* 流動動畫 */
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 響應式 */
@media (max-width: 768px) {
  .carousel-item {
    width: 200px;
    height: 133px;
  }
  .fade-left,
  .fade-right {
    width: 50px;
  }
}
</style>