/* ===================================================
   CSS 變數（design tokens）— 全站共用，未來新增區塊請優先重複使用
   =================================================== */
:root {
  /* 斷點（僅供文件對照，media query 仍需寫死數值 768px / 767px） */
  --bp-mb: 1024px;

  /* PC 版內容容器 */
  --pc-content-max-width: 1200px;

  /* PC 版內容左右邊距（視窗小於內容寬時預留空間） */
  --pc-side-padding: 20px;

  /* MB 版內容左右邊距 */
  --mb-side-padding: 15px;

  /* Header */
  --header-height: 56px;
  --header-bg-color: #0D2855;
  --header-content-max-width-pc: 1220px;
  --header-logo-width-pc: 242px;
  --header-logo-width-mb: 40vw;
  --header-icon-size: 38px;
  --header-icon-gap: 12px;

  /* 底圖原始尺寸 */
  --bg-pc-width: 2000px;
  --bg-pc-height: 964px;
  --bg-mb-width: 960px;
  --bg-mb-height: 2087px;

  /* 疊層順序 */
  --z-bg: -1;
  --z-header: 10;
  --z-content: 5;


  /* 頁面底色（底圖未覆蓋區域顯示） */
  --page-bg-color: #011746;

  /* 主視覺區塊（依設計稿比例換算） */
  --promo-title-width-pc: 56%;
  --promo-subtitle-width-pc: 36%;
  --promo-badge-width-pc: 13%;
  --promo-product-width-pc: 49%;
  --promo-btn-width-pc: 48%;

  --promo-title-width-mb: 88%;
  --promo-subtitle-width-mb: 66%;
  --promo-badge-width-mb: 22%;
  --promo-product-width-mb: 90%;
  --promo-btn-width-mb: 60vw;

  /* 集點大補帖 */
  --bonus-title-size-pc: 46px;
  --bonus-title-size-mb: 28px;
  --bonus-text-size-pc: 26px;
  --bonus-text-size-mb: 18px;

  /* 漂浮動畫位移量 */
  --float-distance: 8px;

  /* 入場動畫出場序列（每個元素各自的延遲時間，方便個別調整節奏） */
  --entrance-delay-title: 0s;
  --entrance-delay-subtitle: 0.2s;
  --entrance-delay-badge: 0.4s;
  --entrance-delay-product: 0.8s;
  --entrance-delay-btn: 1.2s;
  --entrance-delay-deco-left: 1.5s;
  --entrance-delay-deco-right: 1.8s;
}

/* ===================================================
   Reset
   =================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: var(--page-bg-color);
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: none;
}

/* ===================================================
   集點大補帖
   =================================================== */
.bonus-info {
  text-align: center;
  padding: 0 var(--mb-side-padding) 20px;
}

.bonus-info__title {
  font-size: var(--bonus-title-size-mb);
  font-weight: bold;
  background: linear-gradient(150deg, #FBE8BE 0%, #F5CC7F 30%, #DA943F 65%, #F5CC7F 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.bonus-info__list {
  display: inline-block;
  text-align: left;
  list-style: none;
  color: #fff;
  font-size: var(--bonus-text-size-mb);
  line-height: 2.2;
}

@media (min-width: 1025px) {
  .bonus-info {
    padding: 20px var(--pc-side-padding) 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .bonus-info__title {
    font-size: var(--bonus-title-size-pc);
    margin-bottom: 24px;
    display: inline-block;
  }

  .bonus-info__list {
    font-size: var(--bonus-text-size-pc);
  }
}

/* ===================================================
   Footer
   =================================================== */
.site-footer {
  padding: 20px var(--mb-side-padding);
  text-align: center;
}

.site-footer__text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1.8;
}

@media (min-width: 1025px) {
  .site-footer {
    padding: 20px var(--pc-side-padding);
  }
}

/* ===================================================
   無障礙輔助
   =================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===================================================
   版面骨架
   =================================================== */
.page {
  position: relative;
}

/* 底圖 */
.bg {
  position: absolute;
  inset: 0;
  z-index: var(--z-bg);
}

.bg-img--mb {
  display: none;
}

.deco {
  position: absolute;
  display: none;
}

/* animate.style bounceIn（https://animate.style/） */
.animate__animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.animate__bounceIn {
  animation-name: bounceIn;
  animation-duration: 0.75s;
}

@keyframes bounceIn {
  from,
  20%,
  40%,
  60%,
  80%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  0% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }

  20% {
    transform: scale3d(1.1, 1.1, 1.1);
  }

  40% {
    transform: scale3d(0.9, 0.9, 0.9);
  }

  60% {
    opacity: 1;
    transform: scale3d(1.03, 1.03, 1.03);
  }

  80% {
    transform: scale3d(0.97, 0.97, 0.97);
  }

  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

/* animate.style zoomIn（https://animate.style/） */
.animate__zoomIn {
  animation-name: zoomIn;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }

  50% {
    opacity: 1;
  }
}

/* animate.style flipInX（https://animate.style/） */
.animate__flipInX {
  backface-visibility: visible !important;
  animation-name: flipInX;
}

@keyframes flipInX {
  from {
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    animation-timing-function: ease-in;
    opacity: 0;
  }

  40% {
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    animation-timing-function: ease-in;
  }

  60% {
    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    opacity: 1;
  }

  80% {
    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
  }

  to {
    transform: perspective(400px);
  }
}

/* animate.style fadeIn（https://animate.style/） */
.animate__fadeIn {
  animation-name: fadeIn;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* 持續漂浮 */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(calc(var(--float-distance) * -1));
  }
}

/* animate.style fadeInRight（https://animate.style/） */
.animate__fadeInRight {
  animation-name: fadeInRight;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(100%, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* 入場出場次序：標題 → 副標 → 徽章 → 產品圖 → 按鈕 → 左裝飾 → 右裝飾 */
.promo-title {
  animation: float 4s ease-in-out infinite;
}

.promo-subtitle {
  animation-delay: var(--entrance-delay-subtitle);
}

.promo-badge {
  animation-delay: var(--entrance-delay-badge);
}

.promo-product-img--pc,
.promo-product-img--mb,
.promo-list {
  animation-delay: var(--entrance-delay-product);
}

.promo-btn-img {
  animation-delay: var(--entrance-delay-btn);
}

.deco-left {
  animation-delay: var(--entrance-delay-deco-left);
}

.deco-right {
  animation-delay: var(--entrance-delay-deco-right);
}

/* Header */
.site-header {
  height: var(--header-height);
  background-color: var(--header-bg-color);
  display: flex;
  align-items: center;
}

.site-header__inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: block;
  line-height: 0;
}

.site-header .logo {
  height: auto;
}

.site-header__social {
  display: flex;
  align-items: center;
  gap: var(--header-icon-gap);
}

.site-header__social .icon {
  display: block;
  width: var(--header-icon-size);
  height: var(--header-icon-size);
  background-repeat: no-repeat;
  background-size: contain;
}

.icon-fb {
  background-image: url("../images/icon_fb.svg");
}

.icon-fb:hover {
  background-image: url("../images/icon_fb_hover.svg");
}

.icon-line {
  background-image: url("../images/icon_line.svg");
}

.icon-line:hover {
  background-image: url("../images/icon_line_hover.svg");
}

/* 主要內容 */
.content {
  position: relative;
  z-index: var(--z-content);
}

.promo-text {
  position: relative;
}

.promo-title,
.promo-subtitle {
  display: block;
}

.promo-badge {
  position: absolute;
}

.promo-main {
  display: flex;
}

.promo-product-img--mb {
  display: none;
}

.promo-offer {
  display: flex;
  flex-direction: column;
}

.promo-list {
  width: 100%;
  height: auto;
}

.promo-btn {
  display: block;
  transition: transform 0.2s ease;
}

.promo-btn:hover {
  transform: scale(0.95);
}

.promo-btn img {
  width: 100%;
}

/* ===================================================
   PC 版（≥768px）
   =================================================== */
@media (min-width: 1025px) {
  .page {
    min-height: var(--bg-pc-height);
  }

  .bg {
    inset: auto;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--bg-pc-width);
    height: var(--bg-pc-height);
  }

  .bg-img--pc {
    width: 100%;
    height: 100%;
  }

  .deco {
    display: block;
  }

  .deco-left {
    left: -20px;
    top: 582px;
    width: 358px;
  }

  .deco-right {
    right: -160px;
    top: 85px;
    width: 457px;
  }

  .site-header__inner {
    max-width: var(--header-content-max-width-pc);
    margin: 0 auto;
    padding: 0 var(--mb-side-padding);
  }

  .site-header .logo {
    width: var(--header-logo-width-pc);
  }



  .content {
    max-width: var(--pc-content-max-width);
    margin: 0 auto;
    padding: 0 var(--pc-side-padding);
  }

  .promo-text {
    margin-top: 75px;
  }

  .promo-title {
    width: 713px;
    margin: 0 auto;
  }

  .promo-subtitle {
    width: 393px;
    margin-top: 12px;
    margin: 0 auto;
  }

  .promo-badge {
    width: 208px;
    top: 153px;
    right: 150px
  }

  .promo-main {
    margin-top: 30px;
    align-items: center;
    gap: 40px;
  }

  .promo-product {
    width: var(--promo-product-width-pc);
    flex-shrink: 0;
  }

  .promo-product-img--pc {
    width: 100%;
    height: auto;
  }

  .promo-offer {
    flex: 1;
  }

  .promo-btn {
    width: var(--promo-btn-width-pc);
    margin: 20px auto 0;
  }
}

/* ===================================================
   MB 版（≤767px）
   底圖為 in-flow 元素，由圖片高度撐出網頁高度；
   header 與 content 改為絕對定位疊加在底圖上方。
   =================================================== */
@media (max-width: 1024px) {
  .bg {
    position: static;
    width: 100%;
    height: auto;
  }

  .bg-img--pc {
    display: none;
  }

  .bg-img--mb {
    display: block;
    width: 100%;
    height: auto;
  }

  .promo-product-img--pc {
    display: none;
  }

  .site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }

  .site-header__inner {
    padding: 0 var(--mb-side-padding);
  }

  .content {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    padding: 0 var(--mb-side-padding);
  }

  .promo-text {
    margin-top: 8vw;
  }

  .promo-title {
    --float-distance: 6px;
    width: 93vw;
    margin: 0 auto;
  }

  .promo-subtitle {
    width: var(--promo-subtitle-width-mb);
    margin: 4px auto 0 auto;
  }

  .promo-badge {
    display: none;
  }

  .promo-main {
    flex-direction: column;
    align-items: center;
    margin-top: 0px;
    gap: 16px;
  }

  .promo-product {
    width: var(--promo-product-width-mb);
    margin-bottom: 2vw;
  }

  .promo-product-img--mb {
    display: block;
    width: 100%;
    height: auto;
  }

  .promo-offer {
    width: 100%;
    align-items: center;
  }

  .promo-btn {
    width: var(--promo-btn-width-mb);
    margin: 2vw auto 0;
  }
}

@media (max-width: 767px) {

  .site-header .logo {
    width: var(--header-logo-width-mb);
  }

}