/* Belleza 自架（SIL Open Font License，允許自行架設）。
   刻意不從 Google Fonts 載：nozomirent.com 的 CSP 設在 Cloudflare 後台、
   不在本 repo 內，改不到；該政策的 font-src 只允許 'self'，外部字型會被擋掉，
   wordmark 就會退回 Times New Roman。放在自己站上即符合 'self'，不需後台權限。
   檔案取自 Google Fonts 的 woff2（latin + latin-ext，共約 18KB）。 */
@font-face {
  font-family: 'Belleza';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('belleza-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Belleza';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('belleza-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* NOZOMI 官網視覺系統「3a」——白底＋深棕＋細髮絲線的日系極簡。
   規則：圓角 0（全站直角）、無陰影、數字一律 tabular-nums、圖片保持彩色（嚴禁去色）。
   設計稿：design_handoff_nozomi_site（2026-08-08 版，首頁大圖版）。 */

:root {
  color-scheme: light;
  accent-color: #5c342e;

  --primary: #5C342E;          /* 京都茶（品牌主色） */
  --primary-hover: #46261F;
  --gold: #B5810C;             /* 優惠價／區段標名 */
  --accent: #B5810C;           /* 舊名保留：admin 等既有樣式仍引用 */
  --alert: #B5442C;            /* 警示／推薦／省額 */
  --alert-surface: #FBF4F1;

  --ink: #1A1310;              /* 標題／價格 */
  --ink-soft: #262220;         /* 內文／頁尾連結 */
  --muted: #5A4A3A;            /* 次要文字 */
  --faint: #8A7562;            /* 淡文字／標籤 */

  --surface: #FFFFFF;
  --muted-surface: #F4EEE4;    /* 淺米底（TRUST／footer） */
  --tint-surface: #FBF8F2;     /* 說明框底 */
  --hairline: #E6DCCB;         /* 髮絲線 */
  --rule: #5C342E;             /* 重要分隔線 */
  --border: #E6DCCB;           /* 舊名保留 */
  --field-border: #C9BBA8;
  --danger: #EF4444;           /* 狀態色：取消／退款（不可更動） */
  --ok: #07833B;               /* 狀態色：已收款／已確認（不可更動） */
  --line-green: #06C755;
  --line-green-hover: #05B34C;
  --shadow: none;

  --shell: 1200px;
  /* sticky header 實際高度：上下 padding 18 + 望徽章 30 + 下緣 1px 框線 */
  --header-h: 81px;   /* 預設值；client.js 會依實際量測覆寫 */
  --gutter: clamp(20px, 5vw, 56px);

  /* 一律走系統字：線上 CSP（設在 Cloudflare 後台、不在本 repo）的 font-src 只允許 'self'，
     外部字型一定被擋。自架 Noto Sans TC 子集也不做——客戶姓名、車型、備註來自 D1，
     JS 執行期訊息也不在 build 時可知的字元集內，缺字會逐字退回系統字，
     同一段落混用兩套字形比全用系統字更難看。品牌識別由自架的 Belleza wordmark 承擔。

     拉丁字型排在前、CJK 明確指名在後（台灣同業一致作法），確保數字與英文用西文字形。
     ⚠️ 中文堆疊不得放入任何日文字型：使用者只要裝過日文 Noto／游ゴシック，
     中文就會拿到日文字形，逗號句號會靠左下而非台灣慣例的置中。 */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
  font-synthesis: none;
}
html[lang^="ja"] {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Noto Sans CJK JP",
    "Yu Gothic Medium", YuGothic, "BIZ UDPGothic", Meiryo, "MS PGothic", sans-serif;
}
html[lang^="en"] {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;   /* 1.9 是日文密排值；1.75 同時落在日文內容頁 1.7–1.8 與台灣同業 1.5–1.8 */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; }
h1, h2, h3 { color: var(--ink); font-weight: 700; }
.tabular, .num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px var(--gutter);
}
/* sticky 元素要貼滿視窗寬度才不會露出白邊，內容再置中。 */
body > .site-header { max-width: none; }
body > .site-header > * { max-width: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); }
.brand-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 0;                       /* 業主指定直角，勿改回圓角 */
  background: var(--primary); color: var(--muted-surface);
  font-size: 16px; font-weight: 700; flex: none;
}
.brand > span:last-child {
  font-family: "Belleza", "Times New Roman", serif;
  font-size: 23px; font-weight: 400; letter-spacing: .01em;
}
.header-right { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); flex-wrap: wrap; font-size: 12.5px; }
.header-link { color: var(--faint); text-decoration: none; white-space: nowrap; }
.header-link:hover { color: var(--primary); }
.header-button {
  background: var(--primary); color: #fff; text-decoration: none;
  padding: 10px 22px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; white-space: nowrap;
}
.header-button:hover { background: var(--primary-hover); color: #fff; }
.lang-switch {
  display: inline-flex; gap: 10px; align-items: baseline;
  font-size: 11.5px; border-left: 1px solid var(--hairline);
  padding-left: clamp(12px, 2vw, 20px);
}
/* 語系鍵靠字重區分目前語言，不靠顏色 —— 三個都是黑字。 */
.lang-switch-current { color: var(--ink); font-weight: 700; white-space: nowrap; }
.lang-switch-link { color: var(--ink); font-weight: 400; text-decoration: none; white-space: nowrap; }
.lang-switch-link:hover { color: var(--primary); }
.mobile-only-link { display: none; }
.mobile-header-actions { display: none; }

.site-header.mobile-nav-ready .brand:focus-visible,
.mobile-book-button:focus-visible,
.mobile-menu-toggle:focus-visible,
.site-header.mobile-nav-ready .header-right a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .site-header.mobile-nav-ready {
    min-height: 60px;
    padding: 8px var(--gutter);
    gap: 8px;
    flex-wrap: nowrap;
  }
  .site-header.mobile-nav-ready .brand { min-width: 0; min-height: 44px; gap: 8px; }
  .site-header.mobile-nav-ready .brand > span:last-child { font-size: 20px; }
  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex: none;
  }
  .mobile-book-button,
  .mobile-menu-toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
  .mobile-book-button {
    background: var(--primary);
    color: #fff;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-decoration: none;
  }
  .mobile-book-button:hover { background: var(--primary-hover); color: #fff; }
  .mobile-menu-toggle {
    min-width: 44px;
    border: 1px solid var(--primary);
    border-radius: 0;
    padding: 0 10px;
    background: #fff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }
  .site-header.mobile-nav-ready .header-right {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    padding: 8px var(--gutter) 16px;
    background: #fff;
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex-wrap: nowrap;
    font-size: 13px;
  }
  .site-header.mobile-nav-ready.is-menu-open .header-right { display: flex; }
  .site-header.mobile-nav-ready .header-right > .header-link,
  .site-header.mobile-nav-ready .header-right > .mobile-only-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid var(--hairline);
  }
  .site-header.mobile-nav-ready .header-right > .header-button { display: none; }
  .site-header.mobile-nav-ready .lang-switch {
    min-height: 52px;
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
    font-size: 12px;
  }
  .site-header.mobile-nav-ready .lang-switch > * {
    min-height: 44px;
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
  }
  .site-header.mobile-nav-ready .lang-switch > * + * { border-left: 1px solid var(--hairline); }
}

/* ---------------------------------------------------------------- Footer */
.site-footer {
  background: var(--muted-surface);
  border-top: 1px solid var(--rule);
  margin-top: auto;
  padding: clamp(36px, 4vw, 40px) var(--gutter) 20px;
}
.site-footer-inner {
  width: 100%; max-width: var(--shell); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px clamp(56px, 8vw, 112px); flex-wrap: wrap;
}
.site-footer-brand { flex: 1 1 260px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.site-footer-tagline { max-width: 24em; font-size: 12px; line-height: 1.8; letter-spacing: .12em; color: var(--muted); }
.site-footer-right {
  flex: 1 1 520px;
  display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 32px clamp(40px, 6vw, 80px);
}
.site-footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.site-footer-heading {
  margin: 0; padding-bottom: 8px; width: 100%;
  border-bottom: 1px solid rgba(92, 52, 46, .2);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ink);
}
.site-footer-links {
  width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start; gap: 4px 24px; font-size: 13px;
}
.site-footer-links a { color: var(--ink-soft); text-decoration: none; }
.site-footer-links a:hover { color: var(--primary); }
.site-footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; font-size: 12px; }
.site-footer-contact a, .site-footer-contact span { max-width: 100%; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.site-footer-contact a:hover { color: var(--primary); }
.site-footer-legal {
  width: 100%; max-width: var(--shell); margin: 14px auto 0;
  border-top: 1px solid rgba(92, 52, 46, .2); padding-top: 14px;
  font-size: 11px; line-height: 1.9; letter-spacing: .04em; color: var(--faint);
}
@media (max-width: 720px) {
  .site-footer { padding-top: 40px; }
  .site-footer-inner { flex-direction: column; gap: 32px; }
  .site-footer-brand { flex-basis: auto; }
  .site-footer-brand .brand { min-height: 44px; }
  .site-footer-right { width: 100%; grid-template-columns: 1fr; gap: 28px; }
  .site-footer-links { grid-template-columns: 1fr; }
  .site-footer-links, .site-footer-contact { width: 100%; }
  .site-footer-links a, .site-footer-contact a {
    min-height: 44px; display: flex; align-items: center; width: 100%;
  }
}


/* 錨點捲動位置：sticky header 會蓋住區塊頂端（點「價格」跳過去時 ¥18,920 被切一半），
   給每個錨點目標預留 header 高度＋一點呼吸空間。header 高度改了這裡要跟著改。 */
#car, #price, #trust { scroll-margin-top: calc(var(--header-h) + 32px); }

/* ------------------------------------------------------------ Home: hero */
.home-hero { position: relative; height: clamp(520px, 88vh, 900px); overflow: hidden; }
.home-hero > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center calc(45% - 19px);
  filter: contrast(1.04) saturate(1.08) brightness(1.02);   /* 保持彩色，勿去色 */
}
.home-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(28, 22, 19, .78) 0%, rgba(28, 22, 19, .42) 38%,
    rgba(28, 22, 19, .1) 72%, rgba(28, 22, 19, .38) 100%);
}
.home-hero-note {
  position: absolute; left: 0; right: 0; top: 0;
  max-width: var(--shell); margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) var(--gutter);
  text-align: right; font-size: 11px; letter-spacing: .16em; color: rgba(255, 255, 255, .92);
}
.hero-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; max-width: var(--shell); margin: 0 auto;
  padding: 0 var(--gutter) clamp(40px, 6vw, 72px);
  display: flex; flex-direction: column; gap: clamp(22px, 3vw, 34px);
}
.home-hero h1 {
  margin: 0; color: #fff;
  font-size: clamp(42px, 7.5vw, 92px); font-weight: 700;
  line-height: 1.3; letter-spacing: .02em; text-wrap: pretty;
}
.hero-actions { display: flex; gap: var(--gutter); align-items: flex-end; flex-wrap: wrap; }
.hero-copy {
  margin: 0; font-size: clamp(13.5px, 1.4vw, 16px);
  line-height: 2.2; color: rgba(255, 255, 255, .9);
}
.hero-actions .button-hero {
  margin-left: auto;
  background: #fff; color: var(--primary); text-decoration: none;
  padding: clamp(16px, 2vw, 20px) clamp(36px, 4vw, 52px);
  font-size: 14px; font-weight: 700; letter-spacing: .12em;
}
.hero-actions .button-hero:hover { background: var(--muted-surface); }

/* 首頁三欄資訊條 PICK-UP / SUPPORT / BOOKING */
.hero-facts {
  width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter);
}
.hero-facts-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 32px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.hero-facts-grid > div { padding: 22px 0; display: flex; flex-direction: column; gap: 6px; }
.hero-facts-grid dt, .hero-fact-label { font-size: 10.5px; letter-spacing: .2em; color: var(--faint); }
.hero-facts-grid dd, .hero-fact-value { margin: 0; font-size: clamp(14px, 1.4vw, 16px); font-weight: 700; color: var(--ink); }

/* ------------------------------------------------------- Home: sections */
.section { width: 100%; max-width: var(--shell); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter); }
.split { display: flex; gap: clamp(28px, 5vw, 64px); flex-wrap: wrap; }
.split > .split-lead { flex: 1 1 340px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.split > .split-body { flex: 1 1 400px; display: flex; flex-direction: column; min-width: 0; justify-content: center; }
.eyebrow { margin: 0; font-size: 10.5px; letter-spacing: .24em; color: var(--faint); font-weight: 400; }
/* .section p 的選擇器權重高於 .eyebrow（0,1,1 對 0,1,0），會把區段標名壓成 15px＋2.2 行高。
   首頁 #price 的 <p class="eyebrow">PRICE</p> 就在 .section 內，必須補回來。 */
.section .eyebrow, .split-lead .eyebrow, .split-body .eyebrow { font-size: 10.5px; line-height: 1.9; color: var(--faint); }
.section .section-kicker {
  margin: -4px 0 0; font-size: 13px; line-height: 1.7;
  font-weight: 600; letter-spacing: .08em; color: var(--primary);
}
.section h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.5; }
.section p { margin: 0; font-size: clamp(15px, 1.3vw, 16px); line-height: 1.8; color: var(--muted); max-width: 28em; text-wrap: pretty; }

/* 規格表：左標右值的髮絲線列 */
.spec-list { display: flex; flex-direction: column; font-size: clamp(13px, 1.3vw, 14.5px); }
.spec-list > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--hairline);
}
.spec-list > div:last-child { border-bottom: 0; }
.spec-list dt, .spec-key { color: var(--faint); }
.spec-list dd, .spec-value { margin: 0; font-weight: 500; text-align: right; color: var(--ink-soft); }

/* 首頁牌價 */
.car-price-section { padding-top: 0; padding-bottom: clamp(48px, 7vw, 88px); }
.section p.car-price {
  margin: 0; max-width: none; font-size: clamp(40px, 5vw, 64px); font-weight: 700;
  font-variant-numeric: tabular-nums; line-height: 1; color: var(--ink);
}
.car-price small, .car-price .car-price-unit { font-size: 14px; color: var(--faint); font-weight: 500; }

/* 連泊割引價格表（結構請照設計稿：刪除線與原價同字級同字重同色，只多一條線） */
.multiday-table {
  display: flex; flex-direction: column;
  font-variant-numeric: tabular-nums; font-size: clamp(13.5px, 1.35vw, 15px);
}
.multiday-table-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 8px;
}
.multiday-table-head .multiday-badge { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--gold); }
.multiday-table-head .multiday-unit { font-size: 11px; color: var(--faint); letter-spacing: .06em; }
.multiday-row {
  /* 主行（日期＋劃掉的原價＋實付價）在 72px 列高內垂直置中；
     「累計省」以絕對定位掛在右下角，不參與置中計算——否則它會把主行往上推，
     日期看起來就不在列的正中間。四列等高，第 1 天沒有累計省也一樣高。 */
  position: relative;
  display: flex; align-items: center;
  min-height: 72px; padding: 14px 0; border-top: 1px solid var(--hairline);
}
.multiday-main { flex: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
/* 表頭之後的第一列要用主色粗線收頭（設計稿：上緣 1px #5C342E）。
   原本寫 .multiday-row:first-of-type 命中 0 個元素——同層第一個 div 是 .multiday-table-head，
   不帶 .multiday-row，所以那條線從來沒畫出來過，線上一直是髮絲線。 */
.multiday-table-head + .multiday-row { border-top-color: var(--rule); }
/* line-height 收成 1，讓行框貼齊文字——否則 flex-end 對齊的是行框底部，
   日期會比右邊的價格低幾個 px。 */
.multiday-day { font-weight: 700; color: var(--ink); line-height: 1.5; }

.multiday-values {
  display: flex; justify-content: flex-end; align-items: baseline;
  gap: 12px; text-align: right; line-height: 1.5;
}
/* 刪除線價格必須與原價同字級、同字重、同顏色，只多一條線（設計稿硬規則）。 */
.multiday-was { text-decoration: line-through; font-weight: 700; color: var(--ink); }
.multiday-saved { position: absolute; right: 0; bottom: 12px; font-size: 11px; line-height: 1; color: var(--alert); }
/* 第 1 天沒有折扣，用墨色；有折扣的列才是金色。 */
.multiday-now { color: var(--gold); }
.multiday-table-head + .multiday-row .multiday-now { color: var(--ink); font-weight: 700; }
.multiday-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 22px 0 0; border-top: 1px solid var(--rule);
}
.multiday-total > span:first-child { font-weight: 700; color: var(--ink); }
.multiday-total-value { font-weight: 700; color: var(--alert); font-size: 1.4em; line-height: 1; }
.multiday-cta { margin-top: 20px; }

/* TRUST 區 */
.trust-section { background: var(--muted-surface); border-top: 1px solid var(--hairline); }
.trust-section > .section { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 5vw, 60px); }
.trust-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; font-size: clamp(12.5px, 1.25vw, 14px); }
.trust-list li {
  display: flex; gap: 16px; padding: 13px 0;
  border-top: 1px solid var(--hairline); flex-wrap: wrap;
}
.trust-list li:last-child { border-bottom: 1px solid var(--hairline); }
.trust-list .trust-key { font-weight: 700; min-width: 92px; flex: none; color: var(--ink); }
.trust-list .trust-value { color: var(--muted); line-height: 1.9; flex: 1; min-width: 200px; }
.trust-figure { flex: 1 1 380px; margin: 0; min-width: 0; }
.trust-figure img {
  display: block; width: 100%; height: clamp(300px, 38vw, 520px);
  object-fit: cover; filter: contrast(1.06) saturate(1.12) brightness(1.03);
}
.trust-figure figcaption {
  display: flex; justify-content: space-between;
  padding: 12px 2px; font-size: 11px; color: var(--faint);
}

/* 首頁底部固定 CTA（預設關閉，需要時在 index.html 取消 hidden） */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--rule);
  backdrop-filter: blur(6px);
}
.sticky-cta-inner { max-width: var(--shell); margin: 0 auto; display: flex; gap: 10px; padding: 10px clamp(16px, 5vw, 56px); }
.sticky-cta a { flex: 1; text-align: center; text-decoration: none; font-size: 13.5px; }

/* --------------------------------------------------------------- Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 0;
  padding: 16px 28px; font-size: 14px; font-weight: 700; letter-spacing: .1em;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-hover); color: #fff; }
.button-secondary { border-color: var(--primary); background: #fff; color: var(--primary); letter-spacing: .06em; font-weight: 400; }
.button-secondary:hover { background: var(--tint-surface); }
.button-line { gap: 9px; background: var(--line-green); color: #fff; }
.button-line:hover { background: var(--line-green-hover); color: #fff; }
.button-icon { width: 20px; height: 20px; flex-shrink: 0; }
.cancel-booking-button { margin-top: 14px; width: 100%; }

/* ----------------------------------------------------------- Page shells */
.page-shell {
  width: 100%; max-width: 820px; margin: 0 auto;
  padding: clamp(36px, 6vw, 64px) var(--gutter) clamp(56px, 8vw, 96px);
  display: flex; flex-direction: column; gap: clamp(28px, 4vw, 40px);
}
.legal-page { max-width: 820px; }
.privacy-page { max-width: 760px; }
.page-intro { display: flex; flex-direction: column; gap: 16px; }
.page-intro h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.4; }
.page-intro .eyebrow { font-size: 10.5px; letter-spacing: .3em; }
.page-intro > p:last-child { margin: 0; font-size: 14px; line-height: 2; color: var(--muted); }
.back-link { font-size: 12.5px; color: var(--faint); text-decoration: none; }
.back-link:hover { color: var(--primary); }

/* 內頁章節標題：一條 1px 主色分隔線 */
.form-section, .doc-section { display: flex; flex-direction: column; gap: 18px; border: 0; padding: 0; background: none; }
.form-section-heading, .doc-heading {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--rule); padding-bottom: 12px;
}
.form-section-heading h2, .doc-heading h2 { margin: 0; font-size: 20px; }
.form-section-heading > div { display: contents; }
.form-section-heading p { margin: 0 0 0 auto; font-size: 12px; color: var(--faint); }
.section-number { font-size: 13px; font-weight: 700; color: var(--alert); }
.doc-heading-alert { border-bottom-color: var(--alert); }
.doc-heading-alert h2 { color: var(--alert); }

/* --------------------------------------------------------------- Forms */
.booking-form { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 40px); }
.form-fields { display: flex; flex-direction: column; gap: 14px; }
/* label 用 block 而非 flex：必填／選填標記要跟欄位名同一行，
   flex-column 會把文字節點與 <span> 拆成兩列。 */
label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
label > input, label > select, label > textarea, label > .datetime-group { margin-top: 8px; }
.required, .optional { font-size: 11px; font-weight: 400; margin-left: 4px; }
.required { color: var(--alert); }
.optional { color: var(--faint); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--field-border); border-radius: 0;
  padding: 13px 14px; font-size: 16px; font-family: inherit;
  background: #fff; color: var(--primary); outline: none;
  transition: border-color 160ms ease;
}
textarea { min-height: 108px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: #3E2E23; }
/* 16px 只是為了擋 iOS Safari 對焦時強制放大（<16px 會放大且 blur 後不縮回，
   使用者卡在被裁切的表單上）。桌機有精確指標，維持原本的 15px 外觀。 */
@media (pointer: fine) { input, select, textarea { font-size: 15px; } }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-row > label { flex: 1 1 240px; }
.locked-select { background: var(--tint-surface); border-color: var(--hairline); color: var(--muted); pointer-events: none; }
.return-note { font-size: 11.5px; font-weight: 400; color: var(--faint); line-height: 1.7; }
.datetime-group { display: flex; gap: 10px; }
.datetime-group input[type="date"] { flex: 1.4; }
.datetime-group select { flex: 1; }
.date-hint { margin: 0; font-size: 12.5px; line-height: 1.9; color: var(--faint); }
.date-hint-error { color: var(--alert); font-weight: 700; }
.rental-days-note { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--primary); }
.rental-days-note.hidden { display: none; }
.multiday-nudge-inline { color: var(--gold); font-weight: 700; }
.multiday-nudge-inline.hidden { display: none; }
.multiday-nudge-inline:not(.hidden)::before { content: '　·　'; color: var(--faint); font-weight: 400; }

/* 車型卡 */
.vehicle-fixed { border: 1px solid var(--hairline); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.vehicle-fixed-label { margin: 0; font-size: 10.5px; letter-spacing: .2em; color: var(--faint); }
.vehicle-fixed-name { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.vehicle-features-list { margin: 0; padding: 0; list-style: none; font-size: 12.5px; line-height: 2; color: var(--muted); }
.vehicle-features-list li { display: inline; }
.vehicle-features-list li:not(:last-child)::after { content: "・"; }
/* 預約頁的三段式階梯價（第1天／2–3天／4天起）：接在車型卡下方，共用同一條外框。 */
.multiday-hint {
  display: flex; gap: 0; flex-wrap: wrap;
  margin-top: -1px; border: 1px solid var(--hairline); padding: 12px 22px 16px;
  font-variant-numeric: tabular-nums;
}
/* pricing-v2-client 於 .multiday-hint 之後注入的加時說明（三語系內建，勿在 HTML 重複一份）。 */
#pricing-v2-note {
  margin: -1px 0 0; background: var(--tint-surface); border: 1px solid var(--hairline);
  padding: 14px 18px; font-size: 12.5px; line-height: 2; color: var(--muted);
}
.multiday-hint-title { flex: 1 1 100%; margin: 0 0 4px; text-align: right; font-size: 10.5px; letter-spacing: .06em; color: var(--faint); font-weight: 400; }
.multiday-tiers { margin: 0; display: contents; }
.multiday-tiers > div { flex: 1 1 120px; font-size: 12px; color: var(--faint); }
.multiday-tiers dt { color: inherit; }
.multiday-tiers dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; color: var(--primary); }
.hours-note, .addon-included, .doc-note-box {
  background: var(--tint-surface); border: 1px solid var(--hairline);
  padding: 14px 18px; margin: 0; font-size: 12.5px; line-height: 2; color: var(--muted);
}
.hours-note strong, .addon-included strong { color: var(--primary); }

/* 保險方案 / 加購配件：無框、只靠髮絲線分隔 */
.insurance-fieldset, .addon-fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.insurance-fieldset legend, .addon-fieldset legend { padding: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.insurance-doc-link { font-size: 12px; color: var(--primary); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.insurance-doc-link:hover { text-decoration: underline; }
.insurance-doc-link .doc-icon { width: 16px; height: 16px; flex: none; }
.insurance-lock-hint { margin: 0; font-size: 12.5px; line-height: 1.9; color: var(--faint); }
.insurance-ack {
  display: flex;
  flex-direction: row; gap: 12px; align-items: flex-start;
  font-size: 12.5px; font-weight: 400; line-height: 1.9; color: var(--muted); cursor: pointer;
}
.insurance-ack input { margin-top: 4px; width: 16px; height: 16px; flex: none; padding: 0; }
.insurance-card, .addon-option {
  display: flex;
  flex-direction: row; gap: 14px; align-items: flex-start;
  padding: 16px 4px; border-top: 1px solid var(--hairline); cursor: pointer; font-weight: 400;
}
.insurance-card:last-of-type, .addon-option:last-of-type { border-bottom: 1px solid var(--hairline); }
.insurance-card input, .addon-option input { margin-top: 4px; width: 16px; height: 16px; flex: none; padding: 0; }
.insurance-card:has(input:disabled) { cursor: not-allowed; }
.insurance-card:has(input:disabled) .insurance-name,
.insurance-card:has(input:disabled) .insurance-price { color: var(--faint); }
.insurance-card-body, .addon-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.insurance-card-head, .addon-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.insurance-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.insurance-price, .addon-price { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.insurance-desc, .addon-desc { font-size: 12.5px; color: var(--faint); line-height: 1.8; }
.insurance-badge {
  display: inline-block; margin-left: 8px; padding: 3px 8px;
  background: var(--alert); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; vertical-align: 2px;
}
.addon-hint { margin: 0; font-size: 12px; color: var(--faint); line-height: 1.8; }
.addon-name { font-size: 13.5px; color: var(--ink-soft); }
.addon-option .addon-text { flex-direction: row; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.addon-option .addon-head { flex-direction: column; gap: 2px; }

/* 預約前警語 */
.booking-notice {
  display: block; border: 1px solid var(--alert); padding: 14px 18px;
  font-size: 13px; line-height: 1.9; color: var(--primary); text-decoration: none;
}
.booking-notice:hover { background: var(--alert-surface); color: var(--primary); }
.booking-notice strong { color: var(--alert); }
.booking-notice-icon { display: none; }
.booking-notice-arrow { color: var(--alert); font-weight: 700; }

.autofill-status { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--faint); }
.loading-spinner {
  width: 16px; height: 16px; border: 2px solid var(--hairline);
  border-top-color: var(--primary); border-radius: 50%; animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 預估費用：未稅明細 → 保險 → 配件 → 消費稅 → 合計（含稅） */
.price-preview { border: 1px solid var(--rule); padding: 20px 22px; display: flex; flex-direction: column; gap: 2px; }
.price-preview-title { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--ink); }
/* 分隔線是 dt 與 dd 各畫一段 border-top，要接成一條必須同時滿足兩件事：
   1. gap: 0 —— 欄間留空隙會讓線在中間斷開（水平方向）。
   2. align-items 保持 stretch（預設）—— 若設 center，兩格會各自縮成內容高度再置中，
      上緣不在同一水平線上，線會錯開一階（垂直方向）。合計列尤其明顯：
      左標籤 15px、右金額 20px/900，實測錯開 4px。
   文字的垂直置中改在格子內部做（dt/dd 各自 flex），這樣兩個需求都成立。 */
.price-preview-list { margin: 0; display: grid; grid-template-columns: 1fr auto; align-items: stretch; gap: 0; font-variant-numeric: tabular-nums; }
.price-preview-list dt, .price-preview-list dd {
  display: flex; align-items: center;
  padding: 8px 0; border-top: 1px solid var(--hairline); font-size: 13px; line-height: 1.7;
}
.price-preview-list dd { justify-content: flex-end; }
.price-preview-list dt { padding-right: 16px; color: var(--muted); }
.price-preview-list dd { margin: 0; text-align: right; font-weight: 500; color: var(--ink-soft); }
.price-preview-list .price-total-label { border-top: 2px solid var(--rule); padding-top: 12px; font-size: 15px; font-weight: 700; color: var(--ink); }
.price-preview-list .price-total-value { border-top: 2px solid var(--rule); padding-top: 12px; font-size: 20px; font-weight: 700; color: var(--ink); }
.price-preview-list .price-incltax-label, .price-preview-list .price-incltax-value { font-size: 11.5px; color: var(--faint); }
.price-preview-list dd.price-multiday-value { color: var(--gold); font-weight: 700; }
.price-preview-loading { margin: 0; font-size: 13px; color: var(--faint); animation: price-pulse 1.2s ease-in-out infinite; }
@keyframes price-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.price-coupon-error { margin: 12px 0 0; font-size: 12px; color: var(--alert); }
.price-preview-note { margin: 8px 0 0; font-size: 11.5px; line-height: 2; color: var(--faint); }

.submit-area { display: flex; flex-direction: column; gap: 16px; }
.submit-button { width: 100%; border: 0; padding: 18px; font-size: 15px; letter-spacing: .12em; }
.submit-button:disabled { cursor: wait; opacity: .58; }
.submit-area > p { margin: 0; order: 2; font-size: 12px; line-height: 2; color: var(--faint); }

/* ------------------------------------------------------- 我的預約 / 貸渡証 */
.bookings-page { min-height: auto; }
.login-card {
  border: 1px solid var(--hairline); padding: 36px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.login-card-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.login-card p { margin: 0; font-size: 13px; line-height: 2; color: var(--faint); max-width: 26em; }
.login-card-alt { font-size: 12px; color: var(--faint); }
.loading-card { border: 1px solid var(--hairline); padding: 28px; color: var(--faint); font-size: 13px; }
.loading-card > span { display: block; margin-top: 18px; }
.skeleton-heading, .skeleton-line {
  height: 14px; background: linear-gradient(90deg, #F1EBE1 25%, #FAF7F2 50%, #F1EBE1 75%);
  background-size: 200% 100%; animation: skeleton 1.4s infinite;
}
.skeleton-heading { width: 42%; height: 20px; margin-bottom: 20px; }
.skeleton-line { width: 100%; margin-top: 12px; }
.skeleton-line.short { width: 66%; }
@keyframes skeleton { to { background-position: -200% 0; } }
.booking-list { display: flex; flex-direction: column; gap: 18px; }
.booking-card { border: 1px solid var(--hairline); padding: 22px; }
.booking-card h2 { margin: 0 0 18px; font-size: 18px; }
.booking-details { display: grid; grid-template-columns: minmax(92px, .7fr) 1.3fr; gap: 10px 16px; margin: 0; font-size: 13.5px; }
.booking-details dt { color: var(--faint); }
.booking-details dd { margin: 0; font-weight: 500; color: var(--ink-soft); word-break: break-word; }
/* 狀態色不可更動：綠＝已收款/已確認、黃＝待付款/處理中、紅＝取消/退款 */
.booking-details dd.pill-green { color: var(--ok); font-weight: 700; }
.booking-details dd.pill-amber { color: var(--gold); font-weight: 700; }
.booking-details dd.pill-muted { color: var(--faint); }
.booking-card.booking-status-cancelled, .booking-card.booking-status-rejected { border-color: var(--hairline); }
.booking-card.booking-status-cancelled .booking-details dd:first-of-type { color: var(--danger); }
.payment-link { color: var(--primary); font-weight: 700; }

.emergency-contact { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.emergency-contact h2 { margin: 0; font-size: 20px; color: var(--alert); border-bottom: 1px solid var(--alert); padding-bottom: 12px; }
.emergency-contact > p { margin: 0; font-size: 12px; color: var(--faint); }
.emergency-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.emergency-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 2px; border-bottom: 1px solid var(--hairline); flex-wrap: wrap;
}
.emergency-label { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.emergency-sub { flex: 1 1 100%; font-size: 12px; color: var(--faint); line-height: 1.9; order: 3; }
.emergency-tel {
  font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--primary); text-decoration: none; letter-spacing: .01em;
}
.emergency-nav {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--primary); color: var(--primary); text-decoration: none;
  padding: 14px; font-size: 13.5px; font-weight: 700; letter-spacing: .06em;
}
.emergency-nav:hover { background: var(--tint-surface); }
.emergency-nav .nav-icon { width: 1.2em; height: 1.2em; }
.emergency-nav-note { display: block; text-align: center; font-size: 12px; color: var(--faint); }

.agreement-content { display: flex; flex-direction: column; gap: clamp(24px, 4vw, 36px); }
.agreement-section { display: flex; flex-direction: column; gap: 10px; }
.agreement-section h2 { margin: 0; font-size: 18px; border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.agreement-confirm-text { margin: 0; font-size: 13px; line-height: 1.9; color: var(--ink-soft); }
.agreement-confirm-cn { color: var(--muted); border-top: 1px dashed var(--hairline); padding-top: 10px; }
.agreement-intro-cn { color: var(--faint); }
.agreement-signed-note { margin: 0; font-size: 13px; font-weight: 700; color: var(--primary); }
.agreement-link-button { width: 100%; margin-top: 10px; }

/* ------------------------------------------------------------ Legal 內頁 */
.legal-content { display: flex; flex-direction: column; gap: clamp(30px, 4.5vw, 44px); font-size: 14px; line-height: 2; color: var(--ink-soft); }
.legal-content > * { min-width: 0; }
.legal-content section { display: flex; flex-direction: column; gap: 14px; }
.legal-content h2 { margin: 0; font-size: 20px; border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.legal-content h3 { margin: 12px 0 0; font-size: 15px; }
.legal-content p { margin: 0; font-size: 13.5px; line-height: 2.1; color: var(--muted); }
/* 條列改成髮絲線列——設計稿全站不用項目符號 */
.legal-content ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.legal-content li {
  margin: 0; padding: 11px 2px; border-bottom: 1px solid var(--hairline);
  font-size: 13.5px; line-height: 2; color: var(--muted);
}
.legal-content li strong { color: var(--primary); }
.legal-content a { color: var(--primary); word-break: break-word; }
.privacy-page .legal-content { gap: 24px; }
.privacy-page .legal-content ul { padding-left: 20px; list-style: disc; }
.privacy-page .legal-content li { border-bottom: 0; padding: 4px 0; }

.exclusions-callout { display: flex; flex-direction: column; gap: 14px; }
.exclusions-callout h2 { margin: 0; color: var(--alert); border-bottom: 1px solid var(--alert); padding-bottom: 12px; }
.exclusions-callout p { margin: 0; font-size: 13.5px; line-height: 2.1; color: var(--muted); }
.exclusions-callout li strong { color: var(--alert); }
.alert-box {
  border: 1px solid var(--alert); background: var(--alert-surface);
  padding: 16px 18px; font-size: 13.5px; line-height: 2; color: var(--alert); font-weight: 700;
}
.doc-cards { display: flex; gap: 14px; flex-wrap: wrap; }
.doc-card { flex: 1 1 240px; border: 1px solid var(--rule); padding: 16px 18px; }
.doc-card-title { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.doc-card-sub { font-size: 12.5px; color: var(--faint); line-height: 1.9; margin-top: 4px; }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { border: 1px solid var(--field-border); padding: 10px 16px; font-size: 13px; color: var(--ink-soft); }
.kv-list { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.kv-list > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 2px; border-top: 1px solid var(--hairline); font-size: 13.5px;
}
.kv-list .kv-key { color: var(--muted); }
.kv-list .kv-value { font-weight: 700; color: var(--ink); }
.doc-meta { margin: 0; font-size: 12.5px; line-height: 2; color: var(--faint); }
.doc-meta strong { color: var(--ink-soft); }
.noc-intro { margin: 0; font-size: 13.5px; line-height: 2.1; color: var(--muted); }
.noc-list { margin: 0; display: flex; flex-direction: column; }
.noc-row { display: flex; flex-direction: column; gap: 2px; padding: 12px 2px; border-top: 1px solid var(--hairline); }
.noc-row dt { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.noc-row dd { margin: 0; font-size: 13px; line-height: 1.9; color: var(--muted); }
.noc-note { margin: 0; font-size: 12px; line-height: 1.9; color: var(--faint); }
.roadside-grid { display: flex; flex-direction: column; gap: 20px; }
.roadside-card { display: flex; flex-direction: column; gap: 8px; }
.roadside-card h3 { margin: 0; font-size: 14.5px; }

/* 三方案對照表：手機上在自己的容器內橫向捲動，頁面本體不得橫捲 */
.coverage-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.coverage-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 12.5px; }
.coverage-table th, .coverage-table td {
  padding: 12px 14px; border: 1px solid var(--hairline);
  text-align: left; vertical-align: top; line-height: 1.8; color: var(--muted);
}
.coverage-table thead th { background: var(--primary); color: #fff; font-weight: 700; white-space: nowrap; }
.coverage-table thead th.is-recommended { background: var(--alert); }
.coverage-table tbody th { background: var(--tint-surface); font-weight: 700; white-space: nowrap; color: var(--ink); }
.coverage-table td.free { color: var(--gold); font-weight: 700; }
.coverage-table small { color: var(--faint); }
.coverage-price { font-weight: 700; color: var(--ink); }

/* ------------------------------------------------------------- 送出完成 */
.page-shell.is-complete > .page-intro,
.page-shell.is-complete > .booking-notice,
.page-shell.is-complete > #autofill-status,
.page-shell.is-complete > #booking-form { display: none; }
.booking-success {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
  border: 1px solid var(--rule); padding: clamp(32px, 5vw, 48px) 28px;
}
.booking-success-icon { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--primary); color: var(--primary); }
.booking-success-icon svg { width: 28px; height: 28px; }
.booking-success-title { margin: 0; font-size: 22px; }
.booking-success-detail { width: 100%; margin: 0; display: flex; flex-direction: column; }
.booking-success-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 2px; border-top: 1px solid var(--hairline);
}
.booking-success-row dt { margin: 0; font-size: 13px; color: var(--faint); white-space: nowrap; }
.booking-success-row dd { margin: 0; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.booking-success-note { margin: 0; font-size: 13px; line-height: 2; color: var(--muted); }
.booking-success-cta { width: 100%; }
.booking-success-home { font-size: 12.5px; color: var(--faint); text-decoration: none; }
.booking-success-home:hover { color: var(--primary); }

/* -------------------------------------------------------------- 訊息列 */
.message { padding: 14px 18px; border: 1px solid var(--ok); color: var(--ok); font-size: 13.5px; font-weight: 500; }
.message.error { border-color: var(--danger); color: var(--danger); }
.global-banner {
  position: relative; z-index: 1000;
  width: min(calc(100% - 32px), var(--shell)); margin: 12px auto 0;
  padding: 13px 16px; font-size: 13.5px; font-weight: 700;
}
.warning-banner { border: 1px solid var(--gold); background: var(--tint-surface); color: var(--gold); }
.error-banner { border: 1px solid var(--danger); color: var(--danger); white-space: pre-wrap; word-break: break-word; }
.hidden { display: none !important; }

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


/* ============================================================ 語系專屬覆寫
   base 走中文排版。日文與英文的排印習慣不同，以下只做必要的偏移，
   每一區塊可單獨移除而不影響其他語系。
   硬規則：ja／zh 之下不得出現任何負字距（負字距只在拉丁文合法）。 */

/* ---- 日文 ---- */
html[lang^="ja"] {
  /* 日文行首行尾禁則 */
  line-break: strict;
  overflow-wrap: anywhere;
}
/* 日文沒有詞間空格，同樣字數比中文長，版心放寬避免每行字太少 */
html[lang^="ja"] .section p { max-width: 36em; }
/* 標題字距一律 normal——實測五家日本大手（トヨタ／タイムズ／ニッポン／オリックス／日産）
   的 body 與標題 computed letter-spacing 全部是 normal。 */
html[lang^="ja"] .home-hero h1,
html[lang^="ja"] .section h2,
html[lang^="ja"] .page-intro h1,
html[lang^="ja"] .form-section-heading h2,
html[lang^="ja"] .doc-heading h2 { letter-spacing: normal; }

/* ---- 英文 ---- */
/* 1.75／1.8 是 CJK 密排值（漢字方正、無明顯升降部）。套在拉丁字母上，
   段落會散成一條條互不相連的橫線。對照組：Times CAR RENTAL 英文版 body 為 1.5。 */
html[lang^="en"] body,
html[lang^="en"] { line-height: 1.55; }
html[lang^="en"] .section p { line-height: 1.6; max-width: 54ch; }
html[lang^="en"] .hero-copy { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6; }
html[lang^="en"] .page-intro > p:last-child { font-size: 16px; line-height: 1.6; }
html[lang^="en"] .legal-content { line-height: 1.65; }
html[lang^="en"] .legal-content p,
html[lang^="en"] .legal-content li { font-size: 15px; line-height: 1.65; }
html[lang^="en"] .exclusions-callout p,
html[lang^="en"] .noc-intro,
html[lang^="en"] .agreement-confirm-text,
html[lang^="en"] .noc-row dd { font-size: 15px; line-height: 1.6; }
/* 保險專有名詞不可自動斷字（會斷錯位置），只在長字時強制換行 */
html[lang^="en"] { hyphens: none; overflow-wrap: break-word; }

/* ---- 按鈕字距 ----
   CSS 會在最後一個字元後面也加一格 letter-spacing，置中的按鈕文字因此整體左偏；
   補等值 text-indent 抵銷。 */
.header-button, .button, .button-secondary, .submit-button, .hero-actions .button-hero { text-indent: .1em; }
/* .1em〜.12em 是拉丁全大寫的正確字距，套在漢字與假名上偏鬆。 */
html[lang^="zh"] .header-button, html[lang^="zh"] .button,
html[lang^="zh"] .button-secondary, html[lang^="zh"] .submit-button,
html[lang^="zh"] .hero-actions .button-hero,
html[lang^="ja"] .header-button, html[lang^="ja"] .button,
html[lang^="ja"] .button-secondary, html[lang^="ja"] .submit-button,
html[lang^="ja"] .hero-actions .button-hero { letter-spacing: .04em; text-indent: .04em; }

/* ---- CJK 的區段標名與 tagline ----
   .24em／.14em 是拉丁全大寫的慣例；只有這兩處的字串在 zh／ja 是 CJK，套上去會散開。 */
html[lang^="zh"] .trust-section .eyebrow,
html[lang^="ja"] .trust-section .eyebrow { letter-spacing: .06em; }
html[lang^="zh"] .site-footer-tagline,
html[lang^="ja"] .site-footer-tagline { letter-spacing: .06em; }

/* ---- 數字：等寬對齊 ----
   既有 9 處 font-variant-numeric 保留，這裡集中補齊並加低階 feature 兜底。 */
.tabular, .num, .car-price, .multiday-table, .price-preview-list, .kv-list,
.booking-success-row dd, .emergency-tel, .insurance-price, .addon-price {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
