:root {
  --bg: #f4f7fb;
  --paper: #ffffff;
  --paper-soft: #f8fbfe;
  --ink: #1d3247;
  --muted: #5d7388;
  --line: #c9d8e6;
  --line-strong: #aebfd0;
  --accent: #2f6ea6;
  --accent-deep: #1f4e7c;
  --accent-soft: #eaf2f9;
  --shadow: 0 10px 24px rgba(20, 45, 70, 0.06);
  --radius-md: 18px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  line-height: 1.72;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--accent-deep);
}

.page-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 16px auto 40px;
}

.site-header,
.tabs-shell,
.tabpanel-wrap,
.sources,
.footer,
.card,
.table-card,
.wide-card,
.step-card,
.route-head,
.stats-ribbon div,
.faq-list details,
.source-list a,
.place-grid > article {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.map-card {
  background: var(--paper-soft);
}

.map-embed {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: #e8f0f7;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.location-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.location-list li + li {
  margin-top: 10px;
}

.site-header,
.tabs-shell,
.tabpanel-wrap,
.sources,
.footer,
.card,
.table-card,
.wide-card,
.step-card,
.route-head,
.place-grid > article {
  border-radius: var(--radius-md);
}

.site-header {
  padding: 14px 18px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.18em;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.brand-copy {
  display: grid;
}

.brand-copy strong,
.section-heading h2,
.card h3,
.table-card h3,
.step-card h3,
.route-head h3,
.place-grid h3,
.faq-list summary {
  font-family: "Noto Serif TC", "PingFang TC", serif;
}

.brand-copy small,
.section-heading p,
.card p,
.step-card p,
.route-head p,
.place-grid p,
.footer p,
.small-muted,
.key-list,
.step-points,
.faq-list p,
.source-list a,
tbody td,
.stats-ribbon span {
  color: var(--muted);
}

.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ghost-link,
.solid-link,
.tab {
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  text-decoration: none;
  transition: 180ms ease;
}

.ghost-link,
.tab {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.solid-link,
.tab.is-active {
  color: #fff;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--accent);
}

.card-tag,
.route-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.82rem;
}

.tabs-section,
.sources {
  margin-top: 24px;
}

.sources {
  padding: 20px;
}

.sources .section-heading.narrow {
  max-width: 640px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.section-heading.narrow {
  max-width: 780px;
}

.tabs-shell {
  padding: 16px;
}

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tab {
  cursor: pointer;
}

.tabpanel-wrap {
  padding: 20px;
}

.tabpanel {
  display: grid;
  gap: 18px;
}

.content-grid.two-up,
.fee-notes-grid,
.place-grid,
.route-columns,
.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.content-grid.two-up > *,
.fee-notes-grid > *,
.place-grid > *,
.route-columns > *,
.source-list > * {
  min-width: 0;
}

.card,
.table-card,
.wide-card,
.step-card,
.route-head {
  padding: 22px;
}

.card > :first-child,
.table-card > :first-child,
.wide-card > :first-child,
.step-card > :first-child,
.route-head > :first-child,
.place-grid > article > :first-child {
  margin-top: 0;
}

.card > :last-child,
.table-card > :last-child,
.wide-card > :last-child,
.step-card > :last-child,
.route-head > :last-child,
.place-grid > article > :last-child {
  margin-bottom: 0;
}

.artwork-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-soft);
}

.emphasis-card {
  background: linear-gradient(180deg, #ffffff 0%, #f0f6fb 100%);
}

.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stats-ribbon div {
  display: grid;
  gap: 4px;
  border-radius: 16px;
  padding: 16px;
  background: var(--paper-soft);
}

.stats-ribbon strong {
  display: block;
}

.stats-ribbon span {
  display: block;
}

.stats-ribbon strong,
.card h3,
.table-card h3,
.step-card h3,
.route-head h3,
.place-grid h3,
.footer strong,
.faq-list summary,
th {
  color: var(--ink);
}

.flow-intro {
  display: grid;
  gap: 16px;
}

.flow-origin {
  padding-bottom: 18px;
}

.flow-split {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
  color: var(--accent);
}

.flow-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.72;
}

.flow-divider,
.route-line {
  height: 1px;
  background: var(--line-strong);
}

.route-columns {
  margin-top: 18px;
  align-items: stretch;
}

.route-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.route-head {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fc 100%);
}

.route-head h3 {
  margin: 8px 0 6px;
}

.route-step {
  flex: 1 1 auto;
}

.step-arrow {
  margin: 10px 0;
  text-align: center;
  color: var(--accent);
  font-size: 1rem;
  opacity: 0.72;
}

.step-no {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
}

.step-points {
  margin: 14px 0 0;
  padding-left: 18px;
}

.compact-points li + li {
  margin-top: 6px;
}

.responsive-table {
  overflow-x: auto;
}

.responsive-table table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  background: #f1f6fb;
}

tr:last-child td {
  border-bottom: 0;
}

.key-list,
.faq-list,
.source-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.key-list li,
.source-list a {
  display: block;
}

.key-list li + li,
.faq-list details + details {
  margin-top: 12px;
}

.key-list-contact li a[href^="tel:"] {
  display: inline-block;
  margin-top: 6px;
}

.place-grid > article {
  padding: 20px 22px;
}

.source-list a {
  display: flex;
  align-items: flex-start;
  max-width: 100%;
  min-height: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.source-list a:hover {
  border-color: var(--line-strong);
  background: #f5f9fc;
}

.faq-list details {
  padding: 16px 18px;
  border-radius: 16px;
}

.faq-list summary {
  cursor: pointer;
}

.footer {
  margin-top: 24px;
  padding: 18px;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .content-grid.two-up,
  .fee-notes-grid,
  .place-grid,
  .route-columns,
  .source-list,
  .stats-ribbon {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max));
  }

  .site-header,
  .tabs-shell,
  .tabpanel-wrap,
  .sources,
  .footer,
  .card,
  .table-card,
  .wide-card,
  .step-card,
  .route-head {
    padding: 14px;
  }

  .place-grid > article {
    padding: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions a {
    flex: 1;
    text-align: center;
  }

  .brand {
    align-items: flex-start;
  }

  .tablist {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .tab {
    white-space: nowrap;
  }

  .flow-split {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 8px;
  }

  .flow-arrow {
    width: 32px;
  }

  .source-list a {
    padding: 13px 14px;
    line-height: 1.38;
  }
}
