:root {
  --apple-blue: #078dcc;
  --apple-text: #353535;
  --apple-subtext: #4d4d4d;
  --apple-bg-top: #fbfdfe;
  --apple-bg-middle: #eff9fb;
  --apple-bg-bottom: #dff3f7;
  --apple-card: rgba(255, 255, 255, 0.97);
  --apple-card-radius: 22px;
  --apple-content-max: 1100px;
}

/* =========================================================
   Apple Pay 區域基本設定
========================================================= */

.page-layout,
.page-layout *,
.page-layout *::before,
.page-layout *::after {
  box-sizing: border-box;
}

.page-layout img,
.page-layout video {
  display: block;
  max-width: 100%;
}

.page-layout {
  display: block;
  width: 100%;
  min-height: 100vh;
  margin: 0;
/*  padding: 72px 0 0;*/
  background: #ffffff;
}

/* =========================================================
   內容背景
========================================================= */

.page-content {
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 3%,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0) 36%
    ),
    linear-gradient(
      180deg,
      var(--apple-bg-top) 0%,
      var(--apple-bg-middle) 48%,
      var(--apple-bg-bottom) 100%
    );
}

.apple-pay-main,
.apple-pay-page {
  width: 100%;
  margin: 0;
  padding: 0;
}

.apple-pay-main {
  font-family:
    "Noto Sans TC",
    "Microsoft JhengHei",
    "微軟正黑體",
    Arial,
    sans-serif;
}

.apple-pay-inner {
  width: min(100%, var(--apple-content-max));
  margin: 0 auto;
  padding: 34px 94px 60px;
}

/* =========================================================
   主標題
========================================================= */

.apple-page-title {
  margin: 0 0 48px;
  color: #333333;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

/* =========================================================
   Hero
========================================================= */

.apple-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 56px;
  margin-bottom: 56px;
}

.apple-hero-copy {
  min-width: 0;
}

.apple-brand-row {
  margin-bottom: 28px;
}

.apple-brand-logo {
  width: 250px;
  max-width: 100%;
  height: auto;
}

.apple-hero-title {
  margin: 0 0 18px;
  color: #232323;
  font-size: 35px;
  font-weight: 600;
  line-height: 1.35;
}

.apple-hero-text {
  max-width: 540px;
  margin: 0;
  color: var(--apple-subtext);
  font-size: 15px;
  line-height: 2;
}

.apple-hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.apple-hero-image img {
  width: 100%;
  max-width: 390px;
  height: auto;
}

/* =========================================================
   三張功能卡
   依照參考圖：較寬、較短、接近 1.14 : 1
========================================================= */

.apple-feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px;
  margin-bottom: 62px;
}

.apple-feature-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  aspect-ratio: 1.14 / 1;
  min-height: 0;
  padding: 24px 38px 20px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--apple-card);
  box-shadow: 0 4px 18px rgba(45, 112, 121, 0.04);
}

.apple-feature-card h3 {
  margin: 0 0 14px;
  color: var(--apple-blue);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.apple-feature-card p {
  margin: 0;
  color: var(--apple-text);
  font-size: 14px;
  line-height: 1.8;
}

/* =========================================================
   共用區塊標題
========================================================= */

.apple-section-title {
  margin: 0 0 26px;
  color: var(--apple-blue);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

/* =========================================================
   感應後，就出發
========================================================= */

.apple-payment-section {
  margin-bottom: 72px;
}

.apple-payment-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 20px;
  padding: 54px 88px;
  border-radius: var(--apple-card-radius);
  background: var(--apple-card);
  box-shadow: 0 4px 18px rgba(45, 112, 121, 0.04);
}

.apple-payment-copy p {
  margin: 0px 0px -3px 0px;
  color: var(--apple-text);
  font-size: 14px;
  line-height: 2;
}

.apple-payment-copy p:last-child {
  margin-bottom: 0;
}

.apple-payment-image {
  min-width: 0;
}

.apple-video-box {
  width: 100%;
}

.apple-video-note,
.apple-video-box > p {
  margin: 0 0 5px;
  color: #666666;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

.apple-payment-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000000;
  object-fit: cover;
}

/* =========================================================
   iPhone / Apple Pay 設定流程
   四個獨立 div，不使用 Grid
========================================================= */

.apple-setup-section {
  margin-bottom: 32px;
}

.apple-setup-card {
  position: relative;
  width: 100%;
  max-width: 1016px;
  aspect-ratio: 1.14 / 1;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--apple-card);
  box-shadow: none !important;
}

/* 設定流程白卡：不需要 hover 陰影和位移 */

.apple-setup-card.apple-interactive-card,
.apple-setup-card.apple-interactive-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* 四個區塊獨立定位 */

.setup-left-phone,
.setup-step-one,
.setup-step-two,
.setup-right-phone {
  position: absolute;
  min-width: 0;
}

/* =========================================================
   左上小手機
========================================================= */

.setup-left-phone {
  top: 5.8%;
  left: 14.5%;
  width: 16%;
}

.setup-left-phone img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

/* =========================================================
   右上 Step 1
========================================================= */

.setup-step-one {
  top: 12.7%;
  left: 32.1%;
  width: 54.5%;
}

/* =========================================================
   左下 Step 2 + Apple Watch
   已往中間靠攏
========================================================= */

.setup-step-two {
  top: 45.8%;
  left: 15%;
  width: 43%;
}

/* =========================================================
   右下手機
   已往中間靠攏
========================================================= */

.setup-right-phone {
  right: 16%;
  bottom: 4.8%;
  width: 29%;
}

.setup-right-phone img {
	padding-top: 10px;
  display: block;
  width: 120%;
  max-width: none;
  height: auto;
}

/* =========================================================
   設定流程文字
========================================================= */

.setup-step-one h3,
.setup-step-two h3 {
  margin: 0 0 10px;
  color: var(--apple-blue);
  font-size: clamp(13px, 1.5vw, 20px);
  font-weight: 500;
  line-height: 1.55;
}

.setup-step-one ol,
.setup-step-two ol {
  margin: 0;
  padding-left: 20px;
}

.setup-step-one li,
.setup-step-two li {
  margin-bottom: 4px;
  color: #3c3c3c;
  font-size: clamp(11px, 1.2vw, 13px);
  line-height: 1.85;
}

.setup-text-block + .setup-text-block {
  margin-top: 36px;
}

.apple-wallet-tag {
  display: block;
  width: 94px;
  height: auto;
  margin-top: 12px;
}

/* =========================================================
   其他卡片 Hover
========================================================= */

.apple-interactive-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.apple-interactive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(45, 112, 121, 0.1);
}

/* 設定流程卡永遠不浮起 */

.apple-setup-card.apple-interactive-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* =========================================================
   注意事項
========================================================= */

.apple-page-notice {
  margin-top: 28px;
  padding: 0 2px;
}

.apple-page-notice strong {
  display: block;
  margin-bottom: 10px;
  color: #717171;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
}

.apple-page-notice p {
  margin: 0;
  color: #8a8a8a;
  font-size: 11px;
  line-height: 1.9;
}

/* =========================================================
   1199px 以下
========================================================= */

@media (max-width: 1199px) {
  .apple-pay-inner {
    padding: 32px 28px 56px;
  }

  .apple-page-title {
    font-size: 46px;
  }

  .apple-hero {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 40px;
  }

  .apple-payment-card {
    grid-template-columns: 1fr;
  }

  .apple-payment-image {
    max-width: 520px;
    margin: 0 auto;
  }
}

/* =========================================================
   平板
========================================================= */

@media (max-width: 991px) {
  .page-layout {
	display: block;
/*	padding-top: 72px;*/
  }

  .apple-pay-inner {
/*    padding: 28px 22px 50px;*/
  }

  .apple-page-title {
    margin-bottom: 36px;
    font-size: 38px;
  }

  .apple-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .apple-hero-image {
    max-width: 360px;
    margin: 0 auto;
  }

  /* 平板仍保持三張一排 */

  .apple-feature-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 56px;
  }

  .apple-feature-card {
    aspect-ratio: 1.14 / 1;
    padding: 18px 14px;
  }

  .apple-feature-card h3 {
    margin-bottom: 10px;
    font-size: 16px;
	font-weight: 400px
  }

  .apple-feature-card p {
    font-size: 13px;
    line-height: 1.75;
  }

  .apple-payment-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .apple-payment-image {
    max-width: 520px;
    margin: 0 auto;
  }

  /* 設定流程平板改回直向正常排列 */

  .apple-setup-card {
    display: flex;
    flex-direction: column;
    gap: 30px;
    aspect-ratio: auto;
    padding: 30px 26px;
    overflow: visible;
    box-shadow: none !important;
  }

  .setup-left-phone,
  .setup-step-one,
  .setup-step-two,
  .setup-right-phone {
    position: static;
    width: 100%;
  }

  .setup-left-phone,
  .setup-right-phone {
    display: flex;
    justify-content: center;
  }

  .setup-left-phone img {
    width: 145px;
    max-width: none;
    flex: 0 0 auto;
  }

  .setup-right-phone img {
    width: 285px;
    max-width: none;
    flex: 0 0 auto;
  }

  .setup-step-one,
  .setup-step-two {
    max-width: 650px;
    margin: 0 auto;
  }

  .setup-text-block + .setup-text-block {
    margin-top: 30px;
  }
}

/* =========================================================
   手機
========================================================= */

@media (max-width: 767px) {
  .page-layout {
    display: block;
/*    padding-top: 64px;*/
  }

  .apple-pay-inner {
    padding: 30px 16px 42px;
  }

  .apple-page-title {
    margin-bottom: 28px;
    font-size: 32px;
    line-height: 1.3;
  }

  .apple-hero {
    gap: 24px;
    margin-bottom: 38px;
  }

  .apple-brand-row {
    margin-bottom: 20px;
  }

  .apple-brand-logo {
    width: 200px;
  }

  .apple-hero-title {
    font-size: 24px;
  }

  .apple-hero-text,
  .apple-payment-copy p {
    font-size: 15px;
    line-height: 1.8;
	  
  }
	.apple-payment-copy p { 
	text-align: center;
	}

  /* 手機三張卡改成單欄 */

  .apple-feature-list {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 46px;
  }
	
	.apple-feature-list h3 {
	font-weight: 600
  }


  .apple-feature-card {
    aspect-ratio: auto;
    min-height: 0;
    padding: 22px 18px;
    border-radius: 18px;
  }

  .apple-feature-card h3 {
    margin-bottom: 14px;
    font-size: 18px;
  }

  .apple-feature-card p {
    font-size: 15px;
    line-height: 1.8;
  }

  .apple-payment-card,
  .apple-setup-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .apple-setup-card {
    box-shadow: none !important;
  }

  .apple-section-title {
    margin-bottom: 20px;
    font-size: 28px;
  }

  .apple-payment-section {
    margin-bottom: 50px;
  }

  .setup-left-phone img {
    width: 125px;
  }

  .setup-right-phone img {
    width: 245px;
  }

  .setup-step-one h3,
  .setup-step-two h3 {
    font-size: 17px;
  }

  .setup-step-one li,
  .setup-step-two li {
    font-size: 14px;
    line-height: 1.8;
  }

  .apple-wallet-tag {
    width: 70px;
  }

  .apple-page-notice strong {
    font-size: 11px;
  }

  .apple-page-notice p {
    font-size: 10px;
  }
}

/* =========================================================
   截圖用
========================================================= */
/*
[data-aos]{
	opacity:1 !important;
	transform: none !important;
	transition: none !important;
}*/
