:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #0f766e;
  --accent-hover: #115e59;
  --accent-soft: #f0fdfa;
  --accent-border: #99f6e4;
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --warn-ink: #92400e;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 2px 8px;
  border-radius: 999px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-link:hover {
  background: var(--surface-alt);
  color: var(--ink);
  text-decoration: none;
}
.nav-link.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.search-trigger:hover { border-color: #cbd5e1; color: var(--ink); }
.search-trigger kbd {
  font-family: inherit;
  font-size: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}
.mobile-menu-btn {
  display: none;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
}
.mobile-drawer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 12px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.mobile-drawer[hidden] { display: none; }

/* Main Layout */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 64px;
}
.page-layout-wide {
  grid-template-columns: minmax(0, 1fr) 240px;
}
.article-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
}
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

.article-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 22px;
  margin-bottom: 26px;
}
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 12px;
}
.meta-pill {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.article-header h1 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.article-lead {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
}

.airport-meta-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.airport-meta-strip .meta-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.airport-meta-strip strong {
  font-size: 14px;
  color: var(--ink);
}

/* Typography */
.article-body h2 {
  margin: 34px 0 14px;
  font-size: 20px;
  line-height: 1.4;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--surface-alt);
  scroll-margin-top: 84px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  margin: 22px 0 8px;
  font-size: 17px;
  color: var(--ink);
  scroll-margin-top: 84px;
}
.article-body p {
  margin: 0 0 15px;
  color: var(--ink-2);
}

.callout {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  font-size: 14.5px;
}
.callout-warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-ink);
}
.section-note {
  font-size: 14px;
  color: var(--muted);
  margin: -6px 0 16px !important;
}

/* Promo Cards */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 8px;
}
.promo-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.promo-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-sm);
}
.promo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.promo-card-head h3 {
  margin: 0 !important;
  font-size: 16.5px !important;
}
.badge {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.badge-promo {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}
.badge-promo-sm {
  font-size: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 600;
}
.promo-price {
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}
.promo-focus {
  margin: 0 !important;
  font-size: 13.5px;
  color: var(--muted) !important;
}
.promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface-alt); }
.btn-block { width: 100%; }

/* Airport Directory Table */
.directory-tools { margin: 18px 0 8px; }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pill-btn {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.pill-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.table-search {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13.5px;
  min-width: 240px;
  outline: none;
}
.table-search:focus { border-color: var(--accent); }

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.airport-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
.airport-table th {
  background: var(--surface-alt);
  color: var(--ink);
  font-weight: 600;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.airport-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.airport-table tbody tr:last-child td { border-bottom: none; }
.airport-table tbody tr:hover { background: #f8fafc; }
.name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  white-space: nowrap;
}
.row-num {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
  min-width: 18px;
}
.tag {
  display: inline-block;
  background: var(--surface-alt);
  color: var(--ink-2);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12.5px;
  white-space: nowrap;
}
.badge-muted {
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}
.coupon-chip {
  background: #ecfeff;
  border: 1px dashed #0891b2;
  color: #0e7490;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  cursor: pointer;
}
.coupon-chip:hover { background: #cffafe; }
.table-reg-link {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.table-reg-link:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
.table-empty {
  text-align: center;
  color: var(--muted);
  padding: 20px;
}

/* Link Chips & Sources */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.nav-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}
.sources-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

/* Home Map Directory */
.site-map-section { margin-top: 34px; }
.map-groups-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.map-group-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.map-group-card h3 {
  margin: 0 0 10px !important;
  font-size: 16px !important;
}
.map-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.map-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink);
}
.map-link-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.map-link-list span {
  font-size: 12px;
  color: var(--muted);
}

/* Interactive Selection Checklist */
.interactive-box {
  margin-top: 28px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.interactive-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.interactive-head h3 { margin: 0 !important; font-size: 16px !important; }
.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  cursor: pointer;
}
.checklist-grid {
  display: grid;
  gap: 10px;
}
.checklist-grid label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.checklist-grid input {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--surface);
}

/* Sidebar */
.sidebar-sticky {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 16px;
}
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.sidebar-card-accent {
  background: linear-gradient(180deg, var(--accent-soft), #fff);
  border-color: var(--accent-border);
}
.sidebar-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.sidebar-desc {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.toc-list a {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  padding: 3px 0;
  line-height: 1.45;
}
.toc-list a:hover { color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 36px 0 44px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
}
.footer-brand { max-width: 380px; }
.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}
.footer-links h4 {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--ink);
}
.footer-links a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.footer-links a:hover { color: var(--accent); }

/* Search Modal */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: start center;
  padding: 72px 16px 24px;
}
.search-modal[hidden] { display: none; }
.search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.search-dialog {
  position: relative;
  width: 100%;
  max-width: 620px;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.search-input-row input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--ink);
}
.search-close {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}
.search-meta {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.search-results {
  max-height: 380px;
  overflow-y: auto;
}
.search-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--surface-alt);
  color: var(--ink);
}
.search-item:hover {
  background: var(--accent-soft);
  text-decoration: none;
}
.search-item-title {
  font-weight: 600;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.search-item-desc {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 960px) {
  .page-layout, .page-layout-wide {
    grid-template-columns: 1fr;
  }
  .article-sidebar { display: none; }
  .main-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
}

@media (max-width: 680px) {
  .article-main { padding: 22px 18px; }
  .article-header h1 { font-size: 22px; }
  .promo-grid, .map-groups-grid { grid-template-columns: 1fr; }
  .airport-meta-strip { grid-template-columns: repeat(2, 1fr); }
  .search-trigger-text, .search-trigger kbd { display: none; }
}
