@charset "UTF-8";
@import url("reset.css");

/* -----------------------------------------
    共用
------------------------------------------*/

:root {
  /* 核心文字與品牌規範色 */
  --text-main: #2f2f2f;
  --text-red: #f8524c;
  --text-green: #00a19b;
  --text-gray: #999999;

  /* 區塊背景色 */
  --bg-benefits: #edfbff;
  --bg-calendar: #fff7e0;
  --grid-line: #ffefc7;
  --bg-notice: #f9fbfc;

  /* 重點色彩 */
  --color-purple: #647bfa;
  --color-teal: #15b0a8;
  --color-orange: #fa851e;
  --color-blue-title: #2c80e8;
  --color-timeline-line: #ffc726;

  /* 容器限制寬度 */
  --content-max-width: 1100px;
}

/* 基礎設定 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text-main);
  line-height: 1.6;
  letter-spacing: 1px;
}

figure{
	margin: 0;
}
em{
    font-style: normal;
}

/* 規範醒目字級與連結樣式 */
.highlight-red {
  color: var(--text-red);
  font-weight: 500;
}

.highlight-green {
  color: var(--text-green);
  font-weight: 500;
}

.highlight-medium {
  font-weight: 500;
}

a.text-link {
  color: var(--text-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 內容安全寬度容器 (1100px) */
.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 20px; /* 保障平板與手機兩側留白 */
}

/* ============================================================
   SEO 友善的視覺隱藏樣式 (Screen Reader Only)
   搜尋引擎能完整抓取 h1 權重，畫面不會出現
============================================================ */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* ============================================================
   主視覺區塊 (Hero Section)
============================================================ */
.hero-section {
  width: 100%;
  min-height: 580px;
  /* 電腦版背景設定 (1400x580) */
  background-color: #57a0f2; /* 預留底色以防圖檔載入延遲 */
  background-image: url('../images/kv-bg-pc.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 68px;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
  padding-bottom: 40px;
  gap: 30px;
}

/* 左側群組排版 */
.hero-content-left {
  flex: 0 1 480px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.hero-logo-box {
  margin-bottom: 24px;
}

.hero-logo {
  display: block;
  max-width: 100%;
  height: auto;
}

.hero-title {
  color: #ffffff;
  font-size: 40px;
  line-height: 1.25;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-title-highlight {
  color: #ffe852; /* 明亮的黃色提亮主題文字 */
}

.hero-desc {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 28px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 主視覺三點特色列表 */
.hero-feature-list {
  list-style: none; /* 清除瀏覽器預設符號 */
  padding: 0;
  margin: 0 0 28px 0;
  text-align: left;
}

.hero-feature-list li {
  position: relative;
  padding-left: 1.2em; /* 為自訂圓點預留空間 */
  font-size: 18px;
  line-height: 1.6;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  margin-bottom: 6px;
}

.hero-feature-list li:last-child {
  margin-bottom: 0;
}

/* 自訂前綴實心小圓點，確保斷行時文字懸掛縮排整齊 */
.hero-feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 18px;
  color: #ffffff;
}


/* CTA 領券按鈕 */
.hero-btn-wrap {
  display: inline-block;
}

.btn-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffe100;
  color: #4059eb;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-hero-cta:hover {
  background-color: #ffb800;
  transform: translateY(-2px);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-hero-cta:hover .btn-arrow {
  transform: translateX(4px);
}

/* 右側登機證群組 */
.hero-content-right {
  flex: 0 1 650px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.boarding-pass-picture {
  display: block;
  width: 100%;
}

.boarding-pass-img {
  display: block;
  width: 100%;
  max-width: 650px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.12));
}


/* ============================================================
   區間 1：平板過渡期 (769px ~ 1100px)
============================================================ */
@media screen and (max-width: 1100px) {
  .hero-section {
    /* 轉為上下排列時，依內容高度自適應延伸 */
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 36px;
  }

  .hero-content-left {
    flex: none;
    width: 100%;
    max-width: 650px;
    align-items: center; /* 內容置中 */
  }

  .hero-content-right {
    flex: none;
    width: 100%;
    max-width: 650px; /* 維持 PC 橫版登機證的最大寬度 */
  }

  .boarding-pass-img {
    max-width: 650px;
  }
}


/* ============================================================
   區間 2：手機版 (<= 768px)
   切換手機背景 (430x820)，<picture> 自動載入直式登機證 (350x440)
============================================================ */
@media screen and (max-width: 800px) {
  .hero-section{
    margin-top: 62px;
  }
}
@media screen and (max-width: 768px) {
  .hero-section {
    min-height: 820px;
    background-image: url('../images/kv-bg-m.webp'); /* 430x820 背景圖 */
    background-size: cover;
    background-position: center top;
    align-items: flex-start;
    padding-top: 30px;
    padding-bottom: 40px;
    
  }

  .hero-container {
    gap: 30px;
  }

  .hero-content-left {
    max-width: 100%;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-desc {
    font-size: 16px;
    margin-bottom: 24px;
  }


  .hero-content-right {
    max-width: 350px; /* 符合手機版直式登機證寬度規範 */
  }

  .boarding-pass-img {
    max-width: 350px;
  }
}


/* 平板過渡區 (769px ~ 1100px)：文字置中區塊內部的清單仍保持左齊整齊 */
@media screen and (max-width: 1100px) {
  .hero-feature-list {
    display: inline-block;
    margin-bottom: 24px;
  }
}

/* 手機版 (<= 768px) */
@media screen and (max-width: 768px) {
  .hero-feature-list li {
    font-size: 16px;
    line-height: 1.5;
  }

  .hero-feature-list li::before {
    font-size: 16px;
  }
}









/* ============================================================
   三大登機福利區塊 (Benefits Section)
============================================================ */
.benefits-section {
  background-color: var(--bg-benefits); /* #edfbff */
  padding: 80px 0;
  width: 100%;
}

/* 標題與副標 */
.benefits-header {
  text-align: center;
  margin-bottom: 48px;
}

.benefits-title {
  font-size: 32px;
  color: var(--color-blue-title); /* #2c80e8 */
  line-height: 1.35;
  margin-bottom: 12px;
}

.benefits-subtitle {
  font-size: 20px;
  color: var(--text-main);
  line-height: 1.5;
}

/* 卡片容器：電腦版三欄並排、水平置中 */
.benefits-cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
}

/* 單張卡片基本樣式 (330x360px) */
.benefit-card {
  width: 330px;
  height: 460px;
  background-color: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(44, 128, 232, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(44, 128, 232, 0.15);
}

/* 上方內容區 */
.card-content {
  padding: 28px 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 內部元素靠左排列 */
  text-align: left;         /* 內文全面齊左 */
  flex: 1;
}

/* 123 數字標籤 (30px、橢圓方形) */
.badge-number {
  width: 52px;
  height: 52px;
  border-radius: 20px;
  color: #ffffff;
  font-size: 30px;
  line-height: 40px;
  font-weight: 700;
  padding-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* 卡片標題 (24px) */
.card-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
  text-align: left;
}

/* 卡片內文 (18px) */
.card-desc {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 10px;
  text-align: left;
}

/* 卡片小提醒 (14px) */
/* 卡片1 專用小提醒清單 (14px、維持自訂符號與懸掛縮排) */
.card-note-list {
  list-style: none; /* 清除預設黑點 */
  padding: 0;
  margin-top: auto; /* 推至內容區底部 */
  width: 100%;
}

.card-note-list li {
  position: relative;
  padding-left: 1.2em; /* 為符號預留空間 */
  font-size: 14px;
  line-height: 1.5;
  color: #666666;
  margin-bottom: 4px;
}

.card-note-list li:last-child {
  margin-bottom: 0;
}

/* 使用 ::before 製作 ◎ 符號，手機版換行時文字會完美對齊不會縮進去 */
.card-note-list li::before {
  content: "◎";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
  color: #666666;
}

/* 第二張卡片：列示兩點排版 */
.card-list {
  list-style-type: disc;
  text-align: left;
  font-size: 18px;
  line-height: 1.5;
  padding-left: 20px;
  width: 100%;
}

.card-list li {
  margin-bottom: 6px;
}

.card-list li:last-child {
  margin-bottom: 0;
}

/* 下方 330x100px 色塊與圖片區 */
.card-footer-banner {
  width: 330px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ============================================================
   三卡專屬主題色 (紫色、綠色、橘色)
============================================================ */
/* 卡片 1 (紫色 #647bfa) */
.card-purple .badge-number,
.card-purple .card-footer-banner {
  background-color: var(--color-purple); /* #647bfa */
}
.card-purple .card-title {
  color: var(--color-purple);
}

/* 卡片 2 (綠色 #15b0a8) */
.card-teal .badge-number,
.card-teal .card-footer-banner {
  background-color: var(--color-teal); /* #15b0a8 */
}
.card-teal .card-title {
  color: var(--color-teal);
}

/* 卡片 3 (橘色 #fa851e) */
.card-orange .badge-number,
.card-orange .card-footer-banner {
  background-color: var(--color-orange); /* #fa851e */
}
.card-orange .card-title {
  color: var(--color-orange);
}

/* ============================================================
   三大福利響應式 (RWD: <= 768px)
   手機版：單張卡片垂直向下長
============================================================ */
@media screen and (max-width: 768px) {
  .benefits-section {
    padding: 50px 0;
  }

  .benefits-title {
    font-size: 26px;
  }

  .benefits-subtitle {
    font-size: 16px;
  }

  .benefits-cards {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .benefit-card {
    width: 100%;
    max-width: 330px;
    height: auto; /* 手機版文字換行高度自適應，不限制硬性高度 */
    min-height: 360px;
  }

  .card-footer-banner {
    width: 100%; /* 依卡片寬度自適應 */
    max-width: 330px;
  }
}











/* ============================================================
   週週領券行事曆區塊 (Calendar Section)
============================================================ */
.calendar-section {
  background-color: var(--bg-calendar); /* #fff7e0 */
  /* 使用 CSS 漸層製作 20px 方格網格線 (#ffefc7) */
  background-image: 
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 80px 0 100px;
  width: 100%;
}

/* 標題設定 */
.calendar-header {
  text-align: center;
  margin-bottom: 60px;
}

.calendar-title {
  margin-bottom: 16px;
}

.title-badge {
  display: inline-block;
  background-color: var(--color-purple); /* #647bfa */
  color: #ffffff;
  font-size: 32px;
  padding: 8px 36px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(100, 123, 250, 0.2);
}

.calendar-subtitle {
  font-size: 20px;
  color: var(--text-main);
}

/* 時間軸容器 */
.timeline-container {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 中央貫穿虛線 (線粗 3px、顏色 #ffc726) */
.timeline-track {
  position: absolute;
  top: 45px;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  border-left: 3px dashed var(--color-timeline-line);
  z-index: 1;
}

/* 單列佈局：左卡/中點/右卡 */
.timeline-row {
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* 日期圓點欄位 (90x90px) */
.timeline-node-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.date-node-img {
  width: 90px;
  height: 90px;
  display: block;
}

/* 卡片欄位對齊：左排靠右緊貼日期、右排靠左緊貼日期 */
.row-left .timeline-card-col {
  display: flex;
  justify-content: flex-end;
  padding-right: 20px;
}

.row-right .timeline-card-col {
  display: flex;
  justify-content: flex-start;
  padding-left: 20px;
}

/* 單張小卡 (380x100px) */
.timeline-card {
  width: 380px;
  height: 100px;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.card-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: block;
}

.card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  margin-top: 9px;
}

.timeline-card .card-title {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-card .card-desc {
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-main);
  white-space: nowrap;
}

/* 卡片文字色彩指定 */
.title-blue {
  color: #5067e6;
}

.title-orange {
  color: #f28a2e;
}

/* 待解鎖卡片樣式 */
.card-locked {
  background-color: #fcfcfc;
}

.title-gray {
  color: var(--text-gray); /* #999999 */
}

.desc-gray {
  color: var(--text-gray);
}

/* ============================================================
   手機版響應式 (RWD: <= 768px)
   軸線與日期靠左側，所有卡片統一靠右側
============================================================ */
@media screen and (max-width: 768px) {
  .calendar-section {
    padding: 50px 0 60px;
  }

  .title-badge {
    font-size: 24px;
    padding: 6px 24px;
  }

    .calendar-header {
    margin-bottom: 40px;
  }

  .calendar-subtitle {
    font-size: 16px;
  }

  /* 貫穿虛線移至左側日期節點中心 (以 60px 圓點為例，中心為 30px) */
  .timeline-track {
    left: 30px;
    transform: none;
  }

  .timeline-container {
    gap: 20px;
  }

  /* 轉為二欄：左為日期圓點、右為卡片 */
  .timeline-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  /* 隱藏電腦版預留的空白欄位 */
  .timeline-empty-col {
    display: none;
  }

  /* 強制將所有行的日期排在左邊 (order: 1)，卡片排在右邊 (order: 2) */
  .timeline-node-col {
    order: 1;
    flex-shrink: 0;
  }

  .timeline-card-col {
    order: 2;
    flex: 1;
    padding: 0 !important; /* 清除電腦版的左右 padding */
  }

  /* 日期圓點在手機版適度微調至 60x60px 以利留出卡片空間 */
  .date-node-img {
    width: 60px;
    height: 60px;
  }

  /* 小卡自動填滿右側剩餘寬度，高度維持彈性 */
  .timeline-card {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 86px;
    padding: 10px 14px;
    gap: 12px;
  }

  .card-icon {
    width: 48px;
    height: 48px;
  }

  .timeline-card .card-title {
    font-size: 19px;
  }

  .timeline-card .card-desc {
    font-size: 13px;
  }
}
@media screen and (max-width: 395px){
  .timeline-card .card-title {
      font-size: 17px;
    }
}
@media screen and (max-width: 380px){
  .timeline-card .card-title {
      font-size: 16px;
    }
}








/* ============================================================
   注意事項區塊樣式
============================================================ */
.notice-section {
  background-color: var(--bg-notice); /* #f9fbfc */
  padding: 60px 0 80px;
  width: 100%;
}

.notice-title {
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: 500;
}

/* 折疊容器外層：限制高度並隱藏超出內容 */
.notice-accordion-wrap {
  position: relative;
  text-align: justify;
}

.notice-content {
  max-height: 280px; /* 預設收合高度 */
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notice-accordion-wrap.is-expanded .notice-content {
  max-height: 2500px; /* 展開時的高度上限 */
}

/* 漸層遮罩 */
.notice-gradient-mask {
  position: absolute;
  bottom: 50px;
  left: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(to bottom, rgba(249, 251, 252, 0) 0%, rgba(249, 251, 252, 1) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.notice-accordion-wrap.is-expanded .notice-gradient-mask {
  opacity: 0;
}

/* 注意事項清單 */
.notice-list {
  list-style: disc;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-main);
}

.notice-list li {
  margin-bottom: 12px;
}

.notice-label {
  font-weight: 500;
  color: #111111;
}

/* 操作教學按鈕與子清單 */
.notice-guide-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.btn-guide-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: var(--color-orange);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-guide-trigger:hover {
  background-color: #e27312; 
  transform: translateY(-1px);
}

.notice-sublist {
  list-style: none;
  padding-left: 0;
  margin-top: 6px;
  color: #555555;
}

.notice-sublist li {
  margin-bottom: 4px;
  line-height: 1.6;
}

/* 展開/收合按鈕 */
.notice-btn-wrap {
  text-align: center;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.btn-toggle-notice {
  background: #ffffff;
  border: 1px solid #dcdfe6;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 28px;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.btn-toggle-notice:hover {
  border-color: var(--text-green); /* #00a19b */
  color: var(--text-green);
}

.toggle-icon {
  font-size: 11px;
  transition: transform 0.3s ease;
}

.notice-accordion-wrap.is-expanded .toggle-icon {
  transform: rotate(180deg);
}

/* 自訂 SVG 圖示樣式 */
.guide-btn-icon {
  width: 18px;
  height: 18px;
  display: block;
}

/* ============================================================
   操作教學彈跳視窗 (Modal)
============================================================ */
.guide-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.guide-modal-overlay[hidden] {
  display: none !important;
}

.guide-modal-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 1080px;
  max-height: 90vh;
  border-radius: 24px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.guide-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-title {
  font-size: 24px;
  color: #00a19b;
  font-weight: 500;
  margin: 0;
}


.modal-subtitle {
  font-size: 15px;
  color: #666666;
}

.btn-close-modal {
  background: #f0f2f5;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  padding-bottom: 3px;
  color: #666666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  background: #e2e4e8;
  color: #000000;
}

/* 橫向滑動卡片容器 (支援 Scroll Snap) */
.guide-steps-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* 客製滑動軸 */
.guide-steps-scroll::-webkit-scrollbar {
  height: 6px;
}
.guide-steps-scroll::-webkit-scrollbar-thumb {
  background: #d4d7de;
  border-radius: 10px;
}

/* 單張步驟卡 */
.guide-step-card {
  flex: 0 0 190px; /* 電腦版每張約 190px 寬，5張剛好填滿 */
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-badge {
  background-color: #24b5aa;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 10px;
  display: inline-block;
}

.step-img-box {
  width: 100%;
  aspect-ratio: 264 / 590;
  overflow: hidden;
  background-color: transparent;
  flex-shrink: 0; /* 防止被擠壓 */
}

.step-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 完整呈現 264x590 比例 */
  display: block;
}

.step-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-main);
  margin-bottom: 16px;
  width: 100%;
  
  /* 電腦版固定高度為 58px (約可容納 3 行自然折行上限) */
  height: 58px; 
  display: flex;
  align-items: flex-start; /* 文字一律從最上方開始排，避免垂直置中造成起點參差 */
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

/* ============================================================
   手機版響應式 (RWD: <= 768px)
============================================================ */
@media screen and (max-width: 768px) {
  .guide-modal-dialog {
    padding: 24px 16px;
    max-height: 92vh;
  }

  .modal-title {
    font-size: 19px;
  }

  .modal-subtitle {
    font-size: 13px;
  }

  /* 手機版：每張卡片寬度設為 75%，露出右邊卡片提示橫滑 */
  .guide-step-card {
    flex: 0 0 75%;
  }

  .step-text {
    font-size: 14px;
    height: 44px;
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 420px){
  .break-title{
    display: block;
  }
}







/* ============================================================
   錨點平滑滾動與導覽列高度補償 (Offset)
============================================================ */

/* 為所有帶有 id 的主要區塊設定上方滾動預留空間 */
#benefits,
#calendar,
#notice {
  /* 電腦版預留導覽列高度 (例如抓 70px) */
  scroll-margin-top: 70px;
}

/* 手機版響應式調整 */
@media screen and (max-width: 768px) {
  #benefits,
  #calendar,
  #notice {
    /* 手機版若導覽列較矮或較高，調整對應數值 (例如抓 60px) */
    scroll-margin-top: 60px;
  }
}








/* ============================================================
   主視覺微動態效果
============================================================ */

/* 1. 機票微幅漂浮感 (Floating Effect) */
.boarding-pass-img {
  animation: ticketFloat 4s ease-in-out infinite;
  will-change: transform;
}

@keyframes ticketFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    /* 微微上浮 8px 並帶極微小傾斜，呈現如在空中漂浮的真實感 */
    transform: translateY(-8px) rotate(2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* 2. 週週領券按鈕：輕微呼吸縮放 + 光澤掃過 (Glow / Shimmer) */
.btn-hero-cta {
  position: relative;
  overflow: hidden; /* 讓光澤不超出按鈕圓角 */
  animation: btnPulse 2.5s ease-in-out infinite;
  will-change: transform, box-shadow;
}

/* 呼吸放大動態 */
@keyframes btnPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(255, 199, 38, 0.35);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 8px 20px rgba(255, 199, 38, 0.6);
  }
}

/* 按鈕反光掃過效果 (Shimmer) */
.btn-hero-cta::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: btnShine 4s ease-in-out infinite;
}

@keyframes btnShine {
  0%, 60% {
    left: -60%;
  }
  80%, 100% {
    left: 140%;
  }
}

/* 滑鼠懸停時暫停自動循環，給予明確的反饋 */
.btn-hero-cta:hover {
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 24px rgba(255, 199, 38, 0.65);
}

/* 3. 箭頭微幅向右提示 */
.btn-hero-cta .btn-arrow {
  display: inline-block;
  animation: arrowNudge 1.8s ease-in-out infinite;
}

@keyframes arrowNudge {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}







/* ============================================================
   主視覺雲朵平移動態
============================================================ */
/* 雲朵圖層容器：絕對定位在主視覺背景最下層 */
.clouds-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* 防止雲朵飄出螢幕產生橫向捲軸 */
  pointer-events: none; /* 穿透點擊，不影響使用者點擊按鈕或卡片 */
  z-index: 1; /* 置於背景色上方、內容 (z-index: 2) 下方 */
}

.cloud-item {
  position: absolute;
  will-change: transform;
  display: block;
}

/* 
   平移動畫：
   從畫面最右側外部 (100vw) 慢慢飄到最左側外部 (-200px)
   使用線性 linear 讓速度保持平緩勻速
*/
@keyframes cloudFloat {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(-250px);
  }
}

/* 雲朵 1：大雲、前景、速度適中 */
.cloud-1 {
  width: 210px;
  top: 15%;
  opacity: 0.9;
  animation: cloudFloat 35s linear infinite;
  animation-delay: -5s; /* 負 delay 讓頁面一載入時畫面上就已經有雲，不用乾等 */
}

/* 雲朵 2：小雲、遠景、速度較慢、半透明營造層次 */
.cloud-2 {
  width: 110px;
  top: 45%;
  opacity: 0.6;
  animation: cloudFloat 55s linear infinite;
  animation-delay: -22s;
}

/* 雲朵 3：中型雲、速度略快 */
.cloud-3 {
  width: 155px;
  top: 75%;
  opacity: 0.75;
  animation: cloudFloat 42s linear infinite;
  animation-delay: -15s;
}

/* 手機版 (<= 768px) 適度縮小雲朵尺寸，避免畫面太擁擠 */
@media screen and (max-width: 768px) {
  .cloud-1 {
    width: 125px;
    top: 8%;
  }
  .cloud-2 {
    width: 88px;
    top: 32%;
  }
  .cloud-3 {
    width: 100px;
    top: 90%;
  }
}








/* ==========================================================================
   分享彈出視窗樣式
   ========================================================================== */
/* 全局遮罩外框 */
.share-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999; /* 確保疊在網頁最上層，包括導覽列 */
  display: flex;
  justify-content: center;
  align-items: flex-end; /* 手機版預設靠底 */
  visibility: hidden; /* 預設完全隱藏（不影響點擊） */
  transition: visibility 0.3s ease;
}

/* 黑色半透明背景襯底 */
.share-sheet-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0); /* 預設透明 */
  transition: background-color 0.3s ease;
}

/* 彈出面板本體 (電腦版預設樣式：優雅的置中彈窗) */
.share-sheet-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  background-color: #ffffff;
  border-radius: 16px 16px 16px 16px;
  padding: 30px;
  box-sizing: border-box;
  margin-bottom: auto; /* 電報版垂直置中 */
  margin-top: auto;   /* 電報版垂直置中 */
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  
  /* 動態核心：電腦版預設用「縮放與淡入」登場 */
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

/* 當激活狀態時 (.active) 的轉場效果 */
.share-sheet-overlay.active {
  visibility: visible;
}
.share-sheet-overlay.active .share-sheet-bg {
  background-color: rgba(0, 0, 0, 0.5); /* 背景變半透明黑 */
}
.share-sheet-overlay.active .share-sheet-content {
  transform: scale(1);
  opacity: 1;
}

/* 裝飾線條與標題 */
.share-sheet-drag-handle {
  display: none; /* 電腦版不顯示 */
}

.share-sheet-title {
  font-size: 20px;
  color: #2F2F2F;
  font-weight: 500;
  text-align: center;
  margin: 0 0 25px 0;
}

/* 四個選項的 Grid 網格排版 */
.share-options-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.share-option-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex: 1;
  outline: none;
}

/* 圖示外圈圓圈 */
.share-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: transform 0.2s ease;
}
.share-option-item:hover .share-icon-wrap {
  transform: scale(1.08); /* 滑鼠懸庭微微放大 */
}

.share-icon-wrap img {
  width: 100%;
  height: auto;
}

.share-text {
  font-size: 14px;
  color: #5f6368;
  font-weight: 500;
}

/* 取消按鈕 */
.share-sheet-close {
  width: 100%;
  padding: 12px 0;
  background-color: #f1f3f4;
  color: #5f6368;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.share-sheet-close:hover {
  background-color: #e8eaed;
}

/* ==========================================================================
   RWD 手機版斷點變形 (768px 以下)：100% 轉為從頁面底部滑出的面板
   ========================================================================== */
@media (max-width: 768px) {
  .share-sheet-overlay {
    align-items: flex-end; /* 強制靠螢幕最底端 */
  }
  
  .share-sheet-content {
    max-width: 100%;
    border-radius: 20px 20px 0 0; /* 只留上方圓角 */
    padding: 20px 20px 30px 20px;
    margin-bottom: 0; /* 緊貼底部 */
    margin-top: 0;
    
    /* 核心變形：手機版改為從螢幕下方 100% 的位置往上滑入 */
    transform: translateY(100%);
    opacity: 1; /* 手機版不需要淡入，靠滑動即可 */
    transition: transform 0.35s cubic-bezier(0.15, 1, 0.3, 1);
  }
  
  /* 激活狀態覆寫 */
  .share-sheet-overlay.active .share-sheet-content {
    transform: translateY(0); /* 回歸原位，即滑出畫面 */
  }
  
  /* 手機版上方的拉條裝飾 */
  .share-sheet-drag-handle {
    display: block;
    width: 40px;
    height: 4px;
    background-color: #e8eaed;
    border-radius: 2px;
    margin: 0 auto 15px auto;
  }
  
  .share-sheet-title {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .share-icon-wrap {
    width: 54px;
    height: 54px;
  }
}

