/*
 * CatPay 續期收款介紹頁 - 主樣式表
 * ─────────────────────────────────
 * 色票：
 *   品牌綠  #008982   （按鈕、邊框、強調色）
 *   亮綠    #00b8ae   （hover 邊框）
 *   黃      #fad553   （Q&A 區塊背景）
 *   淺灰    #F7F7F7   （About / Features 背景）
 *   深字    #333      / 次要字 #555
 *
 * 字體：
 *   中文  Noto Sans TC 400/500/700
 *   數字  Montserrat   500/700
 *
 * 版面寬度：
 *   .container  max-width: 1200px（About / Features / Q&A / Contact）
 *   .banner-inner max-width: 1360px（Banner 略寬，讓插圖有空間）
 *
 * 斷點：
 *   ≤ 1024px  Tablet / Small Desktop
 *   ≤  768px  Mobile
 *   ≤  430px  Small Mobile
 */

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans TC', sans-serif;
  color: #333;
  background: #F7F7F7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ===== Banner Section ===== */
.banner {
  position: relative;
  width: 100%;
  min-height: 800px;
  background: url('/Images/period/banner-bg.png') center center / cover no-repeat;
  overflow: hidden;
}

.banner-inner {
  max-width: 1360px;
  margin: 0 auto;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* White oval gradient behind banner text — rounded left side only */
.banner-text {
  position: relative;
  flex: 0 0 auto;
  width:calc(100% - 600px);
  padding: 90px 60px 90px 90px;
  background: linear-gradient(270deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.40) 80%, #ffffff 100%);
  border-radius: 200px 0 0 200px;
  overflow: hidden;
}

.banner-tag {
  display: inline-block;
  background: #008982;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.banner-title {
  font-size: 45px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  margin-bottom: 20px;
}

.banner-desc {
  font-size: 22px;
  color: #555;
  line-height: 1.8;
  max-width: 500px;
}

.banner-desc > b {
  font-weight: bold;
}

/* Banner illustration — no background */
.banner-image {
  flex: 0 0 600px;
  height: 600px;
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Banner wave — 裝飾圖，絕對定位在 banner-text 右上角 */
.banner-wave {
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
}

.banner-wave img {
  display: block;
  width: auto;
  height: auto;
}

/* 行動版專用 about 圖片（桌機預設隱藏） */
.about-image-mobile {
  display: none;
}

/* ===== About Section ===== */
.about {
  padding: 80px 0 60px;
  background: #F7F7F7;
  position: relative;
  z-index: 1;
  margin-top: 0;
}

/* 橢圓弧形頂端：偽元素往上延伸蓋住 Banner 底部，製造「區塊浮起」視覺 */
/* border-radius: 水平50%/垂直100% = 上半橢圓；box-shadow 沿弧邊向上散開 */
.about::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: #F7F7F7;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  box-shadow: 0 -8px 15px rgba(0, 0, 0, 0.05);
}

.about-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.about-inner::after,.about-inner::before{
  display: none;
}

/* About illustration — no background */
.about-image {
  flex: 0 0 540px;
  height: 450px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-text {
  flex: 1;
}

/* inline-block 讓寬度由最長文字決定，section-line 才不會凸出 */
.about-text-inner {
  display: inline-block;
}

.text-teal {
  color: #008982;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  margin-bottom: 20px;
}

.section-line {
  width: 100%;
  height: 1px;
  background: #008982;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 20px;
  color: #555;
  line-height: 1.6;
}

/* ===== Features Section ===== */
.features {
  padding: 60px 0 80px;
  background: #F7F7F7;
}

.features-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) ;
  gap: 30px;
}

.features-grid::after,.features-grid::before{
  display: none;
}

/* 防止外層套版 CSS（如 main.css）污染 grid 子項目寬度 */
.features-grid > .feature-card {
  width: auto !important;
  max-width: 100% !important;
  flex: unset !important;
  float: none !important;
}

.feature-card {
  position: relative;
  background: #fff;
  border: 1px solid #008982;
  border-radius: 30px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 300px;
  justify-content: center;
  text-align: center;
  overflow: hidden;           /* 讓 shimmer 不溢出圓角 */
  cursor: pointer;
}

/* Shimmer 光澤掃過：::before 偽元素從左側 translateX(-100%) 滑至右側 translateX(150%) */
/* overflow:hidden 限制在圓角內；transition:0s 預設不動，hover 才啟動 0.55s 動畫 */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    transparent 30%,
    rgba(255, 255, 255, 0.65) 50%,
    transparent 70%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0s;  /* 預設不動 */
}

.feature-card:hover::before {
  transform: translateX(150%);
  transition: transform 0.55s ease;
  
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.feature-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
}

.feature-desc {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
}

/* ===== Q&A Section ===== */
.qa-section {
  background: #F7F7F7;
  padding: 60px 0;
  overflow: hidden;
}

/* 黃色背景設在 .qa-inner（非 .qa-section），讓黃色呈現為 1200px 限寬卡片，非全寬滿版 */
.qa-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fad553;
  border-radius: 10px;
  padding: 50px 60px;
}

.qa-left {
  flex: 0 0 570px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.qa-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Q&A Header */
.qa-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  margin: 0 auto;
}

.qa-title {
  font-size: 45px;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
  letter-spacing: 0.9px;
  margin-bottom: 20px;
}

.qa-title .teal {
  color: #008982;
}

.qa-line {
  width: 100%;
  height: 1px;
  background: #ffffff;
  margin-bottom: 20px;
}

.qa-subtitle {
  font-size: 20px;
  color: #555;
  line-height: 1.4;
}

/* Q&A Carousel */
.qa-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.qa-track-wrapper {
  flex: 1;
  overflow: hidden;
  border-radius: 20px;
}

.qa-track {
  display: flex;
  transition: transform 0.4s ease;
}

.qa-card {
  flex: 0 0 100%;
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 320px;
}

.qa-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #008982;
  padding-bottom: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.qa-num {
  font-size: 40px;
  color: rgba(0, 137, 130, 0.2);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.qa-question {
  font-size: 24px;
  color: #333;
  font-weight: 700;
  line-height: 1.4;
}

.qa-answer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qa-answer-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.qa-label-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Icon tag inside Q&A — no background on the img itself */
.qa-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fad553;
  border-radius: 5px;
  padding: 5px;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.qa-tag img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.qa-label {
  font-size: 18px;
  font-weight: 700;
  color: #008982;
}

.qa-answer-block p {
  font-size: 18px;
  color: #333;
  line-height: 1.6;
}

/* Arrows */
.qa-arrow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qa-arrow img {
  width: 48px;
  height: 40px;
  object-fit: contain;
}

/* Dots */
.qa-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.qa-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #008982;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.36px;
  transition: background 0.2s, color 0.2s;
}

.qa-dot.active {
  background: #008982;
  color: #fff;
}

/* Q&A right illustration — no background */
.qa-illustration {
  width: 100%;
  max-width: 510px;
}

.qa-illustration img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ===== Contact Section ===== */
.contact {
  position: relative;
  background: url('/Images/period/contact-bg.png') center center / cover no-repeat;
  height: 270px;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 80px;
  height: 270px;
}

/* margin-bottom: -80px 讓插圖「溢出」Contact 區塊底部，製造圖片浮出視覺 */
.contact-image {
  flex: 0 0 290px;
  height: auto;
  display: flex;
  align-items: flex-end;
  margin-bottom: -80px;
}

.contact-image img {
  width: 290px;
  height: auto;
  object-fit: contain;
  object-position: bottom;
}

.contact-text {
  flex: 1;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-headline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 700;
}

.contact-label {
  font-size: 30px;
  letter-spacing: 0.6px;
  line-height: 1.2;
  white-space: nowrap;
}

.contact-phone {
  font-size: 50px;
  letter-spacing: 1px;
  text-shadow: 2px 3px 0px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.contact-desc {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.4px;
  max-width: 740px;
}

/* =============================================
   ANIMATIONS
   ============================================= */

/* --- Keyframes --- */

/* 上下漂浮（banner 插圖、Q&A 插圖） */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* 左側淡入滑入 */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* 右側淡入滑入 */
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* 下方淡入滑上 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 圖示彈跳（hover 用） */
@keyframes iconBounce {
  0%, 100% { transform: scale(1); }
  35%       { transform: scale(1.25); }
  55%       { transform: scale(0.92); }
  75%       { transform: scale(1.08); }
}

/* 聯絡圖片滑上 */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Banner（頁面載入即播放） --- */

.banner-text {
  animation: fadeInLeft 0.8s ease both;
}

.banner-image img {
  animation: fadeInRight 0.9s ease 0.2s both,
             float 4s ease-in-out 1.1s infinite;
}

/* --- Scroll 觸發：初始隱藏 → 進入視口後加 .visible --- */

.about-image,
.about-text,
.feature-card,
.qa-left,
.qa-illustration,
.contact-image img {
  opacity: 0;
}

/* about 插圖 */
.about-image.visible {
  animation: fadeInLeft 0.8s ease forwards;
}

/* about 文字 */
.about-text.visible {
  animation: fadeInRight 0.8s ease 0.15s forwards;
}

/* 功能卡片入場：改用 transition（非 animation）原因：
   animation forwards fill-mode 會鎖住最終 transform: translateY(0)，
   導致 hover 的 translateY(-8px) 無法生效且產生閃動。
   改用 transition 後，hover 可直接覆蓋 transform 而不衝突。
   stagger 效果透過 JS 注入 --delay CSS 變數，作為 transition-delay 使用。 */
.feature-card {
  transform: translateY(30px);
}
.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.6s ease var(--delay, 0s),
    transform 0.6s ease var(--delay, 0s),
    box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 0.4s ease;
}

/* Q&A 左側 */
.qa-left.visible {
  animation: fadeInLeft 0.8s ease forwards;
}

/* Q&A 插圖：淡入 + 持續漂浮 */
.qa-illustration.visible {
  animation: fadeInRight 0.8s ease 0.15s forwards,
             float 4s ease-in-out 1s infinite;
}

/* 聯絡插圖 */
.contact-image img.visible {
  animation: slideUp 0.7s ease 0.1s forwards;
}

/* --- Feature icon hover 彈跳 --- */

.feature-icon img {
  transition: transform 0.2s;
}

.feature-card:hover .feature-icon img {
  animation: iconBounce 0.5s ease forwards;
}

/* Feature card hover — 滑順上浮 */
.feature-card.visible:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 137, 130, 0.18);
  border-color: #00b8ae;
  transition:
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 0.4s ease;
}

.feature-card:hover .feature-title {
  color: #008982;
  transition: color 0.3s ease;
}

/* Q&A arrow hover */
.qa-arrow {
  transition: transform 0.2s ease;
}

.qa-arrow:hover {
  transform: scale(1.15);
}

/* =============================================
   TABLET / SMALL DESKTOP  (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {

  /* Banner */
  .banner {
    min-height: 620px;
  }

  .banner-inner {
    min-height: 620px;
    padding: 0 24px;
    gap: 24px;
  }

  .banner-text {
    width: calc(100% - 420px);
    padding: 60px 40px 60px 60px;
  }

  .banner-tag {
    font-size: 20px;
  }

  .banner-title {
    font-size: 36px;
  }

  .banner-desc {
    font-size: 18px;
    max-width: 380px;
  }

  .banner-image {
    flex: 0 0 400px;
    height: 400px;
  }

  /* About */
  .about {
    padding: 60px 0 40px;
  }

  .about-inner {
    gap: 36px;
    justify-content: center;
  }

  .about-image {
    flex: 0 0 500px;
    height: 300px;
  }

  .section-title {
    font-size: 32px;
  }

  .section-desc {
    font-size: 17px;
  }

  /* Features */
  .features {
    padding: 48px 0 60px;
  }

  .features .container {
    padding: 0;
  }

  .features-grid {
    gap: 16px;
  }

  .feature-card {
    min-height: 260px;
    padding: 20px 16px;
  }

  .feature-icon,
  .feature-icon img {
    width: 50px;
    height: 50px;
  }

  .feature-title {
    font-size: 20px;
  }

  .feature-desc {
    font-size: 15px;
  }

  /* Q&A */
  .qa-section {
    padding: 48px 0;
  }

  .qa-inner {
    padding: 40px 36px;
    gap: 16px;
    max-width: inherit;
    margin: 24px;
  }

  .qa-left {
    flex: 0 0 440px;
  }

  .qa-title {
    font-size: 36px;
  }

  .qa-subtitle {
    font-size: 17px;
  }

  .qa-card {
    min-height: 260px;
    padding: 24px;
  }

  .qa-question {
    font-size: 20px;
  }

  .qa-answer-block p,
  .qa-label {
    font-size: 15px;
  }

  /* Contact */
  .contact {
    height: 240px;
  }

  .contact-inner {
    height: 240px;
    gap: 40px;
  }

  .contact-image {
    flex: 0 0 220px;
  }

  .contact-image img {
    width: 220px;
  }

  .contact-label {
    font-size: 18px;
  }

  .contact-phone {
    font-size: 28px;
  }

  .contact-desc {
    font-size: 15px;
  }
}

/* =============================================
   MOBILE RWD  (≤ 768px)
   ============================================= */
@media (max-width: 768px) {

  /* 全域：左右 24px padding */
  .container {
    padding: 0 24px;
  }

  /* ── Banner ── */
  .banner {
    min-height: auto;
    background-position: top center;
  }

  .banner-inner {
    flex-direction: column;
    align-items: center;
    min-height: auto;
    padding: 40px 0 20px;
    gap: 0;
  }

  /* banner-text：置中、overflow visible 讓 wave 正常顯示 */
  .banner-text {
    width: 90%;
    padding: 24px 24px 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 10%, rgba(255,255,255,0) 100%);
    border-radius: 100%;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeInUp 0.7s ease both;
  }

  /* banner-wave：從絕對定位改為 in-flow，置中顯示於標題上方 */
  .banner-wave {
    position: relative;
    top: auto;
    right: auto;
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    width: 250px;
  }

  .banner-wave img {
    width: 70%;
    height: auto;
  }

  .banner-tag {
    font-size: 22px;
    padding: 6px 14px;
    margin-bottom: 14px;
    margin-top: -70px;
  }

  .banner-title {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .banner-desc {
    font-size: 18px;
    line-height: 1.7;
    max-width: 100%;
  }

  .banner-image {
    flex: none;
    width: 70%;
    height: auto;
    margin: 0 auto;
  }

  .banner-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    animation: fadeInUp 0.8s ease 0.1s both,
               float 4s ease-in-out 0.9s infinite;
  }

  /* ── About ── */
  .about {
    padding: 48px 0 36px;
  }

  /* 文字在上、圖片在下 */
  .about-inner {
    flex-direction: column;
    gap: 24px;
    padding: 0;
  }

  /* 行動版：原本的 about-image 隱藏，改由 about-image-mobile 顯示 */
  .about-image {
    display: none;
  }

  .about-image-mobile {
    display: block;
    width: 70%;
    margin: 0 auto;
    padding-bottom: 48px;
    opacity: 0;
  }

  .about-image-mobile img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .about-image-mobile.visible {
    animation: fadeInUp 0.7s ease forwards;
  }

  .about-text {
    width: 100%;
    text-align: center;   /* 標題置中 */
  }

  /* inline-block 讓線不超出最長文字，text-align:center 讓整塊置中 */
  .about-text-inner {
    display: inline-block;
    text-align: center;
  }

  .section-title {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .section-line {
    margin-bottom: 12px;
  }

  .section-desc {
    font-size: 20px;
  }

  /* ── Features：單欄，icon 左 + 文字右 ── */
  .features {
    padding: 24px 0 48px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    min-height: auto;
    padding: 24px 20px;
    border-radius: 20px;
    gap: 12px;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: flex-start;
  }

  .feature-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    margin-top: 0;
  }

  .feature-icon img {
    width: 45px;
    height: 45px;
  }

  .feature-card-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    text-align: center;
  }

  .feature-title {
    font-size: 24px;
  }

  .feature-desc {
    font-size: 18px;
    line-height: 1.6;
  }

  /* ── Q&A：全寬滿版，貼齊上方 Features 區塊 ── */
  .qa-section {
    padding: 0;          /* 移除上下留白，直接與 Features 貼合 */
  }

  .qa-inner {
    flex-direction: column;
    gap: 28px;
    border-radius: 0;    /* 移除圓角，全寬延伸 */
    margin: 0;           /* 移除左右 margin */
    padding: 48px 24px;  /* 內距改為左右 24px，上下保留呼吸空間 */
    max-width: 100%;
    width: 100%;
  }

  .qa-left {
    flex: none;
    width: 100%;
    gap: 20px;
  }

  /* header 置中，線不超出最長文字 */
  .qa-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* inline-block wrapper 控制 qa-line 寬度 */
  .qa-header-inner {
    display: inline-block;
    text-align: center;
  }

  .qa-title {
    font-size: 36px;
    text-align: center;
    line-height: 2;
  }

  .qa-line {
    margin-bottom: 10px;
  }

  .qa-subtitle {
    font-size: 20px;
    text-align: center;
  }

  /* 輪播區：touch 區域全寬 */
  .qa-track-wrapper {
    touch-action: pan-y;  /* 僅允許垂直捲動，水平交由 JS 處理 */
  }

  .qa-right {
    width: 100%;
    justify-content: center;
  }

  .qa-illustration {
    width: 70%;
    max-width: 280px;
    margin: 0 auto;
  }

  .qa-card {
    padding: 20px;
    min-height: auto;
    gap: 14px;
  }

  .qa-num {
    font-size: 26px;
  }

  .qa-question {
    font-size: 20px;
  }

  .qa-answer-block p {
    font-size: 18px;
  }

  .qa-label {
    font-size: 18px;
    white-space: normal;
  }

  .qa-arrow img {
    width: 32px;
    height: 28px;
  }

  .qa-dot {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  /* ── Contact ── */
  .contact {
    height: auto;
    padding: 36px 0 30px;
  }

  /* 文字在上、插圖在下 */
  .contact-inner {
    flex-direction: column;
    height: auto;
    gap: 20px;
    align-items: center;
    text-align: center;
    padding-bottom: 0;
  }

  .contact-image {
    flex: none;
    width: 290px;
    height: auto;         /* 清除桌機的固定高度，讓圖片等比例 */
    align-self: center;
    order: 2;
    margin-bottom: 0px;
  }

  .contact-image img {
    width: 100%;
    height: auto;         /* 等比例縮放 */
    object-fit: contain;
    object-position: bottom;
  }

  .contact-text {
    order: 1;
    align-items: center;
    gap: 10px;
  }

  .contact-headline {
    flex-direction: column;
    gap: 4px;
    align-items: center;
  }

  .contact-label {
    font-size: 30px;
  }

  .contact-phone {
    font-size: 50px;
  }

  .contact-desc {
    font-size: 20px;
    line-height: 1.6;
    max-width: 100%;
  }

  /* ── 手機動畫統一 fadeInUp ── */
  .about-image.visible,
  .about-text.visible,
  .qa-left.visible,
  .qa-illustration.visible {
    animation: fadeInUp 0.7s ease forwards;
  }
}

/* =============================================
   SMALL MOBILE  (≤ 430px)
   ============================================= */
@media (max-width: 430px) {

  /* ── Banner ── */
  .banner-inner {
    padding: 28px 0 16px;
  }

  .banner-text {
    width: 92%;
    padding: 16px 16px 20px;
  }

  .banner-wave {
    width: 180px;
    margin-bottom: 8px;
  }

  .banner-tag {
    font-size: 13px;
    padding: 5px 12px;
    margin-bottom: 10px;
    margin-top: -50px;
  }

  .banner-title {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .banner-desc {
    font-size: 13px;
    line-height: 1.65;
  }

  .banner-image {
    width: 80%;
  }

  /* ── About ── */
  .about {
    padding: 32px 0 24px;
  }

  .about-inner {
    gap: 16px;
  }

  .about-image-mobile {
    width: 75%;
    padding-bottom: 32px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .section-desc {
    font-size: 13px;
  }

  /* ── Features ── */
  .features {
    padding: 16px 0 32px;
  }

  .features-grid {
    gap: 12px;
  }

  .feature-card {
    padding: 18px 16px;
    gap: 12px;
    border-radius: 16px;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
  }

  .feature-icon img {
    width: 36px;
    height: 36px;
  }

  .feature-title {
    font-size: 15px;
  }

  .feature-desc {
    font-size: 12px;
    line-height: 1.55;
  }

  /* ── Q&A ── */
  .qa-section {
    padding: 0;
  }

  .qa-inner {
    padding: 36px 16px;
    width: 100%;
  }

  .qa-left {
    gap: 16px;
  }

  .qa-title {
    font-size: 22px;
    line-height: 1.6;
  }

  .qa-subtitle {
    font-size: 13px;
  }

  .qa-illustration {
    width: 75%;
    max-width: 200px;
  }

  .qa-card {
    padding: 16px;
    gap: 12px;
    border-radius: 14px;
  }

  .qa-num {
    font-size: 20px;
  }

  .qa-question {
    font-size: 14px;
  }

  .qa-answer-block p {
    font-size: 12px;
    line-height: 1.6;
  }

  .qa-label {
    font-size: 12px;
  }

  .qa-tag {
    width: 20px;
    height: 20px;
    padding: 3px;
  }

  .qa-tag img {
    width: 12px;
    height: 12px;
  }

  .qa-arrow img {
    width: 26px;
    height: 22px;
  }

  .qa-dot {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  /* ── Contact ── */
  .contact {
    padding: 28px 0 20px;
  }

  .contact-inner {
    gap: 14px;
  }

  .contact-image {
    width: 180px;
    height: auto;
  }

  .contact-label {
    font-size: 18px;
  }

  .contact-phone {
    font-size: 28px;
  }

  .contact-desc {
    font-size: 12px;
    line-height: 1.6;
  }
}
