/* ==========================================================================
   和泰旅天下 - 旅天下旅行社專案切版
   ========================================================================== */

:root {
  /* Brand colors (取樣自設計稿) */
  --red-500: #e4483c;
  --blue-700: #1170A7;
  --blue-800: #0a476a; 
  --blue-500: #2ca6de;
  --text-dark: #333333;
  --text-body: #4a4a4a;

  /* Section backgrounds */
  --bg-page: #ffffff;
  --bg-hero: #f3fefd;
  --bg-blue-section: #CAEEF6;
  --bg-yellow: #fff6ce;
  --bg-yellow-border: #f3e6ad;
  --bg-pink: #fbe3e8;
  --bg-pink-border: #f0c7d1;
  --bg-gray: #ececec;
  --bg-gray-border: #d6d6d6;
  --bg-green: #ddeed6;
  --bg-table-blue: #d3e6f5;
  --bg-faq: #a7e2fc;
  --bg-faq-active: #68c5ed;
  --border-blue: #7fc4e8;

  --container-width: 1200px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--text-body);
  background: var(--bg-page);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

table {
  border-collapse: collapse;
}

button {
  font: inherit;
  cursor: pointer;
}

h1, h2, h3, p, dl, dd, ol, ul {
  margin: 0;
}

a {
  color: inherit;
}
.smtext{
  font-size: 12px;
  font-weight: 400;
  white-space: normal;
  word-break: break-word;
}
/* ---- Accessibility helpers ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 雙層 focus 外框（白＋深色）確保在全站任何背景色下都至少有一層達到 3:1 對比 */
:focus-visible {
  outline: 3px solid #1a1a1a;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff;
}

/* ---- 裝飾插畫捲動進場動畫（僅電腦板；JS 於進入畫面時加上 .is-visible） ---- */
.js-reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.94);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
}

.section-title {
  display: flex;
  align-items: center;
  font-size:32px;
  font-weight: 700;
  color: var(--text-dark);
  border-left: 6px solid var(--red-500);
  padding-left: 14px;
  line-height: 1.3;
}

.section-title .text-blue {
  color: var(--blue-700);
}

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

.text-blue {
  color: var(--blue-700);
}
.text-redsmtext{
  color: var(--red-500);
  font-size: 14px;
}
/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  --hero-header-space: 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg-hero);
  padding-top: var(--hero-header-space);
}

.hero__illustration {
  position: relative;
  width: 100%;
  aspect-ratio: 3880 / 1912;
}

.hero__illustration img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom right;
}

.hero__content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container-width);
  padding-inline: 24px;
  z-index: 2;
}


.hero__badge {
  width: 220px;
  height: auto;
}

.hero__title-row {
  position: relative;
  display: inline-block;
  margin-top: 20px;
}

.hero__heart {
  position: absolute;
  left: -100px;
  top: 12px;
  width: 100px;
}

.hero__title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
}

.hero__title-accent {
  color: var(--blue-700);
}

.hero__desc {
  margin-top: 20px;
  font-size: 20px;
  max-width:500px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 300px;
  margin-top: 28px;
  padding: 15px 15px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 18px;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.btn--outline {
  border: 2px solid var(--red-500);
  color: var(--text-dark);
  background: #fff;
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--red-500);
  color: #fff;
}

.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red-500);
  color: #fff;
  font-size: 13px;
}

/* ==========================================================================
   適用對象與資格說明 + 意外傷害保險承保方案
   ========================================================================== */
.eligibility {
  /* 適用對象與資格說明的高度（設計稿量測值，並扣除 s1bg.png 圖片本身頂部留白，供背景色分界使用，如實際內容高度有出入可微調） */
  --eligibility-intro-h: 220px;
  position: relative;
  padding-block: 80px;
  background-color: var(--bg-hero);
}

/* s1bg.png 僅從「意外傷害保險承保方案」開始鋪至區塊最下方，上方與 Hero 共用純色背景無縫銜接 */
.eligibility__bg-accident {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(80px + var(--eligibility-intro-h));
  bottom: 0;
  background-image: url("../images/s1bg.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  z-index: 0;
}

/* 牧場插畫：貼齊瀏覽器右側，疊在意外傷害保險承保方案區塊下方
   注意：right 不可小於 0，否則會讓 body 產生橫向捲軸，而 body/html 又不能用 overflow-x:hidden 擋
   （那樣會連帶讓 .eligibility__illustration 的 position:sticky 失效），只能從源頭控制定位值 */
.eligibility__farm {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: 300px;
  z-index: 1;
  pointer-events: none;
}

.eligibility__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
}

.eligibility__illustration {
  position: sticky;
  top: 40px;
  align-self: start;
  height: fit-content;
  margin: 0;
}

.eligibility__illustration img {
  width: 100%;
  height: auto;
}

.eligibility__content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 800px;
}

/* info cards */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  align-items: center;
  background: var(--bg-blue-section);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
}

.info-card dt {
  font-weight: 500;
  color: var(--blue-800);
  font-size: 20px;
}

.info-card dd {
  margin: 0;
}

.info-card ol {
  padding-left: 20px;
}

.info-card li + li {
  margin-top: 6px;
}

.info-card p.info-card__note {
  margin-top: 10px;
}

/* plan tables */
.plan-tables {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 表格右上角幣別小字：靠右對齊，緊貼在自己表格上方 */
.table-currency {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text-body);
  text-align: right;
}

/* 外框圓角與 overflow:hidden 放在 wrapper，避免 border-collapse 表格的邊框被裁切 */
.plan-table-wrap {
  border: 1px solid var(--text-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.plan-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* 固定各欄比例，年齡分組欄位寬度一致，空間不夠就換行而不是互相擠壓 */
  font-size: 18px;
}

.plan-table caption {
  /* 設計稿表頭本身已顯示「國外旅遊／歐洲申根」，caption 僅供螢幕閱讀器使用，不重複顯示 */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.plan-table th,
.plan-table td {
  border: 1px solid var(--text-dark);
  padding: 10px 10px;
  text-align: center;
  background-color: #fff;
  font-weight: 400;
  overflow-wrap: break-word;
}

/* 最外圈邊框交給 .plan-table-wrap 負責，避免與內部格線疊加變粗 */
.plan-table tr > :first-child {
  border-left: none;
}

.plan-table tr > :last-child {
  border-right: none;
}

.plan-table thead tr:first-child > * {
  border-top: none;
}

.plan-table tbody tr:last-child > * {
  border-bottom: none;
}

/* thead 綠底／tbody 白底交界處避免雙色邊界產生次像素雙線，改由 tbody 第一列單邊畫線 */
.plan-table thead tr:last-child > * {
  border-bottom: none;
}

.plan-table thead th {
  background: var(--bg-green);
}

.plan-table--europe thead th {
  background: var(--bg-table-blue);
}

.plan-table tbody th {
  text-align: center;
  font-weight: 400;
  background: #fff;
}

/* notice box (yellow) */
.notice-box {
  background: var(--bg-yellow);
  border: 1px solid var(--text-dark);
  border-radius: var(--radius-lg);
  padding: 20px 20px;
}

.notice-box h3 {
  font-size: 20px;
  font-weight: 700;
  border-bottom: 1px solid var(--text-dark);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.notice-box__item + .notice-box__item {
  margin-top: 18px;
}

.notice-box__item {
  /* 懸掛縮排：內文與標題的中文第一個字對齊，而非對齊編號 */
  padding-left: 1.5em;
}

.notice-box__title {
  font-weight: 500;
  text-indent: -1em;
  margin: 0 0 0px;
  font-size: 18px;
}

.notice-box__body {
  margin: 0;
}

.notice-box__body + .notice-box__body {
  margin-top: 8px;
}

.notice-box__example {
  margin-top: 6px;
}

.notice-box__reminder {
  margin-top: 20px;
  color: var(--red-500);
}

/* ==========================================================================
   旅遊綜合保險保障項目
   ========================================================================== */
.benefits {
  position: relative;
  overflow: hidden;
  /* s3bg.png 為可平舖的圓點紋理，隨版面任意高寬重複延伸；屬於區塊自身背景，天生就在裝飾插畫與內容下方最底層 */
  background: var(--bg-blue-section) url("../images/s3bg.png") repeat;
  padding-block: 80px;
  padding-bottom: 0;
}

.benefits .container {
  position: relative;
  z-index: 1;
}

.benefits__title {
  text-align: center;
  border-left: none;
  justify-content: center;
}

.benefits__title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 28px;
  background: var(--red-500);
  margin-right: 6px;
}

.benefits__decor {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.benefits__decor--cable-tower {
  top: -10px;
  right: -40px;
  width: 360px;
}

.benefits__decor--waterfront {
  top: 700px;
  left: 0;
  width: 320px;
}

.benefits__decor--laptop {
  top: 1000px;
  right: 20px;
  width: 250px;
}

.benefits__panel {
  margin-top: 32px;
  background: #75BEDE;
  border: 3px solid var(--border-blue);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.benefits__badge {
  display: block;
  width: fit-content;
  margin: 0 auto 0px;
  padding: 10px 28px;
  background: #fff;
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-pill);
  font-weight: 400;
  color: var(--text-dark);
}

.benefits-table {
  width: 100%;
  table-layout: fixed; /* 固定各欄比例，避免某格文字過長把「項目」「保險金額」欄位擠壓變形 */
  font-size: 15px;
}

.benefits-table th,
.benefits-table td {
  border: 1px solid var(--text-dark);
  padding: 10px 10px;
  text-align: center;
  font-weight: 500;
  overflow-wrap: break-word;
}

.benefits-table thead th {
  background: var(--bg-yellow);
  /* 避免黃底/白底交界處次像素雙線，改由 tbody 第一列單邊畫線 */
  border-bottom: none;
}

.benefits-table tbody th[scope="rowgroup"] {
  background: #fafafa;
  vertical-align: middle;
}

.benefits-table td:last-child {
  white-space: nowrap;
}

.benefits-table tr.group-personal-accident th[scope="rowgroup"],
.benefits-table tr.group-personal-accident td,
.benefits-table tr.group-personal-liability th[scope="rowgroup"],
.benefits-table tr.group-personal-liability td {
  background: #ffffff;
}

.benefits-table tr.group-inconvenience th[scope="rowgroup"],
.benefits-table tr.group-inconvenience td {
  background: var(--bg-green);
}

.benefits-table tr.group-sickness th[scope="rowgroup"],
.benefits-table tr.group-sickness td {
  background: var(--bg-table-blue);
}

.benefits-table tr.group-comprehensive th[scope="rowgroup"],
.benefits-table tr.group-comprehensive td {
  background: var(--bg-green);
}

.benefits-table tr.group-assistance th[scope="rowgroup"],
.benefits-table tr.group-assistance td {
  background: var(--bg-table-blue);
}

/* ==========================================================================
   注意事項 Tabs
   ========================================================================== */
.notice-tabs {
  padding-block: 60px;
  background: var(--bg-blue-section);
}

.tabs__list {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0 0 -1px;
}

.tabs__tab {
  padding: 10px 20px;
  border: none;
  border-radius: 10px 10px 0 0;
  color: var(--text-body);
  font-weight: 700;
  transition: color var(--transition-fast);
  font-size: 24px;
}

.tabs__tab[aria-selected="true"] {
  color: var(--text-dark);
  border-bottom: 0px!important;
}

/* 每個頁籤固定各自的主題色，切換頁籤時三個顏色都維持不變 */
#tab-notice {
  background: var(--bg-yellow);
  border: 1px solid var(--text-dark);
}

#tab-apply {
  background: var(--bg-pink);
  border: 1px solid var(--text-dark);
}

#tab-exclusion {
  background: var(--bg-gray);
  border: 1px solid var(--text-dark);
}

.tabs__panels {
  background: var(--bg-yellow);
  border: 1px solid var(--bg-yellow-border);
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--text-dark);
}

.notice-tabs:has(#tab-apply[aria-selected="true"]) .tabs__panels {
  background: var(--bg-pink);
  border-color: var(--bg-pink-border);
  border: 1px solid var(--text-dark);
}

.notice-tabs:has(#tab-exclusion[aria-selected="true"]) .tabs__panels {
  background: var(--bg-gray);
  border-color: var(--bg-gray-border);
  border: 1px solid var(--text-dark);
}

.tabs__panel {
  position: relative;
  animation: fade-in var(--transition-base);
}

.tabs__panel[hidden] {
  display: none;
}

.tabs__panel-icon {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 90px;
  pointer-events: none;
}

/* 保留右下角空間給盾牌圖示，避免文字被蓋住 */
#panel-exclusion {
  padding-right: 130px;
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plain-list li {
  /* 懸掛縮排：換行後對齊「一、」等編號後方的文字，而非頂到最左邊 */
  padding-left: 1.6em;
  text-indent: -2em;
}

.plain-list li + li {
  margin-top: 10px;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.tabs__panel .notice-box__item + .notice-box__item {
  margin-top: 18px;
}

.placeholder {
  color: #544c28; /* AAA(7:1)：原色 #9a8b4a 對白底僅 3.4:1，加深後符合 7:1 */
  font-style: italic;
}

/* ==========================================================================
   常見問題解答 FAQ Accordion
   ========================================================================== */
.faq {
  position: relative;
  padding-block: 120px 140px;
  overflow: hidden;
  background-color: var(--bg-hero);
}

.faq .container {
  position: relative;
  z-index: 1;
  max-width: 1000px;
}

.faq__title {
  text-align: center;
  border-left: none;
  justify-content: center;
}

.faq__title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 28px;
  background: var(--red-500);
  margin-right: 6px;
}

.faq__decor {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.faq__decor--signpost {
  top: 70px;
  right: 0;
  width: 470px;
}

.faq__decor--magnifier {
  top: 280px;
  left: -40px;
  width: 400px;
}

.faq__decor--ribbon {
  top: 550px;
  right: -40px;
  width: 450px;
}

.faq__list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq__item {
  border-radius: 28px;
  overflow: hidden;
  transition: background var(--transition-fast);
}

/* 展開時整個項目背景填滿 #68c5ed，內文的白底＋margin 會露出這層藍色形成外框；收合時無外框 */
.faq__item:has(.faq__question[aria-expanded="true"]) {
  background: var(--bg-faq-active);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px 10px 10px;
  background: var(--bg-faq);
  border: none;
  text-align: left;
  font-weight: 400;
  font-size: 18px;
  color: var(--text-dark);
  transition: background var(--transition-fast);
}

.faq__question[aria-expanded="true"] {
  background: var(--bg-faq-active);
}

.faq__q-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue-800);
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 18px;
  flex-shrink: 0;
}

.faq__question-text {
  flex: 1;
}

.faq__icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue-700);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--transition-base);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.faq__icon::before {
  width: 12px;
  height: 2px;
}

.faq__icon::after {
  width: 2px;
  height: 12px;
  transition: transform var(--transition-base);
}

.faq__question[aria-expanded="true"] .faq__icon {
  transform: rotate(180deg);
}

.faq__question[aria-expanded="true"] .faq__icon::after {
  transform: scaleY(0);
}

/* grid-template-rows 0fr→1fr：展開高度永遠對齊實際內容，不用像 max-height 用猜的固定值，
   動畫過程才會是真正等速平滑，不會因為內容比 max-height 短很多而在視覺上頓一下 */
.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  background: #fff;
  margin: 0 15px;
  border-radius: 14px;
  padding: 0 10px;
  transition: grid-template-rows var(--transition-base),
    margin var(--transition-base),
    padding var(--transition-base);
}

.faq__answer[data-open="true"] {
  grid-template-rows: 1fr;
  margin: 0 15px 15px 15px;
  padding: 10px 10px;
}

/* A 開頭懸掛縮排：後續所有段落與清單都對齊 A 後方文字起始位置 */
.faq__answer-inner {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  overflow: hidden;
  min-height: 0;
}

.faq__a-mark {
  flex-shrink: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--blue-800);
}

.faq__answer-content {
  flex: 1;
  min-width: 0;
}

.faq__answer-content > * + * {
  margin-top: 10px;
}

.faq__answer-content ul {
  padding-left: 20px;
}

/* ==========================================================================
   商品名稱及文號
   ========================================================================== */
/* 商品名稱及文號已併入 .faq 區塊，不再獨立分層；沿用 .faq 的 position/overflow */
.product-info__bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  aspect-ratio: 4088 / 2550; /* footbg.png 原始比例，完整顯示圖片自帶的頂部淡出漸層，避免與背景色接縫 */
  background-image: url("../images/footbg.png");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% auto;
  z-index: 0;
}

.faq .product-info__container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin-top: 80px;
}

.product-info__card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(18, 96, 138, 0.08);
  padding: 30px;
  border: 1px solid #231F20;
}

.product-info__title {
  text-align: center;
  justify-content: center;
  border-left: none;
  margin-bottom: 24px;
}

.product-info__title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 28px;
  background: var(--red-500);
  margin-right: 6px;
}

.product-info__body {
  font-size: 14px;
  color: var(--text-body);
  border-top: 1px solid var(--blue-700);
  padding-top: 20px;
}

.product-info__body p + p {
  margin-top: 14px;
}

.product-info__contact {
  color: var(--red-500);
}

.product-info__body a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-info__body a:hover,
.product-info__body a:focus-visible {
  text-decoration-thickness: 2px;
}
@media (max-width: 1920px) {
  .hero__content {
    top: 220px;
  }
}
@media (max-width: 1366px) {
      .hero__content {
    top: inherit;
  }
  .faq__decor--signpost {
    top: 30px;
    right: 0;
    width: 350px;
  }
  .faq__decor--magnifier{
    width: 300px;
  }
  .benefits__decor--cable-tower{
    width: 200px;
  }
  .benefits__decor--waterfront{
    width: 200px;
  }
  .benefits__decor--laptop{
    right: -30px;
    width: 160px;
  }
}

@media (max-width: 1199px) {
      .hero__content {
    top: inherit;
  }
  /* ---- 版面重排：欄位收成單欄 ---- */
  .hero__content {
    padding-top: 40px;
    transform: translateX(-42%);
  }

  .hero__illustration {
    margin-top: -60px;
    width: 140%;
  }
  .eligibility{
    padding-top: 0;
  }
  .eligibility__grid {
    grid-template-columns: 225px 1fr;
  }

  .eligibility__illustration {
    width: 225px;
  }

  .info-card {
    grid-template-columns: 1fr;
  }

  /* ---- 文字級距：平板 ---- */
  .hero__title {
    font-size: 36px;
  }

  .hero__desc {
    font-size: 18px;
    /* 1199px 以下插畫會貼近文字，加白色描邊確保文字在插畫上仍清晰可讀 */
    -webkit-text-stroke: 3px #fff;
    paint-order: stroke fill;
    text-shadow:
      1px 1px 0 #fff, -1px 1px 0 #fff, 1px -1px 0 #fff, -1px -1px 0 #fff,
      2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff;
  }

  .section-title {
    font-size: 28px;
  }

  .tabs__tab {
    font-size: 22px;
  }

  .info-card dt,
  .notice-box h3 {
    font-size: 18px;
  }

  .hero__badge {
    width: 165px;
  }

  .hero__heart {
    width: 75px;
    left: -75px;
  }

  .eligibility__farm {
    width: 225px;
    display: none;
  }

  .benefits__decor--cable-tower {
    width: 150px;
    right: -30px;
  }

  .benefits__decor--waterfront {
    width: 200px;
    top: 30px;
  }

  .benefits__decor--laptop {
    width: 188px;
  }

  .faq__decor--signpost {
    width: 260px;
    top: 20px;
  }

  .faq__decor--magnifier {
    width: 260px;
    left: -30px;
    top: 100px;
  }

  .faq__decor--ribbon {
    width: 338px;
    right: -30px;
  }

  .tabs__panel-icon {
    width: 68px;
  }
}
@media (max-width: 1023px) {
      .hero__content {
    top: inherit;
  }
  /* ---- 版面重排：欄位收成單欄 ---- */
  .hero__content {
    padding-top: 40px;
    transform: translateX(-42%);
  }

  .hero__illustration {
    margin-top: 0;
    width: 140%;
  }
  .eligibility{
    padding-top: 0;
  }
  .eligibility__grid {
    grid-template-columns: 1fr;
  }

  .eligibility__illustration {
    position: static;
    width: 225px;
    margin-inline: auto;
    margin-right: 20px;
    margin-bottom: -90px;
  }
}

@media (max-width: 640px) {
      .hero__content {
    top: inherit;
  }
  /* ---- 版面微調 ---- */
  /* 三個頁籤在窄螢幕放不下會自動換行，第三個獨立一行、對齊跑掉；改用 grid 三等分強制維持同一列 */
  .hero {
  --hero-header-space: 60px;
  }
  .tabs__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* minmax(0,1fr) 才會真正等分，單純 1fr 軌道不會縮小到小於內容最小寬度 */
    gap: 4px;
  }

  .tabs__tab {
    width: 100%;
    min-width: 0;
    padding: 10px 4px;
    font-size: 16px;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
  }
  .hero__content {
        padding-top: 40px;
        transform: translateX(-50%);
  }
  .hero__title-row {
    display: block;
    text-align: center;
  }
  .btn.btn--outline {
    display: flex;
    margin-inline: auto;
  }
  .hero__illustration {
          margin-top: 334px;
          width: 115%;
  }

  .benefits__decor,
  .faq__decor {
    display: none; /* 手機版面較窄，貼邊插畫容易蓋到內文，改為隱藏 */
  }

  .eligibility__illustration {
    width: 110px;
    margin-right: 0;
  }

  /* ---- 文字級距：手機 ---- */
  .hero__title {
    font-size: 28px;
  }

  .hero__desc {
    font-size: 16px;
  }

  .section-title {
    font-size: 20px;
  }

  .info-card dt,
  .notice-box h3 {
    font-size: 17px;
  }
  .plan-table{
    font-size: 16px;
  }
  .plan-table th, .plan-table td{
    padding: 10px 8px;
  }
  .notice-box h3{
    text-align: center;
  }

  .benefits__panel {
    padding: 12px;
  }
  .faq__question{
    font-size: 16px;
  }
  .product-info__card{
    padding:20px;
  }
  .product-info__title{
    margin-bottom: 20px;
  }
  .tabs__panels{
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  #panel-exclusion{
    padding-right: 0px;
  }
  /* ---- 插畫圖片縮放 58% ---- */
  .hero__badge {
    width: 128px;
    margin-inline: auto;
  }

  .hero__heart {
    width: 58px;
    left: 0px;
  }

  .eligibility__farm {
    width: 174px;
  }

  .tabs__panel-icon {
    display:none;
  }
}

/* ==========================================================================
   TO THE TOP + Footer
   ========================================================================== */
.to-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.to-top__link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.to-top__link img {
  width: 90px;
}

.site-footer {
  position: relative;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -6px 20px rgba(18, 96, 138, 0.08);
  padding-block: 60px 24px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 30px;
  row-gap: 24px;
  grid-template-areas:
    "logo    phones"
    "address address"
    "bottom  bottom";
}

.site-footer__logo {
  grid-area: logo;
  width: 180px;
  height: auto;
  align-self: start;
}

.footer-phones {
  grid-area: phones;
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 16px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-phones__item {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #F7F7F7;
  border-radius: 20px;
  padding: 15px;
}

.footer-phones__icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.footer-phones__label {
  margin: 0;
  font-size: 13px;
  color: var(--text-body);
}

.footer-phones__number {
  font-family: "Montserrat", sans-serif;
  display: block;
  font-size:28px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}

.site-footer__address {
  grid-area: address;
  font-style: normal;
  font-size: 14px;
  color: var(--text-body);
}

.site-footer__address p + p {
  margin-top: 4px;
}

.site-footer__address a {
  text-decoration: none;
  color: inherit;
}

.site-footer__bottom {
  grid-area: bottom;
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
  text-align: center;
}

.site-footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  font-size: 14px;
}

.site-footer__links a {
  text-decoration: none;
  color: var(--text-body);
}

.site-footer__links a:hover {
  text-decoration: underline;
}

.site-footer__copyright {
  text-align: center;
  color: var(--text-body);
}

@media (max-width: 640px) {
  .site-footer {
    padding-block: 50px 20px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    row-gap: 20px;
    grid-template-areas:
      "logo"
      "phones"
      "address"
      "bottom";
  }

  .site-footer__logo {
    justify-self: center;
    width: 150px;
  }

  .footer-phones {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-phones__item {
    padding: 14px 16px;
    background: #f7f7f7;
    border-radius: var(--radius-md);
  }

  .footer-phones__number {
    font-size: 18px;
  }

  .site-footer__address {
    text-align: center;
  }

  .site-footer__bottom {
    padding-top: 16px;
  }

  .site-footer__links {
    gap: 6px 14px;
    font-size: 13px;
  }

  .site-footer__copyright {
    padding-inline: 12px;
  }
}

