:root {
  --brand-green: #034e34;
  --brand-blue: #00418c;
  --brand-red: #e50012;
  --brown: #573517;
  --brown2: #9b5638;
  --orange: #fb9a5d;
  --orange2: #f87b2c;
  --faq-bg: #ffb494;
  --faq-inactive: #d1d1d1;
  --beige: #eed5bd;
  --beige2: #d2b59b;
  --shadow: 0 12px 34px rgba(0, 0, 0, .12);
  --shadow-soft: 0 8px 22px rgba(0, 0, 0, .10);
  --r-xl: 26px;
  --r-lg: 18px;
  /* 錨點偏移（給 sticky navbar） */
  --nav-offset: 88px;
}
/* ===== Base ===== */
body {
  background: #fff;
}
a {
  text-decoration: none !important;
}
.pfont {
	font-size:  16px;
	color: var(--brown);
}
.container-fluid {
  margin: 0 !important;
  padding: 0 !important;
}
/* 桌機視覺優先 + 手機要有 padding */
.container-desktop {
  max-width: 1320px;
  width: 100%;
  margin-inline: auto;
  padding-inline: 16px;
}
/* ===== Top bars ===== */
.topbars {
  height: 5px;
  background: var(--brand-green);
  position: sticky;
  top: 0;
  z-index: 1300;
}
.topbars .b1 {
  position: absolute;
  left: 446px;
  width: 7px;
  height: 5px;
  background: var(--brand-blue);
}
.topbars .b2 {
  position: absolute;
  left: 457px;
  width: 7px;
  height: 5px;
  background: var(--brand-blue);
}
.topbars .b3 {
  position: absolute;
  left: 453px;
  width: 4px;
  height: 5px;
  background: var(--brand-red);
}
/* ===== Utilities ===== */
.section-title {
  text-align: center;
  margin-bottom: 26px;
}
.section-title h2 {
  font-weight: 900;
  color: var(--brown);
  letter-spacing: 2px;
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 2.2vw, 2.55rem);
}
.section-title p {
  margin: 0;
  color: #6a6a6a;
  font-size: clamp(13px, 1.8vw, 18px);
  font-weight: 700;
}
/* =========================================================
   HERO (設計稿感：內部定位裝飾圖)
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  color: #7c7c7c;
  min-height: 620px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/bg01.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  z-index: 1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/bg01.png") center/cover no-repeat;
  opacity: .55;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}
.hero .content {
  position: relative;
  z-index: 5;
  padding: 70px 0;
}
.hero-badge {
  display: inline-block;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .95rem;
  letter-spacing: .5px;
}
.hero-title {
  font-weight: 900;
  letter-spacing: 3px;
  font-size: clamp(2.2rem, 3.2vw, 3.55rem);
  line-height: 1.1;
  margin: 14px 0 12px;
  color: #573617;
}
.hero-sub {
  font-size: clamp(13px, 1.8vw, 18px);
  font-weight: 700;
  opacity: .92;
}

.cta-btn {
  background: var(--orange);
  border-color: var(--orange2);
  color: #fff !important;
  font-weight: 900;
  letter-spacing: 2px;
  border-radius: 999px;
  padding: .95rem 1.25rem;
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-width: 270px;
}
.cta-btn:hover {
  filter: brightness(.98);
  background: var(--orange2);
}
.cta-btn img {
  width: 18px;
  height: 18px;
}
/* Hero art block */
.hero-art {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
}
.hero-art img {
  width: 100%;
  height: auto;
  display: block;
}
/* Decorative assets inside hero (desktop-first) */
.deco {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  opacity: .98;
}
.deco.g27 {
  right: -300px;
  top: -200px;
  width: 800px;
}
.deco.g28 {
  left: -200px;
  bottom: -60px;
  width: 800px;
}
.deco.x0112 {
  left: 180px;
  top: 10px;
  width: 200px;
}
.deco.x012 {
  right: 120px;
  bottom: -50px;
  width: 300px;
}
/* hero-top（避免負 z-index 造成點擊/定位問題） */
.hero-top img, .video-wrap {
  position: relative;
  z-index: 0;
}
.hero-top .arrow-icon {
  position: relative;
  top: 50px;
  z-index: 2;
}
.arrow-icon {
  background: var(--beige2);
  border-radius: 100px;
  color: #fff;
  font-size: 36px;
  width: 80px;
  height: 80px;
  line-height: 80px;
  text-align: center;
  display: inline-block;
  margin: auto;
  border: 3px solid #fff;
  box-shadow: var(--shadow-soft);
}
.arrow-icon:hover {
  background: var(--orange);
  color: #fff;
}
.hero-text {
  width: 100%;
}
/* =========================================================
   NAV Pills + Hamburger
   ========================================================= */
.nav-pill-light {
  color: #29221b !important;
  padding: .75rem 1rem;
  font-size: .96rem;
  font-weight: 900;
  letter-spacing: 1px;
  gap: .75rem;
  border: 0px solid rgba(41, 34, 27, .18);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-pill-light .label {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.nav-pill-light .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(41, 34, 27, .18);
}
.nav-pill-light .arrow {
  width: 10px;
  height: 10px;
  opacity: .9;
}
.nav-pill-light:hover, .nav-pill-light:active {
  background: #29221b;
  box-shadow: var(--shadow-soft);
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
  color: #fff !important;
  border-color: rgba(255, 255, 255, .10);
}
.nav-pill-light:hover .dot, .nav-pill-light:active .dot {
  background: rgba(255, 255, 255, .22);
}
.nav-pill-light:hover .arrow, .nav-pill-light:active .arrow {
  filter: invert(1);
  opacity: .95;
}
.nav-pill-light:active {
  transform: translateY(1px);
}
.nav-pill-light:focus-visible {
  outline: 3px solid rgba(251, 153, 93, .55);
  outline-offset: 2px;
}
/* 固定黑底 CTA */
.nav-pill-dark {
  background: #fb995d;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  padding: .75rem 1rem;
  font-weight: 900;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  box-shadow: var(--shadow-soft);
  font-size: .96rem;
}
.nav-pill-dark .label {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.nav-pill-dark .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
}
.nav-pill-dark .arrow {
  width: 10px;
  height: 10px;
  filter: invert(1);
  opacity: .95;
}
/* hamburger */
.hamburger-btn {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #29221b;
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.hamburger-icon {
  position: relative;
  width: 18px;
  height: 14px;
}
.hamburger-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition: transform .18s ease, top .18s ease, opacity .18s ease;
}
.hamburger-icon span:nth-child(1) {
  top: 0;
}
.hamburger-icon span:nth-child(2) {
  top: 6px;
}
.hamburger-icon span:nth-child(3) {
  top: 12px;
}
.hamburger-btn.is-open .hamburger-icon span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.hamburger-btn.is-open .hamburger-icon span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.is-open .hamburger-icon span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}
/* 邊界分隔：正三角形（壓在上一區 header 下緣） */
.section-divider-tri {
  position: relative;
  height: 0; /* 本身不佔高度 */
  z-index: 10;
}
/* 正三角形本體 */
.section-divider-tri::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0; /* 就在邊界線上 */
  transform: translate(-50%, -50%); /* 壓在上下兩區交界 */
  width: 0;
  height: 0;
  /* 尺寸：想更大改這裡 */
  border-left: 88px solid transparent;
  border-right: 88px solid transparent;
  border-bottom: 88px solid #67725d; /* rules 的背景色 */
  pointer-events: none;
}
.arc-divider {
  position: relative;
  height: 88px;
  background: #fff7f2; /* 先鋪底色 */
  overflow: hidden;
}
/* 用上一段背景色挖掉一個圓弧 */
.arc-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 300vw;
  height: 160vw;
  background: #e9dfc7; /* 這裡改成「注意事項區塊的背景色」 */
  border-radius: 50%;
  margin-bottom: -155vw;
}
/* =========================================================
   RULES + STEPS
   ========================================================= */
.rules-section {
  position: relative;
  overflow: hidden;
  background: #67725d;
}
.note-section {
  position: relative;
  overflow: hidden;
  background: #e9dfc7;
}
/* =========================
   統一 Panel 系統（Rules/Note 共用）
   ========================= */
.tf-panel {
  /* 共用外觀變數（可被 modifier 覆寫） */
  --panel-bg: #66715c;
  --panel-text: #ffffff;
  --panel-muted: rgba(255, 255, 255, .72);
  --panel-divider: rgba(255, 255, 255, .18);
  --panel-body-font: 1.06rem; /* 你想要一致的大小 */
  --panel-radius: 10px;
  --panel-head-py: clamp(22px, 4vw, 34px);
  --panel-body-p: clamp(18px, 3.5vw, 34px);
  background: var(--panel-bg);
  color: var(--panel-text);
  border-radius: var(--panel-radius);
  overflow: hidden;
}
.tf-panel .panel-head {
  text-align: center;
  padding: var(--panel-head-py) 16px 18px;
  border-bottom: 1px solid var(--panel-divider);
}
.tf-panel .panel-title {
  margin: 0;
  font-weight: 900;
  letter-spacing: 6px;
  font-size: clamp(28px, 4.2vw, 44px);
}
.tf-panel .panel-sub {
  margin: 10px 0 0;
  color: var(--panel-muted);
  font-weight: 700;
  letter-spacing: 1px;
  font-size: clamp(13px, 1.8vw, 18px);
}
.tf-panel .panel-body {
  padding: var(--panel-body-p);
  text-align: left;
}
/* 內容版心（需要像示意圖不要太寬時加這個 class） */
.tf-panel .panel-body.is-narrow {
  max-width: 980px;
  margin: 0 auto;
}
/* 分隔線 */
.tf-panel .panel-hr {
  border: 0;
  border-top: 1px solid var(--panel-divider);
  margin: 16px 0 18px;
}
/* -------------------------
   RULES：白圓點條列 + 黃色 / 提醒事項 /
   ------------------------- */
.tf-panel .bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.tf-panel .bullets li {
  position: relative;
  padding-left: 28px;
  margin: 12px 0;
  line-height: 1.8;
  font-weight: 650;
  color: rgba(255, 255, 255, .92);
}
.tf-panel .bullets li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: .7em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
}
.tf-panel .bullets strong {
  font-weight: 900;
  margin-right: 6px;
}
.tf-panel .section-mark {
  margin: 18px 0 10px;
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 20px;
}
/* rules 用的數字清單 */
.tf-panel .nums {
  margin: 0;
  padding-left: 22px;
  line-height: 1.9;
  font-weight: 650;
  color: rgba(255, 255, 255, .88);
}
/* rules 連結 */
.tf-panel.is-rules a {
  color: rgba(255, 255, 255, .92);
  text-decoration: underline;
  word-break: break-word;
}
/* -------------------------
   NOTE：圖樣式的 1. 2. 3.（左側數字欄）+ 【】小標
   ------------------------- */
.tf-panel .note-subtitle {
  font-weight: 900;
  margin: 6px 0 10px;
  font-size: 15px;
  letter-spacing: .5px;
}
.tf-panel .note-list {
  margin: 0 0 18px;
  padding-left: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.85;
  color: var(--panel-muted);
}
.tf-panel .note-list > li {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 10px;
  padding: 2px 0;
}
.tf-panel .note-list .n {
  text-align: right;
  color: rgba(42, 36, 27, .9);
}
.tf-panel.is-rules .note-list .n {
  color: rgba(255, 255, 255, .9); /* 若你將來 rules 想混用 note-list */
}
.tf-panel .note-list .t {
  word-break: break-word;
}
/* note 連結 */
.tf-panel.is-note a {
  color: rgba(42, 36, 27, .92);
  text-decoration: underline;
  word-break: break-word;
}
/* note 內嵌縮排 (一)(二) */
.tf-panel .indent {
  margin: 6px 0 12px 40px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--panel-muted);
}
.tf-panel .indent li {
  margin: 2px 0;
}
.tf-panel .note-footer {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--panel-muted);
}
/* -------------------------
   Modifier：配色統一
   ------------------------- */
.tf-panel.is-rules {
  --panel-bg: #66715c;
  --panel-text: #ffffff;
  --panel-muted: rgba(255, 255, 255, .72);
  --panel-divider: rgba(255, 255, 255, .18);
}
.tf-panel.is-rules .section-mark {
  color: #e7d27b;
} /* 黃色提醒標 */
.tf-panel.is-note {
  --panel-bg: #e9dfc7;
  --panel-text: #2a241b;
  --panel-muted: rgba(42, 36, 27, .84);
  --panel-divider: rgba(42, 36, 27, .16);
}
/* note 的數字顏色（配合深色字） */
.tf-panel.is-note .note-list .n {
  color: rgba(42, 36, 27, .92);
}
.tf-panel ol.indent {
  margin-top: -20px;
}
.tf-panel ol.indent li {
  color: rgba(156, 108, 88, 1);
}
.tf-panel .panel-body, .tf-panel .bullets, .tf-panel .nums, .tf-panel .note-list, .tf-panel .indent, .tf-panel .note-footer {
  font-size: var(--panel-body-font);
  line-height: 1.8;
}
.tf-panel.is-note .note-subtitle {
  font-size: 22px;
}

/* step區塊背景 */
.steps-section{
  position:relative;
  overflow:hidden;
  background:#fff;
}
.steps-bg{
  position:absolute;
  inset:0;
  background:url("../assets/bg02.png") left top/cover no-repeat;
  opacity:1;
  z-index:1;
}
.steps-inner{
  position:relative;
  z-index:2;
  padding:150px 0;
}

/* 同一列卡片等高 */
.steps-inner .row > [class*="col-"]{
  display:flex;
}
.soft-card{
  width:100%;
  height:100%;
  display:flex;
  position:relative;
  overflow:visible;
  background:#fff3e8;
  border-radius:22px;
  box-shadow:0 14px 28px rgba(0,0,0,.08);
}
.soft-card2 {
  border-radius: var(--r-xl);
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: var(--shadow);
  background: #fff;
  overflow: hidden;
}
/* pill：置中 + 往上超出 50% */
.step-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#915d5b;
  font-size: 26px;
  font-weight:800;
  letter-spacing:.08em;
  z-index:2;
  margin:0;
}

.step-pill span {
background: #e3670e;
width: 50px;
height: 50px;
color: #fff;
border-radius: 50%; 
display: flex;
justify-content: center;
align-items: center;
} 

/* 卡片內容上方留空，避免被 pill 壓到 */
.soft-card > .p-4,
.soft-card > .p-4.p-lg-5{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding-top:calc(1.75rem + 24px); /* 可微調：讓 pill 下方更舒適 */
}

/* icon 與文字 */
.step-illus{ color:#111; }
.step-label{ font-size:1.3rem; color:#7c7c7c; }


/* Step decorations */
.deco-step-x10 {
  position: absolute;
  left: 10px;
  top: 1200px;
  width: 398px;
  z-index: 1;
  opacity: .9;
  pointer-events: none;
}
.deco-step-x11 {
  position: absolute;
  left: -200px;
  top: 120px;
  width: 800px;
  z-index: 1;
  opacity: .9;
  pointer-events: none;
}
.deco-step-x13 {
  position: absolute;
  right: -300px;
  top: -100px;
  width: 800px;
  z-index: 1;
  opacity: .9;
  pointer-events: none;
}
.deco-step-x15 {
  position: absolute;
  right: 10px;
  top: 900px;
  width: 300px;
  z-index: 1;
  opacity: .9;
  pointer-events: none;
}
/* =========================================================
   FLIGHT section
   ========================================================= */
.badge-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e2660e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 1px;
  flex: 0 0 auto;
}
.flight-text h4 {
  margin: 0 0 6px;
  font-weight: 900;
  color: var(--brown);
  font-size: 1.2rem;
}
.flight-text p {
  margin: 0;
  color: var(--brown);
  font-size: 1.06rem;
  line-height: 1.75;
}
/* =========================================================
   FAQ
   ========================================================= */
.faq-section {
  background: #fff7f2;
}
.cat-btn {
  border: 0;
  border-radius: var(--r-lg);
  font-weight: 900;
  letter-spacing: 2px;
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  width: 100%;
}
.cat-btn.active {
  background: var(--faq-bg);
  color: var(--brown2);
}
.cat-btn.inactive {
  background: var(--faq-inactive);
  color: #9a9a9a;
}
.faq-panel {
  background: var(--faq-bg);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  padding: 18px;
}
.faq-scroll {
  max-height: 560px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 10px;
}
.faq-item {
  background: rgba(255, 255, 255, .18);
  border-radius: 18px;
  overflow: hidden;
}
.faq-q {
  border: 0;
  width: 100%;
  background: transparent;
  text-align: left;
  padding: 14px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}
.faq-q .qno {
  color: var(--brown2);
  font-weight: 900;
  min-width: 56px;
  line-height: 1.4;
}
.faq-q .qtext {
  color: var(--brown2);
  font-weight: 900;
  line-height: 1.35;
  flex: 1;
}
.faq-q .chev {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .30);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: transform .2s ease;
  margin-top: 2px;
}
.faq-q .chev::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #fff;
  display: block;
}
.faq-a {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .32s ease, opacity .32s ease, padding .32s ease;
  padding: 0 14px;
}
.faq-a .rowA {
  display: flex;
  gap: 10px;
  padding: 0 0 14px;
  color: #fff;
  line-height: 1.75;
}
.faq-a .ano {
  min-width: 56px;
  font-weight: 800;
}
.faq-item.open .faq-a {
  max-height: 1200px; /* 依內容量調大一點 */
  opacity: 1;
  padding-top: 6px;
}
.faq-item.open .faq-q .chev {
  transform: rotate(180deg);
}
.faq-a-body .faq-ap { margin: 0 0 10px; }
.faq-a-body .faq-ap:last-child { margin-bottom: 0; }
#faqContent .faq-a,
#faqContent .faq-a * {
  color: #000 !important;
}
.rowA {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* A1：固定最小空間，但不要把內文擠爆 */
.ano {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* 內文一定要允許縮（min-width:0 是 flex 排版關鍵） */
.faq-a-body {
  flex: 1 1 auto;
  min-width: 0;
}
.faq-a-body,
.faq-a-body * {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 連結特別保險：避免超長 href 撐爆 */
.faq-a-body a {
  word-break: break-all;
}
@media (max-width: 576px) {
  .rowA { flex-direction: column; gap: 6px; }
  .ano { font-weight: 700; }
}
/* FAQ：平板分類 2 欄、手機分類 1 欄；手機不內滾 */
@media (max-width: 991.98px) {
  #faq .d-grid.gap-3 {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px !important;
  }
  .faq-scroll {
    max-height: 620px;
  }
}
@media (max-width: 575.98px) {
  #faq .d-grid.gap-3 {
    grid-template-columns: 1fr;
  }
  .faq-panel {
    padding: 14px;
  }
  .faq-scroll {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}
.faq-q .qtext { min-width: 0; }
/* MobileNav：滿版貼邊 + 文字置中（只留這一份） */

/* fade-in */
.fade-in {
  animation: fadeIn .24s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================================================
   Side CTA + Mobile Bar
   ========================================================= */
.side-cta {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2000;
  display: none;
}
@media (min-width: 992px) {
  .side-cta {
    display: block;
  }
}
.side-cta .card {
  border: 0;
  background: transparent;
}
.side-cta a img {
  width: 120px;
  height: 186px;
  object-fit: cover;
  display: block;
}
.mobile-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 2000;
  display: none;
}
@media (max-width: 991px) {
  .mobile-bottom-bar {
    display: block;
  }
  }
}
/* =========================================================
   RWD / Fixes
   ========================================================= */
/* 錨點偏移 sticky navbar */
@media (max-width: 991.98px) {
  :root {
    --nav-offset: 96px;
  }
}
section[id], header[id] {
  scroll-margin-top: var(--nav-offset);
}
/* 避免橫向捲軸（裝飾圖） */
.hero, .steps-section, .rules-section, #hero-top {
  overflow-x: clip;
}
@supports not (overflow: clip) {
  .hero, .steps-section, .rules-section, #hero-top {
    overflow-x: hidden;
  }
}
/* 小螢幕：Topbars 位置改百分比（避免 left:446px） */
@media (max-width: 575.98px) {
  .topbars .b1 {
    left: 34%;
  }
  .topbars .b2 {
    left: 36%;
  }
  .topbars .b3 {
    left: 35.1%;
    width: 5px;
  }
}
/* 平板/手機：縮短步驟區 padding，縮小大圓 */
@media (max-width: 991.98px) {
  .hero {
    min-height: unset;
  }
  .hero .content {
    padding: 44px 0;
  }
  .hero-circle {
    width: min(260px, 78vw);
    height: min(260px, 78vw);
  }
  .hero-circle .label {
    font-size: clamp(1.6rem, 6vw, 2.1rem);
  }
  .steps-inner {
    padding: 72px 0;
  }
  .step-circle {
    width: 220px;
    height: 220px;
  }
  .step-circle .label {
    font-size: 1.95rem;
  }
  /* 隱藏重裝飾圖 */
  .deco, .deco-step-x11, .deco-step-x13 {
    display: none !important;
  }
  /* CTA 手機滿寬 */
  .cta-btn {
    min-width: unset;
    width: 100%;
  }
}
@media (max-width: 575.98px) {
  .steps-inner {
    padding: 56px 0;
  }
}
@media (max-width: 991.98px) {
  #mobileNav {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, .06);
  }
  #mobileNav .container.container-desktop {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  #mobileNav .gap-3 {
    gap: 0 !important;
  }
  #mobileNav a + a {
    border-top: 1px solid rgba(0, 0, 0, .06);
  }
  #mobileNav .nav-pill-light, #mobileNav .nav-pill-dark {
    width: 100%;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 18px 18px;
    display: grid !important;
    grid-template-columns: 24px 1fr 24px;
    align-items: center;
  }
  #mobileNav .nav-pill-light .label, #mobileNav .nav-pill-dark .label {
    grid-column: 2;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
  }
  #mobileNav .nav-pill-light .dot, #mobileNav .nav-pill-dark .dot {
    grid-column: 1;
    justify-self: start;
  }
  #mobileNav .nav-pill-light .arrow, #mobileNav .nav-pill-dark .arrow {
    grid-column: 3;
    justify-self: end;
  }
}
/* 手機版：#mobileNav 寬度 = 螢幕寬度（100vw），完全貼齊左右 */
@media (max-width: 991.98px) {
  #mobileNav {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}
@media (max-width: 991.98px) {
  #mobileNav {
    left: 0;
    right: 0;
  }
}
/* hero-top 箭頭：固定在主圖底部中央（不靠負 margin） */
#hero-top {
  position: relative;
}
#hero-top .hero-text {
  position: absolute;
  left: 50%;
  bottom: 18px; /* 距離底部 */
  transform: translateX(-50%);
  width: 100%;
  z-index: 10;
  pointer-events: none; /* 避免擋到背景 */
}
#hero-top .hero-text .arrow-icon {
  pointer-events: auto; /* 只讓箭頭可點 */
}
.arrow-icon::before {
  display: inline-block;
}
/* 小螢幕稍微往上，避免被底部 UI 擋住 */
@media (max-width: 575.98px) {
  #hero-top .hero-text {
    bottom: 12px;
  }
  .arrow-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    font-size: 30px;
  }
}
/* 合併後：一個外層承載共同背景 */
.redeem-flight-section {
  position: relative;
  overflow: hidden;
  background: #fff;
}
/* 共用背景：沿用你原本 steps-bg 的邏輯 */
.redeem-flight-section .steps-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/bg02.png") left top/cover no-repeat;
  opacity: 1;
  z-index: 1;
}
/* 內容層：全部要壓在背景之上 */
.redeem-flight-section .steps-inner, .redeem-flight-section .flight-block {
  position: relative;
  z-index: 2;
}
/* 裝飾圖：放在背景之上、內容之下（或同層也可） */
.redeem-flight-section .deco-step-x10, .redeem-flight-section .deco-step-x11, .redeem-flight-section .deco-step-x13, .redeem-flight-section .deco-step-x15 {
  z-index: 1; /* 目前你原本就是 1 */
}
/* 1) 補充：可見焦點、跳到內容、FAQ 動畫偏好簡化 */ :focus-visible {
  outline: 3px solid #076445;
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: .5rem .75rem;
  background: #fff;
  border: 2px solid #076445;
  border-radius: .5rem;
  z-index: 1300;
}
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto !important;
  }
  .fade-in {
    transition: none !important;
  }
}
/* 2) 更易於理解的 nav pill 狀態 */
.nav-pill-light[aria-current="page"], .nav-pill-dark[aria-current="page"] {
  box-shadow: 0 0 0 .2rem rgba(7, 100, 69, .15) inset;
}
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1300;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  transition: transform .2s ease, opacity .2s ease;
  opacity: 0;
  pointer-events: none;
}
.back-to-top:hover {
  transform: translateY(-2px);
  color: #fff;
}

/* ====== RWD 微調：手機優化 ====== */
@media (max-width: 576px) {
  .hero {
    padding-top: 2.5rem;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .section-title h2 {
    font-size: 1.4rem;
  }

  .section-title p {
    font-size: 0.95rem;
  }

  .soft-card,
  .soft-card2 {
    border-radius: 1rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  }

  .soft-card .p-4,
  .soft-card .p-lg-5,
  .soft-card2 .p-4,
  .soft-card2 .p-lg-5 {
    padding: 1.5rem !important;
  }

  /* FAQ：右側卡片邊界收窄一點 */
  .faq-panel {
    padding: 1.25rem 1rem;
  }

  /* 避免過長按鈕文字被擠壓 */
  .cta-btn {
    font-size: 0.95rem;
    padding-inline: 1.25rem;
  }
}

/* ====== RWD：平板（直 / 橫）優化 ====== */
@media (min-width: 577px) and (max-width: 992px) {
  .hero {
    padding-top: 3rem;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  /* 三步驟卡片讓高度更一致，避免太高 */
  .step-illus {
    max-width: 180px;
    margin-inline: auto;
  }
}

/* 給 mobile bottom bar 留空間 */
@media (max-width: 992px) {
  footer {
    margin-bottom: 3rem; /* 預留給 .mobile-bottom-bar */
  }

  .mobile-bottom-bar {
    padding-block: 0.5rem;
  }
}
/* Hero 三步驟 soft-card：手機版左右留白 */
@media (max-width: 576px) {
  /* 鎖定 hero 裡那一列步驟卡片用的 row */
  header.hero .row[role="list"] > [class*="col-"] {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}