@charset "utf-8";
@import url("https://fonts.googleapis.com/css2?family=Albert+Sans:wght@700;900&display=swap");

/* =========================================
   目錄 (Table of Contents)
   1. 變數與基礎設定 (Variables & Base)
   2. 全站通用元件 (Header, Footer, Warning, Titles)
   3. 主要區塊樣式 (Sections A-E Desktop)
   4. 功能性組件 (Slider, Steps, Promo Cards)
   5. RWD 響應式設定 (Media Queries)
   ========================================= */

/* =========================================
   1. 變數與基礎設定 (Variables & Base)
   ========================================= */
:root {
  --red: #d70c18;
  --red-hover: #f20d1b;
  --black: #1d1e1d;
  --gray: #727171;
  --main-red: #b71c1c;
  --guide-text: #333333;
}

* {
  scroll-behavior: smooth;
  box-sizing: border-box;
  /* 建議加上這個，避免 padding 撐大寬度 */
}

body {
  font-family: "Microsoft JhengHei", "Albert Sans", sans-serif;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

p {
  margin: 0;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* 顯示控制 helper */
.mobile-view {
  display: none !important;
}

.desktop-view {
  display: block !important;
}

/* =========================================
   2. 全站通用元件 (Header, Footer, Warning, Titles)
   ========================================= */

/* --- Header --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  height: 72px;
  background-color: var(--red);
  padding: 20px 40px;
  display: flex;
  align-items: center;
}

.logo:hover {
  text-decoration: none;
}

.logo img {
  width: auto;
  height: 32px;
}

/* --- Footer --- */
footer {
  background-image: linear-gradient(90deg, var(--red) 50%, #dedede 51%);
}

.footer-copyright {
  display: flex;
  height: 56px;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  height: 56px;
  padding-left: 30px;
  width: 312px;
  background-color: #dedede;
}

.copyright {
  background-color: var(--red);
  font-size: 12px;
  font-family: "Microsoft JhengHei";
  font-weight: 500;
  line-height: 56px;
  padding-left: 30px;
  flex: 1;
  display: inline-block;
  color: #fff;
}

/* --- Warning Section (警語) --- */
.warning {
  background: linear-gradient(90deg, #ebebeb 0%, #fbfbfc 100%);
}

.w-box {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  font-family: "Albert Sans", sans-serif;
  gap: 24px;
  color: var(--black);
}

.w-left {
  font-size: 32px;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.1rem;
}

.w-right {
  flex: 1;
  font-size: 16px;
  font-family: "Microsoft JhengHei", sans-serif;
  font-weight: 700;
}

/* --- 通用標題樣式 --- */
.tit {
  font-size: 32px;
  font-family: "Albert Sans", sans-serif;
  color: var(--black);
  text-align: center;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0;
}

.tit span {
  color: var(--main-red);
}

.decorated-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 28px;
  font-weight: 900;
  color: #a62525;
  font-family: "Microsoft JhengHei", sans-serif;
  letter-spacing: 0.05em;
  margin-top: 30px;
  margin-bottom: 64px;
}

.decorated-title::before,
.decorated-title::after {
  content: "";
  display: block;
  width: 30px;
  height: 0;
  border-top: 4px dotted #a62525;
  margin-top: 6px;
}

.decorated-title::before {
  transform: rotate(45deg);
}

.decorated-title::after {
  transform: rotate(-45deg);
}

/* =========================================
   3. 主要區塊樣式 (Sections A-E Desktop)
   ========================================= */

/* --- Section A (Banner) --- */
.sectionA {
  min-height: 100dvh;
  background: url("../images/banner-bg.jpg"),
    linear-gradient(252.69deg, #ffffff 0%, #e1d7b4 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 72px 1rem 0;
  display: flex;
  align-items: center;
}

.sectionA > .container {
  height: auto;
}

.banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.banner-left img {
  max-width: 380px;
}

.banner-left h2 {
  color: var(--main-red);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  line-height: 1;
  font-family: "Albert Sans", sans-serif;
}

.banner-right {
  max-width: 730px;
}

.banner-right-desc {
  margin-top: 15%;
  font-family: "Albert Sans", sans-serif;
  color: var(--black);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0;
}

.banner-right-desc h2 {
  font-size: 32px;
  font-weight: 900;
  margin-top: 24px;
  margin-bottom: 40px;
}

.banner-right-desc b {
  color: var(--main-red);
}

.banner-right-desc h2 + div {
  font-size: 24px;
  margin-bottom: 24px;
}

.banner-title-image {
  max-width: 15vw;
}

.banner-right-desc span {
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
}

.banner-right-desc span b {
  color: var(--main-red);
  font-size: 40px;
}

.marquee-content:last-of-type {
  display: none;
}

/* --- Section B (Features) --- */
.sectionB {
  padding: 80px 1rem 80px;
  background: #fdf6eb;
}

.sectionB .section-header {
  text-align: center;
  margin-bottom: 40px;
}

.sectionB .content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.sectionB .content-wrapper .card-block:first-of-type {
  margin-top: 15%;
}

.sectionB .content-wrapper .card-block:last-of-type {
  margin-bottom: 15%;
}

.sectionB .image-block {
  flex: 0 0 auto;
  width: 35%;
  max-width: 400px;
  display: flex;
  justify-content: center;
}

/* --- Section C (Guide Steps) --- */
.sectionC {
  position: relative;
}

.sectionC .tit {
  margin-bottom: 64px;
}

.sectionC-container {
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}

.sectionC-container::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #fdf6eb;
  z-index: -2;
  top: 0;
  left: 0;
}

.sectionC-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url("../images/sectionC-bg.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 150px 0 0 0;
}

/* --- Section D (Promo) --- */
.sectionD {
  padding: 80px 1rem 120px;
  background: #fdf6eb;
}

/* --- Section E (Recommend) --- */
.sectionE {
  position: relative;
}

.sectionE-container {
  position: relative;
  overflow: hidden;
  padding: 64px 1rem;
}

.sectionE-container::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #fdf6eb;
  z-index: -2;
  top: 0;
  left: 0;
}

.sectionE-container::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #f5f4f4 0%, #ebebeb 100%);
  z-index: -1;
  top: 0;
  left: 0;
  border-radius: 150px 0 0 0;
}

/* =========================================
   4. 功能性組件 (Slider, Steps, Promo Cards)
   ========================================= */

/* --- Card Block (Section B 共用) --- */
.card-block {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.subtitle-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.new-tag {
  background-color: var(--main-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.highlight-title {
  color: var(--main-red);
  font-weight: 900;
  font-size: 16px;
  font-family: "Albert Sans", sans-serif;
}

.block-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 16px;
}

.block-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 16px;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

/* --- Step Guide (Section C) --- */
.guide-container-wrapper-container {
  background-repeat: no-repeat;
  background-size: contain;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 64px;
}

.guide-container-wrapper-container.right {
  background-position: right;
  background-image: url("../images/sectionC-line-right.png");
}

.guide-container-wrapper-container.left {
  background-position: left;
  background-image: url("../images/sectionC-line-left.png");
}

.guide-container-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1040px;
}

/* 2. 手機圖片區塊：佔據 50% 寬度 */
.phone-img-wrapper {
  flex: 1;
  /* 自動分配空間 */
  width: 50%;
  /* 明確設定寬度 */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* 背景線條設定 */
/* .phone-img-wrapper.right {
  background-image: url("../images/sectionC-line-right.png");
  background-repeat: no-repeat;
  background-position: right;
  background-size: contain;
}

.phone-img-wrapper.left {
  background-image: url("../images/sectionC-line-left.png");
  background-repeat: no-repeat;
  background-position: left;
  background-size: contain;
} */

.phone-img {
  width: 250px;
  max-width: 100%;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: opacity 0.6s ease-in-out;
}

/* 3. 文字步驟區塊：佔據 50% 寬度 */
.guide-container {
  flex: 1;
  /* 自動分配空間 */
  width: 50%;
  /* 明確設定寬度 */
  padding: 24px;
  border-radius: 12px;
  max-width: 500px;
  /* 限制文字區塊最大寬度 */
  font-family: "Noto Sans TC", sans-serif;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* 移除原本容易跑版的 margin: 20%，改用 padding 或 auto margin 微調 */
.guide-container.left {
  margin-right: 150px;
}

.guide-container.right {
  margin-right: 150px;
}

.guide-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 20px;
  color: var(--main-red);
  font-weight: bold;
  font-size: 20px;
  gap: 8px;
}

.header-style-right-border {
  border-right: 5px solid var(--main-red);
  padding-right: 12px;
}

.header-style-left-border {
  justify-content: flex-start;
  border-left: 5px solid var(--main-red);
  padding-left: 12px;
}

.guide-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-card {
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.step-card:hover {
  background-color: #fffcfc;
}

.step-card.active .step-content {
  color: var(--main-red);
}

.step-card::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.step-card.active::before {
  opacity: 1;
}

.step-list.arrow-pointing-left .step-card.active::before {
  left: -18px;
  border-right: 12px solid var(--main-red);
  transform: translateX(-30%);
}

.step-list.arrow-pointing-right .step-card.active::before {
  right: -18px;
  border-left: 12px solid var(--main-red);
  transform: translateX(60%);
}

.step-list.arrow-pointing-left .step-card.active::before {
  left: -18px;
  border-right: 12px solid var(--main-red);
  transform: translateX(-30%);
}

.step-list.arrow-pointing-right .step-card.active::before {
  right: -18px;
  border-left: 12px solid var(--main-red);
  transform: translateX(60%);
}

.step-num {
  width: 32px;
  height: 32px;
  background-color: var(--main-red);
  color: white;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
}

.step-content {
  color: var(--guide-text);
  font-size: 16px;
  line-height: 1.5;
  font-weight: bold;
}

.highlight-text {
  color: var(--main-red);
}

/* --- Promo Card (Section D) --- */
.promo-card-container {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.promo-card {
  position: relative;
  width: 440px;
  background-color: #fdf6eb;
  border-radius: 30px;
  padding: 40px 30px 24px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  flex-shrink: 0;
}

.deco-line-h,
.deco-line-v {
  position: absolute;
  background-color: transparent;
  pointer-events: none;
}

.deco-line-h {
  top: 50px;
  left: 0;
  width: 100%;
  height: 6px;
  border-top: 1px solid #c95e5e;
  border-bottom: 2px solid #c95e5e;
  opacity: 0.8;
}

.deco-line-v {
  left: 40px;
  top: 0;
  height: 100%;
  width: 6px;
  border-left: 1px solid #c95e5e;
  border-right: 2px solid #c95e5e;
  opacity: 0.8;
}

.promo-card-body {
  position: relative;
  z-index: 2;
  margin-top: 30px;
  padding-left: 30px;
}

.promo-card-tag {
  color: #a62525;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.promo-card-title {
  color: #1d1e1d;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
  line-height: 1.4;
}

.promo-card-offer {
  color: #1d1e1d;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.promo-card-offer span {
  color: #a62525;
  font-size: 36px;
  font-family: "Albert Sans", sans-serif;
  line-height: 1;
  margin: 0 4px;
}

.promo-card-offer small {
  font-size: 14px;
  color: #727171;
  font-weight: 400;
  margin-left: 4px;
}

.promo-card-footer {
  text-align: right;
  font-size: 16px;
  font-weight: 700;
  color: #1d1e1d;
  cursor: pointer;
  margin-top: 16px;
  transition: 0.3s;
}

.promo-card-footer:hover {
  color: #a62525;
}

/* --- Swiper Slider Component --- */
.swiper-component-slider {
  max-width: 1200px;
  position: relative;
  margin: 24px auto 0;
}

.swiper-component-slider-content {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 40px;
  position: relative;
  overflow: hidden;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateY(20px) translateX(-50%);
  align-items: center;
  z-index: 20;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #1d1e1d;
  opacity: 0.3;
  transition: 0.3s;
  cursor: pointer;
}

.dot.active {
  opacity: 1;
  width: 10px;
  height: 10px;
}

.swiper-component-slider-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.swiper-component-slider-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding: 40px;
  min-width: 100%;
  min-height: 300px;
}

.btn-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0px 0px 20px 0px #00000040;
  cursor: pointer;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.3s;
  display: flex;
  gap: 24px;
  align-items: center;
  z-index: 10;
}

.slider-btn:hover {
  opacity: 1;
}

.prev-btn {
  left: -150px;
}

.next-btn {
  right: -150px;
}

/* =========================================
   5. RWD 響應式設定 (Media Queries)
   ========================================= */

/* --- Desktop Specific (min-width: 1025px) --- */
@media (min-width: 1025px) {
  .sectionA > .container {
    height: calc(100dvh - 72px);
  }
  .swiper-component-slider {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
  }

  .swiper-component-slider-content {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    overflow: visible;
    background: transparent;
  }

  .swiper-component-slider-inner {
    gap: 0;
  }

  .swiper-component-slider-item {
    min-width: 100%;
    padding: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
    box-sizing: border-box;
    filter: brightness(0.4);
  }

  .swiper-component-slider-item.active {
    filter: none;
    opacity: 1;
    transform: scale(1);
    z-index: 2;
  }

  .swiper-component-slider-item img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  .slider-btn.prev-btn {
    left: 14%;
  }

  .slider-btn.next-btn {
    right: 14%;
  }
}

/* Section F */
.sectionF {
  padding: 80px 1rem 80px;
  background-image: url("../images/sectionE-bg.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.sectionF .container {
  padding: 104px 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 800px;
  gap: 40px;
  padding: 80px 40px;
}

.sectionF .container > div {
  flex: 1;
  min-width: 0;
}

.sectionF .container h2 {
  margin-bottom: 64px;
}
@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 30px #a3ee0080;
  }
  50% {
    box-shadow: 0 0 20px #a3ee0030;
  }
}

.sectionF .container img {
  width: 30%;
  max-width: 177px;
  border-radius: 14px;
  box-shadow: 0 0 30px #a3ee0080;
  animation: glow 1.5s ease-in-out infinite;
}

/* =========================================
   Modal 彈窗樣式
   ========================================= */

/* 1. 遮罩層 (背景變暗) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  /* 半透明黑 */
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;

  /* 預設隱藏 (搭配 JS 切換 opacity 達成淡入淡出) */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 當 Modal 被啟動時的 class */
.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* 2. 彈窗本體 */
.modal-container {
  background: #fff;
  width: 90%;
  max-width: 800px;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  /* 避免超過手機螢幕高度 */
  overflow: hidden;
  /* 讓圓角生效 */
}

/* 關閉按鈕 (X) */
.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  color: #fff;
  /* 因為標題背景可能是白色，我們先設為深色，或依設計調整 */
  color: #888;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  transition: 0.2s;
}

.modal-close-btn:hover {
  color: var(--main-red);
}

/* 3. 標頭區域 */
.modal-header {
  padding: 30px 0 0 0;
  text-align: center;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
}

.modal-header h3 {
  font-size: 32px;
  font-weight: 900;
  color: #1d1e1d;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

/* 紅色 Banner */
.modal-banner {
  background-color: #b71c1c;
  /* 台新紅 */
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 12px 20px;
  width: 100%;
  line-height: 1.4;
}

/* 4. 內容捲動區域 (Max 600px 邏輯) */
.modal-scroll-area {
  padding: 30px 40px 40px;
  overflow-y: auto;
  /* 垂直捲動 */
  max-height: 600px;
  /* 依照設計稿限制高度 */
}

/* 橘色左邊框線裝飾與文字設定 */
.modal-content-inner {
  padding-left: 24px;
  text-align: left;
  color: #333;
  font-size: 16px;
  line-height: 1.8;
}

.modal-content-inner strong {
  font-weight: 900;
  color: #000;
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
  margin-top: 20px;
}

.modal-content-inner strong:first-child {
  margin-top: 0;
}

.modal-content-inner ol {
  padding-left: 20px;
  margin: 0;
}

.modal-content-inner li {
  margin-bottom: 8px;
}

/* 手機版調整 */
@media (max-width: 768px) {
  .modal-container {
    width: 95%;
  }

  .modal-banner {
    font-size: 15px;
    padding: 10px 15px;
  }

  .modal-scroll-area {
    padding: 20px 20px 30px;
  }

  .modal-content-inner {
    padding-left: 15px;
  }
}

/* --- Mobile Specific (max-width: 1024px) --- */
@media (max-width: 1024px) {
  /* Helper Classes */
  .mobile-view {
    display: block !important;
  }

  .desktop-view {
    display: none !important;
  }

  /* Header & Footer */
  header {
    padding: 20px 15px;
    height: 64px;
  }

  header img {
    height: 24px;
  }

  .footer-copyright {
    height: auto;
    flex-direction: column;
  }

  .copyright {
    padding: 12px 15px;
    text-align: center;
    line-height: normal;
  }

  .copyright .ml-2 {
    display: none;
  }

  .footer-logo {
    height: auto;
    padding: 21px 15px;
    width: auto;
    justify-content: center;
  }

  /* Warning */
  .w-box {
    display: block;
    padding: 24px 15px;
  }

  .w-left {
    width: 100%;
    font-size: 24px;
    text-align: left;
    margin-bottom: 40px;
  }

  .w-right {
    width: 100%;
    font-size: 16px;
  }

  /* Titles */
  .tit {
    font-size: 24px;
  }

  .decorated-title {
    font-size: 20px;
  }

  /* Section A (Banner) */
  .sectionA {
    min-height: auto;
    padding: 64px 0px 0px 0px;
    background-position: 50% 0;
  }

  .banner {
    flex-direction: column;
    align-items: center;
    padding: 0px 15px;
    overflow: hidden;
  }

  .banner-title-image {
    max-width: 50vw;
  }

  .banner-right {
    max-width: -webkit-fill-available;
  }

  .marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
  }

  .marquee-track {
    display: flex;
    width: fit-content;
    gap: 0;
    animation: scroll-right 13s linear infinite;
  }

  .marquee-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 40px;
    padding-right: 40px;
    margin-bottom: -108px;
  }

  /* 圖片大小設定 */
  .marquee-content img {
    max-width: 150vw;
    display: block;
  }

  @keyframes scroll-right {
    0% {
      transform: translateX(0%);
    }

    100% {
      transform: translateX(-50%);
    }
  }

  /* Section B (Features) - 已轉為標準 CSS 寫法 */
  .sectionB {
    padding: 64px 15px 108px;
  }

  .sectionB .content-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  .sectionB .card-block {
    max-width: 100%;
    padding: 24px;
    text-align: left;
    flex-direction: column-reverse;
  }

  .sectionB .image-block {
    width: 80%;
    max-width: 300px;
    margin: 10px 0;
    order: 2;
    /* 順序：中 */
  }

  .sectionB .qr-code-info {
    order: 1;
  }

  /* 順序：上 */
  .sectionB .credit-card-info {
    order: 3;
  }

  /* 順序：下 */

  /* Section C (Guide Steps) */

  .sectionC-container {
    padding: 104px 15px 64px;
  }

  .sectionC .sectionC-container {
    padding-left: 0;
    padding-right: 0;
  }

  .sectionC .sectionC-container::after {
    border-radius: 0;
  }

  /* Section C Mobile Slider Adjustments */
  .sectionC .swiper-component-slider-content {
    background-color: transparent;
  }

  .sectionC .swiper-component-slider-inner {
    padding: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    text-align: center;
  }

  .sectionC .swiper-component-slider-inner.left {
    background-image: url("../images/sectionC-line-right.png");
  }

  .sectionC .swiper-component-slider-inner.right {
    background-image: url("../images/sectionC-line-left.png");
  }

  .sectionC .swiper-component-slider-item img {
    width: 210px;
  }

  .sectionC .next-btn {
    top: 55%;
    right: 5%;
  }

  .sectionC .prev-btn {
    top: 55%;
    left: 5%;
  }

  .sectionC .header-style-left-border {
    border: 0;
  }

  .sectionC .step-card {
    margin-bottom: 40px;
  }

  .sectionC .step-card::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid var(--main-red);
    z-index: 2;
  }

  .step-content {
    text-align: left;
  }

  /* Section D (Promo) */
  .sectionD {
    padding: 64px 15px 80px;
  }

  .promo-card-container {
    flex-direction: column;
  }

  .guide-container-wrapper {
    flex-direction: column;
  }

  /* Section E (Recommend) */
  .sectionE-container {
    padding-bottom: 0;
    padding-inline: 0;
  }

  .sectionE-container::after {
    border-radius: 0;
  }

  /* General Slider Mobile */
  .swiper-component-slider {
    margin: 24px auto 0;
  }

  .slider-btn {
    opacity: 1;
    top: 88%;
  }

  .prev-btn {
    left: 16px;
  }

  .next-btn {
    right: 16px;
  }

  .btn-icon {
    width: 40px;
    height: 40px;
  }

  .dots {
    bottom: 46px;
  }

  .swiper-component-slider-item {
    flex-direction: column;
    gap: 0;
    padding: 24px 15px 64px;
    min-height: auto;
  }

  .sectionF .container {
    padding-right: 40px;
    flex-direction: column;
  }

  .sectionF .container img {
    width: 100%;
  }
}

/* Extra Small Devices */
@media (max-width: 440px) {
  .promo-card {
    width: 100%;
  }
}
