  /* Carousel */
  .carousel {
    position: relative;
    height: 100vh;
    overflow: hidden;
  }
  
  .slides-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
  }
  
  .slide {
    flex: 0 0 100%; /* 每個佔滿 100% */
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
  }  
  
  
  .slide.active {
    opacity: 1;
    z-index: 2;
  }
  
  
  .caption {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2; /* ✅ 要蓋過 .overlay */
  }
  
  .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* ✅ 調整透明度即可 */
    z-index: 1;
  }
  
  .caption-text {
    text-align: center;
    color: white;
    padding: 20px 40px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(50px);    /* 初始下沉 */
    transition: opacity 0.8s ease, transform 0.8s ease;
    max-width: 80%;
  }
  .caption-text h1 {
    font-size: 60px;
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 1.2;
  }
  
  .caption-text h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
  }
  
  .caption-text p {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .slide.active .caption-text {
    opacity: 1;
    transform: translateY(0);       /* 浮上來 */
  }
  
  .slide .caption {
    position: absolute;
    z-index: 2;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 80%;
    text-align: center;
    color: white;
  }
  .caption-text {
    text-align: center;
    color: white;
    padding: 20px 40px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    max-width: 80%;
  }
  
  .caption-text.active {
    opacity: 1;
    transform: translateY(0);
  }
  
  
  .carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    color: white;
    background: transparent;   /* ✅ 透明背景 */
    border: none;
    cursor: pointer;
    z-index: 3;                /* 確保在遮罩和圖片之上 */
    padding: 10px;
    transition: transform 0.2s ease;
  }
  .carousel button:hover {
    transform: translateY(-50%) scale(1.2); /* 小小放大動畫 */
    color: #90caf9;                         /* Hover 顏色可調 */
  }
  
  .prev { left: 10px; }
  .next { right: 10px; }
  