* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --primary: #23b58f;
  --primary-dark: #15926f;
  --accent: #ff8fb2;
  --accent-soft: #ffc7da;
  --lavender: #b28df0;
  --bg: #f2fbf7;
  --card: #ffffff;
  --text: #1f2d28;
  --muted: #6b7c76;
  --border: #d9efe7;
  --danger: #e5484d;
  --radius: 20px;
}

html, body { height: 100%; }
html, body {
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}

#app { max-width: 640px; margin: 0 auto; min-height: 100vh; padding-bottom: 84px; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(135deg, #23b58f, #5fd3b4 48%, #ff9ec2);
  color: #fff; padding: 14px 16px 12px;
  box-shadow: 0 2px 10px rgba(35,181,143,.25);
}
.brand { font-size: 22px; font-weight: 700; letter-spacing: 1px; text-shadow: 0 1px 2px rgba(0,0,0,.12); }
/* 底部 Tab 欄 */
.tabbar {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 640px; z-index: 90;
  display: flex; gap: 4px; align-items: center;
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(35,181,143,.10);
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
}
.tabbar .tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 6px 0 5px; border: none; border-radius: 14px;
  background: transparent; color: var(--muted); font-size: 17px; font-weight: 600;
  cursor: pointer; transition: transform .15s, background .2s;
}
.tabbar .tab:active { transform: scale(.96); }
.tabbar .tab .tab-ic { font-size: 22px; line-height: 1; }
.tabbar .tab.active {
  background: linear-gradient(135deg, rgba(35,181,143,.14), rgba(255,143,178,.14));
  color: var(--primary-dark);
}
.badge {
  background: var(--accent); color: #fff; border-radius: 12px;
  padding: 0 6px; font-size: 11px; min-width: 16px; text-align: center;
}

.view { padding: 12px; }
.hidden { display: none !important; }

.searchbar { margin-bottom: 10px; position: relative; display: flex; gap: 8px; }
.searchbar input {
  flex: 1; min-width: 0; padding: 13px 16px; font-size: 21px;
  border: 1px solid var(--border); border-radius: 16px; background: #fff;
  box-shadow: 0 2px 8px rgba(35,181,143,.06);
}

/* 北中南優先選擇 */
.region-picker { display: flex; gap: 10px; margin-bottom: 4px; }
.reg-btn {
  flex: 1; border: 2px solid var(--border); border-radius: 18px; background: #fff;
  padding: 16px 6px; cursor: pointer; text-align: center;
  box-shadow: 0 2px 8px rgba(35,181,143,.06); transition: transform .15s;
}
.reg-btn:active { transform: scale(.97); }
.reg-btn b { display: block; font-size: 34px; color: var(--primary); line-height: 1.1; }
.reg-btn span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* 地區景點全螢幕頁 */
.view-region {
  position: fixed; inset: 0; z-index: 120; background: var(--bg);
  overflow-y: auto; padding: 0 14px 90px;
}
.reg-topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #23b58f, #5fd3b4 48%, #ff9ec2);
  color: #fff; padding: 12px 4px; margin: 0 -14px 12px;
}
.reg-back {
  border: none; background: rgba(255,255,255,.22); color: #fff; border-radius: 999px;
  padding: 9px 16px; font-size: 17px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.reg-title { font-size: 21px; font-weight: 800; }
.reg-filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.reg-city { padding: 12px; font-size: 17px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.reg-themes { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip {
  padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px;
  background: #fff; color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.tchip.active {
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  border-color: transparent; box-shadow: 0 2px 8px rgba(35,181,143,.3);
}

/* 推介行程天數 */
.reco-days { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.day-chip {
  flex: 1; min-width: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px;
  background: #fff; color: var(--text); font-size: 15px; font-weight: 700; cursor: pointer; text-align: center; transition: all .15s;
}
.day-chip.active {
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border-color: transparent;
}

/* 結果列 */
.result-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: #e6f7f0; color: #1f6b54; font-size: 19px; font-weight: 600;
  border-radius: 12px; padding: 9px 12px; margin-bottom: 10px;
}
.result-close {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: none;
  background: #cdeee2; color: #1f6b54; font-size: 19px; font-weight: 700; cursor: pointer;
}

/* 主題按鈕（選單內） */
.theme-btn {
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: #fff; color: var(--text); font-size: 19px; font-weight: 600; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.theme-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  border-color: transparent; box-shadow: 0 2px 8px rgba(35,181,143,.3);
}

.filters { display: flex; gap: 8px; margin-bottom: 8px; }
.filters select {
  flex: 1; padding: 10px; font-size: 20px; border: 1px solid var(--border);
  border-radius: 10px; background: #fff; min-width: 0;
}
.btn-near {
  flex: none; padding: 0 12px; border: 1px solid var(--primary); background: #fff;
  color: var(--primary); border-radius: 10px; font-size: 19px; font-weight: 600; cursor: pointer;
}
.result-info { font-size: 19px; color: var(--muted); margin: 4px 2px 10px; }

.list { display: flex; flex-direction: column; gap: 10px; }

.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 6px 18px rgba(35,181,143,.10), 0 1px 3px rgba(0,0,0,.04);
  border: 1px solid var(--border);
  transition: transform .15s;
}
.card:active { transform: scale(.99); }
.card-img { width: 100%; height: 160px; object-fit: cover; background: #e8eaed; display: block; }
.card-body { padding: 12px 14px; }
.card-title { font-size: 21px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.card-sub { font-size: 19px; color: var(--muted); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.chip {
  font-size: 17px; background: #dff5ec; color: var(--primary-dark);
  padding: 2px 8px; border-radius: 20px; font-weight: 600;
}
.chip-badge { background: #fff3d6; color: #9a6b00; }
.card-desc { font-size: 19px; color: #4a4c50; line-height: 1.5; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-actions { display: flex; gap: 8px; }
.card-btn {
  flex: 1; padding: 9px; border: none; border-radius: 10px; font-size: 20px; font-weight: 600; cursor: pointer;
}
.btn-add { background: var(--primary); color: #fff; }
.btn-remove { background: var(--danger); color: #fff; }
.btn-detail { background: #f0f1f3; color: var(--text); }

.itin-toolbar { margin-bottom: 10px; }
.btn {
  width: 100%; padding: 13px; border: none; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  font-size: 21px; font-weight: 700; cursor: pointer;
  box-shadow: 0 3px 10px rgba(35,181,143,.2);
  transition: transform .15s;
}
.btn:active { transform: scale(.98); }
.itin-header { background: var(--card); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; border: 1px solid var(--border); }
.itin-header h2 { font-size: 20px; color: var(--muted); margin-bottom: 8px; }
#itinName {
  width: 100%; padding: 12px 14px; font-size: 22px; font-weight: 700; text-align: center;
  border: none; background: #f0f8f4; border-radius: 14px; margin-bottom: 10px; outline: none;
}
.itin-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.days-pill { display: flex; align-items: center; gap: 2px; background: #eef6f3; border-radius: 999px; padding: 4px; }
.pill-btn {
  width: 36px; height: 36px; border: none; border-radius: 50%; background: #fff; color: var(--primary);
  font-size: 23px; font-weight: 700; cursor: pointer; box-shadow: 0 1px 4px rgba(35,181,143,.25);
  transition: transform .1s;
}
.pill-btn:active { transform: scale(.9); }
.pill-num { min-width: 48px; text-align: center; font-weight: 800; color: var(--text); font-size: 21px; }
.start-pill { display: flex; align-items: center; gap: 6px; font-size: 19px; color: var(--muted); background: #f0f8f4; border-radius: 999px; padding: 7px 14px; }
.start-pill select { border: none; background: transparent; font-size: 20px; font-weight: 700; color: var(--text); outline: none; }
.itin-summary { font-size: 18px; color: var(--muted); flex: 1 1 100%; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; line-height: 1.7; }

.day-card {
  position: relative; border-radius: 18px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.2); margin-bottom: 16px; background: #1a1a2e;
}
.day-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #1a1a2e, #23b58f); }
.day-bg-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.day-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.85)); }
.day-inner { position: relative; padding: 16px 14px 14px; color: #fff; }
.day-top { margin-bottom: 12px; background: rgba(0,0,0,.6); border-radius: 12px; padding: 12px 13px; }
.day-card .day-day { font-size: 20px; font-weight: 800; opacity: .97; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.day-card .day-route { font-size: 21px; font-weight: 700; line-height: 1.45; margin: 5px 0; text-shadow: 0 1px 4px rgba(0,0,0,.7); white-space: normal; }
.day-card .day-info { font-size: 18.5px; opacity: .98; line-height: 1.7; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.day-card .tight { margin-left: 6px; font-weight: 700; }
.day-card .tight-full { color: #ffb9b0; }
.day-card .tight-free { color: #9ff5d8; }
.day-card .tight-hint { font-size: 18px; font-weight: 400; margin-left: 4px; }
.stops { display: flex; flex-direction: column; }
.itin-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 11px; margin-bottom: 8px;
  border-radius: 12px; background: rgba(0,0,0,.55); color: #fff;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.itin-item:last-child { margin-bottom: 0; }
.itin-item.dragging { opacity: .6; transform: scale(.98); z-index: 5; }
.stop-no {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: #101828; font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.drag-handle {
  flex: none; width: 24px; height: 34px; display: flex; align-items: center; justify-content: center;
  font-size: 21px; color: rgba(255,255,255,.7); touch-action: none; cursor: grab; border-radius: 8px;
}
.drag-handle:active { cursor: grabbing; }
.itin-item .body { flex: 1; min-width: 0; }
.itin-item .title { font-size: 21px; font-weight: 700; margin-bottom: 2px; }
.itin-item .sub { font-size: 18px; color: rgba(255,255,255,.88); line-height: 1.5; }
.item-actions { display: flex; flex-direction: column; gap: 6px; flex: none; }
.mini-chip {
  width: 28px; height: 28px; border: none; border-radius: 9px; background: rgba(255,255,255,.22);
  font-size: 19px; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .1s;
}
.mini-chip:active { transform: scale(.9); }
.mini-chip.del { background: rgba(200,52,52,.6); }

.recommend-box { margin-top: 12px; background: #fff5f9; border: 1px solid #ffd6e5; border-radius: var(--radius); padding: 12px; }
.recommend-box h3 { font-size: 20px; color: #c2185b; margin-bottom: 8px; }
.recommend-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed #ffd6e5; }
.recommend-item:last-child { border-bottom: none; }
.recommend-item .info { flex: 1; min-width: 0; }
.recommend-item .name { font-size: 20px; font-weight: 600; }
.recommend-item .reason { font-size: 18px; color: var(--muted); }
.recommend-item button { flex: none; padding: 7px 12px; border: none; border-radius: 8px; background: var(--primary); color: #fff; font-size: 19px; font-weight: 600; cursor: pointer; }

.share-intro { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.share-intro h2 { font-size: 22px; margin-bottom: 6px; }
.share-intro .hint { margin: 0; }
.share-summary { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.share-name { font-size: 21px; font-weight: 700; margin-bottom: 4px; }
.share-meta { font-size: 18px; color: var(--muted); margin-bottom: 8px; }
.share-daylist { list-style: none; font-size: 18.5px; color: #4a4c50; line-height: 1.8; }
.share-daylist li b { color: var(--primary-dark); }
.empty-sm { font-size: 19px; color: var(--muted); line-height: 1.7; }
.share-actions { display: flex; flex-direction: column; gap: 10px; }
.btn.share-line { background: linear-gradient(135deg, #06c755, #4ade80); box-shadow: 0 3px 10px rgba(6,199,85,.25); }
.btn.share-fb { background: linear-gradient(135deg, #1877f2, #4a94ff); box-shadow: 0 3px 10px rgba(24,119,242,.25); }

/* 詳細彈窗 */
.modal-mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.5);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal {
  width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: 24px 24px 0 0;
}
.modal-head { position: relative; }
.modal .card-img { height: 220px; }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  border: none; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff;
  font-size: 22px; cursor: pointer;
}
.modal-body { padding: 16px; }
.modal-body h2 { font-size: 22px; margin-bottom: 6px; }
.modal-body .info { margin: 8px 0; font-size: 20px; line-height: 1.7; color: #333; }
.modal-body .label { color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%);
  background: rgba(0,0,0,.85); color: #fff; padding: 10px 18px; border-radius: 24px;
  font-size: 20px; z-index: 200; max-width: 80%; text-align: center;
}

/* 匯入行程 */
.import-intro { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.import-intro h2 { font-size: 22px; margin-bottom: 8px; }
.import-intro p { font-size: 19px; color: #444; line-height: 1.6; margin-bottom: 6px; }
.legal-note { background: #fff5f9; border: 1px solid #ffd6e5; border-radius: 8px; padding: 8px 10px; font-size: 18px; color: #c2185b; }
.import-input { margin-bottom: 12px; }
#importText {
  width: 100%; padding: 12px; font-size: 20px; border: 1px solid var(--border);
  border-radius: 12px; resize: vertical; min-height: 120px; line-height: 1.6;
}
#importText::placeholder { color: #999; font-size: 18px; }
.import-input .btn { margin-top: 10px; }

.import-result-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.import-result-head h3 { font-size: 21px; }
.match-stat { font-size: 18px; color: var(--muted); }

.day-group { margin-bottom: 12px; }
.day-group > .day-label {
  font-size: 19px; font-weight: 700; color: var(--primary-dark); background: #dff5ec;
  padding: 6px 12px; border-radius: 8px; margin-bottom: 8px;
}
.imp-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px;
}
.imp-item input[type=checkbox] { width: 20px; height: 20px; flex: none; }
.imp-item .body { flex: 1; min-width: 0; }
.imp-item .name { font-size: 20px; font-weight: 600; }
.imp-item .reason { font-size: 18px; color: var(--muted); }
.imp-item .status { font-size: 17px; font-weight: 600; flex: none; padding: 2px 8px; border-radius: 12px; }
.st-ok { background: #e6f4ea; color: #137333; }
.st-no { background: #fce8e6; color: #d93025; cursor: pointer; }
.imp-item.unmatched { background: #fafafa; }
.imp-item .alias { font-size: 17px; color: #888; }

.import-confirm { display: flex; gap: 8px; margin-top: 6px; }
.import-confirm .btn { flex: 2; }
.btn-ghost {
  flex: 1; padding: 12px; border: 1px solid var(--border); background: #fff;
  border-radius: 16px; font-size: 21px; cursor: pointer; color: var(--text);
}

/* ---------- 六大功能 ---------- */
.btn-nav { background: var(--primary-dark); color: #fff; }
.card-actions .btn-nav { flex: 1.2; }

.itin-toolbar { position: relative; display: flex; gap: 8px; margin-bottom: 10px; }
.itin-toolbar .btn { flex: 1; padding: 12px; font-size: 20px; white-space: nowrap; }
#recommendBtn { background: linear-gradient(135deg, #ff8fb2, #ffb3cd); }
.tool-menu { top: calc(100% + 6px); }

/* 左側滑出工具選單 */
.drawer-mask { position: fixed; inset: 0; background: rgba(20,40,35,.35); z-index: 60; opacity: 0; visibility: hidden; transition: opacity .25s ease; }
.drawer-mask.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 78%; max-width: 320px; background: #fff; z-index: 61;
  transform: translateX(-105%); transition: transform .25s ease;
  display: flex; flex-direction: column;
  border-top-right-radius: 20px; border-bottom-right-radius: 20px;
  box-shadow: 6px 0 26px rgba(20,60,50,.22);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 18px 16px; background: linear-gradient(135deg, #eef8f3, #e2f3eb); border-radius: 0 20px 0 0; }
.drawer-title { font-size: 22px; font-weight: 800; color: var(--text); }
.drawer-close { width: 34px; height: 34px; border: none; border-radius: 50%; background: #fff; color: var(--muted); font-size: 20px; cursor: pointer; box-shadow: 0 1px 4px rgba(35,181,143,.18); }
.drawer-list { overflow-y: auto; padding: 6px 0; }
.drawer-item {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 18px;
  font-size: 21px; font-weight: 700; color: var(--text); background: #fff;
  border: none; border-bottom: 1px solid #f0f4f2; text-align: left; cursor: pointer;
  transition: background .1s;
}
.drawer-item:active { background: #f2faf6; }
.drawer-ico {
  flex: none; width: 40px; height: 40px; border-radius: 13px; background: #e9f6f0;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.drawer-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.drawer-label { font-size: 21px; font-weight: 700; }
.drawer-tag { font-size: 17px; color: var(--muted); font-weight: 500; }

.day-header {
  font-size: 19px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 9px 12px; border-radius: 12px; margin: 12px 0 4px;
  line-height: 1.6;
}

/* 每日大卡片＋時間線 */
.day-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; -webkit-overflow-scrolling: touch; }
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab {
  flex: 0 0 auto; padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px;
  background: #fff; color: var(--text); font-size: 19px; font-weight: 700; cursor: pointer;
  transition: all .15s;
}
.day-tab.active {
  background: var(--primary-dark); color: #fff;
  border-color: transparent; box-shadow: 0 2px 8px rgba(35,181,143,.3);
}
.day-header { margin: 2px 0 8px; padding: 4px 2px; }
.day-cover {
  position: relative; height: 150px; border-radius: 16px; overflow: hidden; margin: 0 0 6px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 4px 14px rgba(20,60,50,.16);
}
.day-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.day-cover-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,30,25,.78), rgba(10,30,25,.08) 62%); }
.day-cover-txt { position: absolute; left: 14px; right: 14px; bottom: 11px; color: #fff; }
.day-day { font-size: 22px; font-weight: 800; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.day-route { font-size: 19px; font-weight: 700; margin: 2px 0; text-shadow: 0 1px 3px rgba(0,0,0,.55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-info { font-size: 18px; opacity: .96; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.day-header .day-timeline { margin-top: 4px; }

.section {
  margin-top: 14px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
}
.section h3 { font-size: 21px; margin-bottom: 10px; }
.hint { font-size: 18px; color: var(--muted); margin: 6px 0 10px; line-height: 1.5; }

.cwa-setting { display: flex; gap: 8px; margin-bottom: 4px; }
.cwa-setting input {
  flex: 1; min-width: 0; padding: 10px 12px; font-size: 19px;
  border: 1px solid var(--border); border-radius: 10px;
}
.cwa-setting .btn { width: auto; flex: none; padding: 10px 14px; font-size: 19px; }

.weather-card { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; padding: 10px 12px; }
.weather-city { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.weather-load { font-size: 18px; color: var(--muted); }

/* 新聞式 7 天預報 */
.wx-row { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.wx-cell {
  flex: 1; min-width: 62px; text-align: center; border: 1px solid var(--border);
  border-radius: 14px; padding: 8px 4px; background: linear-gradient(180deg, #eefaf5, #fff);
}
.wx-weekday { font-size: 18px; font-weight: 700; color: var(--primary); }
.wx-date2 { font-size: 11px; color: var(--muted); margin-top: 1px; }
.wx-icon { font-size: 27px; line-height: 1.4; }
.wx-hi { font-size: 19px; font-weight: 700; color: #d93025; }
.wx-lo { font-size: 18px; color: #1a73e8; }
.wx-details { margin-top: 8px; }
.wx-detail { display: flex; gap: 6px; align-items: baseline; padding: 3px 0; border-bottom: 1px dashed #eee; font-size: 18px; line-height: 1.5; }
.wx-detail:last-child { border-bottom: none; }
.wx-dweek { flex: none; font-weight: 700; color: #444; width: 34px; }
.wx-dicon { flex: none; }
.wx-ddesc { flex: 1; color: #333; }

.lodge-city { font-size: 19px; font-weight: 700; color: #5f3dc4; margin: 10px 0 6px; }
.lodge-item {
  display: block; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 8px; text-decoration: none; color: inherit; background: #fff;
}
.lodge-item:active { background: #f5f5f7; }
.lodge-name { font-size: 20px; font-weight: 600; color: var(--text); }
.lodge-sub { font-size: 18px; color: var(--muted); margin-top: 2px; }
.lodge-tel { font-size: 18px; color: #444; margin-top: 2px; }

/* ---------- 首頁 ---------- */
.home-section { margin-bottom: 12px; }
.sec-title { font-size: 21px; margin: 18px 0 8px; color: var(--primary-dark); font-weight: 700; }
.section h3 { font-size: 21px; margin-bottom: 10px; color: var(--primary-dark); }

/* 首頁特色賣點 */
.hero-points {
  background: linear-gradient(135deg, rgba(35,181,143,.08), rgba(255,143,178,.08));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px;
}
.hero-points h3 { margin-bottom: 8px; }
.hero-points ul { margin: 0; padding: 0; list-style: none; }
.hero-points li {
  font-size: 20px; line-height: 1.9; color: var(--text);
}
.gov-badge {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  font-size: 11px; font-weight: 600; color: var(--primary-dark);
  background: rgba(35,181,143,.12); border: 1px solid rgba(35,181,143,.25);
  border-radius: 999px; vertical-align: 1px;
}
.src-note { font-size: 17px; color: var(--muted); margin-top: 6px; }
.page-foot { margin: 16px 2px 8px; text-align: center; line-height: 1.7; }
.src-note { font-size: 17px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.page-foot { margin-top: 16px; text-align: center; padding-bottom: 8px; }
.wx-controls { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.wx-controls select { flex: 1; min-width: 0; padding: 10px; font-size: 20px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.wx-controls .btn-ghost { flex: none; padding: 10px 14px; font-size: 19px; border-radius: 10px; }
.gen-btn { margin-bottom: 6px; background: linear-gradient(135deg, var(--lavender), var(--accent)); }

.reco-trip {
  flex: 0 0 84%; max-width: 320px; scroll-snap-align: start;
  border: 1px solid var(--border); border-radius: 20px; background: #fff; overflow: hidden;
  box-shadow: 0 6px 18px rgba(35,181,143,.12); margin-bottom: 0;
}
#recoTrips {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px 14px 12px; margin: 0 -14px; -webkit-overflow-scrolling: touch;
}
#recoTrips::-webkit-scrollbar { display: none; }
.reco-img { width: 100%; height: 160px; object-fit: cover; background: #e8eaed; display: block; }
.reco-body { padding: 12px 14px; }
.reco-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.reco-name { font-size: 21px; font-weight: 700; color: var(--primary); }
.reco-desc { font-size: 18px; color: var(--muted); margin: 4px 0 6px; }
.reco-tags { font-size: 18px; color: #444; line-height: 1.5; margin-bottom: 10px; }
.reco-open { flex: none; padding: 9px 14px; font-size: 19px; border-radius: 9px; border: 1px solid var(--primary); color: var(--primary); background: #fff; cursor: pointer; }
.reco-day { margin-bottom: 6px; }
.reco-daylabel { font-size: 18px; font-weight: 700; color: #666; margin-bottom: 4px; }
.reco-item { font-size: 19px; padding: 3px 0; display: flex; justify-content: space-between; gap: 8px; }
.reco-sub { font-size: 17px; color: var(--muted); flex: none; }

/* 推介詳細彈窗 */
.reco-detail-item { display: flex; gap: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.rd-img { width: 86px; height: 86px; object-fit: cover; border-radius: 8px; flex: none; background: #e8eaed; }
.rd-noimg { background: #eefaf5; }
.rd-body { flex: 1; min-width: 0; }
.rd-name { font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.rd-sub { font-size: 18px; color: var(--muted); margin-bottom: 4px; }
.rd-desc { font-size: 18px; color: #444; line-height: 1.5; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rd-actions { display: flex; gap: 6px; }
.rd-actions .card-btn { padding: 6px 10px; font-size: 18px; flex: none; }

/* 北中南收合探索 */
.acc-item { border: 1px solid var(--border); border-radius: 16px; margin-bottom: 10px; background: #fff; overflow: hidden; box-shadow: 0 3px 10px rgba(35,181,143,.06); }
.acc-head {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 13px 14px;
  border: none; background: #fff; cursor: pointer; font-size: 21px; font-weight: 700; color: var(--text);
}
.acc-name { flex: 1; text-align: left; }
.acc-count { font-size: 18px; color: var(--muted); font-weight: 400; }
.acc-arrow { color: var(--muted); transition: transform .2s; }
.acc-head.open .acc-arrow { transform: rotate(180deg); }
.acc-body { padding: 0 12px 12px; }
.reg-city { width: 100%; padding: 9px; font-size: 20px; border: 1px solid var(--border); border-radius: 10px; background: #fff; margin: 4px 0 10px; }
.more-btn { cursor: pointer; color: var(--primary); font-weight: 600; }
.nav-route, .nav-app { display: block; width: 100%; margin-bottom: 10px; }
.nav-app:last-child { margin-bottom: 0; }

.modal-titlebar { padding: 16px; font-size: 22px; font-weight: 700; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.modal-titlebar + .modal-close { top: 14px; right: 14px; }
.gen-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.gen-form label { display: flex; flex-direction: column; font-size: 18px; color: var(--muted); gap: 4px; }
.gen-form select { padding: 10px; font-size: 20px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.gen-form .btn { grid-column: 1 / -1; }
.gen-form .gen-rest { flex-direction: row; align-items: center; gap: 6px; font-size: 19px; color: var(--text); grid-column: 1 / -1; }
.gen-rest input { width: 18px; height: 18px; accent-color: var(--primary-dark); }
.gen-summary { font-size: 19px; font-weight: 600; color: #1f6b54; background: #e6f7f0; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.gen-day { margin-top: 4px; }

/* 行程時間軸 */
.day-timeline {
  display: flex; height: 8px; border-radius: 999px; overflow: hidden;
  margin-top: 8px; background: #eef2ef;
}
.tl-seg { height: 100%; }
.tl-visit { background: var(--primary); }
.tl-travel { background: #b9dfd4; }
.tight { font-weight: 700; margin-left: 6px; }
.tight-full { color: #e0534f; }
.tight-free { color: var(--primary); }
.tight-hint { font-size: 18px; color: #e0534f; font-weight: 400; margin-left: 4px; }

/* 雨天備案 */
.rain-group { border: 1px solid var(--border); border-radius: 16px; padding: 12px; margin: 10px 0; background: #fff; box-shadow: 0 3px 10px rgba(35,181,143,.06); }
.rain-out { font-size: 19px; color: var(--muted); margin-bottom: 8px; }
.rain-cands { display: flex; flex-direction: column; gap: 8px; }
.rain-cand { display: flex; justify-content: space-between; align-items: center; text-align: left; padding: 10px 12px; }
.rain-city { font-size: 17px; color: var(--muted); }

/* 天氣更新時間 */
.wx-updated { font-size: 17px; color: var(--muted); text-align: right; margin-top: 6px; }

/* 更新提示橫幅 */
.update-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 14px; background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 20px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(35,181,143,.35); animation: slideDown .25s ease;
}
.update-banner .update-btn { background: #fff; color: var(--primary); padding: 7px 14px; font-size: 19px; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* ---------- 日本旅遊 ---------- */
.jp-picker { flex-wrap: wrap; }
.jp-inline .reg-topbar { position: static; }

/* 日本工具 */
.fx-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.fx-row label { width: 90px; font-size: 18px; font-weight: bold; color: #444; }
.fx-row input {
  flex: 1; padding: 12px 14px; border: 2px solid #e0e0e0; border-radius: 10px;
  font-size: 20px; outline: none;
}
.fx-row input:focus { border-color: var(--primary); }
.phrase-item { padding: 12px 4px; border-bottom: 1px dashed #eee; }
.phrase-item:last-child { border-bottom: none; }
.ph-zh { font-size: 19px; font-weight: bold; color: #222; }
.ph-jp { font-size: 18px; color: var(--primary); margin-top: 2px; }
.ph-ro { font-size: 15px; color: #999; letter-spacing: 0.3px; }
.wx-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 10px 0; }
.wx-table th, .wx-table td { padding: 6px 2px; text-align: center; border-bottom: 1px solid #f0f0f0; }
.wx-table th { color: #888; font-weight: normal; }
.wx-table td:first-child, .wx-table th:first-child { text-align: left; padding-left: 4px; color: #666; }
.wx-now { background: rgba(35,181,143,.12); color: var(--primary); font-weight: bold !important; border-radius: 4px; }
.plan-day { margin: 10px 0; line-height: 2; }
.plan-day b { display: block; color: var(--primary); }

/* 發音 */
.jp-sub {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; color: #888; margin-top: 2px;
}
.spk {
  border: none; background: rgba(35,181,143,.12); color: var(--primary-dark);
  border-radius: 999px; cursor: pointer; flex-shrink: 0;
  font-size: 15px; padding: 3px 9px; line-height: 1.4; transition: background .15s;
}
.spk:active { transform: scale(.94); }
.spk-sm { font-size: 13px; padding: 1px 7px; }
.ph-line { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.speak-row { display: flex; gap: 8px; margin: 4px 0 10px; flex-wrap: wrap; }
.spk-btn { font-size: 17px; font-weight: 700; padding: 8px 18px; }
.jp-picker .reg-btn { flex: 1 1 calc(50% - 5px); min-width: calc(50% - 5px); padding: 14px 6px; }
.jp-picker .reg-btn b { font-size: 26px; }
.jp-picker .reg-btn span { font-size: 17px; }

.jtab.active { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border-color: transparent; box-shadow: 0 2px 8px rgba(35,181,143,.3); }

.btn-walk { background: #eef2ef; color: var(--text); }
.btn-transit { background: #eaf1fb; color: #2f6fd0; }

/* ── v61 達人行程 ── */
.route-intro { font-size: 18px; color: var(--muted); line-height: 1.6; padding: 4px 14px 10px; }
.jp-route-card { width: 100%; text-align: left; border: 1.5px solid #d9efe7; cursor: pointer; }
.route-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.chip-route { background: #e3f6ef; color: #0e8a68; border: 1px solid #bfe9db; }
.route-stops { font-size: 17px; color: var(--muted); }
.route-refs { font-size: 16px; color: #9aa0a6; margin-top: 8px; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-h3 { font-size: 20px; margin: 14px 0 8px; color: var(--text); }
.rt-stop { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #e5e7eb; align-items: flex-start; }
.rt-stop:last-child { border-bottom: none; }
.rt-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 16px; margin-top: 2px; }
.rt-body { flex: 1; min-width: 0; }
.rt-name { font-size: 20px; font-weight: 700; color: var(--text); }
.rt-note { font-size: 18px; color: #55595f; line-height: 1.55; margin-top: 2px; }
.rt-nav { margin-top: 6px; font-size: 16px; padding: 4px 12px; border-radius: 999px; border: 1px solid #cfe3da;
  background: #f2faf7; color: #0e8a68; cursor: pointer; }
.rt-tips { margin: 0; padding-left: 22px; }
.rt-tips li { font-size: 19px; color: #44484e; line-height: 1.65; margin-bottom: 6px; }
.rt-refs-box { display: flex; flex-direction: column; gap: 8px; }
.rt-ref { font-size: 18px; color: #2f6fd0; text-decoration: underline; word-break: break-all; }
.guide-box { margin-top: 12px; background: #f4fbf8; border: 1.5px solid #cdeadd; border-radius: 14px; padding: 12px 14px; }
.guide-title { font-size: 19px; font-weight: 700; color: #0e8a68; margin-bottom: 6px; }
.guide-list { margin: 0; padding-left: 22px; }
.guide-list li { font-size: 19px; color: #3c4046; line-height: 1.6; margin-bottom: 5px; }
.guide-box .rt-ref { display: inline-block; margin-top: 8px; margin-right: 14px; }
.rel-routes-box { display: flex; flex-direction: column; gap: 8px; }
.rt-ref-btn { text-align: left; font-size: 18px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid #cfe0f5;
  background: #f3f8ff; color: #2f6fd0; cursor: pointer; word-break: break-word; }
.rt-ref-btn:active { background: #e4eefd; }
