/* ==========================================================================
   包山包海 Cover Travel · v1.36 設計系統層
   --------------------------------------------------------------------------
   來源：DESIGN.md（專案根目錄，唯一視覺真源）
   載入順序：site.css -> theme.css -> design.css（本檔最後，負責收斂）
   本檔只做「令牌對齊、節奏統一、雙端分組、可視性修復、對比修復」，
   不改 DOM 結構、不改既有 class 名稱，後台區塊引擎完全不受影響。
   ========================================================================== */

/* --------------------------------------------------------------------------
   01 令牌對齊（與 DESIGN.md §2/§3/§5 一一對應）
   -------------------------------------------------------------------------- */
:root {
  --ds-brand-50: #F3F9F4;
  --ds-brand-100: #E3F1E6;
  --ds-brand-200: #C6E3CD;
  --ds-brand-400: #63BA7B;
  --ds-brand-500: #42A85F;
  --ds-brand-600: #2F7A44;
  --ds-brand-700: #235F35;
  --ds-brand-800: #1B4A29;
  --ds-brand-900: #16351F;

  --ds-ink: #1C2620;
  --ds-body: #3C4A41;
  --ds-muted: #5D6B62;
  --ds-hairline: #DCE7DE;
  --ds-on-dark-muted: #C6E3CD;

  --ds-section-y: 60px;
  --ds-section-y-tight: 36px;
  --ds-head-gap: 26px;
  --ds-card-pad: 26px;
  --ds-grid-gap: 18px;
  --ds-ico: 40px;

  /* 編輯式顯示字體：參考 Post Ranch Inn 的襯線大標題質感
     拉丁走 Georgia，中文走宋體／明體（Songti SC / STSong / SimSun），
     不依賴外部字體，離線與各平台皆可渲染 */
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif TC",
    "Source Han Serif SC", Georgia, "Times New Roman", "STSong", "SimSun", serif;

  --ds-shadow-card: 0 1px 2px rgba(22, 53, 31, .05), 0 8px 24px rgba(22, 53, 31, .05);
  --ds-shadow-float: 0 12px 36px rgba(22, 53, 31, .14);

  /* 回寫既有令牌，讓 theme.css 的元件自動吃到新值 */
  --section-y: var(--ds-section-y);
  --section-y-tight: var(--ds-section-y-tight);
  --gutter: 24px;
  --line: var(--ds-hairline);
  --ink-400: var(--ds-muted);
  --ink-500: var(--ds-muted);
}

/* --------------------------------------------------------------------------
   02 可視性修復：進場動畫不得把內容藏起來
   DESIGN.md §7 —— opacity:0 當預設狀態，JS 未觸發等於整頁空白
   -------------------------------------------------------------------------- */
.reveal,
.reveal:not(.is-in),
html.has-reveal .section,
html.has-reveal .section:not(.is-inview),
html.has-reveal .tagline,
html.has-reveal .section-tight,
html.has-reveal .section-cta,
html.has-reveal .ota-section,
html.has-reveal .quick-section {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}

/* 保留極輕的 hover 回饋，不做進場位移 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --------------------------------------------------------------------------
   03 節奏鐵律：所有區塊 60px（手機 40px），禁止雙倍留白
   -------------------------------------------------------------------------- */
.section,
.ota-section,
.section-dark,
.section-cta,
.section-cta-light,
.section-tint,
.statement,
.tagline,
.news-editorial,
.ota-trust { padding-block: var(--ds-section-y) !important; }

.ota-search { padding-block: 0 !important; }
.quick-section { padding-block: var(--ds-section-y-tight) !important; }
.quick-section.is-overlap { padding-block: 0 var(--ds-section-y-tight) !important; }

/* 首屏：滿幅深綠、白字、白數據面板；底部留給搜尋條疊合 */
.page-hero.hero-ui {
  padding-block: 56px 92px !important;
  background: var(--ds-brand-900);
  background-image: none !important;
  color: #fff;
}
/* 中和 theme.css 在首屏疊的漸變／網格紋理（DESIGN.md：禁用漸層與裝飾背景） */
.page-hero, .page-hero.hero-ui, .page-hero.hero-media, .page-hero.hero-flat,
.hero-ui-grid, .hero-split-grid { background-image: none !important; }
/* overlay 沉浸式首屏：透明頁頭疊在綠底上，給足上方留白避免白卡擠壓導覽 */
.has-overlay .page-hero.hero-ui { padding-top: 132px !important; }
/* 中和 theme.css 在首屏偽元素（::before/::after）疊的網格／曲線紋理 */
.page-hero::before, .page-hero::after,
.page-hero.hero-ui::before, .page-hero.hero-ui::after,
.hero-ui-grid::before, .hero-ui-grid::after,
.corp-hero::before, .corp-hero::after {
  content: none !important; background-image: none !important; display: none !important;
}
.page-hero.hero-ui h1 { color: #fff; }
.hero-ui-kicker, .hero-ui-lead, .hero-ui-facts { color: var(--ds-on-dark-muted); }

/* 相鄰同色區塊用緊湊節奏，視覺上仍屬同一組 */
.section-tint + .section-tint,
.ota-section + .ota-section { padding-top: var(--ds-section-y-tight) !important; }

/* 區塊標題 → 網格固定 20px */
.section-head { margin-bottom: var(--ds-head-gap) !important; }
.section-head.is-center { margin-bottom: var(--ds-head-gap) !important; }
.section-head .section-sub, .section-head p, .section-sub {
  color: var(--ds-muted) !important;
  max-width: 60ch;
  margin-top: 6px !important;
}
.section-head h2, .section-head h3 { color: var(--ds-ink); }

/* --------------------------------------------------------------------------
   04 圖示系統：統一到 40px 晶片，每個區塊／卡片／入口都看得到
   -------------------------------------------------------------------------- */
.sec-ico, .ota-ico, .quick-ico, .stat-ico, .cta-ico {
  width: var(--ds-ico) !important;
  height: var(--ds-ico) !important;
  border-radius: 12px !important;
  background: var(--ds-brand-50) !important;
  color: var(--ds-brand-600) !important;
  flex: none;
}
.sec-ico .ico, .ota-ico .ico, .quick-ico .ico, .stat-ico .ico, .cta-ico .ico {
  width: 20px !important; height: 20px !important;
}
.quick-ico { border-radius: 10px !important; }

/* 深色面上的圖示晶片改用半透明白，避免「白底白圖」 */
.section-dark .sec-ico, .section-dark .ota-ico, .section-dark .cta-ico,
.statement .sec-ico, .cta-panel .cta-ico,
.page-hero.hero-ui .sec-ico, .page-hero.hero-ui .ota-ico {
  background: rgba(255, 255, 255, .14) !important;
  color: #A8E6B8 !important;
}
.section-dark .section-head h2, .section-dark .section-head p,
.section-dark .section-sub, .statement .section-head h2 {
  color: #fff !important;
}
.section-dark .section-sub, .statement .section-sub { color: var(--ds-on-dark-muted) !important; }

/* --------------------------------------------------------------------------
   05 雙端分組：旅客組／商家組，靠標題與位置區分，不靠兩套視覺
   -------------------------------------------------------------------------- */
.ql-groups { display: grid; gap: 18px; }
.ql-group__title {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px; font-size: 12px; font-weight: 600;
  letter-spacing: .08em; color: var(--ds-brand-700);
}
.ql-group__title .ico { width: 15px; height: 15px; }
.ql-group__title::after {
  content: ''; flex: 1; height: 1px; background: var(--ds-hairline);
}
.ql-group--merchant .ql-group__title { color: var(--ds-muted); }
.ql-group .quick-grid { gap: 12px; }
.ql-group--merchant .quick-item {
  background: var(--ds-brand-50);
  border-color: var(--ds-brand-100);
}

.quick-item {
  justify-content: flex-start !important;
  min-height: 60px !important;
  padding: 12px 16px !important;
  gap: 12px !important;
  border: 1px solid var(--ds-hairline) !important;
  border-radius: 12px !important;
  color: var(--ds-ink) !important;
  font-size: 15px !important;
  font-weight: 600;
  background: #fff;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.quick-item::after {
  content: '\\2192'; margin-left: auto; font-size: 16px;
  color: var(--ds-brand-600); opacity: .55;
}
.quick-item:hover {
  background: var(--ds-brand-50) !important;
  border-color: var(--ds-brand-200) !important;
  transform: translateY(-1px);
}
.quick-item:hover::after { opacity: 1; }

/* --------------------------------------------------------------------------
   06 卡片／按鈕／搜尋列：DESIGN.md §4 元件狀態
   -------------------------------------------------------------------------- */
.ota-card, .info-card, .media-card, .step-card, .duty-card, .plan-card {
  background: #fff;
  border: 1px solid var(--ds-hairline) !important;
  border-radius: 14px !important;
  padding: var(--ds-card-pad) !important;
  box-shadow: var(--ds-shadow-card);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ota-card:hover, .info-card:hover, .media-card:hover {
  transform: translateY(-2px);
  border-color: var(--ds-brand-200) !important;
  box-shadow: var(--ds-shadow-float);
}
/* 末排只剩一張時置中，避免 13 間旅宿留一張孤卡在左下角 */
.ota-grid.cols-3 > :last-child:nth-child(3n + 1) { grid-column: 2; }
.ota-card__title, .info-card h3, .media-body h3 { color: var(--ds-ink); }
.ota-card__meta, .ota-card__lead, .ota-trust-item p, .info-card p {
  color: var(--ds-muted) !important;
}
.ota-card__link { color: var(--ds-brand-700) !important; }
.ota-price, .ota-rating strong, .data-num, .ui-panel-num {
  font-variant-numeric: tabular-nums;
}
.ota-pill { background: var(--ds-brand-50); color: var(--ds-brand-700); }
.ota-chips span, .ota-amenity { color: var(--ds-muted); }

/* 入住須知：鍵值列取代原始 JSON，圖示＋短標籤，可掃讀 */
.ota-policies {
  display: grid; border: 1px solid var(--ds-hairline);
  border-radius: 12px; overflow: hidden;
}
.ota-policy {
  display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--ds-hairline);
  font-size: 14px; line-height: 1.6; color: var(--ds-body);
}
.ota-policy:last-child { border-bottom: 0; }
.ota-policy__k {
  display: flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--ds-brand-700);
}
.ota-policy__k .ico { width: 15px; height: 15px; flex: none; }
@media (max-width: 559px) {
  .ota-policy { grid-template-columns: 1fr; gap: 2px; }
}

.ota-search-bar {
  border: 1px solid var(--ds-hairline) !important;
  border-radius: 16px !important;
  box-shadow: var(--ds-shadow-float) !important;
}
.ota-field__label { color: var(--ds-brand-700) !important; font-size: 12px !important; }
.ota-search__hint { color: var(--ds-muted) !important; }

.btn-primary {
  background: var(--ds-brand-600) !important;
  color: #fff !important;
  border: 1px solid var(--ds-brand-600) !important;
}
.btn-primary:hover { background: var(--ds-brand-700) !important; border-color: var(--ds-brand-700) !important; }
.btn-inverse, .btn-primary.btn-inverse {
  background: #fff !important; color: var(--ds-brand-900) !important; border-color: #fff !important;
}
.btn-inverse:hover { background: var(--ds-brand-50) !important; }
/* 白底上的 ghost 必須是深色字；深底上才用白字白框 */
.btn-ghost { color: var(--ds-brand-700) !important; border-color: var(--ds-brand-200) !important; }
.section-dark .btn-ghost, .page-hero.hero-ui .btn-ghost,
.hero-ui .btn-ghost, .statement .btn-ghost, .cta-panel .btn-ghost {
  color: #fff !important; border-color: rgba(255, 255, 255, .5) !important;
}
:where(a, button):focus-visible {
  outline: 3px solid var(--ds-brand-400); outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   07 頁頭／頁腳：共用 chrome，弱化商家入口、強化旅客主路徑
   -------------------------------------------------------------------------- */
.site-header { background: var(--ds-brand-900) !important; }
/* 沉浸式頁（/join）頁頭預設透明；v1.53.5 起由 join.css §13 只在 /join 覆寫為白底 */
.site-header.is-overlay:not(.is-stuck) { background: transparent !important; }
/* site.css 把 overlay 的 .header-inner 刷成 96% 白，會造成「白底白字」看不見導覽 */
.site-header.is-overlay:not(.is-stuck) .header-inner {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.has-overlay .page-hero.hero-ui { padding-top: 116px !important; }
.site-header .nav-link, .site-header .brand { color: #fff !important; }
.site-header .nav-link:hover, .site-header .nav-link.is-active { color: var(--ds-brand-200) !important; }
/* 「商家入駐」是次要入口：不用實心主 CTA */
.site-header .nav-cta {
  background: transparent !important;
  color: var(--ds-on-dark-muted) !important;
  border: 1px solid rgba(255, 255, 255, .32) !important;
  font-weight: 500;
}
.site-header .nav-cta:hover { color: #fff !important; border-color: #fff !important; }
/* 深綠底上的描邊按鈕：白字白框更挺括，避免「白底白字／邊框發虛」 */
.section-dark .btn-ghost, .page-hero.hero-ui .btn-ghost,
.hero-ui .btn-ghost, .statement .btn-ghost, .cta-panel .btn-ghost {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .6) !important;
  font-weight: 600 !important;
}
/* 訂房导流：與「商家合作」CTA 並列，綠字描邊，強調雙端定位 */
.header-book {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  color: var(--ds-brand-200) !important; text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, .28);
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.header-book svg { width: 15px; height: 15px; }
.header-book:hover { background: rgba(255, 255, 255, .12); color: #fff !important; border-color: rgba(255, 255, 255, .6); }
.site-footer { background: var(--ds-brand-900) !important; color: var(--ds-on-dark-muted) !important; }
.site-footer h4, .site-footer .facts-title { color: #fff !important; }
.site-footer a { color: var(--ds-on-dark-muted) !important; }
.site-footer a:hover { color: #fff !important; }
/* 訂房导流：頁腳醒目一行，綠底白字強調「品牌官網不訂房、要訂去訂房站」 */
.footer-booking {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px;
  padding: 16px 22px; margin: 0 auto 18px; max-width: var(--ds-content-max, 1200px);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
}
.footer-booking .fb-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: #fff;
}
.footer-booking .fb-label svg { width: 18px; height: 18px; color: var(--ds-brand-400); }
.footer-booking .fb-link {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  padding: 9px 18px; border-radius: 999px;
  background: #fff !important; color: var(--ds-brand-900) !important;
  font-size: 14px; font-weight: 700; text-decoration: none !important;
  transition: background .18s ease, transform .18s ease;
}
.footer-booking .fb-link svg { width: 15px; height: 15px; }
.footer-booking .fb-link:hover { background: var(--ds-brand-50) !important; transform: translateY(-1px); }
.footer-booking .fb-note { flex: 1 1 100%; margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ds-on-dark-muted); }
@media (max-width: 559px) {
  .footer-booking { padding: 14px 16px; }
  .footer-booking .fb-link { margin-left: 0; width: 100%; justify-content: center; }
}
.topbar { background: var(--ds-brand-800) !important; color: var(--ds-on-dark-muted) !important; }
.topbar a { color: #fff !important; }

/* --------------------------------------------------------------------------
   08 響應式：390px 零橫向溢出、觸控目標、緊湊節奏
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .page-hero.hero-ui h1 { font-size: 48px; }
}
@media (max-width: 760px) {
  :root { --ds-section-y: 40px; --gutter: 16px; }
  .page-hero.hero-ui { padding-block: 40px 72px !important; }
  .has-overlay .page-hero.hero-ui { padding-top: 88px !important; }
  .page-hero.hero-ui h1 { font-size: 36px; }
  .ota-search-bar { grid-template-columns: 1fr 1fr !important; }
  .ota-field { border-right: 0 !important; border-bottom: 1px solid var(--ds-hairline); }
  .ota-search__go { grid-column: 1 / -1; }
  .ota-grid, .quick-grid, .ota-trust-grid { grid-template-columns: 1fr 1fr !important; }
  .ql-groups { grid-template-columns: 1fr; }
}
@media (max-width: 559px) {
  .ota-grid, .quick-grid, .ota-trust-grid,
  .card-grid, .service-grid, .step-grid, .plan-grid, .partner-mini-grid {
    grid-template-columns: 1fr !important;
  }
  /* 桌面 3 欄時「末排孤卡置中」用 grid-column:2；
     單欄時那會生出一個隱式第二欄，把 13 張卡壓成 54px／288px 交替。
     窄屏一律拉回自動定位。 */
  .ota-grid.cols-3 > :last-child:nth-child(3n + 1) { grid-column: auto; }
  .ota-search-bar { grid-template-columns: 1fr !important; }
  .hero-ui-actions .btn { width: 100%; justify-content: center; }
  .btn { min-height: 44px; }

  /* 數據面板改為三格橫排：手機上不再佔掉半個螢幕 */
  .ui-panel { margin-top: 20px; padding: 16px !important; }
  .ui-panel-head { padding-bottom: 10px !important; }
  .ui-panel-head b { font-size: 10px !important; }
  .ui-panel-head span { font-size: 11px !important; }
  .ui-panel-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .ui-panel-row {
    display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
    padding: 10px 0 0 !important; border-bottom: 0 !important;
    border-top: 1px solid var(--ds-hairline);
  }
  .ui-panel-num { font-size: 26px !important; }
  .ui-panel-body strong { font-size: 11px !important; }
  .ui-panel-body small { display: none; }
  .ui-panel-bar { width: 100%; height: 5px !important; margin-top: 4px !important; }
  .ui-panel-foot { margin-top: 10px !important; padding-top: 8px !important; font-size: 9px !important; }
}

/* --------------------------------------------------------------------------
   09 色面節奏：中段穿插淺綠與深綠，避免「一片白到底」顯得扁平
   DESIGN.md §5：白 → brand-50 → 白 → brand-900 交替當分隔
   -------------------------------------------------------------------------- */
.section.ota-trust { background: var(--ds-brand-50) !important; }
.section.ota-trust .section-head h2,
.section.ota-trust .section-head .eyebrow { color: var(--ds-ink); }

.section.step-section { background: var(--ds-brand-900) !important; color: #fff !important; }
.section.step-section .section-head h2 { color: #fff !important; }
.section.step-section .section-head .section-sub,
.section.step-section .section-sub { color: var(--ds-on-dark-muted) !important; }
.section.step-section .step-card {
  background: rgba(255, 255, 255, .05) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  color: #fff !important;
}
.section.step-section .step-card h3 { color: #fff !important; }
.section.step-section .step-card p { color: var(--ds-on-dark-muted) !important; }
.section.step-section .step-no {
  background: var(--ds-brand-500) !important; color: #fff !important;
}
.section.step-section .step-card:hover { background: rgba(255, 255, 255, .1) !important; }

/* --------------------------------------------------------------------------
   10 Cookie 告知條：壓到最小高度，避免首次造訪遮住首屏與找房 CTA
   -------------------------------------------------------------------------- */
/* 收斂成右下角小卡，不再壓住居中的章節導覽條 */
.cookie-bar,
.cookie-bar.is-in {
  left: auto !important;
  right: 20px !important;
  bottom: 14px !important;
  transform: none !important;
  padding: 10px 14px !important;
  width: min(400px, calc(100% - 32px)) !important;
  border-radius: 12px !important;
  border-color: var(--ds-hairline) !important;
  box-shadow: 0 8px 28px rgba(22, 53, 31, .16) !important;
}
.cookie-bar .cookie-inner { display: flex; flex-wrap: wrap; }
.cookie-bar .cookie-inner p { flex: 1 1 100% !important; }
.cookie-bar .cookie-actions { width: 100%; }
.cookie-bar .cookie-actions .btn { flex: 1; }
.cookie-inner { padding: 0 !important; gap: 8px 12px !important; }
.cookie-inner p {
  flex: 1 1 260px !important;
  font-size: 12px !important; line-height: 1.5 !important;
  color: var(--ds-body) !important;
}
.cookie-actions .btn { min-height: 34px !important; padding: 5px 12px !important; font-size: 12.5px !important; }
@media (max-width: 559px) {
  .cookie-bar,
  .cookie-bar.is-in {
    bottom: 8px !important; left: 8px !important; right: 8px !important; width: auto !important;
  }
  .cookie-inner { flex-direction: column; align-items: stretch; }
  /* 欄方向時 flex-basis 會變成「高度」，必須歸零，否則整條被撐到 300px */
  .cookie-bar .cookie-inner p { flex: none !important; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}

/* --------------------------------------------------------------------------
   10 v1.36 品牌章節導覽條（取代找房搜尋列：純導覽、無表單、無交易）
   -------------------------------------------------------------------------- */
.brand-nav { position: relative; z-index: 4; margin-top: -38px; }
.brand-nav__inner {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px 24px !important;
  background: #fff; border: 1px solid var(--ds-hairline);
  border-radius: 14px; box-shadow: var(--ds-shadow-float);
}
.brand-nav__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--ds-brand-700);
}
.brand-nav__label svg { width: 18px; height: 18px; }
.brand-nav__links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.brand-nav__item {
  display: flex; align-items: center; gap: 9px;
  min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--ds-hairline); border-radius: 10px;
  background: var(--ds-brand-50);
  color: var(--ds-ink) !important; font-size: 14px; font-weight: 600;
  text-decoration: none !important;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.brand-nav__item:hover { background: var(--ds-brand-100); border-color: var(--ds-brand-200); transform: translateY(-1px); }
.brand-nav__item > svg:first-child { width: 20px; height: 20px; color: var(--ds-brand-600); flex: none; }
.brand-nav__item > span { flex: 1; }
.brand-nav__item > svg:last-child { width: 16px; height: 16px; color: var(--ds-brand-600); flex: none; }
.brand-nav__note {
  margin: 0; padding-top: 12px; border-top: 1px solid var(--ds-hairline);
  font-size: 12.5px; line-height: 1.6; color: var(--ds-muted);
}

/* 卡片末尾：價格／評分位已移除，改成「合作旅宿／項特色」的展示位 */
.ota-card__foot .ota-pill--soft {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ds-brand-50) !important; color: var(--ds-brand-700) !important;
  font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
}
.ota-card__foot .ota-pill--soft svg { width: 14px; height: 14px; }
.ota-room__price { display: flex; align-items: center; gap: 6px; color: var(--ds-brand-700); font-size: 12px; }
.ota-room__price svg { width: 16px; height: 16px; }
.ota-bookbox .btn { width: 100%; justify-content: center; margin-top: 12px; }
.ota-bookbox .btn-ghost {
  background: #fff !important; color: var(--ds-brand-700) !important;
  border: 1px solid var(--ds-brand-200) !important;
}

@media (max-width: 760px) {
  .brand-nav__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .brand-nav { margin-top: -24px; }
  .brand-nav__inner { padding: 16px !important; gap: 12px; }
  .brand-nav__item { min-height: 44px; padding: 8px 10px; font-size: 13px; }
  .brand-nav__note { font-size: 12px; }
}

/* --------------------------------------------------------------------------
   11 首次造訪告知條：再壓一階，手機端不蓋住章節導覽
   -------------------------------------------------------------------------- */
.cookie-bar .cookie-inner { padding: 0 !important; gap: 6px 10px !important; }
.cookie-bar .cookie-inner p { font-size: 11.5px !important; line-height: 1.45 !important; }
.cookie-bar .cookie-actions .btn { min-height: 30px !important; padding: 4px 10px !important; font-size: 12px !important; }

/* --------------------------------------------------------------------------
   12 編輯式奢華排版：參考 Post Ranch Inn（襯線大標題、拉開字距小標籤、
      克制描邊按鈕、慷慨留白）。綠色主色與純 UI 零照片前提不變。
   -------------------------------------------------------------------------- */

/* 12.1 顯示級標題改用襯線，營造高端旅宿品牌的編輯式質感 */
h1, h2, .display,
.page-hero.hero-ui h1,
.section-head h2, .section-head h3 {
  font-family: var(--font-serif) !important;
  font-weight: 600 !important;
  letter-spacing: .01em !important;
}
.section-head h2 {
  font-size: clamp(25px, 3.2vw, 36px) !important;
  line-height: 1.2 !important;
}
.section-head.is-center h2 { margin-inline: auto; }
.page-hero.hero-ui h1 {
  font-size: clamp(34px, 5vw, 60px) !important;
  line-height: 1.12 !important;
  letter-spacing: .005em !important;
}

/* 12.2 小標籤（eyebrow）：字距拉開、大寫、配一條細規線，呼應 Post Ranch 的
       STAY / DINE / EXPERIENCES 起手式 */
.eyebrow, .eyebrow-light {
  font-family: var(--font-sans) !important;
  letter-spacing: .24em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  font-size: 11.5px !important;
}
.eyebrow::before, .eyebrow-light::before {
  width: 26px !important; height: 1px !important;
  opacity: .55 !important; background: currentColor !important;
}
.eyebrow:not(.eyebrow-light) { color: var(--ds-brand-600) !important; }
.eyebrow-light { color: var(--ds-brand-200) !important; }

/* 深色容器上的小標籤：上面那條 !important 會把 eyebrow 一律壓成 #2F7A44，
   而 #2F7A44 在 #16351F 上對比度只有約 2.1:1（AA 需要 4.5:1），等於看不見。
   這裡用更高特異性 + !important 把深底上的小標籤拉回品牌淺綠。
   涵蓋目前所有深色容器：深色頁頭、深綠/墨色 section、深色 hero、OTA 頁首。 */
.page-head-dark .eyebrow:not(.eyebrow-light),
.section-dark .eyebrow:not(.eyebrow-light),
.section-brand .eyebrow:not(.eyebrow-light),
.section-ink .eyebrow:not(.eyebrow-light),
.page-hero.hero-dark .eyebrow:not(.eyebrow-light),
.ota-page-hero .eyebrow:not(.eyebrow-light),
.hero-split-copy .eyebrow:not(.eyebrow-light) { color: var(--brand-300) !important; }

/* 首屏小標籤：搬到深綠首屏上的優雅起手 */
.hero-ui-kicker {
  font-family: var(--font-sans) !important;
  letter-spacing: .26em !important;
  text-transform: uppercase !important;
  font-size: 12px !important; font-weight: 600 !important;
}
/* 首屏正文：深綠底上提亮對比、加大行高，給足呼吸感 */
.hero-ui-lead {
  color: rgba(255, 255, 255, .92) !important;
  line-height: 1.72 !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  max-width: 36ch !important;
}
/* 全站正文行高略放大，貼近編輯式閱讀的從容感 */
body { line-height: 1.62 !important; }

/* 12.3 導覽與品牌字標：細緻字距，弱化喧鬧感 */
.site-header .brand {
  font-family: var(--font-serif) !important;
  letter-spacing: .02em !important;
}
.site-header .nav-link { letter-spacing: .04em; font-weight: 500; }

/* 12.4 按鈕：字距拉開、更克制，描邊按鈕趨近 Post Ranch 的 LEARN MORE → 質感 */
.btn { letter-spacing: .04em; }
.btn-primary, .btn-ghost, .btn-inverse { letter-spacing: .04em; }
.site-header .nav-cta, .header-book { letter-spacing: .03em; }

/* 12.5 卡片圓角略放大，質感更溫潤 */
.ota-card, .info-card, .media-card, .step-card, .duty-card, .plan-card {
  border-radius: 16px !important;
}

/* --------------------------------------------------------------------------
   13.x hero-split 修正（v1.44.0）
   -------------------------------------------------------------------------- */
/* 深綠首屏上的描邊按鈕必須是白字白框。上面那段 .btn-ghost 的深綠字是給
   白底用的，hero-split 不在白名單裡，結果「商家入駐」在深綠底上整顆隱形
   （框還在、字不見）。這裡補進白名單。 */
.page-hero.hero-split .btn-ghost {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .55) !important;
  font-weight: 600 !important;
}
.page-hero.hero-split .btn-ghost:hover {
  background: rgba(255, 255, 255, .14) !important;
  border-color: #fff !important;
}
/* 首屏大標：80px 在 542px 的欄寬裡一行只放得下 6 個字，實際斷成
   「把臺灣的／山與海，／帶到更多人面／前」四行還留一個孤字。
   收到 62px 並開 balance，兩行收乾淨。 */
.page-hero.hero-split .page-hero-inner h1 {
  font-size: clamp(34px, 4.35vw, 62px) !important;
  line-height: 1.14 !important;
  text-wrap: balance;
}
/* 文案欄略寬一點，讓「把臺灣的山與海，」這種 8 字短句不必折 */
@media (min-width: 1081px) {
  .hero-split-grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); }
}

/* --------------------------------------------------------------------------
   13.y 頁頭 LOGO 承托片（v1.44.0 建立 / v1.53.1 放大）
   --------------------------------------------------------------------------
   原本 .brand-logo 被整顆 filter: brightness(0) invert(1) 反白。反白後字標
   的細筆畫在 32px 高度會黏成一塊白色方塊，實測截圖看起來像「logo 被白塊蓋
   住」。改回原色，底下墊一塊白色圓角承托片，字標在深綠頁頭上反而更清楚。
   （白底頁頭不需要承托片，visual-a.css 會用 !important 把 background/padding 清掉。）

   v1.53.1 放大：LOGO 原圖 511×181（寬高比 2.82），height 是唯一的尺寸變因，
   所以改 height 時 max-width 必須同步放寬——否則 max-width 會反過來把圖片
   連高度一起壓回去，放大看起來「沒生效」。
     · 桌面 ≥1081  26 → 40px（1.54×），實寬 73 → 113px
     · 平板 769–1080 36px（1.38×），實寬 102px
     · 手機 ≤768    22 → 30px（1.36×），實寬  85px；≤420px 再收 28px
   頁頭高度全站固定 72px（手機實測也是 72px），承托片＝LOGO + padding：
   桌面 40+12=52px、手機 30+10=40px，都留在 72px 內，頁頭不會被撐高，
   join.css 的 --join-head:72px、錨點偏移與吸頂目錄也都不需要跟著改。
   這段選擇器特異性 (0,2,0) 高於 site.css / theme.css 的 .brand-logo (0,1,0)，
   是頁頭 LOGO 的唯一真相源；改尺寸請改這裡，不要去改前兩層的死規則。 */
.site-header .brand {
  background: #fff;
  border-radius: 10px;
  padding: 6px 13px;
  line-height: 0;
  transition: background .2s ease, box-shadow .2s ease;
}
.site-header .brand:hover { box-shadow: 0 2px 12px rgba(9, 26, 15, .18); }
.site-header .brand-logo {
  filter: none !important;
  height: 40px;
  max-width: 200px;
  /* 後台可換 LOGO：非 2.82 比例的圖不變形、靠左對齊，不會把承托片撐歪 */
  object-fit: contain;
  object-position: left center;
}
/* 平板：7 項導覽仍在列，放大幅度收斂一階，避免 980–1080px 擠壓 */
@media (max-width: 1080px) {
  .site-header .brand-logo { height: 36px; max-width: 180px; }
}
@media (max-width: 768px) {
  .site-header .brand { padding: 5px 10px; border-radius: 8px; }
  .site-header .brand-logo { height: 30px; max-width: 150px; }
}
/* 小手機：右側仍有「前往訂房 + 搜尋 + 漢堡」，LOGO 再讓 2px */
@media (max-width: 420px) {
  .site-header .brand-logo { height: 28px; max-width: 140px; }
}

/* hero-ui 首屏：數據面板的投影從「透明頁頭」後面透上來，會把導航文字壓灰。
   收窄投影的擴散半徑（負 spread），往下打光而不往上糊。 */
.page-hero.hero-ui .ui-panel { box-shadow: 0 34px 64px -26px rgba(6, 22, 12, .45); }

/* hero-ui 首屏：頁頭是透明覆蓋（hero 上移 84px），而右側數據面板夠高，
   會從頁頭底下透出來，把「資訊公開／關於我們／聯絡我們」壓成白字白底。
   桌面把面板下移，讓它的上緣落在頁頭下緣（72px）之外。 */
@media (min-width: 1081px) {
  .page-hero.hero-ui .ui-panel { margin-top: 40px; }
}

/* ==========================================================================
   §18 圖片模組展示屬性 · imageAsBackground（v1.46）
   --------------------------------------------------------------------------
   來源：DESIGN.md → components.imageAsBackground / lib/image-bg.js
   狀態：只有 data-image-bg="on" 才輸出圖層；關閉時渲染端完全不介入，
         非圖片區域因此不受影響。
   實作：用 <img> 絕對定位圖層，不用 CSS background-image —— §03 有
         `.page-hero { background-image:none !important }` 的全站收斂規則，
         用 CSS 背景會被整條清掉。
   對比：淺底區用品牌 brand-50 白綠遮罩、深底區用 brand-900 深綠遮罩，
         兩者都覆蓋在照片之上、內容之下，保留原有文字色不改動元件。
   ========================================================================== */
.has-image-bg {
  position: relative;
  isolation: isolate;
  /* 刻意不設 overflow:hidden：首屏浮動數據卡、宮格入口會跨區塊邊界 */
}
.has-image-bg > .image-bg,
.has-image-bg > .image-bg__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.has-image-bg > .image-bg {
  z-index: -2;
  overflow: hidden;
}
.has-image-bg > .image-bg__veil { z-index: -1; }

.image-bg__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* 同一個屬性、兩種底色狀態：由渲染端依區域原有 class 自動派生 */
[data-image-bg-tone="light"] > .image-bg__veil {
  background: rgba(243, 249, 244, .86); /* --ds-brand-50 */
}
[data-image-bg-tone="dark"] > .image-bg__veil {
  background: rgba(22, 53, 31, .80);    /* --ds-brand-900 */
}

/* 淺底大圖區的防呆：少數舊版區塊會帶「深底專用」的淺色描邊按鈕，
   在淺綠遮罩上會变成白字白底。這裡只修這一個狀態，不影響深底區。 */
[data-image-bg-tone="light"] .btn-outline-light {
  color: var(--ds-ink) !important;
  border-color: var(--ds-brand-600) !important;
  background: transparent !important;
}

/* 平板／手機：底圖不裁切內容，只把遮罩加深，確保小字與按鈕邊界可讀 */
@media (max-width: 900px) {
  [data-image-bg-tone="light"] > .image-bg__veil { background: rgba(243, 249, 244, .90); }
  [data-image-bg-tone="dark"] > .image-bg__veil { background: rgba(22, 53, 31, .84); }
}
@media (max-width: 600px) {
  [data-image-bg-tone="light"] > .image-bg__veil { background: rgba(243, 249, 244, .92); }
  [data-image-bg-tone="dark"] > .image-bg__veil { background: rgba(22, 53, 31, .87); }
  .has-image-bg .image-bg__img { object-position: 50% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .has-image-bg .image-bg__img { transform: none !important; transition: none !important; }
}

/* --------------------------------------------------------------------------
   14 回到頂部按鈕（v1.54.1）
   --------------------------------------------------------------------------
   固定右下角的圓形髮絲線按鈕：白底 + 1px 髮絲線 + 深綠箭頭，零陰影、
   不做毛玻璃（方案 A「大圖 2 處／液態玻璃 1 處」的配額不能再多一個面），
   圓角沿用 .btn 的 999px 膠囊語言，尺寸 44px 對齊觸控目標。
   z-index 85：低於頁頭(90)與 Cookie 條(120)，高於 /join 吸底條(60)，
   所以手機抽屜或告知條打開時按鈕不會浮在最上層壓住它們。
   與右下角固定的 Cookie 條、/join 手機吸底條重疊時改用 bottom 偏移避讓，
   不壓住任何可點區域（Cookie 高約 105、吸底條 67，數值同 join.css §14）。
   回退方式：刪掉本節 + layout.js 的 backTop() + site.js 的同名區塊。
   -------------------------------------------------------------------------- */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 85;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ds-hairline);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--ds-brand-700, #2B7649);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease,
              bottom .22s ease, background-color .18s ease,
              border-color .18s ease, color .18s ease;
}
.back-top.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover {
  background: var(--ds-brand-50, #F6FCF8);
  border-color: var(--ds-brand-500, #57B26F);
  color: var(--ds-brand-800, #235F3B);
}
.back-top:active { transform: translateY(1px); }
.back-top__icon { display: block; }

/* 回到頂部後把焦點交還 <main>（程式化焦點，tabindex=-1），
   這裡不畫整頁焦點框；鍵盤 Tab 不會停在 main 上，不影響可見焦點要求。 */
#main:focus { outline: none; }

/* 首次造訪：Cookie 條固定在右下（bottom:14、高約 105），按鈕上移讓位 */
body.has-cookie .back-top { bottom: 132px; }

/* /join 手機吸底轉化條固定 bottom:0、高約 67；Cookie 出現時它自己上移到 124 */
@media (max-width: 900px) {
  body.is-join .back-top { bottom: 84px; }
  body.is-join.has-cookie .back-top { bottom: 204px; }
}

@media (max-width: 559px) {
  .back-top {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 42px; height: 42px;
  }
  body.has-cookie .back-top { bottom: calc(128px + env(safe-area-inset-bottom, 0px)); }
  body.is-join .back-top { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  body.is-join.has-cookie .back-top { bottom: calc(200px + env(safe-area-inset-bottom, 0px)); }
}

@media print {
  .back-top { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .back-top { transition: none; }
}
