/* 帮助中心 /help（.hp-*）。只用 impes.css 的 --impes-* / --glass-* 变量，深色主题自动跟随。 */

.hp { --hp-sticky: 76px; padding: 1.6rem 1.25rem 3rem; }
.impes-mode-app .hp { --hp-sticky: 68px; padding: 0 0 2rem; }
.hp-wrap { max-width: 1240px; margin: 0 auto; }
.hp-head { margin-bottom: 1.2rem; align-items: flex-end; }
.hp-head h1 { font-size: 1.55rem; line-height: 1.35; }
.hp-head p { max-width: 720px; line-height: 1.7; }
.hp-crumb { display: flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--impes-muted); margin-bottom: .35rem; flex-wrap: wrap; }
.hp-crumb a, .hp-crumb span { display: inline-flex; align-items: center; gap: .35rem; color: var(--impes-muted); text-decoration: none; }
.hp-crumb a:hover { color: var(--impes-link); }
.hp-crumb > .fa-chevron-right { font-size: .6rem; opacity: .6; }

/* ── 两栏 ── */
.hp-grid { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.hp-main { min-width: 0; }
.hp-side { position: sticky; top: var(--hp-sticky); max-height: calc(100vh - var(--hp-sticky) - 1rem); display: flex; flex-direction: column; min-width: 0; }
.hp-toc { display: flex; flex-direction: column; min-height: 0; border-radius: 14px; padding: .8rem; background: var(--glass-bg, var(--impes-surface)); border: 1px solid var(--glass-line, var(--impes-border));
  box-shadow: var(--glass-shadow, var(--impes-shadow)), 0 0 0 1px var(--glass-edge, transparent); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.hp-toc-nav { overflow-y: auto; overscroll-behavior: contain; margin: .2rem -.3rem 0; padding: 0 .3rem; scrollbar-width: thin; }
.hp-toc-toggle { display: none; }
.hp-toc-home { display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; border-radius: 8px; font-size: .86rem; font-weight: 600; color: var(--impes-text); text-decoration: none; margin-bottom: .3rem; }
.hp-toc-home i { color: var(--impes-violet); width: 1rem; text-align: center; }
.hp-toc-group { padding: .35rem 0 .2rem; border-top: 1px solid var(--glass-edge, var(--impes-border)); }
.hp-toc-group h3 { display: flex; align-items: center; gap: .5rem; margin: .35rem .6rem .25rem; font-size: .76rem; font-weight: 700; letter-spacing: .02em; color: var(--impes-muted); }
.hp-toc-group h3 i { color: var(--hp-acc, var(--impes-violet)); width: 1rem; text-align: center; font-size: .8rem; }
.hp-toc-group ol { list-style: none; margin: 0; padding: 0; }
.hp-toc-group a { display: block; padding: .38rem .6rem .38rem 2.1rem; border-radius: 8px; font-size: .86rem; line-height: 1.45; color: var(--impes-text-2); text-decoration: none; }
.hp-toc-home:hover, .hp-toc-group a:hover { background: rgba(135, 29, 245, .08); color: var(--impes-heading); }
.hp-toc-home.is-on, .hp-toc-group a.is-on { background: rgba(135, 29, 245, .13); color: var(--impes-link); font-weight: 600; box-shadow: inset 3px 0 0 var(--impes-violet); }
[data-theme="dark"] .hp-toc-home.is-on, [data-theme="dark"] .hp-toc-group a.is-on { background: rgba(192, 139, 255, .14); }

/* ── 搜索 ── */
.hp-search { position: relative; }
.hp-search > i { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--impes-muted); font-size: .85rem; pointer-events: none; }
.hp-search input { width: 100%; padding: .55rem .8rem .55rem 2.1rem; border-radius: 10px; font-size: .88rem; color: var(--impes-text);
  background: rgba(255, 255, 255, .6); border: 1px solid var(--glass-edge, var(--impes-border)); outline: none; }
[data-theme="dark"] .hp-search input { background: rgba(255, 255, 255, .06); }
.hp-search input:focus { border-color: var(--impes-violet); box-shadow: 0 0 0 3px rgba(135, 29, 245, .15); }
.hp-search-big { flex: 0 1 420px; min-width: 260px; }
.hp-search-big input { padding: .75rem 1rem .75rem 2.4rem; font-size: .95rem; border-radius: 12px; }
.hp-search-big > i { left: .95rem; }
.hp-search-big .hp-results { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 60vh; overflow-y: auto;
  background: var(--impes-surface); border: 1px solid var(--impes-border); border-radius: 12px; box-shadow: var(--impes-shadow-lg); padding: .35rem; }
.hp-results { margin-top: .5rem; overflow-y: auto; }
.hp-results a { display: block; padding: .5rem .65rem; border-radius: 8px; text-decoration: none; color: var(--impes-text); }
.hp-results a:hover, .hp-results a.is-active { background: rgba(135, 29, 245, .1); }
.hp-results b { display: block; font-size: .88rem; color: var(--impes-heading); }
.hp-results small { display: block; font-size: .76rem; color: var(--impes-muted); line-height: 1.45; }
.hp-results mark { padding: 0; background: rgba(76, 226, 242, .35); color: inherit; border-radius: 2px; }
.hp-results .hp-none { padding: .6rem .65rem; font-size: .84rem; color: var(--impes-muted); }

/* ── 文章 ── */
.hp-article { padding: 1.6rem 2rem 1.8rem; font-size: .97rem; line-height: 1.85; color: var(--impes-text); overflow: visible; }
.hp-article > :first-child { margin-top: 0; }
.hp-article h2 { position: relative; margin: 2.2rem 0 .8rem; padding-top: .2rem; font-size: 1.22rem; font-weight: 700; color: var(--impes-heading); scroll-margin-top: calc(var(--hp-sticky) + 12px); }
.hp-article h3 { margin: 1.6rem 0 .6rem; font-size: 1.04rem; font-weight: 700; color: var(--impes-heading); scroll-margin-top: calc(var(--hp-sticky) + 12px); }
.hp-article h2 .hp-anchor, .hp-article h3 .hp-anchor { margin-left: .4rem; font-size: .8em; color: var(--impes-muted); opacity: 0; text-decoration: none; }
.hp-article h2:hover .hp-anchor, .hp-article h3:hover .hp-anchor { opacity: .7; }
.hp-article p { margin: 0 0 .9rem; }
.hp-article ul, .hp-article ol:not(.hp-steps) { margin: 0 0 1rem; padding-left: 1.4rem; }
.hp-article li { margin: .25rem 0; }
.hp-article a { color: var(--impes-link); }
.hp-article strong, .hp-article b { color: var(--impes-heading); }
.hp-article code { font-size: .86em; padding: .1em .4em; border-radius: 5px; background: rgba(135, 29, 245, .08); color: var(--impes-text); word-break: break-all; }
.hp-lead { font-size: 1.03rem; color: var(--impes-text-2); }
.hp-ui { display: inline-block; padding: 0 .45em; margin: 0 .1em; border-radius: 6px; font-size: .9em; font-weight: 600; line-height: 1.6; white-space: nowrap;
  background: rgba(135, 29, 245, .1); border: 1px solid rgba(135, 29, 245, .22); color: var(--impes-heading); }
.hp-key { display: inline-block; min-width: 1.6em; padding: 0 .4em; border-radius: 5px; font: 600 .82em/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center;
  border: 1px solid var(--impes-border-strong); border-bottom-width: 2px; background: var(--impes-surface); color: var(--impes-heading); }

/* 目录（文章内） */
.hp-onpage { margin: 0 0 1.4rem; padding: .8rem 1rem; border-radius: 12px; background: rgba(135, 29, 245, .05); border: 1px solid rgba(135, 29, 245, .14); font-size: .88rem; }
.hp-onpage b { display: block; margin-bottom: .2rem; font-size: .78rem; color: var(--impes-muted); }
.hp-article .hp-onpage ol { list-style: none; margin: 0; padding-left: 0; columns: 2; column-gap: 2rem; }
.hp-onpage li::before { content: "›"; margin-right: .45rem; color: var(--impes-violet); }
.hp-onpage li { margin: .1rem 0; break-inside: avoid; }
.hp-onpage a { text-decoration: none; }

/* 步骤 */
.hp-steps { list-style: none; counter-reset: hp; margin: 1rem 0 1.4rem; padding: 0; }
.hp-steps > li { counter-increment: hp; position: relative; margin: 0; padding: 0 0 1.2rem 2.9rem; }
.hp-steps > li::before { content: counter(hp); position: absolute; left: 0; top: .1rem; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%;
  font-size: .9rem; font-weight: 700; color: #fff; background: var(--impes-gradient); box-shadow: 0 4px 12px rgba(135, 29, 245, .25); }
.hp-steps > li::after { content: ""; position: absolute; left: calc(1rem - 1px); top: 2.4rem; bottom: .2rem; width: 2px; background: linear-gradient(var(--glass-edge, var(--impes-border)), transparent); }
.hp-steps > li:last-child::after { display: none; }
.hp-steps > li > b:first-child { display: block; font-size: 1rem; color: var(--impes-heading); margin-bottom: .2rem; }

/* 提示框 */
.hp-note, .hp-tip, .hp-warn, .hp-danger { position: relative; margin: 1rem 0 1.2rem; padding: .85rem 1rem .85rem 2.8rem; border-radius: 12px; font-size: .92rem; line-height: 1.75; border: 1px solid; }
.hp-note::before, .hp-tip::before, .hp-warn::before, .hp-danger::before { font-weight: 900; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free"; font-style: normal; line-height: 1.75; position: absolute; left: 1rem; top: .95rem; }
.hp-note { background: rgba(71, 105, 233, .07); border-color: rgba(71, 105, 233, .25); }
.hp-note::before { content: "\f05a"; color: var(--impes-blue); }
.hp-tip { background: rgba(31, 169, 122, .07); border-color: rgba(31, 169, 122, .28); }
.hp-tip::before { content: "\f0eb"; color: var(--impes-success); }
.hp-warn { background: rgba(231, 154, 27, .09); border-color: rgba(231, 154, 27, .4); }
.hp-warn::before { content: "\f071"; color: var(--impes-warning); }
.hp-danger { background: rgba(229, 72, 77, .07); border-color: rgba(229, 72, 77, .35); }
.hp-danger::before { content: "\f06a"; color: var(--impes-danger); }
.hp-note > :last-child, .hp-tip > :last-child, .hp-warn > :last-child, .hp-danger > :last-child { margin-bottom: 0; }
.hp-note b:first-child, .hp-tip b:first-child, .hp-warn b:first-child, .hp-danger b:first-child { margin-right: .3rem; }

/* 表格 */
.hp-table { width: 100%; margin: .6rem 0 1.3rem; border-collapse: separate; border-spacing: 0; font-size: .9rem; border: 1px solid var(--glass-edge, var(--impes-border)); border-radius: 12px; overflow: hidden; }
.hp-table th, .hp-table td { padding: .55rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--glass-edge, var(--impes-border)); line-height: 1.6; }
.hp-table tr:last-child td { border-bottom: 0; }
.hp-table th { font-size: .8rem; font-weight: 700; color: var(--impes-muted); background: rgba(135, 29, 245, .05); }
.hp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: .6rem 0 1.3rem; }
.hp-table-wrap .hp-table { margin: 0; }
.hp-c-ok { color: var(--impes-success); font-weight: 600; }
.hp-c-warn { color: var(--impes-warning); font-weight: 600; }
.hp-c-bad { color: var(--impes-danger); font-weight: 600; }
[data-theme="dark"] .hp-c-warn { color: #F5B547; }
[data-theme="dark"] .hp-c-bad { color: #FF8A8E; }
[data-theme="dark"] .hp-c-ok { color: #4FD1A5; }

/* 图片 */
.hp-fig { margin: 1rem 0 1.5rem; }
.hp-fig .hp-zoom { display: block; border-radius: 12px; overflow: hidden; cursor: zoom-in; border: 1px solid var(--glass-edge, var(--impes-border)); background: #0F1117; box-shadow: 0 6px 22px rgba(25, 15, 60, .1); }
.hp-fig.is-mock .hp-zoom { background: transparent; }
.hp-fig img { display: block; width: 100%; height: auto; }
.hp-fig figcaption { margin-top: .5rem; font-size: .83rem; line-height: 1.6; color: var(--impes-muted); text-align: center; }
.hp-mock-tag { display: inline-block; margin-right: .4rem; padding: 0 .45em; border-radius: 5px; font-size: .74rem; font-weight: 700; line-height: 1.6; color: #8A5A00; background: rgba(231, 154, 27, .16); border: 1px solid rgba(231, 154, 27, .45); vertical-align: 1px; }
[data-theme="dark"] .hp-mock-tag { color: #F5C26B; }
.hp-fig.is-phone { max-width: 300px; margin-left: auto; margin-right: auto; }
.hp-fig.is-phone .hp-zoom { border-radius: 22px; }
.hp-fig.is-small { max-width: 560px; margin-left: auto; margin-right: auto; }
.hp-figrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; align-items: start; margin: 1rem 0 1.4rem; }
.hp-figrow .hp-fig { margin: 0; max-width: none; }
.hp-fig-missing { display: grid; place-items: center; gap: .4rem; min-height: 160px; padding: 1.5rem; border-radius: 12px; border: 2px dashed var(--impes-border-strong); color: var(--impes-muted); font-size: .85rem; text-align: center; }
.hp-fig-missing i { font-size: 1.6rem; }

.hp-lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 2.5rem 1rem 1rem; background: rgba(8, 6, 18, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: zoom-out; }
.hp-lightbox[hidden] { display: none; }
.hp-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.hp-lightbox button { position: absolute; top: .8rem; right: .8rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.1rem; }

/* 下载块 */
.hp-dl { display: flex; align-items: center; gap: 1rem; margin: 1rem 0 1.4rem; padding: 1rem 1.2rem; border-radius: 16px; border: 1px solid rgba(135, 29, 245, .25);
  background: linear-gradient(120deg, rgba(135, 29, 245, .12), rgba(215, 71, 233, .08) 55%, rgba(76, 226, 242, .12)); }
.hp-dl-icon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #140D2E; box-shadow: 0 6px 18px rgba(20, 13, 46, .25); }
.hp-dl-icon img { width: 34px; height: 34px; }
.hp-dl-main { flex: 1 1 auto; min-width: 0; display: grid; gap: .1rem; }
.hp-dl-main b { font-size: 1.05rem; color: var(--impes-heading); }
.hp-dl-main span { font-size: .82rem; color: var(--impes-muted); }
.hp-dl-main small { font-size: .82rem; color: var(--impes-text-2); line-height: 1.6; }
.hp-dl-act { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.hp-dl-act .btn { white-space: nowrap; padding: .55rem 1.1rem; }
.hp-dl.is-off .btn[disabled] { opacity: .6; cursor: not-allowed; }
.hp-dl-alt { font-size: .78rem; }

/* 上一篇 / 下一篇 */
.hp-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 0 1rem; }
.hp-pager a { display: block; padding: .85rem 1.1rem; border-radius: 12px; text-decoration: none; background: var(--glass-bg, var(--impes-surface)); border: 1px solid var(--glass-line, var(--impes-border));
  box-shadow: 0 0 0 1px var(--glass-edge, transparent); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.hp-pager a:hover { border-color: rgba(135, 29, 245, .45) !important; }
.hp-pager small { display: block; font-size: .76rem; color: var(--impes-muted); }
.hp-pager b { display: block; margin-top: .1rem; font-size: .93rem; color: var(--impes-heading); }
.hp-next { text-align: right; grid-column: 2; }
.hp-foot { font-size: .82rem; color: var(--impes-muted); text-align: center; margin: 1rem 0 0; }

/* ── 首页 ── */
.hp-hero { padding: 1.4rem 1.5rem; border-radius: 18px; background: var(--impes-gradient-soft); border: 1px solid rgba(135, 29, 245, .16); align-items: center; }
.hp-hero h1 { font-size: 1.8rem; }
.hp-path { margin: 0 0 1.2rem; }
.hp-path h3, .hp-cat h3 { font-size: 1.05rem; font-weight: 700; color: var(--impes-heading); margin: 0 0 .7rem; display: flex; align-items: center; gap: .5rem; }
.hp-path ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.hp-path a { display: grid; gap: .2rem; height: 100%; padding: .9rem 1rem; border-radius: 14px; text-decoration: none; background: var(--glass-bg, var(--impes-surface));
  border: 1px solid var(--glass-line, var(--impes-border)); box-shadow: var(--glass-shadow, var(--impes-shadow)), 0 0 0 1px var(--glass-edge, transparent); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); transition: transform .15s; }
.hp-path a:hover { transform: translateY(-2px); border-color: rgba(135, 29, 245, .4) !important; }
.hp-path em { width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-weight: 700; font-size: .85rem; color: #fff; background: var(--impes-gradient); margin-bottom: .2rem; }
.hp-path b { font-size: .95rem; color: var(--impes-heading); }
.hp-path span { font-size: .8rem; color: var(--impes-muted); line-height: 1.5; }
.hp-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.hp-cat { padding: 1.2rem 1.3rem; margin: 0; }
.hp-cat h3 i { color: var(--hp-acc, var(--impes-violet)); }
.hp-cat > p { font-size: .86rem; color: var(--impes-muted); margin: -.3rem 0 .6rem; }
.hp-cat ol { list-style: none; margin: 0; padding: 0; }
.hp-cat li + li { border-top: 1px solid var(--glass-edge, var(--impes-border)); }
.hp-cat a { display: block; padding: .55rem .2rem; text-decoration: none; }
.hp-cat a b { display: block; font-size: .92rem; color: var(--impes-heading); }
.hp-cat a small { display: block; font-size: .79rem; color: var(--impes-muted); line-height: 1.5; }
.hp-cat a:hover b { color: var(--impes-link); }


/* ── 三个中心：虚拟航司 / 联飞中心 / 管制中心（颜色同 centres.css 的中心切换按钮：紫 / 青 / 琥珀） ── */
.is-c-airline { --hp-acc: #7354C7; --hp-acc-rgb: 115, 84, 199; }
.is-c-network { --hp-acc: #0A7A73; --hp-acc-rgb: 10, 122, 115; }
.is-c-atc { --hp-acc: #A85A0C; --hp-acc-rgb: 168, 90, 12; }
.is-c-admin { --hp-acc: #4C51BF; --hp-acc-rgb: 76, 81, 191; }
[data-theme="dark"] .is-c-airline { --hp-acc: #B79CFF; --hp-acc-rgb: 183, 156, 255; }
[data-theme="dark"] .is-c-network { --hp-acc: #3FD6CC; --hp-acc-rgb: 63, 214, 204; }
[data-theme="dark"] .is-c-atc { --hp-acc: #F5A64A; --hp-acc-rgb: 245, 166, 74; }
[data-theme="dark"] .is-c-admin { --hp-acc: #A3A8FF; --hp-acc-rgb: 163, 168, 255; }

.hp-cjump { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .7rem; margin: 0 0 1.4rem; }
.hp-cjump a { display: flex; align-items: center; gap: .55rem; padding: .7rem 1rem; border-radius: 14px; text-decoration: none; color: var(--impes-heading);
  background: var(--glass-bg, var(--impes-surface)); border: 1px solid var(--glass-line, var(--impes-border)); box-shadow: inset 4px 0 0 var(--hp-acc), 0 0 0 1px var(--glass-edge, transparent);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); transition: transform .15s; }
.hp-cjump a:hover { transform: translateY(-2px); border-color: rgba(var(--hp-acc-rgb), .5) !important; }
.hp-cjump i { color: var(--hp-acc); width: 1.1rem; text-align: center; }
.hp-cjump b { font-size: .95rem; }
.hp-cjump small { margin-left: auto; font-size: .76rem; color: var(--impes-muted); white-space: nowrap; }

.hp-centre { margin: 0 0 2rem; scroll-margin-top: calc(var(--hp-sticky) + 8px); }
.hp-centre-head { display: flex; align-items: flex-start; gap: .8rem; margin: 0 0 1rem; padding: 0 0 .7rem; border-bottom: 2px solid rgba(var(--hp-acc-rgb), .35); }
.hp-centre-icon { flex: 0 0 auto; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--hp-acc); font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(var(--hp-acc-rgb), .3); }
[data-theme="dark"] .hp-centre-icon { color: #12101C; }
.hp-centre-head h2 { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: 0; font-size: 1.3rem; font-weight: 800; color: var(--impes-heading); }
.hp-centre-head p { margin: .15rem 0 0; font-size: .88rem; color: var(--impes-muted); }
.hp-centre-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .55rem; border-radius: 99px; font-size: .72rem; font-weight: 700;
  color: var(--hp-acc); background: rgba(var(--hp-acc-rgb), .12); border: 1px solid rgba(var(--hp-acc-rgb), .3); }
.hp-centre .hp-cat { box-shadow: inset 0 3px 0 rgba(var(--hp-acc-rgb), .55); }
.hp-centre .hp-cat a:hover b { color: var(--hp-acc); }

.hp-crumb a.hp-crumb-centre { color: var(--hp-acc, var(--impes-muted)); font-weight: 600; }
.hp-toc-centres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: .2rem 0 .5rem; }
.hp-toc-centres a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .4rem .2rem; border-radius: 9px; font-size: .74rem; font-weight: 600; text-align: center;
  color: var(--impes-text-2); text-decoration: none; border: 1px solid var(--glass-edge, var(--impes-border)); }
.hp-toc-centres a i { color: var(--hp-acc); font-size: .85rem; }
.hp-toc-centres a:hover { background: rgba(var(--hp-acc-rgb), .08); color: var(--impes-heading); }
.hp-toc-centres a.is-on { background: rgba(var(--hp-acc-rgb), .14); border-color: rgba(var(--hp-acc-rgb), .45); color: var(--impes-heading); }
.hp:not(.hp-home) .hp-toc-group a.is-on { box-shadow: inset 3px 0 0 var(--hp-acc, var(--impes-violet)); background: rgba(var(--hp-acc-rgb, 135, 29, 245), .13); color: var(--hp-acc, var(--impes-link)); }
.hp.is-c-network .hp-steps > li::before, .hp.is-c-atc .hp-steps > li::before, .hp.is-c-admin .hp-steps > li::before { background: var(--hp-acc); box-shadow: 0 4px 12px rgba(var(--hp-acc-rgb), .25); }
[data-theme="dark"] .hp.is-c-network .hp-steps > li::before, [data-theme="dark"] .hp.is-c-atc .hp-steps > li::before { color: #12101C; }

/* ── 平板 ── */
@media (max-width: 1199.98px) {
  .hp-path ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .hp-grid { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .hp-side { position: sticky; top: var(--hp-sticky); z-index: 20; max-height: none; }
  .impes-mode-app .hp-side { top: 60px; }
  .hp-toc-toggle { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .65rem .9rem; border-radius: 12px; font-size: .9rem; font-weight: 600; text-align: left; color: var(--impes-heading);
    background: var(--glass-bg-strong, var(--impes-surface)); border: 1px solid var(--glass-line, var(--impes-border)); box-shadow: var(--impes-shadow), 0 0 0 1px var(--glass-edge, transparent);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
  .hp-toc-toggle > i:first-child { color: var(--impes-violet); }
  .hp-toc-toggle span { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: .5rem; }
  .hp-toc-toggle small { font-weight: 400; color: var(--impes-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hp-caret { transition: transform .2s; font-size: .8rem; color: var(--impes-muted); }
  .hp-side.is-open .hp-caret { transform: rotate(180deg); }
  .hp-toc { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); max-height: calc(100vh - var(--hp-sticky) - 80px); background: var(--glass-bg-strong, var(--impes-surface)); box-shadow: var(--impes-shadow-lg); }
  .hp-side.is-open .hp-toc { display: flex; }
  .hp-article { padding: 1.3rem 1.3rem 1.5rem; }
  .hp-cats { grid-template-columns: minmax(0, 1fr); }
}
/* ── 手机 ── */
@media (max-width: 767.98px) {
  .hp { --hp-sticky: 64px; padding: 1rem 1rem 2.5rem; }
  .impes-mode-app .hp { padding: 0 0 1.5rem; }
  .hp-head h1 { font-size: 1.3rem; }
  .hp-hero { padding: 1.1rem; }
  .hp-hero h1 { font-size: 1.45rem; }
  .hp-search-big { flex: 1 1 100%; width: 100%; min-width: 0; }
  .hp-hero > div:first-child { flex: 1 1 100%; }
  .hp-path ol { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .hp-cjump { grid-template-columns: minmax(0, 1fr); gap: .45rem; margin-bottom: 1.1rem; }
  .hp-cjump a { padding: .6rem .85rem; }
  .hp-centre-head h2 { font-size: 1.15rem; }
  .hp-centre-icon { width: 2.3rem; height: 2.3rem; }
  .hp-path a { grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; padding: .7rem .9rem; }
  .hp-path em { grid-row: span 2; margin: 0; }
  .hp-article { padding: 1.1rem 1rem 1.3rem; font-size: .95rem; border-radius: 12px; }
  .hp-article h2 { font-size: 1.12rem; margin-top: 1.8rem; }
  .hp-steps > li { padding-left: 2.5rem; }
  .hp-steps > li::before { width: 1.75rem; height: 1.75rem; font-size: .82rem; }
  .hp-steps > li::after { left: calc(.875rem - 1px); }
  .hp-article .hp-onpage ol { columns: 1; }
  .hp-fig .hp-zoom { border-radius: 9px; }
  .hp-dl { flex-wrap: wrap; padding: .9rem 1rem; }
  .hp-dl-main { flex-basis: calc(100% - 70px); }
  .hp-dl-act { flex: 1 1 100%; align-items: stretch; }
  .hp-pager { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .hp-next { grid-column: 1; }
  .hp-note, .hp-tip, .hp-warn, .hp-danger { padding-left: 2.5rem; padding-right: .85rem; }
  .hp-note::before, .hp-tip::before, .hp-warn::before, .hp-danger::before { left: .85rem; }
}
@media print {
  .hp-side, .hp-pager, .hp-foot, .hp-lightbox { display: none !important; }
  .hp-grid { display: block; }
}

/* 陆空通话对话（教材）：飞行员 <b> 一行，管制员 <i> 一行 */
.hp-rt { margin: .6rem 0 1.1rem; padding: .35rem 0; border: 1px solid var(--glass-edge, var(--impes-border)); border-radius: 12px; overflow: hidden; }
.hp-rt p { margin: 0; padding: .45rem .9rem .45rem 5.4rem; position: relative; line-height: 1.65; font-size: .93rem; }
.hp-rt p + p { border-top: 1px dashed var(--glass-edge, var(--impes-border)); }
.hp-rt p > b:first-child, .hp-rt p > i:first-child { position: absolute; left: .9rem; top: .5rem; width: 4rem; font-style: normal; font-weight: 700; font-size: .78rem; letter-spacing: .02em; }
.hp-rt p > b:first-child { color: #0e9fb3; }
.hp-rt p > i:first-child { color: #b7791f; }
.hp-rt p:has(> i:first-child) { background: rgba(245, 158, 11, .06); }
@media (max-width: 560px) { .hp-rt p { padding-left: .9rem; } .hp-rt p > b:first-child, .hp-rt p > i:first-child { position: static; display: block; width: auto; margin-bottom: .1rem; } }
