/* boarding-pass · 登机牌 —— 撕角存根、半月缺口、三字母登机口代码贯穿全站 */
:root {
    --bp-canvas: #ece8f1;
    --bp-ticket: #ffffff;
    --bp-plum: #3b1f52;
    --bp-plum-2: #52306f;
    --bp-sun: #ffc845;
    --bp-ink: #1d1626;
    --bp-soft: #5a5066;
    --bp-line: #d6cfe0;
    --bp-display: "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
    --bp-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bp-r: 14px;
    --pagination-accent: #3b1f52;
}

body.theme-boarding { margin: 0; background: var(--bp-canvas); color: var(--bp-ink); font-family: var(--bp-body); font-size: 16px; }
:where(.theme-boarding) a { color: inherit; text-decoration: none; }
.theme-boarding :focus-visible { outline: 3px solid var(--bp-plum); outline-offset: 3px; }
.bp-skip { position: absolute; left: -9999px; }
.bp-skip:focus { left: 12px; top: 12px; z-index: 50; padding: 10px 14px; background: var(--bp-sun); border-radius: 8px; font-weight: 700; }
.bp-main:focus { outline: none; }

/* ---------- 母题部件：登机口代码、字段、条码 ---------- */
.bp-code { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--bp-sun); color: var(--bp-ink); font-family: var(--bp-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .08em; line-height: 1.2; }
.bp-field { display: grid; gap: 2px; font-weight: 600; font-size: .92rem; line-height: 1.3; }
.bp-field small { font-family: var(--bp-display); font-weight: 600; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bp-soft); }
.bp-barcode { display: block; height: 44px; background: repeating-linear-gradient(90deg, var(--bp-ink) 0 2px, transparent 2px 4px, var(--bp-ink) 4px 7px, transparent 7px 9px, var(--bp-ink) 9px 10px, transparent 10px 13px); opacity: .9; }

/* ---------- 页眉 ---------- */
.bp-header { background: var(--bp-plum); color: #fff; }
.bp-header-inner { display: flex; align-items: center; gap: 20px; max-width: 1280px; margin: 0 auto; padding: 12px 24px; }
.bp-brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
.bp-brand-code { padding: 4px 10px; border-radius: 6px; background: var(--bp-sun); color: var(--bp-ink); font-family: var(--bp-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .1em; }
.bp-brand-name { font-family: var(--bp-display); font-weight: 700; font-size: 1.6rem; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-nav { display: flex; gap: 4px; }
.bp-nav a { padding: 10px 14px; font-family: var(--bp-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; border-bottom: 3px solid transparent; }
.bp-nav a:hover { border-bottom-color: rgba(255, 255, 255, .5); }
.bp-nav a.is-on { border-bottom-color: var(--bp-sun); color: var(--bp-sun); }
.bp-menu-toggle { display: none; color: inherit; }

/* ---------- 版心 ---------- */
.bp-main { min-height: 60vh; padding-bottom: 48px; }
.bp-wrap { max-width: 1280px; margin: 0 auto; padding: 24px 24px 0; }
.bp-crumb { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 8px; font-size: .9rem; color: var(--bp-soft); }
.bp-crumb a { color: var(--bp-plum); font-weight: 700; }
.bp-empty { margin: 32px 0; text-align: center; color: var(--bp-soft); }
.bp-pager { margin-top: 32px; }

/* ---------- 首页头条：整张登机牌 ---------- */
.bp-pass { margin-bottom: 24px; }
.bp-pass-link { display: grid; overflow: hidden; border-radius: var(--bp-r); background: var(--bp-ticket); box-shadow: 0 2px 0 rgba(59, 31, 82, .12); }
.bp-pass-band { display: flex; justify-content: space-between; padding: 10px 24px; background: var(--bp-plum); color: #fff; font-family: var(--bp-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; }
.bp-pass-band span:last-child { color: var(--bp-sun); }
.bp-pass-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.bp-pass-body img { display: block; width: 100%; height: auto; min-height: 300px; align-self: stretch; object-fit: cover; background: var(--bp-line); }
.bp-pass-text { position: relative; display: grid; gap: 14px; align-content: center; padding: 24px 28px; border-left: 2px dashed var(--bp-line); }
.bp-pass-text::before, .bp-pass-text::after { content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bp-canvas); }
.bp-pass-text::before { top: -12px; }
.bp-pass-text::after { bottom: -12px; }
.bp-route { display: flex; align-items: center; gap: 12px; font-family: var(--bp-display); font-size: 1.6rem; letter-spacing: .1em; }
.bp-route b { font-weight: 700; }
.bp-route i { flex: 1; max-width: 120px; height: 2px; background: repeating-linear-gradient(90deg, var(--bp-plum) 0 6px, transparent 6px 10px); }
.bp-pass-title { font-family: var(--bp-display); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.1; }
.bp-pass-link:hover .bp-pass-title { color: var(--bp-plum-2); text-decoration: underline; text-decoration-thickness: 2px; }
.bp-pass-excerpt { color: var(--bp-soft); line-height: 1.6; }
.bp-pass-fields { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.bp-pass-text .bp-barcode { width: min(280px, 100%); height: 40px; }

/* 次条：三张竖向存根 */
.bp-stubs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bp-stub { position: relative; display: grid; gap: 10px; align-content: start; padding: 12px 12px 18px; border-radius: var(--bp-r); background: var(--bp-ticket); box-shadow: 0 2px 0 rgba(59, 31, 82, .12); }
.bp-stub img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--bp-line); }
.bp-stub-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 2px dashed var(--bp-line); font-size: .85rem; font-weight: 600; color: var(--bp-soft); }
.bp-stub-title { font-family: var(--bp-display); font-weight: 700; font-size: 1.4rem; line-height: 1.15; }
.bp-stub:hover .bp-stub-title { text-decoration: underline; }
.bp-stub-gate { font-size: .85rem; font-weight: 600; color: var(--bp-plum); }

/* ---------- 车票：横向主体 + 撕角存根 ---------- */
.bp-board { margin-top: 8px; }
.bp-board-title { margin: 0 0 16px; font-family: var(--bp-display); font-weight: 700; font-size: 1.5rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bp-plum); }
.bp-ticket-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bp-ticket-link { display: grid; grid-template-columns: minmax(0, 1fr) 150px; min-height: 100%; border-radius: var(--bp-r); background: var(--bp-ticket); box-shadow: 0 2px 0 rgba(59, 31, 82, .12); }
.bp-ticket-main { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; }
.bp-ticket-main img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--bp-line); }
.bp-ticket-title { font-family: var(--bp-display); font-weight: 700; font-size: 1.3rem; line-height: 1.15; }
.bp-ticket-link:hover .bp-ticket-title { text-decoration: underline; }
.bp-ticket-stub { position: relative; display: grid; gap: 10px; align-content: center; padding: 14px 16px; border-left: 2px dashed var(--bp-line); }
.bp-ticket-stub::before, .bp-ticket-stub::after, .bp-slip-stub::before, .bp-slip-stub::after { content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bp-canvas); }
.bp-ticket-stub::before, .bp-slip-stub::before { top: -10px; }
.bp-ticket-stub::after, .bp-slip-stub::after { bottom: -10px; }
.bp-ticket-stub .bp-code { justify-self: start; }

/* ---------- 分类页：一沓车票 ---------- */
.bp-cat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bp-slip { min-width: 0; }
.bp-slip-first { grid-column: 1 / -1; }
.bp-slip-link { display: grid; grid-template-columns: 200px minmax(0, 1fr) 140px; min-height: 100%; border-radius: var(--bp-r); background: var(--bp-ticket); box-shadow: 0 2px 0 rgba(59, 31, 82, .12); overflow: hidden; }
.bp-slip-link img { display: block; width: 100%; height: 100%; min-height: 150px; object-fit: cover; background: var(--bp-line); }
.bp-slip-text { display: grid; gap: 8px; align-content: center; padding: 14px 18px; }
.bp-slip-title { font-family: var(--bp-display); font-weight: 700; font-size: 1.35rem; line-height: 1.15; }
.bp-slip-link:hover .bp-slip-title { text-decoration: underline; }
.bp-slip-excerpt { color: var(--bp-soft); font-size: .94rem; line-height: 1.55; }
.bp-slip-stub { position: relative; display: grid; gap: 10px; align-content: center; padding: 14px 16px; border-left: 2px dashed var(--bp-line); background: #faf8fc; }
.bp-slip-first .bp-slip-link { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 160px; }
.bp-slip-first .bp-slip-link img { aspect-ratio: 21 / 9; }
.bp-slip-first .bp-slip-title { font-size: 1.8rem; }
.bp-cat-list > .bp-ad:not(:has(.ad)) { display: none; }

/* ---------- 登机口索引 ---------- */
.bp-index-title { margin: 8px 0 20px; font-family: var(--bp-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: .04em; text-transform: uppercase; color: var(--bp-plum); }
.bp-gates { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.bp-gate { display: grid; grid-template-columns: 96px minmax(0, 1fr) 28px; align-items: center; gap: 16px; padding: 16px; border-radius: var(--bp-r); background: var(--bp-plum); color: #fff; }
.bp-gate-sign { display: grid; place-items: center; height: 72px; border-radius: 10px; background: var(--bp-sun); color: var(--bp-ink); font-family: var(--bp-display); font-weight: 700; font-size: 2rem; letter-spacing: .08em; }
.bp-gate-text { display: grid; gap: 4px; min-width: 0; }
.bp-gate-name { font-family: var(--bp-display); font-weight: 700; font-size: 1.35rem; }
.bp-gate-desc { font-size: .9rem; line-height: 1.45; color: #e6dcef; }
.bp-gate-arrow { font-size: 1.5rem; color: var(--bp-sun); }
.bp-gate:hover { background: var(--bp-plum-2); }

/* ---------- 广告壳：无广告时塌陷 ---------- */
.bp-ad:has(.ad) { margin: 24px 0; }
.bp-ad:has(.ad) .ad { min-height: 250px; margin: 0 !important; }

/* ---------- 页脚：撕下的存根 ---------- */
.bp-footer { max-width: 1280px; margin: 0 auto; padding: 0 24px 88px; }
.bp-footer-stub { position: relative; display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 16px 32px; align-items: center; padding: 22px 28px; border-top: 3px dashed var(--bp-plum); border-radius: 0 0 var(--bp-r) var(--bp-r); background: var(--bp-ticket); }
.bp-footer-stub .bp-footer-field { display: grid; gap: 2px; }
.bp-footer-field small { font-family: var(--bp-display); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bp-soft); }
.bp-footer-field strong { font-family: var(--bp-display); font-size: 1.25rem; }
.bp-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.bp-footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--bp-plum); }
.bp-footer-note { grid-column: 1 / -1; margin: 0; font-size: .85rem; color: var(--bp-soft); }

/* ---------- 共享页面调色 ---------- */
.theme-boarding .site-menu, .theme-boarding .site-search, .theme-boarding .static-page { --menu-accent: var(--bp-plum); }

/* ---------- 断点 ---------- */
@media (min-width: 1600px) {
    .bp-wrap, .bp-header-inner, .bp-footer { max-width: 1520px; }
    .bp-ticket-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
    .bp-pass-body { grid-template-columns: minmax(0, 1fr); }
    .bp-pass-body img { min-height: 0; aspect-ratio: 24 / 9; }
    .bp-pass-text { border-left: 0; border-top: 2px dashed var(--bp-line); }
    .bp-pass-text::before, .bp-pass-text::after { display: none; }
    .bp-ticket-grid { grid-template-columns: minmax(0, 1fr); }
    .bp-slip-link { grid-template-columns: 160px minmax(0, 1fr) 130px; }
    .bp-slip-first .bp-slip-link { grid-template-columns: 160px minmax(0, 1fr) 130px; }
    .bp-slip-first .bp-slip-link img { aspect-ratio: auto; }
    .bp-slip-first .bp-slip-title { font-size: 1.35rem; }
    .bp-cat-list { grid-template-columns: minmax(0, 1fr); }
    .bp-footer-stub { grid-template-columns: auto auto; }
    .bp-footer-links { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 767px) {
    .bp-header-inner { min-height: 56px; padding: 4px 12px; gap: 10px; }
    .bp-brand-code { font-size: 1rem; padding: 2px 6px; }
    .bp-brand-name { font-size: 1.3rem; }
    .bp-menu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: rgba(255, 255, 255, .14); }
    .bp-wrap { padding: 12px 12px 0; }
    .bp-pass-band { padding: 8px 14px; font-size: .8rem; }
    .bp-pass-body img { aspect-ratio: 16 / 9; }
    .bp-pass-text { padding: 14px; gap: 10px; }
    .bp-route { font-size: 1.2rem; }
    .bp-pass-title { font-size: 1.5rem; }
    .bp-pass-excerpt { display: none; }
    .bp-pass-text .bp-barcode { height: 24px; width: 160px; }
    .bp-stubs { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .bp-stub { grid-template-columns: 112px minmax(0, 1fr); gap: 4px 12px; padding: 10px; }
    .bp-stub img { grid-row: span 3; aspect-ratio: 1; }
    .bp-stub-head { padding-top: 0; border-top: 0; }
    .bp-stub-title { font-size: 1.15rem; }
    .bp-ticket-link { grid-template-columns: minmax(0, 1fr); }
    .bp-ticket-main { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px; }
    .bp-ticket-title { font-size: 1.1rem; }
    .bp-ticket-stub { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 8px 10px; border-left: 0; border-top: 2px dashed var(--bp-line); font-size: .85rem; }
    .bp-ticket-stub::before, .bp-ticket-stub::after { display: none; }
    .bp-ticket-stub .bp-field small { display: none; }
    .bp-cat-list { gap: 12px; }
    .bp-slip-link, .bp-slip-first .bp-slip-link { grid-template-columns: 106px minmax(0, 1fr); }
    .bp-slip-link img, .bp-slip-first .bp-slip-link img { width: 96px; height: 96px; min-height: 0; margin: 10px 0 10px 10px; border-radius: 8px; aspect-ratio: 1; }
    .bp-slip-text { padding: 10px 12px; }
    .bp-slip-title, .bp-slip-first .bp-slip-title { font-size: 1.1rem; }
    .bp-slip-excerpt { display: none; }
    .bp-slip-stub { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 6px 12px; border-left: 0; border-top: 2px dashed var(--bp-line); font-size: .82rem; }
    .bp-slip-stub::before, .bp-slip-stub::after { display: none; }
    .bp-slip-stub .bp-field { display: block; font-size: .82rem; }
    .bp-slip-stub .bp-field small { display: none; }
    .bp-gates { grid-template-columns: minmax(0, 1fr); }
    .bp-gate { grid-template-columns: 72px minmax(0, 1fr) 20px; padding: 12px; }
    .bp-gate-sign { height: 56px; font-size: 1.5rem; }
    .bp-footer { padding: 0 12px 88px; }
    .bp-footer-stub { padding: 18px 16px; }
}

/* 移动端：登机口导航只在 /menu 出现，隐藏规则放在全局规则之后 */
@media (max-width: 767px) {
    .bp-nav { display: none; }
}
