.ai-hero {
  position: relative;
  /* 按原圖 1440 × 1189 設定高度比例;內容若超出會把 box 撐高,不會被裁切 */
  aspect-ratio: 1440 / 1189;
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: clamp(80px, 12vh, 160px);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .8) 100%),
    url('../../assets/ai-cinema.webp') center/cover;
}

.ai-hero__inner {
  width: min(calc(100% - 40px), 657px);
  text-align: center;
}

.ai-hero__title {
  margin: 0 0 44px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .5);
}

.ai-hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 0 50px;
  font-family: var(--font-display);
  font-size: clamp(18px, 4vw, 25px);
  letter-spacing: 0;
  color: #fff;
}

.ai-hero__divider::before,
.ai-hero__divider::after {
  content: "";
  width: clamp(60px, 7vw, 100px);
  height: 1px;
  background: rgba(255, 255, 255, .6);
}

.ai-hero__body {
  margin: 0 0 50px;
  font-size: 18px;
  line-height: 1.69;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

.ai-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d6b079 0%, #a67c42 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.24em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transition: filter .2s ease, transform .2s ease;
}

.ai-hero__cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.ai-hero__cta svg {
  width: 16px;
  height: 16px;
}

/* ---- 向下捲動指示按鈕 ----
   絕對定位於 .ai-hero(已 position: relative)的正中央 ——
   水平 50%、垂直 50%。
*/
.ai-hero__scroll {
  display: none;
  position: absolute;
  top: 25%;
  left: 50%;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  cursor: pointer;
  transform: translate(-50%, -50%);
  animation: udy-ai-hero-bounce 1.6s ease-in-out infinite;
  transition: background .2s ease, border-color .2s ease;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.ai-hero__scroll:hover {
  background: rgba(0, 0, 0, .55);
  border-color: #fff;
}

.ai-hero__scroll svg {
  width: 20px;
  height: 20px;
}

@keyframes udy-ai-hero-bounce {
  0%, 60%, 100% { transform: translate(-50%, -50%) translateY(0); }
  30%           { transform: translate(-50%, -50%) translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .ai-hero__scroll {
    animation: none;
  }
}

@media (max-width: 767px) {
  /* 手機版:圖片在上(維持原比例),文字移到圖下方的深色區塊 */
  .ai-hero {
    display: block;
    aspect-ratio: auto;
    padding-bottom: 0;
    background: none;
  }

  .ai-hero::before {
    content: "";
    display: block;
    aspect-ratio: 1440 / 1189;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .8) 100%),
      url('../../assets/ai-cinema.webp') center/cover;
  }

  .ai-hero__inner {
    width: 100%;
    margin-top: -100px;
    padding: 40px 20px 48px;
    background: #19100B;
  }

  .ai-hero__title {
    margin-bottom: 28px;
    font-size: 22px;
    letter-spacing: 0;
  }

  .ai-hero__divider {
    margin-bottom: 32px;
    letter-spacing: 0;
  }

  .ai-hero__divider::before,
  .ai-hero__divider::after {
    width: 36px;
  }

  .ai-hero__body {
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.8;
  }

  .ai-hero__body br {
    display: none;
  }
}
