/* =========================================================
 * 色系：沿用首頁設計稿
 *  主色 深海藍（標題/導覽）＋ 暖米白底
 *  天數色：一日=橘、二日=藍、三日=綠、多日=紅（全站一致）
 *  功能色：客製=橘、專欄=湖水綠、價格=紅、LINE=官方綠
 * ========================================================= */
:root {
  --navy: #13305f;
  --blue: #1565c0;
  --blue-50: #e8f1fc;
  --sky: #dcecfb;
  --orange: #f47a1f;
  --orange-50: #fff1e5;
  --green: #2e9e57;
  --green-50: #e6f5ec;
  --red: #e5484d;
  --red-50: #fdeced;
  --teal: #11968f;
  --teal-50: #e2f4f2;
  --price: #e0262b;
  --line: #06c755;

  --bg: #f7f3ea;
  --card: #fffdf8;
  --ink: #1d2433;
  --ink-2: #4b5567;
  --ink-3: #8a93a3;
  --rule: #e7e1d4;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 6px 18px rgba(19, 48, 95, .10), 0 1px 3px rgba(19, 48, 95, .08);
  --shadow-lg: 0 14px 40px rgba(19, 48, 95, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 64px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* 天數色主題 */
.c-orange { --accent: var(--orange); --accent-50: var(--orange-50); }
.c-blue   { --accent: var(--blue);   --accent-50: var(--blue-50); }
.c-green  { --accent: var(--green);  --accent-50: var(--green-50); }
.c-red    { --accent: var(--red);    --accent-50: var(--red-50); }

/* ---------------- Header / Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #bfe3fb 0%, #e3f3fd 48%, rgba(255,255,255,0) 100%);
}
.hero-scene { position: absolute; inset: auto 0 0 0; height: 70%; pointer-events: none; }
.hero-scene svg { width: 100%; height: 100%; display: block; }
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 16px 26px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}
.hero.compact .hero-inner { padding-bottom: 14px; }
.logo-tw { width: 68px; height: 98px; flex: none; overflow: visible; }
.logo-tw .sun { transform-origin: 50px 12px; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-title { text-align: center; min-width: 0; }
.hero-title h1 {
  margin: 0;
  white-space: nowrap;
  font-size: clamp(19px, 5.6vw, 40px);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.2;
  color: var(--navy);
}
.hero-title h1 .fam {
  color: var(--orange);
  background: linear-gradient(transparent 72%, #ffd54a 72%, #ffd54a 90%, transparent 90%);
}
.hero-title p {
  margin: 4px 0 0;
  white-space: nowrap;
  font-size: clamp(16px, 4.8vw, 30px);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: .04em;
}
.hero-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--navy);
  position: relative;
  transition: background .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.6); }
.icon-btn svg { width: 26px; height: 26px; }
.icon-btn .badge {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  transform: scale(0); transition: transform .3s var(--ease);
}
.icon-btn .badge.on { transform: scale(1); }
.hero-actions .sep { width: 1px; height: 30px; background: rgba(19,48,95,.25); }
.back-btn { display: none; }
.hero.compact .back-btn { display: grid; }
.hero.compact .hero-title h1 { font-size: clamp(16px, 4.6vw, 30px); }
.hero.compact .hero-title p { font-size: clamp(15px, 4.4vw, 26px); }
.hero.compact .logo-tw { width: 40px; height: 60px; }
@media (max-width: 480px) {
  .hero.compact .logo-link { display: none; }
  .hero-inner { gap: 4px; padding-left: 10px; padding-right: 8px; }
  .icon-btn { width: 40px; height: 40px; }
  .logo-tw { width: 52px; height: 76px; }
}

/* ---------------- Home: category grid ---------------- */
.home-main { position: relative; margin-top: -6px; padding-bottom: 32px; }
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.cat-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px 6px 0;
  text-align: left;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  overflow: hidden;
  opacity: 0; transform: translateY(16px);
  animation: rise .6s var(--ease) forwards;
}
.cat-card:nth-child(2) { animation-delay: .06s; }
.cat-card:nth-child(3) { animation-delay: .12s; }
.cat-card:nth-child(4) { animation-delay: .18s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-card:active { transform: scale(.98); }
.cat-card .ph {
  border-radius: 14px 14px 10px 10px;
  overflow: hidden;
  aspect-ratio: 2 / 1;
}
.cat-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-card:hover .ph img { transform: scale(1.06); }
.cat-card .row {
  display: flex; align-items: center; gap: 8px;
  padding: 0 6px 12px;
  margin-top: -22px;
  position: relative;
}
.cat-ico {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  border: 4px solid var(--card);
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.cat-ico svg { width: 28px; height: 28px; }
.cat-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  font-size: clamp(19px, 5vw, 28px);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: .06em;
  padding-top: 30px;
  line-height: 1.1;
  position: relative;
}
.cat-name::after {
  content: "";
  display: block;
  height: 4px; width: 82%;
  margin-top: 6px;
  border-radius: 4px;
  background: var(--accent);
}
.cat-count { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-top: 4px; }
@media (max-width: 480px) {
  .cat-card .row { gap: 6px; padding: 0 2px 10px; }
  .cat-ico { width: 48px; height: 48px; border-width: 3px; }
  .cat-ico svg { width: 24px; height: 24px; }
  .cat-card .chev { width: 26px; height: 26px; }
  .cat-name::after { width: 100%; }
}
.chev {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-50);
  color: var(--accent);
  display: grid; place-items: center;
  margin-top: 30px;
  transition: transform .3s var(--ease);
}
.chev svg { width: 16px; height: 16px; }
.cat-card:hover .chev { transform: translateX(3px); }

/* Feature banners */
.feature-row { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 900px) { .feature-row { grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; } }
.feature {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 112px;
  padding: 14px 56px 14px 18px;
  border-radius: var(--radius);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature:active { transform: scale(.985); }
.feature.custom { background: linear-gradient(100deg, #f26a10, #ff9a3c); }
.feature.column { background: linear-gradient(100deg, #0e8a84, #22b3a6); }
.feature .art { flex: none; width: 92px; height: 80px; }
.feature .txt b { display: block; font-size: clamp(24px, 6.6vw, 34px); font-weight: 900; letter-spacing: .1em; text-shadow: 0 2px 0 rgba(0,0,0,.12); }
.feature .txt span { font-size: 13px; opacity: .92; }
.feature .go {
  position: absolute; right: 14px; bottom: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; color: var(--navy);
  display: grid; place-items: center;
}
.feature .go svg { width: 16px; height: 16px; }
.feature .trail { position: absolute; right: 40px; top: 10px; width: 120px; height: 80px; opacity: .45; }

/* Info panel & footer */
.info-panel {
  margin-top: 16px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px 14px 16px;
}
.info-links { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); }
.info-links button, .info-links a {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 4px;
  font-size: 15px; font-weight: 500;
  border-radius: 10px;
  transition: background .2s, color .2s;
}
.info-links > * + * { border-left: 1px solid var(--rule); border-radius: 0; }
.info-links button:hover, .info-links a:hover { color: var(--blue); background: var(--blue-50); }
.info-links svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 480px) { .info-links button, .info-links a { font-size: 14px; gap: 4px; flex-direction: column; padding: 10px 2px; } }
.home-main { padding-bottom: 96px; }
.company { text-align: center; padding-top: 12px; }
.company h3 { margin: 0 0 8px; font-size: 18px; font-weight: 900; letter-spacing: .06em; }
.company dl {
  margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px;
  text-align: left; font-size: 14px; color: var(--ink-2);
}
.company dl div { display: flex; align-items: center; gap: 6px; min-width: 0; }
.company dl div.full { grid-column: 1 / -1; }
.company dl svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); }
.company dl a { color: var(--blue); }
@media (max-width: 400px) { .company dl { grid-template-columns: 1fr; } }
.badges {
  list-style: none; margin: 14px 0 0; padding: 14px 0 0;
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px; align-items: end;
}
.badges a, .badges li > div {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; line-height: 1.35; color: var(--ink-3); text-decoration: none; text-align: center;
}
.badges a:hover span { color: var(--blue); text-decoration: underline; }
.badges img { height: 44px; width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 480px) { .badges { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- List page ---------------- */
.sticky-nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247, 243, 234, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 0;
  transition: box-shadow .25s;
}
.sticky-nav.stuck { box-shadow: 0 6px 16px rgba(19,48,95,.10); }
.day-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.day-tab {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 48px;
  border-radius: 14px;
  background: var(--card);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(19,48,95,.08);
  font-weight: 700; font-size: 16px;
  color: var(--navy);
  transition: background .25s, color .25s, transform .2s;
}
.day-tab svg { width: 22px; height: 22px; color: var(--navy); transition: color .25s; }
.day-tab[aria-selected="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.day-tab[aria-selected="true"] svg { color: #fff; }
.day-tab:active { transform: scale(.96); }
@media (max-width: 420px) { .day-tab { font-size: 14px; gap: 3px; } .day-tab svg { width: 18px; height: 18px; } }

.pill-bar {
  position: relative;
  display: flex;
  margin-top: 8px;
  padding: 5px;
  gap: 2px;
  background: var(--card);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(19,48,95,.08);
  overflow-x: auto;
  scrollbar-width: none;
}
.pill-bar::-webkit-scrollbar { display: none; }
.pill-bar .ink {
  position: absolute; top: 5px; bottom: 5px; left: 0;
  border-radius: 999px;
  background: var(--blue);
  transition: transform .35s var(--ease), width .35s var(--ease);
  z-index: 0;
}
.pill {
  position: relative; z-index: 1;
  flex: 1 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700; font-size: 15px;
  white-space: nowrap;
  color: var(--navy);
  transition: color .25s;
}
.pill[aria-selected="true"] { color: #fff; }
.pill .n { font-size: 11px; font-weight: 700; margin-left: 4px; opacity: .7; }
.pill.empty { color: var(--ink-3); }
.pill.empty[aria-selected="true"] { color: #fff; }

.dep-section { padding-top: 18px; scroll-margin-top: 130px; }
.dep-head {
  position: relative;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--sky);
  display: grid; place-items: center;
  overflow: hidden;
}
.dep-section:nth-child(even) .dep-head { background: #d9efe3; }
.dep-head h2 { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: .08em; color: var(--ink); }
.dep-head svg { position: absolute; right: 28px; bottom: 6px; width: 70px; height: 46px; color: #8fb6e3; }
.dep-section:nth-child(even) .dep-head svg { color: #8ccaa6; }

.region-bar { margin-top: 10px; }
.region-bar .ink { background: var(--blue); }

.carousel-wrap { position: relative; margin-top: 12px; }
.carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  padding: 4px 16px 14px;
  margin: 0 -16px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carousel::-webkit-scrollbar { display: none; }
.trip-card {
  flex: 0 0 82%;
  max-width: 380px;
  scroll-snap-align: start;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-align: left;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  animation: rise .5s var(--ease) both;
}
@media (min-width: 700px) { .trip-card { flex-basis: 46%; } }
@media (min-width: 1000px) { .trip-card { flex-basis: calc((100% - 28px) / 3); } }
.trip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.trip-card .ph { position: relative; margin: 6px 6px 0; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--sky); }
.trip-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.trip-card:hover .ph img { transform: scale(1.05); }
.trip-card .tags { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.tag {
  font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--navy);
}
.fav {
  position: absolute; top: 8px; right: 8px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: grid; place-items: center;
  color: var(--ink-3);
  transition: transform .2s, color .2s;
  z-index: 2;
}
.fav svg { width: 20px; height: 20px; }
.fav[aria-pressed="true"] { color: var(--red); }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.fav.pop { animation: pop .4s var(--ease); }
@keyframes pop { 40% { transform: scale(1.35); } }
.trip-card .body { padding: 12px 16px 0; flex: 1; }
.trip-card h3 { margin: 0; font-size: 19px; font-weight: 900; line-height: 1.35; }
.trip-card p {
  margin: 6px 0 0; color: var(--ink-2); font-size: 15px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.trip-card .foot {
  display: flex; align-items: center; justify-content: space-between;
  margin: 12px 6px 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fbf2e4;
}
.code { font-size: 14px; color: var(--ink-2); }
.price { color: var(--price); font-weight: 900; font-size: 26px; line-height: 1; display: flex; align-items: baseline; gap: 2px; }
.price small { font-size: 13px; font-weight: 700; }
.price .tagico { width: 22px; height: 22px; color: var(--orange); align-self: center; margin-right: 4px; }

.car-btn {
  position: absolute; top: 38%;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff3e6; color: var(--orange);
  box-shadow: var(--shadow);
  display: grid; place-items: center;
  z-index: 3;
  transition: opacity .25s, transform .2s;
}
.car-btn svg { width: 22px; height: 22px; }
.car-btn.next { right: -6px; }
.car-btn.prev { left: -6px; }
.car-btn[hidden] { display: grid; opacity: 0; pointer-events: none; }
.car-btn:active { transform: scale(.9); }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: -4px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: #d5cdbd; transition: width .3s var(--ease), background .3s; }
.dots i.on { width: 18px; background: var(--orange); }

.empty-card {
  display: flex; align-items: center; gap: 14px;
  margin-top: 12px;
  padding: 18px;
  border-radius: var(--radius);
  border: 2px dashed #d8cfbd;
  background: rgba(255,255,255,.5);
}
.empty-card svg { width: 44px; height: 44px; flex: none; color: var(--orange); }
.empty-card b { display: block; font-size: 16px; }
.empty-card span { font-size: 14px; color: var(--ink-2); }
.empty-card .btn { margin-left: auto; flex: none; }
@media (max-width: 520px) {
  .empty-card { flex-wrap: wrap; }
  .empty-card > div { flex: 1 1 calc(100% - 60px); }
  .empty-card .btn { width: 100%; margin: 0; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px; padding: 0 18px;
  border-radius: 999px;
  font-weight: 700; font-size: 15px;
  transition: transform .15s, filter .2s, background .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-line { background: var(--line); color: #fff; }
.btn-ghost { background: var(--blue-50); color: var(--blue); }
.btn-outline { border: 2px solid var(--rule); background: var(--card); color: var(--ink); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }

/* ---------------- Floating LINE ---------------- */
.fab-line {
  position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 40;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--line); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(6,199,85,.45);
  transition: transform .3s var(--ease), bottom .3s var(--ease);
}
.fab-line svg { width: 34px; height: 34px; }
.fab-line::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--line); opacity: 0;
  animation: ripple 2.6s ease-out infinite;
}
@keyframes ripple { 0% { transform: scale(.85); opacity: .7; } 70%, 100% { transform: scale(1.3); opacity: 0; } }
.fab-line:hover { transform: scale(1.06); }
body.has-bar .fab-line, body.no-fab .fab-line { transform: scale(0); pointer-events: none; }
.fab-top {
  position: fixed; right: 26px; bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 39;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--card); color: var(--navy);
  box-shadow: var(--shadow);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.fab-top svg { width: 20px; height: 20px; }
.fab-top.on { opacity: 1; transform: none; pointer-events: auto; }
body.has-bar .fab-top { bottom: calc(86px + env(safe-area-inset-bottom)); }
body.no-fab .fab-top { bottom: calc(18px + env(safe-area-inset-bottom)); }

/* ---------------- Drawer & Sheet ---------------- */
.scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(13, 24, 44, .45);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(86vw, 340px);
  background: var(--card);
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.drawer.on { transform: none; }
/* 關閉後完全隱藏、不接收點擊（等關閉動畫跑完才隱藏），否則看不見的視窗會擋住底下的按鈕 */
.drawer, .sheet { visibility: hidden; pointer-events: none; }
.drawer { transition: transform .4s var(--ease), visibility 0s linear .4s; }
.sheet { transition: transform .42s var(--ease), visibility 0s linear .42s; }
.drawer.on, .sheet.on { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 8px 20px; }
.drawer-head b { font-size: 18px; font-weight: 900; color: var(--navy); }
.drawer nav { padding: 4px 10px; overflow-y: auto; flex: 1; }
.drawer .grp { font-size: 12px; color: var(--ink-3); font-weight: 700; padding: 14px 12px 4px; letter-spacing: .1em; }
.drawer nav a, .drawer nav button {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 12px; border-radius: 12px;
  font-size: 16px; font-weight: 500; text-align: left;
  transition: background .2s;
}
.drawer nav a:hover, .drawer nav button:hover { background: var(--blue-50); }
.drawer nav .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.drawer nav svg { width: 22px; height: 22px; color: var(--ink-2); flex: none; }
.drawer-foot { padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); display: grid; gap: 8px; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  max-height: 88vh;
  background: var(--card);
  border-radius: 22px 22px 0 0;
  transform: translateY(105%);
  transition: transform .42s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  max-width: 640px; margin: 0 auto;
}
.sheet.on { transform: none; }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: #d8d0c0; margin: 10px auto 2px; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 6px 20px; flex: none; }
.sheet-head h3 { margin: 0; font-size: 19px; font-weight: 900; }
.sheet-body { padding: 6px 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; }
@media (min-width: 700px) {
  .sheet { bottom: 50%; border-radius: 22px; transform: translateY(60%) scale(.96); opacity: 0; transition: transform .35s var(--ease), opacity .25s, visibility 0s linear .35s; width: 92%; }
  .sheet.on { transform: translateY(50%); opacity: 1; transition-delay: 0s; }
}

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 6px 0 14px; font-size: 15px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 500; }
.copy-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--blue-50);
  font-size: 20px; font-weight: 900; letter-spacing: .06em; color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.note { font-size: 13px; color: var(--ink-3); margin: 10px 0 0; }
.map-frame { width: 100%; aspect-ratio: 16/10; border: 0; border-radius: 14px; background: var(--sky); }
.dl-item { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--rule); margin-bottom: 10px; }
.dl-item svg { width: 34px; height: 34px; color: var(--blue); flex: none; }
.dl-item div { flex: 1; min-width: 0; }
.dl-item b { display: block; }
.dl-item span { font-size: 13px; color: var(--ink-3); }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 80;
  transform: translate(-50%, 20px);
  background: rgba(19, 30, 50, .92); color: #fff;
  padding: 11px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .3s var(--ease);
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- Detail page ---------------- */
.gallery { position: relative; background: #0d1a2d; }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
  aspect-ratio: 16 / 10; max-height: 520px;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
@media (min-width: 900px) {
  .gallery-track { aspect-ratio: auto; height: 400px; gap: 4px; }
  .gallery-track img { flex-basis: calc((100% - 8px) / 3); scroll-snap-align: start; }
}
.gallery .count {
  position: absolute; right: 14px; bottom: 30px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 13px; padding: 3px 10px; border-radius: 999px;
}
.gallery .g-back, .gallery .g-fav {
  position: absolute; top: 12px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--navy);
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.gallery .g-back { left: 12px; }
.gallery .g-fav { right: 12px; color: var(--ink-3); }
.gallery .g-fav[aria-pressed="true"] { color: var(--red); }
.gallery .g-fav[aria-pressed="true"] svg { fill: currentColor; }
.gallery svg { width: 22px; height: 22px; }
.thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 16px 0; }
.thumbs button { flex: none; width: 64px; height: 44px; border-radius: 8px; overflow: hidden; opacity: .55; outline: 2px solid transparent; transition: opacity .2s, outline-color .2s; }
.thumbs button.on { opacity: 1; outline-color: var(--orange); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.d-head {
  position: relative;
  margin: -22px 0 0;
  background: var(--card);
  border-radius: 22px 22px 0 0;
  padding: 18px 16px 6px;
  z-index: 2;
}
@media (min-width: 900px) { .d-head { border-radius: 22px; margin-top: -40px; box-shadow: var(--shadow); padding: 22px 26px 14px; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  background: var(--blue-50); color: var(--blue);
}
.chip.acc { background: var(--accent-50); color: var(--accent); }
.d-head h1 { margin: 10px 0 4px; font-size: clamp(22px, 5.6vw, 32px); font-weight: 900; line-height: 1.3; }
.d-sub { color: var(--ink-2); margin: 0; }
.d-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--rule); }
.d-meta .price { font-size: 32px; }

.d-tabs {
  position: sticky; top: 0; z-index: 25;
  background: rgba(255, 253, 248, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.d-tabs .in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; position: relative; }
.d-tabs button {
  flex: 1 0 auto; padding: 13px 12px;
  font-weight: 700; font-size: 15px; color: var(--ink-3);
  transition: color .2s;
}
.d-tabs button.on { color: var(--navy); }
.d-tabs .bar { position: absolute; bottom: 0; left: 0; height: 3px; border-radius: 3px; background: var(--orange); transition: transform .35s var(--ease), width .35s var(--ease); }

.d-sec { padding: 24px 0 8px; scroll-margin-top: 56px; }
.d-sec > h2 {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 14px; font-size: 21px; font-weight: 900; color: var(--navy);
}
.d-sec > h2::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--orange); }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.hl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hl li { display: flex; gap: 10px; align-items: flex-start; }
.hl li svg { width: 22px; height: 22px; flex: none; color: var(--green); margin-top: 1px; }
.suit { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rule); align-items: center; font-size: 14px; color: var(--ink-3); }

.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 22px 74px; }
.timeline li::before {
  content: ""; position: absolute; left: 61px; top: 22px; bottom: -4px;
  width: 2px; background: repeating-linear-gradient(var(--rule) 0 6px, transparent 6px 10px);
}
.timeline li:last-child::before { display: none; }
.timeline .t {
  position: absolute; left: 0; top: 2px;
  width: 52px; text-align: right;
  font-weight: 900; font-size: 14px; color: var(--price);
  font-variant-numeric: tabular-nums;
}
.timeline .pt {
  position: absolute; left: 55px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--orange);
}
.timeline h3 { margin: 0; font-size: 17px; font-weight: 900; }
.timeline p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.timeline img { margin-top: 10px; border-radius: 12px; width: 100%; max-width: 460px; aspect-ratio: 16/9; object-fit: cover; }
.meals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.meal { background: var(--orange-50); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.meal b { display: block; color: var(--orange); font-size: 13px; }
@media (max-width: 520px) { .meals { grid-template-columns: 1fr; } .meal { display: flex; gap: 10px; } .meal b { flex: none; } }

/* Calculator */
.calc { display: grid; gap: 16px; }
@media (min-width: 900px) { .calc { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #efe9dc; gap: 2px; flex-wrap: wrap; }
.seg button { padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-2); transition: background .2s, color .2s, box-shadow .2s; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--navy); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.seg button:disabled { opacity: .4; cursor: not-allowed; }
.field-lbl { font-size: 13px; font-weight: 700; color: var(--ink-3); margin: 0 0 6px; letter-spacing: .04em; }
.ctl-group + .ctl-group { margin-top: 14px; }
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.stepper-row:last-child { border-bottom: 0; }
.stepper-row .lb { font-weight: 500; font-size: 15px; }
.stepper-row .lb small { display: block; color: var(--ink-3); font-size: 12px; }
.stepper { display: flex; align-items: center; gap: 2px; background: #f2ede2; border-radius: 999px; padding: 3px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; background: var(--card); color: var(--navy); font-size: 20px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.stepper button:disabled { opacity: .35; }
.stepper input { width: 48px; text-align: center; border: 0; background: none; font: inherit; font-weight: 900; font-size: 17px; color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.result { background: linear-gradient(160deg, #13305f, #1d4f94); color: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-lg); position: sticky; top: 64px; }
.result .big { font-size: 38px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.result .big small { font-size: 15px; font-weight: 500; opacity: .8; }
.result .avg { margin-top: 4px; opacity: .85; font-size: 14px; }
.result .lines { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.2); display: grid; gap: 6px; font-size: 14px; }
.result .lines div { display: flex; justify-content: space-between; gap: 10px; }
.result .lines span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.result .lines .plus { color: #ffc58f; }
.result .lines .minus { color: #8ff0c0; }
.result .lines .meal-line { font-size: 16px; }
.result .lines .meal-line.plus { color: #ffd98f; }
.result .bus { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 12px; background: rgba(255,255,255,.12); border-radius: 10px; font-size: 14px; }
.result .bus svg { width: 22px; height: 22px; flex: none; }
.warn { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 196, 0, .2); color: #ffe7a0; font-size: 13px; }
.result .btn { width: 100%; margin-top: 14px; }
.result .meal-note { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.12); font-size: 13px; line-height: 1.55; }
.result .fine { font-size: 12px; opacity: .65; margin: 10px 0 0; }

.ptable-wrap { overflow-x: auto; margin-top: 14px; border-radius: 14px; border: 1px solid var(--rule); background: var(--card); }
.ptable { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 560px; font-variant-numeric: tabular-nums; }
.ptable th, .ptable td { padding: 9px 10px; text-align: center; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.ptable thead th { background: #f3eee3; font-weight: 700; color: var(--ink-2); }
.ptable thead tr:first-child th { color: var(--navy); }
.ptable th[scope="row"] { text-align: left; font-weight: 500; position: sticky; left: 0; background: var(--card); }
.ptable td.hit { background: #fff1c2; font-weight: 900; color: var(--price); }
.ptable tbody tr:last-child td, .ptable tbody tr:last-child th { border-bottom: 0; }
.ptable tr.free-row th, .ptable tr.free-row td { background: #faf7f0; border-top: 1px solid var(--rule); }
.ptable tr.free-row td { text-align: left; white-space: normal; color: var(--ink-2); }

.inc { display: grid; gap: 12px; }
@media (min-width: 800px) { .inc { grid-template-columns: 1.4fr 1fr; } }
.inc-list { list-style: none; margin: 0; padding: 0; }
.inc-list li { display: flex; gap: 10px; padding: 7px 0; font-size: 15px; }
.inc-list li b { flex: none; width: 4.2em; white-space: nowrap; color: var(--green); }
.exc-list li b { color: var(--red); }
.inc h3 { margin: 0 0 4px; font-size: 16px; }

.acc { border-radius: 14px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.acc + .acc { margin-top: 10px; }
.acc summary {
  list-style: none;
  display: flex; align-items: center; gap: 10px;
  padding: 15px 16px; font-weight: 700; font-size: 16px; cursor: pointer;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg.lead { width: 22px; height: 22px; color: var(--blue); flex: none; }
.acc summary .arr { margin-left: auto; width: 18px; height: 18px; transition: transform .3s var(--ease); color: var(--ink-3); }
.acc[open] summary .arr { transform: rotate(180deg); }
.acc ul { margin: 0; padding: 0 16px 14px 42px; color: var(--ink-2); font-size: 15px; }
.acc li + li { margin-top: 6px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 10px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  counter-increment: s;
  position: relative;
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow);
  padding: 14px 14px 14px 58px;
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 14px; top: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 900;
  display: grid; place-items: center;
}
.steps b { font-size: 16px; }
.steps .stag { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-50); padding: 1px 8px; border-radius: 999px; vertical-align: 2px; }
.steps p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }

.bar-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  background: rgba(255, 253, 248, .97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .4s var(--ease);
}
.bar-cta.on { transform: none; }
.bar-cta .in { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.bar-cta .p { margin-right: auto; line-height: 1.2; }
.bar-cta .p small { display: block; color: var(--ink-3); font-size: 12px; }
.bar-cta .price { font-size: 24px; }
@media (max-width: 420px) { .bar-cta .btn-outline span { display: none; } .bar-cta .btn-outline { width: 46px; padding: 0; } }

/* ---------------- Custom form ---------------- */
.form-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 16px; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field .field-lbl { display: block; font-size: 14px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.field .req { color: var(--red); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 16px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 2px solid var(--rule);
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(244,122,31,.15); }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.field.err input, .field.err select { border-color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  padding: 8px 14px; border-radius: 999px;
  border: 2px solid var(--rule); background: #fff;
  font-weight: 500; font-size: 15px;
  transition: all .2s;
}
.chips button[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-50); color: #c25400; font-weight: 700; }
.range-out { font-weight: 900; color: var(--price); font-size: 18px; }
input[type=range] { padding: 0; border: 0; accent-color: var(--orange); height: 30px; }
.preview { white-space: pre-wrap; background: #f3eee3; border-radius: 12px; padding: 14px; font-size: 14px; color: var(--ink-2); margin: 0; font-family: inherit; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.form-actions .btn { flex: 1 1 200px; }

.page-head { padding: 22px 0 6px; }
.page-head h1 { margin: 0; font-size: 28px; font-weight: 900; color: var(--navy); }
.page-head p { margin: 4px 0 0; color: var(--ink-2); }

/* Articles */
.art-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .art-grid { grid-template-columns: 1fr 1fr; } }
.art-card { display: flex; gap: 12px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; text-align: left; transition: transform .3s var(--ease), box-shadow .3s; }
.art-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.art-card img { width: 112px; height: 100px; border-radius: 12px; object-fit: cover; flex: none; }
.art-card .tx { padding: 4px 6px 4px 0; min-width: 0; }
.art-card .tag { background: var(--teal-50); color: var(--teal); }
.art-card h3 { margin: 6px 0 2px; font-size: 16px; line-height: 1.4; }
.art-card p { margin: 0; font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-body p { margin: 0 0 12px; }
.art-p { margin: 0 0 12px; line-height: 1.8; }
.art-note { margin: 16px 0 0; font-size: 13px; color: var(--ink-3); }
.art-tips { list-style: none; counter-reset: t; padding: 0; margin: 0; display: grid; gap: 12px; }
.art-tips li { counter-increment: t; display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px; }
.art-tips li::before { content: counter(t); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--teal-50); color: var(--teal); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.art-tips b { color: var(--navy); }
.art-tips span { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.art-trip { margin: 0 0 22px; }
.art-trip h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.5; color: var(--navy); }
.art-trip .fit { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--teal-50); color: var(--teal); margin-bottom: 8px; }
.art-trip p { margin: 0 0 10px; line-height: 1.8; }
.art-trip .trip-card { max-width: 420px; animation: none; }
.art-table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.art-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
.art-table th, .art-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee6d8; vertical-align: top; }
.art-table th { background: var(--teal-50); color: var(--teal); font-weight: 700; white-space: nowrap; }
.art-table tr:last-child td { border-bottom: 0; }
.eco-list { counter-reset: e; list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.eco-list li { counter-increment: e; display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--green-50); border-radius: 12px; }
.eco-list li::before { content: counter(e); width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 900; display: grid; place-items: center; flex: none; font-size: 14px; }

/* 附註說明：餐飲與共同分攤 */
.note-blocks { padding: 0 16px 14px 16px; display: grid; gap: 12px; }
.note-block h4 { margin: 0 0 4px; font-size: 15px; color: var(--navy); }
.note-block p { margin: 0; white-space: pre-line; color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.ssr-notes h3 { font-size: 15px; margin: 12px 0 4px; }
.ssr-notes p { white-space: pre-line; margin: 0; }

/* 旅遊承辦流程 */
@media (min-width: 800px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.steps-1col .steps { grid-template-columns: 1fr; }
.step-lines { list-style: none; margin: 6px 0 0; padding: 0; font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 6px; }
/* 步驟內的清單：不要套用外層步驟卡片的樣式與編號 */
.steps .step-lines li { flex: 1 1 100%; counter-increment: none; position: static; background: none; box-shadow: none; border-radius: 0; padding: 0; }
.steps .step-lines li::before { content: none; }
.steps .step-lines li.ck { display: flex; gap: 6px; align-items: flex-start; }
.steps .step-lines li.ck svg { width: 16px; height: 16px; color: var(--green); flex: none; margin-top: 3px; }
.steps .step-lines li.ck.short { flex: 0 0 auto; background: var(--green-50); border-radius: 999px; padding: 2px 10px 2px 6px; }
.proc-h { font-size: 18px; color: var(--navy); margin: 18px 0 10px; }
.h2-sub { font-size: 14px; font-weight: 500; color: var(--ink-3); }

/* 每日行程：依天分組 */
.day-panel + .day-panel { margin-top: 14px; }
.timeline p { white-space: pre-line; }
.timeline p.sub { margin-top: 2px; font-size: 13.5px; font-weight: 700; color: var(--blue); }
.ssr-sch p { white-space: pre-line; }
.ssr-sch p.sub { font-weight: 700; color: var(--blue); }
.day-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: -16px -16px 16px; padding: 12px 16px; border-radius: var(--radius) var(--radius) 0 0; background: var(--navy); color: #fff; }
.day-head .day-no { font-size: 18px; font-weight: 900; letter-spacing: .12em; }
.day-head b { font-size: 15px; font-weight: 500; opacity: .92; }
.timeline li.meal-item .t { color: var(--orange); }
.timeline li.meal-item .t small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); }
.timeline li.meal-item .pt { width: 22px; height: 22px; left: 51px; top: 1px; border: 0; background: var(--orange-50); color: var(--orange); display: grid; place-items: center; border-radius: 50%; }
.timeline li.meal-item .pt svg { width: 14px; height: 14px; }
.timeline li.meal-item h3 { color: #8a4b00; font-size: 16px; }
.day-panel .meals { margin-top: 4px; }
.day-panel .hotel { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--blue-50); font-size: 14px; }
.day-panel .hotel svg { width: 22px; height: 22px; color: var(--blue); flex: none; }
.day-panel .hotel b { color: var(--blue); margin-right: 8px; }
.ssr-day { margin: 18px 0 6px; padding: 8px 12px; background: var(--navy); color: #fff; border-radius: 10px; font-size: 16px; }
.ssr-sch li.meal .ssr-time { color: var(--orange); }

/* 分享 */
.gallery .g-share { position: absolute; top: 12px; right: 62px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--navy); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.share-btn { width: 100%; margin-top: 12px; }
.btn-share-quote { width: 100%; margin-top: 8px; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.share-card { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--bg); margin-bottom: 12px; }
.share-card img { width: 84px; height: 60px; object-fit: cover; border-radius: 10px; flex: none; }
.share-card b { display: block; font-size: 15px; line-height: 1.35; }
.share-card span { font-size: 13px; color: var(--price); font-weight: 700; }
.share-quote { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 2px solid var(--orange); background: var(--orange-50); margin-bottom: 12px; cursor: pointer; font-size: 14px; }
.share-quote input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); flex: none; }
.share-quote b { display: block; }
.share-quote small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.share-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--rule); font-size: 13px; font-weight: 700; color: var(--ink); transition: transform .15s, border-color .2s; }
.share-opt:active { transform: scale(.96); }
.share-opt:hover { border-color: var(--blue); }
.share-opt .si { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.share-opt .si svg { width: 22px; height: 22px; }
.share-opt.line .si { background: var(--line); color: #fff; }
.share-opt.line .si svg { width: 28px; height: 28px; }
.share-opt.fb .si { background: #1877f2; color: #fff; }
.share-opt.wide { grid-column: 1 / -1; flex-direction: row; justify-content: center; padding: 10px; background: var(--navy); color: #fff; border-color: var(--navy); }
.share-opt.wide .si { width: 30px; height: 30px; background: rgba(255,255,255,.15); color: #fff; }
.qr-box { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--bg); }
.qr-box[hidden] { display: none; }
.qr-img { width: 140px; height: 140px; flex: none; border-radius: 8px; background: #fff; }
.qr-box b { display: block; }
@media (max-width: 380px) { .qr-box { flex-direction: column; text-align: center; } }

/* 付款方式 */
.pay-steps { margin: 4px 0 14px; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; }
.pay-warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #fff4e5; color: #7a4300; font-size: 14px; }
.pay-warn svg { width: 24px; height: 24px; flex: none; color: var(--orange); }
.pay-warn b { color: #5c3200; }
.pay-warn > div > b:first-child { display: block; margin-bottom: 2px; }
.pay-warn a { color: var(--blue); font-weight: 700; }

/* 我的收藏 */
.fav-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding: 4px 0 14px; }
.fav-item { display: flex; flex-direction: column; gap: 8px; }
.fav-item .trip-card { max-width: none; flex: 1; }
.fav-del { align-self: flex-end; color: var(--red); }

/* 相關行程、常見問題 */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.related-grid .trip-card { max-width: none; }
.faq-a { margin: 0; padding: 0 16px 14px 48px; color: var(--ink-2); }

/* PHP 輸出的正式頁：JS 接手前的樣子（也是 Google 讀到的內容） */
.ssr { max-width: 860px; margin: 0 auto; padding: 0 16px 40px; }
.ssr-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.ssr-brand { font-weight: 900; color: var(--navy); }
.ssr-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 700; color: var(--blue); }
.ssr-crumbs { font-size: 13px; color: var(--ink-3); padding: 10px 0; }
.ssr-crumbs a { color: var(--blue); }
.ssr-main h1 { font-size: 26px; font-weight: 900; line-height: 1.35; margin: 10px 0; }
.ssr-main h2 { font-size: 19px; color: var(--navy); margin: 26px 0 10px; }
.ssr-main h3 { font-size: 16px; margin: 0; }
.ssr-lead { color: var(--ink-2); }
.ssr-meta { font-size: 14px; color: var(--ink-2); }
.ssr-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
.ssr-gallery img, .ssr-sch img { width: 100%; height: auto; border-radius: 10px; aspect-ratio: 16/10; object-fit: cover; }
.ssr-sch { padding-left: 0; list-style: none; display: grid; gap: 14px; }
.ssr-time { font-weight: 900; color: var(--price); font-size: 14px; }
.ssr-table { overflow-x: auto; margin-bottom: 10px; }
.ssr-table table { border-collapse: collapse; font-size: 13px; }
.ssr-table th, .ssr-table td { border: 1px solid var(--rule); padding: 5px 8px; white-space: nowrap; }
.ssr-table caption { text-align: left; font-weight: 700; padding: 4px 0; }
.ssr-faq dt { font-weight: 700; margin-top: 10px; }
.ssr-faq dd { margin: 4px 0 0; color: var(--ink-2); }
.ssr-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ssr-card img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; }
.ssr-card h3 { margin: 8px 0 4px; color: var(--ink); }
.ssr-card p { margin: 0; font-size: 14px; color: var(--ink-2); }
.ssr-price { color: var(--price) !important; font-weight: 700; margin-top: 4px !important; }
.ssr-deps a { display: inline-block; margin: 2px 8px 2px 0; color: var(--blue); font-weight: 700; }
.ssr-btn { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--line); color: #fff; font-weight: 700; margin: 6px 6px 0 0; }
.ssr-btn.alt { background: var(--blue-50); color: var(--blue); }
.ssr-foot { margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-2); }
.ssr-foot a { color: var(--blue); }

/* Page transitions */
#app > .page { animation: pageIn .45s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.spacer-bottom { height: 110px; }

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

/* 路線地圖 */
.route-acc { margin-top: 18px; }
.route-acc summary small { margin-left: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.route-acc summary svg.lead { color: var(--orange); }
.rm-note { margin: 0 0 10px; }
.rm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rm-head b { display: flex; align-items: center; gap: 6px; color: var(--navy); font-size: 16px; }
.rm-head b svg { width: 18px; height: 18px; color: var(--orange); }
.rm-head span { font-size: 12.5px; color: var(--ink-3); }
.rm-days { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.rm-days button { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--rule); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; cursor: pointer; }
.rm-days button i { width: 10px; height: 10px; border-radius: 50%; background: var(--dc); }
.rm-days button[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-50); color: #c25400; font-weight: 700; }
.rm-map { position: relative; z-index: 0; isolation: isolate; height: 340px; border-radius: var(--radius-sm); overflow: hidden; background: #e8eef3; }
@media (min-width: 900px) { .rm-map { height: 420px; } }
.rm-wait { display: grid; place-items: center; height: 100%; color: var(--ink-3); font-size: 13px; padding: 0 16px; text-align: center; }
.rm-pin { background: none; border: 0; }
.rm-pin span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-weight: 900; font-size: 13px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.rm-pop { font-family: inherit; line-height: 1.5; }
.rm-pop small { display: block; color: var(--ink-3); }
.rm-pop b { display: block; font-size: 14px; color: var(--ink); }
.rm-pop a { display: inline-block; margin-top: 4px; font-weight: 700; color: var(--blue); }
.rm-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rm-links .btn { flex: 1 1 240px; font-size: 13.5px; }
.rm-links .btn svg { width: 16px; height: 16px; }
.rm-no { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; margin-right: 6px; border: 0; border-radius: 999px; background: var(--dc); color: #fff; font-size: 12px; font-weight: 900; vertical-align: 2px; cursor: pointer; }
.ssr-route a { font-weight: 700; }

/* 行程搜尋 */
.search-box { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 999px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow); margin: 0 0 14px; border: 2px solid transparent; transition: border-color .2s; }
.search-box:focus-within { border-color: var(--orange); }
.search-box .si { display: grid; color: var(--ink-3); flex: none; }
.search-box .si svg { width: 20px; height: 20px; }
.search-box input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 15px; padding: 8px 0; outline: none; color: var(--ink); }
.search-box input::-webkit-search-cancel-button { cursor: pointer; }
.search-box .btn { border-radius: 999px; flex: none; }
.search-box.big { margin-top: 16px; padding: 8px 8px 8px 18px; }
.search-box.big input { font-size: 16px; }
.search-ex { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.search-ex button { border: 1.5px solid var(--rule); background: #fff; border-radius: 999px; padding: 3px 11px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.search-ex button:hover { border-color: var(--orange); color: #c25400; }
.search-understood { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: var(--blue-50); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 14px; font-size: 13.5px; }
.search-understood b { color: var(--navy); margin-right: 4px; }
.search-understood span { background: #fff; border-radius: 999px; padding: 2px 10px; font-weight: 700; color: var(--blue); }
.search-understood small { color: var(--ink-3); font-weight: 500; margin-right: 4px; }
.search-h { font-size: 17px; margin: 18px 0 10px; color: var(--navy); }
.search-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.search-hit { display: flex; flex-direction: column; gap: 8px; }
.search-hit .trip-card { max-width: none; flex: none; }
.search-hit .why { display: flex; flex-wrap: wrap; gap: 5px; font-size: 12.5px; }
.search-hit .why span { display: inline-flex; align-items: center; gap: 3px; border-radius: 999px; padding: 2px 9px; }
.search-hit .why .y { background: var(--green-50); color: var(--green); font-weight: 700; }
.search-hit .why .y svg { width: 12px; height: 12px; }
.search-hit .why .n { background: #f3efe6; color: var(--ink-3); }
.search-custom { display: flex; align-items: center; gap: 14px; margin: 22px 0 8px; padding: 16px 18px; background: var(--orange-50); border-radius: var(--radius); }
.search-custom svg { width: 36px; height: 36px; color: var(--orange); flex: none; }
.search-custom b { display: block; }
.search-custom span { font-size: 13.5px; color: var(--ink-2); }
.search-custom .btn { margin-left: auto; flex: none; }
.search-page .banner.warn { display: flex; gap: 8px; align-items: center; background: var(--orange-50); color: #8a4b00; border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }
.search-page .banner.warn svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 520px) { .search-custom { flex-wrap: wrap; } .search-custom .btn { margin-left: 0; width: 100%; } .search-box .btn { padding: 0 12px; } }

/* 出發日別超過 2 套（例：淡季／暑假 × 平日／假日）：按鈕換行排成兩欄 */
.seg.seg-wrap { display: flex; border-radius: 16px; }
.seg.seg-wrap button { flex: 1 1 calc(50% - 2px); border-radius: 12px; text-align: center; line-height: 1.35; }
@media (max-width: 480px) { .seg.seg-wrap button { flex-basis: 100%; } }
/* 價格表下方的說明（作者 Excel 價格區的文字） */
.ptable-notes { margin: 0; padding: 10px 14px 12px; border-top: 1px solid var(--rule); background: #faf7f0; position: sticky; left: 0; list-style: none; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.ptable-notes li { margin: 2px 0; }
/* 每日行程最上面的「交通安排」（作者 Word 原文，保留換行） */
.transport-panel { margin-bottom: 14px; }
.transport-panel h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 16px; color: var(--navy); }
.transport-panel h3 svg { width: 18px; height: 18px; }
.transport-panel p { margin: 0; white-space: pre-line; line-height: 1.7; color: var(--ink-2); }
/* 費用試算：佔床優惠（含在佔床房型人數內） */
.field-lbl.disc-lbl { margin-top: 12px; }
.field-lbl.disc-lbl small { margin-left: 8px; font-weight: 400; color: var(--ink-3); }

/* 費用包含的「適用對象」用黑色（其他項目維持綠色；2026-10-29 使用者要求） */
.inc-list li b.who { color: var(--ink); }

/* 火車團：出發車站（費用試算） */
.rail-st .field-lbl small { display: block; margin-top: 2px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); }
.seg.st-seg { display: grid; grid-template-columns: repeat(6, 1fr); border-radius: 14px; width: 100%; box-sizing: border-box; }
.seg.st-seg button { padding: 7px 4px; border-radius: 10px; font-size: 14px; text-align: center; }
@media (max-width: 560px) { .seg.st-seg { grid-template-columns: repeat(4, 1fr); } }
.rail-st .st-note { margin: 8px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.rail-st .st-note small { display: block; margin-top: 2px; color: var(--ink-3); }

/* 履約保單 */
.policy-dl { margin: 12px 0; display: grid; gap: 8px; }
.policy-dl > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 8px; font-size: 14px; }
.policy-dl dt { color: var(--ink-3); }
.policy-dl dd { margin: 0; font-weight: 500; }
.policy-img { display: block; margin-top: 12px; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; text-align: center; color: var(--ink-3); font-size: 13px; text-decoration: none; }
.policy-img img { display: block; width: 100%; height: auto; }
.policy-img span { display: block; padding: 8px; }
/* 旅遊專欄 column.php（伺服器輸出版，JS 接手前／不執行 JS 的爬蟲看到的版面） */
.ssr-card h2 { margin: 8px 0 4px; font-size: 16px; color: var(--ink); }
.ssr-main article > img { width: 100%; height: auto; aspect-ratio: 21/9; object-fit: cover; border-radius: 12px; margin: 8px 0 12px; }
.ssr-note { font-size: 13px; color: var(--ink-3); }
.ssr-fit { font-size: 14px; color: var(--teal); font-weight: 700; }
.ssr-tips li, .ssr-steps > li { margin: 6px 0; }
.ssr-steps small { color: var(--orange); font-weight: 700; }
/* 旅遊專欄：開頭重點摘要、常見問題、連結按鈕（app.js pageArticle 與 column.php 共用） */
.art-answer { background: var(--card); border-left: 4px solid var(--orange); border-radius: 12px; padding: 12px 16px; margin: 6px 0 4px; box-shadow: var(--shadow); }
.art-answer b { color: var(--orange); font-size: 14px; }
.art-answer p { margin: 4px 0 0; line-height: 1.8; }
.art-faq { margin: 0; display: grid; gap: 10px; }
.art-faq > div { background: var(--card); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.art-faq dt { font-weight: 700; color: var(--navy); }
.art-faq dd { margin: 4px 0 0; color: var(--ink-2); line-height: 1.75; }
.art-link { margin: 16px 0; }
