:root{
  --bg:#0b1220;
  --card:#111a2e;
  --muted:#9fb0d0;
  --text:#eef2ff;
  --accent:#4fd1c5;
  --accent2:#60a5fa;
  --danger:#fbbf24;
  --line:#1f2a44;
}

*{box-sizing:border-box;}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans TC", sans-serif;
}

.app-header{
  position:sticky; top:0; z-index:10;
  padding:16px 18px;
  background:linear-gradient(180deg,#0e1730,#0b1220);
  border-bottom:1px solid var(--line);
}
.title{font-size:20px; font-weight:700;}
.subtitle{font-size:13px; color:var(--muted); margin-top:2px;}

.app{padding:14px 14px 24px;}
.page{display:flex; flex-direction:column; gap:12px;}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  box-shadow:0 6px 18px rgba(0,0,0,.35);
}

.section-title{
  font-size:15px; font-weight:800; margin-bottom:8px;
}

/* =========================
   ✅ 頁面 Topbar
========================= */
.page-topbar{
  display:flex;
  align-items:center;
  gap:10px;
}
.back-home-btn{
  border:none;
  background:#0e1526;
  color:var(--text);
  padding:8px 10px;
  border-radius:10px;
  font-weight:800;
  cursor:pointer;
  border:1px solid #18233f;
}
.page-title{
  font-size:16px;
  font-weight:900;
}

/* =========================
   ✅ Home 首頁
========================= */
.home-page{gap:14px;}

.hero-card{
  padding:0;
  overflow:hidden;
  position:relative;
}
.hero-title{
  font-size:18px;
  font-weight:900;
  padding:12px 12px 2px;
}
.hero-subtitle{
  font-size:13px;
  color:var(--muted);
  padding:0 12px 10px;
}
.hero-img{
  width:100%;
  height:170px;
  object-fit:cover;
  border-top:1px solid var(--line);
}

.home-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.home-btn{
  background:#0e1526;
  border:1px solid #18233f;
  border-radius:14px;
  padding:14px 8px;
  color:var(--text);
  cursor:pointer;
  display:grid;
  gap:6px;
  justify-items:center;
  box-shadow:0 4px 10px rgba(0,0,0,.25);
  transition:.12s transform ease;
}
.home-btn:active{ transform:scale(.97); }
.home-btn-icon{ font-size:22px; }
.home-btn-text{ font-size:13px; font-weight:900; }

/* =========================
   Modal
========================= */
.modal-overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.6);
  display:flex; align-items:center; justify-content:center;
  z-index:9999;
}
.modal{
  width:min(92vw, 760px);
  max-height:88vh;
  background:#0e1526;
  border:1px solid #18233f;
  border-radius:14px;
  display:flex; flex-direction:column;
  overflow:hidden;
}
.modal-head{
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 12px;
  background:#0b1220;
  border-bottom:1px solid #18233f;
}
.modal-title{ font-weight:900; font-size:14px; }
.modal-close{
  border:none; background:transparent; color:var(--text);
  font-size:18px; cursor:pointer; font-weight:900;
}
.modal-body{
  padding:10px;
  overflow:auto;
}
.modal-img{
  width:100%;
  border-radius:10px;
}
.modal-iframe{
  width:100%;
  height:70vh;
  border:none;
  border-radius:10px;
}
.modal-download{
  display:inline-block;
  margin-top:10px;
  padding:10px 12px;
  border-radius:10px;
  background:var(--accent2);
  color:#001018;
  font-weight:900;
  text-decoration:none;
}

/* =========================
   原樣式（行程/探索/航班/飯店/配套/錢幣/筆記）
   你原本的我保留（略）
========================= */

.day-title{display:flex; flex-direction:column; gap:2px; margin-bottom:8px;}
.day-date{font-size:12px; color:var(--muted);}
.day-name{font-size:16px; font-weight:700;}

.timeline{display:flex; flex-direction:column; gap:8px;}
.tl-row{
  display:grid; grid-template-columns:72px 1fr; gap:8px; align-items:start;
  padding:8px; border-radius:12px; background:#0e1526;
  border:1px solid #18233f;
}
.tl-time{color:var(--muted); font-size:12px; padding-top:2px;}
.tl-text{font-size:14px; line-height:1.4;}
.tl-place{font-size:12px; color:var(--accent); margin-top:2px;}
.tl-note{font-size:12px; color:var(--danger); margin-top:4px;}
.tl-map{display:inline-block; margin-top:6px; color:var(--accent2); text-decoration:none; font-size:12px;}

.spot-title{font-size:15px; font-weight:700;}
.spot-desc{color:var(--muted); font-size:13px; margin:6px 0 8px;}
.spot-subtitle{
  font-size:13px;
  color:var(--accent);
  margin-top:4px;
  margin-bottom:6px;
  font-weight:700;
}
.spot-map{color:var(--accent2); text-decoration:none; font-size:12px;}
.spot-card img{
  width:100%; border-radius:12px; margin-top:8px; border:1px solid #233055;
}
.chip{
  display:inline-block; font-size:11px; padding:3px 8px; border-radius:999px;
  background:#0e1526; border:1px solid #213157; color:var(--muted);
  margin-bottom:6px;
}

.flight-row, .hotel-row{
  padding:10px; border-radius:12px; background:#0e1526;
  border:1px solid #18233f; margin-top:8px;
}

.flight-top{display:flex; justify-content:space-between; align-items:center;}
.flight-no{font-size:15px; font-weight:800;}
.flight-airline{font-size:12px; color:var(--muted);}
.flight-mid{display:flex; justify-content:space-between; margin-top:6px; font-size:14px;}
.flight-bot{display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; font-size:12px; color:var(--muted);}
.pnr{margin-top:6px; font-size:12px; color:var(--accent);}

.hotel-name{font-size:15px; font-weight:800;}
.hotel-addr{font-size:12px; color:var(--muted); margin-top:4px;}
.hotel-meta{font-size:12px; color:var(--muted); margin-top:6px; display:grid; gap:2px;}
.hotel-note{font-size:12px; color:var(--danger); margin-top:6px;}

.muted{color:var(--muted); font-size:12px;}

/* ====== Files 檔案頁 ====== */
.files-box{display:grid; gap:8px;}
.files-input{
  width:100%;
  padding:10px;
  border-radius:12px;
  border:1px solid #233055;
  background:#0b1220;
  color:var(--text);
}
.files-name-input{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #233055;
  background:#0b1220;
  color:var(--text);
  font-size:14px;
  outline:none;
}
.files-save-btn{
  border:none; border-radius:12px;
  padding:10px; font-size:14px;
  font-weight:900; color:#001018;
  background:var(--accent);
  cursor:pointer;
}
.files-hint{line-height:1.5;}

.file-list{display:grid; gap:8px; margin-top:8px;}
.file-item-row{
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:6px;
  align-items:center;
  padding:8px 10px;
  border-radius:12px;
  background:#0e1526;
  border:1px solid #18233f;
}
.file-item-title{font-weight:900; font-size:14px;}
.file-item-meta{font-size:12px;}
.file-open-btn{
  border:none; border-radius:10px;
  padding:6px 8px; font-weight:900;
  background:var(--accent2); color:#001018; cursor:pointer;
}
.file-del-btn{
  border:none; border-radius:10px;
  padding:6px 8px; font-weight:900;
  background:#ef4444; color:white; cursor:pointer;
}

/* ====== Weather 7日天氣 ====== */
.weather-box{display:grid; gap:8px;}
.weather-row{
  display:grid; grid-template-columns:1fr auto; gap:8px;
}
.weather-select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #233055;
  background:#0b1220;
  color:var(--text);
  font-size:14px;
}
.weather-btn{
  border:none; border-radius:12px;
  padding:10px 12px; font-size:14px;
  font-weight:900; color:#001018;
  background:var(--accent2);
  cursor:pointer;
}
.weather-list{display:grid; gap:8px; margin-top:6px;}
.weather-item{
  padding:10px;
  border-radius:12px;
  background:#0e1526;
  border:1px solid #18233f;
  display:grid; gap:4px;
}
.weather-date{font-weight:900;}
.weather-desc{font-size:14px;}
.weather-temp{font-size:14px;}
.weather-rain{font-size:12px;}

/* ====== Map Search ====== */
.map-box{display:grid; gap:8px;}
.map-input{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #233055;
  background:#0b1220;
  color:var(--text);
  font-size:14px;
  outline:none;
}
.map-btn{
  border:none;
  border-radius:12px;
  padding:10px;
  font-size:14px;
  font-weight:900;
  color:#001018;
  background:var(--accent2);
  cursor:pointer;
}
