
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif; background: #f4f6f8; }
.carousel {
  position: relative;
  width: min(1200px, 92vw);
  aspect-ratio: 16 / 9;
  margin: 32px auto;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  background: #111;
}
.carousel-track { width: 100%; height: 100%; position: relative; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .55s ease;
  pointer-events: none;
}
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.34) 40%, rgba(0,0,0,.14) 100%);
}
.content {
  position: absolute;
  left: clamp(20px, 5vw, 56px);
  bottom: clamp(22px, 5vw, 56px);
  width: min(560px, calc(100% - 40px));
  color: #fff;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
  font-size: 14px;
}
h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.1;
}
p {
  margin: 0 0 18px;
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.75;
}
.button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-weight: 700;
}
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 20px;
  backdrop-filter: blur(6px);
}
.prev { left: 16px; }
.next { right: 16px; }

.dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.dot {
  width: 11px; height: 11px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(255,255,255,.45);
}
.dot.is-active { background: #fff; }

@media (max-width: 720px) {
  .carousel { width: 100vw; aspect-ratio: 4 / 5; border-radius: 0; margin: 0; }
  .overlay { background: linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.28) 60%, rgba(0,0,0,.12) 100%); }
  .nav { width: 40px; height: 40px; }
}
