:root {
  /* 色彩、陰影與尺寸集中管理，方便整頁統一調整 */
  --blue: #087fc4;
  --sky: #eaf7ff;
  --navy: #16354f;
  --orange: #f36a35;
  --yellow: #ffe46d;
  --ink: #17324a;
  --muted: #667a8b;
  --line: #dceaf2;
  --white: #fff;
  --shadow: 0 24px 70px rgba(0, 73, 120, 0.15);
  --radius: 32px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

/* ===== 基礎樣式 ===== */
html {
  /* 錨點連結移動時使用平滑捲動 */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: #f7fbfe;
}

img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
}

.wrap {
  /* 內容區保持最大寬度，並在左右保留固定內距 */
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
}

/* ===== 導覽列排版 ===== */
.site-header {
  /* 固定在視窗頂端，捲動時仍可操作 */
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 91, 145, 0.08);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.nav {
  /* 左、中、右內容以 Flex 排列並垂直置中 */
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: block;
  font-size: 24px;
  font-weight: 1000;
  color: #ef2d35;
  letter-spacing: -1px;
}

.logo img {
  width: auto;
  height: 30px;
}

.nav-links {
  /* 導覽項目橫向排列 */
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 800;
  color: #455c6f;
}

.nav-links a:hover {
  color: var(--blue);
}

.download {
  /* 下載按鈕使用 inline-flex，確保文字水平與垂直置中 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f55343, #f68a36);
  font-weight: 900;
  color: #fff;
  box-shadow: 0 10px 24px rgba(243, 106, 53, 0.22);
}

/* ===== Banner：外框與背景 ===== */
/* Banner 背景圖片 */
#banner-top {
  background: url(../images/banner_bg.png) no-repeat center bottom;
  background-size: cover;
  margin-bottom: 30px;
  color: #fff;
}

/* Banner：左右欄排版 */
.hero-grid-banner {
  min-height: 33.28vw;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 53% 44%;
  align-items: start;
  justify-items: center;
}

/* 左欄：限制文字區寬度，避免文字延伸到人物區 */
.hero-grid-banner > .reveal {
  width: 100%;
  justify-self: center;
  padding-top: 80px;
}

/* Banner：文字層級與內容間距 */
.kicker {
  width: 221px;
  max-width: 100%;
  height: auto;
}

#banner-top h1 {
  margin: 18px 0 24px;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.07em;
  text-shadow: 0 4px 7px rgba(0, 65, 104, 0.7);
}

#banner-top h1 > img {
  width: auto;
  max-width: 100%;
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff)
    drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff);
}

#banner-top h1 small {
  display: block;
  font-size: 0.43em;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-top: 18px;
  color: var(--yellow);
  text-shadow: 0 4px 7px rgba(0, 65, 104, 0.7);
}

#banner-top p {
  max-width: 570px;
  font-size: 21px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 4px 7px rgba(0, 65, 104, 0.7);
}

/* 右欄：人物為配角，限制最大寬度並置於欄位中央、底部 */
.hero-figure {
  align-self: end;
  justify-self: center;
  width: 100%;
}

/* 人物圖片維持原始比例，避免變形 */
.hero-figure img {
  width: 100%;
  height: auto;
}

/* ===== 共用操作按鈕 ===== */
.actions {
  /* 操作按鈕橫向排列，空間不足時自動換行 */
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 23px;
  border-radius: 999px;
  font-weight: 900;
}

.btn.primary {
  background: var(--orange);
  color: #fff;
}

.btn.ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ===== 共用圖片裁切 ===== */
.photo-crop {
  /* 圖片裁切層鋪滿父層，方便控制 object-position */
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.photo-crop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  /* 圖片向上微移，修正裁切後的視覺焦點 */
  transform: translateY(-2%);
}

/* shared image treatment */
.image-box {
  /* 共用圖片外框：相對定位、圓角、陰影與溢出裁切 */
  position: relative;
  overflow: hidden;
  /*border-radius: var(--radius);
  box-shadow: var(--shadow);*/
}

.image-box .photo-crop img {
  height: 114%;
  /* 圖片略放大並上移，避免邊緣露出空白 */
  transform: translateY(-3%);
}

.image-box.bill img {
  object-position: 60% 57%;
}
.image-box.transit img {
  object-position: 61% 54%;
}
.image-box.korea img {
  object-position: 58% 56%;
}
.image-box.nfc img {
  object-position: 58% 54%;
}
.image-box.manage img {
  object-position: 58% 58%;
}
.image-box.offers img {
  object-position: 58% 58%;
}

/* 漸層 
.fade-left:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.93) 18%,
    rgba(255, 255, 255, 0.72) 34%,
    rgba(255, 255, 255, 0.2) 54%,
    rgba(255, 255, 255, 0) 68%
  );
}*/
/* ===== bento-section 卡片列表 ===== */
.bento-section {
  padding: 0 0 20px;
}
.bento .actions,
.bento-pair .actions {
  font-size: 14px;
  display: block;
  text-align: right;
}
.bento .actions .btn,
.bento-pair .actions .btn {
  min-height: 36px;
  padding: 0 15px;
}
.bento {
  /* 功能卡列表預設單欄，每張卡片各佔一整排 */
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(420px, auto);
  row-gap: 20px;
  column-gap: 0;
}
.bento-card {
  display: grid;
  grid-column: span 1;
  grid-template-columns: 42% 58%;
  grid-template-rows: 1fr;
  position: relative;
  min-height: 420px;
  background: #f1f2f4;
  overflow: hidden;
}
.bento-card .image-box {
  grid-column: 2;
  grid-row: 1;
  min-height: 420px;
  border-radius: 0;
  box-shadow: none;
}
.bento-card .content {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  z-index: 1;
  width: 100%;
  padding: 30px 70px;
}

/* 單數卡片：左側文字 35%，右側圖片 65% */
.bento > .bento-card:nth-child(odd) {
  grid-template-columns: 35% 65%;
}

/* 雙數卡片：左側圖片 65%，右側文字 35% */
.bento > .bento-card:nth-child(even) {
  grid-template-columns: 65% 35%;
}

/* 雙數卡片的圖片放左側，文字放右側 */
.bento > .bento-card:nth-child(even) .image-box {
  grid-column: 1;
}

/* 雙數卡片的文字放右側 */
.bento > .bento-card:nth-child(even) .content {
  grid-column: 2;
}

.content h3 {
  margin: 5px 0 10px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue);
  font-weight: 1000;
  font-size: 13px;
}
/* .icon-group */
.icon-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
}
.icon-group > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.icon-group .icon {
  display: block;
  width: 32px;
  height: 32px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
/* .icon-group icon
.icon-group .icon-1-01 {
  -webkit-mask-image: url("../images/icon_1_01.svg");
  mask-image: url("../images/icon_1_01.svg");
}
.icon-group .icon-1-02 {
  -webkit-mask-image: url("../images/icon_1_02.svg");
  mask-image: url("../images/icon_1_02.svg");
}
.icon-group .icon-1-03 {
  -webkit-mask-image: url("../images/icon_1_03.svg");
  mask-image: url("../images/icon_1_03.svg");
}
.icon-group .icon-1-04 {
  -webkit-mask-image: url("../images/icon_1_04.svg");
  mask-image: url("../images/icon_1_04.svg");
}
.icon-group .icon-1-05 {
  -webkit-mask-image: url("../images/icon_1_05.svg");
  mask-image: url("../images/icon_1_05.svg");
}
.icon-group .icon-2-01 {
  -webkit-mask-image: url("../images/icon_2_01.svg");
  mask-image: url("../images/icon_2_01.svg");
}
.icon-group .icon-2-02 {
  -webkit-mask-image: url("../images/icon_2_02.svg");
  mask-image: url("../images/icon_2_02.svg");
}
.icon-group .icon-2-03 {
  -webkit-mask-image: url("../images/icon_2_03.svg");
  mask-image: url("../images/icon_2_03.svg");
}
.icon-group .icon-3-01 {
  -webkit-mask-image: url("../images/icon_3_01.svg");
  mask-image: url("../images/icon_3_01.svg");
}
.icon-group .icon-3-02 {
  -webkit-mask-image: url("../images/icon_3_02.svg");
  mask-image: url("../images/icon_3_02.svg");
}
.icon-group .icon-3-03 {
  -webkit-mask-image: url("../images/icon_3_03.svg");
  mask-image: url("../images/icon_3_03.svg");
}
.icon-group .icon-4-01 {
  -webkit-mask-image: url("../images/icon_4_01.svg");
  mask-image: url("../images/icon_4_01.svg");
}
.icon-group .icon-4-02 {
  -webkit-mask-image: url("../images/icon_4_02.svg");
  mask-image: url("../images/icon_4_02.svg");
}
.icon-group .icon-4-03 {
  -webkit-mask-image: url("../images/icon_4_03.svg");
  mask-image: url("../images/icon_4_03.svg");
}
.icon-group .icon-4-04 {
  -webkit-mask-image: url("../images/icon_4_04.svg");
  mask-image: url("../images/icon_4_04.svg");
}
.icon-group .icon-5-01 {
  -webkit-mask-image: url("../images/icon_5_01.svg");
  mask-image: url("../images/icon_5_01.svg");
}
.icon-group .icon-5-02 {
  -webkit-mask-image: url("../images/icon_5_02.svg");
  mask-image: url("../images/icon_5_02.svg");
}
.icon-group .icon-5-03 {
  -webkit-mask-image: url("../images/icon_5_03.svg");
  mask-image: url("../images/icon_5_03.svg");
}
.icon-group .icon-5-04 {
  -webkit-mask-image: url("../images/icon_5_04.svg");
  mask-image: url("../images/icon_5_04.svg");
}
.icon-group .icon-6-01 {
  -webkit-mask-image: url("../images/icon_6_01.svg");
  mask-image: url("../images/icon_6_01.svg");
}
.icon-group .icon-6-02 {
  -webkit-mask-image: url("../images/icon_6_02.svg");
  mask-image: url("../images/icon_6_02.svg");
}
.icon-group .icon-6-03 {
  -webkit-mask-image: url("../images/icon_6_03.svg");
  mask-image: url("../images/icon_6_03.svg");
}
.icon-group .icon-6-04 {
  -webkit-mask-image: url("../images/icon_6_04.svg");
  mask-image: url("../images/icon_6_04.svg");
}*/
/* .icon-group icon */
.icon-group .icon-1-01 {
  background-image: url("../images/icon_1_01.svg");
}
.icon-group .icon-1-02 {
  background-image: url("../images/icon_1_02.svg");
}
.icon-group .icon-1-03 {
  background-image: url("../images/icon_1_03.svg");
}
.icon-group .icon-1-04 {
  background-image: url("../images/icon_1_04.svg");
}
.icon-group .icon-1-05 {
  background-image: url("../images/icon_1_05.svg");
}
.icon-group .icon-2-01 {
  background-image: url("../images/icon_2_01.svg");
}
.icon-group .icon-2-02 {
  background-image: url("../images/icon_2_02.svg");
}
.icon-group .icon-2-03 {
  background-image: url("../images/icon_2_03.svg");
}
.icon-group .icon-3-01 {
  background-image: url("../images/icon_3_01.svg");
}
.icon-group .icon-3-02 {
  background-image: url("../images/icon_3_02.svg");
}
.icon-group .icon-3-03 {
  background-image: url("../images/icon_3_03.svg");
}
.icon-group .icon-4-01 {
  background-image: url("../images/icon_4_01.svg");
}
.icon-group .icon-4-02 {
  background-image: url("../images/icon_4_02.svg");
}
.icon-group .icon-4-03 {
  background-image: url("../images/icon_4_03.svg");
}
.icon-group .icon-4-04 {
  background-image: url("../images/icon_4_04.svg");
}
.icon-group .icon-5-01 {
  background-image: url("../images/icon_5_01.svg");
}
.icon-group .icon-5-02 {
  background-image: url("../images/icon_5_02.svg");
}
.icon-group .icon-5-03 {
  background-image: url("../images/icon_5_03.svg");
}
.icon-group .icon-5-04 {
  background-image: url("../images/icon_5_04.svg");
}
.icon-group .icon-6-01 {
  background-image: url("../images/icon_6_01.svg");
}
.icon-group .icon-6-02 {
  background-image: url("../images/icon_6_02.svg");
}
.icon-group .icon-6-03 {
  background-image: url("../images/icon_6_03.svg");
}
.icon-group .icon-6-04 {
  background-image: url("../images/icon_6_04.svg");
}
.icon-group p {
  margin: 8px 0 0;
  font-size: 13px;
  text-align: center;
}

/* ===== bento-pair 最後兩張卡片 ===== */
.bento-pair {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.bento-pair > .b4,
.bento-pair > .b5,
.bento-pair > .b6 {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #f1f2f4;
}

.bento-pair > .b4,
.bento-pair > .b5 {
  flex: 0 0 50%;
  width: 50%;
}

.bento-pair > .b6 {
  width: 100%;
}

.bento-pair > .b4 > .image-box,
.bento-pair > .b5 > .image-box,
.bento-pair > .b6 > .image-box {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bento-pair > .b4 > .content,
.bento-pair > .b5 > .content,
.bento-pair > .b6 > .content {
  position: absolute;
  z-index: 1;
  padding: 24px;
  text-align: left;
}

.bento-pair > .b4 > .content,
.bento-pair > .b5 > .content {
  top: 50%;
  transform: translateY(-50%);
  left: 10%;
}

.bento-pair > .b6 > .content {
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
}

.bento-pair > .b4 > .image-box .photo-crop,
.bento-pair > .b5 > .image-box .photo-crop,
.bento-pair > .b6 > .image-box .photo-crop,
.bento-pair > .b4 > .image-box .photo-crop img,
.bento-pair > .b5 > .image-box .photo-crop img,
.bento-pair > .b6 > .image-box .photo-crop img {
  width: 100%;
  height: 100%;
}

.bento-pair > .b4 > .image-box .photo-crop img,
.bento-pair > .b5 > .image-box .photo-crop img {
  object-fit: cover;
  transform: none;
}

.bento-pair > .b6 > .image-box .photo-crop img {
  object-fit: cover;
  object-position: right center;
  transform: none;
}

.bento-pair > .b6 > .image-box::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.95) 20%,
    rgba(255, 255, 255, 0.72) 40%,
    rgba(255, 255, 255, 0) 60%
  );
}

/* ===== 下載區 ===== */
.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 2fr) auto auto;
  align-items: center;
  gap: 40px;
  margin-top: 18px;
  background: linear-gradient(135deg, #eaf8ff, #e0eef9);
  padding: 48px 90px;
  color: #0e57a7;
}

.download-panel .actions {
  justify-content: flex-end;
  margin-top: 0;
  flex-wrap: nowrap;
}

.download-panel .actions img {
  width: 200px;
  max-width: 100%;
}

.download-panel h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.05em;
}
.download-logo {
  width: 280px;
  max-width: 100%;
  height: auto;
}
.download-sub {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.qr {
  width: 160px;
  border-radius: 15px;
  text-align: center;
}

.qr img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 12px 15px rgba(0, 70, 110, 0.15);
}

.qr p {
  margin: 15px 0 0;
  color: #0e57a7;
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  font-size: 13px;
  color: #748493;
  background: #fff;
}

.footer {
  /* Footer 內容左右分布，窄螢幕時允許換行 */
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--blue);
}

/* ===== 動畫與互動 ===== */
.reveal {
  /* 初始狀態：透明且向下偏移，等待 JS 加上 .show */
  opacity: 0;
  transform: translateY(22px);
  /* opacity 與 transform 同步，形成淡入上移效果 */
  transition: 0.65s ease;
}

.reveal.show {
  /* .show 由 JS 觸發，恢復正常位置並顯示內容 */
  opacity: 1;
  transform: none;
}

/* ===== 響應式排版 ===== */

/* 避免長文字、網址或按鈕內容撐破版面 */
.content,
.download-panel,
.footer,
#banner-top p {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* 大型平板 / 小型筆電 */
@media (max-width: 1100px) {
  .wrap {
    width: min(var(--max), calc(100% - 32px));
  }

  .hero-grid-banner {
    grid-template-columns: minmax(0, 52%) minmax(0, 48%);
    max-width: 1000px;
    min-height: auto;
  }

  .hero-grid-banner > .reveal {
    padding-top: 56px;
    padding-bottom: 48px;
  }

  #banner-top h1 {
    font-size: clamp(48px, 6vw, 76px);
  }

  #banner-top p {
    font-size: 18px;
  }

  .bento-card .content {
    padding: 28px 40px;
  }

  .content h3 {
    font-size: 28px;
  }

  .icon-group {
    margin-top: 34px;
    gap: 10px;
  }

  .download-panel {
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, auto) 130px;
    gap: 24px;
    padding: 42px 48px;
  }

  .download-panel .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .download-panel .actions img {
    width: 180px;
  }

  .qr {
    width: 130px;
  }
}

/* 平板：Banner 改上下排列；一般卡片改為上圖下文 */
@media (max-width: 900px) {
  .nav {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  #banner-top {
    background-position: center bottom;
    margin-bottom: 24px;
  }

  .hero-grid-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-grid-banner > .reveal {
    width: min(100%, 680px);
    padding: 48px 16px 12px;
  }

  .kicker {
    width: min(190px, 46vw);
    margin: 0 auto;
  }

  #banner-top h1 {
    margin: 14px 0 18px;
    font-size: clamp(46px, 9vw, 70px);
  }

  #banner-top h1 > img {
    margin: 0 auto;
    max-width: 430px;
  }

  #banner-top h1 small {
    margin-top: 14px;
  }

  #banner-top p {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
  }

  .hero-grid-banner .actions {
    justify-content: center;
    margin-top: 22px;
  }

  .hero-figure {
    width: min(78%, 520px);
    margin: 0 auto;
  }

  .bento {
    grid-auto-rows: auto;
  }

  /* 01~03：一律上圖下文，避免左右欄在平板過窄 */
  .bento > .bento-card,
  .bento > .bento-card:nth-child(odd),
  .bento > .bento-card:nth-child(even) {
    grid-template-columns: 1fr;
    grid-template-rows: clamp(280px, 48vw, 380px) auto;
    min-height: 0;
  }

  .bento > .bento-card .image-box,
  .bento > .bento-card:nth-child(even) .image-box {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
  }

  .bento > .bento-card .content,
  .bento > .bento-card:nth-child(even) .content {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    padding: 30px 34px 34px;
  }

  /* 04~05：由左右兩欄改成單欄 */
  .bento-pair {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .bento-pair > .b4,
  .bento-pair > .b5,
  .bento-pair > .b6 {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: clamp(280px, 48vw, 380px) auto;
    flex: none;
    width: 100%;
    min-height: 0;
  }

  /* 關鍵：解除桌機版 absolute 疊層，RWD 才不會文字互相覆蓋 */
  .bento-pair > .b4 > .image-box,
  .bento-pair > .b5 > .image-box,
  .bento-pair > .b6 > .image-box {
    position: relative;
    inset: auto;
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
  }

  .bento-pair > .b4 > .content,
  .bento-pair > .b5 > .content,
  .bento-pair > .b6 > .content {
    position: relative;
    inset: auto;
    top: auto;
    left: auto;
    transform: none;
    grid-column: 1;
    grid-row: 2;
    padding: 30px 34px 34px;
  }

  .bento-pair > .b6 > .image-box::after {
    display: none;
  }

  .bento-pair > .b6 > .image-box .photo-crop img {
    object-position: center center;
  }

  .icon-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    align-items: start;
    justify-content: initial;
    gap: 18px 10px;
    margin-top: 28px;
  }

  .download-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    padding: 36px 40px;
    text-align: left;
  }

  .download-panel > div:first-child {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .download-panel .actions {
    grid-column: 2;
    grid-row: 1;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0;
  }

  .download-panel .actions img {
    width: 155px;
  }

  .download-panel .qr {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    width: 120px;
  }

  .download-sub {
    font-size: 28px;
  }
}

/* 大手機 / 小平板 */
@media (max-width: 650px) {
  .wrap {
    width: calc(100% - 24px);
  }

  .site-header {
    backdrop-filter: blur(10px);
  }

  .nav {
    min-height: 58px;
    gap: 12px;
  }

  .logo img {
    height: 26px;
  }

  .site-header .download {
    display: inline-flex;
    min-height: 38px;
    padding: 0 16px;
    font-size: 14px;
  }

  .hero-grid-banner > .reveal {
    padding: 36px 8px 8px;
  }

  .kicker {
    width: min(160px, 45vw);
  }

  #banner-top h1 {
    font-size: clamp(38px, 12vw, 56px);
    line-height: 1;
  }

  #banner-top h1 > img {
    max-width: min(82vw, 330px);
  }

  #banner-top h1 small {
    font-size: 0.48em;
    line-height: 1.2;
  }

  #banner-top p {
    margin-top: 0;
    font-size: 16px;
    line-height: 1.75;
  }

  .hero-grid-banner .actions {
    margin-top: 18px;
  }

  .btn {
    min-height: 44px;
    padding: 0 20px;
    font-size: 15px;
  }

  .hero-figure {
    width: min(92%, 440px);
  }

  .bento-section {
    padding-bottom: 12px;
  }

  .bento,
  .bento-pair {
    gap: 12px;
    row-gap: 12px;
  }

  .bento > .bento-card,
  .bento > .bento-card:nth-child(odd),
  .bento > .bento-card:nth-child(even),
  .bento-pair > .b4,
  .bento-pair > .b5,
  .bento-pair > .b6 {
    grid-template-rows: clamp(220px, 64vw, 300px) auto;
  }

  .bento > .bento-card .content,
  .bento > .bento-card:nth-child(even) .content,
  .bento-pair > .b4 > .content,
  .bento-pair > .b5 > .content,
  .bento-pair > .b6 > .content {
    padding: 24px 20px 26px;
  }

  .content h3 {
    margin-top: 8px;
    font-size: clamp(23px, 7vw, 28px);
    line-height: 1.25;
  }

  .content > p {
    margin: 8px 0 0;
    font-size: 15px;
  }

  .num {
    width: 34px;
    height: 34px;
  }

  .icon-group {
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: 16px 8px;
    margin-top: 24px;
  }

  .icon-group .icon {
    width: 30px;
    height: 30px;
  }

  .icon-group p {
    font-size: 12px;
    line-height: 1.35;
  }

  .download-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px 20px;
    text-align: center;
  }

  .download-panel > div:first-child,
  .download-panel .actions,
  .download-panel .qr {
    grid-column: 1;
    grid-row: auto;
  }

  .download-panel > div:first-child {
    justify-self: center;
  }

  .download-panel .actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .download-panel .actions a {
    flex: 0 1 170px;
  }

  .download-panel .actions img {
    width: 100%;
  }

  .download-panel h2 {
    font-size: 26px;
  }

  .download-logo {
    width: min(240px, 70vw);
    margin-left: auto;
    margin-right: auto;
  }

  .download-sub {
    font-size: 24px;
  }

  /* 手機瀏覽可直接點商店下載，QR Code 非必要，避免佔用過多垂直空間 */
  .download-panel .qr {
    display: none;
  }

  footer {
    padding: 24px 0;
    text-align: center;
  }

  .footer {
    justify-content: center;
  }

  .footer-links {
    width: 100%;
    justify-content: center;
    gap: 10px 16px;
  }
}

/* 小尺寸手機 */
@media (max-width: 390px) {
  .wrap {
    width: calc(100% - 20px);
  }

  .site-header .download {
    padding: 0 13px;
    font-size: 13px;
  }

  .logo img {
    height: 24px;
  }

  #banner-top p {
    font-size: 15px;
  }

  .bento > .bento-card .content,
  .bento > .bento-card:nth-child(even) .content,
  .bento-pair > .b4 > .content,
  .bento-pair > .b5 > .content,
  .bento-pair > .b6 > .content {
    padding-left: 17px;
    padding-right: 17px;
  }

  .icon-group {
    grid-template-columns: repeat(3, 1fr);
  }

  .download-panel .actions a {
    flex-basis: min(100%, 160px);
  }
}

/* 尊重系統的減少動畫設定 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.show {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
