:root {
  color-scheme: dark;
  --bg: #07090c;
  --surface: #0d1015;
  --surface-2: #12161d;
  --line: #2b313b;
  --line-soft: #1b2028;
  --text: #f5f7fa;
  --muted: #aab2bf;
  --accent: #7fc8ff;
  --accent-strong: #36a7ff;
  --good: #9de2b6;
  --warn: #ffd38a;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% -20%, rgba(54,167,255,.16), transparent 34rem),
    radial-gradient(circle at 90% 10%, rgba(157,226,182,.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.62;
  letter-spacing: .01em;
}
button, a { font: inherit; }
a { color: inherit; }

.hero { border-bottom: 1px solid var(--line-soft); }
.hero-inner { max-width: 1120px; margin: 0 auto; padding: 58px 24px 38px; }
.eyebrow, .section-kicker {
  font-size: .76rem; font-weight: 800; letter-spacing: .18em; color: var(--accent);
}
h1 { margin: 10px 0 6px; font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.08; letter-spacing: -.045em; }
.subtitle { margin: 0; color: var(--muted); font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button {
  border: 1px solid var(--line); color: var(--text); background: var(--surface-2);
  padding: 10px 14px; border-radius: 12px; cursor: pointer; transition: .18s ease;
}
.button:hover { transform: translateY(-1px); border-color: #506070; }
.button.primary { background: var(--text); color: #101318; border-color: var(--text); font-weight: 800; }
.privacy-note { margin: 18px 0 0; color: var(--warn); font-size: .82rem; }

.day-nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(16px); background: rgba(7,9,12,.86); border-bottom: 1px solid var(--line-soft); }
.day-nav-inner { max-width: 1120px; margin: auto; padding: 10px 24px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.day-nav a { flex: 0 0 auto; text-decoration: none; color: var(--muted); border: 1px solid transparent; padding: 7px 11px; border-radius: 999px; font-size: .88rem; }
.day-nav a:hover, .day-nav a.active { color: var(--text); border-color: var(--line); background: var(--surface); }

.container { max-width: 1120px; margin: 0 auto; padding: 38px 24px 80px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.section-heading h2 { margin: 3px 0 0; font-size: 1.8rem; letter-spacing: -.03em; }
.overview { margin-bottom: 44px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 16px; }
.summary-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.006)); box-shadow: var(--shadow); }
.summary-card h3 { margin: 0 0 14px; font-size: 1rem; color: var(--muted); }
.summary-item { padding: 13px 0; border-top: 1px solid var(--line-soft); }
.summary-item:first-child { border-top: 0; padding-top: 0; }
.summary-primary { font-weight: 800; }
.summary-secondary { color: var(--muted); font-size: .9rem; }
.stay-item { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.stay-item:first-child { border-top: 0; padding-top: 0; }
.stay-date { color: var(--accent); font-weight: 800; }
.stay-name { font-weight: 800; }
.stay-meta { color: var(--muted); font-size: .86rem; margin-top: 2px; }

.days { display: grid; gap: 26px; }
.day-card { scroll-margin-top: 76px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(13,16,21,.88); box-shadow: var(--shadow); }
.day-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 22px 22px 17px; border-bottom: 1px solid var(--line); background: linear-gradient(115deg, rgba(127,200,255,.08), transparent 44%); }
.day-date { color: var(--accent); font-weight: 850; font-size: .92rem; }
.day-title { margin: 3px 0 0; font-size: clamp(1.2rem, 3vw, 1.65rem); letter-spacing: -.025em; }
.day-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.icon-button { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 10px; padding: 7px 10px; color: var(--muted); cursor: pointer; font-size: .84rem; }
.icon-button:hover { color: var(--text); border-color: #4e5967; }

.table-wrap { overflow-x: auto; }
.schedule-table { width: 100%; border-collapse: collapse; min-width: 580px; }
.schedule-table th, .schedule-table td { padding: 13px 20px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.schedule-table th { color: var(--muted); font-size: .82rem; text-align: left; letter-spacing: .06em; background: rgba(255,255,255,.012); }
.schedule-table th:first-child, .schedule-table td:first-child { width: 190px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.schedule-table td:last-child { font-size: .98rem; }
.schedule-table tr:last-child td { border-bottom: 0; }
.schedule-table tr:hover td { background: rgba(255,255,255,.018); }
.schedule-table tr.highlight td:last-child { font-weight: 800; }
.schedule-table tr.stay td { background: rgba(127,200,255,.045); font-weight: 800; }
.day-note { margin: 0; padding: 14px 20px; color: var(--warn); border-top: 1px solid var(--line); background: rgba(255,211,138,.04); font-size: .88rem; }

footer { max-width: 1120px; margin: auto; padding: 0 24px 40px; display: flex; justify-content: space-between; color: var(--muted); font-size: .82rem; }
footer a { text-decoration: none; }
.toast { position: fixed; right: 18px; bottom: 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #171c24; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  .hero-inner { padding-top: 42px; }
  .overview-grid { grid-template-columns: 1fr; }
  .day-header { display: block; }
  .day-actions { justify-content: flex-start; margin-top: 14px; }
  .schedule-table { min-width: 0; }
  .schedule-table thead { display: none; }
  .schedule-table, .schedule-table tbody, .schedule-table tr, .schedule-table td { display: block; width: 100%; }
  .schedule-table tr { display: grid; grid-template-columns: 118px minmax(0,1fr); border-bottom: 1px solid var(--line-soft); }
  .schedule-table tr:last-child { border-bottom: 0; }
  .schedule-table td { border: 0; padding: 12px 14px; }
  .schedule-table td:first-child { width: auto; text-align: left; padding-right: 2px; color: var(--muted); }
  .schedule-table td:last-child { padding-left: 6px; }
  .stay-item { grid-template-columns: 68px minmax(0,1fr); }
  footer { display: block; }
}

@media print {
  :root { color-scheme: light; }
  body { background: white; color: #111; font-size: 10pt; }
  .hero, .day-nav { position: static; background: white; border-color: #ccc; }
  .hero-inner, .container { max-width: none; padding-left: 12mm; padding-right: 12mm; }
  .hero-actions, .privacy-note, .day-nav, .day-actions, footer, .toast { display: none !important; }
  .subtitle, .summary-secondary, .stay-meta, .summary-card h3, .schedule-table th, .schedule-table td:first-child { color: #444; }
  .overview-grid { grid-template-columns: 1fr 1.4fr; }
  .summary-card, .day-card { box-shadow: none; background: white; border-color: #bbb; break-inside: avoid; }
  .day-card { page-break-inside: avoid; margin-bottom: 8mm; }
  .day-header { background: white; border-color: #bbb; }
  .day-date, .section-kicker, .eyebrow, .stay-date { color: #145e8d; }
  .schedule-table th, .schedule-table td { border-color: #ddd; }
  .day-note { color: #6a4300; background: #fff9e9; }
}
