    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --bg:       #f2ede4;
      --bg2:      #ebe6dc;
      --card:     #ffffff;
      --border:   #ddddd5;
      --primary:  #3f6e7a;
      --accent:   #4a8fa3;
      --accent-warm: #b8925f;
      --header-bg:#faf3ea;
      --text:     #2a2a2a;
      --sub:      #7a8a8f;
      --tag-bg:   #e8f2f5;
      --tag-txt:  #2c5f6e;
      --warn-bg:  #fdf6ec;
      --warn-brd: #e8c97a;
      --warn-txt: #7a5a1a;
      --success:  #4a8a6e;
      --danger:   #a04a4a;
      --nav-h:    64px;
      --radius:    14px;
      --radius-sm: 10px;
      --radius-lg: 22px;
      --accent-soft: #a9c9d1;
      --border-light: #e5e5df;

      /* ===== 字級階梯（Type Scale）=====
         全站文字大小只從這 10 個尺寸挑選，不再新增其他數值 */
      --fs-2xs: 0.75rem;
      --fs-xs:  0.83rem;
      --fs-sm:  0.94rem;
      --fs-base:1.03rem;
      --fs-md:  1.18rem;
      --fs-lg:  1.35rem;
      --fs-xl:  1.55rem;
      --fs-2xl: 1.85rem;
      --fs-3xl: 2.2rem;
      --fs-4xl: 2.8rem;

      /* ===== 間距階梯（Spacing Scale，4px 為基本單位）=====
         全站的 padding / margin / gap 只從這 11 個數值挑選 */
      --sp-1:  4px;
      --sp-2:  6px;
      --sp-3:  8px;
      --sp-4:  10px;
      --sp-5:  12px;
      --sp-6:  14px;
      --sp-7:  16px;
      --sp-8:  20px;
      --sp-9:  24px;
      --sp-10: 32px;
      --sp-11: 40px;

      /* ===== 字型 ===== */
      --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
      --font-display: 'Noto Serif SC', 'Noto Sans SC', -apple-system, serif;
    }
    body {
      font-family: var(--font-body);
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      padding-bottom: var(--nav-h);
    }
    header {
      background: var(--header-bg);
      border-bottom: 1px solid var(--border);
      padding: var(--sp-5) var(--sp-8);
      position: sticky;
      top: 0;
      z-index: 100;
    }
    .header-inner {
      max-width: 640px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      min-height: 24px;
    }
    .header-title { font-size: 1rem; font-weight: 700; color: var(--primary); font-family: var(--font-display); line-height: 1.35; }
    /* 在header-title中，副标题应该比主标题小 */
    .header-title .hero-title-main { font-size: inherit; font-weight: 800; display: block; }
    .header-title .hero-title-sub { font-size: 0.75rem; font-weight: 600; color: var(--primary); display: block; line-height: 1.2; }
    .header-title .hero-sub-tag { background: transparent; padding: 0 0; color: inherit; border: none; }
    .spot-card-meta { font-size: var(--fs-xs); color: var(--sub); margin-top: var(--sp-2); }
    .bottom-nav {
      position: fixed;
      bottom: 0; left: 0; right: 0;
      height: var(--nav-h);
      background: var(--card);
      border-top: 1px solid var(--border);
      display: flex;
      z-index: 200;
    }
    .nav-tab {
      flex: 1;
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      border: none;
      background: none;
      padding: var(--sp-2) 2px;
    }
    .nav-tab-pill {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      width: calc(100% - 6px);
      padding: 6px 4px;
      border-radius: 16px;
      color: var(--sub);
      transition: background .2s, color .2s, transform .15s, box-shadow .2s;
    }
    .nav-tab-pill svg { width: 20px; height: 20px; transition: color .2s; }
    .nav-tab-label { font-size: var(--fs-2xs); }
    /* 未選中時，四個icon各自比照底稿呈現不同顏色 */
    #tab-itinerary .nav-tab-pill svg { color: #2f6fe0; }
    #tab-travel    .nav-tab-pill svg { color: #29a8e0; }
    #tab-budget    .nav-tab-pill svg { color: #f7a317; }
    #tab-other     .nav-tab-pill svg { color: #7655eb; }
    .nav-tab.active .nav-tab-pill {
      background: linear-gradient(135deg, #2f7ae0 0%, #1a4fc0 100%);
      color: #fff;
      font-weight: 600;
      transform: translateY(-3px);
      box-shadow: 0 6px 14px rgba(26,79,192,0.35);
    }
    .nav-tab.active .nav-tab-pill svg { color: #fff !important; }
    .page { display: none; height: calc(100vh - var(--nav-h)); overflow-y: auto; }
    .page.active { display: block; animation: viewFadeIn .28s ease; }
    .page-inner { max-width: 640px; margin: 0 auto; padding: var(--sp-6) var(--sp-6) var(--sp-10); }
    .view { display: none; }
    .view.active { display: block; animation: viewFadeIn .22s ease; }
    @keyframes viewFadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @media (prefers-reduced-motion: reduce) {
      .page.active, .view.active { animation: none; }
    }
    .flight-collapse-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      margin-bottom: var(--sp-4);
      overflow: hidden;
    }
    .flight-collapse-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: var(--sp-5) var(--sp-7);
      cursor: pointer;
      background: linear-gradient(135deg, var(--bg2), var(--bg));
      transition: background .2s;
    }
    .flight-collapse-header:hover { background: linear-gradient(135deg, #e5e5df, var(--bg2)); }
    .flight-collapse-left { display: flex; align-items: center; gap: var(--sp-4); }
    .flight-collapse-icon { font-size: var(--fs-xl); }
    .flight-collapse-title { font-size: var(--fs-base); font-weight: 700; color: var(--primary); }
    .flight-collapse-sub { font-size: var(--fs-xs); color: var(--sub); margin-top: var(--sp-1); }
    .flight-collapse-arrow { color: var(--sub); transition: transform .2s; font-size: var(--fs-sm); }
    .flight-collapse-header.open .flight-collapse-arrow { transform: rotate(180deg); }
    .flight-collapse-body { display: none; padding: 0 var(--sp-5) var(--sp-5); }
    .flight-collapse-body.open { display: block; }
    .day-section-label {
      font-size: var(--fs-xs);
      letter-spacing: 1.5px;
      color: var(--sub);
      text-transform: uppercase;
      font-weight: 600;
      margin: var(--sp-4) 0 var(--sp-2) var(--sp-1);
    }
    /* 行程總覽的開場 hero：一張氛圍照 + 標題 + 日期 + 徽章，讓進站第一眼有「精心準備的旅程」的感覺，
       而不是直接跳進功能卡片列表。用到的欄位（coverImage / bannerTitleHtml / dateRange.display / badges）
       原本就在 data/trip-config.js 裡，只是先前沒有被用在這個位置。 */
    .trip-hero {
      position: relative;
      height: 340px;
      border-radius: var(--radius-lg);
      overflow: hidden;
      margin-bottom: var(--sp-8);
      background: #333;
    }
    .trip-hero-bg { position: absolute; inset: 0; z-index: 0; }
    .trip-hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .trip-hero-scrim {
      position: absolute; inset: 0; z-index: 1;
      background: linear-gradient(180deg, rgba(20,22,20,0.08) 0%, rgba(20,22,20,0.18) 45%, rgba(20,22,20,0.68) 100%);
    }
    .trip-hero-content {
      position: relative; z-index: 2;
      display: flex; flex-direction: column; justify-content: flex-end;
      height: 100%; padding: var(--sp-8);
    }
    .trip-hero-dates {
      font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em;
      color: rgba(255,255,255,0.88); text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    }
    .trip-hero-title {
      margin-top: var(--sp-2);
      font-family: var(--font-display);
      font-size: var(--fs-3xl); line-height: 1.15; font-weight: 700;
      color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.5);
      display: flex; flex-direction: column; gap: var(--sp-2);
    }
    .hero-title-main {
      display: block;
    }
    .hero-title-sub {
      display: block;
      font-size: var(--fs-base);
      font-weight: 800;
      color: var(--primary);
      text-align: right;
    }
    .hero-sub-tag {
      display: inline-block;
      background: #fff;
      padding: 5px 12px;
      border-radius: 6px;
    }
    .trip-hero-badges { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
    .hero-badge {
      font-size: var(--fs-2xs); font-weight: 700;
      padding: 5px 11px; border-radius: 999px;
      background: rgba(184,146,95,0.28); color: #fff;
      border: 1px solid rgba(255,224,178,0.55);
      backdrop-filter: blur(2px);
    }
    .now-dashboard {
      margin-bottom: var(--sp-9);
      padding: var(--sp-8);
      border-radius: var(--radius-lg);
      color: var(--text);
      background: linear-gradient(145deg, #eef7f4, #e3f0ed);
      border: 1px solid #c7ddd7;
      box-shadow: 0 8px 22px rgba(44,95,110,0.1);
    }
    .now-eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; color: var(--accent); }
    .now-dashboard h1 { margin-top: var(--sp-2); color: var(--primary); font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1.3; }
    .now-intro { margin-top: var(--sp-3); color: var(--sub); font-size: var(--fs-xs); line-height: 1.65; }
    .now-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--sp-3); margin-top: var(--sp-7); }
    .now-info-card { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; padding: var(--sp-5); border: 1px solid #d7e6e1; border-radius: var(--radius-sm); background: rgba(255,255,255,0.82); }
    .now-info-card strong { font-size: var(--fs-sm); line-height: 1.45; overflow-wrap: anywhere; }
    .now-info-label { display: block; font-size: var(--fs-2xs); font-weight: 700; color: var(--sub); }
    .now-inline-link { align-self: flex-start; color: var(--primary); font-size: var(--fs-xs); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
    .now-reminders { margin-top: var(--sp-5); padding: var(--sp-5); border: 1px solid #ead9a8; border-radius: var(--radius-sm); background: #fff9e9; }
    .now-reminders ul { margin: var(--sp-2) 0 0 1.1em; }
    .now-reminders li { margin-top: var(--sp-1); font-size: var(--fs-xs); line-height: 1.55; color: var(--warn-txt); }
    .now-primary-btn { width: 100%; margin-top: var(--sp-6); padding: var(--sp-5); border: 1px solid var(--primary); border-radius: var(--radius-sm); background: #fff; color: var(--primary); font: inherit; font-size: var(--fs-sm); font-weight: 800; cursor: pointer; }
    /* v22：從 sp-5(12px) 加大到 sp-9(24px)——day0 卡片的日期徽章會探出卡片上緣 12px，
       原本 12px 的間距讓徽章幾乎貼到「完整行程」標題文字，比照 v21 日卡間距的解法加大呼吸空間 */
    .overview-section-title { margin: 0 0 var(--sp-9); }
    .overview-section-title h2 { font-size: var(--fs-lg); color: var(--primary); }
    .overview-section-title p { margin-top: var(--sp-1); font-size: var(--fs-xs); color: var(--sub); }
    .day-card {
      position: relative;
      border-radius: var(--radius);
      /* v21：間距從 10px 加大到 24px——日期徽章改成「探出卡片上緣 12px」的標籤後，
         10px 間距幾乎讓徽章貼到上一張卡，拉大間距讓標籤有呼吸空間、日與日不再擠在一起 */
      margin-bottom: var(--sp-9);
      cursor: pointer;
      overflow: hidden;
      height: 168px;
      display: flex;
      align-items: center;
      transition: transform .1s;
    }
    .day-card:active { transform: scale(0.98); }
    .day-card-bg { position: absolute; inset: 0; z-index: 0; background: #333; overflow: hidden; }
    /* 卡片拉高後（118px→168px），插畫取景比例回到接近原始比例，不需要再放大裁切那麼多 */
    .day-card-bg img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.05); }
    /* 漸层遮罩：文字底部貼一層漸層加強可讀性，讓照片本身有更多呼吸空間 */
    .day-card-scrim {
      position: absolute; inset: 0; z-index: 1;
      background: linear-gradient(180deg, rgba(20,22,20,0.05) 0%, rgba(20,22,20,0.05) 45%, rgba(20,22,20,0.55) 100%);
    }
    .day-card-content {
      position: relative; z-index: 2;
      display: flex; align-items: flex-end; gap: var(--sp-5);
      width: 100%; height: 100%;
      padding: var(--sp-5) var(--sp-6);
    }
    .day-badge {
      /* v20：從卡片內左下角改成「突出卡片上緣的標籤」——徽章是 .ov-tl-row 的直接子層，
         絕對定位在卡片上方、微微探出卡片頂邊，像行李吊牌。 */
      position: absolute; top: -12px; left: 40px; z-index: 4;
      border-radius: var(--radius-sm);
      padding: 6px 10px;
      text-align: center;
      min-width: 56px;
      flex-shrink: 0;
      box-shadow: 0 3px 8px rgba(20,30,35,0.35);
    }
    .day-badge.c0 { background: #6a7a8a; color:#fff; }
    .day-badge.c1 { background: #3a9a78; color:#fff; }
    .day-badge.c2 { background: #4a6fcf; color:#fff; }
    .day-badge.c3 { background: #d4783a; color:#fff; }
    .day-badge.c4 { background: #8a4abf; color:#fff; }
    .day-badge.c5 { background: #b89a20; color:#fff; }
    .day-badge.c6 { background: #2a90ba; color:#fff; }
    .day-badge.c7 { background: #c05a3a; color:#fff; }
    .day-badge.c8 { background: #5a9a3a; color:#fff; }
    .day-badge .month { font-size: 0.85rem; opacity: 0.85; letter-spacing: 1px; }
    .day-badge .date  { font-size: 1.56rem; font-weight: 700; line-height: 1.1; }
    .day-card-info { flex: 1; min-width: 0; }
    .day-card-info h3 { font-size: var(--fs-md); font-weight: 700; color: #fff; text-shadow: 0 1px 5px rgba(0,0,0,0.55); }
    .day-card-info p  {
      font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.92); margin-top: 3px;
      line-height: 1.38; text-shadow: 0 1px 4px rgba(0,0,0,0.55);
      display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    }
    .day-card-summary { font-size: var(--fs-xs); color: #5a6a6f; margin-top: var(--sp-1); line-height: 1.6; font-style: italic; border-top: 1px solid var(--border-light); padding-top: 5px; }
    .spot-list-label {
      font-size: var(--fs-2xs); letter-spacing: 1.5px;
      color: var(--sub); text-transform: uppercase; margin-bottom: var(--sp-3);
    }
    /* ===== 時間軸（Phase 2，v2修正版）：一條線貫穿當天所有行程。圓點改成跟卡片「並排」在同一個
       flex row 裡（.timeline-row > .timeline-node + 卡片本身），不再疊在卡片上面用負值定位——
       卡片本身有 overflow:hidden（讓圓角裁切正常），疊上去的圓點會被一起裁掉，並排就不會有這問題。===== */
    #spotList { position: relative; }
    #spotList::before {
      content: '';
      position: absolute; left: 14px; top: 14px; bottom: 14px;
      width: 2px;
      background-image: linear-gradient(var(--accent-soft) 60%, transparent 0%);
      background-position: left; background-size: 2px 9px; background-repeat: repeat-y;
      z-index: 0;
    }
    /* v14：僅有航班資訊的天數（去程/回程/移動日），內容不是逐點的景點時間軸，
       這條線沒有對應的圓點可以貫穿，直接拿掉，避免「有線沒點」的錯位感。 */
    #spotList.no-timeline::before { display: none; }
    .timeline-row { display: flex; align-items: flex-start; gap: var(--sp-3); position: relative; z-index: 1; }
    .timeline-row.connector-row { align-items: center; }
    .timeline-node { width: 30px; flex-shrink: 0; display: flex; justify-content: center; padding-top: 20px; }
    .timeline-row.connector-row .timeline-node { padding-top: 0; }
    .timeline-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--bg); flex-shrink: 0; }
    .timeline-dot.type-spot    { background: var(--primary); }
    .timeline-dot.type-general { background: #9a7a4a; }
    .timeline-dot.hotel-dot    { background: #3a9a68; }
    .timeline-dot.connector-dot-drive { width: 8px; height: 8px; background: var(--accent-soft); }
    .timeline-dot.connector-dot-walk  { width: 8px; height: 8px; background: #8fc99a; }
    .timeline-dot.connector-dot-tram  { width: 8px; height: 8px; background: #9a9ad0; }
    .spot-item, .hotel-card { flex: 1; min-width: 0; }
    /* ===== 景點/一般卡片配色（v7，Phase 2）：全站固定兩色，不再依「當天」上色。
       type-spot＝有字母編號的真正景點；type-general＝機場/超市/取車等一般資訊卡。===== */
    .spot-item.type-spot    { --spot-accent: var(--primary); --spot-tint: #e8f2f5; }
    .spot-item.type-general { --spot-accent: #9a7a4a; --spot-tint: #f5efe4; }
    .spot-item {
      background: var(--card);
      border-radius: var(--radius);
      border: 2px solid var(--spot-accent, var(--border));
      margin-bottom: var(--sp-5);
      cursor: default;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      transition: box-shadow .15s;
    }
    .timeline-row { margin-bottom: var(--sp-5); }
    .timeline-row.connector-row { margin-bottom: 0; }
    .timeline-row .spot-item, .timeline-row .hotel-card { margin-bottom: 0; }
    /* v21：里程小計卡也包進 timeline-row 內縮（比照住宿卡），
       時間軸虛線不再從卡片底下穿過 */
    .timeline-row .drive-summary-card { flex: 1; min-width: 0; }
    .spot-item:hover  { box-shadow: 0 4px 16px rgba(44,95,110,0.1); }
    .spot-item.no-click { cursor: default; border-style: dashed; }
    .spot-item.no-click:active { transform: none; }
    .spot-item.no-click:hover { box-shadow: none; }
    .spot-card-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      min-height: 64px;
      align-items: stretch;
    }
    .spot-card-copy {
      min-width: 0;
      padding: var(--sp-4);
      display: flex;
      flex-direction: column;
      justify-content: center;
      cursor: pointer;
    }
    .spot-item.no-click .spot-card-copy { cursor: default; }
    .spot-card-title { min-width: 0; font-size: var(--fs-base); font-weight: 600; line-height: 1.4; }
    /* 備選景點：底色改用中性灰調（跟正式景點的白底 + 主題色邊框做出區隔），
       文字整體再刷淡一階，縮圖也做出「褪色」處理，卡片尺寸完全不變。 */
    .spot-item.spot-optional {
      background: #f2f1ee;
      border-color: #d8d5cd;
    }
    .spot-item.spot-optional .spot-card-title { color: var(--sub); opacity: 0.6; font-weight: 500; }
    .spot-item.spot-optional .spot-card-intro { color: var(--sub); opacity: 0.55; }
    .spot-item.spot-optional .spot-card-meta { color: var(--sub); opacity: 0.55; }
    .spot-item.spot-optional .spot-thumb-cell img {
      filter: grayscale(55%) opacity(0.6);
    }
    .spot-item.spot-optional .spot-thumb-cell.fallback { opacity: 0.5; }
    .spot-optional-badge {
      display: inline-block; margin-left: var(--sp-3); font-size: var(--fs-2xs); font-weight: 700;
      padding: 1px 8px; border-radius: 999px; color: var(--sub);
      background: rgba(0,0,0,0.06); vertical-align: middle;
    }
    /* 階段 E：掛載備選景點（attachTo）縮排顯示在母景點卡片下方，跟時間軸主線
       區隔開——左邊縮排對齊到時間軸節點欄的寬度（30px + gap var(--sp-3)），
       再用一條細線把它跟主線隔開，一看就知道是「順路可加的選項」，不是下一站。
       沒有 .timeline-node，所以不佔時間軸節點，灰階樣式繼續沿用
       .spot-item.spot-optional，這裡只是外層縮排容器。 */
    .attached-spot-row {
      margin-left: calc(30px + var(--sp-3));
      padding-left: var(--sp-5);
      border-left: 2px solid #d8d5cd;
      margin-bottom: var(--sp-5);
    }
    .attached-spot-row .spot-item { margin-bottom: 0; }
    .spot-card-meta { margin-top: var(--sp-1); font-size: var(--fs-xs); color: var(--sub); }
    .spot-num, .spot-num-icon {
      color: var(--spot-accent, var(--primary)); font-weight: 700;
    }
    .spot-num-icon { font-size: 1.05rem; }
    .spot-icon-svg { display: inline-flex; width: 30px; height: 30px; color: var(--primary); }
    .spot-icon-svg svg { width: 100%; height: 100%; }
    .spot-img-wrap .img-fallback .fallback-icon .spot-icon-svg { width: 56px; height: 56px; color: rgba(255,255,255,0.92); }
    /* 景點名稱裡的中文字放大約50%，英文/拼音部分維持原尺寸 */
    .cjk-lg { font-size: 1.2rem; font-weight: 800; }
    .name-en { font-size: 0.7em; font-weight: 400; color: var(--sub); }
    /* v12：拿掉「景点介绍」標籤文字，只留內文，行數限制從兩行改成三行 */
    .spot-card-intro { min-width: 0; margin-top: var(--sp-2); }
    .spot-card-intro p {
      font-size: var(--fs-xs); color: var(--sub); line-height: 1.45;
      display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    }
    /* ===== 卡片縮圖列（v12 調整）：固定縮圖大小（一次約看得到 3 張），
       不論張數多寡都維持縮圖尺寸，不會因為只有 1 張就撐滿整列寬度。===== */
    .spot-thumb-row {
      display: flex;
      gap: var(--sp-2);
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x proximity;
      scrollbar-width: none;
      padding: var(--sp-3) var(--sp-3) 0;
      background: var(--card);
    }
    .spot-thumb-row::-webkit-scrollbar { display: none; }
    .spot-thumb-cell {
      flex: 0 0 30%;
      aspect-ratio: 4 / 3;
      border-radius: var(--radius-sm);
      overflow: hidden;
      background: var(--spot-tint, var(--bg2));
      scroll-snap-align: start;
      cursor: pointer;
    }
    .spot-item.no-click .spot-thumb-cell { cursor: default; }
    .spot-thumb-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .spot-thumb-cell.fallback { display: flex; align-items: center; justify-content: center; flex: 0 0 30%; }
    .spot-thumb-cell.fallback .spot-icon-svg { width: 32px; height: 32px; color: var(--spot-accent, var(--primary)); }
    @media (max-width: 420px) {
      .now-info-grid { grid-template-columns: 1fr; }
    }
    .drive-connector, .walk-connector, .tram-connector {
      display: flex;
      align-items: center;
      gap: var(--sp-3);
      padding: var(--sp-2) var(--sp-6) var(--sp-2) 0;
      margin: 0;
      background: transparent;
      flex: 1;
      min-width: 0;
    }
    .drive-info {
      display: flex;
      align-items: center;
      gap: var(--sp-2);
      font-size: var(--fs-xs);
      color: var(--sub);
      padding: var(--sp-1) var(--sp-4);
      background: var(--bg2);
      border-radius: var(--radius-lg);
      flex: 1;
    }
    .connector-icon { flex-shrink: 0; width: 13px; height: 13px; }
    .connector-icon-drive { color: var(--accent); }
    .connector-icon-walk  { color: #4a9a5a; }
    .connector-icon-tram  { color: #5a5aa8; }
    .next-stop-icon .connector-icon { width: 20px; height: 20px; }
    .drive-info svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--accent); }
    .walk-info {
      display: flex;
      align-items: center;
      gap: var(--sp-2);
      font-size: var(--fs-xs);
      color: var(--sub);
      padding: var(--sp-1) var(--sp-4);
      background: #f0f8f0;
      border-radius: var(--radius-lg);
      flex: 1;
      border: 1px solid #c8e8c8;
    }
    .tram-info {
      display: flex;
      align-items: center;
      gap: var(--sp-2);
      font-size: var(--fs-xs);
      color: var(--sub);
      padding: var(--sp-1) var(--sp-4);
      background: #f0f0f8;
      border-radius: var(--radius-lg);
      flex: 1;
      border: 1px solid #c8c8e8;
    }
    .drive-info > span:first-of-type, .walk-info > span:first-of-type, .tram-info > span:first-of-type {
      flex: 1;
      min-width: 0;
    }
    /* 導航放在兩景點間的距離／時間列最右側，外框內以圓形 G、A 區分地圖服務。 */
    .nav-icon-links { display: flex; gap: var(--sp-2); margin-left: auto; flex-shrink: 0; }
    .nav-icon-btn {
      min-width: 46px; padding: 3px 6px; border: 1px solid currentColor; border-radius: 999px;
      display: flex; align-items: center; justify-content: center;
      font-size: 10px; font-weight: 700; text-decoration: none;
      background: #fff; flex-shrink: 0; gap: 4px;
    }
    .nav-icon-google { color: #326fc2; }
    .nav-icon-apple  { color: #333; }
    .nav-provider-badge {
      display: inline-flex; align-items: center; justify-content: center;
      width: 16px; height: 16px; border-radius: 50%;
      background: #4285f4; color: #fff;
      font-size: 9px; line-height: 1;
    }
    .nav-icon-apple .nav-provider-badge { background: #333; }
    .drive-summary-card {
      margin-top: var(--sp-4);
      background: linear-gradient(135deg, #f0f4f8, #e8f0f4);
      border: 1px solid #b8ccd8;
      border-radius: var(--radius);
      padding: var(--sp-5) var(--sp-7);
      display: flex;
      align-items: center;
      gap: var(--sp-5);
    }
    .drive-summary-icon { font-size: var(--fs-xl); flex-shrink: 0; }
    .drive-summary-info h4 { font-size: var(--fs-base); font-weight: 700; color: #2a4a5a; }
    .drive-summary-info p  { font-size: var(--fs-xs); color: #4a6a7a; margin-top: var(--sp-1); line-height: 1.5; }
    .hotel-card {
      margin-top: var(--sp-4);
      background: linear-gradient(135deg, #e8f5f0, #d8eee8);
      border: 1px solid #a8d8c0;
      border-radius: var(--radius);
      padding: var(--sp-5) var(--sp-7);
      display: flex;
      align-items: center;
      gap: var(--sp-5);
    }
    .hotel-icon { font-size: var(--fs-2xl); flex-shrink: 0; }
    .hotel-info { flex: 1; }
    .hotel-info h4 { font-size: var(--fs-base); font-weight: 700; color: #2a5a3a; }
    .hotel-info p  { font-size: var(--fs-xs); color: #4a7a5a; margin-top: var(--sp-1); line-height: 1.5; }
    .hotel-card.clickable { cursor: pointer; transition: box-shadow .15s, transform .1s; }

    .hotel-card.clickable:active { transform: scale(0.98); }
    .hotel-card.clickable:hover  { box-shadow: 0 4px 16px rgba(44,95,110,0.1); }
    .hotel-card .spot-item-arrow { color: #4a7a5a; }
    .spot-hero {
      background: linear-gradient(135deg, #2c5f6e 0%, #1a3d4a 100%);
      padding: var(--sp-5) var(--sp-7);
      color: #fff;
    }
    .spot-hero-label { font-size: var(--fs-2xs); letter-spacing: 2px; opacity: 0.7; text-transform: uppercase; }
    /* 標題框的中文景點名稱縮小二個級距（原本是spot-hero-title字級的1.5倍，約2rem），
       標題框內容變少（拿掉了原本重複顯示的標籤文字），高度也跟著自然變矮，不需要太高 */
    .spot-hero-title { font-size: var(--fs-lg); font-weight: 700; margin-top: var(--sp-1); font-family: var(--font-display);}
    .spot-hero-title .cjk-lg { font-size: 1.3rem; font-weight: 800; }
    /* 標籤放進固定的標題框後（v11），改用淺色半透明膠囊樣式，跟深色底才有足夠對比 */
    .spot-hero-tags { margin-top: var(--sp-3); margin-bottom: 0; }
    .spot-hero-tags .tag { background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.32); }
    .spot-img-wrap {
      width: 100%;
      border-radius: var(--radius);
      overflow: hidden;
      margin-bottom: var(--sp-6);
      background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
      position: relative;
    }
    /* 沒有照片、純插畫 fallback 時，維持固定高度置中顯示 */
    .spot-img-wrap.fallback-only {
      height: 200px;
      display: flex; align-items: center; justify-content: center;
    }
    /* 景點照片固定為橫式 4:3 或直式 3:4，預留尺寸以避免載入時跳動。 */
    .spot-img-wrap.single img {
      width: 100%; height: auto; display: block; cursor: pointer; object-fit: cover;
    }
    .spot-img-wrap .img-fallback {
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: var(--sp-2); color: rgba(255,255,255,0.92); font-size: var(--fs-4xl);
    }
    .spot-img-wrap .img-fallback .fallback-icon {
      font-size: var(--fs-4xl);
      filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
    }
    .spot-img-wrap .img-fallback span.fallback-label {
      font-size: var(--fs-2xs); color: rgba(255,255,255,0.7); letter-spacing: 1px;
    }
    /* v13：拿掉 image-manifest.js 後不再用 orientation-landscape/portrait class 預先標記，
       統一先預設橫式 4:3；如果照片實際上是直式，js/render-itinerary.js 的 handleSpotPhotoLoad()
       會在圖片載入完成當下，直接改這個元素的 inline style（aspect-ratio:3/4）蓋過這裡的預設值。 */
    .spot-photo { aspect-ratio: 4 / 3; }
    /* 舊版雙欄縮圖網格，已被下方 .photo-carousel 取代，保留規則以防有頁面殘留引用。 */
    .spot-img-gallery {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: var(--sp-4);
      margin-bottom: var(--sp-6);
    }
    .spot-img-gallery img {
      width: 100%; height: auto; display: block; object-fit: cover;
      border-radius: var(--radius-sm);
      cursor: pointer;
    }

    /* ===== 相片輪播（v9 新增）：多張照片放在同一個框裡，左右滑動切換 =====
       景點詳情（js/render-itinerary.js buildSpotImageHtml）跟體驗/工具詳情
       （js/catalog-nav.js openCatalogDetail）共用同一套樣式與 buildPhotoCarouselHtml() 產生的 HTML。 */
    .photo-carousel-wrap { margin-bottom: var(--sp-6); }
    .photo-carousel {
      width: 100%;
      border-radius: var(--radius);
      overflow: hidden;
      background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
      position: relative;
    }
    .photo-carousel.fallback-only {
      height: 200px;
      display: flex; align-items: center; justify-content: center;
    }
    .photo-carousel-track {
      display: flex;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .photo-carousel-track::-webkit-scrollbar { display: none; }
    .photo-carousel-slide {
      flex: 0 0 100%;
      scroll-snap-align: center;
      min-width: 0;
    }
    .photo-carousel-slide img {
      width: 100%; height: 100%; display: block; object-fit: cover; cursor: pointer;
    }
    .photo-carousel-slide.image-error { display: none; }
    /* 沒有指定尺寸資訊的照片（體驗/工具，尚未提供真實照片時的預留欄位）維持 4:3 比例，
       這件事現在由上面的 .spot-photo { aspect-ratio: 4/3 } 統一處理，這裡不用再重複寫一次。 */
    .photo-carousel-dots {
      display: flex; justify-content: center; gap: var(--sp-2);
      margin-top: var(--sp-3);
    }
    .carousel-dot {
      width: 6px; height: 6px; border-radius: 50%;
      background: var(--border-light, #d8d8d8);
      transition: background .15s, transform .15s;
    }
    .carousel-dot.active { background: var(--primary); transform: scale(1.3); }
    .tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }
    .tag {
      background: var(--tag-bg); color: var(--tag-txt);
      border-radius: var(--radius-lg); padding: var(--sp-1) var(--sp-4);
      font-size: var(--fs-xs); font-weight: 500;
      border: 1px solid #cde3ea;
    }
    .info-card {
      background: var(--card);
      border-radius: var(--radius);
      border: 1px solid var(--border);
      padding: var(--sp-6) var(--sp-7);
      margin-bottom: var(--sp-4);
    }
    .info-card .card-label {
      font-size: var(--fs-2xs); letter-spacing: 1px;
      color: var(--sub); text-transform: uppercase;
      margin-bottom: var(--sp-3); font-weight: 600;
    }
    .info-card p { font-size: var(--fs-base); line-height: 1.8; color: #3a3a3a; }
    /* 深度介紹的圖文混排（階段 D）：內文圖在 .info-card 的 padding 內顯示，不做出血。 */
    .info-card .deep-img { margin: var(--sp-5) 0; }
    .info-card .deep-img img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: calc(var(--radius) - 4px);
        cursor: zoom-in;
    }
    .info-card .deep-heading {
        font-size: var(--fs-base);
        font-weight: 700;
        color: #2f2f2f;
        margin: var(--sp-6) 0 var(--sp-3);
    }
    .info-card .deep-heading:first-child { margin-top: 0; }
    .tips-card {
      background: var(--warn-bg);
      border: 1px solid var(--warn-brd);
      border-radius: var(--radius);
      padding: var(--sp-5) var(--sp-7);
      margin-bottom: var(--sp-4);
    }
    .tips-card .card-label {
      font-size: var(--fs-2xs); letter-spacing: 1px;
      color: var(--warn-txt); text-transform: uppercase;
      margin-bottom: var(--sp-2); font-weight: 600;
    }
    .tips-card p { font-size: var(--fs-base); line-height: 1.8; color: var(--warn-txt); }
    /* 條列式段落間距：每段（一、二、三 或 (1)(2)(3)）之間留半行高的呼吸空間，最後一段不留多餘間距 */
    .outline-p { margin-bottom: 0.9em; }
    .outline-p:last-child { margin-bottom: 0; }
    .parking-card {
      background: #f8f4e8;
      border: 1px solid #d8c878;
      border-radius: var(--radius);
      padding: var(--sp-5) var(--sp-7);
      margin-bottom: var(--sp-4);
    }
    .parking-card .card-label {
      font-size: var(--fs-2xs); letter-spacing: 1px;
      color: #7a6a18; text-transform: uppercase;
      margin-bottom: var(--sp-2); font-weight: 600;
    }
    .parking-row { display: flex; gap: var(--sp-7); flex-wrap: wrap; }
    .parking-item { font-size: var(--fs-sm); color: #5a5018; line-height: 1.6; }
    .parking-item strong { font-weight: 700; }
    /* 備註卡：中性淺灰底，靠左側灰色條與白底的 .info-card 做出區隔。
       合併 tips/parking/toilet 之後，內容從「警示」變成「綜合資訊」，
       因此刻意不沿用 .tips-card 的琥珀警示色，避免弱化警示的意義。
       （階段 B：.tips-card / .parking-card 暫時保留不刪，見規格書 B.4） */
    .note-card {
        background: #f7f6f4;
        border: 1px solid var(--border);
        border-left: 3px solid #b8b3a8;
        border-radius: var(--radius);
        padding: var(--sp-5) var(--sp-7);
        margin-bottom: var(--sp-6);
    }
    .note-card .card-label {
        font-size: var(--fs-2xs);
        letter-spacing: 1px;
        color: #7a746a;
        text-transform: uppercase;
        margin-bottom: var(--sp-3);
        font-weight: 700;
    }
    .note-card p { font-size: var(--fs-sm); line-height: 1.8; color: #4a463e; }
    /* 備注裡的 {link:...} 內嵌連結（跳到體驗／工具頁的某個項目），用底線＋主色跟一般文字區隔 */
    .note-inline-link {
        color: var(--accent);
        text-decoration: underline;
        text-underline-offset: 2px;
        font-weight: 600;
        cursor: pointer;
    }
    .note-inline-link .note-inline-link-icon {
        text-decoration: none;
        font-size: 0.85em;
        margin-left: 1px;
    }
    .next-stop-card {
      background: linear-gradient(135deg, #e8f4f8, #d8eaf0);
      border: 1px solid #a8ccd8;
      border-radius: var(--radius);
      padding: var(--sp-4) var(--sp-7);
      margin-bottom: var(--sp-4);
      display: flex;
      align-items: center;
      gap: var(--sp-4);
    }
    .next-stop-icon { flex-shrink: 0; display: flex; }
    .next-stop-info { font-size: var(--fs-sm); color: #2a5a6a; line-height: 1.6; }
    .next-stop-info strong { font-weight: 700; }
    .map-btn {
      display: flex; align-items: center; justify-content: center;
      gap: var(--sp-4); width: 100%; padding: var(--sp-6);
      background: var(--primary); color: #fff;
      border: none; border-radius: var(--radius);
      font-size: var(--fs-base); font-weight: 600;
      cursor: pointer; text-decoration: none;
      transition: background .2s; letter-spacing: 0.5px;
      margin-bottom: var(--sp-4);
    }
    .map-btn:hover { background: #1a3d4a; }
    .map-btn svg { width: 18px; height: 18px; }
    .map-btn-row { display: flex; gap: var(--sp-4); margin-bottom: var(--sp-4); }
    .map-btn-row .map-btn { margin-bottom: 0; flex: 1; padding: var(--sp-5) var(--sp-3); font-size: var(--fs-sm); }
    .map-btn-apple { background: #333; }
    .map-btn-apple:hover { background: #000; }
    .day-route-map {
      width: 100%; margin-bottom: var(--sp-6);
      border-radius: var(--radius); overflow: hidden;
      border: 1px solid var(--border); cursor: zoom-in; line-height: 0;
    }
    .day-route-map img { width: 100%; height: auto; display: block; }

    /* ===== v10 改版：頂端只留常駐的行程概覽/Day1-9 選單列，地圖圖片改移到可捲動內容區 ===== */
    .itin-top {
      background: var(--card);
      border-bottom: 1px solid var(--border);
      position: sticky; top: 0; z-index: 90;
    }
    .itin-top-inner { padding: var(--sp-5) var(--sp-6) var(--sp-4); }
    /* 地圖輪播容器（在 view-overview / view-day 可捲動內容最上面），
       直接沿用共用的 .photo-carousel 元件，這裡只補一個固定比例避免版面跳動。 */
    /* 地圖輪播（行程總覽/每日行程用）：不透過「百分比高度需要靠 aspect-ratio 撐出來」這種鏈式寫法
       （在部分瀏覽器上這條鏈可能解析不到，導致整塊高度變 0、圖片完全不顯示），
       改成明確用 position:absolute + inset:0 撐滿，確定不管哪個瀏覽器都看得到。 */
    /* v14：地圖框比例改成 4:3，配合新版手繪插畫地圖（原本 20:9 是配合舊版寬扁路線圖用的） */
    .itin-map-scroll .photo-carousel { position: relative; aspect-ratio: 4 / 3; height: auto; }
    .itin-map-scroll .photo-carousel-track { position: absolute; inset: 0; height: 100%; }
    .itin-map-scroll .photo-carousel-slide { position: relative; height: 100%; }
    .itin-map-scroll .photo-carousel-slide img {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      aspect-ratio: auto !important;
      object-fit: contain;
    }
    .itin-day-selector { display: flex; align-items: center; gap: var(--sp-2); }
    .itin-pill {
      flex-shrink: 0; padding: 6px 12px; border-radius: 999px;
      border: 1px solid var(--border); background: var(--card);
      font-size: var(--fs-xs); font-weight: 600; color: var(--text);
      cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s;
    }
    .itin-pill.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
    .itin-pill-fixed { position: relative; }
    .itin-pill-fixed::after {
      content: ''; position: absolute; right: -8px; top: 50%; transform: translateY(-50%);
      width: 1px; height: 16px; background: var(--border);
    }
    .itin-pill-scroll {
      display: flex; gap: var(--sp-2); overflow-x: auto; scroll-behavior: smooth;
      padding: 2px 2px 4px; scrollbar-width: none;
    }
    .itin-pill-scroll::-webkit-scrollbar { display: none; }
    /* 固定日期標題（Phase 3）：跟著地圖/選單列一起固定在頂端，不隨景點列表捲動，
       格式為「(10/4)　第二日　初探冰岛」，字體加粗 */
    .itin-day-heading {
      font-family: var(--font-display); font-size: var(--fs-md); font-weight: 800;
      color: var(--text); line-height: 1.4; margin-top: var(--sp-4);
    }

    .flight-segment {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: var(--sp-5);
      margin-bottom: var(--sp-3);
    }
    .flight-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: var(--sp-3);
    }
    .flight-airline { font-size: var(--fs-sm); font-weight: 700; color: var(--primary); }
    .flight-date { font-size: var(--fs-2xs); color: var(--sub); background: var(--tag-bg); padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-sm); }
    .flight-route { display: flex; align-items: center; gap: var(--sp-4); }
    .flight-dep, .flight-arr { flex: 1; }
    .flight-time { font-size: var(--fs-md); font-weight: 700; color: var(--text); }
    .flight-airport { font-size: var(--fs-xs); color: var(--sub); margin-top: var(--sp-1); }
    .flight-arrow { font-size: var(--fs-lg); color: var(--accent); font-weight: 700; }
    .flight-duration { font-size: var(--fs-xs); color: var(--sub); text-align: center; background: var(--bg2); padding: var(--sp-1) var(--sp-4); border-radius: var(--radius-sm); }
    .flight-note { font-size: var(--fs-xs); color: var(--warn-txt); margin-top: var(--sp-3); padding: var(--sp-2) var(--sp-4); background: var(--warn-bg); border-radius: var(--radius-sm); }
    .flight-transfer { text-align: center; font-size: var(--fs-xs); color: var(--sub); padding: var(--sp-2); margin-bottom: var(--sp-3); }
    .info-section { margin-bottom: var(--sp-8); }
    .info-section h3 {
      font-size: var(--fs-md); font-weight: 700; color: var(--primary);
      margin: var(--sp-7) 0 var(--sp-4); padding: var(--sp-3) 0;
      border-bottom: 2px solid var(--primary);
      display: flex; align-items: center; gap: var(--sp-3);
    }
    .link-card {
      display: flex; align-items: center; gap: var(--sp-5);
      padding: var(--sp-5) var(--sp-6);
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      margin-bottom: var(--sp-3);
      cursor: pointer;
      transition: box-shadow .15s, transform .1s;
      text-decoration: none;
    }
    .link-card:active { transform: scale(0.98); }
    .link-card:hover { box-shadow: 0 4px 16px rgba(44,95,110,0.1); }
    .link-icon { font-size: var(--fs-xl); flex-shrink: 0; }
    .link-info { flex: 1; min-width: 0; }
    .link-info h4 { font-size: var(--fs-base); font-weight: 600; color: var(--text); }
    .link-info p { font-size: var(--fs-xs); color: var(--sub); margin-top: var(--sp-1); }
    .link-badge {
      flex-shrink: 0;
      font-size: var(--fs-2xs);
      font-weight: 700;
      color: var(--primary);
      background: var(--tag-bg);
      padding: 3px var(--sp-4);
      border-radius: var(--radius-sm);
      white-space: nowrap;
    }
    .tips-box {
      background: var(--warn-bg);
      border: 1px solid var(--warn-brd);
      border-radius: var(--radius);
      padding: var(--sp-4) var(--sp-6);
      margin-top: var(--sp-4);
    }
    .tips-box p { font-size: var(--fs-sm); color: var(--warn-txt); line-height: 1.6; }
    /* v23：station-grid/market-grid/market-card/market-tag 已改用 catalog-compare-list（純文字比較清單）取代，
       全站已無任何內容使用這組舊 class，故移除。 */
    .price { color: var(--success) !important; font-weight: 700; font-size: var(--fs-sm) !important; }
    .hours { font-size: var(--fs-2xs) !important; color: var(--sub); opacity: 0.8; }
    .budget-section-header {
      font-size: var(--fs-md); font-weight: 700; color: var(--primary);
      margin: var(--sp-7) 0 var(--sp-4); padding: var(--sp-3) 0;
      border-bottom: 2px solid var(--primary);
      display: flex; align-items: center; gap: var(--sp-3);
    }
    .budget-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: var(--sp-6);
      margin-bottom: var(--sp-5);
    }
    .cat-grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: var(--sp-1);
      margin-bottom: var(--sp-6);
    }
    .cat-btn {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: var(--sp-1);
      padding: 0;
      border-radius: var(--radius-sm);
      border: 2px solid transparent;
      cursor: pointer;
      transition: all .15s;
      text-align: center;
      height: 76px;
    }
    .cat-btn:hover { border-color: var(--accent-soft); }
    .cat-btn.active {
      border-color: var(--primary);
      box-shadow: 0 2px 8px rgba(42,74,92,0.15);
    }
    .cat-btn .cat-icon { font-size: var(--fs-xl); line-height: 1; display: block; margin-bottom: var(--sp-1); }
    .cat-btn .cat-label { font-size: var(--fs-sm); font-weight: 600; color: var(--text); line-height: 1; }
    .cat-btn.active .cat-label { color: var(--primary); font-weight: 700; }
    .form-group { margin-bottom: var(--sp-5); }
    .form-label { font-size: var(--fs-xs); color: var(--sub); margin-bottom: var(--sp-1); display: block; font-weight: 600; }
    .form-input {
      width: 100%; padding: var(--sp-5) var(--sp-6);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-size: var(--fs-base);
      background: var(--bg);
      color: var(--text);
      transition: border-color .2s;
      -webkit-appearance: none;
      appearance: none;
    }
    .form-input:focus { outline: none; border-color: var(--accent); background: var(--card); }
    .amount-input { text-align: right; font-size: var(--fs-md); font-weight: 600; }
    .date-currency-row {
      display: flex;
      gap: var(--sp-4);
      align-items: flex-end;
      margin-bottom: var(--sp-5);
    }
    .date-currency-row .date-wrap { flex: 1; min-width: 0; }
    .date-currency-row .cur-wrap { flex: 0 0 90px; }
    .currency-select {
      width: 100%;
      padding: var(--sp-5) var(--sp-9) var(--sp-5) var(--sp-5);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-size: var(--fs-base);
      font-weight: 700;
      background-color: var(--bg);
      color: var(--primary);
      cursor: pointer;
      -webkit-appearance: none;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237a8a8f' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 9px center;
    }
    .currency-select:focus { outline: none; border-color: var(--accent); background-color: var(--card); }
    .people-section { margin-bottom: var(--sp-5); }
    .people-title { font-size: var(--fs-xs); color: var(--sub); margin-bottom: var(--sp-2); font-weight: 600; }
    .people-grid-simple { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); }
    .person-simple {
      padding: var(--sp-4) var(--sp-1);
      border-radius: var(--radius-sm);
      border: 2px solid transparent;
      text-align: center;
      font-size: var(--fs-base);
      font-weight: 500;
      cursor: pointer;
      transition: all .15s;
    }
    .person-simple:hover { border-color: var(--accent-soft); }
    .person-simple.active {
      border-color: var(--primary);
      font-weight: 700;
      box-shadow: 0 2px 6px rgba(42,74,92,0.1);
    }
    .save-btn {
      width: 100%; padding: var(--sp-6);
      background: linear-gradient(135deg, var(--primary), #1a3d4a);
      color: #fff; border: none;
      border-radius: var(--radius);
      font-size: var(--fs-md); font-weight: 700;
      cursor: pointer; transition: all .2s;
      margin-top: var(--sp-3); letter-spacing: 0.5px;
    }
    .save-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(42,74,92,0.25); }
    .save-btn:active { transform: scale(0.98); }
    .summary-table { width: 100%; border-collapse: collapse; }
    .summary-table th {
      font-size: var(--fs-2xs); color: var(--sub);
      text-align: left; padding: var(--sp-2) var(--sp-1);
      border-bottom: 1px solid var(--border);
      font-weight: 600; letter-spacing: 0.5px;
    }
    .summary-table td {
      font-size: var(--fs-sm); padding: var(--sp-3) var(--sp-1);
      border-bottom: 1px solid var(--bg2);
      color: var(--text);
    }
    .summary-table td:nth-child(2),
    .summary-table td:nth-child(3),
    .summary-table td:nth-child(4) { text-align: right; }
    .summary-table tr:last-child td { border-bottom: none; }
    .summary-total td { font-weight: 700; color: var(--primary); border-top: 2px solid var(--border) !important; }
    .net-pos { color: var(--success) !important; font-weight: 700; }
    .net-neg { color: var(--danger) !important; font-weight: 700; }
    .expense-empty { text-align: center; padding: var(--sp-9); color: var(--sub); font-size: var(--fs-sm); }
    .expense-item {
      display: flex; align-items: center; gap: var(--sp-4);
      padding: var(--sp-4) var(--sp-4);
      background: var(--bg);
      border-radius: var(--radius-sm);
      margin-bottom: var(--sp-2);
      border: 1px solid var(--border-light);
    }
    .ei-cat { font-size: var(--fs-xl); width: 34px; text-align: center; flex-shrink: 0; }
    .ei-info { flex: 1; }
    .ei-desc { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
    .ei-meta { font-size: var(--fs-2xs); color: var(--sub); margin-top: var(--sp-1); }
    .ei-right { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-1); flex-shrink: 0; }
    .ei-amount { font-size: var(--fs-base); font-weight: 700; color: var(--primary); }
    .ei-cny { font-size: var(--fs-2xs); color: var(--sub); }
    .ei-del { font-size: var(--fs-xs); color: var(--danger); cursor: pointer; padding: var(--sp-1) var(--sp-2); border: 1px solid var(--danger); border-radius: var(--radius-sm); background: none; }
    .collapse-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: var(--sp-5) var(--sp-6);
      background: linear-gradient(135deg, var(--bg2), var(--bg));
      border-radius: var(--radius-sm);
      cursor: pointer;
      border: 1px solid var(--border);
      margin-bottom: var(--sp-3);
      transition: all .2s;
    }
    .collapse-header:hover { border-color: var(--accent-soft); }
    .collapse-header .ch-title { font-size: var(--fs-base); font-weight: 700; color: var(--primary); }
    .collapse-header .ch-arrow { color: var(--sub); transition: transform .2s; font-size: var(--fs-sm); }
    .collapse-header.open .ch-arrow { transform: rotate(180deg); }
    .collapse-body { display: none; padding: 0 var(--sp-1) var(--sp-4); }
    .collapse-body.open { display: block; }
    .rate-row { display: flex; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-3); }
    .rate-row label { font-size: var(--fs-sm); color: var(--sub); width: 48px; flex-shrink: 0; font-weight: 600; }
    .rate-row input { flex: 1; padding: var(--sp-4) var(--sp-5); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: var(--fs-base); background: var(--bg); text-align: right; }
    .rate-row input:focus { outline: none; border-color: var(--accent); }
    .toast {
      position: fixed; bottom: calc(var(--nav-h) + 16px);
      left: 50%; transform: translateX(-50%) translateY(20px);
      background: #222; color: #fff;
      padding: var(--sp-4) var(--sp-8); border-radius: var(--radius-lg);
      font-size: var(--fs-sm); opacity: 0;
      transition: opacity .25s, transform .25s;
      pointer-events: none; z-index: 999; white-space: nowrap;
    }
    .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
    .travel-banner {
      background: linear-gradient(135deg, #2c5f6e 0%, #1a3d4a 100%);
      border-radius: var(--radius);
      padding: var(--sp-6) var(--sp-7);
      margin-bottom: var(--sp-6);
      color: #fff;
      display: flex;
      align-items: center;
      gap: var(--sp-5);
    }
    .travel-banner-icon { font-size: var(--fs-3xl); }
    .travel-banner-text h2 { font-size: var(--fs-md); font-weight: 700; }
    .travel-banner-text p { font-size: var(--fs-xs); opacity: 0.75; margin-top: var(--sp-1); }
    .travel-collapse {
      margin-bottom: var(--sp-3);
      border-radius: var(--radius);
      overflow: hidden;
      border: 1px solid var(--border);
    }
    .travel-collapse-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: var(--sp-6) var(--sp-7);
      background: linear-gradient(135deg, var(--bg2), var(--bg));
      cursor: pointer;
      transition: background .2s;
      gap: var(--sp-4);
    }
    .travel-collapse-header:hover { background: linear-gradient(135deg, #e5e5df, var(--bg2)); }
    .travel-collapse-left { display: flex; align-items: center; gap: var(--sp-4); flex: 1; }
    .travel-collapse-emoji { font-size: var(--fs-xl); flex-shrink: 0; }
    .travel-collapse-title { font-size: var(--fs-base); font-weight: 700; color: var(--primary); }
    .doc-group-label { font-size: var(--fs-xs); font-weight: 700; color: var(--sub); text-transform: uppercase; letter-spacing: 1px; margin: var(--sp-7) 0 var(--sp-3); }
    .doc-group-label:first-child { margin-top: 0; }
    .travel-collapse-sub { font-size: var(--fs-xs); color: var(--sub); margin-top: var(--sp-1); }
    .travel-collapse-arrow { color: var(--sub); transition: transform .2s; font-size: var(--fs-sm); flex-shrink: 0; }
    .travel-collapse-header.open .travel-collapse-arrow { transform: rotate(180deg); }
    .travel-collapse-body { display: none; padding: var(--sp-5); background: var(--card); }
    .travel-collapse-body.open { display: block; }
    .travel-sub-collapse {
      margin-bottom: var(--sp-3);
      border-radius: var(--radius-sm);
      overflow: hidden;
      border: 1px solid var(--border-light);
    }
    .travel-sub-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: var(--sp-4) var(--sp-6);
      background: var(--bg2);
      cursor: pointer;
      transition: background .2s;
    }
    .travel-sub-header:hover { background: #e8e8e2; }
    .travel-sub-title { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
    .travel-sub-arrow { color: var(--sub); transition: transform .2s; font-size: var(--fs-xs); }
    .travel-sub-header.open .travel-sub-arrow { transform: rotate(180deg); }
    .travel-sub-body { display: none; padding: var(--sp-4); background: var(--card); }
    .travel-sub-body.open { display: block; }
    /* v23：souvenir-card／souvenir-img-wrap／souvenir-item／souvenir-item-info 已被
       catalog-square／catalog-wide 取代並移除，下面只保留仍在使用的文字類 class。 */
    .souvenir-shop { font-size: var(--fs-xs); color: var(--primary); font-weight: 600; margin-bottom: var(--sp-1); }
    .souvenir-desc { font-size: var(--fs-sm); color: var(--text); line-height: 1.7; margin-bottom: var(--sp-2); }
    .souvenir-tip { font-size: var(--fs-xs); color: var(--sub); background: var(--tag-bg); padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-sm); line-height: 1.5; }
    .souvenir-brand { font-size: var(--fs-2xs) !important; color: var(--primary) !important; font-weight: 600; background: var(--tag-bg); padding: var(--sp-1) var(--sp-2); border-radius: var(--radius-sm); display: inline-block; }
    .alcohol-warn {
      background: #fff3f3;
      border: 1px solid #f0a0a0;
      border-radius: var(--radius);
      padding: var(--sp-6) var(--sp-7);
      margin-bottom: var(--sp-5);
    }
    .alcohol-warn .warn-title { font-size: var(--fs-sm); font-weight: 700; color: #a04a4a; margin-bottom: var(--sp-2); }
    .alcohol-warn p { font-size: var(--fs-sm); color: #7a3a3a; line-height: 1.7; }
    .sauna-table { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-4); }
    .sauna-table th {
      font-size: var(--fs-xs); color: var(--sub);
      text-align: left; padding: var(--sp-2) var(--sp-3);
      border-bottom: 1px solid var(--border);
      font-weight: 600; background: var(--bg2);
    }
    .sauna-table td {
      font-size: var(--fs-sm); padding: var(--sp-3) var(--sp-3);
      border-bottom: 1px solid var(--bg2);
      color: var(--text); line-height: 1.5;
    }
    .sauna-table tr:last-child td { border-bottom: none; }
    /* .area-label 已停用：Day5/Day7 分区标题改用 .travel-collapse 折叠元件呈现（见第1项功能），
       不再是纯文字标题，规则已移除。 */
    .area-collapse { margin-bottom: var(--sp-3); }

    /* ===== 體驗／工具：固定總覽與可橫滑分類列 ===== */
    .catalog-page > .page-inner { padding-top: 0; }
    .catalog-top {
      position: sticky; top: 0; z-index: 90;
      display: flex; align-items: center; gap: var(--sp-2);
      background: var(--card); border-bottom: 1px solid var(--border);
      margin: 0 calc(var(--sp-6) * -1) var(--sp-5);
      padding: var(--sp-4) var(--sp-6);
    }
    .catalog-pill {
      flex-shrink: 0; border: 1px solid var(--border); background: var(--card);
      color: var(--text); border-radius: 999px; padding: 7px 13px;
      font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; cursor: pointer;
    }
    .catalog-pill.active { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
    .catalog-pill-overview { position: relative; }
    .catalog-pill-overview::after {
      content: ''; position: absolute; right: -8px; top: 50%; transform: translateY(-50%);
      width: 1px; height: 16px; background: var(--border);
    }
    .catalog-pill-scroll {
      display: flex; gap: var(--sp-2); overflow-x: auto; padding: 2px 2px 3px;
      scrollbar-width: none; scroll-behavior: smooth;
    }
    .catalog-pill-scroll::-webkit-scrollbar { display: none; }
    .catalog-overview { margin-bottom: var(--sp-6); }
    .catalog-overview-heading { margin-bottom: var(--sp-4); }
    .catalog-overview-heading h2 { font-size: var(--fs-lg); font-weight: 800; color: var(--text); }
    .catalog-overview-heading p { font-size: var(--fs-xs); color: var(--sub); margin-top: var(--sp-1); }
    .catalog-overview-grid { display: grid; gap: var(--sp-3); }
    .catalog-overview-card {
      width: 100%; border: 1px solid var(--border); border-radius: var(--radius);
      background: var(--card); padding: var(--sp-5); display: flex; align-items: center;
      gap: var(--sp-4); text-align: left; cursor: pointer; box-shadow: 0 2px 10px rgba(30,50,60,.05);
    }
    .catalog-overview-card:active { transform: scale(.985); }
    /* v23：总览卡片尺寸系統。每個分類指定 2x4／2x2／1x4 其中一種（見 catalog-config.js 的 sizes），
       系統只負責照指定尺寸排版，不決定哪個分類該用哪種尺寸。 */
    .catalog-overview-card.ov-2x4 {
      grid-column: 1 / -1; flex-direction: column; align-items: stretch; padding: 0; overflow: hidden;
    }
    .catalog-overview-media { width: 100%; background: var(--bg2); overflow: hidden; }
    .catalog-overview-card.ov-2x4 .catalog-overview-media { aspect-ratio: 2.2 / 1; }
    .catalog-overview-card.ov-2x2 {
      padding: 0; overflow: hidden; flex-direction: column; align-items: stretch;
    }
    .catalog-overview-card.ov-2x2 .catalog-overview-media {
      width: 100%; aspect-ratio: 1 / 1;
    }
    .catalog-overview-card.ov-2x2 .catalog-overview-copy { padding: 10px 12px 4px; }
    .catalog-overview-card.ov-2x2 .catalog-overview-arrow { margin: 0 12px 10px 0; }
    .catalog-overview-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .catalog-overview-media.image-error { display: flex; align-items: center; justify-content: center; }
    .catalog-overview-card.ov-2x4 .catalog-overview-media.image-error { font-size: 2.4rem; }
    .catalog-overview-card.ov-2x2 .catalog-overview-media.image-error { font-size: 2.2rem; }
    .catalog-overview-icon {
      width: 48px; height: 48px; border-radius: var(--radius-sm); flex-shrink: 0;
      display: flex; align-items: center; justify-content: center; font-size: var(--fs-xl);
      background: linear-gradient(135deg, var(--tag-bg), var(--bg2));
    }
    .catalog-overview-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
    .catalog-overview-copy strong { font-size: var(--fs-base); color: var(--text); }
    .catalog-overview-copy small {
      font-size: var(--fs-xs); color: var(--sub); margin-top: var(--sp-1);
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .catalog-overview-arrow { font-size: var(--fs-xl); color: var(--sub); }
    .catalog-page .travel-collapse { border: 0; overflow: visible; }
    .catalog-page .travel-collapse > .travel-collapse-header { display: none; }
    .catalog-page .travel-collapse > .travel-collapse-body { padding: 0; background: transparent; }

    /* v23：分類詳情頁卡片改成三種版型——正方形圖文框／橫式圖文框／純文字框，取代舊的 hero/split/tile 系統。 */
    .catalog-list-card { position: relative; }
    .catalog-list-card.catalog-layout-square,
    .catalog-list-card.catalog-layout-wide { cursor: pointer; }
    .catalog-list-card.catalog-layout-square:active,
    .catalog-list-card.catalog-layout-wide:active { transform: scale(.985); }

    /* 模組一・正方形圖文框（catalog-square）：上方 4:3 封面圖＋標題＋最多三行文字介紹，點開詳情圖片直式堆疊 */
    .catalog-list-card.catalog-layout-square { margin-bottom: var(--sp-4); }
    .catalog-list-card.catalog-layout-square::after {
      content: '›'; position: absolute; right: 12px; top: 12px;
      width: 26px; height: 26px; border-radius: 50%;
      background: rgba(255,255,255,.85); color: var(--text);
      font-size: var(--fs-lg); display: flex; align-items: center; justify-content: center;
    }
    .catalog-square-media { width: 100%; aspect-ratio: 4 / 3; background: var(--bg2); overflow: hidden; }
    .catalog-square-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .catalog-square-media.image-error { display: flex; align-items: center; justify-content: center; font-size: 2.4rem; }

    /* 模組二・橫式圖文框（catalog-wide）：左側 1:1 縮圖＋右側文字＋右緣箭頭，點開詳情圖片可左右滑動輪播 */
    .catalog-list-card.catalog-layout-wide {
      display: flex; align-items: flex-start; gap: var(--sp-4);
      margin-bottom: var(--sp-3); overflow: hidden;
      border: 1px solid var(--border); border-radius: var(--radius); background: var(--card);
      box-shadow: 0 2px 10px rgba(30,50,60,.06);
      padding: var(--sp-4) 30px var(--sp-4) var(--sp-4);
    }
    .catalog-list-card.catalog-layout-wide::after {
      content: '›'; position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
      color: var(--sub); font-size: var(--fs-xl);
    }
    .catalog-wide-media {
      width: 72px; height: 72px; flex-shrink: 0; border-radius: var(--radius-sm);
      overflow: hidden; background: var(--bg2);
    }
    .catalog-wide-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .catalog-wide-media.image-error {
      display: flex; align-items: center; justify-content: center; font-size: var(--fs-2xl);
    }
    .catalog-wide-info { flex: 1; min-width: 0; }
    .catalog-wide-info h4 { font-size: var(--fs-base); font-weight: 800; color: var(--text); }
    .catalog-wide-info p {
      display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
      overflow: hidden; font-size: var(--fs-xs); line-height: 1.55; color: var(--sub);
      margin-top: var(--sp-1); margin-bottom: 0;
    }
    /* souvenir-brand（品牌／分類小標籤）只在詳情頁顯示，清單卡片先隱藏，避免跟兩行說明擠在一起 */
    .catalog-list-card.catalog-layout-wide .souvenir-brand,
    .catalog-list-card.catalog-layout-square .souvenir-brand { display: none; }

    /* 模組三・純文字框（info-card、alcohol-warn）：不需要圖片、不能點擊展開，內容本身已經是完整資訊 */

    /* ===== v24（測試中）：簡化版圖文卡 item-card ─ 取代 square/wide 版型判斷，只依尺寸分大／小兩種 =====
       - item-lg：2.2:1 封面圖，整行滿版
       - item-sm：1:1 封面圖，兩張並排（用 .item-row 包住兩張 item-sm）
       - 點開詳情不再區分堆疊／輪播，直接依 .item-detail 裡「文字、圖片」原始排列順序顯示，
         圖片不強制裁切比例，依實際尺寸自動等比縮放。 */
    .item-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-bottom: var(--sp-4); }
    .item-card {
      position: relative; cursor: pointer; overflow: hidden; margin-bottom: var(--sp-4);
      border: 1px solid var(--border); border-radius: var(--radius); background: var(--card);
      box-shadow: 0 2px 10px rgba(30,50,60,.06);
    }
    .item-row .item-card { margin-bottom: 0; }
    .item-card:active { transform: scale(.985); }
    .item-card-media { width: 100%; background: var(--bg2); overflow: hidden; }
    .item-card.item-lg .item-card-media { aspect-ratio: 2.2 / 1; }
    .item-card.item-sm .item-card-media { aspect-ratio: 1 / 1; }
    .item-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .item-card-media.image-error { display: flex; align-items: center; justify-content: center; font-size: 2.2rem; }
    .item-card-title { padding: var(--sp-3) var(--sp-4); font-size: var(--fs-base); font-weight: 800; color: var(--text); }
    .item-card::after {
      content: '›'; position: absolute; right: 10px; top: 10px;
      width: 26px; height: 26px; border-radius: 50%;
      background: rgba(255,255,255,.85); color: var(--text);
      font-size: var(--fs-lg); display: flex; align-items: center; justify-content: center;
    }
    /* 關鍵：第三層內容（.item-detail）平常寫在 .item-card 裡面方便維護，
       但在第二層清單畫面必須隱藏，只有點擊卡片、由 JS 複製進彈窗後才顯示。
       只用「.item-card > .item-detail」這個較嚴格的選擇器，
       確保不會連彈窗裡（不在 .item-card 底下）的 .item-detail 也一併被隱藏。 */
    .item-card > .item-detail { display: none; }

    /* 詳情彈窗內：文字、圖片自由排列，任意順序、任意數量（含全文字或全圖片） */
    .item-detail p { font-size: var(--fs-sm); line-height: 1.75; color: var(--text); margin: 0 0 var(--sp-4); white-space: pre-line; }
    .item-detail img {
      display: block; width: calc(100% + var(--sp-6) * 2); max-width: none;
      margin: 0 calc(-1 * var(--sp-6)) var(--sp-4);
    }
    .item-detail > img:first-child { margin-top: calc(-1 * var(--sp-6)); }
    .item-detail > *:last-child { margin-bottom: 0; }
    /* 詳情內文若出現「一列二圖」（.item-detail 內嵌套 .item-row），
       兩張圖各自維持原始比例、並排顯示，不套用整段內文圖片的滿版出血效果 */
    .item-detail .item-row { margin: 0 0 var(--sp-4); }
    .item-detail .item-row img { width: 100%; max-width: 100%; margin: 0; object-fit: contain; }

    /* 手札感結構：分類內容最上方的引言區塊——裝訂孔暗示 + 襯線標題 + 虛線分隔，取代原本被隱藏的折疊標題 */
    .catalog-category-intro {
      display: flex; align-items: flex-start; gap: var(--sp-4);
      padding: var(--sp-2) 0 var(--sp-5) var(--sp-4);
      margin-bottom: var(--sp-5);
      border-bottom: 1px dashed var(--border);
      position: relative;
    }
    .catalog-category-intro::before {
      content: ''; position: absolute; left: 0; top: 2px; bottom: 16px; width: 2px;
      background-image: radial-gradient(circle, var(--border) 1.6px, transparent 1.7px);
      background-size: 100% 12px; background-repeat: repeat-y;
    }
    .catalog-category-intro-icon {
      width: 42px; height: 42px; border-radius: var(--radius-sm); flex-shrink: 0;
      display: flex; align-items: center; justify-content: center; font-size: var(--fs-xl);
      background: linear-gradient(135deg, var(--tag-bg), var(--bg2));
    }
    .catalog-category-intro-copy { display: flex; flex-direction: column; gap: 2px; }
    .catalog-category-intro-copy strong { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; color: var(--text); }
    .catalog-category-intro-copy small { font-size: var(--fs-xs); color: var(--sub); }

    .catalog-sheet-backdrop {
      position: fixed; inset: 0; z-index: 390; background: rgba(20,25,28,.48);
      opacity: 0; pointer-events: none; transition: opacity .25s;
    }
    .catalog-sheet-backdrop.open { opacity: 1; pointer-events: auto; }
    .catalog-sheet {
      position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
      max-width: 640px; height: 86vh; margin: 0 auto; background: var(--card);
      border-radius: var(--radius-lg) var(--radius-lg) 0 0;
      transform: translateY(100%); transition: transform .3s cubic-bezier(.25,.8,.35,1);
      box-shadow: 0 -8px 32px rgba(0,0,0,.22); display: flex; flex-direction: column;
    }
    .catalog-sheet.open { transform: translateY(0); }
    .catalog-sheet-handle { width: 42px; height: 5px; border-radius: 5px; background: #c7c7c7; margin: 9px auto 5px; }
    .catalog-sheet-close {
      position: absolute; right: 15px; top: 12px; width: 34px; height: 34px;
      border: 0; border-radius: 50%; background: rgba(0,0,0,.08); font-size: 24px; cursor: pointer;
    }
    .catalog-sheet-title {
      padding: var(--sp-5) 58px var(--sp-5) var(--sp-7); font-size: var(--fs-lg);
      font-weight: 800; color: #fff; background: linear-gradient(135deg, #2c5f6e, #1a3d4a);
    }
    .catalog-sheet-body { padding: var(--sp-6); overflow-y: auto; flex: 1; }
    .catalog-sheet-body > * { display: block !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; }
    .catalog-sheet-body .souvenir-brand { display: inline-block !important; }
    .catalog-sheet-body .catalog-square-info,
    .catalog-sheet-body .catalog-wide-info { padding: 0 !important; }
    .catalog-sheet-body .travel-sub-body { display: block !important; padding: 0; }
    .catalog-sheet-body .travel-sub-arrow { display: none; }

    /* v23：正方形圖文框詳情——圖片由上而下直式堆疊（3:5），不是左右滑動；
       橫式圖文框詳情——沿用左右滑動輪播（4:3）。兩者都做成貼齊螢幕左右兩側的全出血呈現，
       手法跟首頁 .trip-hero 的全出血一致：width:100% 配上左右負邊距抵銷 .catalog-sheet-body 的內距。 */
    .catalog-stacked-photos {
      display: grid; gap: 10px; width: 100%;
      margin: calc(-1 * var(--sp-6)) calc(-1 * var(--sp-6)) var(--sp-5);
    }
    .catalog-stacked-photo { width: 100%; aspect-ratio: 3 / 5; overflow: hidden; background: var(--bg2); }
    .catalog-stacked-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .catalog-stacked-fallback {
      width: 100%; aspect-ratio: 3 / 5; display: flex; align-items: center; justify-content: center;
      font-size: 3rem; background: var(--bg2);
      margin: calc(-1 * var(--sp-6)) calc(-1 * var(--sp-6)) var(--sp-5);
    }
    .catalog-sheet-body .photo-carousel {
      aspect-ratio: 4 / 3; height: auto; border-radius: 0;
      margin: calc(-1 * var(--sp-6)) calc(-1 * var(--sp-6)) var(--sp-5);
    }

    /* ===== 景點詳情 Sheet（由下往上彈出）===== */
    .sheet-backdrop {
      position: fixed; inset: 0;
      background: rgba(20,25,28,0.45);
      opacity: 0; pointer-events: none;
      transition: opacity .28s ease;
      z-index: 290;
    }
    .sheet-backdrop.open { opacity: 1; pointer-events: auto; }

    .spot-sheet {
      position: fixed; left: 0; right: 0; bottom: 0;
      max-width: 640px; margin: 0 auto;
      height: 88vh;
      background: var(--card);
      border-radius: var(--radius-lg) var(--radius-lg) 0 0;
      box-shadow: 0 -8px 32px rgba(0,0,0,0.22);
      transform: translateY(100%);
      transition: transform .32s cubic-bezier(.25,.8,.35,1);
      z-index: 300;
      display: flex; flex-direction: column;
      overflow: hidden;
    }
    .spot-sheet.open { transform: translateY(0); }

    .spot-sheet-handle-wrap {
      flex-shrink: 0;
      display: flex; justify-content: center;
      padding: var(--sp-3) 0 var(--sp-2);
      cursor: pointer;
    }
    .spot-sheet-handle {
      width: 40px; height: 4px;
      background: var(--border);
      border-radius: 2px;
    }
    .spot-sheet-close {
      position: absolute; top: var(--sp-5); right: var(--sp-5);
      width: 30px; height: 30px;
      border-radius: 50%;
      background: var(--bg2);
      border: none;
      display: flex; align-items: center; justify-content: center;
      color: var(--sub);
      cursor: pointer;
      z-index: 2;
    }
    .spot-sheet-close svg { width: 16px; height: 16px; }
    /* 景點名稱固定在彈層上方；標題框保留上、左、右框線，下緣與內容相連。 */
    .spot-sheet-hero {
      flex-shrink: 0;
      margin: 0 var(--sp-8);
      border: 1px solid var(--primary);
      border-bottom: 0;
      border-radius: var(--radius) var(--radius) 0 0;
      overflow: hidden;
      position: relative; z-index: 1;
    }
    .spot-sheet-scroll {
      flex: 1;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding: var(--sp-6) var(--sp-8) var(--sp-9);
    }
    @media (max-width: 380px) {
      .spot-sheet-hero { margin: 0 var(--sp-7); }
      .spot-sheet-scroll { padding: var(--sp-6) var(--sp-7) var(--sp-9); }
    }

    /* ===== 圖片放大燈箱（點擊景點照片可放大檢視，多張時可左右切換）===== */
    .img-lightbox {
      position: fixed; inset: 0;
      background: rgba(10,14,16,0.92);
      z-index: 400;
      display: none;
      align-items: center; justify-content: center;
      flex-direction: column;
    }
    .img-lightbox.open { display: flex; }
    .img-lightbox img {
      max-width: 92vw; max-height: 78vh;
      object-fit: contain;
      border-radius: var(--radius-sm);
    }
    .img-lightbox-close {
      position: absolute; top: var(--sp-8); right: var(--sp-8);
      width: 36px; height: 36px;
      border-radius: 50%;
      background: rgba(255,255,255,0.14);
      border: none; color: #fff;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
    }
    .img-lightbox-close svg { width: 18px; height: 18px; }
    .img-lightbox-nav {
      position: absolute; top: 50%; transform: translateY(-50%);
      width: 40px; height: 40px;
      border-radius: 50%;
      background: rgba(255,255,255,0.14);
      border: none; color: #fff;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
    }
    .img-lightbox-nav svg { width: 20px; height: 20px; }
    .img-lightbox-prev { left: var(--sp-6); }
    .img-lightbox-next { right: var(--sp-6); }
    .img-lightbox-counter {
      margin-top: var(--sp-5);
      color: rgba(255,255,255,0.75);
      font-size: var(--fs-xs);
      letter-spacing: 1px;
    }

    /* ══════════════════════════════════════════════════════════════
       v15「北歐旅行誌」改造（2026-07-25）
       1. 總覽「完整行程」改垂直時間軸（含章節配色、今日發光、過期淡化）
       2. 國家分隔升級為 Chapter 章節卡
       3. 航班資訊卡加「飛行路線條」
       4. 滾動進場動畫 + 折疊展開過渡
       資料檔完全不動，只改呈現層。
       ══════════════════════════════════════════════════════════════ */

    /* ── 1. 總覽時間軸：每一列自己畫屬於自己的那一段線，
           章節交界（冰島藍 → 芬蘭暖金）的顏色轉換才對得齊 ── */
    .ov-timeline { position: relative; }
    .ov-tl-row { display: flex; align-items: stretch; position: relative; }
    .ov-tl-row::before {
      content: '';
      position: absolute; left: 14px; top: 0; bottom: 0;
      width: 2px;
      background: var(--accent-soft);
    }
    .ov-tl-row.ov-ch-2::before { background: #dcc3a0; }
    .ov-tl-row:first-child::before { top: 50%; }
    .ov-tl-row:last-child::before { bottom: 50%; }

    .ov-tl-node {
      width: 30px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      position: relative; z-index: 1;
    }
    .ov-tl-dot {
      width: 12px; height: 12px; border-radius: 50%;
      background: var(--accent);
      border: 2px solid var(--bg);
      box-shadow: 0 1px 4px rgba(44,95,110,0.25);
    }
    .ov-tl-row.ov-ch-0 .ov-tl-dot { background: #8a9aa3; }
    .ov-tl-row.ov-ch-2 .ov-tl-dot { background: var(--accent-warm); }
    .ov-tl-row .day-card { flex: 1; min-width: 0; }

    /* 今天：圓點放大 + 柔光圈，卡片微微浮起 */
    .ov-tl-row.is-today .ov-tl-dot {
      width: 16px; height: 16px;
      box-shadow: 0 0 0 5px rgba(74,143,163,0.22), 0 1px 6px rgba(44,95,110,0.35);
    }
    .ov-tl-row.is-today .day-card { box-shadow: 0 6px 18px rgba(44,95,110,0.22); }
    /* 已過去的日子：整列淡化，圓點變空心 */
    .ov-tl-row.is-past { opacity: 0.55; }
    .ov-tl-row.is-past .ov-tl-dot { background: var(--bg); border-color: var(--accent-soft); }
    .ov-tl-row.is-past.ov-ch-2 .ov-tl-dot { border-color: #dcc3a0; }

    /* ── 2. 章節卡：菱形節點 + 漸層卡片，章節色跟著國家走 ── */
    .ov-tl-diamond {
      width: 11px; height: 11px; border-radius: 2px;
      transform: rotate(45deg);
      background: var(--accent-soft);
      border: 2px solid var(--bg);
    }
    .ov-tl-row.ov-ch-2 .ov-tl-diamond { background: #dcc3a0; }
    .chapter-card {
      flex: 1; min-width: 0;
      /* v22：底部間距從 sp-5(12px) 加大到 sp-9(24px)——道理跟 overview-section-title 一樣，
         章節卡後面第一張日卡（10/4、10/9）的徽章會探出卡片上緣 12px，原本間距不夠留白 */
      margin: var(--sp-5) 0 var(--sp-9);
      padding: var(--sp-4) var(--sp-6);
      border-radius: var(--radius);
      border: 1px solid #c3d8de;
      background: linear-gradient(135deg, #e8f2f5 0%, var(--bg) 100%);
      /* v20：橫排書籤式——「Chapter N」小字與國名同一列，高度壓縮 */
      display: flex; align-items: center; gap: var(--sp-4);
    }
    .ov-tl-row.ov-ch-2 .chapter-card {
      border-color: #e0cdb0;
      background: linear-gradient(135deg, #f5ead9 0%, var(--bg) 100%);
    }
    .chapter-eyebrow {
      font-size: var(--fs-2xs); font-weight: 700;
      letter-spacing: 2.5px; text-transform: uppercase;
      color: var(--accent);
    }
    .ov-tl-row.ov-ch-2 .chapter-eyebrow { color: var(--accent-warm); }
    .chapter-title {
      margin-top: 0;
      font-family: var(--font-display);
      font-size: var(--fs-lg); font-weight: 700;
      color: var(--primary);
    }

    /* ── 3. 飛行路線條：航點 ─✈─ 航點，時間標在代碼下方 ── */
    .flight-strip {
      display: flex; align-items: center;
      margin: var(--sp-2) 0 var(--sp-7);
      padding: 0 var(--sp-1);
    }
    .fs-point { flex-shrink: 0; width: 54px; text-align: center; }
    .fs-code { font-size: var(--fs-sm); font-weight: 800; letter-spacing: 1.5px; color: var(--primary); }
    .fs-time { margin-top: 2px; font-size: var(--fs-2xs); color: var(--sub); }
    .fs-leg { flex: 1; min-width: 34px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
    .fs-leg-mid {
      position: relative; width: 100%; height: 18px;
      display: flex; align-items: center; justify-content: center;
    }
    .fs-leg-mid::before {
      content: '';
      position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
      background-image: linear-gradient(90deg, var(--accent-soft) 55%, transparent 0);
      background-size: 9px 2px; background-repeat: repeat-x;
    }
    .fs-plane { position: relative; z-index: 1; padding: 0 5px; background: var(--card); font-size: 13px; }
    .fs-dur { font-size: var(--fs-2xs); color: var(--sub); white-space: nowrap; }

    /* ── 4a. 滾動進場動畫：向上滑入 + 淡入 ── */
    .reveal {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.45s ease, transform 0.45s ease;
    }
    .reveal.reveal-in { opacity: 1; transform: none; }

    /* ── 4b. 折疊展開過渡：展開時輕輕落下，取代直接跳開 ── */
    .travel-collapse-body.open,
    .flight-collapse-body.open { animation: collapseReveal 0.28s ease; }
    @keyframes collapseReveal {
      from { opacity: 0; transform: translateY(-8px); }
      to   { opacity: 1; transform: none; }
    }

    /* 系統設定「減少動態效果」時，所有進場/展開動畫直接關閉 */
    @media (prefers-reduced-motion: reduce) {
      .reveal { opacity: 1 !important; transform: none !important; transition: none; }
      .travel-collapse-body.open,
      .flight-collapse-body.open { animation: none; }
    }

    /* ══════════════════════════════════════════════════════════════
       v16 首屏「雜誌封面」改造（2026-07-25）
       問題：hero 上方還有一個顯示「同一張封面圖」的地圖輪播，
             兩個相似圖框疊在一起，第一眼沒有重點。
       做法：hero 全出血放大 + 緩慢推進鏡頭；今日卡上疊 hero 下緣；
             地圖輪播搬到今日卡之後、壓成 21:9 橫幅，角色分開。
       ══════════════════════════════════════════════════════════════ */

    /* Hero 左右全出血、上緣貼齊日期選單列；底部圓角跟今日卡銜接。
       v20：高度縮小約 20%（64vh→51vh、520px→416px），封面不佔滿首屏，
       今日卡與「完整行程」標題在首屏就能完整露出，不再被底部導覽列遮住。 */
    .trip-hero {
      margin: calc(-1 * var(--sp-6)) calc(-1 * var(--sp-6)) 0;
      border-radius: 0 0 var(--radius-lg) var(--radius-lg);
      height: min(51vh, 416px);
    }
    /* 緩慢推進鏡頭（Ken Burns），靜態封面也有呼吸感 */
    .trip-hero-bg img { animation: heroDrift 22s ease-in-out infinite alternate; }
    @keyframes heroDrift {
      from { transform: scale(1) translateY(0); }
      to   { transform: scale(1.08) translateY(-2%); }
    }
    /* 標題再放大一級，封面感 */
    .trip-hero-title { font-size: var(--fs-4xl); letter-spacing: 0.02em; }
    .hero-title-sub { font-size: var(--fs-lg); font-weight: 800; }
    .hero-sub-tag { padding: 6px 16px; border-radius: 7px; }
    .trip-hero-dates { font-size: var(--fs-sm); }

    /* 今日卡向上疊住 hero 下緣，做出前後層次；hero 文字往下讓位 */
    .trip-hero-content { padding-bottom: 64px; }
    .now-dashboard {
      position: relative; z-index: 3;
      margin: -44px var(--sp-2) var(--sp-9);
    }

    /* 地圖輪播（已搬到今日卡之後）：壓成 21:9 橫幅 + 卡片框，
       視覺上變成「路線橫幅」，不再是第二個 hero */
    #itinMapScrollOverview {
      margin: 0 0 var(--sp-8);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: 0 4px 14px rgba(44,95,110,0.12);
    }
    #itinMapScrollOverview .photo-carousel { aspect-ratio: 21 / 9; }

    @media (prefers-reduced-motion: reduce) {
      .trip-hero-bg img { animation: none; }
    }

    /* ══════════════════════════════════════════════════════════════
       v17 今日卡「明信片化」（2026-07-25）
       從綠色漸層儀表板改成白卡：狀態 + 標題 + 兩行摘要 + 進度環 + 實心主按鈕；
       下一站/住宿/提醒移到卡片下方獨立資訊區（.now-details）。
       ══════════════════════════════════════════════════════════════ */
    .now-dashboard {
      background: var(--card);
      border: 1px solid var(--border-light);
      box-shadow: 0 10px 26px rgba(44,95,110,0.14);
      padding: var(--sp-7) var(--sp-7) var(--sp-6);
    }
    .now-top { display: flex; gap: var(--sp-5); align-items: flex-start; }
    .now-top-text { flex: 1; min-width: 0; }
    /* 摘要最多兩行，卡片保持輕盈；完整摘要在每日詳情裡都有 */
    .now-intro {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    /* 旅程進度環 */
    .now-progress { position: relative; width: 52px; height: 52px; flex-shrink: 0; }
    .now-progress svg { width: 100%; height: 100%; transform: rotate(-90deg); }
    .np-track { fill: none; stroke: #dce9e5; stroke-width: 4; }
    .np-fill  { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
    .np-num {
      position: absolute; inset: 0;
      display: flex; align-items: center; justify-content: center;
      font-size: var(--fs-2xs); font-weight: 800; color: var(--primary);
    }
    /* 主按鈕改實心，成為首屏第一行動焦點 */
    .now-primary-btn {
      background: var(--primary);
      color: #fff;
      border: none;
      box-shadow: 0 4px 12px rgba(63,110,122,0.3);
    }
    .now-primary-btn:active { transform: scale(0.98); }

    /* 卡片下方獨立資訊區：下一站/住宿/提醒 */
    .now-details { margin: 0 var(--sp-2) var(--sp-9); }
    .now-details .now-info-grid { margin-top: 0; }
    .now-details .now-reminders { margin-top: var(--sp-3); }



/* ===== 費用頁：即時換算、編輯、結算建議 ===== */

/* 金額欄位下方的即時換算：打字當下就看到等值基準幣與每人分帳金額 */
.amount-preview {
  display: none;
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--primary);
  font-weight: 600;
  letter-spacing: .2px;
}
.amount-preview.show { display: block; }

/* 編輯模式：表單卡片加上明顯邊框，避免誤以為是在新增 */
.budget-card.editing { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(63,110,122,.12); }
.edit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-5);
  background: var(--warn-bg, #fdf6e3);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text);
}
.edit-cancel {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-2xs);
  color: var(--sub);
  cursor: pointer;
}
.edit-cancel:hover { color: var(--text); border-color: var(--sub); }

/* 消費項目：編輯／刪除兩顆按鈕並排 */
.ei-actions { display: flex; gap: var(--sp-2); }
.ei-edit {
  font-size: var(--fs-xs);
  color: var(--primary);
  cursor: pointer;
  padding: var(--sp-1) var(--sp-2);
  background: none;
  border: none;
}
.expense-item.editing { outline: 2px solid var(--accent); outline-offset: -2px; }
/* 還沒同步到雲端的記錄標記，讓人知道這筆目前只在自己手機上 */
.ei-pending { margin-left: var(--sp-2); font-size: var(--fs-2xs); opacity: .7; }

/* 儲存鍵下方的「最近 3 筆」：存完立刻確認記對了 */
.recent-list:empty { display: none; }
.recent-list { margin-top: calc(var(--sp-5) * -1); margin-bottom: var(--sp-6); }
.recent-title {
  font-size: var(--fs-2xs);
  color: var(--sub);
  font-weight: 700;
  letter-spacing: 1px;
  padding: var(--sp-4) var(--sp-2) var(--sp-2);
}

/* 結算建議：誰付給誰多少 */
.settle-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-2);
  border-bottom: 1px solid var(--bg2);
  font-size: var(--fs-sm);
}
.settle-row:last-child { border-bottom: none; }
.settle-from { font-weight: 700; color: var(--danger); }
.settle-arrow { color: var(--sub); }
.settle-to { font-weight: 700; color: var(--success); }
.settle-amt { margin-left: auto; font-weight: 700; color: var(--primary); }
.settle-empty { text-align: center; color: var(--sub); padding: var(--sp-6); font-size: var(--fs-sm); }

.export-btn {
  width: 100%;
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  color: var(--sub);
  cursor: pointer;
}
.export-btn:hover { color: var(--text); border-color: var(--sub); }

/* 儲存鍵的成功回饋。手機上鍵盤會蓋住畫面底部的 toast，
   按鈕就在拇指下方，這裡的變化一定看得到。 */
.save-btn.saved {
  background: var(--success);
  color: #fff;
  opacity: 1;
}
.save-btn:disabled { cursor: default; }

/* toast 改用 visualViewport 的實際底邊，避免被手機鍵盤遮住 */
.toast { bottom: calc(var(--nav-h) + 16px + var(--kb-offset, 0px)); }

/* 雲端重複記錄的清理入口。只有偵測到重複時才出現。 */
.cloud-cleanup {
  background: var(--warn-bg);
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-6);
}
.cloud-cleanup .cc-msg { font-size: var(--fs-sm); color: var(--text); line-height: 1.7; }
.cloud-cleanup .cc-btn {
  width: 100%;
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
}
