/* ============================================
   hero.css — V2 更精緻的 Hero 區塊

   改進：
   - 更精緻的多層漸層遮罩
   - 動態光暈背景裝飾
   - 更優雅的文字動畫時序
   - 金色漸層標題取代純白
   ============================================ */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-swiper { width: 100%; height: 100%; }

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

/* --- 背景圖 + 多層遮罩 --- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.2) saturate(1);
}

/* 多層漸層遮罩：底部更深、左側更深（文字區域）— 亮色主題版本 */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,23,42,0.05) 0%, rgba(15,23,42,0.25) 100%),
    linear-gradient(90deg, rgba(15,23,42,0.3) 0%, rgba(15,23,42,0) 70%),
    radial-gradient(ellipse at 80% 20%, rgba(202,138,4,0.12) 0%, transparent 50%);
}

/* --- 動態光暈裝飾 --- */
.hero-slide::before {
  content: '';
  position: absolute;
  right: 5%;
  top: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(202,138,4,0.04) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero-slide::after {
  content: '';
  position: absolute;
  right: 15%;
  top: 25%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(202,138,4,0.06);
  border-radius: 50%;
  z-index: 0;
  animation: heroRing 12s linear infinite;
}

@keyframes heroGlow {
  from { transform: scale(1); opacity: 0.5; }
  to { transform: scale(1.2); opacity: 1; }
}

@keyframes heroRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Hero 內容 --- */
.hero-content {
  position: relative;
  z-index: var(--z-base);
  max-width: 720px;
  padding-top: 100px;
}

/* Eyebrow */
.hero-eyebrow {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.5s var(--ease-out) forwards;
  animation-delay: 0.4s;
}

/* 分隔線 */
.hero-divider {
  width: 48px;
  height: 2px;
  background: var(--grad-gold);
  margin: 20px 0 28px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: heroLineIn 0.4s var(--ease-out) forwards;
  animation-delay: 0.6s;
}

/* --- 主標題 --- */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero-title span {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.5s var(--ease-out) forwards;
}

.hero-title span:nth-child(1) { animation-delay: 0.7s; }
.hero-title span:nth-child(2) { animation-delay: 0.85s; }
.hero-title span:nth-child(3) { animation-delay: 1.0s; }

/* 金色漸層重點文字 + 微光效果 */
.hero-title-accent {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  position: relative;
}

/* 副標 */
.hero-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 44px;
  max-width: 480px;
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.5s var(--ease-out) forwards;
  animation-delay: 1.15s;
}

/* CTA 群組 */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.5s var(--ease-out) forwards;
  animation-delay: 1.3s;
}

/* --- 輪播指示點 --- */
.hero .swiper-pagination {
  bottom: 80px !important;
}

.hero .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
  transition: all var(--duration-normal) var(--ease-out);
  border-radius: 4px;
}

.hero .swiper-pagination-bullet-active {
  background: var(--gold);
  width: 28px;
  box-shadow: 0 0 12px rgba(202, 138, 4, 0.4);
}

/* --- 滾動提示 --- */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-elevated);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: heroFadeUp 0.5s var(--ease-out) forwards;
  animation-delay: 2s;
}

.hero-scroll-hint span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* --- Keyframes --- */
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroLineIn {
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.3; transform: translateY(10px); }
}
