/* 藝誠官網首頁輪播（2026-11-28）：每一張疊在同一格（高度是最高的那張，通常是藍色主視覺），淡入淡出；控制列照藝誠百貨 EZSHOP-001（白色膠囊：‹ 頁碼 › 暫停）。
   藍色主視覺本身的樣式在 wwwroot/eztrust/css/home.css（.homepage-test2 .ht-hero），這裡只把背景換成廣告的照片 */
.ezt-hb { position: relative; display: grid; overflow: hidden; background: #004e83; }
.ezt-hb__slide { grid-area: 1 / 1; position: relative; min-width: 0; opacity: 0; visibility: hidden; transition: opacity 0.8s ease, visibility 0.8s; }
.ezt-hb__slide.is-active { z-index: 1; opacity: 1; visibility: visible; }

/* 藍色主視覺：背景用廣告的照片（home.css 原本寫在 .ht-hero 的 background） */
.homepage-test2.ezt-hb .ht-hero { height: 100%; background: none; }
.ezt-hb__bg { position: absolute; inset: 0; z-index: -1; }
.ezt-hb__bg img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

/* 其他廣告：照片鋪滿，有字時疊在左邊 */
.ezt-hb__photo { position: absolute; inset: 0; display: block; }
.ezt-hb__photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.ezt-hb__copy { position: absolute; top: 50%; left: max(var(--ht-content-gutter, 40px), (100% - 1456px) / 2); z-index: 1; max-width: min(620px, 50%); color: #fff; transform: translateY(-50%); text-shadow: 0 2px 12px rgba(0, 30, 70, 0.45); }
.ezt-hb__eyebrow { display: block; margin-bottom: 14px; font-size: 14px; letter-spacing: 0.2em; color: #a2e9ff; }
.ezt-hb__title { margin: 0 0 16px; font-size: clamp(32px, 3.6vw, 60px); font-weight: 900; line-height: 1.25; }
.ezt-hb__intro { margin: 0 0 26px; font-size: clamp(15px, 1.2vw, 19px); line-height: 1.8; }
.ezt-hb__button { display: inline-block; padding: 12px 30px; border: 1px solid #76e4ff; border-radius: 30px; background: linear-gradient(#19bfff, #006dbb); color: #fff; font-size: 18px; font-weight: 800; text-decoration: none; text-shadow: none; }
.ezt-hb__button:hover, .ezt-hb__button:focus-visible { color: #fff; filter: brightness(1.08); }

/* 控制列（照 EZSHOP-001） */
.ezt-hb__controls { position: absolute; bottom: 14px; left: 50%; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 4px 16px rgba(23, 52, 81, 0.12); transform: translateX(-50%); }
.ezt-hb__arrow { width: 26px; height: 26px; padding: 0; border: 0; background: none; color: #31475b; font-size: 18px; line-height: 1; cursor: pointer; }
.ezt-hb__page { width: 22px; height: 18px; padding: 0; border: 0; background: linear-gradient(#9aaab8, #9aaab8) center / 100% 3px no-repeat; cursor: pointer; transition: width 0.25s; }
.ezt-hb__page[aria-pressed="true"] { width: 32px; background-image: linear-gradient(#0a6fc2, #0a6fc2); }
.ezt-hb__play { margin-left: 8px; padding: 2px 4px; border: 0; background: none; color: #31475b; font-size: 12px; white-space: nowrap; cursor: pointer; }
.ezt-hb__arrow:focus-visible, .ezt-hb__page:focus-visible, .ezt-hb__play:focus-visible { outline: 2px solid #0a6fc2; outline-offset: 2px; }

/* 手機：藍色主視覺很高，其他廣告的照片照原本比例放在最上面（建議 750×1000），字放在照片下面 */
@media (max-width: 767px) {
    .ezt-hb__slide:not(.ezt-hb__slide--brand) { display: flex; flex-direction: column; justify-content: flex-start; }
    .ezt-hb__photo { position: static; }
    .ezt-hb__photo img { height: auto; object-fit: contain; }
    .ezt-hb__copy { position: static; max-width: none; padding: 24px 20px 70px; transform: none; }
    .ezt-hb__controls { bottom: 10px; padding: 4px 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .ezt-hb__slide, .ezt-hb__page { transition: none; }
}
