/* ============================================================
   全球机场代码查询 · 样式表(零依赖,手写)
   方向:深色导航 / 浅色内容区,航空专业工具感,信息密度优先
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --navy-950: #081324;
  --navy-900: #0b1b31;
  --navy-800: #102640;
  --navy-700: #173253;
  --ink-900: #10233c;
  --ink-800: #1a2f4b;
  --ink-700: #3c4f68;
  --ink-600: #566a83;
  --ink-500: #6b7e96;
  --ink-400: #8b9ab0;
  --ink-300: #adbbcc;
  --bg: #f5f8fc;
  --card: #ffffff;
  --line: #e2e9f2;
  --line-soft: #eef2f8;
  --brand: #2f6bff;
  --brand-strong: #1d4ed8;
  --brand-soft: #e9f1ff;
  --radius: 13px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 56, 0.04);
  --shadow-md: 0 10px 24px -14px rgba(23, 55, 110, 0.35);
  --font-sans: "Segoe UI", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  /* 兜底:任何单点横向溢出都不撑宽整页;clip 不产生滚动容器,不影响 sticky 顶栏 */
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

@supports not (overflow: clip) {
  html { overflow-x: hidden; }
}

h1, h2, h3, p, dl, dd, dt { margin: 0; }

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button:disabled { cursor: not-allowed; }

input { font: inherit; }

svg { display: block; flex: none; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.sidebar :focus-visible { outline-color: #7fb0ff; }

::selection { background: rgba(47, 107, 255, 0.22); }

.skip-link {
  position: fixed;
  top: -72px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 9px;
  background: #fff;
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(4, 14, 30, 0.3);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- 顶部栏 ---------- */
.topbar {
  position: relative;
  z-index: 30;
  flex: none;
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  padding: 12px 24px;
  background: linear-gradient(180deg, #0e223b 0%, #0a192d 100%);
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px -12px rgba(4, 14, 30, 0.5);
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: #eaf2ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 4px 12px rgba(2, 8, 20, 0.4);
}
.brand-mark svg { width: 21px; height: 21px; }

.brand-text { min-width: 0; }
.brand-text h1 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-text p {
  margin-top: 1px;
  font-size: 11.5px;
  color: #8ea6c8;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* 搜索框 */
.search {
  position: relative;
  display: flex;
  align-items: center;
  justify-self: center;
  width: 100%;
  max-width: 720px;
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(3, 10, 24, 0.28);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search:focus-within {
  border-color: #6ea1ff;
  box-shadow: 0 0 0 3px rgba(86, 142, 255, 0.32), 0 4px 14px rgba(3, 10, 24, 0.28);
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #7487a3;
  pointer-events: none;
}

.search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 92px 0 40px;
  border: 0;
  border-radius: 11px;
  outline: none;
  background: transparent;
  font-size: 14.5px;
  color: #0f2238;
}
.search input::placeholder { color: #8d9bb0; }
.search input::-webkit-search-cancel-button,
.search input::-webkit-search-decoration { display: none; }

.search-clear {
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eef2f8;
  color: #5d708a;
  transition: background 0.12s ease, color 0.12s ease;
}
.search-clear:hover { background: #dfe7f3; color: #1b3350; }
.search-clear svg { width: 11px; height: 11px; }

.search-kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 1px 6px;
  border: 1px solid #d8e0ec;
  border-radius: 5px;
  background: #f7f9fc;
  color: #8a99ae;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 17px;
  pointer-events: none;
}

.topbar-meta { display: flex; gap: 22px; justify-self: end; }
.meta-stat { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.meta-num {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #eaf2ff;
  font-variant-numeric: tabular-nums;
}
.meta-label { margin-top: 2px; font-size: 11px; color: #8ba2c2; letter-spacing: 0.02em; }

/* ---------- 主体:双栏 ---------- */
.app {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.mobile-bar { display: none; }

/* ---------- 左侧导航 ---------- */
.sidebar {
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0c1d33 0%, #0a1729 100%);
  border-right: 1px solid #16283f;
  color: #c6d4e8;
}

.nav-inner {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 12px 20px;
  scrollbar-width: thin;
  scrollbar-color: #29405f transparent;
}

.nav-section {
  padding: 16px 10px 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #6d85a7;
  text-transform: uppercase;
}
.nav-section:first-child { padding-top: 4px; }

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  color: #c3d2e6;
  font-size: 13.5px;
  transition: background 0.12s ease, color 0.12s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-item.is-active {
  background: linear-gradient(90deg, rgba(63, 120, 255, 0.26), rgba(63, 120, 255, 0.06));
  color: #fff;
  box-shadow: inset 3px 0 0 #4d8cff;
}

.nav-name, .nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-count {
  flex: none;
  padding: 1px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  color: #8ea6c7;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.nav-item.is-active .nav-count { background: rgba(126, 172, 255, 0.22); color: #dbe9ff; }

.nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  padding: 7px 10px;
  border-radius: 7px;
  color: #8fa8c9;
  font-size: 12.5px;
}
.nav-back:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.nav-empty { padding: 8px 10px; color: #6d85a7; font-size: 12px; }

.sidebar-foot {
  flex: none;
  padding: 12px 18px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #7089ab;
  font-size: 11px;
  line-height: 1.65;
}
.foot-title {
  margin-bottom: 3px;
  color: #8ba3c4;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.foot-demo { color: #d9b178; }

/* 左下角版本号:可点击查看更新说明 */
.foot-version {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: #9db4d2;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.foot-version b { color: #cfe0f6; font-weight: 600; }
.foot-version-more {
  color: #6c9be0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.foot-version:hover .foot-version-more { color: #9cc0f5; }
.foot-version:focus-visible { outline: 2px solid #6c9be0; outline-offset: 3px; border-radius: 3px; }

/* 更新说明弹窗 */
.changelog-wrap {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 18, 34, 0.56);
  backdrop-filter: blur(2px);
}
.changelog-modal {
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: min(82vh, 780px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 26px 70px -14px rgba(6, 16, 32, 0.5);
  overflow: hidden;
}
.changelog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #e9eff7;
  background: #f7f9fd;
}
.changelog-title { font-size: 17px; font-weight: 700; color: #16283f; }
.changelog-sub { margin-top: 3px; font-size: 12px; color: #7387a0; }
.changelog-close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: #fff;
  color: #5b6f88;
  cursor: pointer;
}
.changelog-close svg { width: 14px; height: 14px; display: block; }
.changelog-close:hover { background: #eef3fb; color: #16283f; }
.changelog-body { overflow-y: auto; padding: 6px 20px 20px; }
.cl-ver { padding: 14px 0; border-bottom: 1px dashed #e9eff7; }
.cl-ver:last-child { border-bottom: 0; }
.cl-ver-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cl-num {
  padding: 2px 8px;
  border-radius: 999px;
  background: #e9f0ff;
  color: #1d4ed8;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
.cl-title2 { font-size: 14px; font-weight: 600; color: #1a3355; }
.cl-date { margin-left: auto; font-size: 11.5px; color: #8595aa; font-variant-numeric: tabular-nums; }
.cl-items { margin: 8px 0 0; padding-left: 18px; }
.cl-items li { margin: 3px 0; font-size: 12.5px; line-height: 1.65; color: #41536b; }
.changelog-empty { color: #7a8a9e; font-size: 13px; }
@media (max-width: 640px) {
  .changelog-wrap { padding: 12px; }
  .changelog-body { padding: 4px 14px 16px; }
  .cl-date { margin-left: 0; }
}

/* ---------- 右侧内容 ---------- */
.content {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 0 28px 56px;
  background: var(--bg);
  scroll-behavior: smooth;
}
.content:focus { outline: none; }

.content-head {
  position: sticky;
  top: 0;
  z-index: 8;
  padding: 18px 0 12px;
  background: var(--bg);
  transition: box-shadow 0.15s ease;
}
.content.is-scrolled .content-head { box-shadow: 0 10px 18px -16px rgba(15, 32, 60, 0.4); }

.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 22px;
  font-size: 12.5px;
}
.crumb-link {
  padding: 2px 4px;
  border-radius: 5px;
  color: var(--ink-500);
  transition: color 0.12s ease, background 0.12s ease;
}
.crumb-link:hover { background: var(--brand-soft); color: var(--brand-strong); }
.crumb-sep { color: #b2bdcb; font-size: 11px; }
.crumb-current { padding: 2px 4px; color: #243954; font-weight: 600; }

.title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 8px;
}
.title-text { min-width: 0; }
.view-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0e2138;
}
.view-subtitle { margin-top: 4px; font-size: 13px; color: var(--ink-500); }
.title-actions { flex: none; display: flex; align-items: center; gap: 10px; padding-bottom: 2px; }

.count-pill {
  padding: 5px 12px;
  border: 1px solid #d3e1ff;
  border-radius: 999px;
  background: #e8efff;
  color: var(--brand-strong);
  font-size: 12.5px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid #d8e1ee;
  border-radius: 9px;
  background: #fff;
  color: #233b5b;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}
.action-btn:hover {
  border-color: #a9c2ec;
  color: var(--brand-strong);
  box-shadow: 0 3px 10px rgba(29, 78, 216, 0.1);
}
.action-btn svg { width: 15px; height: 15px; color: #5d7799; }
.action-btn:hover svg { color: var(--brand-strong); }

.view { max-width: 1200px; padding-top: 6px; }

.view-lead {
  max-width: 760px;
  margin: 2px 0 16px;
  color: #61728a;
  font-size: 13px;
  line-height: 1.7;
}

.shortcut-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  color: #7a8aa0;
  font-size: 12px;
}
.shortcut-title { color: #566a83; font-weight: 600; }
.shortcut-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.shortcut-card kbd {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  border: 1px solid #dbe3ee;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #f7f9fc;
  color: #4a5f7a;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 17px;
  text-align: center;
}

/* ---------- 卡片网格 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(226px, 1fr));
  gap: 14px;
}
.continent-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 16px 17px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover {
  border-color: #b9cef2;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.card-code {
  padding-top: 3px;
  color: #7f93ad;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.card-count {
  flex: none;
  color: #12335f;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.card-count .unit {
  margin-left: 3px;
  color: #7d8ba0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}
.card-title {
  color: #10233c;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.card-sub {
  overflow: hidden;
  color: #7a8aa0;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  color: #8494aa;
  font-size: 11.5px;
}
.card-arrow { color: #b3c2d6; font-size: 14px; transition: transform 0.15s ease, color 0.15s ease; }
.card:hover .card-arrow { color: var(--brand); transform: translateX(2px); }

.continent-card .card-title { font-size: 20px; }
.country-card .card-head,
.region-card .card-head { align-items: baseline; }
.country-card .card-title { flex: 1; min-width: 0; font-size: 16px; }
.country-card .card-count { font-size: 18px; }
.region-card .card-title { flex: 1; min-width: 0; font-size: 15.5px; }
.region-card .card-count { font-size: 18px; }

/* ---------- 搜索提示 / 列表摘要 ---------- */
.list-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border: 1px solid #dbe7ff;
  border-radius: 9px;
  background: #eef4ff;
  color: #5b6f88;
  font-size: 12.5px;
  line-height: 1.6;
}
.list-note strong { color: var(--brand-strong); font-weight: 600; }

.list-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.summary-chip {
  padding: 4px 10px;
  border: 1px solid #e4ebf4;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.summary-chip strong { color: #1a3355; font-weight: 600; }
/* 「另含 N 座已关闭 / 未开通」:不计入统计,用暖色区分 */
.summary-chip.summary-excluded { border-color: #f0d3d3; background: #fdf4f4; color: #b42318; }
.summary-chip.summary-excluded strong { color: #b42318; }

/* ---------- 机场列表 ---------- */
.airport-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.airport-row {
  display: grid;
  grid-template-columns: 144px auto minmax(0, 1fr) minmax(150px, 220px) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 11px 16px;
  border-top: 1px solid var(--line-soft);
  transition: background 0.1s ease;
}
.airport-rows .airport-row:first-child { border-top: 0; }
.airport-row:hover { background: #f6f9ff; }
.airport-row.is-active { background: #e9f1ff; box-shadow: inset 3px 0 0 var(--brand); }
.airport-row:focus-visible { outline-offset: -3px; }

/* 三字码与四字码同等明显度(2026-10-21 bro 要求):
   同字号、同字重、同色系,仅用色相微调区分,不再一大一小 */
.row-codes { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.row-iata {
  color: #1746a2;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
}
.row-iata.is-empty { color: #b3bfcd; font-weight: 500; }
.row-icao {
  color: #2f6bd6;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
}
.row-icao.is-empty { color: #c3ccd8; font-weight: 500; }

/* 飞行区等级色块(3F/4E…),夹在代码和机场名之间 */
.row-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 32px;
  height: 21px;
  padding: 0 6px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  background: #eef2f8;
  color: #7a8798;
  white-space: nowrap;
}
.row-level.is-empty { background: transparent; }
.row-level[data-lvl="4F"] {
  background: linear-gradient(135deg, #f7cd52, #d99b0a);
  color: #3a2700;
  box-shadow: 0 1px 2px rgba(217, 155, 10, 0.28);
}
.row-level[data-lvl="4E"] {
  background: linear-gradient(135deg, #86aef5, #1d4ed8);
  color: #fff;
  box-shadow: 0 1px 2px rgba(29, 78, 216, 0.24);
}
.row-level[data-lvl="4D"] {
  background: linear-gradient(135deg, #7fd7c0, #0f766e);
  color: #fff;
}
.row-level[data-lvl="4C"] {
  background: linear-gradient(135deg, #b9c8da, #64748b);
  color: #fff;
}

.row-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-name-main {
  display: -webkit-box;
  overflow: hidden;
  color: #13253d;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.row-name-sub {
  overflow: hidden;
  color: #7b8ba1;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.name-derived { color: #8898ad; font-size: 12px; font-weight: 400; }

.row-place {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.4;
}
.place-city {
  overflow: hidden;
  color: #3f5570;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.place-region {
  overflow: hidden;
  color: #8796aa;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-tags {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.badge.type-large { border-color: #d5e2ff; background: #e9f0ff; color: #1d4ed8; }
.badge.type-medium { border-color: #c9edf5; background: #e6f7fb; color: #0e7490; }
.badge.type-small { border-color: #e3e9f1; background: #f2f5f9; color: #5f6f85; }
.badge.type-seaplane { border-color: #c8ede7; background: #e7f7f4; color: #0f766e; }
.badge.type-heliport { border-color: #f5e2c0; background: #fdf3e3; color: #9a5b00; }
.badge.type-other { border-color: #e3e9f1; background: #f2f5f9; color: #5f6f85; }
.badge.badge-sched { border-color: #cfe9d7; background: #eaf7ee; color: #15803d; }
.badge.badge-nosched { border-color: #e5eaf1; background: #f4f6f9; color: #74849a; }
.badge.badge-plain { border-color: #e4eaf2; background: #f3f6fa; color: #5b6f88; }
/* 运营状态徽章:已关闭 / 即将关闭 / 即将开通 */
.badge.status-closed { border-color: #f3d0d0; background: #fdeaea; color: #b42318; }
.badge.status-closing { border-color: #f7ddb5; background: #fff4e5; color: #b45309; }
.badge.status-upcoming { border-color: #cddffb; background: #eaf2ff; color: #1d4ed8; }
.badge.type-closed { border-color: #e3e9f1; background: #f2f5f9; color: #7a8798; }
/* 运营提示徽章:停航 / 维护 / 客运暂停(不影响排序) */
.badge.notice-maintenance { border-color: #f0c9c2; background: #fdeceb; color: #b02a1a; }
.badge.notice-seasonal { border-color: #f2ddb0; background: #fff6e3; color: #a16207; }
.badge.notice-cargo_only { border-color: #d6dce8; background: #f0f3f9; color: #55657d; }
.detail-alert.notice-maintenance { border-color: #f0d0d0; background: #fdf2f2; }
.detail-alert.notice-maintenance .detail-alert-title { color: #b02a1a; }
.detail-alert.notice-seasonal { border-color: #f2dcb8; background: #fff8ec; }
.detail-alert.notice-seasonal .detail-alert-title { color: #a16207; }
.detail-alert.notice-cargo_only { border-color: #d8dee9; background: #f4f7fb; }
.detail-alert.notice-cargo_only .detail-alert-title { color: #55657d; }

/* 详情卡:状态提示块(已关闭 / 即将关闭 / 即将开通) */
.detail-alert {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1px solid #e6d9c6;
  background: #fdf9f3;
  font-size: 12.5px;
  line-height: 1.65;
}
.detail-alert-title { font-weight: 700; margin-bottom: 3px; }
.detail-alert-line { color: #4d4438; }
.detail-alert-line b { color: inherit; }
.detail-alert.status-closed { border-color: #f0d0d0; background: #fdf2f2; }
.detail-alert.status-closed .detail-alert-title { color: #b42318; }
.detail-alert.status-closing { border-color: #f2dcb8; background: #fff8ec; }
.detail-alert.status-closing .detail-alert-title { color: #b45309; }
.detail-alert.status-upcoming { border-color: #cfdffa; background: #f1f6ff; }
.detail-alert.status-upcoming .detail-alert-title { color: #1d4ed8; }

/* 详情卡:跑道明细(多跑道机场各条长度常不同,逐条列出) */
.detail-rwys {
  margin-top: 16px;
  border: 1px solid #e6edf6;
  border-radius: 10px;
  overflow: hidden;
  background: #fbfcfe;
}
.detail-rwys-title {
  padding: 8px 12px;
  background: #f1f5fb;
  font-size: 12.5px;
  font-weight: 600;
  color: #33455c;
  border-bottom: 1px solid #e6edf6;
}
.rwy-count { color: #64748b; font-weight: 500; margin-left: 2px; }
.rwy-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 7px 12px;
  font-size: 12.5px;
  border-top: 1px solid #f0f4f9;
}
.rwy-row:first-of-type { border-top: 0; }
.rwy-id {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #1746a2;
  letter-spacing: 0.02em;
}
.rwy-dim { color: #33455c; font-variant-numeric: tabular-nums; }
.rwy-surf { color: #7a8a9e; font-size: 11.5px; white-space: nowrap; }

.list-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-top: 1px solid var(--line-soft);
  background: #fbfcfe;
}
.list-footer--grid {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #cdddf7;
  border-radius: 9px;
  background: #fff;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 500;
}
.more-btn:hover { border-color: #aac7f5; background: #f0f6ff; }
.more-hint { color: #8494aa; font-size: 11.5px; font-weight: 400; }
.list-done { color: #94a3b8; font-size: 12px; }

/* ---------- 空状态 ---------- */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 24px 72px;
  border: 1px dashed #dbe4f0;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #eef4ff;
  color: #5b86d6;
}
.empty-icon svg { width: 25px; height: 25px; }
.empty-title { color: #1a2f4b; font-size: 16px; font-weight: 600; }
.empty-text { max-width: 470px; margin-top: 6px; color: #74859c; font-size: 13px; line-height: 1.7; }
.empty-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.chip {
  padding: 6px 12px;
  border: 1px solid #dce6f5;
  border-radius: 999px;
  background: #f2f6fd;
  color: #2c4d7c;
  font-size: 12.5px;
}
.chip:hover { border-color: #bcd2f2; background: #e8f1ff; color: var(--brand-strong); }

/* ---------- 机场详情抽屉 ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(7, 17, 33, 0.52);
  animation: fade-in 0.18s ease-out;
}

.detail {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(460px, 100vw);
  background: #fff;
  box-shadow: -24px 0 70px rgba(4, 14, 30, 0.4);
  animation: slide-in 0.24s cubic-bezier(0.18, 0.78, 0.22, 1);
}

.detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e3eaf3;
  border-radius: 50%;
  background: #f1f5fa;
  color: #5d708a;
  transition: background 0.12s ease, color 0.12s ease;
}
.detail-close:hover { background: #e4ecf7; color: #0f2542; }
.detail-close svg { width: 15px; height: 15px; }

.detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 26px 26px 36px;
}

.detail-hero { display: flex; align-items: flex-end; gap: 28px; padding: 6px 40px 0 0; }
.detail-code-block { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.detail-code-label {
  color: #8b9ab0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.detail-code-iata {
  color: #0c2c5c;
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.95;
}
.detail-code-iata.is-empty { color: #c4cedb; }
.detail-code-icao {
  padding-bottom: 5px;
  color: #2f4e78;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.detail-code-icao.is-empty { color: #c4cedb; }
.icao-block { padding-bottom: 6px; }

.detail-copy { display: flex; gap: 8px; margin-top: 16px; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  background: #f3f7fd;
  color: #274b7d;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.copy-btn:hover { border-color: #bcd3f2; background: #e9f2ff; color: var(--brand-strong); }
.copy-btn:disabled { opacity: 0.45; }
.copy-btn svg { width: 13px; height: 13px; }

.detail-name {
  margin-top: 24px;
  color: #0f2138;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.detail-name-derived { color: #8494aa; font-size: 14px; font-weight: 400; }
.detail-name-en { margin-top: 4px; color: #7d8da3; font-size: 13px; line-height: 1.5; }
.detail-name-note {
  margin-top: 7px;
  padding-left: 9px;
  border-left: 2px solid #dbe4f0;
  color: #8b9ab0;
  font-size: 11.5px;
  line-height: 1.5;
}

.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.info-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #f7f9fd;
}
.info-item.is-wide { grid-column: 1 / -1; }
.info-label { color: #8b9ab0; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; }
.info-value { color: #17293f; font-size: 13.5px; font-weight: 500; line-height: 1.45; word-break: break-word; }
.info-value.mono { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.01em; }
.coord-sep { color: #adbbcc; }
.elev-alt { color: #74859c; font-weight: 400; }

.detail-foot {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  color: #94a3b8;
  font-size: 11.5px;
  line-height: 1.6;
}

body.detail-open { overflow: hidden; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  max-width: calc(100vw - 32px);
  padding: 10px 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: #0c1d33;
  color: #f2f7ff;
  font-size: 13px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(4, 14, 30, 0.4);
  animation: fade-up 0.18s ease-out;
}

.noscript {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 300;
  padding: 12px 20px;
  background: #7f1d1d;
  color: #fff;
  font-size: 13px;
  text-align: center;
}

mark { padding: 0 1px; border-radius: 3px; background: #e3edff; color: #0f3f9c; }

/* ---------- 动画 ---------- */
@keyframes slide-in {
  from { transform: translateX(40px); opacity: 0.4; }
  to { transform: none; opacity: 1; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fade-up {
  from { transform: translate(-50%, 8px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 8px;
  background: #c9d5e4;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: #aebdd1; background-clip: content-box; }
.sidebar ::-webkit-scrollbar-thumb { background: #29405f; background-clip: content-box; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .topbar { gap: 18px; grid-template-columns: auto minmax(0, 1fr); }
  .topbar-meta { display: none; }
  .content { padding: 0 22px 48px; }
  .airport-row { grid-template-columns: 128px auto minmax(0, 1fr) auto; gap: 14px; }
  .row-place { display: none; }
}

@media (max-width: 1099px) {
  .app { grid-template-columns: 268px minmax(0, 1fr); }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* 单栏:导航折叠 */
@media (max-width: 899px) {
  body {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .topbar {
    position: sticky;
    top: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 10px 14px 11px;
  }
  .brand-mark { width: 33px; height: 33px; border-radius: 9px; }
  .brand-mark svg { width: 18px; height: 18px; }
  .brand-text { min-width: 0; }
  .brand-text h1 { font-size: 15px; }
  .brand-text p { display: none; }      /* 窄屏隐去副标题,给搜索框让位 */
  .topbar-meta { display: none; }       /* 顶部统计数字在窄屏没位置 */
  .search { max-width: none; height: 42px; }
  .search input { font-size: 14px; }
  .search-kbd { display: none; }
  .search input { padding-right: 56px; }
  .search-clear { right: 12px; }

  .app { display: block; }

  .mobile-bar {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 16px;
    border-bottom: 1px solid #dde6f1;
    background: #eef3fa;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border: 1px solid #d3dfed;
    border-radius: 8px;
    background: #fff;
    color: #23405f;
    font-size: 13px;
  }
  .nav-toggle svg { width: 15px; height: 15px; color: #4c6b8e; }
  .nav-toggle[aria-expanded="true"] { border-color: #a9c2ec; color: var(--brand-strong); }
  .mobile-location {
    overflow: hidden;
    color: #5c718a;
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar {
    display: none;
    max-height: min(58vh, 520px);
    border-right: 0;
    border-bottom: 1px solid #16283f;
  }
  .app.nav-open .sidebar { display: flex; }
  .nav-inner { padding: 10px 14px 14px; }
  .nav-item { padding: 10px 11px; font-size: 14px; }
  /* 数据说明在抽屉底部保留,不再整体隐藏(2026-10-22 bro 反馈手机看不到) */
  .sidebar-foot { display: block; }

  .content { overflow: visible; padding: 0 16px 40px; }
  .content-head {
    position: static;
    padding: 16px 0 10px;
    background: transparent;
  }
  .content.is-scrolled .content-head { box-shadow: none; }
  .view { padding-top: 0; }

  .title-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .title-actions { padding-bottom: 0; }
  .view-title { font-size: 21px; }

  .detail { width: 100%; }
  .detail-body { padding: 22px 18px 32px; }
  .detail-code-iata { font-size: 50px; }
  .detail-hero { gap: 22px; }
}

@media (max-width: 760px) {
  .airport-row {
    grid-template-columns: 104px auto minmax(0, 1fr);
    row-gap: 6px;
    padding: 10px 13px;
  }
  .row-codes { align-self: center; gap: 6px; }
  .row-iata, .row-icao { font-size: 17px; }
  .row-tags { grid-column: 2; justify-content: flex-start; padding-top: 1px; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .topbar { padding: 9px 12px 10px; }
  .content { padding: 0 12px 32px; }
  .mobile-bar { padding: 9px 12px; }
  .card-grid,
  .continent-grid { grid-template-columns: 1fr; gap: 10px; }
  .card { padding: 13px 13px 11px; }
  .continent-card .card-title { font-size: 18px; }
  .detail-hero { gap: 16px; }
  .detail-code-iata { font-size: 44px; }
  .detail-code-icao { font-size: 17px; }
  .detail-copy { flex-wrap: wrap; }
  .detail-grid { grid-template-columns: 1fr; }
  .list-footer { padding: 12px; }
}

/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .content { scroll-behavior: auto; }
}

/* ============================================================
   门户首页(2026-10-22):两个入口卡片
   ============================================================ */
.portal { max-width: 1060px; margin: 0 auto; padding: 28px 0 12px; }
.portal-hero { text-align: center; margin-bottom: 34px; }
.portal-title {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #10233c;
}
.portal-sub { margin: 0; font-size: 14px; color: #6a7e97; letter-spacing: 0.04em; }
.portal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.portal-card {
  display: block;
  padding: 26px 26px 22px;
  border: 1px solid #e2e9f3;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px -4px rgba(16, 35, 60, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.portal-card:hover,
.portal-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -16px rgba(16, 35, 60, 0.35);
  border-color: #c3d4ec;
}
.portal-eaip { border-top: 4px solid #b02a1a; }
.portal-global { border-top: 4px solid #1746a2; }
.pc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pc-badge {
  padding: 3px 9px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.portal-eaip .pc-badge { background: #fdeceb; color: #b02a1a; }
.portal-global .pc-badge { background: #e9f0ff; color: #1746a2; }
.pc-flag { font-size: 11.5px; color: #8595aa; }
.pc-title { margin: 0 0 8px; font-size: 19px; font-weight: 700; color: #14283f; }
.pc-desc { margin: 0 0 14px; font-size: 13px; line-height: 1.7; color: #56687e; }
.pc-list { margin: 0 0 18px; padding-left: 18px; }
.pc-list li { margin: 5px 0; font-size: 12.5px; line-height: 1.6; color: #41536b; }
.pc-enter { font-size: 13px; font-weight: 600; }
.portal-eaip .pc-enter { color: #b02a1a; }
.portal-global .pc-enter { color: #1746a2; }
.portal-foot {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid #edf1f7;
  font-size: 11.5px;
  line-height: 1.75;
  color: #8595aa;
}

/* ============================================================
   境内 eAIP:机场列表
   ============================================================ */
.eaip-list {
  margin-top: 16px;
  border: 1px solid #e4eaf3;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.eaip-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 64px 76px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-top: 1px solid #eef2f8;
  background: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.eaip-list .eaip-row:first-child { border-top: 0; }
.eaip-row:hover { background: #f6f9ff; }
.eaip-row:focus-visible { outline: 2px solid #1746a2; outline-offset: -2px; }
.eaip-icao {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #1746a2;
  letter-spacing: 0.03em;
}
.eaip-name { font-size: 14px; color: #1a3355; }
.eaip-iata {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #2f6bd6;
}
.eaip-iata.is-empty { color: #c3ccd8; font-weight: 500; }
.eaip-cnt { font-size: 12px; color: #6a7e97; text-align: right; font-variant-numeric: tabular-nums; }

/* ============================================================
   境内 eAIP:机场航图详情
   ============================================================ */
.eaip-detail-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 20px;
  margin-bottom: 6px;
  border: 1px solid #e4eaf3;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfcfe, #f5f8fd);
}
.edh-codes { display: flex; align-items: baseline; gap: 10px; }
.edh-icao {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: #1746a2;
  letter-spacing: 0.02em;
}
.edh-iata {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: #2f6bd6;
}
.edh-name { font-size: 16px; font-weight: 600; color: #14283f; }
.eaip-section { margin-top: 22px; }
.eaip-sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f8;
  font-size: 14px;
  font-weight: 700;
  color: #1a3355;
}
.eaip-sec-count {
  padding: 1px 7px;
  border-radius: 999px;
  background: #eef3fb;
  color: #5b7391;
  font-size: 11px;
  font-weight: 600;
}
.eaip-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}
.eaip-pdf {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid #e4eaf3;
  border-radius: 9px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.eaip-pdf:hover { border-color: #a9c2e8; background: #f7faff; }
.pdf-ico {
  flex: none;
  padding: 2px 5px;
  border-radius: 4px;
  background: #fdeceb;
  color: #b02a1a;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pdf-name {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #24384f;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.pdf-size {
  flex: none;
  font-size: 11px;
  color: #93a3b8;
  font-variant-numeric: tabular-nums;
}

/* 全球详情页里的 eAIP 入口 */
.detail-eaip { margin: 14px 0 4px; }
.detail-eaip-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid #e5c9c5;
  border-radius: 10px;
  background: #fdf6f5;
  color: #8f2416;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.detail-eaip-btn:hover { background: #fbeae8; border-color: #dbaba4; }
.de-ico {
  padding: 2px 5px;
  border-radius: 4px;
  background: #b02a1a;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}
.de-count {
  padding: 1px 7px;
  border-radius: 999px;
  background: #f0d9d5;
  color: #8f2416;
  font-size: 11.5px;
  font-weight: 700;
}
.detail-eaip-note { margin: 7px 0 0; font-size: 11.5px; line-height: 1.6; color: #93a3b8; }

@media (max-width: 760px) {
  .portal { padding: 14px 0 8px; }
  .portal-title { font-size: 23px; }
  .portal-card { padding: 20px 18px 18px; }
  .eaip-row { grid-template-columns: 66px minmax(0, 1fr) 52px 62px; gap: 8px; padding: 11px 13px; }
  .eaip-links { grid-template-columns: 1fr; }
  .edh-icao { font-size: 21px; }
}

/* ============================================================
   窄屏数据说明(桌面端由左侧栏底部展示)
   ============================================================ */
.mobile-foot { display: none; }
@media (max-width: 899px) {
  .mobile-foot {
    display: block;
    margin: 30px 0 4px;
    padding-top: 16px;
    border-top: 1px solid #e4eaf3;
    color: #8595aa;
    font-size: 11.5px;
    line-height: 1.8;
  }
  .mobile-foot p { margin: 3px 0; }
  .mobile-foot .foot-title { color: #6a7e97; letter-spacing: 0.08em; }
  .mobile-foot .foot-version { color: #9db4d2; }
  .mobile-foot .foot-version b { color: #3c5a7d; }
  .mobile-foot .foot-version-more { color: #2f6bd6; }
  .mobile-foot .foot-demo { color: #a16207; }
}

/* ============================================================
   动效:内容区切换淡入(JS 里用 Web Animations API 触发)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* 卡片 / 列表行的进入微动效 */
@keyframes afFadeUp {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}
.portal-card,
.eaip-section,
.card-grid > * {
  animation: afFadeUp 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.card-grid > *:nth-child(n+5) { animation-delay: 0.04s; }
.eaip-section:nth-of-type(n+3) { animation-delay: 0.05s; }

/* 航图链接:hover 时 PDF 图标轻微放大 */
.eaip-pdf .pdf-ico { transition: transform 0.16s ease; }
.eaip-pdf:hover .pdf-ico { transform: scale(1.08); }

/* 航图分组标题左侧色条 */
.eaip-sec-title::before {
  content: "";
  width: 3px;
  height: 13px;
  margin-right: 2px;
  border-radius: 2px;
  background: #c9d8ec;
}
