/* ===== 全站共用設定 =====
   需要調整品牌色、文字色時，優先修改這裡的變數。 */
:root {
  --brand-blue: #006fbe;
  --footer-blue: #0789df;
  --title-blue: #377df5;
  --light-blue: #f0f8ff;
  --text: #333;
}

/* 讓寬度與內距計算比較直覺。 */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: #fff;
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

/* 給螢幕閱讀器使用，但不在畫面上顯示的文字。 */
.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;
}

/* 鍵盤使用者跳過 Header，直接前往主要內容。 */
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  color: #fff;
  background: #111;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ===== Header、Logo 與桌機導覽 ===== */
.site-header {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  width: 100%;
  height: 80px;
  padding: 0 20px;
  background: #fff;
}

.bank-logo {
  display: block;
  flex: 0 0 auto;
  width: 308px;
  height: 40px;
  overflow: hidden;
}

.bank-logo picture,
.bank-logo__image {
  display: block;
  width: 100%;
  height: 100%;
}

.bank-logo__image {
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  font-size: 18px;
}

.desktop-nav > a,
.nav-dropdown > button {
  position: relative;
  display: block;
  padding: 8px 20px;
  border: 0;
  color: #333;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.desktop-nav > a::after,
.nav-dropdown::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 18px;
  background: #777;
  content: "";
  transform: translateY(-50%);
}

.desktop-nav > a:first-child::after {
  display: none;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.nav-dropdown > button:hover,
.nav-dropdown > button:focus-visible {
  color: var(--brand-blue);
}

/* 桌機下拉選單的定位基準。下拉內容會以父層右下角為基準定位。 */
.nav-dropdown {
  position: relative;
}

/* 桌機下拉選單預設隱藏，開啟時由 .nav-dropdown.is-open 顯示。 */
.credit-card-menu {
  display: none;
  position: absolute;
  z-index: 10;
  top: 53px;
  right: -2px;
  width: 196px;
  padding: 8px 0;
  border-radius: 0 0 3px 3px;
  background: rgba(218, 241, 254, 0.96);
  box-shadow: 0 4px 12px rgba(0, 84, 139, 0.12);
}

.nav-dropdown.is-open > .credit-card-menu {
  display: block;
}

.credit-card-menu a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  font-size: 16px;
  line-height: 1.25;
  text-decoration: none;
}

.credit-card-menu a::after {
  margin-left: 8px;
  content: "›";
  font-size: 24px;
}

.credit-card-menu a:hover,
.credit-card-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.65);
}

/* 手機選單在桌機版不顯示，手機版會在響應式區塊中重新開啟。 */
.menu-toggle,
.mobile-menu {
  display: none;
}

/* ===== Hero Banner ===== */
.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-picture,
.hero__image {
  display: block;
  width: 100%;
}

.hero__image {
  height: auto;
}

/* L 版 Banner／活動區使用的硬幣裝飾，M／S 版不顯示。 */
.coin-decorations {
  display: none;
}

@media (min-width: 1024px) {
  .coin-decorations {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    pointer-events: none;
  }

  .coin-decoration {
    position: absolute;
    width: 56px;
    height: 58px;
  }

  .coin-decoration--1 {
    top: 141px;
    left: 165px;
  }

  .coin-decoration--2 {
    top: 353px;
    left: 228px;
  }

  .coin-decoration--3 {
    top: 480px;
    left: 119px;
  }

  .coin-decoration--4 {
    top: 551px;
    left: 1633px;
  }

  .coin-decoration--5 {
    top: 253px;
    left: 1769px;
  }

  .coin-decoration--6 {
    top: 93px;
    left: 1670px;
  }

}

/* ===== 優惠分類 =====
   桌機版以單列排列，M／S 版的排列方式在下方響應式區塊調整。 */
.offer-categories {
  display: flex;
  width: 1056px;
  height: 275px;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin: 0 auto;
}

.category {
  display: flex;
  flex: 0 0 120px;
  width: 120px;
  height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #333;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease;
}

.category__icon {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.category__label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.category:hover {
  filter: saturate(1.08);
  transform: translateY(-4px);
}

.category:focus-visible {
  outline: 3px solid rgba(44, 121, 255, 0.38);
  outline-offset: 4px;
  filter: saturate(1.08);
  transform: translateY(-4px);
}

/* L 版：1024px 以上。這裡主要調整桌機尺寸與固定畫布比例。 */
@media (min-width: 1024px) {
  .site-header {
    height: clamp(53.3338px, 4.1667vw, 80px);
    padding: 0 clamp(13.3338px, 1.0417vw, 20px);
  }

  .bank-logo {
    width: clamp(205.3338px, 16.0417vw, 308px);
    height: clamp(26.6662px, 2.0833vw, 40px);
  }

  .desktop-nav {
    font-size: clamp(12px, 0.9375vw, 18px);
  }

  .desktop-nav > a,
  .nav-dropdown > button {
    padding: clamp(5.3338px, 0.4167vw, 8px) clamp(13.3338px, 1.0417vw, 20px);
  }

  .desktop-nav > a::after,
  .nav-dropdown::before {
    height: clamp(12px, 0.9375vw, 18px);
  }

  .credit-card-menu {
    top: 100%;
    right: clamp(-2px, -0.1042vw, -1.3338px);
    width: clamp(130.6662px, 10.2083vw, 196px);
    padding: clamp(5.3338px, 0.4167vw, 8px) 0;
    border-radius: 0 0 clamp(2px, 0.1563vw, 3px) clamp(2px, 0.1563vw, 3px);
    box-shadow: 0 clamp(2.6662px, 0.2083vw, 4px) clamp(8px, 0.625vw, 12px) rgba(0, 84, 139, 0.12);
  }

  .credit-card-menu a {
    min-height: clamp(32px, 2.5vw, 48px);
    padding: clamp(5.3338px, 0.4167vw, 8px) clamp(12px, 0.9375vw, 18px);
    font-size: clamp(10.6662px, 0.8333vw, 16px);
  }

  .credit-card-menu a::after {
    margin-left: clamp(5.3338px, 0.4167vw, 8px);
    font-size: clamp(16px, 1.25vw, 24px);
  }

  .offer-categories {
    width: clamp(704px, 55vw, 1056px);
    height: 275px;
    gap: clamp(24px, 1.875vw, 36px);
  }

  .category {
    flex-basis: clamp(80px, 6.25vw, 120px);
    width: clamp(80px, 6.25vw, 120px);
    height: clamp(100px, 7.8125vw, 150px);
    gap: clamp(8px, 0.625vw, 12px);
  }

  .category__icon {
    width: clamp(66.6662px, 5.2083vw, 100px);
    height: clamp(66.6662px, 5.2083vw, 100px);
  }

  .category__label {
    font-size: clamp(10.6662px, 0.8333vw, 16px);
  }

}

/* ===== 活動區塊、標題與活動卡片 ===== */
.offer-section {
  position: relative;
  display: flex;
  height: 702.42px;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  overflow: hidden;
  padding: 40px 0;
  background: #fff;
}

.offer-section--popular {
  gap: 0;
  padding: 0;
}

.offer-section__canvas {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 40px 0;
}

.offer-section--latest {
  border-radius: 70px 70px 0 0;
  background: #f1f8fd;
}

.section-title {
  z-index: 1;
  display: flex;
  width: 328px;
  height: 109px;
  min-height: 109px;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
}

.section-title__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 輪播外框。max-width 控制桌機可視寬度，height 控制卡片區高度。 */
.offer-swiper {
  z-index: 1;
  width: 100%;
  max-width: 1098px;
  height: 387.42px;
  margin-top: 0;
  padding: 0;
  overflow: visible;
}

.offer-swiper .swiper-wrapper {
  align-items: center;
}

.offer-swiper .swiper-slide {
  width: 350px;
  height: 387.42px;
}

.offer-swiper .swiper-slide:not(.swiper-slide-visible) {
  visibility: hidden;
  pointer-events: none;
}

/* 活動卡片的共用外觀；L／M 版的特殊尺寸會在下方 media query 覆蓋。 */
.promo-card {
  display: block;
  position: relative;
  width: 350px;
  height: 387.42px;
  border-radius: 24px;
  overflow: hidden;
  color: #333;
  background: #fff;
  box-shadow: 0 2px 14px rgba(31, 86, 127, 0.15);
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease;
}

.promo-card__index {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #0057a8;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 55, 105, 0.22);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.promo-card__image {
  display: block;
  width: 350px;
  height: 214px;
  object-fit: cover;
}

.promo-card__content {
  display: flex;
  height: 174px;
  flex-direction: column;
  padding: 9px 14px 10px;
}

.promo-card__date {
  color: #666;
  font-size: 14px;
  line-height: 1.35;
}

.promo-card__title {
  display: block;
  min-height: 48px;
  margin-top: 3px;
  color: #222;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

.promo-card__more {
  display: flex;
  height: 35px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border-radius: 999px;
  color: #fff;
  background: #000;
  font-size: 14px;
  transition: background-color 160ms ease;
}

.promo-card__more span {
  margin-left: 6px;
  font-size: 20px;
  line-height: 1;
}

.offer-swiper .swiper-slide:not(.swiper-slide-active) .promo-card {
  transform: scale(1);
  transform-origin: center center;
  opacity: 1;
}

.offer-swiper .swiper-slide-active .promo-card {
  transform: scale(1);
  transform-origin: center center;
  opacity: 1;
}

.promo-card:hover .promo-card__more,
.promo-card:focus-visible .promo-card__more {
  background-color: #525252;
}

.promo-card:hover {
  filter: saturate(1.06);
  transform: translateY(-3px);
}

.promo-card:focus-visible {
  outline: 3px solid rgba(44, 121, 255, 0.5);
  outline-offset: -3px;
  filter: saturate(1.06);
  transform: translateY(-3px);
}

/* M／S 版輪播互動：維持 active 卡片在最上層。 */
@media (max-width: 1023px) {
  .offer-swiper .swiper-slide {
    position: relative;
    z-index: 1;
  }

  .offer-swiper .swiper-slide-active {
    z-index: 3;
  }

  .promo-card:hover,
  .promo-card:focus-visible {
    transform: scale(1) translateY(-3px);
  }
}

/* L 版輪播：三張卡片預設等大，滑入中央卡片時才縮小兩側卡片。 */
@media (min-width: 1024px) {
  .offer-section--popular .offer-section__canvas {
    width: 1920px;
    min-width: 1920px;
  }

  .promo-card {
    display: flex;
    width: 350px;
    height: 382.42px;
    flex: 0 0 auto;
    flex-direction: column;
    flex-grow: 0;
    align-items: center;
    order: 0;
    padding: 10.8247px;
    gap: 10.82px;
    border-radius: 27.0619px;
    box-shadow: 0 0 18.0412px rgba(0, 0, 0, 0.1);
  }

  .promo-card__image {
    flex: 0 0 auto;
    width: 328.35px;
    height: 215.48px;
    border-radius: 18.0412px;
  }

  .promo-card__content {
    display: flex;
    width: 328.35px;
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 0 9.02062px;
  }

  /* L 預設維持等尺寸；互動時切換成 M/S 使用的 active／側邊卡片狀態。 */
  .offer-swiper.is-l-hovering .swiper-slide:not(.is-l-hovered) .promo-card {
    transform: scale(0.75);
    opacity: 0.5;
  }

  .offer-swiper.is-l-hovering .swiper-slide.is-l-hovered .promo-card {
    transform: scale(1) translateY(-3px);
    opacity: 1;
  }

  .offer-swiper.is-l-hovering .swiper-slide.is-l-hover-prev .promo-card {
    transform: translateX(43.75px) scale(0.75);
    opacity: 0.5;
  }

  .offer-swiper.is-l-hovering .swiper-slide.is-l-hover-next .promo-card {
    transform: translateX(-43.75px) scale(0.75);
    opacity: 0.5;
  }

  .offer-swiper .swiper-slide:not(.swiper-slide-next) .promo-card:hover,
  .offer-swiper .swiper-slide:not(.swiper-slide-next) .promo-card:focus-visible {
    filter: none;
    transform: scale(1);
  }

  .offer-swiper .swiper-slide:not(.swiper-slide-next) .promo-card:hover .promo-card__more,
  .offer-swiper .swiper-slide:not(.swiper-slide-next) .promo-card:focus-visible .promo-card__more {
    background-color: #000;
  }
}

/* 輪播左右按鈕與頁數圓點。要調整控制列寬度或間距時修改這裡。 */
.carousel-controls {
  z-index: 2;
  display: flex;
  width: 260px;
  height: 30px;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-top: 0;
}

.carousel-button {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b8d8fb;
  cursor: pointer;
}

.carousel-button::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
}

.carousel-button--prev::before {
  transform: translate(-35%, -50%) rotate(-45deg);
}

.carousel-button--next::before {
  transform: translate(-65%, -50%) rotate(135deg);
}

.carousel-button:hover,
.carousel-button:focus-visible {
  outline: 3px solid rgba(44, 121, 255, 0.35);
  outline-offset: 2px;
}

.carousel-pagination {
  position: static;
  display: flex;
  width: 128px;
  max-width: 220px;
  align-items: center;
  justify-content: center;
  gap: 12.95px;
  transform: none;
}

.carousel-pagination .swiper-pagination-bullet {
  width: 9.9px;
  height: 9.9px;
  margin: 0 !important;
  border: 1px solid #83baff;
  background: #fff;
  opacity: 1;
}

.carousel-pagination .swiper-pagination-bullet-active {
  width: 13.71px;
  height: 13.71px;
  border-color: #9ec9ff;
  background: #9ec9ff;
}

/* ===== 理財提醒與 Footer ===== */
.credit-notice {
  min-height: 94px;
  background: #fff;
}

.credit-notice__inner {
  display: flex;
  width: min(930px, calc(100% - 40px));
  min-height: 94px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 auto;
}

.credit-notice h2 {
  flex: 0 0 auto;
  margin: 0;
  padding-right: 20px;
  border-right: 1px solid #777;
  color: #555;
  font-size: 26px;
  font-weight: 500;
  white-space: nowrap;
}

.credit-notice__copy {
  display: flex;
  gap: 18px;
  color: #666;
  font-size: 12px;
  line-height: 1.7;
}

.credit-notice__copy p {
  margin: 0;
}

.credit-notice__copy a {
  color: #0789df;
  text-decoration: none;
}

.site-footer {
  min-height: 80px;
  color: #fff;
  background: var(--footer-blue);
}

.site-footer__inner {
  display: flex;
  min-height: 80px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
}

/* 右下角浮動功能按鈕；手機版尺寸與位置在下方調整。 */
.floating-actions {
  position: absolute;
  z-index: 80;
  right: 15px;
  bottom: 20px;
  display: flex;
  width: 54px;
  flex-direction: column;
  gap: 10px;
}

.floating-action {
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.floating-action > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.floating-action:hover,
.floating-action:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -5px;
}

/* M／S 版：1023px 以下顯示手機 Header 與手機導覽。 */
@media (max-width: 1023px) {
  .offer-section.offer-section--popular {
    gap: 0;
    padding: 0;
  }

  .offer-section--popular .offer-section__canvas {
    gap: 48px;
    padding: 60px 0;
  }

  .site-header {
    height: 80px;
    padding: 0 20px;
  }

  .bank-logo {
    width: 185px;
    height: 40px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
    width: 42px;
    height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-left: auto;
    padding: 5px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle > span:not(.sr-only) {
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: var(--brand-blue);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] > span:nth-of-type(2) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] > span:nth-of-type(3) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] > span:nth-of-type(4) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .mobile-menu {
    position: absolute;
    top: 80px;
    right: 0;
    left: 0;
    z-index: 30;
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    padding: 8px 20px 18px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(0, 75, 130, 0.15);
  }

  .mobile-menu.is-open {
    display: grid;
  }

  .mobile-menu a {
    padding: 14px 4px;
    border-bottom: 1px solid #d8eafa;
    color: #333;
    text-decoration: none;
  }

  .mobile-menu__group {
    border-bottom: 1px solid #d8eafa;
  }

  .mobile-menu__parent {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    border: 0;
    color: #333;
    background: transparent;
    text-align: left;
    cursor: pointer;
  }

  .mobile-menu__parent:focus-visible {
    outline: 3px solid rgba(44, 121, 255, 0.38);
    outline-offset: -3px;
  }

  .mobile-menu__chevron {
    color: var(--brand-blue);
    font-size: 22px;
    line-height: 1;
    transition: transform 180ms ease;
  }

  .mobile-menu__group.is-open .mobile-menu__chevron {
    transform: rotate(180deg);
  }

  .mobile-menu__submenu {
    display: none;
    padding: 0 0 6px 18px;
  }

  .mobile-menu__group.is-open .mobile-menu__submenu {
    display: grid;
  }

  .mobile-menu__submenu a {
    padding: 10px 4px;
    border-bottom: 0;
    font-size: 15px;
  }

  .offer-categories {
    display: flex;
    width: 768px;
    max-width: 1440px;
    height: 416px;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    gap: 48px;
  }

  .category {
    height: 150px;
  }

  .category__icon {
    object-fit: contain;
  }

  .offer-section {
    height: 742.42px;
    padding: 60px 0;
    gap: 48px;
  }

  .offer-section--latest {
    border-radius: 48px 48px 0 0;
  }

  .credit-notice {
    min-height: 154px;
  }

  .credit-notice__inner {
    min-height: 154px;
    flex-direction: column;
    gap: 18px;
    padding: 16px 32px 20px;
  }

  .credit-notice h2 {
    padding: 0;
    border-right: 0;
    font-size: 24px;
  }

  .credit-notice__copy {
    width: 100%;
    justify-content: center;
    padding-top: 18px;
    border-top: 1px solid #777;
    font-size: 12px;
  }

  .site-footer,
  .site-footer__inner {
    min-height: 144px;
  }

  .site-footer__inner {
    align-items: flex-start;
    gap: 12px;
    padding: 20px 32px;
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
  }

  .site-footer__inner p:last-child {
    max-width: 320px;
  }

  .floating-actions {
    right: 0;
  }

}

/* S 版：767px 以下，使用手機版尺寸與排版。 */
@media (max-width: 767px) {
  .offer-section.offer-section--popular {
    gap: 0;
    padding: 0;
  }

  .offer-section--popular .offer-section__canvas {
    gap: 34.62px;
    padding: 43.2711px 0;
  }

  .site-header {
    height: 58px;
    padding: 0 16px;
  }

  .bank-logo {
    width: 126px;
    height: 30px;
  }

  .menu-toggle {
    width: 34px;
    height: 34px;
    padding: 3px;
  }

  .menu-toggle > span:not(.sr-only) {
    width: 28px;
    height: 2px;
  }

  .mobile-menu {
    top: 58px;
    max-height: calc(100dvh - 58px);
    padding-right: 16px;
    padding-left: 16px;
  }

  .mobile-menu__submenu {
    padding-left: 16px;
  }

  .mobile-menu__submenu a {
    font-size: 14px;
  }

  .offer-categories {
    width: 375px;
    max-width: 807.17px;
    height: 233.18px;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: flex-start;
    justify-content: center;
    padding: 22.4215px;
    gap: 26.91px;
  }

  .category {
    flex-basis: 60px;
    width: 60px;
    height: 84px;
    gap: 7px;
  }

  .category__icon {
    width: 56px;
    height: 56px;
  }

  .category__label {
    font-size: 12px;
    line-height: 1.5;
  }

  .offer-section {
    height: 540px;
    gap: 34.62px;
    padding: 43.2711px 0;
  }

  .offer-section--latest {
    border-radius: 0;
  }

  .section-title {
    width: 236.55px;
    height: 78.61px;
    min-height: 78.61px;
    padding: 0;
  }

  .section-title__image {
    width: 100%;
    height: 100%;
  }

  .offer-swiper {
    width: 100%;
    max-width: 100%;
    height: 276.09px;
    margin-top: 0;
  }

  .offer-swiper .swiper-slide {
    display: flex;
    width: 220.86px;
    height: 276.09px;
    align-items: center;
    justify-content: center;
  }

  .promo-card {
    display: flex;
    width: 252.41px;
    height: 276.09px;
    flex: 0 0 252.41px;
    margin-left: 0;
    flex-direction: column;
    align-items: center;
    padding: 7.81px;
    gap: 7.81px;
    border-radius: 19.52px;
    box-shadow: 0 0 18.0412px rgba(0, 0, 0, 0.1);
    transform: scale(1);
    transform-origin: center center;
  }

  .promo-card__image {
    flex: 0 0 auto;
    width: 236.79px;
    height: 155.39px;
    border-radius: 13.01px;
  }

  .promo-card__content {
    display: flex;
    flex: 1 1 auto;
    width: 236.79px;
    height: auto;
    flex-direction: column;
    gap: 2.6px;
    padding: 0 6.51px;
  }

  .promo-card__date {
    flex: 0 0 17.31px;
    height: 17.31px;
    font-size: 11.71px;
    line-height: 13.7px;
  }

  .promo-card__title {
    flex: 0 0 44.24px;
    height: 44.24px;
    min-height: 44.24px;
    margin-top: 0;
    font-size: 15.61px;
    line-height: 140%;
  }

  .promo-card__more {
    flex: 0 0 28.63px;
    height: 28.63px;
    margin-top: auto;
    font-size: 12.98px;
  }

  .promo-card__more span {
    margin-left: 7.81px;
    font-size: 14.42px;
  }

  .promo-card__index {
    width: 41.83px;
    height: 41.83px;
    border-width: 1.44px;
    font-size: 17.31px;
  }

  .offer-swiper .swiper-slide:not(.swiper-slide-active) .promo-card {
    transform: scale(0.75);
    opacity: 0.5;
  }

  .offer-swiper .swiper-slide-active .promo-card {
    transform: scale(1);
    transform-origin: center center;
    opacity: 1;
  }

  .promo-card:hover,
  .promo-card:focus-visible {
    transform: scale(1) translateY(-3px);
  }

  .carousel-controls {
    width: 187.51px;
    height: 21.64px;
    margin-top: 0;
  }

  .carousel-pagination {
    width: 92.31px;
    max-width: 158.66px;
    gap: 9.34px;
  }

  .carousel-pagination .swiper-pagination-bullet {
    width: 7.14px;
    height: 7.14px;
  }

  .carousel-pagination .swiper-pagination-bullet-active {
    width: 9.89px;
    height: 9.89px;
  }

  .carousel-button {
    width: 21.64px;
    height: 21.64px;
  }

  .carousel-button::before {
    width: 6px;
    height: 6px;
    border-width: 1.5px 0 0 1.5px;
  }

  .credit-notice {
    min-height: 204px;
  }

  .credit-notice__inner {
    width: 100%;
    min-height: 204px;
    gap: 18px;
    padding: 20px 40px 18px;
  }

  .credit-notice h2 {
    font-size: 22px;
  }

  .credit-notice__copy {
    flex-direction: column;
    gap: 0;
    padding-top: 20px;
    font-size: 10px;
    line-height: 1.8;
    text-align: center;
  }

  .site-footer,
  .site-footer__inner {
    min-height: 120px;
  }

  .site-footer__inner {
    gap: 5px;
    padding: 12px 20px;
    font-size: 11px;
    line-height: 1.6;
  }

  .floating-actions {
    right: 15px;
    width: 43px;
    gap: 10px;
  }

  .floating-action {
    width: 43px;
    height: 43px;
    font-size: 10px;
  }

}

/* M 版：768px～1023px，使用平板／中尺寸卡片與間距。 */
@media (min-width: 768px) and (max-width: 1023px) {
  .offer-section {
    height: 748.99px;
    padding: 60px 0;
    gap: 48px;
  }

  .offer-swiper {
    width: 768px;
    max-width: 100%;
    height: 387.42px;
  }

  .offer-swiper .swiper-wrapper {
    align-items: center;
  }

  .offer-swiper .swiper-slide {
    display: flex;
    width: 306.25px;
    height: 387.42px;
    align-items: center;
    justify-content: center;
  }

  .offer-swiper .swiper-slide:not(.swiper-slide-active) .promo-card {
    transform: scale(0.75);
    opacity: 0.5;
  }

  .offer-swiper .swiper-slide-active .promo-card {
    transform: scale(1);
    opacity: 1;
  }

  .carousel-controls {
    width: 352px;
    height: 36.57px;
  }

  .carousel-pagination {
    width: 220px;
    max-width: 220px;
    height: 36.57px;
    flex-wrap: wrap;
    align-content: center;
  }

  .promo-card {
    display: flex;
    flex: 0 0 350px;
    flex-direction: column;
    align-items: center;
    padding: 10.8247px;
    gap: 10.82px;
    border-radius: 27.0619px;
    box-shadow: 0 0 18.0412px rgba(0, 0, 0, 0.1);
  }

  .promo-card__image {
    flex: 0 0 auto;
    width: 328.35px;
    height: 215.48px;
    border-radius: 18.0412px;
  }

  .promo-card__content {
    display: flex;
    flex: 0 0 auto;
    width: 328.35px;
    height: 139.46px;
    flex-direction: column;
    gap: 3.61px;
    padding: 0 9.02062px;
  }

  .promo-card__date {
    flex: 0 0 24px;
    height: 24px;
    font-size: 16.2371px;
    line-height: 19px;
  }

  .promo-card__title {
    flex: 0 0 61.34px;
    height: 61.34px;
    min-height: 61.34px;
    margin-top: 0;
    font-size: 21.6495px;
    line-height: 140%;
  }

  .promo-card__more {
    flex: 0 0 39.69px;
    height: 39.69px;
    margin-top: 7.21px;
    font-size: 18px;
  }

  .promo-card__more span {
    margin-left: 10.82px;
  }
}

/* 使用者要求減少動態時，關閉平滑捲動與大部分轉場動畫。 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
