/* ======================================================================
 * 46 · 候机与转机缓冲 · 独立色板「深海军蓝」+ 视觉母题「航段流程链 / 跑道」
 * 首屏 wide：全宽标题，下方一条横向流程链（节点 + 连接线 + 飞行图标）；
 * 结果区为单条水平时间链甘特，必需环节与可用缓冲分区着色。
 * ====================================================================== */

.lw--airport {
    --a: #294b86;
    --a2: #6f9bd6;
    --a-soft: #e8eff9;
    --a-ink: #ffffff;
}
:root[data-theme="dark"] .lw--airport {
    --a: #7ba9e6;
    --a2: #a6c7ef;
    --a-soft: #18283e;
    --a-ink: #0a1a30;
}

.ab-hero-box h1 em { display: block; font-size: .51em; font-weight: 700; margin-top: 9px; line-height: 1.45; }
.ab-hero-box .lw-desc { max-width: 80em; }
.ab-hero-box .lw-tags { margin-top: 16px; }

/* ---------- 流程链 ---------- */
.ab-chain { display: flex; align-items: flex-start; gap: 0; margin-top: 26px; overflow-x: auto; padding-bottom: 6px; }
.ab-chain-node { flex: 1 0 92px; min-width: 92px; text-align: center; position: relative; }
.ab-chain-node::after { content: ""; position: absolute; top: 13px; left: 60%; width: 80%; height: 2px; background: linear-gradient(90deg, var(--a), var(--a2)); opacity: .4; }
.ab-chain-node:last-child::after { display: none; }
.ab-chain-node i { position: relative; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; margin: 0 auto 7px; border-radius: 50%; background: var(--card); border: 2px solid var(--a); color: var(--a); font-size: 11px; font-weight: 800; font-style: normal; font-family: var(--mono); }
.ab-chain-node b { display: block; font-size: 11.5px; color: var(--ink-2); }
.ab-chain-node span { display: block; font-size: 10px; color: var(--muted); }

.ab-quick { margin-top: 14px; }
.ab-quick-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ab-quick-btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 9px; }

/* ---------- 参数区环节网格 ---------- */
.ab-param { position: relative; overflow: hidden; }
.ab-param::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--a), var(--a2), transparent); }
.ab-extra { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }

/* ---------- 时间链甘特 ---------- */
.ab-panel { border-radius: 16px; }
.ab-gantt { display: grid; gap: 9px; }
.ab-gantt-track { position: relative; height: 44px; border-radius: 9px; background: var(--card-3); border: 1px solid var(--line); overflow: hidden; }
.ab-block { position: absolute; top: 6px; bottom: 6px; display: grid; place-items: center; font-size: 10.5px; font-weight: 750; color: #fff; overflow: hidden; white-space: nowrap; border-radius: 5px; }
.ab-block.need { background: linear-gradient(90deg, var(--a), var(--a2)); }
.ab-block.buf { background: var(--ok); }
.ab-block.short { background: var(--bad); }
.ab-block.close { background: repeating-linear-gradient(45deg, var(--warn) 0 6px, color-mix(in srgb, var(--warn) 65%, #fff) 6px 12px); color: var(--ink); }
.ab-gantt-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--muted); padding: 2px 2px 0; }
.ab-gantt-label { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--muted); }
.ab-gantt-label i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }

@media (max-width: 900px) {
    .ab-quick-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ab-chain-node { flex-basis: 84px; min-width: 84px; }
}
@media (max-width: 520px) {
    .ab-quick-row { grid-template-columns: 1fr; }
}
