/* ─── 安可圖片 CTA 熱區連結 (Encore Image CTA Hotspot) ─── */

/* 自動掛載外框：對齊頁尾版心，寬度為頁尾的 80%，置中 (桌機/手機一致) */
.encore-cta-pos {
  width: 80% !important;
  max-width: 1344px !important; /* 頁尾版心 1680px 的 80% */
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 40px !important;
  margin-bottom: 56px !important;
  box-sizing: border-box !important;
}

/* 外框內的 CTA 佔滿外框，避免二次縮小 */
.encore-cta-pos .encore-cta {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* 短碼直接輸出時，同樣以頁尾版心 80% 寬度置中 */
.encore-cta {
  position: relative;
  display: block;
  width: 80% !important;
  max-width: 1344px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 40px !important;
  margin-bottom: 40px !important;
  overflow: hidden;
  line-height: 0;
  box-sizing: border-box;
}

/* 手機（含平板）明確再次鎖定 80% 左右間距與上下留白，避免任何行動版規則蓋掉 */
@media (max-width: 768px) {
  .encore-cta-pos,
  .encore-cta {
    width: 80% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 32px !important;
    margin-bottom: 48px !important;
  }
  /* 外框內的 CTA 仍佔滿外框 (80% 的 100%)，僅保留外框本身的留白 */
  .encore-cta-pos .encore-cta {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
}

.encore-cta-picture {
  display: block;
}

.encore-cta-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.encore-cta-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* 熱區：透明可點擊，無任何懸浮框 / 底色 / 動畫 */
.encore-cta-hot {
  position: absolute;
  display: block;
  pointer-events: auto;
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

/* 僅鍵盤聚焦時顯示外框（不影響滑鼠操作，維持無障礙） */
.encore-cta-hot:focus-visible {
  outline: 2px solid #B00000;
  outline-offset: 2px;
}
