@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;800;900&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  /* ===== 原有變數（保留名稱，數值精煉，確保尚未改版頁面維持正常）===== */
  --ink: #221c15;/* 主要文字顏色 */
  --muted: #857c6e;/* 次要文字顏色 */
  --line: #ece5d8;/* 分隔線顏色 */
  --brand: #f88b32; /* 主題色 按鈕等等 */
  --brand-rgb: 232, 103, 127; /* 專門拿來做透明度效果 */
  --brand-dark: #0f6e64;/* 主文字顏色 */
  --accent: #e67732;/* 強調色金額等等 */
  --soft: #faf6ee;/* 背景色 */
  --paper: #ffffff;/* 卡片背景色 */
  --shadow: 0 16px 40px rgba(60, 45, 25, 0.10);/* 卡片陰影 */
  --radius: 14px;/* 卡片圓角 */
  --max: 1180px;/* 內容最大寬度 */
  
  /* ===== 新增設計系統代幣：Apple 的精準、Clay 的暖意、Notion 的秩序 ===== */
  --canvas: #fbf8f2;
  --surface: #ffffff;
  --surface-soft: #f5f0e4;
  --surface-strong: #ece2cd;
  --hairline: #eae3d6;
  --ink-strong: #1a140f;
  --body-text: #4a4239;

  --jl-deep: #af3d56;
  --jl-soft: #fee3e9;
  --teal: #0f6e64;
  --teal-deep: #0a4c45;
  --teal-soft: #dceee5;
  --p-color: #ffeef3;/* 樂桃淺 */
  --p-color-t: #e54d71;/* 樂桃深 */
  --ochre: #d99a44;
  --ochre-deep: #a5701f;
  --ochre-soft: #fbedd6;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --sh-xs: 0 1px 2px rgba(34, 28, 21, 0.05);
  --sh-sm: 0 6px 16px rgba(34, 28, 21, 0.06);
  --sh-md: 0 14px 32px rgba(34, 28, 21, 0.08);
  --sh-lg: 0 28px 64px rgba(34, 28, 21, 0.12);
  --sh-hover: 0 30px 60px rgba(34, 28, 21, 0.16);

  --font-display: "Noto Sans TC", "Manrope", "Microsoft JhengHei", sans-serif;
  --font-body: "Noto Sans TC", "Manrope", "Microsoft JhengHei", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--body-text);
  background: var(--canvas);
  font-family: var(--font-body);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  font-weight: 200;
  text-decoration: none;
}

button {
  font: inherit;
}

/* ================= 導覽列 (Topbar / Nav) ================= */
.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20; 
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  min-width: 158px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink-strong);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: var(--r-sm);
}

.nav-menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px; 
  color: var(--body-text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap; 
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover {
  color: var(--jl-deep);
  font-weight: 600;
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  gap: 5px;
  flex-direction: column;
}

.hamburger .bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--ink-strong);
  border-radius: 3px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.mobile-header-controls {
  display: none;
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ================= ⏰ 頂部服務時間公告條 (Topbar) ================= */
.top-service-bar {
  background-color: var(--jl-soft);
  color: var(--jl-deep);
  font-size: 13px;
  padding: 7px 16px;
  border-bottom: 1px solid var(--hairline);
  font-weight: 600;
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.top-bar-tip {
  color: var(--jl-deep);
  font-weight: 700;
}

/* ================= 通用按鈕樣式 ================= */
.btn {
  border: 0;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}

.btn.primary {
  color: var(--jl-deep);
  font-weight: 700 !important;
  background-color: var(--surface);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--jl-soft);
  box-shadow: var(--sh-xs);
}
.btn.primary:hover { box-shadow: var(--sh-sm); transform: translateY(-1px); }

.btn.ghost {
  color: #ffffff;
  background: #06c755;
}
.btn.ghost:hover { filter: brightness(1.05); }

/* ================= 頁首 Hero 區塊================= */
.hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 90% at 12% 0%, rgba(232, 103, 127, 0.16), transparent 60%),
    radial-gradient(ellipse 55% 80% at 88% 100%, rgba(15, 110, 100, 0.14), transparent 60%),
    var(--surface-soft);
  padding: 0 20px;
}

/* Clay 手感色塊：柔和、不搶戲的裝飾層 */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.9;
  z-index: 0;
}
.hero::before {
  width: 220px;
  height: 220px;
  background: linear-gradient(160deg, #f3c8d1, #e8677f 70%);
  top: -90px;
  left: -70px;
}
.hero::after {
  width: 260px;
  height: 260px;
  background: linear-gradient(160deg, #cfe8e2, #0f6e64 75%);
  bottom: -120px;
  right: -90px;
  opacity: 0.55;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px;
  color: var(--ink-strong);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--jl-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-xs);
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
}

.hero p {
  margin: 0;
  font-size: 17px;
  color: var(--body-text);
}

.hero p a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--jl-deep) !important;
  background: var(--surface);
  padding: 10px 22px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.hero p a:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}

/* ================= 通用 Section 佈局 ================= */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.section-title {
  text-align: center;
  color: #333;
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 10px 0;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--brand);
  margin: 16px auto 0;
  border-radius: 3px;
}
.section-subtitle {
  font-size: 18px;
  color: #666;
}
.section-title-wrapper {
  text-align: center;
  margin-bottom: 60px;
}

/* ================= 📅 航班與行程表格  ================= */
.schedule-wrap {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--surface);
}

.schedule-table th {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--muted);
  background-color: var(--surface-soft);
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}

.schedule-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.schedule-table th.sortable:hover {
  background-color: var(--surface-strong);
  color: var(--jl-deep);
}

.schedule-table th.sortable.active {
  background-color: var(--surface-strong);
  color: var(--jl-deep);
  border-bottom: 2px solid var(--brand);
}

.sort-icon {
  font-size: 14px;
  margin-left: 4px;
  opacity: 0.4;
  display: inline-block;
  transition: opacity 0.2s;
}

.schedule-table th.sortable:hover .sort-icon,
.schedule-table th.sortable.active .sort-icon {
  opacity: 1;
  transform: scale(1.1);
}

.hotel-name {
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.4;
}
 

.hotel-days-sub {
  display: inline-block;
  font-size: 12px;
  color: var(--ochre-deep);
  font-weight: 600;
  margin-top: 0px;
  background: var(--ochre-soft);
  padding: 4px 8px;
  border-radius: var(--r-pill);
}


.schedule-table td {
  border-top: 1px solid var(--hairline);
  padding: 12px 14px;
  text-align: center;
  vertical-align: middle;
  transition: background-color 0.15s var(--ease);
}

.schedule-table tbody tr:hover td {
  background-color: var(--surface-soft);
}

.schedule-table tr.is-full {
  color: #a39a8c;
  background: #f7f3ea;
}
.schedule-table tr.is-full:hover td {
  background-color: #f2ede1;
}

.schedule-table th.price-col,
.schedule-table td.price-col {
  text-align: center;
}

.del-price {
  font-size: 13px;
  color: #b0a695;
  text-decoration: line-through;
  margin-right: 6px;
  display: inline-block;
}

.active-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--jl-deep);
  display: inline-block;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.status.hot { background: var(--ochre-soft); color: var(--ochre-deep); }
.status.full { background: var(--surface-strong); color: var(--muted); }

.seat-text { font-weight: 800; font-size: 16px; color: #0db983; }
.seat-text.hot { color: var(--p-color-t); }
.seat-text.full { color: var(--muted); }

/*首頁行程按鈕大小*/
.btn-outline{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px; height: 35px;
  min-height: 28px;
  padding: 0 12px;
  margin-top: 0;
  border-radius: var(--r-pill);
  background: var(--ochre-soft);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.mini-link { color: var(--teal); font-weight: 700; white-space: nowrap; }

.line-inquiry-wrap { text-align: center; margin: 24px 0; }
.line-inquiry-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #06c755; color: #fff; font-weight: 700; font-size: 15px;
  padding: 12px 28px; border-radius: var(--r-pill); box-shadow: var(--sh-sm);
  transition: all 0.2s var(--ease);
}
.line-inquiry-btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); filter: brightness(1.05); }

/*首頁line按鈕大小在這裡*/
.line-mini-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 80px; height: 35px; margin-left: 0px; border-radius: var(--r-pill);
  background: #e5f2e9; color: #06c755; font-size: 13px; font-weight: 700; text-decoration: none;
  transition: all 0.2s var(--ease);
}
.line-mini-link:hover { color:#ffffff ;background-color:  #06c755; transform: translateY(-1px); box-shadow: var(--sh-xs); }

.note-row {
  padding: 16px 18px;
  color: var(--muted);
  background: var(--surface-soft);
  border-top: 1px solid var(--hairline);
  line-height: 1.7;
  font-size: 13px;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}


.availability-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.availability-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: 0 8px 22px rgba(28, 47, 70, .05);
}
.availability-card span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.availability-card strong { font-size: 24px; color: var(--brand-dark); }

.loading-text { text-align: center; padding: 30px; color: var(--muted); font-weight: bold; }
.price-text { color: var(--accent); font-weight: bold; font-size: 17px; }

/* ================= 📅 表格日期字體 ================= */
.date-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink-strong);
}
.date-main { font-size: 19px; font-weight: 800; letter-spacing: 0.5px; }
.date-week { font-size: 13px; color: var(--muted); font-weight: 700; margin-top: 2px; }

.date-hero .date-main.star-date {
  color: var(--p-color) !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  background-color: var(--p-color-t);
  border-radius: var(--r-sm);
  padding: 2px 8px;
  line-height: 1.2 !important;
}

/* ================= ✈️ 航空公司專屬顏色與標籤 ================= */
.flight-tag {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
}
.flight-cx { background-color: var(--teal-soft); color: var(--teal-deep); }
.flight-peach { background-color: var(--p-color); color: var(--p-color-t); }
.flight-jl { background-color: var(--jl-soft); color: var(--jl-deep) }
.flight-default { background-color: var(--surface-strong); color: var(--muted); }

/* .btn-filter.btn-cx:hover { background-color: #e0f2e5; color: #0f5c29; border-color: #a5d6a7; } */
.btn-filter.btn-cx.active { background-color: var(--teal); color: #ffffff; border: 1px solid var(--teal); font-weight: 700; box-shadow: var(--sh-sm); }

.btn-filter.btn-peach.active { background-color: var(--p-color-t); color: #ffffff; border: 1px solid var(--p-color); font-weight: 700; box-shadow: var(--sh-sm); }

.btn-filter.btn-jl.active { background-color: #a3333f; color: #ffffff; border: 1px solid #a3333f; font-weight: 700; box-shadow: var(--sh-sm); }

/* ================= 篩選控制面板與開關（Notion 秩序卡 + Clay 圓潤按鈕）================= */
.filter-control-panel {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  padding: 20px 22px !important;
  margin: 0 0 16px 0 !important;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline) !important;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  gap: 16px !important;
}
/* 
.filter-group-left { display: flex; flex-direction: column; gap: 14px; flex-grow: 0; } */

.filter-group-right {
    margin-left: auto !important;     /* 把右邊群組強制推到最右邊邊界 */
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important; /* 讓「僅顯示可報名」跟「三個按鈕」也都向右對齊 */
    gap: 6px !important;              /* 開關與按鈕的上下間隙 */
  }
.filter-row { display: flex; align-items: center; gap: 13px; }
.filter-label { font-size: 14px; font-weight: 700; color: var(--muted); min-width: 70px; text-align: left; letter-spacing: 0.3px; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

.btn-filter, .btn-toggle {
  height: 38px;
  letter-spacing: 0.2px;
  padding: 20px 17px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-filter {
  transition: all 0.2s var(--ease);
  background-color: var(--surface-soft);
  color: var(--body-text);
  border: 1px solid transparent;
}
.btn-filter:hover { background-color: var(--surface-strong); transform: translateY(-1px); }
.btn-filter.active { background-color: var(--brand); color: #ffffff; font-weight: 700; box-shadow: var(--sh-sm); }

/* 【修正】蘋果開關防護：上鎖禁止斷行、禁止擠壓 */
.apple-switch-wrapper { 
  display: inline-flex !important; 
  align-items: center !important; 
  gap: 10px !important; 
  cursor: pointer; 
  margin: 0 10px 0 0 !important;
  flex-shrink: 0 !important;      /* 防止空間不夠被壓扁 */
  white-space: nowrap !important; 禁止「僅顯示可報名」斷成兩行
}
.apple-switch-text { font-size: 14px; font-weight: 700; color: var(--body-text); white-space: nowrap !important; }
.apple-switch input { opacity: 0; width: 0; height: 0; }
.apple-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0 !important; }
.apple-slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--surface-strong); transition: .3s var(--ease); border-radius: 24px;
}
.apple-slider:before {
  position: absolute; content: ""; height: 20px; width: 20px; left: 2px; bottom: 2px;
  background-color: white; transition: .3s var(--ease); border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.apple-switch input:checked + .apple-slider { background-color: var(--brand); }
.apple-switch input:checked + .apple-slider:before { transform: translateX(20px); }

/* ================= 特色卡片區塊（Clay 飽和色卡 × Apple 浮起互動）================= */
.features-section { max-width: var(--max); margin: 0 auto; padding: 72px 24px 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 28px; }

.feature-card {
  background: var(--surface-soft);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--hairline);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-hover);
}

/* Clay 循環用色：桃粉 → 深青 → 赭金，依序輪替不重複 */
.features-grid .feature-card:nth-child(3n+1) { background: var(--jl-soft); }
.features-grid .feature-card:nth-child(3n+2) { background: var(--teal-soft); }
.features-grid .feature-card:nth-child(3n+3) { background: var(--ochre-soft); }

.feature-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--surface-strong);
}

.feature-content {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feature-content h3 {
  margin: 0 0 10px 0;
  font-family: var(--font-display);
  color: var(--ink-strong);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.feature-content p {
  margin: 0 0 22px 0;
  color: var(--body-text);
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
}

.feature-btn {
  align-self: flex-start;
  color: var(--ink-strong);
  font-weight: 700;
  font-size: 14px;
  background: var(--surface);
  padding: 10px 20px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-xs);
  transition: all 0.25s var(--ease);
}

.feature-card:hover .feature-btn {
  background: var(--ink-strong);
  color: #ffffff;
  box-shadow: var(--sh-sm);
}

/* ================= 分頁裝潢與共用元件 ================= */
.page-header {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  padding: 56px 20px 68px;
  color: #fff;
  text-align: center;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.page-header h1 {
  margin: 0 0 8px 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -0.01em;
}
.page-header p { margin: 0; color: rgba(255,255,255,0.78); font-size: 14px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  font-size: 13px;
  background: rgba(255,255,255,0.14);
  padding: 7px 16px;
  border-radius: var(--r-pill);
  transition: background 0.2s var(--ease);
}
.back-link:hover { background: rgba(255,255,255,0.24); text-decoration: none; }

.content-wrap { max-width: 800px; margin: -34px auto 60px; padding: 0 24px; position: relative; z-index: 2; }

.tab-group { display: flex; justify-content: center; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.tab-btn {
  background: var(--surface); border: 1px solid var(--hairline); color: var(--muted);
  padding: 10px 22px; border-radius: var(--r-pill); font-weight: 700; font-size: 14px; transition: all 0.2s var(--ease);
  box-shadow: var(--sh-xs);
}
.tab-btn:hover { border-color: var(--brand); color: var(--jl-deep); transform: translateY(-1px); }
.tab-btn.active {
  background: var(--brand); color: #fff; border-color: var(--brand);
  box-shadow: var(--sh-sm);
}

.info-card { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-md); padding: 40px; border: 1px solid var(--hairline); }
.info-section { margin-bottom: 30px; }
.info-section:last-child { margin-bottom: 0; }
.info-section h3 {
  color: var(--ink-strong); font-family: var(--font-display); font-weight: 800;
  border-bottom: 1px solid var(--hairline); padding-bottom: 12px; margin: 0 0 14px; font-size: 18px;
}
.info-section p, .info-section ul { color: var(--body-text); line-height: 1.8; font-size: 15px; }
.info-section li { margin-bottom: 8px; }

.dm-banner { margin-bottom: 20px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); border: 1px solid var(--hairline); }
.dm-banner img { width: 100%; height: auto; display: block; transition: transform 0.3s var(--ease); }
.dm-banner a:hover img { transform: scale(1.02); }

.announcement-box {
  background: var(--ochre-soft); border: 1px solid #f0dcae; border-left: 4px solid var(--p-color-t);
  border-radius: var(--r-lg); padding: 16px 20px; margin-bottom: 24px; display: flex; align-items: flex-start; gap: 16px;
}
.announcement-icon { font-size: 0px; line-height: 1; }
.announcement-content h4 { margin: 0 0 8px 0; color: var(--ochre-deep); font-size: 16px; font-weight: 800; }
.announcement-content p { margin: 0; color: var(--body-text); font-size: 14px; line-height: 1.6; }

/* ================= 關於我們 & 媒體專區 ================= */
.philosophy-box { background: var(--surface); padding: 52px; border-radius: var(--r-xl); box-shadow: var(--sh-md); text-align: center; position: relative; border: 1px solid var(--hairline); }
.quote-mark { font-size: 60px; color: var(--surface-strong); position: absolute; top: 20px; left: 30px; line-height: 1; font-family: Georgia, serif; }
.philosophy-text { font-size: 17px; color: var(--body-text); line-height: 1.8; position: relative; z-index: 1; }

.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); background: #000; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.media-section { padding: 88px 0; background-color: var(--surface-soft); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.magazine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.magazine-card {
  background-color: var(--surface); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm); border: 1px solid var(--hairline); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); display: flex; flex-direction: column;
}
.magazine-card:hover { transform: translateY(-5px); box-shadow: var(--sh-hover); }
.magazine-image-wrapper { overflow: hidden; aspect-ratio: 3 / 4; width: 100%; }
.magazine-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s var(--ease); cursor: zoom-in; }
.magazine-card:hover .magazine-img { transform: scale(1.05); }

.magazine-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.media-tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); margin-bottom: 10px; align-self: flex-start; }
.magazine-tag { background-color: var(--teal-soft); color: var(--teal-deep); }
.online-tag { background-color: #e3f5e9; color: #1f8a4c; }
.tv-tag { background-color: var(--ochre-soft); color: var(--ochre-deep); }
.magazine-details { margin-bottom: 15px; }
.magazine-name { font-size: 17px; font-weight: 800; color: var(--ink-strong); margin: 0 0 5px; font-family: var(--font-display); }
.magazine-topic { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }

/* 燈箱背景遮罩 */
.lightbox-modal {
  display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(20, 16, 12, 0.9); justify-content: center; align-items: center; padding: 20px; cursor: zoom-out;
}
.lightbox-content { max-width: 90%; max-height: 90vh; object-fit: contain; box-shadow: var(--sh-lg); border-radius: var(--r-md); transition: transform 0.3s var(--ease); }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; }

/* ================= 多日行程專屬樣式 ================= */
.itinerary-timeline { margin: 30px 0; padding-left: 40px; border-left: 3px solid var(--jl-soft); }
.timeline-item { position: relative; margin-bottom: 30px; padding-left: 24px; }
.timeline-day {
  position: absolute; left: -42px; top: 0; background: var(--brand); color: white;
  width: 60px; height: 30px; border-radius: var(--r-pill); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; box-shadow: var(--sh-sm);
}

.timeline-content {
  background: var(--surface); padding: 24px; border-radius: var(--r-lg);
  box-shadow: var(--sh-xs); border: 1px solid var(--hairline);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); 
}
.timeline-content:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.timeline-content h3 { margin: 0 0 10px 0; color: var(--ink-strong); font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.timeline-content p { color: var(--body-text); line-height: 1.7; font-size: 15px; margin: 0 0 12px 0; }

.timeline-tags span {
  display: inline-block; background: var(--jl-soft); color: var(--jl-deep);
  padding: 6px 12px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700;
  margin-right: 8px; margin-bottom: 8px; border: 1px solid #f6d2da;
}
.day-image { width: 100%; height: 220px; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 16px; margin-top: 8px; box-shadow: var(--sh-sm); }

/* 行程表四宮格 */
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 30px 0; }
.info-card-item {
  background: var(--surface); padding: 20px 15px; border-radius: var(--r-lg);
  box-shadow: var(--sh-xs); border: 1px solid var(--hairline);
  text-align: center; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.info-card-item:hover { transform: translateY(-3px); box-shadow: var(--sh-sm); }
.info-icon { font-size: 24px; margin-bottom: 8px; }
.info-label { font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 8px; letter-spacing: 0.4px; }
.info-value { font-size: 14px; color: var(--ink-strong); font-weight: 600; line-height: 1.5; }
.info-card-item.price-highlight { background: var(--jl-soft); border: 1px solid #f6d2da; }
.info-card-item.price-highlight .info-value { color: var(--jl-deep); font-size: 18px; font-weight: 800; }

/* 表格橫向滑動容器 */
.table-responsive {
  width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin-bottom: 30px; border-radius: var(--r-lg); box-shadow: var(--sh-sm);
  border: 1px solid var(--hairline);
}
.table-responsive table { width: 100%; white-space: nowrap !important; border-collapse: collapse; }
/* ================= 天氣行程專屬樣式 ================= */
.weather-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 24px; }
.weather-link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--hairline); color: var(--teal-deep);
  padding: 9px 20px; border-radius: var(--r-pill); font-weight: 700; font-size: 14px;
  box-shadow: var(--sh-xs); transition: all 0.2s var(--ease);
}
.weather-link-btn:hover { transform: translateY(-1px); box-shadow: var(--sh-sm); border-color: var(--teal); }

.season-now-badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--brand-soft); color: var(--brand-deep);
  font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: var(--r-pill); margin-bottom: 14px;
}

.temp-quick { display: flex; gap: 12px; margin: 4px 0 22px; flex-wrap: wrap; }
.temp-quick .temp-badge {
  flex: 1; min-width: 130px; text-align: center; padding: 14px 10px; border-radius: var(--r-md);
  font-weight: 700;
}
.temp-badge.high { background: var(--ochre-soft); color: var(--ochre-deep); }
.temp-badge.low { background: var(--teal-soft); color: var(--teal-deep); }
.temp-badge .temp-num { display: block; font-size: 24px; font-weight: 800; margin-top: 2px; }
.temp-badge .temp-label { font-size: 12px; opacity: 0.85; }

.step-list { list-style: none; counter-reset: step; padding-left: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.step-list li {
  counter-increment: step; position: relative; background: var(--surface-soft);
  border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 12px 16px 12px 46px; line-height: 1.6;
}
.step-list li::before {
  content: counter(step); position: absolute; left: 12px; top: 12px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-list li strong { color: var(--ink-strong); }

/* 銵𣬚�銵典�摰格聢 */
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 30px 0; }
.info-card-item {
  background: var(--surface); padding: 20px 15px; border-radius: var(--r-lg);
  box-shadow: var(--sh-xs); border: 1px solid var(--hairline);
  text-align: center; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.info-card-item:hover { transform: translateY(-3px); box-shadow: var(--sh-sm); }
.info-icon { font-size: 24px; margin-bottom: 8px; }
.info-label { font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 8px; letter-spacing: 0.4px; }
.info-value { font-size: 14px; color: var(--ink-strong); font-weight: 600; line-height: 1.5; }
.info-card-item.price-highlight { background: var(--p-color); border: 1px solid #f6d2da; }
.info-card-item.price-highlight .info-value { color: var(--p-color-t); font-size: 18px; font-weight: 800; }

/* 銵冽聢璈怠�皛穃�摰孵膥 */
.table-responsive {
  width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin-bottom: 30px; border-radius: var(--r-lg); box-shadow: var(--sh-sm);
  border: 1px solid var(--hairline);
}
.table-responsive table { width: 100%; white-space: nowrap !important; border-collapse: collapse; }

/* ================= [修正] iOS 膠囊滑動分頁 (電腦完全同規篩選按鈕) ================= */
.view-mode-switch {
  display: inline-flex !important; 
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;              /* 按鈕間距與篩選鈕一致 */
  margin: 0 !important;
  width: auto !important;           /* 取消撐滿 */
  flex-shrink: 0 !important;        /* 防止被擠壓 */
  background: transparent !important;
  border: none !important;
}

.view-mode-switch .btn-view {
  height: 38px !important;
  padding: 8px 18px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: var(--r-pill) !important;
  letter-spacing: 0.2px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  white-space: nowrap !important;
  transition: all 0.2s var(--ease);
  background-color: var(--surface-soft);
  color: var(--body-text);
  border: 1px solid transparent !important;
  box-shadow: none !important;
  flex-shrink: 0 !important;
}

.view-mode-switch .btn-view:hover {
  background-color: var(--surface-strong);
}

.view-mode-switch .btn-view.active {
  background-color: var(--brand) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-color: var(--brand) !important;
  box-shadow: var(--sh-sm) !important;
}

/* ================= [模組 3] 日曆控制列 ================= */
.calendar-header {
  display: flex; justify-content: space-between; align-items: center;
  background: #f8fafc; padding: 12px 20px; border-radius: 12px 12px 0 0;
  border: 1px solid #e2e8f0; border-bottom: none;
}
.calendar-nav-btn {
  background: #ffffff; border: 1px solid #cbd5e1; padding: 10px 22px;
  border-radius: 6px; cursor: pointer; font-weight: bold; color: #334155; transition: all 0.2s ease;
}
.calendar-nav-btn:hover {
  background: #f8fafc; border-color: var(--p-color, #008080);
  color: var(--brand, #008080); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.calendar-title { font-size: 18px; font-weight: bold; color: #1e293b; margin: 0; white-space: nowrap; }

/* ================= [模組 4] 日曆網格與行程卡片 ================= */
.calendar-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid #e2e8f0;
  background: #cbd5e1; gap: 1px; border-radius: 0 0 12px 12px; overflow: hidden;
}
.calendar-day-header { background: #f1f5f9; text-align: center; padding: 10px 0; font-weight: bold; color: #475569; font-size: 16px; }
.calendar-cell { background: #ffffff; min-height: 110px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.calendar-cell.empty { background: #f8fafc; }
.calendar-date-num { font-size: 14px; font-weight: bold; color: #64748b; margin-bottom: 4px; }
.calendar-cell.today .calendar-date-num {
  background: var(--p-color-t, #008080); color: #ffffff; width: 22px; height: 22px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.calendar-tour-pill {
  display: block; padding: 4px 6px; border-radius: 6px; font-size: 16px;
  text-decoration: none; background: #f8fafc; border-left: 4px solid #94a3b8;
  color: #1e293b; transition: transform 0.15s ease, box-shadow 0.15s ease; line-height: 1.3;
}
.calendar-tour-pill:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08); }
.calendar-tour-pill.flight-cx { border-left-color: #006564; background: #f0fdfa; }
.calendar-tour-pill.flight-jl { border-left-color: #cc0000; background: #fef2f2; }
.calendar-tour-pill.flight-peach { border-left-color: #b80065; background: #fdf2f8; }
.calendar-tour-pill.is-full { opacity: 0.6; background: #f1f5f9; border-left-color: #94a3b8; }
.calendar-tour-pill .pill-price { font-weight: bold; color: #e11d48; display: block; margin-top: 2px; }

/* ================= 頁尾 Footer ================= */
footer { background: var(--surface-soft); color: var(--muted); padding: 36px 24px; border-top: 1px solid var(--hairline); }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; line-height: 1.8; }
.footer-inner a { color: var(--teal); font-weight: 700; }
.footer-inner a:hover { color: var(--jl-deep); }


/* ==========================================================================
   📱 響應式佈局 (RWD) 集中收納區
========================================================================== */

/* ⭐ 平板適配 (992px 以下) */
@media (max-width: 992px) {
  .magazine-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ⭐ 平板與手機通用導覽列 (958px 以下) */
@media (max-width: 958px) {
  .nav {
    display: flex !important; flex-direction: row !important;
    justify-content: space-between !important; align-items: center !important;
    flex-wrap: nowrap !important; padding: 10px 16px !important; position: relative;
  }
  .brand { display: flex; align-items: center; gap: 8px; flex-shrink: 1; min-width: 0; }
  .brand-logo { height: 30px; width: auto; }
  .brand span { font-size: 17px !important; font-weight: 800; white-space: nowrap !important; }
  
  .mobile-header-controls {
    display: flex !important; align-items: center !important; gap: 8px !important;
    flex-shrink: 0 !important; position: relative !important; z-index: 100000 !important; 
  }
  .btn-line-mobile {
    display: inline-flex; align-items: center; gap: 4px; background-color: #06C755;
    color: #ffffff; font-size: 16px !important; font-weight: bold; padding: 8px 26px !important;
    border-radius: 50px; text-decoration: none;
    white-space: nowrap !important; transition: transform 0.15s ease;
  }
  .btn-line-mobile:active { transform: scale(0.95); }

  .hamburger {
    display: flex !important; position: relative !important; z-index: 100001 !important; margin: 0 !important;
  }
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--paper, #ffffff);
    padding: 24px; box-shadow: 0 16px 24px rgba(28, 47, 70, 0.15); flex-direction: column;
    border-top: 1px solid var(--line, #e2e8f0); z-index: 99999 !important;
  }
  .nav-menu.active { display: flex !important; }
  .nav-links {
    flex-direction: column; align-items: flex-start; width: 100%; gap: 18px;
    padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line, #e2e8f0);
  }
  .nav-actions { flex-direction: column; width: 100%; }
  .nav-actions .btn { width: 100%; text-align: center; }
  .line-desktop { display: none !important; }

  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ⭐ 手機核心適配區 (768px 以下) — 瘦身修復版！ */
@media (max-width: 840px) {
  .top-bar-inner { justify-content: center; text-align: center; font-size: 12px; line-height: 1.5; }
  .section { padding: 40px 16px; }
  .philosophy-box { padding: 30px 20px; }
  .quote-mark { left: 10px; top: 10px; }
  
  .media-section { padding: 60px 0; }
  .section-title { font-size: 28px; }
  .magazine-grid { grid-template-columns: 1fr; }

  /* 行程表收納與左欄固定 */
  .schedule-wrap { overflow-x: auto; }
  .schedule-table { min-width: 660px !important; font-size: 13px !important; }
  .schedule-table th, .schedule-table td { padding: 6px 6px !important; height: auto !important; }
  .flight-tag { padding: 5px 12px !important; font-size: 14px !important; }
  .active-price { font-size: 15px !important; padding: 2px 8px !important; }
  .del-price { font-size: 11px !important;padding: 4px 8px !important; }
  .status, .seat-text { font-size: 14px !important; }
 
  .table-responsive th:first-child,
  .table-responsive td:first-child {
    position: sticky; left: 0; background-color: var(--surface); z-index: 1;
    box-shadow: 4px 0 10px -4px rgba(34, 28, 21, 0.18); min-width: 58px !important;
    max-width: 78px !important; white-space: normal !important; word-break: normal !important; 
    line-height: 1.15 !important; padding: 7px 5px !important; border-right: 1px solid var(--hairline);
  }
  .table-responsive thead th:first-child { background-color: var(--surface-strong); z-index: 2; }
 
  .itinerary-timeline { padding-left: 0 !important; border-left: none !important; }
  .timeline-item { padding-left: 0 !important; margin-bottom: 35px !important; }
  .timeline-day {
    position: relative !important; left: 0 !important; top: 0 !important; transform: none !important;
    display: inline-block !important; width: auto !important; height: auto !important;
    padding: 6px 18px !important; border-radius: 20px !important; margin-bottom: -15px !important;
    font-size: 14px !important; box-shadow: 0 4px 10px rgba(236, 86, 121, 0.4) !important; z-index: 2 !important;
  }
  .timeline-content { width: 100% !important; padding: 24px 16px 16px 16px !important; }
 
  .info-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .info-card-item { padding: 10px 5px !important; border-radius: 8px !important; }
  .info-icon { font-size: 18px !important; margin-bottom: 4px !important; }
  .info-label { font-size: 11px !important; margin-bottom: 2px !important; }
  .info-value { font-size: 15px !important; line-height: 1.3 !important; }
  .info-card-item.price-highlight .info-value { font-size: 14px !important; }
 
  /* 篩選控制面板 (防擠壓保護) */
  .filter-control-panel { flex-direction: column; align-items: stretch; padding: 16px; gap: 16px;justify-content: flex-start !important; }
  .filter-row { flex-direction: column; align-items: flex-start;justify-content: flex-start !important; gap: 6px; }
  .filter-group-left { 
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  flex-grow: 1;
  gap: 8px !important;  
  margin: 0 !important; 
  padding: 0 !important;
  border: none !important;               /* 【關鍵】電腦版絕對不准有上方邊框，避免出現雙條線！ */
  width: 100% !important;
  
}
  .btn-toggle { width: 100%; }

  /* 【手機專屬修正】開關字體稍微調小、按鈕絕對不強制平分螢幕！ */
  .apple-switch-wrapper .apple-switch-text { font-size: 14px !important; }
  .apple-switch { width: 38px !important; height: 22px !important; }
  .apple-slider:before { height: 18px !important; width: 18px !important; }
  .apple-switch input:checked + .apple-slider:before { transform: translateX(16px) !important; }

  .view-mode-switch { margin: 0 !important; width: auto !important; gap: 4px !important; }
  .view-mode-switch .btn-view {
    flex: none !important;          /* 【殺掉原本的 flex: 1】絕對不准撐滿螢幕！ */
    height: 40px !important;        /* 手機高度縮減至 30px */
    padding: 4px 10px !important;   /* 內距縮小 */
    font-size: 13px !important;     /* 手機字體 13px 最俐落 */
    border-radius: 6px !important;
  }
  
  /* 日曆瘦身適配 */
  .calendar-header { padding: 10px; }
  .calendar-nav-btn { padding: 8px 30px; font-size: 14px; }
  .calendar-title { font-size: 16px; }
  
  #calendar-view-container, .calendar-grid, .calendar-header {
    width: 100% !important; box-sizing: border-box !important; margin-left: 0 !important; margin-right: 0 !important;
  }
  .calendar-cell { min-height: 70px !important; height: auto !important; padding: 2px 1px !important; box-sizing: border-box !important; overflow: visible !important; }
  .calendar-tour-pill { font-size: 12px !important; line-height: 1.15 !important; padding: 2px !important; margin-bottom: 2px !important; letter-spacing: -0.4px !important; word-break: normal !important; overflow-wrap: break-word !important; }
  .calendar-day-header { font-size: 12px !important; padding: 4px 0 !important; }
}

/* ⭐ 小手機極簡適配 (480px 以下) */
@media (max-width: 480px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ✨ 表格左右滑動引導動畫 (Swipe Hint) - 修正版
========================================================================== */

.table-responsive {
  position: relative; 
}

/* 覆蓋在表格上方的透明遮罩 */
.swipe-hint-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  /* 兩側透明、中間微微白色的漸層，避免完全遮蓋文字 */
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 15%, rgba(255,255,255,0.4) 85%, rgba(255,255,255,0) 100%);
  z-index: 10;
  pointer-events: none; /* 讓客人的點擊可以穿透它，不卡手 */
  transition: opacity 0.4s ease, visibility 0.4s ease; 
  
  /* 【修正 1】改為 block 排版，讓裡面的膠囊可以啟動 sticky 吸附效果 */
  display: block;
  text-align: center; 
  /* 【修正 2】已徹底刪除自動消失動畫！它現在會一直等你碰到為止！ */
}

/* 隱藏時的狀態 */
.swipe-hint-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
}

/* 粉色滑動膠囊 */
.swipe-pill {
  /* 【修正 3：神技來了！】讓膠囊黏在螢幕視窗偏上方 */
  position: sticky;
  top: 30vh; /* 永遠吸附在距離螢幕頂部約 30% 的絕佳視線位置！ */
  
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 50px; /* 如果一開始沒捲動，預設在表格往下 50px 處 */
  
  background-color: var(--brand);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(var(--brand-rgb), 0.35);
  animation: handSwipeLeftRight 1.5s infinite ease-in-out;
}

.swipe-pill svg {
  width: 22px; 
  height: 22px;
}

/* 左右滑動的動畫 */
@keyframes handSwipeLeftRight {
  0% { transform: translateX(10px); }
  50% { transform: translateX(-15px); }
  100% { transform: translateX(10px); }
}

/* 電腦版不需要滑動，可以直接隱藏 */
@media (min-width: 769px) {
  .swipe-hint-overlay { display: none !important; }
}