/* 濟州島旅遊 App · 韓國濟州風格 */
@import url('https://fonts.googleapis.com/css2?family=Gowun+Dodum&family=Noto+Sans+KR:wght@300;400;500;700;900&family=Noto+Sans+TC:wght@300;400;500;700;900&family=Jua&display=swap');

:root {
  --fuji: #2E5B8A;         /* 濟州海藍 深 */
  --fuji-2: #4A7FB5;       /* 濟州海藍 */
  --fuji-3: #A8C5E2;       /* 淡藍 */
  --snow: #FAFAF7;         /* 雪白 */
  --snow-2: #F3F1EB;       /* 柔白 */
  --warm: #8C8276;         /* 暖灰 */
  --warm-2: #B8B0A3;       /* 淡暖灰 */
  --warm-3: #E8E2D5;       /* 米灰 */
  --ink: #2B2A28;          /* 墨黑 */
  --sakura: #E8A4B4;       /* 粉 */
  --matcha: #7FA86B;       /* 濟州綠 */
  --yuzu: #E8B74F;         /* 橘黃 */
  --hallasan: #5B7A5C;     /* 漢拏山綠 */
  --tangerine: #F08B3C;    /* 濟州橘 */
  --shadow-s: 0 1px 2px rgba(46, 91, 138, 0.06), 0 4px 12px rgba(46, 91, 138, 0.05);
  --shadow-m: 0 2px 6px rgba(46, 91, 138, 0.08), 0 12px 28px rgba(46, 91, 138, 0.08);
  --shadow-l: 0 8px 24px rgba(46, 91, 138, 0.12), 0 24px 48px rgba(46, 91, 138, 0.10);
  --r-s: 14px;
  --r-m: 20px;
  --r-l: 28px;
  --font-ko: 'Gowun Dodum', 'Noto Sans KR', 'Noto Sans TC', system-ui, sans-serif;
  --font-tc: 'Noto Sans TC', 'Noto Sans KR', system-ui, sans-serif;
  --font-display: 'Jua', 'Gowun Dodum', 'Noto Sans KR', 'Noto Sans TC', sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font-ko);
  color: var(--ink);
  background: #D9E1E8;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* 手機框架（外殼） */
.phone-shell {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background:
    radial-gradient(ellipse at 20% 10%, #E8D5E8 0%, transparent 50%),
    radial-gradient(ellipse at 85% 80%, #A8C5E2 0%, transparent 55%),
    linear-gradient(180deg, #EEF2F7 0%, #D9E1E8 100%);
}
.phone {
  position: relative;
  width: min(420px, 100%);
  height: min(900px, calc(100vh - 40px));
  background: var(--snow);
  border-radius: 44px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(58,90,138,0.2), 0 0 0 1px rgba(0,0,0,0.05);
  display: flex; flex-direction: column;
}
@media (max-width: 500px) {
  .phone-shell { padding: 0; background: var(--snow); }
  .phone { width: 100%; height: 100vh; border-radius: 0; box-shadow: none; }
  .notch { display: none; }
  /* 手機版：精簡 header，讓內容有更多空間 */
  .hdr { padding: 14px 18px 6px !important; }
  .hdr-top .hdr-brand .brand-stamp { width: 30px; height: 30px; font-size: 16px; }
  .hdr-title { font-size: 22px !important; margin-top: 8px !important; }
  .hdr-title br { display: none; }
  .hdr-meta { margin-top: 4px !important; font-size: 11px !important; }
  .tabs { margin-top: 8px !important; }
  .content { padding-top: 8px !important; padding-bottom: 100px !important; }
  .day-rail { padding: 4px 18px 8px !important; }
  .day-chip { min-width: 86px !important; padding: 8px 12px !important; }
  .day-banner { margin: 8px 18px 10px !important; padding: 14px 18px !important; }
  .db-big { font-size: 20px !important; }
  .day-summary { margin-bottom: 10px !important; }
}

.notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 28px; background: #1a1a1a; border-radius: 16px; z-index: 100;
}

/* 頁面容器：可滾動 */
.app {
  flex: 1;
  display: flex; flex-direction: column;
  overflow: hidden;
  position: relative;
  background: var(--snow);
}

/* 背景可愛裝飾 */
.bg-deco {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.bg-deco .cloud {
  position: absolute; opacity: 0.18;
}
.bg-deco .wave {
  position: absolute; bottom: 90px; left: 0; right: 0; opacity: 0.25;
}

/* Header */
.hdr {
  position: relative; z-index: 2;
  padding: 54px 22px 14px;
  background: transparent;
}
.hdr-top { display: flex; justify-content: space-between; align-items: flex-start; }
.hdr-brand {
  display: flex; align-items: center; gap: 8px;
}
.brand-stamp {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--fuji-2);
  color: var(--snow);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ko); font-weight: 900; font-size: 18px;
  letter-spacing: -0.5px;
  box-shadow: var(--shadow-s);
}
.brand-text-sub {
  font-family: var(--font-ko); font-size: 10px; letter-spacing: 2px;
  color: var(--warm); text-transform: uppercase; font-weight: 500;
}
.brand-text-main {
  font-family: var(--font-ko); font-size: 13px; font-weight: 700;
  color: var(--ink); letter-spacing: 0.5px; margin-top: -2px;
}
.hdr-profile {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--tangerine), var(--yuzu));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 14px;
  box-shadow: var(--shadow-s);
}
.hdr-title {
  margin-top: 14px;
  font-family: var(--font-ko);
  font-size: 30px; font-weight: 900;
  color: var(--ink); letter-spacing: -0.5px;
  line-height: 1.1;
}
.hdr-title .accent {
  color: var(--fuji-2);
}
.hdr-meta {
  margin-top: 6px;
  display: flex; gap: 8px; align-items: center;
  font-size: 12px; color: var(--warm);
}
.hdr-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--warm-2); }
.hdr-date { font-weight: 500; color: var(--fuji); }

/* Tab switcher */
.tabs {
  position: relative; z-index: 2;
  margin: 12px 18px 0;
  padding: 4px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 18px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  box-shadow: inset 0 0 0 1px rgba(58,90,138,0.06), var(--shadow-s);
}
.tab-btn {
  position: relative; z-index: 1;
  padding: 10px 6px;
  border: none; background: transparent;
  font-family: var(--font-ko); font-weight: 700; font-size: 13px;
  color: var(--warm);
  border-radius: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: color 0.25s;
}
.tab-btn.active { color: var(--snow); }
.tab-indicator {
  position: absolute; top: 4px; bottom: 4px;
  width: calc((100% - 8px) / 3);
  background: var(--fuji-2);
  border-radius: 14px;
  transition: transform 0.35s cubic-bezier(0.34, 1.35, 0.64, 1);
  box-shadow: 0 4px 12px rgba(58,90,138,0.3);
  z-index: 0;
}

/* 內容滾動區 */
.content {
  flex: 1;
  overflow-y: auto;
  position: relative; z-index: 1;
  padding: 14px 0 110px;
  scroll-behavior: smooth;
}
.content::-webkit-scrollbar { width: 0; }

/* ===== 行程 Tab ===== */
.day-rail {
  padding: 6px 18px 10px;
  display: flex; gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.day-rail::-webkit-scrollbar { display: none; }
.day-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 92px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--snow-2);
  border: 1.5px solid transparent;
  display: flex; flex-direction: column; gap: 3px;
  cursor: pointer;
  transition: all 0.2s;
}
.day-chip .dc-num {
  font-family: var(--font-ko); font-size: 10px; font-weight: 700;
  color: var(--warm); letter-spacing: 1.2px;
}
.day-chip .dc-theme {
  font-size: 13px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.day-chip .dc-date {
  font-size: 10px; color: var(--warm-2); margin-top: 1px;
  white-space: nowrap;
}
.day-chip.active {
  background: var(--fuji-2);
  border-color: var(--fuji);
  box-shadow: 0 6px 14px rgba(58,90,138,0.25);
}
.day-chip.active .dc-num { color: rgba(255,255,255,0.7); }
.day-chip.active .dc-theme { color: #fff; }
.day-chip.active .dc-date { color: rgba(255,255,255,0.75); }

/* Day 標題 */
.day-banner {
  margin: 10px 18px 14px;
  padding: 18px 20px;
  border-radius: var(--r-l);
  background: linear-gradient(135deg, #4A7FB5 0%, #2E5B8A 100%);
  color: #fff;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-m);
}
.day-banner::before {
  content: ''; position: absolute; right: -20px; top: -20px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.day-banner::after {
  content: ''; position: absolute; right: 20px; bottom: -30px;
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.db-small {
  font-size: 11px; letter-spacing: 2px;
  opacity: 0.8; font-weight: 500;
}
.db-big {
  font-family: var(--font-ko); font-size: 24px; font-weight: 900;
  margin-top: 2px; letter-spacing: -0.5px;
}
.db-sub {
  font-size: 12px; opacity: 0.85; margin-top: 4px;
  font-weight: 400;
}
.db-foot {
  display: flex; gap: 10px; margin-top: 12px;
  font-size: 11px; opacity: 0.9;
  align-items: center;
}
.db-foot .pill {
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 4px;
}

/* 時間軸 */
.timeline {
  padding: 2px 18px 12px;
  position: relative;
}
.tl-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  position: relative;
  padding-bottom: 12px;
}
.tl-left {
  display: flex; flex-direction: column; align-items: center;
  position: relative; padding-top: 14px;
}
.tl-time {
  font-family: var(--font-ko); font-size: 10px; font-weight: 700;
  color: var(--fuji); line-height: 1.25; text-align: center;
  letter-spacing: -0.3px;
}
.tl-dot {
  margin-top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff;
  border: 3px solid var(--fuji-2);
  box-shadow: 0 2px 6px rgba(58,90,138,0.2);
  z-index: 1;
}
.tl-line {
  position: absolute;
  top: 38px; bottom: -6px;
  left: 50%; transform: translateX(-50%);
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--warm-2) 0, var(--warm-2) 4px, transparent 4px, transparent 8px);
}
.tl-item:last-child .tl-line { display: none; }

.tl-card {
  background: #fff;
  border-radius: var(--r-m);
  padding: 14px 16px;
  box-shadow: var(--shadow-s);
  border: 1px solid rgba(58,90,138,0.06);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tl-card:active { transform: scale(0.98); }
.tl-card.expanded {
  box-shadow: var(--shadow-m);
  border-color: rgba(58,90,138,0.12);
}

.tl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tl-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
  background: var(--snow-2); color: var(--warm);
  letter-spacing: 0.5px;
}
.tl-mood {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0; margin-top: 4px;
}
.tl-title {
  font-family: var(--font-ko); font-size: 15px; font-weight: 700;
  color: var(--ink); margin-top: 6px; letter-spacing: -0.3px;
  line-height: 1.35;
}
.tl-desc {
  font-size: 11.5px; color: var(--warm); margin-top: 3px;
  font-weight: 400;
}
.tl-meta {
  display: flex; gap: 10px; margin-top: 8px;
  font-size: 10.5px; color: var(--warm);
  flex-wrap: wrap;
}
.tl-meta span { display: inline-flex; align-items: center; gap: 3px; }

.tl-info {
  margin-top: 12px; padding: 12px;
  border-radius: 14px;
  background: linear-gradient(160deg, #FAFAF7 0%, #F3F1EB 100%);
  border: 1px solid rgba(58,90,138,0.08);
}
.tl-info-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
  margin-bottom: 10px;
}
.tl-info-ko {
  font-family: var(--font-ko); font-size: 13px; font-weight: 700;
  color: var(--fuji); letter-spacing: -0.2px;
}
.tl-info-addr {
  font-size: 11px; color: var(--ink); margin-top: 4px; line-height: 1.4;
}
.tl-info-addr-ko {
  font-size: 10px; color: var(--warm-2); line-height: 1.4;
}
.tl-info-rating {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center;
  background: var(--yuzu); color: #fff;
  border-radius: 10px; padding: 4px 8px;
  box-shadow: 0 2px 6px rgba(232,194,106,0.4);
}
.tl-info-rating .star { font-size: 10px; line-height: 1; }
.tl-info-rating .num { font-size: 13px; font-weight: 700; line-height: 1.1; }
.tl-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-bottom: 10px;
}
.tl-info-cell {
  background: #fff; border-radius: 10px; padding: 6px 10px;
  border: 1px solid rgba(58,90,138,0.06);
}
.tl-info-label {
  font-size: 9.5px; color: var(--warm-2); font-weight: 500; letter-spacing: 0.5px;
}
.tl-info-val {
  font-size: 11.5px; color: var(--ink); font-weight: 700; margin-top: 1px;
}
.tl-info-sect {
  margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed rgba(58,90,138,0.12);
}
.tl-info-sect-title {
  font-size: 11px; font-weight: 700; color: var(--fuji);
  margin-bottom: 4px;
}
.tl-info-sect ul {
  margin: 0; padding: 0 0 0 16px; list-style: none;
}
.tl-info-sect li {
  font-size: 11px; color: var(--warm); line-height: 1.55;
  padding: 2px 0; position: relative;
}
.tl-info-sect li::before {
  content: '·'; position: absolute; left: -10px; color: var(--fuji-2); font-weight: 700;
}

.tl-expand {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--warm-3);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
  overflow: hidden;
}
.tl-exp-btn {
  padding: 8px 10px;
  border: 1px solid rgba(58,90,138,0.12);
  background: var(--snow);
  border-radius: 12px;
  font-family: var(--font-ko); font-size: 11px; font-weight: 700;
  color: var(--fuji);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.tl-exp-btn:active { transform: scale(0.96); background: var(--snow-2); }
.tl-exp-btn.primary {
  background: var(--fuji-2); color: #fff; border-color: var(--fuji);
}

/* Day Summary bar */
.day-summary {
  margin: 0 18px 14px;
  padding: 10px 14px;
  background: var(--snow-2);
  border-radius: var(--r-s);
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--warm);
}
.day-summary b { color: var(--fuji); font-weight: 700; }

/* ===== 指南 Tab ===== */
.guide-hero {
  margin: 6px 18px 14px;
  padding: 18px 20px;
  border-radius: var(--r-l);
  background: linear-gradient(135deg, #FAFAF7 0%, #F3F1EB 100%);
  position: relative; overflow: hidden;
  border: 1px solid rgba(58,90,138,0.08);
}
.guide-hero::after {
  content: '旅'; position: absolute; right: -10px; top: -30px;
  font-family: var(--font-ko); font-size: 150px; font-weight: 900;
  color: var(--fuji-3); opacity: 0.25; line-height: 1;
}
.guide-hero h3 { margin: 0; font-size: 11px; letter-spacing: 2px; color: var(--warm); font-weight: 500; }
.guide-hero h1 { margin: 4px 0 0; font-size: 22px; font-weight: 900; color: var(--ink); letter-spacing: -0.3px; }
.guide-hero p { margin: 4px 0 0; font-size: 12px; color: var(--warm); position: relative; z-index: 1; }

.essential-grid {
  margin: 0 18px 16px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.ess-card {
  background: #fff;
  border: 1px solid rgba(58,90,138,0.07);
  border-radius: var(--r-s);
  padding: 12px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  box-shadow: var(--shadow-s);
}
.ess-icon { font-size: 22px; }
.ess-title { font-size: 11px; color: var(--warm); font-weight: 500; }
.ess-detail { font-size: 11.5px; color: var(--ink); font-weight: 700; text-align: center; }

.section-title {
  margin: 16px 22px 8px;
  font-family: var(--font-ko); font-size: 13px; font-weight: 700;
  color: var(--fuji); letter-spacing: 1px;
  display: flex; align-items: center; gap: 6px;
}
.section-title::before {
  content: ''; width: 14px; height: 2px; border-radius: 2px; background: var(--fuji-2);
}

.tip-card {
  margin: 0 18px 10px;
  background: #fff;
  border-radius: var(--r-m);
  padding: 14px 18px;
  box-shadow: var(--shadow-s);
  border: 1px solid rgba(58,90,138,0.06);
}
.tip-card h4 {
  margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 6px;
}
.tip-card h4::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--sakura);
}
.tip-card ul { margin: 0; padding: 0; list-style: none; }
.tip-card li {
  font-size: 12.5px; color: var(--warm); padding: 4px 0 4px 12px;
  position: relative; line-height: 1.5;
}
.tip-card li::before {
  content: '·'; position: absolute; left: 4px; color: var(--fuji-2); font-weight: 700;
}

.phrase-group {
  margin: 0 18px 14px;
}
.phrase-cat {
  font-family: var(--font-zh);
  font-size: 12px; font-weight: 700;
  color: var(--fuji);
  letter-spacing: 1px;
  padding: 4px 10px;
  display: inline-block;
  background: var(--fuji-3);
  border-radius: 999px;
  margin-bottom: 8px;
}

.phrase-card {
  display: flex; align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 8px;
  background: linear-gradient(135deg, #fff 0%, #FAFAF7 100%);
  border-radius: var(--r-m);
  padding: 12px 14px;
  box-shadow: var(--shadow-s);
  border: 1px solid rgba(46,91,138,0.06);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.phrase-card:active { transform: scale(0.98); }
.phrase-card.playing {
  border-color: var(--fuji-2);
  box-shadow: 0 0 0 3px rgba(74,127,181,0.15), var(--shadow-m);
}
.phrase-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.phrase-ko {
  font-family: var(--font-ko); font-size: 17px; font-weight: 700; color: var(--ink);
  line-height: 1.3;
}
.phrase-zh { font-size: 13px; color: var(--fuji); font-weight: 600; }
.phrase-romaji {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 10.5px; color: var(--warm-2);
  letter-spacing: 0.5px;
  margin-top: 1px;
}
.phrase-play {
  flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--fuji-3);
  color: var(--fuji);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.phrase-card.playing .phrase-play {
  background: var(--fuji);
  color: #fff;
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ===== 天氣 Tab ===== */
.w-hero {
  margin: 6px 18px 12px;
  padding: 22px 22px 18px;
  border-radius: var(--r-l);
  background: linear-gradient(160deg, #A8C5E2 0%, #4A7FB5 100%);
  color: #fff;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-m);
}
.w-hero::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, transparent 70%);
}
.w-hero::after {
  content: ''; position: absolute; bottom: -60px; left: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
}
.w-hero-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.w-hero-top > div > .sub { font-size: 11px; opacity: 0.85; letter-spacing: 2px; }
.w-hero-top > div > .loc { font-family: var(--font-ko); font-size: 18px; font-weight: 700; margin-top: 2px; letter-spacing: -0.3px; }
.w-hero-temp {
  font-family: var(--font-ko); font-size: 72px; font-weight: 300;
  margin-top: 12px; line-height: 1; position: relative; z-index: 1;
  letter-spacing: -3px;
}
.w-hero-temp sup { font-size: 24px; font-weight: 400; vertical-align: super; top: -12px; position: relative; margin-left: -4px; }
.w-hero-cond { font-size: 14px; font-weight: 500; opacity: 0.95; margin-top: -4px; position: relative; z-index: 1; }
.w-hero-meta {
  display: flex; gap: 12px; margin-top: 14px;
  font-size: 11px; opacity: 0.9; position: relative; z-index: 1;
}
.w-hero-meta span { display: inline-flex; align-items: center; gap: 4px; }

.w-list {
  margin: 0 18px;
  background: #fff;
  border-radius: var(--r-m);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  border: 1px solid rgba(58,90,138,0.06);
}
.w-row {
  display: grid;
  grid-template-columns: 70px 1fr 38px auto;
  align-items: center;
  padding: 12px 16px;
  gap: 8px;
  border-bottom: 1px solid var(--snow-2);
}
.w-row:last-child { border-bottom: none; }
.w-row-day {
  font-family: var(--font-ko); font-size: 13px; font-weight: 700; color: var(--ink);
}
.w-row-date { font-size: 10px; color: var(--warm); margin-top: 1px; }
.w-row-cond { font-size: 12px; color: var(--warm); }
.w-row-temps { font-size: 13px; color: var(--ink); font-weight: 700; text-align: right; }
.w-row-temps .low { color: var(--warm-2); font-weight: 500; margin-right: 4px; }

/* 穿搭建議 */
.w-advice {
  margin: 16px 18px 0;
  padding: 14px 16px;
  background: var(--snow-2);
  border-radius: var(--r-m);
  display: flex; gap: 12px; align-items: flex-start;
}
.w-advice-emoji {
  font-size: 28px;
  width: 44px; height: 44px; border-radius: 12px;
  background: #fff; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-s);
}
.w-advice h4 { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink); }
.w-advice p { margin: 3px 0 0; font-size: 11.5px; color: var(--warm); line-height: 1.55; }

/* ===== 底部浮動導覽 ===== */
.nav {
  position: absolute;
  bottom: 18px; left: 18px; right: 18px;
  height: 62px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 26px;
  box-shadow: 0 8px 28px rgba(58,90,138,0.15), 0 2px 6px rgba(58,90,138,0.08),
              inset 0 0 0 1px rgba(255,255,255,0.6);
  display: grid; grid-template-columns: repeat(3, 1fr);
  z-index: 50;
  overflow: hidden;
}
.nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  border: none; background: transparent;
  color: var(--warm-2); cursor: pointer;
  font-family: var(--font-ko); font-size: 10px; font-weight: 700;
  transition: color 0.2s;
  position: relative;
  letter-spacing: 0.5px;
}
.nav-btn.active { color: var(--fuji); }
.nav-btn::before {
  content: ''; position: absolute; top: 6px;
  width: 28px; height: 4px; border-radius: 4px;
  background: var(--fuji-2);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-btn.active::before { transform: scaleX(1); }

/* tweaks panel */
.tw-toggle {
  position: fixed; bottom: 20px; right: 20px;
  padding: 10px 14px; border-radius: 14px;
  background: var(--ink); color: var(--snow);
  font-family: var(--font-ko); font-size: 12px; font-weight: 700;
  border: none; cursor: pointer;
  box-shadow: var(--shadow-m);
  z-index: 200;
  display: none;
}
.tw-panel {
  position: fixed; bottom: 70px; right: 20px; width: 260px;
  background: #fff; border-radius: var(--r-m);
  padding: 14px;
  box-shadow: var(--shadow-l);
  z-index: 200; display: none;
  font-family: var(--font-tc);
}
.tw-panel.open { display: block; }
.tw-panel h4 { margin: 0 0 10px; font-size: 13px; color: var(--ink); }
.tw-row { display: flex; justify-content: space-between; align-items: center; margin: 8px 0; font-size: 12px; color: var(--warm); }
.tw-row .opts { display: flex; gap: 4px; }
.tw-opt {
  padding: 4px 9px; border-radius: 8px; font-size: 11px; font-weight: 600;
  background: var(--snow-2); color: var(--warm); border: none; cursor: pointer;
}
.tw-opt.active { background: var(--fuji-2); color: #fff; }
.tw-swatch {
  width: 22px; height: 22px; border-radius: 7px; border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
  cursor: pointer;
}
.tw-swatch.active { box-shadow: 0 0 0 2px var(--ink); }

/* Fade in */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeUp 0.4s ease both; }

/* 背景小元素 */
.deco-mt {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 140px; pointer-events: none;
  z-index: 0; opacity: 0.08;
}
