:root {
  --ink: #17232b;
  --muted: #66747a;
  --paper: #f7f3ea;
  --surface: #ffffff;
  --navy: #153f55;
  --navy-deep: #0c2d3e;
  --teal: #23736b;
  --teal-soft: #e6f0ec;
  --brick: #c85845;
  --brick-soft: #f7e7df;
  --sand: #e8d5b1;
  --line: #dde2df;
  --shadow-sm: 0 8px 24px rgba(24, 50, 59, 0.08);
  --shadow-lg: 0 28px 70px rgba(12, 45, 62, 0.18);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --header-h: 74px;
  --shell: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.22; letter-spacing: -0.025em; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 9999;
  background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 234, 0.9);
  border-bottom: 1px solid rgba(21, 63, 85, 0.08);
  backdrop-filter: blur(18px);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand img { border-radius: 13px; box-shadow: 0 5px 14px rgba(21, 63, 85, 0.16); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.12; }
.brand-copy strong { font-size: 16px; letter-spacing: 0.06em; color: var(--navy); }
.brand-copy small { margin-top: 5px; font-size: 8px; letter-spacing: 0.14em; color: #78878c; }
.desktop-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.desktop-nav a {
  position: relative; padding: 11px 14px; border-radius: 10px;
  color: #506066; font-size: 14px; font-weight: 600; transition: .2s ease;
}
.desktop-nav a:hover { color: var(--navy); background: rgba(21, 63, 85, 0.06); }
.desktop-nav a.active { color: var(--navy); }
.desktop-nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--brick); border-radius: 999px;
}
.header-search {
  display: flex; align-items: center; gap: 7px; border: 1px solid #d7dfdc;
  border-radius: 10px; padding: 8px 9px; background: rgba(255,255,255,.72);
  cursor: pointer; color: #53656b; font-size: 13px;
}
.header-search span:first-child { font-size: 20px; line-height: 1; }
.header-search kbd { border: 1px solid #d6ddda; border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; color: #8a9699; font-size: 10px; }
.header-search:hover { border-color: var(--teal); color: var(--navy); }

/* General components */
.app-page { display: none; min-height: calc(100vh - var(--header-h)); }
.app-page.active { display: block; animation: page-in .35s ease; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.button {
  border: 0; border-radius: 12px; min-height: 46px; padding: 0 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 14px; cursor: pointer; transition: .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--brick); color: #fff; box-shadow: 0 10px 22px rgba(200, 88, 69, .24); }
.button-primary:hover { background: #b94d3b; box-shadow: 0 12px 28px rgba(200, 88, 69, .3); }
.button-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.button-ghost:hover { background: rgba(255,255,255,.15); }
.button-light { background: #fff; color: var(--navy); }
.button-outline-light { color: #fff; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.section { padding-block: 88px; }
.section-tint { background: #edf1eb; }
.section-kicker {
  display: inline-block; color: var(--teal); font-size: 12px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px;
}
.section-kicker.light { color: #d6e6df; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-heading-row h2 { font-family: Georgia, "Songti SC", serif; font-size: clamp(28px, 3vw, 42px); margin: 0; color: var(--navy-deep); }
.text-link { color: var(--teal); font-size: 14px; font-weight: 700; white-space: nowrap; }
.text-link:hover { color: var(--brick); }
.source-chip, .offline-badge {
  border-radius: 999px; background: var(--teal-soft); color: var(--teal);
  padding: 7px 12px; font-size: 11px; font-weight: 700;
}

/* Home hero */
.hero {
  position: relative; overflow: hidden; min-height: 620px; color: #fff;
  background:
    radial-gradient(circle at 74% 30%, rgba(70, 142, 127, .42), transparent 32%),
    linear-gradient(120deg, #0b2b3d 0%, #174c5d 54%, #245f58 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.09), transparent 65%),
    radial-gradient(circle at 12% 100%, rgba(200,88,69,.22), transparent 30%);
}
.hero::after {
  content: "嘉"; position: absolute; right: -1vw; top: -145px;
  font: 900 560px/1 Georgia, serif; color: rgba(255,255,255,.025); pointer-events: none;
}
.hero::after {
  content: "";
  top: auto;
  right: -110px;
  bottom: -260px;
  width: 520px;
  height: 520px;
  border: 78px solid rgba(255,255,255,.035);
  border-radius: 42%;
  color: transparent;
  font: initial;
  transform: rotate(18deg);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; padding-block: 76px 104px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #d6e6df; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.eyebrow span { width: 28px; height: 2px; background: var(--brick); }
.hero-copy h1 { margin: 22px 0 24px; font-family: Georgia, "Songti SC", serif; font-size: clamp(45px, 5.1vw, 72px); font-weight: 700; letter-spacing: -.045em; }
.hero-copy h1 em { color: #f0d8af; font-style: normal; }
.hero-copy > p { color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.9; max-width: 610px; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.hero-note { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.64); font-size: 12px; margin-top: 28px; }
.hero-note strong { color: #fff; }
.status-dot { width: 7px; height: 7px; background: #87d3a3; border-radius: 50%; box-shadow: 0 0 0 5px rgba(135,211,163,.12); }
.hero-card-wrap { position: relative; padding: 28px; }
.hero-card {
  position: relative; z-index: 2; border-radius: 28px; padding: 26px;
  background: rgba(248, 244, 234, .96); color: var(--ink);
  box-shadow: 0 32px 90px rgba(0,0,0,.28); transform: rotate(1.2deg);
}
.hero-card::before {
  content: ""; position: absolute; inset: 8px; border: 1px solid rgba(21,63,85,.12); border-radius: 22px; pointer-events: none;
}
.hero-card-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.mini-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.weather-pill { background: var(--teal-soft); color: var(--teal); font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 999px; }
.countdown { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 4px; color: var(--navy); }
.countdown strong { font: 700 48px/1 Georgia, serif; }
.countdown span { color: var(--muted); font-size: 12px; }
.date-line { display: flex; justify-content: space-between; padding-bottom: 18px; color: var(--muted); font-size: 12px; }
.mini-map-card { position: relative; height: 230px; overflow: hidden; border-radius: 17px; background: #d8e1d1; }
.mini-map-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.mini-map-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(12,45,62,.45)); }
.mini-pin { position: absolute; border-radius: 999px; padding: 4px 8px; background: #fff; color: var(--navy); box-shadow: 0 4px 12px rgba(0,0,0,.16); font-size: 9px; font-weight: 800; }
.mini-pin::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-right: 4px; background: var(--brick); }
.mini-pin.p1 { left: 46%; bottom: 22%; }
.mini-pin.p2 { left: 47%; top: 43%; }
.mini-pin.p3 { right: 9%; top: 35%; }
.card-link { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding-top: 18px; color: var(--navy); font-size: 13px; font-weight: 800; }
.floating-tag {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px;
  padding: 10px 13px; border-radius: 11px; background: #fff; color: var(--navy);
  box-shadow: var(--shadow-lg); font-size: 11px; font-weight: 700;
}
.floating-tag span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--teal-soft); color: var(--teal); }
.tag-one { left: -2px; bottom: 58px; transform: rotate(-4deg); }
.tag-two { right: 0; top: 77px; transform: rotate(4deg); }

/* Ask box */
.search-lift { position: relative; z-index: 5; margin-top: -50px; }
.answer-box { background: #fff; border: 1px solid rgba(21,63,85,.1); box-shadow: var(--shadow-lg); border-radius: 25px; padding: 30px; }
.answer-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.answer-heading h2 { color: var(--navy-deep); font-size: 27px; margin: 0 0 4px; }
.answer-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.answer-form { position: relative; display: flex; gap: 10px; margin-top: 22px; }
.answer-form .button { flex: 0 0 auto; min-width: 96px; white-space: nowrap; }
.answer-form input, .page-search input, .map-search-wrap input {
  width: 100%; min-height: 52px; border: 1px solid #d7dfdc; border-radius: 12px;
  background: #fbfcfa; outline: none; padding: 0 18px 0 48px; color: var(--ink); transition: .2s ease;
}
.answer-form input:focus, .page-search input:focus, .map-search-wrap input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(35,115,107,.1); }
.search-symbol { position: absolute; left: 17px; top: 9px; z-index: 2; color: var(--teal); font-size: 27px; }
.quick-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.quick-topic {
  border: 1px solid #e2e6e2; background: #fafbf8; color: #5e6d71;
  border-radius: 999px; padding: 7px 11px; cursor: pointer; font-size: 11px; transition: .2s ease;
}
.quick-topic:hover { color: var(--teal); border-color: #a9cec2; background: var(--teal-soft); }
.inline-answer { margin-top: 22px; padding: 20px; border: 1px solid #cfe2dc; border-left: 4px solid var(--teal); background: #f1f7f4; border-radius: 12px; }
.inline-answer .answer-label { display: flex; align-items: center; gap: 8px; color: var(--teal); font-size: 11px; font-weight: 800; }
.inline-answer h3 { margin: 8px 0 7px; color: var(--navy); font-size: 17px; }
.inline-answer p { margin-bottom: 9px; font-size: 14px; }
.inline-answer a { color: var(--teal); font-size: 11px; font-weight: 700; }

/* Home cards */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card {
  position: relative; overflow: hidden; min-height: 285px; padding: 28px;
  border: 1px solid #dfe4df; border-radius: var(--radius); background: rgba(255,255,255,.7); transition: .25s ease;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: #c8d8d1; }
.step-card.accent { color: #fff; border-color: transparent; background: linear-gradient(145deg, var(--teal), var(--navy)); box-shadow: var(--shadow-sm); }
.step-card.accent p, .step-card.accent a { color: rgba(255,255,255,.76); }
.step-no { position: absolute; right: 22px; top: 16px; color: rgba(21,63,85,.08); font: 700 58px/1 Georgia, serif; }
.step-card.accent .step-no { color: rgba(255,255,255,.1); }
.step-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 13px; background: var(--teal-soft); color: var(--teal); font-size: 20px; }
.step-card.accent .step-icon { background: rgba(255,255,255,.13); color: #fff; }
.step-card h3 { margin: 46px 0 12px; font-size: 21px; }
.step-card p { color: var(--muted); font-size: 13px; min-height: 64px; }
.step-card a { color: var(--teal); font-size: 12px; font-weight: 800; }
.guide-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-preview-card, .guide-card {
  background: #fff; border: 1px solid #dfe5e1; border-radius: var(--radius); padding: 23px;
  cursor: pointer; transition: .23s ease;
}
.guide-preview-card:hover, .guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: #bcd2c9; }
.guide-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.guide-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brick-soft); color: var(--brick); font-size: 18px; font-weight: 800; }
.guide-category { font-size: 10px; font-weight: 800; color: var(--teal); background: var(--teal-soft); padding: 5px 8px; border-radius: 999px; }
.guide-preview-card h3, .guide-card h3 { margin-bottom: 9px; font-size: 18px; color: var(--navy-deep); }
.guide-preview-card p, .guide-card p { color: var(--muted); font-size: 12px; min-height: 58px; }
.guide-card-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid #edf0ed; color: #849095; font-size: 10px; }
.guide-card-bottom span:last-child { color: var(--teal); font-size: 16px; }
.travel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.travel-card { border: 1px solid #dfe5e1; background: #fff; border-radius: var(--radius); padding: 25px; }
.travel-card-head { display: flex; justify-content: space-between; align-items: center; }
.travel-card-icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); border-radius: 13px; font-size: 20px; }
.travel-badge { padding: 5px 8px; border-radius: 999px; color: var(--brick); background: var(--brick-soft); font-size: 9px; font-weight: 800; }
.travel-card h3 { margin: 24px 0 10px; font-size: 19px; }
.travel-card p { color: var(--muted); font-size: 12px; min-height: 58px; }
.travel-card small { display: block; padding-top: 14px; border-top: 1px dashed #dce1de; color: #869195; font-size: 10px; }
.emergency-section { padding-top: 20px; }
.emergency-panel {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 38px 42px; border-radius: 24px; color: #fff; background: linear-gradient(125deg, #8e3c30, var(--brick) 55%, #d47b57);
}
.emergency-panel::after {
  content: ""; position: absolute; right: 40%; top: -58px; width: 120px; height: 120px;
  background: linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)) center / 34px 120px no-repeat,
    linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)) center / 120px 34px no-repeat;
  pointer-events: none;
}
.emergency-panel h2 { position: relative; z-index: 1; margin-bottom: 8px; font-size: 29px; }
.emergency-panel p { position: relative; z-index: 1; margin: 0; color: rgba(255,255,255,.75); }
.emergency-actions { position: relative; z-index: 1; display: flex; gap: 10px; }

/* Secondary pages */
.page-hero { color: #fff; background: linear-gradient(115deg, var(--navy-deep), #1a5963 58%, #2d7168); padding: 68px 0 64px; }
.page-hero h1 { margin: 8px 0 14px; font-family: Georgia, "Songti SC", serif; font-size: clamp(40px, 5vw, 62px); }
.page-hero p { color: rgba(255,255,255,.72); max-width: 640px; margin-bottom: 0; }
.compact-hero { padding-bottom: 76px; }
.page-search { position: relative; max-width: 720px; margin-top: 32px; }
.page-search span { position: absolute; left: 17px; top: 9px; color: var(--teal); font-size: 27px; z-index: 1; }
.page-search input { background: #fff; border-color: transparent; box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.page-body { min-height: 520px; }
.filter-tabs, .contact-filters, .map-category-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-tab, .contact-filter, .map-category {
  border: 1px solid #d8dfdc; background: rgba(255,255,255,.66); color: #657479;
  border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 12px; font-weight: 700; transition: .2s ease;
}
.filter-tab.active, .contact-filter.active, .map-category.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-card p { min-height: 68px; }
.empty-state { padding: 80px 20px; text-align: center; color: var(--muted); }
.empty-state > span { display: block; font-size: 52px; color: #9baba7; }
.empty-state h3 { color: var(--navy); margin: 6px 0; }

/* Checklist */
.checklist-hero { background: linear-gradient(120deg, #163d50, #316a60); }
.page-hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 50px; }
.progress-card { display: flex; align-items: center; gap: 17px; min-width: 240px; padding: 18px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); border-radius: 18px; }
.progress-ring {
  width: 67px; height: 67px; display: grid; place-items: center; flex: 0 0 auto;
  border-radius: 50%; background: conic-gradient(#f0d8af 0deg, rgba(255,255,255,.16) 0deg); position: relative;
}
.progress-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #235967; }
.progress-ring span { position: relative; z-index: 1; font-size: 12px; font-weight: 800; }
.progress-card > div:last-child { display: flex; flex-direction: column; }
.progress-card strong { font-size: 20px; }
.progress-card > div:last-child span { color: rgba(255,255,255,.62); font-size: 11px; }
.checklist-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.checklist-toolbar p { margin: 0; color: var(--muted); font-size: 13px; }
.text-button { border: 0; background: transparent; color: var(--brick); cursor: pointer; font-size: 12px; font-weight: 700; }
.checklist-layout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.checklist-group { background: #fff; border: 1px solid #dfe5e1; border-radius: var(--radius); overflow: hidden; }
.checklist-group-head { padding: 24px; color: #fff; background: var(--navy); }
.checklist-group:nth-child(2) .checklist-group-head { background: var(--teal); }
.checklist-group:nth-child(3) .checklist-group-head { background: #6f5945; }
.checklist-group-head span { display: block; color: rgba(255,255,255,.6); font-size: 10px; margin-bottom: 4px; }
.checklist-group-head h2 { font-size: 21px; margin: 0; }
.checklist-items { padding: 12px; }
.check-item { display: flex; gap: 11px; align-items: start; padding: 13px 10px; border-radius: 10px; cursor: pointer; transition: .18s ease; }
.check-item:hover { background: #f5f7f3; }
.check-item input { position: absolute; opacity: 0; pointer-events: none; }
.custom-check { width: 21px; height: 21px; flex: 0 0 auto; margin-top: 1px; border: 1.5px solid #b9c4c0; border-radius: 7px; display: grid; place-items: center; color: #fff; transition: .18s ease; }
.check-item input:checked + .custom-check { border-color: var(--teal); background: var(--teal); }
.check-item input:checked + .custom-check::after { content: "✓"; font-size: 13px; }
.check-label { font-size: 12px; color: #44545a; }
.check-item input:checked ~ .check-label { color: #899492; text-decoration: line-through; }

/* Map */
.map-hero { padding-bottom: 55px; background: linear-gradient(115deg, #213f38, #396b55); }
.map-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; padding-block: 24px 90px; }
.map-sidebar { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; max-height: calc(100vh - var(--header-h) - 40px); display: flex; flex-direction: column; background: #fff; border: 1px solid #dfe4e1; border-radius: 18px; overflow: hidden; }
.map-search-wrap { position: relative; padding: 15px 15px 10px; }
.map-search-wrap span { position: absolute; z-index: 1; top: 21px; left: 28px; color: var(--teal); font-size: 21px; }
.map-search-wrap input { min-height: 44px; padding-left: 40px; font-size: 12px; }
.map-category-row { padding: 0 15px 10px; margin: 0; gap: 5px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.map-category-row::-webkit-scrollbar { display: none; }
.map-category { padding: 5px 9px; font-size: 10px; white-space: nowrap; }
.place-list { padding: 4px 8px 10px; overflow: auto; }
.place-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.place-item:hover, .place-item.active { background: var(--teal-soft); }
.place-bullet { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #edf0ec; color: var(--teal); font-size: 10px; font-weight: 800; }
.place-item.active .place-bullet { background: var(--teal); color: #fff; }
.place-item-copy { min-width: 0; display: flex; flex-direction: column; }
.place-item-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.place-item-copy span { color: #899492; font-size: 9px; }
.map-main { min-width: 0; }
.route-planner { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: end; gap: 10px; margin-bottom: 12px; padding: 15px; background: #fff; border: 1px solid #dfe4e1; border-radius: 16px; }
.route-field label { display: block; margin-bottom: 5px; color: #899492; font-size: 9px; font-weight: 800; }
.route-field select, .fee-form select { width: 100%; min-height: 42px; border: 1px solid #d6dfdb; background: #fbfcfa; border-radius: 9px; padding: 0 10px; outline: none; color: var(--ink); font-size: 12px; }
.route-field select:focus, .fee-form select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(35,115,107,.1); }
.route-arrow { align-self: center; margin-top: 18px; color: var(--teal); }
.route-result { margin-bottom: 12px; padding: 14px 16px; border: 1px solid #c9ded6; border-radius: 13px; background: var(--teal-soft); }
.route-result strong { color: var(--navy); font-size: 13px; }
.route-result p { margin: 5px 0 0; color: #58706f; font-size: 11px; }
.campus-map-frame { overflow: auto; border-radius: 18px; border: 1px solid #d7ded9; background: #dfe8da; box-shadow: var(--shadow-sm); }
.campus-map-canvas { position: relative; min-width: 780px; }
.campus-map-canvas > img { width: 100%; }
.map-pins, .route-overlay { position: absolute; inset: 0; }
.route-overlay { width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.route-path-shadow { fill: none; stroke: rgba(255,255,255,.95); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.route-path { fill: none; stroke: var(--brick); stroke-width: .7; stroke-dasharray: 2 1.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; animation: dash 16s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -100; } }
.map-pin {
  position: absolute; transform: translate(-50%, -100%); border: 0; padding: 0; background: transparent; cursor: pointer;
}
.map-pin-dot { width: 19px; height: 19px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--navy); color: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.3); transition: .2s ease; }
.map-pin-dot span { transform: rotate(45deg); font-size: 7px; font-weight: 800; }
.map-pin-label { position: absolute; left: 50%; top: 26px; transform: translateX(-50%); white-space: nowrap; padding: 3px 6px; border-radius: 5px; background: rgba(255,255,255,.94); color: var(--navy); box-shadow: 0 2px 8px rgba(0,0,0,.14); font-size: 7px; font-weight: 800; opacity: 0; pointer-events: none; transition: .2s ease; }
.map-pin:hover .map-pin-label, .map-pin.active .map-pin-label { opacity: 1; }
.map-pin:hover .map-pin-dot, .map-pin.active .map-pin-dot { background: var(--brick); transform: rotate(-45deg) scale(1.2); }
.map-pin.hidden { display: none; }
.map-caption { color: #7a8789; font-size: 10px; margin: 10px 3px 0; }

/* Tools */
.tools-hero { background: linear-gradient(120deg, #3e463d, #65765f); }
.tools-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.tool-card { background: #fff; border: 1px solid #dfe5e1; border-radius: var(--radius); padding: 26px; }
.tool-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }
.tool-heading .section-kicker { margin-bottom: 3px; font-size: 9px; }
.tool-heading h2 { margin: 0; color: var(--navy); font-size: 22px; }
.tool-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; background: var(--teal-soft); color: var(--teal); font-size: 19px; font-weight: 800; }
.fee-tool { grid-row: span 2; }
.fee-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fee-form label { color: #758287; font-size: 10px; font-weight: 700; }
.fee-form select { display: block; margin-top: 6px; }
.fee-breakdown { margin-top: 24px; overflow: hidden; border: 1px solid #e0e5e2; border-radius: 14px; }
.fee-breakdown > div { display: flex; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid #edf0ee; }
.fee-breakdown > div:last-child { border-bottom: 0; }
.fee-breakdown span { color: var(--muted); font-size: 12px; }
.fee-breakdown strong { color: var(--navy); font-size: 14px; }
.fee-breakdown .fee-total { padding-block: 18px; background: var(--navy); }
.fee-breakdown .fee-total span { color: rgba(255,255,255,.68); }
.fee-breakdown .fee-total strong { color: #fff; font-size: 24px; }
.field-note { margin: 14px 0 0; padding: 12px; border-radius: 9px; color: #6b777a; background: #f5f6f3; font-size: 10px; }
.source-line { margin: 18px 0 0; color: #899492; font-size: 9px; }
.source-line a { color: var(--teal); font-weight: 700; }
.contact-filters { margin-bottom: 12px; }
.contact-filter { padding: 5px 10px; font-size: 9px; }
.contact-list { max-height: 430px; overflow: auto; }
.contact-item { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid #edf0ee; }
.contact-item:last-child { border-bottom: 0; }
.contact-copy { min-width: 0; flex: 1; }
.contact-copy strong { display: block; font-size: 12px; }
.contact-copy span { display: block; color: #899492; font-size: 9px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.contact-phone { flex: 0 0 auto; padding: 6px 9px; border-radius: 8px; background: var(--teal-soft); color: var(--teal); font-size: 10px; font-weight: 800; }
.contact-phone.muted { color: #82908e; background: #eef1ef; }
.source-list { display: grid; gap: 8px; }
.source-item { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid #e1e5e2; border-radius: 10px; transition: .2s ease; }
.source-item:hover { border-color: #b9d1c8; background: #f7faf7; }
.source-index { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: var(--navy); color: #fff; font-size: 9px; font-weight: 800; }
.source-item div { min-width: 0; flex: 1; }
.source-item strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
.source-item span { color: #899492; font-size: 8px; }
.source-arrow { color: var(--teal); }
.about-tool { background: linear-gradient(145deg, #f3eadc, #fbf8f0); }
.about-tool p, .about-tool li { color: #5f6b6d; font-size: 11px; }
.about-tool ul { padding-left: 18px; margin-bottom: 0; }

/* Footer and mobile nav */
.site-footer { margin-top: 20px; padding: 46px 0; color: rgba(255,255,255,.65); background: #0b2a39; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr auto; align-items: center; gap: 34px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 13px; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { color: #fff; font-size: 14px; }
.footer-brand span { font-size: 9px; }
.site-footer p { margin: 0; font-size: 10px; }
.site-footer > .shell > a { color: #fff; font-size: 11px; font-weight: 700; }
.mobile-nav { display: none; }

/* Dialogs */
dialog { color: inherit; }
.modal, .search-modal { border: 0; padding: 0; background: transparent; }
.modal::backdrop, .search-modal::backdrop { background: rgba(5, 25, 34, .66); backdrop-filter: blur(8px); }
.modal { width: min(680px, calc(100vw - 28px)); max-height: calc(100vh - 40px); overflow: visible; }
.modal-shell { position: relative; max-height: calc(100vh - 40px); overflow: auto; border-radius: 22px; background: #fff; box-shadow: var(--shadow-lg); }
.modal-close { position: sticky; float: right; top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #edf1ef; cursor: pointer; font-size: 22px; }
.guide-modal-body { padding: 36px; }
.guide-modal-meta { display: flex; gap: 8px; margin-bottom: 18px; }
.guide-modal-body h2 { color: var(--navy); font-size: 29px; margin-bottom: 12px; }
.guide-modal-summary { color: var(--muted); font-size: 14px; }
.guide-points { display: grid; gap: 10px; padding: 22px 0; }
.guide-point { display: flex; gap: 12px; padding: 13px; border-radius: 11px; background: #f5f7f4; font-size: 12px; }
.guide-point span { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--teal); color: #fff; font-size: 10px; }
.guide-source-box { padding: 15px; border-radius: 12px; background: var(--teal-soft); font-size: 10px; }
.guide-source-box a { color: var(--teal); font-weight: 800; }
.search-modal { width: min(720px, calc(100vw - 28px)); margin-top: 12vh; }
.search-modal-shell { overflow: hidden; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); }
.search-modal-bar { display: flex; align-items: center; gap: 12px; padding: 15px 17px; border-bottom: 1px solid #e4e8e5; }
.search-modal-bar > span { color: var(--teal); font-size: 27px; }
.search-modal-bar input { flex: 1; border: 0; outline: 0; font-size: 16px; min-width: 0; }
.search-modal-bar button { border: 1px solid #dfe4e1; border-radius: 7px; padding: 4px 7px; background: #f4f6f4; color: #84908f; font-size: 9px; cursor: pointer; }
.search-results { max-height: 60vh; overflow: auto; padding: 10px; }
.search-result { display: flex; gap: 12px; padding: 13px; border-radius: 11px; cursor: pointer; }
.search-result:hover { background: #f1f5f2; }
.search-result-icon { width: 33px; height: 33px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: var(--teal-soft); color: var(--teal); font-size: 12px; font-weight: 800; }
.search-result-copy { min-width: 0; flex: 1; }
.search-result-copy strong { display: block; font-size: 12px; }
.search-result-copy p { margin: 2px 0 0; color: #84908f; font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.search-result-type { color: #9aa5a3; font-size: 8px; }
.search-hint { padding: 36px 20px; text-align: center; color: #899492; font-size: 11px; }
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 500; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 15px; border-radius: 999px; color: #fff; background: #153f55; box-shadow: var(--shadow-lg); font-size: 11px; transition: .25s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 960px) {
  :root { --shell: min(100% - 32px, 820px); }
  .desktop-nav { display: none; }
  .header-search { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding-top: 58px; }
  .hero-copy { text-align: center; }
  .eyebrow, .hero-actions, .hero-note { justify-content: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-card-wrap { width: min(570px, 100%); margin-inline: auto; }
  .steps-grid, .guide-preview-grid, .travel-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid .step-card:last-child, .travel-grid .travel-card:last-child { grid-column: span 2; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .checklist-layout { grid-template-columns: 1fr; }
  .map-layout { grid-template-columns: 1fr; }
  .map-sidebar { position: static; max-height: none; }
  .place-list { display: flex; overflow-x: auto; padding: 6px 12px 12px; }
  .place-item { min-width: 190px; }
  .tools-layout { grid-template-columns: 1fr; }
  .fee-tool { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
}

@media (max-width: 680px) {
  :root { --header-h: 64px; --shell: calc(100% - 28px); }
  body { padding-bottom: 66px; }
  .site-header { height: var(--header-h); }
  .brand img { width: 36px; height: 36px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { display: none; }
  .header-search { width: 38px; height: 38px; justify-content: center; padding: 0; border-radius: 50%; }
  .header-search span:first-child { font-size: 22px; }
  .header-search span:nth-child(2), .header-search kbd { display: none; }
  .hero { min-height: auto; }
  .hero-inner { padding: 52px 0 98px; }
  .hero-copy h1 { font-size: 39px; margin-top: 17px; }
  .hero-copy > p { font-size: 14px; line-height: 1.8; }
  .hero-actions { flex-direction: column; width: min(300px, 100%); margin-inline: auto; }
  .hero-note { font-size: 10px; flex-wrap: wrap; }
  .hero-card-wrap { padding: 10px 0; }
  .hero-card { transform: none; padding: 20px; }
  .countdown strong { font-size: 40px; }
  .mini-map-card { height: 180px; }
  .tag-one { left: -7px; bottom: 42px; }
  .tag-two { right: -5px; top: 60px; }
  .search-lift { margin-top: -52px; }
  .answer-box { padding: 21px; border-radius: 20px; }
  .answer-heading { display: block; }
  .offline-badge { display: inline-block; margin-top: 12px; }
  .answer-form { flex-direction: column; }
  .answer-form .button { width: 100%; }
  .section { padding-block: 62px; }
  .section-heading-row { align-items: start; margin-bottom: 24px; }
  .section-heading-row h2 { font-size: 30px; }
  .text-link { font-size: 11px; }
  .steps-grid, .guide-preview-grid, .travel-grid, .guide-grid { grid-template-columns: 1fr; }
  .steps-grid .step-card:last-child, .travel-grid .travel-card:last-child { grid-column: auto; }
  .step-card { min-height: 250px; }
  .emergency-panel { display: block; padding: 28px 24px; }
  .emergency-panel h2 { font-size: 24px; }
  .emergency-actions { flex-direction: column; margin-top: 22px; }
  .page-hero { padding: 46px 0 50px; }
  .page-hero h1 { font-size: 38px; }
  .page-hero p { font-size: 13px; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 25px; }
  .progress-card { min-width: 0; }
  .checklist-toolbar { align-items: start; gap: 18px; }
  .map-layout { width: 100%; padding-top: 0; gap: 0; }
  .map-sidebar { border-radius: 0; border-inline: 0; }
  .map-main { padding: 14px; }
  .route-planner { grid-template-columns: 1fr auto 1fr; }
  .route-planner .button { grid-column: 1 / -1; }
  .campus-map-frame { border-radius: 14px; }
  .campus-map-canvas { min-width: 660px; }
  .tools-layout { padding-top: 18px; }
  .tool-card { padding: 21px; }
  .fee-form { grid-template-columns: 1fr; }
  .mobile-nav {
    position: fixed; left: 8px; right: 8px; bottom: max(7px, env(safe-area-inset-bottom)); z-index: 150;
    display: grid; grid-template-columns: repeat(5, 1fr); min-height: 58px; padding: 5px;
    border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(10,42,57,.95);
    box-shadow: 0 15px 45px rgba(0,0,0,.25); backdrop-filter: blur(16px);
  }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 13px; color: rgba(255,255,255,.55); font-size: 8px; font-weight: 700; }
  .mobile-nav a span { font-size: 17px; line-height: 1.1; }
  .mobile-nav a.active { background: rgba(255,255,255,.12); color: #fff; }
  .site-footer { margin-bottom: 0; }
  .guide-modal-body { padding: 28px 22px; }
  .search-modal { margin-top: 8vh; }
  .toast { bottom: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Editorial refinement: restrained campus handbook style */
:root {
  --paper: #f4f1e8;
  --teal-soft: #e7eeea;
  --brick-soft: #f1e5df;
  --shadow-sm: 0 4px 14px rgba(24, 50, 59, .06);
  --shadow-lg: 0 14px 38px rgba(12, 45, 62, .13);
  --radius-sm: 8px;
  --radius: 11px;
  --radius-lg: 16px;
}

.ui-icon {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  background: rgba(244, 241, 232, .97);
  border-bottom-color: rgba(21, 63, 85, .14);
  backdrop-filter: none;
}
.brand img, .footer-brand img { border-radius: 7px; box-shadow: none; }
.desktop-nav a, .header-search { border-radius: 6px; }
.app-page.active { animation: none; }
.button { border-radius: 6px; transition: background-color .16s ease, border-color .16s ease; }
.button:hover { transform: none; }
.button-primary, .button-primary:hover { box-shadow: none; }
.section-kicker { letter-spacing: .06em; text-transform: none; }
.source-chip, .offline-badge { border-radius: 5px; }

.hero {
  min-height: 570px;
  background: #123d4c;
}
.hero::before { background: linear-gradient(90deg, rgba(4, 27, 38, .18), transparent 72%); }
.hero::after { display: none; }
.hero-grid {
  opacity: .055;
  background-size: 64px 64px;
  mask-image: none;
}
.hero-inner { gap: 76px; padding-block: 68px 88px; }
.hero-copy h1 { font-size: clamp(44px, 4.6vw, 66px); letter-spacing: -.035em; }
.hero-copy h1 em { color: #ead2aa; }
.hero-card-wrap { padding: 0; }
.hero-card {
  transform: none;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}
.hero-card::before { display: none; }
.weather-pill, .mini-pin { border-radius: 5px; }
.mini-map-card { border-radius: 7px; }
.floating-tag { display: none; }

.search-lift { margin-top: -34px; }
.answer-box { border-radius: 12px; box-shadow: var(--shadow-sm); }
.answer-form input, .page-search input, .map-search-wrap input { border-radius: 6px; }
.search-symbol, .page-search > span, .map-search-wrap > span { display: grid; place-items: center; }
.search-symbol .ui-icon, .page-search .ui-icon { width: 20px; height: 20px; }
.map-search-wrap .ui-icon { width: 17px; height: 17px; }
.quick-topic {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 5px;
  background: #faf9f4;
}
.quick-topic .ui-icon { width: 14px; height: 14px; }
.inline-answer, .field-note, .route-result { border-radius: 7px; }

.step-card, .guide-preview-card, .guide-card, .travel-card, .checklist-group, .tool-card {
  border-radius: 9px;
}
.step-card:hover, .guide-preview-card:hover, .guide-card:hover {
  transform: none;
  box-shadow: none;
  border-color: #9fb9b0;
}
.step-card.accent { background: #174b57; box-shadow: none; }
.step-icon, .guide-icon, .travel-card-icon, .tool-icon, .search-result-icon {
  border-radius: 6px;
}
.step-icon .ui-icon { width: 22px; height: 22px; }
.guide-icon .ui-icon, .travel-card-icon .ui-icon, .tool-icon .ui-icon { width: 21px; height: 21px; }
.guide-category, .travel-badge, .filter-tab, .contact-filter, .map-category { border-radius: 5px; }
.guide-card-bottom .card-arrow { display: grid; place-items: center; color: var(--teal); }
.guide-card-bottom .card-arrow .ui-icon { width: 17px; height: 17px; }
.section-tint { background: #ebece6; }
.emergency-panel { border-radius: 9px; background: #a84d3e; }
.emergency-panel::after { display: none; }

.page-hero { background: #123d4c; }
.page-hero h1 { font-size: clamp(38px, 4.4vw, 56px); }
.checklist-hero { background: #174b57; }
.map-hero { background: #284d40; }
.tools-hero { background: #4a5548; }
.progress-card, .map-sidebar, .route-planner, .campus-map-frame { border-radius: 9px; }
.filter-tab, .contact-filter, .map-category { background: #faf9f4; }
.custom-check { border-radius: 4px; }
.place-item, .place-bullet, .route-field select, .fee-form select { border-radius: 5px; }
.about-tool { background: #f4eee3; }
.source-item, .source-index, .contact-phone, .fee-breakdown { border-radius: 6px; }
.source-arrow .ui-icon { width: 15px; height: 15px; }

.modal::backdrop, .search-modal::backdrop { background: rgba(5, 25, 34, .64); backdrop-filter: none; }
.modal-shell, .search-modal-shell { border-radius: 11px; }
.modal-close {
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 0;
  border: 1px solid #dbe2df;
  border-radius: 50%;
}
.modal-close [data-icon], .modal-close .ui-icon { display: block; width: 17px; height: 17px; }
.guide-point, .guide-source-box { border-radius: 6px; }
.guide-action-box {
  margin: 0 0 18px;
  padding: 15px;
  border: 1px solid #cadbd5;
  border-radius: 7px;
  background: #f7f8f3;
}
.guide-action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-action-link, .guide-copy-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--teal);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.guide-action-link { color: #fff; background: var(--teal); }
.guide-copy-link { color: var(--teal); background: #fff; }
.guide-action-link .ui-icon, .guide-copy-link .ui-icon { width: 15px; height: 15px; }
.guide-action-box code { display: block; margin: 11px 0 5px; color: var(--navy); font-size: 11px; word-break: break-all; }
.guide-action-box p { margin: 0; color: var(--muted); font-size: 10px; }
.search-result-icon .ui-icon { width: 17px; height: 17px; }

.mobile-nav a span { display: grid; place-items: center; }
.mobile-nav a .ui-icon { width: 18px; height: 18px; }

@media (max-width: 960px) {
  .hero-inner { gap: 34px; }
  .hero-card-wrap { width: min(560px, 100%); }
}

@media (max-width: 640px) {
  .hero { min-height: auto; }
  .hero-inner { padding-top: 48px; padding-bottom: 66px; }
  .hero-copy h1 { font-size: clamp(36px, 10.7vw, 46px); }
  .hero-card { padding: 18px; }
  .answer-box { padding: 20px; }
  .mobile-nav { border-radius: 12px; backdrop-filter: none; }
  .mobile-nav a { border-radius: 7px; }
  .guide-action-row > * { flex: 1 1 auto; justify-content: center; }
}
