/* CDDE08 mirror — portal styles. No external fonts or CDNs; system fonts only. */
:root {
  --navy: #0b2a4a;
  --navy2: #123f6b;
  --ice: #e8f2fb;
  --ice2: #f4f9fe;
  --accent: #1b7fbf;
  --accent2: #e2574c;
  --gold: #b8860b;
  --text: #1d2b38;
  --muted: #5a6b7a;
  --line: #d5e2ee;
  --ok: #1e7d46;
  --card: #ffffff;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #dfeefb 0%, #f7fbff 220px, #ffffff 220px);
  line-height: 1.65;
}
header.top {
  background: linear-gradient(135deg, var(--navy), var(--navy2) 60%, #0e5a8a);
  color: #fff;
  padding: 28px 20px 18px;
}
header.top .wrap { max-width: 1020px; margin: 0 auto; }
header.top h1 { margin: 0 0 4px; font-size: 28px; line-height: 1.3; }
header.top .sub { opacity: .92; font-size: 15px; }
header.top .meta { margin-top: 10px; font-size: 13px; opacity: .85; }
header.top .meta b { color: #ffd98a; }
nav.tabs {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 2px solid var(--line);
  overflow-x: auto; white-space: nowrap;
}
nav.tabs .wrap { max-width: 1020px; margin: 0 auto; display: flex; }
nav.tabs button {
  border: 0; background: none; cursor: pointer;
  padding: 12px 14px; font-size: 15px; font-family: inherit; color: var(--navy);
  border-bottom: 3px solid transparent;
}
nav.tabs button.active { border-bottom-color: var(--accent2); font-weight: 700; color: var(--accent2); }
main { max-width: 1020px; margin: 0 auto; padding: 20px 16px 60px; }
section.tab { display: none; }
section.tab.active { display: block; }
h2 { color: var(--navy); font-size: 22px; margin: 26px 0 10px; }
h3 { color: var(--navy2); font-size: 18px; margin: 18px 0 8px; }
p { margin: 8px 0; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin: 12px 0; box-shadow: 0 1px 3px rgba(11,42,74,.06);
}
.card h3 { margin-top: 0; }
.note {
  background: var(--ice2); border-left: 4px solid var(--accent);
  padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 12px 0; font-size: 14px; color: #33506a;
}
.warn {
  background: #fff7e6; border-left: 4px solid var(--gold);
  padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 12px 0; font-size: 14px;
}
.tag {
  display: inline-block; background: var(--ice); color: var(--navy);
  border-radius: 999px; padding: 2px 10px; font-size: 13px; margin: 2px 4px 2px 0;
}
.tag.route-b { background: #fdeceb; color: #8a2b22; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.progress { height: 12px; background: #e3edf5; border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--accent), #35a3dd); }
.big-num { font-size: 40px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.countdown { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.countdown .cell {
  background: var(--navy); color: #fff; border-radius: 10px; padding: 12px 16px;
  text-align: center; min-width: 84px;
}
.countdown .cell .n { font-size: 30px; font-weight: 800; line-height: 1.1; }
.countdown .cell .l { font-size: 13px; opacity: .85; }
label.check {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 6px; border-bottom: 1px solid #eef3f8; cursor: pointer;
}
label.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
label.check.done span.txt { text-decoration: line-through; color: var(--muted); }
input[type="text"], input[type="number"], input[type="date"], select, textarea {
  font-family: inherit; font-size: 15px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 8px; width: 100%; background: #fff;
}
button.btn {
  font-family: inherit; font-size: 15px; cursor: pointer;
  background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 9px 16px;
}
button.btn.secondary { background: #fff; color: var(--navy); border: 1px solid var(--line); }
button.btn:disabled { opacity: .55; cursor: default; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--ice); color: var(--navy); }
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.day-head .d { font-size: 18px; font-weight: 800; color: var(--navy); }
.day-head .city { font-weight: 700; color: var(--accent2); }
.pill { display: inline-block; background: var(--navy); color: #fff; border-radius: 6px; padding: 1px 8px; font-size: 13px; }
.muted { color: var(--muted); font-size: 14px; }
.highlight { outline: 3px solid #ffd98a; background: #fffbe8; }
.search-row { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.search-row input { flex: 1; min-width: 200px; }
.fact-card { text-align: center; padding: 22px 16px; }
.fact-card .fact { font-size: 18px; font-weight: 700; color: var(--navy); margin: 10px 0; }
.fact-card .fact-sub { color: var(--muted); font-size: 14px; }
.tool-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.tool-row > div { flex: 1; min-width: 160px; }
.tool-row label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.result-box {
  background: var(--ice2); border: 1px dashed var(--accent); border-radius: 8px;
  padding: 12px 14px; margin: 10px 0;
}
footer { max-width: 1020px; margin: 0 auto; padding: 0 16px 40px; color: var(--muted); font-size: 13px; }
.error { color: #a33; }
@media (max-width: 640px) {
  header.top h1 { font-size: 22px; }
  .countdown .cell { min-width: 70px; padding: 10px 12px; }
}
