/* SNAP WISE 官網：深海藍＋暖沙米白，金色取自 logo，只用在品牌標記、數字與主要按鈕
   字體：中文思源黑體（Noto Sans TC／SC），英文字母 Helvetica Neue（系統字，沒有的裝置退到 Arial）
   版面：每個區塊（.page）剛好一個螢幕高，滑一下換一頁（scroll-snap）；底部有細體 SNAP WISE 的向下指引 */
:root {
  --deep: #0f3b4f;
  --abyss: #092331;
  --lagoon: #2f8f8e;
  --lagoon-soft: #d5ebe6;
  --sand: #f4ecdf;
  --sand-2: #e8dcc8;
  --paper: #fbf7f0;
  --ink: #132730;
  --ink-2: #4b5d64;
  --line: #d9cbb3;
  --gold: #cba45c;
  --gold-deep: #8a6a2b;

  --latin: "Helvetica Neue", Helvetica, Arial;
  --body: var(--latin), "Noto Sans TC", sans-serif;
  --display: var(--body);
  /* 細體：Mac 用 Helvetica Neue Light，其他裝置用已載入的思源黑體 Light、Segoe UI Light、Roboto Light */
  --thin: "Helvetica Neue", "Noto Sans TC", "Noto Sans SC", "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --top-h: 72px;
  --cue-room: clamp(76px, 11vh, 104px);
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
.lang-zh-Hans { --body: var(--latin), "Noto Sans SC", sans-serif; --display: var(--body); }
.lang-en { --body: var(--latin), sans-serif; --display: var(--body); }

*, *::before, *::after { box-sizing: border-box; }
/* hover 效果都包在 (hover: hover) 裡：手機點過的元素會一直停在 hover 樣式，版面一動就像在亂跳 */
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; scroll-padding-top: var(--top-h); -webkit-text-size-adjust: 100%; }
/* 手機、平板用手指滑：不強制吸附，停在某頁開頭附近才對齊（客戶 11/25：手機英文版會一直亂跳）。
   英文字多，手機上大部分頁面都比螢幕高，強制吸附加上網址列伸縮時畫面高度一直變，會把畫面拉來拉去 */
@media (hover: none) and (pointer: coarse) { html { scroll-snap-type: y proximity; } }
html:has(dialog[open]) { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 1rem/1.8 var(--body); letter-spacing: .01em; }
body.lang-en { line-height: 1.65; letter-spacing: 0; }
/* 中文不把詞拆到兩行（客戶指定）：只在標點、空格處換行；一段太長放不下時才在行尾斷開 */
body.lang-zh-Hant, body.lang-zh-Hans { word-break: keep-all; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--deep); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.ph { display: block; width: 100%; height: 100%; min-height: 120px; background: linear-gradient(160deg, #1d6a7a, var(--deep) 60%, var(--abyss)); }


/* ---------- 按鈕 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn--lg { min-height: 52px; padding: 12px 30px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: var(--abyss); }
@media (hover: hover) { .btn--gold:hover { background: #dbb978; } }
.btn--sand { background: var(--sand); color: var(--deep); }
@media (hover: hover) { .btn--sand:hover { background: #fff; } }
.btn--deep { background: var(--deep); color: var(--sand); }
@media (hover: hover) { .btn--deep:hover { background: var(--abyss); } }
.icon { width: 22px; height: 22px; flex: none; }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--deep); font-weight: 500; text-underline-offset: 4px; }
.link .icon { width: 18px; height: 18px; }

/* ---------- 頂欄 ---------- */
/* logo 是金色，淺色底會看不到：一律用和頁尾一樣的深藍底（首頁影片不再墊在頂欄底下） */
.top { position: sticky; top: 0; z-index: 40; color: #fff; background: var(--abyss); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.top__inner { display: flex; align-items: center; gap: 24px; height: var(--top-h); max-width: calc(1360px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 44px; height: 44px; }
.brand__word { display: grid; line-height: 1.15; }
.brand__word b { font: 700 1.125rem/1.1 var(--body); letter-spacing: .14em; }
.brand__word small { font-size: .625rem; letter-spacing: .28em; opacity: .75; }
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
/* 選單一格一格的按鈕 */
.nav__list { display: flex; gap: 8px; }
.nav__link { display: block; padding: 7px 18px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: rgba(9,35,49,.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); text-decoration: none; font-size: .9688rem; font-weight: 500; line-height: 1.5; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
@media (hover: hover) { .nav__link:hover { background: rgba(255,255,255,.18); border-color: #fff; } }
.nav__link.is-current { background: var(--sand); border-color: var(--sand); color: var(--abyss); }
.langs { display: flex; gap: 2px; font-size: .8125rem; }
.langs a { padding: 4px 8px; border-radius: 6px; text-decoration: none; opacity: .72; }
@media (hover: hover) { .langs a:hover { opacity: 1; } }
.langs a[aria-current] { opacity: 1; font-weight: 700; box-shadow: inset 0 0 0 1px currentColor; }
.top__cta { flex: none; min-height: 50px; padding: 12px 30px; font-size: 1.0625rem; font-weight: 700; letter-spacing: .04em; }
.langs--menu { display: none; }
.langs--top { flex: none; margin-left: -8px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; margin-right: -8px; }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; margin-inline: auto; transition: transform .25s var(--ease), background-color .2s; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -7px; }
.menu-btn__bars::after { top: 7px; }
.nav-open .menu-btn__bars { background: transparent; }
.nav-open .menu-btn__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-btn__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 整頁區塊與向下指引 ---------- */
.page { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - var(--top-h)); min-height: calc(100svh - var(--top-h)); padding-block: clamp(24px, 5vh, 56px) var(--cue-room); scroll-snap-align: start; }
.cue { position: absolute; z-index: 2; left: 50%; bottom: clamp(12px, 2.6vh, 26px); transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; padding: 6px 12px; color: inherit; text-decoration: none; opacity: .72; transition: opacity .2s; }
@media (hover: hover) { .cue:hover { opacity: 1; } }
/* site.js：比螢幕高的頁面（矮螢幕、展開內容）在底部多一個吸附點，下半部才捲得到 */
.page.is-tall .cue { scroll-snap-align: end; }
.cue__word { font: 300 .8125rem/1 var(--thin); letter-spacing: .42em; margin-right: -.42em; white-space: nowrap; }
.cue__line { position: relative; width: 1px; height: clamp(26px, 4.4vh, 42px); overflow: hidden; background: color-mix(in srgb, currentColor 28%, transparent); }
.cue__line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 45%; background: currentColor; animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(230%); } }

/* ---------- 首頁：影片滿版，文字在左邊的深色漸層上（客戶 11/16 示意影片）；手機文字在下方（響應式那段） ---------- */
.hero.page { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); padding: 0; color: #fff; overflow: hidden; background: var(--abyss); }
.hero__media { position: absolute; inset: 0; z-index: 0; background: var(--deep); }
.hero__img, .hero__media .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__pause { position: absolute; z-index: 2; right: 20px; top: 20px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(9,35,49,.35); color: #fff; cursor: pointer; }
.hero__pause[hidden] { display: none; }
@media (hover: hover) { .hero__pause:hover { background: rgba(9,35,49,.6); } }
.hero__pause .icon { width: 18px; height: 18px; }
.hero__pause .i-play, .hero__pause.is-paused .i-pause { display: none; }
.hero__pause.is-paused .i-play { display: block; }
/* 左邊深色、往右慢慢淡掉：分很多段漸變，看不出分界線；文字底下夠暗，白字才看得清楚 */
.hero__media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--abyss) 0%, rgba(9,35,49,.95) 14%, rgba(9,35,49,.86) 25%, rgba(9,35,49,.7) 36%, rgba(9,35,49,.48) 47%, rgba(9,35,49,.26) 58%, rgba(9,35,49,.1) 68%, rgba(9,35,49,.02) 76%, rgba(9,35,49,0) 82%); }
.hero__body { position: relative; z-index: 1; text-shadow: 0 1px 24px rgba(9,35,49,.45); container-type: inline-size; display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 6vh, 72px) clamp(24px, 3.6vw, 64px) var(--cue-room) clamp(24px, 6vw, 120px); }
/* 每段各佔一行，第一句和後面兩句之間空一點；字級跟著文字區寬度（cqi），最長的一行剛好放得下。
   中文字級和英文看起來差不多大（中文字面比英文字母大，所以字級設得比英文小） */
.hero__title { font: 700 min(3.75rem, 14cqi)/1.18 var(--display); letter-spacing: .04em; word-break: keep-all; }
.lang-en .hero__title { font-size: min(4rem, 9.2cqi); letter-spacing: -.01em; line-height: 1.08; }
.hero__line { display: block; animation: rise .9s var(--ease) both; }
.hero__line + .hero__line { margin-top: .4em; animation-delay: .18s; }
.hero__line span { display: block; white-space: nowrap; }
.hero .cue { left: 22%; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__sub { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: clamp(18px, 3vh, 30px); font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 500; animation: rise .9s .36s var(--ease) both; }
.hero__sub li { padding-inline: 14px; border-left: 1px solid rgba(255,255,255,.55); line-height: 1.3; }
.hero__sub li:first-child { padding-left: 0; border-left: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4.4vh, 44px); animation: rise .9s .5s var(--ease) both; }

/* ---------- 區塊共用 ---------- */
.sec-title { font: 700 clamp(1.75rem, 3.4vw, 2.75rem)/1.3 var(--display); letter-spacing: .02em; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
.lang-en .sec-title { letter-spacing: 0; line-height: 1.2; }
.sec-lead { margin-top: 14px; color: var(--ink-2); font-size: 1.0625rem; max-width: 40em; }

/* 橫向卡片列（行程卡片、旅客故事） */
.rail__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { flex: none; scroll-snap-align: start; }
.rail__nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.is-static .rail__nav { display: none; }
.rail__btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--deep); border-radius: 50%; background: none; color: var(--deep); cursor: pointer; transition: background-color .2s, color .2s; }
@media (hover: hover) { .rail__btn:hover:not(:disabled) { background: var(--deep); color: var(--sand); } }
.rail__btn:disabled { opacity: .3; cursor: default; }
.rail__btn .icon { width: 20px; height: 20px; }
.rail__count { min-width: 3.4em; font-size: .875rem; color: var(--ink-2); text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- 行程 ---------- */
.journeys { background: var(--sand); }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(14px, 2.6vh, 28px); }
.cat { min-height: 44px; padding: 8px 20px; border: 1.5px solid var(--deep); border-radius: 999px; background: none; color: var(--deep); font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s; }
@media (hover: hover) { .cat:hover { background: rgba(15,59,79,.08); } }
.cat[aria-selected="true"] { background: var(--deep); color: var(--sand); }
.panel { margin-top: clamp(14px, 2.4vh, 26px); }
.panel[hidden] { display: none; }
.panel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(12px, 2.2vh, 22px); }
.panel__en { margin-bottom: 2px; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.panel__intro { color: var(--ink-2); font-size: 1.0625rem; max-width: 44em; }
.card { width: clamp(220px, 21vw, 280px); }
.card__btn { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; max-height: 46svh; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: var(--deep); color: #fff; text-align: left; cursor: pointer; isolation: isolate; }
.card__img, .card__img img, .card__img .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__img img { transition: transform .6s var(--ease); }
.card__btn::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(9,35,49,.88), rgba(9,35,49,0) 56%); }
.card__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; gap: 2px; padding: 18px; }
.card__name { font: 700 1.25rem/1.3 var(--display); }
.card__en { font-size: .8125rem; opacity: .85; }
.card__icon { position: absolute; z-index: 2; top: 12px; right: 12px; width: 36px; height: 36px; padding: 8px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(9,35,49,.3); transition: background-color .2s, color .2s; }
@media (hover: hover) { .card__btn:hover .card__img img { transform: scale(1.05); } }
@media (hover: hover) { .card__btn:hover .card__icon { background: var(--sand); color: var(--abyss); } }
.panel__empty { display: grid; justify-items: start; gap: 18px; padding: clamp(24px, 4vw, 40px); border: 1.5px dashed var(--line); border-radius: var(--r); color: var(--ink-2); }

/* 行程說明視窗 */
.sheet { width: min(940px, calc(100% - 32px)); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink); overflow: hidden; }
.sheet[open] { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); animation: sheet-in .35s var(--ease); }
.sheet::backdrop { background: rgba(9,35,49,.62); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sheet__img { position: relative; background: var(--deep); }
.sheet__img img, .sheet__img .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet__body { display: grid; align-content: start; gap: 16px; max-height: min(86svh, 720px); overflow-y: auto; padding: clamp(28px, 4vw, 44px); }
.sheet__name { padding-right: 44px; font: 700 clamp(1.5rem, 2.4vw, 2rem)/1.3 var(--display); color: var(--deep); }
.sheet__en { margin-top: -12px; font-size: .875rem; color: var(--ink-2); }
.sheet__desc { font-size: 1.0625rem; }
.sheet__facts { display: grid; gap: 14px; padding: 16px 20px; border-radius: 12px; background: var(--sand); }
.sheet__facts dt { margin-bottom: 4px; font-size: .8125rem; font-weight: 700; color: var(--deep); }
.sheet__facts dd { font-size: .9375rem; color: var(--ink-2); }
.sheet__facts li { position: relative; padding-left: 14px; }
.sheet__facts li::before { content: ""; position: absolute; left: 0; top: .78em; width: 5px; height: 5px; border-radius: 50%; background: var(--lagoon); }
.sheet__body .btn { justify-self: start; margin-top: 4px; }
.sheet__close, .qr__close { position: absolute; z-index: 3; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--sand); color: var(--deep); cursor: pointer; }
@media (hover: hover) { .sheet__close:hover, .qr__close:hover { background: var(--sand-2); } }

/* ---------- WeChat QR Code 視窗 ---------- */
.qr { width: min(380px, calc(100% - 32px)); max-width: none; max-height: calc(100svh - 32px); padding: 30px 26px 26px; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink); text-align: center; overflow-y: auto; overscroll-behavior: contain; }
.qr[open] { display: grid; justify-items: center; gap: 10px; animation: sheet-in .35s var(--ease); }
.qr::backdrop { background: rgba(9,35,49,.62); }
.qr__close { top: 10px; right: 10px; }
.qr__title { padding-inline: 34px; font: 700 clamp(1.1875rem, 5vw, 1.375rem)/1.35 var(--display); color: var(--deep); text-wrap: balance; }
.qr__title .icon { display: inline-block; width: 1.2em; height: 1.2em; margin-right: 6px; vertical-align: -.25em; color: #07a650; }
.qr__img { width: min(240px, 62vw); margin-top: 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.qr__name { font-weight: 700; color: var(--deep); }
.qr__how { font-size: .9375rem; line-height: 1.65; color: var(--ink-2); }
.qr__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.qr__actions .icon { width: 20px; height: 20px; }
.qr__how--phone, .qr__open { display: none; }
/* 手機：說明改成存圖再用微信掃，多一顆打開微信 */
@media (hover: none) and (pointer: coarse) {
  .qr__how--desk { display: none; }
  .qr__how--phone { display: block; }
  .qr__open { display: inline-flex; }
}

/* ---------- 品牌優勢 ---------- */
.why { background: var(--deep); color: var(--sand); }
.why .sec-title { color: #fff; max-width: 18em; }
/* 8 格：格子之間的 1px 空隙露出底色當線，每條線一樣粗 */
.why__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: clamp(20px, 4vh, 52px); border: 1px solid var(--why-line); background: var(--why-line); --why-line: rgba(255,255,255,.24); }
.why__cell { padding: clamp(16px, 3vh, 30px) clamp(16px, 2vw, 28px); background: var(--deep); }
.why__icon { width: 38px; height: 38px; color: var(--gold); stroke-width: 1.3; }
.why__name { margin-top: clamp(10px, 1.8vh, 18px); font: 700 1.3125rem/1.35 var(--display); color: #fff; }
.why__text { margin-top: 8px; color: #cfdfe1; font-size: .9688rem; text-wrap: pretty; }
.stats__item { display: grid; align-content: start; gap: 10px; }
.stats__value { font: 700 clamp(2.25rem, 4vw, 3.5rem)/1 var(--display); color: #fff; letter-spacing: -.01em; }
.stats__value small { font-size: .38em; margin-left: 6px; letter-spacing: 0; color: var(--gold); }
.stats__label { max-width: 16em; font-size: .9375rem; color: #cfdfe1; text-wrap: balance; }

/* ---------- 關於我們 ---------- */
.about { background: var(--paper); }
.about__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__title { font: 700 clamp(2.25rem, 4.2vw, 3.5rem)/1.1 var(--display); color: var(--deep); letter-spacing: 0; text-wrap: balance; }
.about__sub { margin-top: 10px; font: 400 1.125rem/1.5 var(--display); color: var(--gold-deep); }
.about__text > p:not(.about__sub) { margin-top: clamp(12px, 2.2vh, 22px); font-size: 1rem; line-height: 1.9; max-width: 36em; }
.lang-en .about__text > p:not(.about__sub) { line-height: 1.7; }
.about__toggle { display: none; margin-top: 10px; padding: 8px 0; border: 0; background: none; text-decoration: underline; cursor: pointer; }
.about__photo { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--top-h) - 190px); border-radius: var(--r); overflow: hidden; }
.about__photo img, .about__photo .ph { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 旅客評價（故事＋評價併成一頁，深藍底） ---------- */
.stories { background: var(--deep); color: var(--sand); }
.stories .sec-title { color: #fff; }
.stories .link { color: var(--sand); }
.stories__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: clamp(18px, 3.4vh, 36px); }
.story { container-type: inline-size; }
/* 照片和文字一樣寬，高度取「寬度的 16:10」和「螢幕高度 30%」比較小的（用 aspect-ratio＋max-height 的話，照片寬度會跟著縮） */
.story__img { position: relative; height: min(62.5cqi, 30svh); border-radius: var(--r); overflow: hidden; background: var(--abyss); }
.story__img img, .story__img .ph { width: 100%; height: 100%; object-fit: cover; }
.story__meta { display: flex; flex-wrap: wrap; margin-top: 16px; font: 700 1.125rem/1.4 var(--display); color: #fff; }
.story__meta span + span { margin-left: 12px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.3); }
.story__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.story__tags li { padding: 2px 12px; border-radius: 999px; background: rgba(213,235,230,.14); color: var(--lagoon-soft); font-size: .8125rem; }
.story__text { margin-top: 10px; color: #cfdfe1; font-size: .9688rem; line-height: 1.75; text-wrap: pretty; }
.review { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 2px solid var(--gold); }
.review__quote { font-size: .9688rem; line-height: 1.75; color: #fff; text-wrap: pretty; }
.lang-en .review__quote { font-style: italic; line-height: 1.6; }
.review__who { font-weight: 700; font-size: .9375rem; color: var(--gold); }
.review__who span { margin-left: 10px; font-weight: 400; color: #9fc2c6; }
.rail--stories .rail__nav { margin-top: 12px; }
.stories .rail__btn { border-color: var(--sand); color: var(--sand); }
@media (hover: hover) { .stories .rail__btn:hover:not(:disabled) { background: var(--sand); color: var(--deep); } }
.stories .rail__count { color: #cfdfe1; }

/* ---------- 行前須知（左）＋諮詢表單（右），淺米色底 ---------- */
.plan { background: var(--sand); }
/* 靠上對齊：置中的話每次展開答案，整串題目都會跟著往上移 */
.plan.page { justify-content: flex-start; padding-block: clamp(20px, 5vh, 64px) clamp(16px, 3vh, 40px); }
.plan__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
/* 兩個標題都不換行，字級跟著欄寬縮 */
.plan__title { font-size: clamp(1.5rem, 2.4vw, 2.25rem); white-space: nowrap; }
.lang-en .plan__title { font-size: clamp(1.25rem, 2vw, 1.75rem); }
.faq__list { margin-top: clamp(16px, 3vh, 32px); border-top: 1.5px solid var(--deep); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: clamp(10px, 1.8vh, 16px) 0; color: var(--ink); font-weight: 500; line-height: 1.55; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .faq__item summary:hover { color: var(--gold-deep); } }
/* is-open 由 site.js 切換：收合動畫還沒跑完，標題就先變回原色 */
.faq__item.is-open summary { color: var(--gold-deep); }
.faq__icon { width: 20px; height: 20px; margin-top: 2px; color: var(--gold-deep); transition: transform .3s var(--ease); }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 2.4em clamp(12px, 2vh, 18px) 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.8; text-wrap: pretty; }
.faq__a p + p { margin-top: .5em; }
.lang-en .faq__a { line-height: 1.65; }

/* ---------- 諮詢表單 ---------- */
.contact .sec-lead { margin-top: 4px; font-size: 1rem; }
.form { margin-top: clamp(10px, 1.8vh, 20px); padding: clamp(18px, 2vw, 26px); border-radius: 20px; background: var(--paper); box-shadow: 0 30px 60px -40px rgba(9,35,49,.45); }
.form__fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(10px, 1.6vh, 14px) 12px; }
.form__fields > * { grid-column: 1 / -1; }
.form__fields > .field--half { grid-column: auto; }
.field { display: grid; align-content: start; gap: 4px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { display: flex; align-items: baseline; gap: 8px; padding: 0; font-size: .9375rem; font-weight: 500; line-height: 1.5; }
.field legend { margin-bottom: 4px; }
.req { font-size: .75rem; font-weight: 500; color: var(--gold-deep); }
.opt { font-size: .75rem; font-weight: 400; color: var(--ink-2); }
.field input, .field textarea { width: 100%; min-height: 44px; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.field textarea { min-height: 62px; height: 62px; line-height: 1.45; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lagoon); box-shadow: 0 0 0 3px rgba(47,143,142,.2); }
.field input:disabled { background: var(--sand); cursor: not-allowed; }
.field input::placeholder, .field textarea::placeholder { color: #93a0a4; }
.field.has-err input, .field.has-err .pick__face { border-color: #b3462f; }
.field__err { color: #a23a25; font-size: .875rem; }
.pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pick__opt { position: relative; display: grid; }
.pick__opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pick__face { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: .8125rem; font-weight: 500; transition: border-color .2s, background-color .2s; }
.pick__face .icon { width: 24px; height: 24px; color: var(--ic, var(--deep)); }
.pick__opt.chan--instagram { --ic: #d62976; }
.pick__opt.chan--line { --ic: #06c755; }
.pick__opt.chan--whatsapp { --ic: #1fa855; }
.pick__opt.chan--wechat { --ic: #07a650; }
.pick__opt input:checked + .pick__face { border-color: var(--deep); background: var(--deep); color: #fff; }
.pick__opt input:checked + .pick__face .icon { color: var(--gold); }
.pick__opt input:focus-visible + .pick__face { outline: 3px solid var(--lagoon); outline-offset: 2px; }
.interest { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--lagoon-soft); }
.interest[hidden] { display: none; }
.interest__label { font-size: .8125rem; color: #1d5f5e; }
.interest__name { font-weight: 700; color: var(--deep); }
.interest__clear { margin-left: auto; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--deep); cursor: pointer; }
@media (hover: hover) { .interest__clear:hover { background: rgba(15,59,79,.08); } }
.interest__clear .icon { width: 18px; height: 18px; }
.form__privacy { margin-top: -4px; font-size: .8125rem; line-height: 1.6; color: var(--ink-2); }
.form__fail { color: #a23a25; font-size: .9375rem; }
.form__done { display: grid; justify-items: start; gap: 12px; }
.form__done[hidden], .form__done [hidden] { display: none; }
.form__done-title { font: 700 1.5rem/1.4 var(--display); color: var(--deep); }
.form__demo { font-size: .8125rem; color: var(--ink-2); }
.form.is-done .form__fields { display: none; }
.chan { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px 8px 12px; border-radius: 999px; background: var(--c); color: #fff; text-decoration: none; font-weight: 500; font-size: .9375rem; }
@media (hover: hover) { .chan:hover { filter: brightness(1.08); } }
.chan--instagram { --c: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.chan--line { --c: #06c755; }
.chan--whatsapp { --c: #1fa855; }
.chan--wechat { --c: #07a650; }

/* ---------- 頁尾 ---------- */
.foot { background: var(--abyss); color: #c9d8db; padding-top: 64px; scroll-snap-align: end; }
.foot__grid { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding-bottom: 56px; }
.foot__logo { width: 150px; height: 150px; }
.foot__main { display: grid; gap: 24px; }
.foot__info { display: grid; gap: 14px; }
.foot__info div { display: grid; grid-template-columns: 6.5em 1fr; align-items: baseline; }
.lang-zh-Hant .foot__info div, .lang-zh-Hans .foot__info div { grid-template-columns: 4.5em 1fr; }
.foot__info dt { color: #8eaab0; font-size: .875rem; }
.foot__info dd { color: #fff; overflow-wrap: anywhere; }
.foot__info a { color: #fff; text-underline-offset: 4px; }
/* 四個 app 圖示：用各家品牌色（顏色沿用 .chan--*） */
.foot__apps { display: flex; flex-wrap: wrap; gap: 12px; }
.app { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--c); color: #fff; transition: transform .2s; }
.app .icon { width: 26px; height: 26px; }
@media (hover: hover) { .app:hover { transform: translateY(-2px); } }
.foot__map { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--deep); transition: box-shadow .2s; }
.foot__map iframe { display: block; width: 100%; height: 100%; border: 0; pointer-events: none; }
@media (hover: hover) { .foot__map:hover { box-shadow: 0 0 0 2px var(--gold); } }
.foot__bottom { padding-block: 20px 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8125rem; text-align: center; }

/* ---------- 懸浮聯絡按鈕 ---------- */
.float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: opacity .3s, visibility .3s; }
/* 到了行前須知＋表單那頁先藏起來：筆電上會蓋住表單右側（表單本身就是聯絡方式，頁尾也有 app 圖示） */
.float.is-away { opacity: 0; visibility: hidden; }
.float__list { display: flex; flex-direction: column; gap: 10px; }
.float__btn { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--abyss); color: #fff; border: 1px solid rgba(244,236,223,.35); box-shadow: 0 8px 20px -8px rgba(9,35,49,.6); transition: background-color .2s, color .2s, transform .2s; }
.float__btn .icon { width: 24px; height: 24px; stroke-width: 1.5; }
@media (hover: hover) { .float__btn:hover { background: var(--sand); color: var(--abyss); transform: translateY(-2px); } }
.float__toggle { display: none; width: 56px; height: 56px; border: 1px solid rgba(244,236,223,.35); border-radius: 50%; background: var(--abyss); color: #fff; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(9,35,49,.7); }
.float.is-open .float__toggle { background: var(--sand); color: var(--abyss); }
.float__toggle .icon { width: 28px; height: 28px; }
.float__close { display: none; }

/* ---------- 響應式 ---------- */
@media (max-width: 1180px) {
  .top__inner { gap: 16px; }
  .nav { gap: 16px; }
  .nav__list { gap: 6px; }
  .nav__link { padding-inline: 13px; }
  .top__cta { padding-inline: 22px; }
}
/* 選單五顆按鈕放得下之前，先只留 logo 圖示 */
@media (min-width: 1101px) and (max-width: 1320px) {
  .brand__word { display: none; }
}
/* 頂欄改成選單按鈕 */
@media (max-width: 1100px) {
  :root { --top-h: 64px; }
  .menu-btn { display: block; }
  .top__cta { margin-left: auto; min-height: 44px; padding: 10px 20px; font-size: 1rem; }
  /* 選單蓋滿畫面、自己捲動就好；不把整頁設成 overflow: hidden（iOS Safari 鎖整頁時，整頁吸附的背景位置可能跑掉） */
  .nav { position: fixed; inset: var(--top-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 24px; margin: 0; padding: 20px var(--gutter) 40px; background: var(--sand); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; display: none; }
  .nav-open .nav { display: flex; }
  .nav__list { flex-direction: column; gap: 10px; }
  .nav__link { padding: 14px 20px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; font: 700 1.25rem/1.3 var(--display); }
  .nav__link.is-current { background: var(--deep); border-color: var(--deep); color: var(--sand); }
  .langs--top { margin-left: -8px; }
  .langs--menu { font-size: 1rem; gap: 8px; }
  .langs--menu a { padding: 8px 14px; }
}
/* 手機、直式平板：影片一樣滿版，文字放在下方，漸層改成從下往上 */
@media (max-width: 900px) {
  .hero.page { grid-template-columns: 1fr; align-content: end; }
  .hero__media::after { background: linear-gradient(0deg, var(--abyss) 0%, rgba(9,35,49,.95) 20%, rgba(9,35,49,.88) 32%, rgba(9,35,49,.72) 44%, rgba(9,35,49,.46) 54%, rgba(9,35,49,.2) 63%, rgba(9,35,49,.06) 71%, rgba(9,35,49,0) 78%); }
  .hero__body { container-type: normal; padding: 18px var(--gutter) var(--cue-room); }
  .hero__title { font-size: clamp(2rem, 6vw, 2.75rem); }
  .lang-en .hero__title { font-size: clamp(1.75rem, 5.6vw, 2.5rem); }
  .hero__line + .hero__line { margin-top: .3em; }
  .hero .cue { left: 50%; }
}
@media (max-width: 960px) {
  .card { width: clamp(220px, 30vw, 280px); }
  .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__grid, .plan__grid { grid-template-columns: 1fr; }
  .about__grid { gap: 20px; }
  .about__photo { order: -1; aspect-ratio: 16 / 10; max-height: 30svh; }
  .plan__grid { gap: 36px; }
  /* 「開始規劃」直接停在表單：表單這半頁也是一個吸附點 */
  .contact { scroll-snap-align: start; scroll-margin-top: 16px; }
  .rail--stories .story, .rail--stories .review { width: min(380px, 62vw); }
  .review { padding: 20px; border: 0; border-radius: var(--r); background: rgba(255,255,255,.07); }
  .foot__grid { grid-template-columns: auto minmax(0, 1fr); }
  .foot__map { grid-column: 1 / -1; }
}
@media (min-width: 961px) {
  .pick__face { grid-auto-flow: column; justify-content: center; align-items: center; gap: 6px; padding: 9px 4px; }
  .pick__face .icon { width: 20px; height: 20px; }
  /* 桌機：兩則故事各佔一欄，兩則評價疊在第三欄 */
  .rail--stories .rail__track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vh, 24px) clamp(24px, 3vw, 40px); overflow: visible; scroll-snap-type: none; }
  .story { grid-row: span 2; }
  .review { grid-column: 3; }
}
/* 窄的桌機、橫放平板：三欄的字比較擠，評價照片扁一點、字小一點，評價頁才放得進一個畫面 */
@media (min-width: 961px) and (max-width: 1180px) {
  .story__img { height: min(50cqi, 30svh); }
  .story__text, .review__quote { font-size: .9063rem; line-height: 1.6; }
}
/* 矮的桌機、筆電畫面（例如 1366×768、1536×864 扣掉瀏覽器工具列）：上下留白、標題、評價照片縮小，每頁才放得進一個畫面 */
@media (min-width: 961px) and (max-height: 760px) {
  :root { --cue-room: 62px; }
  .page { padding-top: clamp(14px, 3vh, 28px); }
  .cue { bottom: 8px; gap: 6px; }
  .cue__line { height: 22px; }
  .sec-title { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
  .cats { margin-top: 10px; }
  .panel { margin-top: 12px; }
  .panel__head { margin-bottom: 10px; }
  .panel__intro { font-size: 1rem; line-height: 1.6; }
  .why__grid { margin-top: 16px; }
  .why__cell { padding: 14px 18px; }
  .why__name { margin-top: 6px; }
  .why__text { line-height: 1.6; }
  .about__text > p:not(.about__sub) { margin-top: 10px; line-height: 1.75; }
  .lang-en .about__text > p:not(.about__sub) { line-height: 1.6; }
  .stories__head { margin-bottom: 12px; }
  .story__img { height: min(62.5cqi, 25svh); }
  .story__meta { margin-top: 10px; }
  .story__tags { margin-top: 6px; }
  .story__text, .review__quote { font-size: .9063rem; line-height: 1.6; }
  .faq__item summary { padding-block: 8px; }
  .faq__a { line-height: 1.65; }
  .plan.page { padding-block: 14px 10px; }
  .plan__title { font-size: clamp(1.375rem, 2.2vw, 1.875rem); }
  .lang-en .plan__title { font-size: clamp(1.25rem, 1.9vw, 1.625rem); }
  .faq__list { margin-top: 12px; }
  .contact .sec-lead { font-size: .9375rem; }
  .form { margin-top: 10px; padding: 16px 20px; }
  .form__fields { gap: 8px 12px; }
  .field input { min-height: 40px; padding-block: 7px; }
  .field textarea { min-height: 58px; height: 58px; }
  .pick__face { padding-block: 7px; }
  .form .btn--lg { min-height: 46px; padding-block: 8px; }
}
@media (max-width: 760px) {
  :root { --cue-room: 80px; }
  .page { padding-top: clamp(16px, 3vh, 40px); }
  .plan.page { padding-block: clamp(16px, 3vh, 40px); }
  .cue { bottom: 12px; }
  .cue__line { height: 28px; }
  .panel__intro { font-size: .9688rem; line-height: 1.7; }
  .panel__head .rail__nav { display: none; }
  .card { width: min(60vw, 280px); }
  .rail__track { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .sheet { width: 100%; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .sheet[open] { display: block; max-height: 92svh; overflow-y: auto; overscroll-behavior: contain; animation-name: sheet-up; }
  @keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .sheet__close { position: sticky; top: 12px; margin: 12px 12px -56px auto; }
  /* 客戶照片多是直式：框接近正方形，偏上裁（人物的臉通常在上半部）；有指定裁切重點的照片用照片自己的設定 */
  .sheet__img { aspect-ratio: 1 / 1; max-height: 52svh; }
  .sheet__img img { object-position: 50% 30%; }
  .sheet__body { max-height: none; overflow: visible; padding: 22px var(--gutter) calc(28px + env(safe-area-inset-bottom)); gap: 14px; }
  .sheet__body .btn { justify-self: stretch; }
  .rail--stories .story, .rail--stories .review { width: 82vw; }
  .about__more { display: none; }
  .is-open .about__more { display: block; }
  .about__toggle { display: inline-flex; }
  .pick__face { font-size: .75rem; }
  .float__toggle { display: grid; }
  .float__list { display: none; }
  .float.is-open .float__list { display: flex; }
  .float.is-open .float__chat { display: none; }
  .float.is-open .float__close { display: block; }
  /* 版權文字底下留出右下角懸浮按鈕的位置 */
  .foot__bottom { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  /* 手機頂欄：logo、SNAP WISE、開始規劃、選單按鈕排一行（客戶 11/25：英文版的 SNAP WISE 不見了，三種語言都要顯示） */
  .brand { gap: 8px; }
  .brand img { width: 38px; height: 38px; }
  .brand__word b { font-size: 1rem; letter-spacing: .1em; }
  .brand__word small { display: none; }
  .langs--top { display: none; }
  .langs--menu { display: flex; }
  .top__inner { gap: 10px; }
  .top__cta { min-height: 40px; padding: 8px 16px; font-size: .9375rem; letter-spacing: .02em; }
  .lang-en .top__cta { padding-inline: 12px; font-size: .875rem; letter-spacing: 0; }
  .menu-btn { margin-left: 0; }
  /* 手機：每段各佔一行，第一句和後面兩句之間多空一點 */
  .hero__title { font-size: clamp(2rem, 9vw, 2.75rem); line-height: 1.16; }
  .lang-en .hero__title { font-size: clamp(1.75rem, 8.2vw, 2.5rem); }
  .hero__sub { font-size: .9688rem; }
  .hero__sub li { padding-inline: 10px; }
  /* 英文三項要排在同一行，分隔線才不會跑到第二行開頭 */
  .lang-en .hero__sub { flex-wrap: nowrap; font-size: min(.9375rem, 3.5vw); white-space: nowrap; }
  .lang-en .hero__sub li { padding-right: min(10px, 2vw); }
  .lang-en .hero__sub li + li { padding-left: min(10px, 2vw); }
  .hero__actions .btn { flex: 1 1 100%; }
  .sec-title { font-size: clamp(1.5rem, 7vw, 1.75rem); }
  .cats { gap: 6px; }
  .cat { min-height: 40px; padding: 6px 14px; font-size: .9375rem; }
  .why__grid { margin-top: 14px; }
  .why__cell { padding: 12px 12px 14px; }
  .why__icon { width: 26px; height: 26px; }
  .why__name { margin-top: 4px; font-size: 1.0625rem; }
  .why__text { margin-top: 2px; font-size: .8125rem; line-height: 1.55; }
  .stats__item { gap: 6px; }
  .stats__value { font-size: 1.75rem; }
  .stats__label { font-size: .8125rem; line-height: 1.5; }
  .about__title { font-size: 2rem; }
  .about__text > p:not(.about__sub) { font-size: .9688rem; line-height: 1.8; }
  .story__text, .review__quote { font-size: .9375rem; line-height: 1.7; }
  /* 英文表單標題在手機放不下一行，改成平均分成兩行，不會只剩一個字掉到下一行 */
  .lang-en .plan__title { white-space: normal; text-wrap: balance; font-size: 1.375rem; }
  .faq__item summary { font-size: .9375rem; line-height: 1.45; }
  .contact .sec-lead { font-size: .9375rem; }
  .form { padding: 16px; }
  .form__fields { gap: 8px; }
  .field > label, .field > legend { font-size: .875rem; }
  .field input { min-height: 44px; padding-block: 8px; }
  .field textarea { min-height: 60px; height: 60px; }
  .pick { gap: 6px; }
  .pick__face { padding: 8px 2px; }
  /* 右下角懸浮按鈕的位置留空 */
  .form__privacy { padding-right: 52px; font-size: .75rem; line-height: 1.5; }
  /* 頁尾：logo 放大、右邊三行聯絡資料（不顯示欄位名稱），下面一排 app 圖示，再下面小一點的地圖 */
  .foot { padding-top: 40px; }
  .foot__grid { gap: 20px; padding-bottom: 32px; }
  .foot__logo { width: 104px; height: 104px; }
  .foot__main { display: contents; }
  .foot__info { gap: 6px; font-size: .875rem; line-height: 1.5; }
  .foot__info div, .lang-zh-Hant .foot__info div, .lang-zh-Hans .foot__info div { grid-template-columns: 1fr; }
  .foot__info dt { display: none; }
  .foot__apps { grid-column: 1 / -1; justify-content: center; }
  .foot__map { aspect-ratio: 16 / 7; }
}
/* 最窄的手機（320 寬）：英文的「Plan your trip」比較長，字再小一點，四個東西才排得下 */
@media (max-width: 345px) {
  .top__inner { gap: 8px; }
  .brand__word b { font-size: .9375rem; letter-spacing: .06em; }
  .lang-en .top__cta { padding-inline: 10px; font-size: .8125rem; }
}
