/* =========================================================
   潮岸旅宿｜示範網站樣式
   想創行銷「店家專屬行銷網站」產業示範：海邊小型旅宿（品牌虛構）
   方向：海藍白、大圖留白、靜謐。細線分隔，不做卡片；照片直角，按鈕小圓角。
   ========================================================= */

:root {
  --paper: #F6F7F5;        /* 霧白紙底 */
  --mist: #ECF1F1;         /* 海霧（交替區塊） */
  --sand: #E8DFCF;         /* 沙色 */
  --sand-2: #F2EDE3;       /* 淺沙（早餐、兒童區塊） */
  --white: #FFFFFF;
  --ink: #13293D;          /* 深海字 */
  --ink-2: #2F4558;
  --muted: #546676;        /* 對霧白 5.4：1、對淺沙 4.9：1 */
  --sea: #1E4D6B;          /* 海藍主色 */
  --sea-deep: #163C55;
  --glass: #8FB3BF;        /* 海玻璃：只用在裝飾線與圖形，不用在文字 */
  --num: #4F6F7A;          /* 小號編號字：對霧白 5.0：1 */
  --glass-2: #C7DADF;
  --line: #D9DEDF;         /* 細線 */
  --line-2: #BFCACE;
  --night: #0E2131;        /* 示範細條、手機底部固定列 */
  --foam: #E4EDEF;         /* 頁尾淺海色：--muted 對它 5.0：1、--ink-2 8.4：1 */
  --on-dark: #E6EDF0;
  --link-dark: #A8D2DF;

  /* 標題：Noto Serif TC 600（Google Fonts text= 子集，只含頁面用到的字）；內文：系統字，不下載網路字型 */
  --font-serif: "Noto Serif TC", "Songti TC", "PMingLiU", "MingLiU", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Noto Sans CJK TC", "Microsoft JhengHei", Roboto, system-ui, sans-serif;

  --ease: cubic-bezier(.22, .7, .2, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4.6vw, 56px);
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2));   /* 版心到視窗邊的距離，給出血圖用 */
  --demo-h: 34px;          /* 示範細條高度，main.js 會依實際高度更新 */
  --top-h: 115px;          /* 固定在頂部的高度（桌機＝示範細條＋導覽列；≤859px＝只有導覽列），main.js 會依實際高度更新 */
  --focus: #1E4D6B;
}

/* ---------- 基礎 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
html:has(.jump-nav) { scroll-padding-top: calc(var(--top-h) + 58px + 16px); }   /* 鍵盤焦點與錨點不被固定的頂部遮住（WCAG 2.4.11） */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
picture { display: contents; }
img { height: auto; }
figure { margin: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .08em;
  color: var(--ink);
  text-wrap: balance;
}
p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
a { color: var(--sea); text-underline-offset: .3em; text-decoration-thickness: 1px; }
a:hover { color: var(--sea-deep); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.nb { display: inline-block; text-indent: 0; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--paper); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.wave { width: 120px; height: 12px; }

/* ---------- 按鈕與連結 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  min-height: 50px;
  padding: .75em 1.6em;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 600 .95rem/1.2 var(--font-sans);
  letter-spacing: .14em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-deep); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 44px; padding: .55em 1.2em; font-size: .9rem; letter-spacing: .12em; }
.btn-lg { min-height: 56px; padding: .9em 2em; font-size: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .75em;
  min-height: 44px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--sea);
  text-decoration: none;
}
.link-arrow span { padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(5px); }

/* 英文小標：編號＋細線＋大寫字母（裝飾，aria-hidden） */
.eyebrow {
  display: flex;
  align-items: center;
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: .76rem;
  line-height: 1.2;
  letter-spacing: .34em;
  color: var(--sea);
}
.eyebrow-no { letter-spacing: .1em; color: var(--muted); }
.eyebrow-no::after { content: ""; display: inline-block; width: 34px; height: 1px; margin: 0 14px; vertical-align: middle; background: var(--glass); }

/* ---------- 頂部：示範細條＋導覽（桌機兩條都固定；≤859px 細條跟著捲走，只固定導覽列） ---------- */
.site-top { position: sticky; top: var(--demo-h); z-index: 50; }
.demo-bar {
  position: sticky;
  top: 0;
  z-index: 51;
  background: var(--night);
  color: #D3DFE5;
  font-size: .8125rem;
  line-height: 1.55;
  letter-spacing: .04em;
  --focus: var(--link-dark);
}
.demo-bar .wrap { padding-block: 7px; text-align: center; }
.demo-bar p { margin: 0; text-wrap: balance; }
.demo-bar strong { color: #fff; font-weight: 600; }
.demo-short { display: none; }
.demo-bar a {
  position: relative;
  margin-left: .9em;
  color: var(--link-dark);
  font-weight: 600;
  white-space: nowrap;
}
.demo-bar a::after { content: ""; position: absolute; inset: -12px -8px; }
.demo-bar a:hover { color: #fff; }

.site-header {
  position: relative;
  background: rgba(246, 247, 245, .94);
  -webkit-backdrop-filter: saturate(1.1) blur(12px);
  backdrop-filter: saturate(1.1) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  min-height: 80px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.brand-name {
  margin-right: -.34em;     /* 抵銷最後一個字的字距，讓上下兩行置中 */
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: .34em;
  white-space: nowrap;
}
.brand-roman {
  margin-right: -.46em;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: .58rem;
  line-height: 1;
  letter-spacing: .46em;
  color: var(--sea);
  white-space: nowrap;
}
.brand-sub {
  padding-left: 20px;
  border-left: 1px solid var(--line-2);
  font-size: .8rem;
  line-height: 1.5;
  letter-spacing: .14em;
  color: var(--muted);
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav ul { display: flex; gap: 2px; }
.site-nav a:not(.btn) {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  font-size: .95rem;
  letter-spacing: .14em;
  text-decoration: none;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 8px;
  height: 1px;
  background: var(--sea);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--sea); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  font-size: .9rem;
  letter-spacing: .12em;
  white-space: nowrap;
  flex: none;
  cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 18px; height: 10px; }
.nav-toggle-bars::before,
.nav-toggle-bars::after,
.nav-toggle-bars span {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars span { top: 4.25px; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-4.25px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span { opacity: 0; }

/* ---------- 共用排版 ---------- */
main { display: block; }
.section { position: relative; padding-block: clamp(80px, 10vw, 152px); }
.section-mist { background: var(--mist); }
.section-sand { background: var(--sand-2); }
.h1 { font-size: clamp(1.85rem, 1.2rem + 2.3vw, 3.1rem); line-height: 1.4; letter-spacing: .06em; }
.h2 { font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.55rem); line-height: 1.4; }
.h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 64px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-intro { margin: 0; max-width: 34em; font-size: 1.05rem; color: var(--ink-2); }
.fine { font-size: .85rem; line-height: 1.8; color: var(--muted); }
.note { margin: 18px 0 0; font-size: .92rem; line-height: 1.85; color: var(--muted); }
.two-col { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px clamp(40px, 6vw, 112px); align-items: start; }
.col-head { position: sticky; top: calc(var(--top-h) + 40px); }
.col-head .section-intro { margin-top: 18px; }
.rates { padding-block: clamp(56px, 6.5vw, 104px); }   /* 房價一覽緊接在跳轉列下方，上下留白收一點 */

/* =========================================================
   首頁
   ========================================================= */

/* ---------- 主視覺：桌機把標題壓在白牆留白處（不加暗色遮罩） ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: var(--edge) minmax(0, min(560px, 42vw)) 1fr;
  grid-template-rows: 1fr auto auto 1.15fr;
  min-height: clamp(560px, calc(100svh - var(--top-h) - 56px), 880px);   /* 首屏底部露出入住資訊列約 56px，引導往下捲 */
  overflow: hidden;
  background: #EDEDEA;
}
.hero-media { grid-column: 1 / -1; grid-row: 1 / -1; position: relative; z-index: -1; overflow: hidden; }
/* 圖片絕對定位：不參與 grid 尺寸計算，主視覺高度只由 min-height 決定（否則會被 3:2 圖片撐到 960px 以上） */
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0% 56%; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(246, 247, 245, .62) 0%, rgba(246, 247, 245, .34) 30%, rgba(246, 247, 245, 0) 50%);
}
.hero-head { grid-column: 2; grid-row: 2; padding-top: 24px; }
.hero-body { grid-column: 2; grid-row: 3; padding-bottom: 24px; }
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .2em;
  color: var(--sea);
}
.hero-kicker .wave { width: 46px; height: 8px; flex: none; }
.hero-tagline {
  margin: 0 0 28px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.1rem, .55rem + 2.75vw, 3.5rem);
  line-height: 1.42;
  letter-spacing: .06em;
  color: var(--ink);
}
.hero-tagline .nb:first-child { display: block; width: max-content; }
.hero-sub { max-width: 25em; margin-bottom: 36px; font-size: 1.06rem; line-height: 1.95; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn-line { background: rgba(246, 247, 245, .55); }
.hero-actions .btn-line:hover { background: var(--ink); }

/* ---------- 入住資訊速覽 ---------- */
.stay { position: relative; z-index: 2; background: var(--white); border-bottom: 1px solid var(--line); }
.stay-inner { display: flex; align-items: stretch; }
.stay-title {
  display: flex;
  align-items: center;
  padding-right: 40px;
  margin-right: 8px;
  border-right: 1px solid var(--line);
  font-size: 1.05rem;
  letter-spacing: .2em;
  white-space: nowrap;
}
.stay-list { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stay-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 96px;
  padding: 18px 16px;
  font-size: .98rem;
  letter-spacing: .1em;
  color: var(--ink);
  white-space: nowrap;
}
.stay-list li + li { border-left: 1px solid var(--line); }
.stay-list .icon { width: 26px; height: 26px; color: var(--sea); }
.stay-list b { font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem; letter-spacing: .04em; }

/* ---------- 關於潮岸：圖片往右出血 ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(48px, 7vw, 120px); align-items: center; }
.about-text p:not(.fine):not(.eyebrow) { color: var(--ink-2); }
.about-text .h2 { margin-bottom: 30px; }
.about-text .fine { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.about-media { margin-right: calc(-1 * var(--edge)); }
.about-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- 房型預覽：兩欄交錯 ---------- */
.rooms-preview { padding-top: 0; }
.rp-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px clamp(32px, 4vw, 64px); }
.rp-item:nth-child(even) { margin-top: 120px; }
.rp { position: relative; }
.rp-media { overflow: hidden; background: var(--mist); }
.rp-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s var(--ease); }
.rp:hover .rp-media img { transform: scale(1.03); }
.rp-body { display: grid; grid-template-columns: auto 1fr; gap: 0 22px; padding-top: 26px; }
.rp-no { grid-row: span 3; margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: .85rem; line-height: 2.6; letter-spacing: .1em; color: var(--num); }
.rp-name { font-size: clamp(1.35rem, 1.15rem + .6vw, 1.7rem); letter-spacing: .12em; }
.rp-name a { color: var(--ink); text-decoration: none; }
.rp-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rp:hover .rp-name a { color: var(--sea); }
.rp-name a:focus-visible { outline: none; }
.rp:has(.rp-name a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 8px; }
@supports not selector(:has(a)) {
  .rp-name a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
}
.rp-line { margin: 10px 0 18px; color: var(--ink-2); }
.rp-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; }
.rp-meta > div { display: flex; gap: 10px; }
.rp-meta dt { color: var(--muted); }
.rp-price dd { font-weight: 600; color: var(--sea); letter-spacing: .06em; }
.rp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.rp-foot .fine { margin: 0; max-width: 44em; }

/* ---------- 設施與服務：標題左、清單右，細線分隔 ---------- */
.amenities { background: var(--mist); }
.amen-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px clamp(40px, 6vw, 112px); align-items: start; }
.amen-head { position: sticky; top: calc(var(--top-h) + 40px); }
.amen-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 56px); border-top: 1px solid var(--line-2); }
.amen-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 18px; padding: 26px 0 24px; border-bottom: 1px solid var(--line-2); }
.amen-list .icon { width: 30px; height: 30px; margin-top: 2px; color: var(--sea); }
.amen-list h3 { margin-bottom: 4px; font-size: 1.12rem; letter-spacing: .12em; }
.amen-list p { margin: 0; font-size: .95rem; line-height: 1.8; color: var(--ink-2); }

/* ---------- 早餐：左圖出血、右文，淺沙底 ---------- */
.breakfast { background: var(--sand-2); }
.bf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.bf-media { align-self: stretch; }
.bf-media img { width: 100%; height: 100%; min-height: 520px; max-height: 760px; aspect-ratio: 1 / 1; object-fit: cover; }
.bf-text { max-width: 600px; padding: clamp(64px, 8vw, 120px) var(--gutter) clamp(64px, 8vw, 120px) clamp(40px, 6vw, 104px); }
.bf-text .h2 { margin-bottom: 26px; }
.bf-text p:not(.fine):not(.eyebrow) { color: var(--ink-2); }
.bf-text .fine { margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--sand); }

/* ---------- 周邊：左側海岸大圖帶、右側清單 ---------- */
.around { display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); background: var(--paper); }
.around-media { position: relative; min-height: 100%; }
.around-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.around-body { padding: clamp(80px, 9vw, 140px) var(--edge) clamp(80px, 9vw, 140px) clamp(40px, 6vw, 104px); }
.around-inner { max-width: 640px; }
.around .section-intro { margin: 22px 0 40px; }
.place-list { border-top: 1px solid var(--line-2); margin-bottom: 28px; }
.place { padding: 22px 0 18px; border-bottom: 1px solid var(--line); }
.place-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 20px; margin-bottom: 6px; }
.place h3 { font-size: 1.3rem; letter-spacing: .12em; }
.place-time { font-size: .88rem; letter-spacing: .08em; color: var(--sea); white-space: nowrap; }
.place p { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* ---------- 怎麼訂房 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(32px, 4vw, 64px); margin-bottom: 56px; border-top: 1px solid var(--line-2); }
.steps li { position: relative; padding-top: 36px; }
.steps li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border: 1px solid var(--sea); border-radius: 50%; background: var(--paper); }
.step-no { display: block; margin-bottom: 12px; font: 600 .78rem/1 var(--font-sans); letter-spacing: .3em; color: var(--sea); }
.steps h3 { margin-bottom: 12px; font-size: 1.32rem; letter-spacing: .1em; }
.steps p { margin: 0; color: var(--ink-2); }
.booking-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 常見問題 ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(40px, 6vw, 112px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--top-h) + 40px); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item:first-child { border-top: 1px solid var(--line-2); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.65;
  letter-spacing: .06em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { flex: 1; text-wrap: balance; }
.faq-icon { position: relative; flex: none; width: 20px; height: 20px; }
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 1px;
  background: var(--sea);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item summary:hover .faq-q { color: var(--sea); }
.faq-a { max-width: 40em; padding: 0 40px 28px 0; color: var(--ink-2); }
.faq-a p { margin: 0; }

/* ---------- 收尾 CTA 帶 ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--white); color: var(--ink); border-top: 1px solid var(--line); }
.cta-orn { display: flex; justify-content: center; margin: 0 0 20px; color: var(--glass); }
.cta-orn .wave { width: 64px; height: 8px; }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 32px; padding-block: clamp(72px, 9vw, 128px); text-align: center; }
.cta-band:last-child .cta-inner { padding-bottom: clamp(44px, 5.4vw, 84px); }   /* 頁尾海岸線上方還有一段白，底部留白收一點，上下看起來等高 */
.cta-band .h2 { color: var(--ink); font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); }
.cta-small { margin: 14px 0 0; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 32px; }

/* ---------- 頁尾（20261027 第二輪改版）：淺海色底、海岸線收尾、左右分割，不沿用餐廳示範站的深色頁尾 ---------- */
.site-footer { padding-bottom: 40px; background: var(--foam); color: var(--ink-2); font-size: .92rem; }
/* 海岸線：線以上填白，接住上方 CTA 帶的白底；CSS 固定高度＋slice，任何寬度都 1:1 顯示中段，線條不變形 */
.footer-shore { height: 72px; overflow: hidden; }
.shore { width: 100%; max-width: none; height: 100%; }
.shore-land { fill: var(--white); }
.shore-line { fill: none; stroke: var(--sea); stroke-width: 1.2; stroke-linecap: round; opacity: .7; }
.shore-surf { fill: none; stroke: var(--glass); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 2 9; }
.shore-surf--far { opacity: .7; stroke-dasharray: 1 12; }
.shore-rocks { fill: #B7AE9C; }
.shore-light path { fill: var(--white); stroke: var(--sea); stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; }
.shore-light path:nth-child(2) { fill: var(--sea); }

.footer-closing {
  margin: 36px 0 0;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.2rem, 1rem + .7vw, 1.55rem);
  line-height: 1.6;
  letter-spacing: .18em;
  color: var(--ink);
}
.footer-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: clamp(56px, 6vw, 84px); }
.footer-stay { padding-right: clamp(32px, 5vw, 80px); }
.footer-guide { padding-left: clamp(32px, 5vw, 80px); border-left: 1px solid var(--line-2); }

.footer-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0 0 4px; }
.footer-name-zh { margin-right: -.3em; font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; line-height: 1.3; letter-spacing: .3em; color: var(--ink); white-space: nowrap; }
.footer-name-en { font-family: var(--font-serif); font-weight: 600; font-size: .6rem; line-height: 1; letter-spacing: .42em; color: var(--sea); white-space: nowrap; }
.footer-sub { margin: 0 0 24px; color: var(--muted); letter-spacing: .14em; }
/* 資訊列：三等分、圖示在上，任何欄寬都排得下 */
.footer-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 20px; border-block: 1px solid var(--line-2); }
.footer-facts li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px 12px; color: var(--ink); font-size: .9rem; line-height: 1.5; letter-spacing: .04em; text-align: center; }
.footer-facts li + li { border-left: 1px solid var(--line-2); }
.footer-facts .icon { width: 20px; height: 20px; color: var(--sea); }
.footer-addr { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 28px; color: var(--muted); }
.footer-addr .icon { width: 18px; height: 18px; margin-top: .32em; color: var(--sea); }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0 34px; margin-top: -10px; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 9px) / 0 1px no-repeat;
  transition: background-size .3s var(--ease), color .2s;
}
.footer-nav a:hover { color: var(--sea); background-size: 100% 1px; }
.footer-demo { margin-top: 22px; padding-left: 22px; border-left: 2px solid var(--glass); }
.footer-demo-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; font-weight: 600; letter-spacing: .12em; color: var(--ink); }
.footer-demo-mark { padding: 4px 4px 3px 9px; border: 1px solid var(--sea); border-radius: 2px; font-family: var(--font-serif); font-size: .64rem; line-height: 1.2; letter-spacing: .3em; color: var(--sea); }
.footer-note { margin: 0 0 10px; font-size: .88rem; line-height: 2; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 30px; margin: 0; }
.footer-link { font-size: .9rem; }

.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: .82rem; color: var(--muted); }
.footer-base p { margin: 0; }
.footer-credit a { position: relative; white-space: nowrap; }
.footer-credit a::after { content: ""; position: absolute; inset: -14px -6px; }   /* 點擊範圍放大到 44px 高，畫面不變 */

/* ---------- 手機底部固定列 ---------- */
.mobile-bar { display: none; }

/* ---------- 示範說明視窗 ---------- */
.demo-dialog {
  width: 100%;
  max-width: min(540px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(8, 22, 34, .36);
}
.demo-dialog::backdrop { background: rgba(14, 33, 49, .58); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.demo-dialog-inner { position: relative; padding: 44px 36px 22px; }
.dialog-x {
  position: absolute;
  top: 10px; right: 10px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.dialog-x:hover { background: var(--mist); }
.dialog-x .icon { width: 22px; height: 22px; }
.dialog-tag { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-family: var(--font-serif); font-weight: 600; font-size: .74rem; letter-spacing: .36em; color: var(--sea); }
.dialog-tag .wave { width: 44px; height: 8px; color: var(--glass); }
.demo-dialog h2 { margin-bottom: 18px; font-size: clamp(1.4rem, 1.25rem + .7vw, 1.75rem); line-height: 1.45; }
.demo-dialog h2:focus { outline: none; }
.demo-dialog p { color: var(--ink-2); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 6px; }
.dialog-actions .btn { flex: 1 1 200px; }
.btn-text {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .14em;
  cursor: pointer;
}
.btn-text:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .3em; }

/* =========================================================
   內頁共用
   ========================================================= */
.page-hero { padding-block: clamp(28px, 4vw, 56px) clamp(48px, 6vw, 88px); }
.crumbs { display: flex; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 48px); font-size: .86rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/" / ""; margin: 0 .9em; color: var(--line-2); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.crumbs a:hover { color: var(--sea); }
.page-hero .h1 { max-width: 20em; margin-bottom: clamp(24px, 3vw, 40px); }
.page-hero-cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(40px, 6vw, 112px); align-items: end; padding-top: 28px; border-top: 1px solid var(--line); }
.lead { margin: 0; font-size: clamp(1.02rem, .97rem + .25vw, 1.15rem); line-height: 1.95; color: var(--ink-2); }
.price-note, .notice { display: flex; gap: 12px; margin: 0; font-size: .95rem; line-height: 1.75; color: var(--ink); }
.price-note { padding: 16px 0 16px 18px; border-left: 2px solid var(--sea); }
.price-note .icon, .notice .icon, .address .icon { width: 22px; height: 22px; margin-top: 1px; color: var(--sea); }

table.compact { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.compact th, table.compact td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.compact thead th { padding-block: 12px; border-bottom: 1px solid var(--ink); font-size: .84rem; font-weight: 600; letter-spacing: .12em; color: var(--muted); }
table.compact tbody th { font-weight: 600; white-space: nowrap; }
table.compact .num { text-align: right; }
table.compact td.num { font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; letter-spacing: .04em; color: var(--sea); }
.table-wrap { background: var(--white); border: 1px solid var(--line); }
.cap-max { display: block; font-size: .8em; line-height: 1.5; color: var(--muted); white-space: nowrap; }
.table-wrap table.compact tbody tr:last-child th, .table-wrap table.compact tbody tr:last-child td { border-bottom: 0; }

/* =========================================================
   房型頁
   ========================================================= */
.page-rooms .page-hero { padding-bottom: clamp(32px, 4vw, 56px); }
.jump-nav {
  position: sticky;
  top: var(--top-h);
  z-index: 40;
  background: rgba(246, 247, 245, .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
}
.jump-list { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.jump-list::-webkit-scrollbar { display: none; }
.jump-list li { flex: none; }
.jump-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px;
  color: var(--ink-2);
  font-size: .95rem;
  letter-spacing: .12em;
  text-decoration: none;
  white-space: nowrap;
}
.jump-list li:first-child a { padding-left: 0; }
.jump-list a:focus-visible { outline-offset: -4px; }   /* 橫捲容器會裁掉往外的焦點框 */
.jump-no { font-family: var(--font-serif); font-weight: 600; font-size: .78rem; color: var(--num); letter-spacing: .06em; }
.jump-list a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; background: var(--sea); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.jump-list li:first-child a::after { left: 0; }
.jump-list a:hover { color: var(--sea); }
.jump-list a:hover::after, .jump-list a.is-active::after { transform: scaleX(1); }
.jump-list a.is-active { color: var(--sea); }

.room { padding-block: clamp(64px, 8vw, 120px); }   /* 錨點位移交給 html 的 scroll-padding-top */
.room + .room { border-top: 1px solid var(--line); }
.room-grid { display: grid; grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); gap: 40px clamp(40px, 5vw, 88px); align-items: start; padding-right: var(--edge); }
.room--flip .room-grid { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); padding-right: 0; padding-left: var(--edge); }
.room--flip .room-media { order: 2; }
.room-media { position: sticky; top: calc(var(--top-h) + 58px + 24px); }
.room-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.room-body { max-width: 560px; padding-top: 8px; }
.room-name { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); letter-spacing: .12em; }
.room-small { margin: 10px 0 26px; font-size: .92rem; letter-spacing: .14em; color: var(--sea); }
.room-desc { color: var(--ink-2); }
.spec { margin: 34px 0 30px; border-top: 1px solid var(--ink); }
.spec > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .95rem; line-height: 1.7; }
.spec dt { color: var(--muted); }
.room-sub { margin-bottom: 12px; font-size: 1rem; letter-spacing: .18em; color: var(--ink); }
.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; margin-bottom: 32px; font-size: .95rem; line-height: 1.75; color: var(--ink-2); }
.extras li { position: relative; padding-left: 22px; }
.extras li::before { content: ""; position: absolute; left: 0; top: .87em; width: 12px; height: 1px; background: var(--sea); }
.room-rate { padding: 22px 26px 18px; background: var(--white); border: 1px solid var(--line); }
.rate-pair { display: flex; flex-wrap: wrap; gap: 8px 48px; margin-bottom: 8px; }
.rate-pair > div { display: flex; align-items: baseline; gap: 12px; }
.rate-pair dt { font-size: .9rem; color: var(--muted); letter-spacing: .12em; }
.rate-pair dd { font-family: var(--font-serif); font-weight: 600; font-size: 1.9rem; line-height: 1.3; letter-spacing: .04em; color: var(--sea); font-variant-numeric: tabular-nums; }
.rate-pair dd::before { content: "NT$"; margin-right: .3em; font: 600 .78rem/1 var(--font-sans); letter-spacing: .06em; color: var(--muted); }
.rate-note { margin: 0; font-size: .88rem; line-height: 1.75; color: var(--muted); }

.every-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); border-top: 1px solid var(--line-2); }
.every-list li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.every-list .icon { width: 20px; height: 20px; margin-top: 5px; color: var(--sea); }

.building { position: relative; padding-top: 14px; }
.building-roof { position: absolute; left: 0; right: 0; top: 0; height: 14px; border-top: 3px double var(--ink); }
.floor-stack { border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); background: var(--white); }
.floor { display: grid; grid-template-columns: 76px 128px minmax(0, 1fr); align-items: center; gap: 12px 24px; min-height: 92px; padding: 18px 24px 18px 0; border-bottom: 1px solid var(--line); }
.floor:last-child { border-bottom: 3px solid var(--ink); }
.floor-no { justify-self: center; font-family: var(--font-serif); font-weight: 600; font-size: 1.7rem; letter-spacing: .04em; color: var(--sea); }
.floor-viz { display: flex; gap: 6px; }
.floor-viz i { display: block; width: 22px; height: 30px; }
.fv-room { background: var(--sea); }
.fv-common { width: 48px !important; background: var(--glass-2); }
.fv-deck { width: 40px !important; border: 1.5px dashed var(--sea); }
.floor-text { color: var(--ink-2); }
.floor-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.floor-legend span { display: inline-flex; align-items: center; }
.floor-legend i { display: inline-block; width: 12px; height: 16px; margin-right: 8px; }
.floor-legend .fv-common { width: 24px !important; }
.floor-legend .fv-deck { width: 20px !important; }

.line-list { border-top: 1px solid var(--sand); }
.line-list li { position: relative; padding: 20px 0 20px 30px; border-bottom: 1px solid var(--sand); color: var(--ink-2); }
.line-list li::before { content: ""; position: absolute; left: 0; top: 2.05em; width: 14px; height: 1px; background: var(--sea); }

.rules-list { border-top: 1px solid var(--ink); }
.rules-list > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px 28px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rules-list dt { font-weight: 600; letter-spacing: .1em; }
.rules-list dd { color: var(--ink-2); }
.cancel { margin-top: clamp(56px, 6vw, 80px); }
.cancel .h3 { margin-bottom: 14px; }
.cancel > p { color: var(--ink-2); }

/* =========================================================
   交通頁
   ========================================================= */
.access-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 5vw, 88px); align-items: start; }
.access-hero .h1 { max-width: 14em; }
.access-hero .lead { margin-bottom: 28px; }
.address { display: flex; gap: 12px; margin: 0 0 14px; padding: 16px 0; border-block: 1px solid var(--line); line-height: 1.7; }
.address-label { margin-right: 14px; color: var(--muted); letter-spacing: .1em; }
.notice { padding: 14px 18px; background: var(--white); border-left: 2px solid var(--sea); font-weight: 600; }

.go { background: var(--mist); }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(32px, 4vw, 64px); }
.modes li { padding-top: 28px; border-top: 1px solid var(--ink); }
.modes .icon { width: 34px; height: 34px; margin-bottom: 20px; color: var(--sea); }
.modes h3 { margin-bottom: 12px; font-size: 1.28rem; letter-spacing: .1em; }
.modes p { margin: 0; color: var(--ink-2); }

/* 示意地圖：交通頁首屏主視覺。桌機／平板一份（640×580），手機另一份（裁掉北側空白、字放大），CSS 只顯示其中一份 */
.map-figure { max-width: 760px; background: var(--white); border: 1px solid var(--line); padding: clamp(10px, 1.4vw, 18px); }
.map-svg { width: 100%; height: auto; }
.map-svg--m { display: none; }
.map-svg text { font-family: var(--font-sans); paint-order: stroke; stroke: #F6F7F5; stroke-width: 4px; stroke-linejoin: round; }
.map-svg .ml-sea { stroke: #DCEAEC; }
.map-svg .ml-name { font-size: 18px; font-weight: 600; fill: var(--ink); letter-spacing: 2px; }
.map-svg .ml-time { font-size: 14px; font-weight: 500; fill: var(--sea); letter-spacing: .5px; }
.map-svg .mp-brand { font-family: var(--font-serif); font-size: 19px; font-weight: 600; fill: #fff; stroke: none; letter-spacing: 4px; }
.map-svg .mp-p { font-size: 15px; font-weight: 700; fill: #fff; stroke: none; }
.map-svg .mp-road-label { font-size: 14px; font-weight: 500; fill: #7A6B4E; letter-spacing: 1px; }
.map-svg .mp-north-label { font-size: 14px; font-weight: 600; fill: var(--ink); letter-spacing: 1px; }
.map-svg .mp-n { font-size: 14px; font-weight: 700; fill: var(--ink); }
.map-svg .mp-stamp { font-family: var(--font-serif); font-size: 17px; font-weight: 600; fill: var(--sea); stroke: none; letter-spacing: 4px; }
.map-svg--m .ml-name { font-size: 27px; letter-spacing: 2px; }
.map-svg--m .ml-time { font-size: 22px; }
.map-svg--m .mp-brand { font-size: 25px; }
.map-svg--m .mp-road-label, .map-svg--m .mp-north-label { font-size: 22px; }
.map-svg--m .mp-stamp { font-size: 21px; letter-spacing: 3px; }
.map-svg--m .mp-n { font-size: 20px; }
.map-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 14px 4px 2px; font-size: .88rem; color: var(--muted); }

.spot-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 88px); border-top: 1px solid var(--line-2); }
.spot-list .place { padding: 26px 0 22px; }

/* ---------- 動效（只有 html.motion 才啟用；沒有 JS 時內容完整可見） ---------- */
@keyframes heroIn { from { transform: scale(1.045); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.motion .hero-media img { animation: heroIn .9s var(--ease) both; }
.motion .hero-head > *, .motion .hero-body > * { animation: fadeUp .5s var(--ease) both; }
.motion .hero-head > :nth-child(2) { animation-delay: .08s; }
.motion .hero-body > :nth-child(1) { animation-delay: .16s; }
.motion .hero-body > :nth-child(2) { animation-delay: .24s; }
.motion [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--d, 0s); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion .demo-dialog[open] { animation: dialogIn .24s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rp:hover .rp-media img { transform: none; }
}

/* =========================================================
   響應式
   ========================================================= */
@media (min-width: 1100px) {
  /* 設施：標題在上，八項排成兩列四欄（細線分隔，不做卡片） */
  .amen-grid { grid-template-columns: 1fr; }
  .amen-head { position: static; }
  .amen-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* 房型頁下半部：標題在上、內容放寬，和左右兩欄的區塊交錯，節奏不單調 */
  .every .two-col, .kids .two-col { grid-template-columns: 1fr; }
  .every .col-head, .kids .col-head { position: static; }
  .every-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .floors .col-head .floor-legend { margin-top: 32px; }   /* 樓層配置維持左右兩欄：圖例與說明放在標題下，右側是剖面圖 */
  .kids .line-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 4vw, 64px); }
  /* 每間房的照片拉高到接近一個視窗，固定在左側，讓照片主導選房 */
  .room-media img { aspect-ratio: auto; height: min(calc(100svh - var(--top-h) - 58px - 64px), 720px); min-height: 440px; }
  #sea-double .room-media img { object-position: 62% 50%; }
  #family .room-media img { object-position: 18% 50%; }   /* 20261027 換圖：直式裁切以兩張雙人床＋天窗為主，沙發只露出左半，窗在畫面外 */
}

@media (max-width: 959px) {
  /* 主視覺改成上圖下文：圖不再壓字 */
  .hero { grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter); grid-template-rows: auto auto auto; min-height: 0; background: var(--paper); }
  .hero-media { grid-row: 1; aspect-ratio: 16 / 9; }
  .hero-media img { object-position: 70% 55%; }
  .hero-media::after { display: none; }
  .hero-head { grid-row: 2; padding-top: 44px; }
  .hero-body { grid-row: 3; padding-bottom: 56px; }
  .hero-sub { max-width: 34em; }
}

@media (max-width: 1099px) {
  .stay-inner { flex-direction: column; padding-block: 8px 0; }
  .stay-title { padding: 18px 0 14px; margin: 0; border-right: 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .stay-list li { justify-content: flex-start; min-height: 76px; padding-inline: 0 12px; }
  .stay-list li + li { border-left: 0; }

  .faq-grid, .amen-grid, .two-col { grid-template-columns: 1fr; }
  .faq-head, .amen-head, .col-head { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { margin-right: calc(-1 * var(--gutter)); margin-left: 0; order: -1; }
  .room-grid, .room--flip .room-grid { grid-template-columns: 1fr; padding-inline: 0; }
  .room--flip .room-media { order: 0; }
  .room-media { position: static; }
  .room-body { max-width: none; padding-inline: var(--gutter); }
  .room-body > * { max-width: 680px; }
  .access-hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 959px) {
  .bf-grid { grid-template-columns: 1fr; }
  .bf-media img { min-height: 0; max-height: none; aspect-ratio: 4 / 3; }
  .bf-text { max-width: none; padding: 56px var(--gutter) 72px; }
  .around { grid-template-columns: 1fr; }
  .around-media { min-height: 0; }
  .around-media img { position: static; aspect-ratio: 4 / 5; max-height: 72svh; }
  .around-body { padding: 56px var(--gutter) 80px; }
  .modes { grid-template-columns: 1fr; gap: 0; }
  .modes li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 18px; padding: 24px 0; border-top: 1px solid var(--line-2); }
  .modes li:first-child { border-top-color: var(--ink); }
  .modes .icon { grid-row: span 2; margin: 4px 0 0; }
  /* 時間軸改直向：左側一條細線，圓點落在線上 */
  .steps { grid-template-columns: 1fr; gap: 0; margin: 0 0 40px 4px; border-top: 0; border-left: 1px solid var(--line-2); }
  .steps li { padding: 0 0 32px 26px; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li::before { top: 6px; left: -5px; }
  .step-no { margin: 0 0 8px; }
  .booking-actions .btn { flex: 1 1 260px; }
  .page-hero-cols { grid-template-columns: 1fr; }
}

@media (max-width: 859px) {
  /* 細條跟著頁面捲走，只固定導覽列；沒有 JS 時導覽列會展開成兩行，乾脆不固定 */
  .demo-bar { position: static; }
  .site-top { top: 0; }
  html:not(.nav-ready) .site-top { position: static; }
  html { scroll-padding-bottom: calc(72px + env(safe-area-inset-bottom) + 12px); }
  /* 首屏只留「看房型」：訂房（示範）已在底部固定列 */
  .hero-actions .btn-primary { display: none; }
  .hero-actions .btn-line { flex: 1 1 100%; }
  .header-inner { min-height: 64px; flex-wrap: wrap; }
  /* 沒有 JS：導覽列直接換行顯示 */
  .site-nav { width: 100%; flex-wrap: wrap; gap: 8px 12px; padding-bottom: 10px; }
  .site-nav a:not(.btn) { padding: 0 10px; }
  /* 有 JS：收合成選單 */
  .nav-ready .header-inner { flex-wrap: nowrap; }
  .nav-ready .nav-toggle { display: inline-flex; }
  .nav-ready .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 24px 32px rgba(19, 41, 61, .12);
  }
  .nav-ready .site-nav.is-open { display: flex; min-height: calc(100svh - var(--top-h)); }
  html:has(.site-nav.is-open) { overflow: hidden; }
  html:has(.site-nav.is-open) .mobile-bar { display: none; }
  .nav-ready .site-nav ul { flex-direction: column; }
  .nav-ready .site-nav a:not(.btn) { display: flex; min-height: 56px; padding: 0 2px; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
  .nav-ready .site-nav a:not(.btn)::after { left: 2px; right: auto; width: 28px; bottom: 14px; }
  .nav-ready .site-nav .btn { margin-top: 18px; min-height: 52px; }
  .footer-actions { display: none; }   /* 手機底部固定列已有同樣按鈕 */
  .footer-split { grid-template-columns: 1fr; }
  .footer-stay { padding: 0 0 34px; }
  .footer-addr { margin-bottom: 0; }
  .footer-guide { padding: 30px 0 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .footer-nav ul { margin-top: -8px; }

  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }   /* 等於底部固定列高度，頁尾不被遮住 */
  .mobile-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    height: calc(72px + env(safe-area-inset-bottom));
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: var(--night);
    box-shadow: 0 -10px 28px rgba(8, 22, 34, .18);
    --focus: var(--link-dark);
  }
  .mobile-bar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 56px;
    padding: 4px;
    border: 1px solid rgba(230, 237, 240, .22);
    border-radius: 2px;
    background: transparent;
    color: var(--on-dark);
    font: 600 .76rem/1.25 var(--font-sans);
    letter-spacing: .04em;
    white-space: nowrap;
    cursor: pointer;
  }
  .mobile-bar button:first-child { border-color: var(--paper); background: var(--paper); color: var(--ink); }
  .mobile-bar .icon { width: 22px; height: 22px; }
}

@media (max-width: 719px) {
  .demo-bar { font-size: .78rem; }
  .demo-long { display: none; }
  .demo-short { display: inline; }
  .demo-bar .wrap { padding-block: 6px; white-space: nowrap; }
  .demo-bar a { margin-left: .7em; }
  .brand { gap: 14px; }
  .brand-name { font-size: 1.3rem; letter-spacing: .28em; margin-right: -.28em; }
  .brand-roman { font-size: .54rem; letter-spacing: .4em; margin-right: -.4em; }
  .brand-sub { padding-left: 14px; font-size: .72rem; letter-spacing: .08em; }

  /* 手機主視覺：直式裁切，標題壓在窗外的天空，副標與按鈕在圖下 */
  .hero-media { aspect-ratio: auto; height: clamp(300px, 50svh, 520px); }
  .hero-media img { object-position: 50% 30%; }
  .hero-media::after { display: block; background: linear-gradient(180deg, rgba(246, 247, 245, .55) 0%, rgba(246, 247, 245, .28) 26%, rgba(246, 247, 245, 0) 46%); }
  .hero-head { grid-row: 1; align-self: start; padding-top: clamp(26px, 6svh, 44px); }
  .hero-kicker { gap: 10px; margin-bottom: 12px; font-size: .8rem; letter-spacing: .14em; }
  .hero-kicker .wave { width: 30px; height: 6px; }
  .hero-tagline { margin: 0; font-size: clamp(1.75rem, 1rem + 3.6vw, 2.2rem); line-height: 1.45; }
  .hero-body { grid-row: 2; padding: 26px 0 44px; }
  .hero-sub { margin-bottom: 24px; font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 140px; padding-inline: 1em; }

  .stay-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stay-list li { min-height: 64px; gap: 10px; padding: 12px 8px 12px 0; font-size: .92rem; letter-spacing: .06em; }
  .stay-list li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stay-list .icon { width: 22px; height: 22px; }

  .section { padding-block: 72px; }
  .section-head { margin-bottom: 32px; }
  .about-media { margin-left: calc(-1 * var(--gutter)); }
  .about-text .h2 { margin-bottom: 20px; }

  .rooms-preview .wrap { padding-inline: 0; }
  .rooms-preview .section-head, .rp-foot { margin-inline: var(--gutter); }
  .rp-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-inline: var(--gutter);
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .rp-list::-webkit-scrollbar { display: none; }
  .rp-item { flex: 0 0 84%; scroll-snap-align: start; }
  .rp:has(.rp-name a:focus-visible) { outline-offset: -2px; }   /* 橫捲容器會裁掉往外的焦點框 */
  .rp-item:nth-child(even) { margin-top: 0; }
  .rp-body { gap: 0 14px; padding-top: 18px; }
  .rp-meta { font-size: .88rem; }
  .rp-foot { margin-top: 36px; }

  .amen-list { grid-template-columns: 1fr; }
  .amen-list li { padding: 20px 0 18px; gap: 16px; }

  .faq-item summary { gap: 14px; font-size: 1rem; }
  .faq-a { padding: 0 6px 24px 0; }

  .cta-inner { align-items: stretch; }
  .cta-actions .btn { flex: 1 1 100%; }

  .footer-shore { height: 60px; }
  .footer-closing { margin-top: 26px; font-size: 1.15rem; letter-spacing: .12em; }
  .footer-split { margin-top: 44px; }
  .footer-facts li { font-size: .86rem; letter-spacing: .02em; }
  .footer-nav ul { gap: 0 22px; }
  .footer-demo { padding-left: 16px; }
  .footer-base { flex-direction: column; margin-top: 44px; }

  .crumbs { margin-bottom: 16px; }
  .jump-nav .wrap { padding-inline: 0; }
  .jump-list {
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 32px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 32px), transparent 100%);
  }
  .jump-list a { min-height: 52px; padding: 0 12px; font-size: .9rem; letter-spacing: .08em; }
  .jump-list a::after { left: 12px; right: 12px; }
  .room { padding-block: 0 64px; }
  html:has(.jump-nav) { scroll-padding-top: calc(var(--top-h) + 52px + 16px); }
  .room + .room { border-top: 0; }
  .room-body { padding-top: 28px; }
  .spec > div { grid-template-columns: 5.6em minmax(0, 1fr); }
  .extras { grid-template-columns: 1fr; }
  .room-rate { padding: 18px 18px 14px; }
  .rate-pair { gap: 4px 32px; }
  .rate-pair dd { font-size: 1.6rem; }
  .every-list { grid-template-columns: 1fr; }
  .floor { grid-template-columns: 56px minmax(0, 1fr); gap: 8px 14px; padding: 16px 16px 16px 0; }
  .floor-no { grid-row: span 2; font-size: 1.4rem; }
  .floor-viz i { width: 16px; height: 20px; }
  .fv-common { width: 34px !important; }
  .fv-deck { width: 28px !important; }
  .rules-list > div { grid-template-columns: 1fr; gap: 4px; }
  table.compact th, table.compact td { padding: 13px 10px; }
  table.compact th:first-child, table.compact td:first-child { padding-left: 14px; }
  table.compact th:last-child, table.compact td:last-child { padding-right: 14px; }
  table.compact thead th { font-size: .78rem; letter-spacing: .04em; white-space: normal; }
  table.compact td.num { font-size: 1.02rem; }

  .access-hero-map { margin-inline: calc(-1 * var(--gutter)); max-width: none; border-inline: 0; padding: 0; }
  .map-svg--d { display: none; }
  .map-svg--m { display: block; }
  .map-figure figcaption { flex-direction: column; padding: 12px var(--gutter) 14px; }
  .spot-list { grid-template-columns: 1fr; }
  .demo-dialog-inner { padding: 38px 22px 16px; }
}

@media (max-width: 419px) {
  .brand-sub { display: none; }
}
@media (max-width: 374px) {
  .demo-bar { font-size: .74rem; letter-spacing: .02em; }
  .nav-toggle { padding: 0 12px; }
  .stay-list li { white-space: normal; letter-spacing: .04em; }   /* 320px 寬不橫向溢出 */
}
