/* Promote page（獨立推廣頁）— 與 index.css 併用；共用 .result-page__promo-* 等仍於 index.css */
/*
 * 與 secret message 頁相同策略（見 index.css html.secret-message-mode）：
 * html/body 鎖定視窗 + overflow hidden，由 main.promote-page 負責 overflow-y:auto，
 * 避開全域 html,body overflow-y:hidden 與 iOS 整頁捲動異常。
 */
html.promote-mode-root {
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

html.promote-mode-root body.promote-mode {
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  overflow: hidden;
}

.promote-page {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  height: 100%;
  max-height: 100dvh;
  padding: 18px clamp(12px, 4vw, 20px) calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.promote-page__header {
  position: relative;
  z-index: 50;
  flex-shrink: 0;
  width: min(92vw, 533px);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 8px 0 14px;
  text-align: center;
}

.promote-page__back-btn {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.promote-page__back-btn:hover {
  filter: brightness(1.05);
}

.promote-page__back-img {
  width: 40px;
  height: 40px;
  display: block;
}

.promote-page__title-img {
  width: clamp(200px, 72vw, 420px);
  height: auto;
  display: block;
  margin: 0 auto;
}

.promote-page__stack {
  position: relative;
  z-index: 50;
  flex: 0 0 auto;
  width: min(92vw, 533px);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(7px, 1.8vw, 16px);
}

/* 第3步主圖 + 月供推廣圖一組，間距略小於 stack 以視覺上連成一區 */
.promote-page__step3-group {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 1.2vw, 10px);
  width: 100%;
}

.promote-page__tnc-link {
  display: block;
  width: 100%;
  line-height: 0;
  text-decoration: none;
}

.promote-page__error {
  position: relative;
  z-index: 50;
  flex-shrink: 0;
  width: min(92vw, 533px);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: rgba(255, 255, 255, 0.98);
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.85),
    0 0 8px rgba(0, 0, 0, 0.75);
}
