/*
 * GAPphotos Home — Dispatch Log (签派日志)
 * Editorial aviation logbook: registration numbers as the signature element.
 */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,500&family=Space+Mono:wght@400;700&display=swap');

:root {
    --night: #060b12;
    --panel: #0d1420;
    --surface: #121b2a;
    --elevated: #1a2538;
    --signal: #5b9cf5;
    --signal-bright: #8bb8ff;
    --signal-dim: #3d7fd4;
    --text: #e6edf5;
    --muted: #7a8fa6;
    --line: rgba(91, 156, 245, 0.11);
    --line-strong: rgba(91, 156, 245, 0.24);
    --shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
    --radius: 12px;
    --radius-lg: 16px;
    --mono: 'Space Mono', 'JetBrains Mono', ui-monospace, monospace;
    --display: 'Newsreader', 'Noto Serif SC', 'Songti SC', serif;
    --body: 'Manrope', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --primary-color: var(--signal);
    --primary-light: var(--signal-bright);
    --accent-color: var(--signal);
    --text-dark: var(--text);
    --text-light: var(--muted);
    --border-color: var(--line-strong);
    --surface-solid: var(--surface);
    --glass-bg: rgba(18, 27, 42, 0.92);
    --glass-border: var(--line-strong);
    --soft-shadow: var(--shadow);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--body);
    background: var(--night);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    font-size: 0.9375rem;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 380px;
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.1) 0%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background:
        radial-gradient(900px 420px at 12% 20%, rgba(96, 165, 250, 0.08), transparent 58%),
        radial-gradient(760px 360px at 88% 72%, rgba(59, 130, 246, 0.06), transparent 60%);
}

*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.45);
    border-radius: 999px;
    border: 2px solid var(--night);
}
*::-webkit-scrollbar-track { background: rgba(8, 15, 26, 0.7); }

.cloud,
.flight-path,
.runway { display: none !important; }

::selection {
    background: rgba(96, 165, 250, 0.35);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ── Layout ── */
.main-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.75rem 1.35rem 3.5rem;
}

/* ── Masthead (editorial intro) ── */
.home-masthead {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem 3rem;
    align-items: end;
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--line);
}

.masthead-eyebrow {
    font-family: var(--mono);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--signal);
    margin-bottom: 0.6rem;
}

.masthead-title {
    font-family: var(--display);
    font-size: clamp(2rem, 4.2vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.08;
    color: var(--text);
}

.masthead-lead {
    margin-top: 0.75rem;
    max-width: 36rem;
    font-size: 0.9375rem;
    color: var(--muted);
    line-height: 1.7;
}

.masthead-stats {
    display: flex;
    gap: 1.75rem;
    margin: 0;
}

.masthead-stat {
    text-align: right;
}

.masthead-stat dt {
    font-family: var(--mono);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.masthead-stat dd {
    font-family: var(--mono);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--signal-bright);
    letter-spacing: -0.02em;
    line-height: 1;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 288px;
    gap: 1.35rem;
    margin-bottom: 3rem;
    align-items: start;
}

/* ── Carousel (hero thesis = the photo) ── */
.hero-carousel {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.hero-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--signal);
    z-index: 6;
    opacity: 0.85;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    height: min(56vh, 520px);
    min-height: 340px;
    overflow: hidden;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hero-carousel:hover .hero-image-wrapper img {
    transform: scale(1.03);
}

.ticket-strip {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text);
    background: rgba(6, 11, 18, 0.82);
    border: 1px solid var(--line-strong);
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

.ticket-strip::before { display: none; }

/* Hero data plate — manifest-style metadata */
.hero-data-plate {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.35rem 1.1rem;
    background: linear-gradient(to top, rgba(6, 11, 18, 0.97) 0%, rgba(6, 11, 18, 0.55) 72%, transparent 100%);
    border-top: 1px solid var(--line);
}

.hero-data-primary {
    margin-bottom: 0.85rem;
}

.hero-data-label {
    font-family: var(--mono);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--signal);
    display: block;
    margin-bottom: 0.2rem;
}

.hero-data-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    gap: 0.55rem 1.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-data-meta li {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.meta-key {
    font-family: var(--mono);
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.meta-val {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.home-page {
    overflow-x: hidden;
}

body.announcement-open {
    overflow: hidden;
    touch-action: none;
}

.hero-info-board {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.25rem;
    background: linear-gradient(to top, rgba(8, 15, 26, 0.96) 0%, rgba(8, 15, 26, 0.5) 70%, transparent 100%);
}

.flight-number {
    font-family: var(--mono);
    font-size: clamp(1.65rem, 3.8vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
    margin-bottom: 0;
    line-height: 1.05;
}

.flight-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.flight-detail-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.flight-detail-item i {
    color: var(--signal);
    font-size: 0.8rem;
    width: 1rem;
    text-align: center;
}

.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 5;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.carousel-dot.active {
    width: 28px;
    background: var(--signal);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(8, 15, 26, 0.75);
    border: 1px solid var(--line-strong);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s, border-color 0.2s;
    backdrop-filter: blur(6px);
}

.carousel-arrow:hover {
    background: var(--signal-dim);
    border-color: var(--signal);
}

.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

/* ── Sidebar panels ── */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radar-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem 1.2rem;
}

.radar-panel--actions {
    background: var(--panel);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--line);
}

.panel-eyebrow {
    font-family: var(--mono);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--signal);
    display: block;
    margin-bottom: 0.35rem;
}

.panel-title {
    font-family: var(--display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.panel-title i { display: none; }

.panel-note {
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 0.85rem;
}

.action-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.action-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.action-chip:hover {
    border-color: var(--line-strong);
    color: var(--signal-bright);
}

.action-chip--primary {
    background: rgba(91, 156, 245, 0.1);
    border-color: var(--line-strong);
    color: var(--signal-bright);
}

.action-chip--primary:hover {
    background: rgba(91, 156, 245, 0.16);
}

.hot-rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hot-rank-list .hot-flight-item::before {
    display: none;
}

.rank-index {
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--signal);
    opacity: 0.45;
    width: 1.35rem;
    flex-shrink: 0;
    align-self: center;
    letter-spacing: 0.02em;
}

.hot-rank-list .hot-flight-item:first-child .rank-index {
    opacity: 1;
    color: var(--signal-bright);
}

.panel-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--signal);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.panel-link:hover { color: var(--signal-bright); }

.hot-flight-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.hot-flight-item:last-child { border-bottom: none; }

.hot-flight-item::before {
    content: attr(data-rank);
    position: absolute;
    left: -0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: var(--signal);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s, left 0.2s;
}

.hot-flight-item:hover::before {
    opacity: 1;
    left: 0.15rem;
}

.flight-info {
    flex: 1;
    min-width: 0;
}

.hot-flight-item:hover {
    background: rgba(96, 165, 250, 0.06);
    margin: 0 -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    border-radius: 8px;
}

.flight-thumb {
    width: 72px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--line);
}

.flight-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flight-reg {
    font-family: var(--mono);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text);
    margin-bottom: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flight-pilot {
    font-size: 0.78rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.stat-gauge {
    text-align: center;
    padding: 0.85rem 0.5rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.gauge-value {
    font-family: var(--mono);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--signal);
}

.gauge-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.15rem;
}

/* ── Section mast (unified editorial headers) ── */
.section-mast {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.section-eyebrow {
    font-family: var(--mono);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--signal);
    display: block;
    margin-bottom: 0.4rem;
}

.section-mast-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-lead {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 0.3rem;
    max-width: 40rem;
}

/* ── Section headers (legacy + category blocks) ── */
.home-showcase-row {
    margin-bottom: 2.5rem;
}

.home-showcase-row .category-section.mb-0 {
    margin-bottom: 0;
}

.category-section {
    margin-bottom: 2.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.25rem 1.45rem;
    position: relative;
}

.category-section::before {
    display: none;
}

.category-section > * {
    position: relative;
    z-index: 1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.25rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.section-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--signal);
    font-size: 1rem;
}

.section-title {
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: 0.2rem;
}

.section-icon {
    display: none;
}

.section-title-wrapper {
    display: block;
}

.section-header {
    display: none;
}

.category-section .section-mast {
    border-bottom: 1px solid var(--line);
    margin-bottom: 1.15rem;
    padding-bottom: 0.95rem;
}

.category-section .section-mast .view-all-btn {
    flex-shrink: 0;
}

.view-all-btn {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0;
    border: none;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    transition: color 0.2s, border-color 0.2s;
}

.view-all-btn:hover {
    background: transparent;
    color: var(--signal-bright);
    border-bottom-color: var(--signal);
}

.view-all-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.28);
}

/* ── Photo grid cards ── */
.boarding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.boarding-pass {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s;
    position: relative;
    min-width: 0;
    width: 100%;
}

.boarding-pass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--signal);
    z-index: 2;
    opacity: 0.6;
}

.boarding-pass:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
}

.boarding-pass:hover::before {
    opacity: 1;
}

.boarding-pass.featured .pass-image { height: 220px; }

/* Featured 宽卡：仅桌面多列网格启用，避免手机端 span 2 撑乱列宽 */
@media (min-width: 769px) {
    .boarding-pass.featured {
        grid-column: span 2;
        grid-row: span 1;
    }
}

.pass-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.pass-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.boarding-pass:hover .pass-image img { transform: scale(1.06); }

.pass-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--signal-bright);
    background: rgba(8, 15, 26, 0.8);
    border: 1px solid var(--line);
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
}

.pass-body {
    padding: 0.85rem 1rem 1rem;
    position: relative;
}

.pass-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1rem;
    right: 1rem;
    border-top: 1px dashed var(--line);
}

.pass-flight-no {
    font-family: var(--mono);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text);
    margin-bottom: 0.45rem;
}

.pass-details {
    margin-bottom: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.pass-detail-row i { display: none; }

.pass-detail-row {
    font-size: 0.75rem;
    color: var(--muted);
}

.pass-footer {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.02em;
    color: var(--muted);
    padding-top: 0.6rem;
    border-top: 1px solid var(--line);
}

.pass-footer i { display: none; }

/* ── HOT spotlight ── */
.hot-spotlight-section {
    margin-bottom: 2.75rem;
}

.hot-spotlight-inner {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.25rem 1.35rem;
}

.hot-spotlight-header {
    display: none;
}

.hot-spotlight-inner .section-mast {
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
}

.hot-spotlight-badge {
    font-family: var(--mono);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--signal-bright);
    background: rgba(91, 156, 245, 0.08);
    border: 1px solid var(--line);
    padding: 0.3rem 0.55rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.hot-spotlight-title-wrap,
.hot-spotlight-icon { display: none; }

.hot-spotlight-title,
.hot-spotlight-sub { display: none; }

.hot-spotlight-scroll {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.hot-spotlight-scroll::-webkit-scrollbar { height: 6px; }
.hot-spotlight-scroll::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.35);
    border-radius: 6px;
}

.hot-spot-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}

.hot-spot-card:hover {
    border-color: var(--signal);
    transform: translateY(-3px);
}

.hot-spot-card-img {
    position: relative;
    height: 130px;
}

.hot-spot-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-spot-flame {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
    background: var(--signal-dim);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.hot-spot-card-body { padding: 0.65rem 0.75rem; }

.hot-spot-reg {
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.hot-spot-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.72rem;
    color: var(--muted);
}

/* ── News section ── */
.home-news-section {
    margin-bottom: 2.75rem;
    padding: 1.35rem 1.25rem 1.45rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.home-news-head { display: none; }

.home-news-section .section-mast {
    margin-bottom: 1.15rem;
    padding-bottom: 0.95rem;
}

.home-news-title-wrap {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.home-news-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--signal);
    flex-shrink: 0;
}

.home-news-title {
    font-family: var(--display);
    font-size: 1.2rem;
    font-weight: 700;
}

.home-news-desc {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.35rem;
    line-height: 1.5;
}

.home-news-desc strong {
    color: var(--signal-bright);
    font-weight: 600;
}

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.home-news-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem;
}

.home-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-bottom: 0.65rem;
}

.home-news-date {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
}

.home-news-source {
    font-size: 0.78rem;
    color: var(--signal);
    text-decoration: none;
}

.home-news-card-title {
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.home-news-card-summary {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 0.85rem;
}

.home-news-related-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.home-news-related-label i { color: var(--signal); margin-right: 0.25rem; }

.home-news-related { margin-top: 0.25rem; }

.home-news-one-wrap {
    margin-top: 0.5rem;
}

.home-news-thumb--solo {
    max-width: 100%;
}

.home-news-empty {
    font-size: 0.82rem;
    color: var(--muted);
}

.home-news-thumb {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.home-news-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.home-news-airline-caption {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--signal);
    margin-top: 0.4rem;
}

/* ── Announcement modal ── */
.announcement-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(6, 11, 18, 0.72);
    align-items: center;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-top, 0px))
             max(1rem, env(safe-area-inset-right, 0px))
             max(1rem, env(safe-area-inset-bottom, 0px))
             max(1rem, env(safe-area-inset-left, 0px));
}

.announcement-modal {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    width: min(1040px, 100%);
    max-height: min(80vh, 80dvh);
    height: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    flex-shrink: 1;
}

.announcement-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
    background: rgba(91, 156, 245, 0.1);
    color: var(--signal-bright);
    flex-shrink: 0;
}

.announcement-modal-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.announcement-modal-title i {
    color: var(--signal);
    flex-shrink: 0;
}

.announcement-modal-close {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.announcement-modal-close:hover {
    border-color: var(--signal);
    color: var(--text);
}

.announcement-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 1.25rem 1.35rem 1.5rem;
}

.announcement-modal-body-inner {
    background: transparent;
    border: none;
    padding: 0;
}

.announcement-content {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text);
}

.announcement-line {
    margin: 0.35rem 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.announcement-line--heading {
    font-weight: 700;
    color: var(--text);
    margin-top: 0.85rem;
    margin-bottom: 0.45rem;
    font-size: 0.9375rem;
}

.announcement-line--sub {
    font-weight: 600;
    color: var(--signal-bright);
    margin-top: 0.55rem;
}

.announcement-line--note {
    font-size: 0.8125rem;
    color: var(--muted);
    padding: 0.55rem 0.7rem;
    background: rgba(91, 156, 245, 0.06);
    border-left: 2px solid var(--line-strong);
    border-radius: 0 6px 6px 0;
    margin: 0.5rem 0;
}

.announcement-line--ok {
    font-size: 0.8125rem;
    padding: 0.55rem 0.7rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.22);
    border-radius: 6px;
    line-height: 1.55;
}

.announcement-line--bad {
    font-size: 0.8125rem;
    padding: 0.55rem 0.7rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.22);
    border-radius: 6px;
    line-height: 1.55;
}

.announcement-line--warn {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fcd34d;
    margin-bottom: 0.65rem;
}

.announcement-spacer {
    height: 0.5rem;
}

.announcement-render {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.announcement-render h4 {
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0.85rem 0 0.4rem;
    color: var(--text);
}

.announcement-section {
    margin-top: 0.85rem;
}

.announcement-section h4 {
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--signal-bright);
}

.announcement-main-title {
    font-weight: 700;
    color: var(--signal);
    margin: 0.5rem 0;
}

.announcement-feat-title {
    font-weight: 600;
    margin: 0.5rem 0;
}

.announcement-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.announcement-divider {
    border: none;
    height: 1px;
    background: var(--line);
    margin: 0.75rem 0;
}

.announcement-ul {
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}

.announcement-ul li { margin: 0.35rem 0; font-size: 0.9rem; }

/* ── Navbar ── */
.navbar {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.97) 0%, rgba(8, 15, 26, 0.97) 100%) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
}

.navbar-brand {
    font-family: var(--display);
    font-weight: 700 !important;
    font-size: 1.35rem !important;
    letter-spacing: 0.03em;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.45rem 0.9rem !important;
    border-radius: 8px;
    margin: 0 0.1rem;
    transition: background 0.2s, color 0.2s;
}

.navbar-nav .nav-link:hover {
    background: rgba(96, 165, 250, 0.14) !important;
    color: var(--signal-bright) !important;
}

.navbar-nav .nav-link.active {
    background: rgba(96, 165, 250, 0.22) !important;
    color: #fff !important;
}

.navbar-toggler {
    border: 1px solid var(--line-strong) !important;
}

/* ── Bootstrap alerts (flash) ── */
.alert {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow);
}

.alert-success { border-color: rgba(34, 197, 94, 0.35); }
.alert-danger { border-color: rgba(239, 68, 68, 0.35); }
.alert-warning { border-color: rgba(96, 165, 250, 0.35); }
.alert-info { border-color: rgba(96, 165, 250, 0.35); }

.btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.65;
}

/* ── Footer (airport markup + site-footer) ── */
.airport-footer {
    margin-top: 3rem;
    background: linear-gradient(180deg, var(--surface) 0%, var(--night) 100%);
    color: var(--text);
    padding: 2.75rem 0 1.75rem;
    position: relative;
    border-top: 3px solid var(--signal);
}

.airport-footer::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--signal) 0,
        var(--signal) 36px,
        transparent 36px,
        transparent 52px
    );
    opacity: 0.5;
}

.footer-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.terminal-gates {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    color: var(--muted);
    text-decoration: none;
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line);
    transition: transform 0.2s, border-color 0.2s, color 0.2s;
    position: relative;
    min-width: 110px;
}

.gate::before {
    content: attr(data-gate);
    position: absolute;
    top: -0.55rem;
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: var(--signal);
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.gate:hover {
    transform: translateY(-4px);
    border-color: var(--signal);
    color: var(--text);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.gate i {
    font-size: 1.5rem;
    color: var(--signal);
}

.footer-info {
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.footer-info p {
    margin: 0.35rem 0;
    font-size: 0.875rem;
    color: var(--muted);
}

.footer-info a {
    color: var(--signal);
    text-decoration: none;
}

.footer-info a:hover {
    color: var(--signal-bright);
}

.site-footer {
    margin-top: 2rem;
    background: linear-gradient(135deg, var(--surface) 0%, var(--night) 100%);
    border-top: 3px solid var(--signal);
    padding: 2.5rem 0 1.5rem;
}

.site-footer-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.site-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
    margin-bottom: 1.75rem;
}

.site-footer-section h3 {
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--signal);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.site-footer-desc {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
}

.site-footer-links {
    list-style: none;
}

.site-footer-links li { margin-bottom: 0.5rem; }

.site-footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
}

.site-footer-links a:hover { color: var(--signal); }
.site-footer-links a i { color: var(--signal); width: 1rem; text-align: center; }

.site-footer-social {
    display: flex;
    gap: 0.65rem;
    margin-top: 1rem;
}

.site-footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid var(--line);
    color: var(--signal);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.site-footer-social-link:hover {
    background: var(--signal);
    color: var(--night);
}

.site-footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

.site-footer-bottom a {
    color: var(--signal);
    text-decoration: none;
}

.site-footer-tag {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    opacity: 0.85;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.reveal-show {
    opacity: 1;
    transform: none;
}

/* ── Responsive ── */

/* Touch devices: keep carousel controls reachable */
@media (hover: none) and (pointer: coarse) {
    .carousel-arrow {
        opacity: 1;
        width: 44px;
        height: 44px;
    }

    .hot-flight-item:hover {
        background: transparent;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .boarding-pass:hover {
        transform: none;
    }

    .gate:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (max-width: 1200px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .home-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .home-masthead {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        align-items: start;
    }

    .masthead-stats {
        justify-content: flex-start;
        gap: 1.5rem;
    }

    .masthead-stat { text-align: left; }
}

@media (max-width: 768px) {
    .main-wrapper {
        padding: 1rem 0.875rem 2.25rem;
    }

    .navbar {
        padding: 0.65rem 0;
    }

    .navbar .container {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }

    .navbar-brand {
        font-size: 1.15rem !important;
    }

    .navbar-collapse {
        margin-top: 0.65rem;
        padding: 0.65rem 0 0.25rem;
        border-top: 1px solid var(--line);
    }

    .navbar-nav .nav-link {
        padding: 0.65rem 0.75rem !important;
        margin: 0.1rem 0 !important;
    }

    .home-masthead {
        padding-bottom: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .masthead-title { font-size: 1.75rem; }
    .masthead-lead { font-size: 0.875rem; }

    .masthead-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
        width: 100%;
    }

    .masthead-stat {
        text-align: left;
        padding: 0.65rem 0.75rem;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 8px;
    }

    .masthead-stat dd { font-size: 1.15rem; }

    .hero-section { margin-bottom: 2rem; }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .hero-image-wrapper {
        min-height: 220px;
        height: min(42vh, 360px);
    }

    .hero-data-plate {
        padding: 0.85rem 0.9rem 0.75rem;
    }

    .hero-data-primary { margin-bottom: 0.6rem; }

    .flight-number {
        font-size: clamp(1.35rem, 6vw, 1.75rem);
        letter-spacing: 0.04em;
    }

    .hero-data-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem 0.75rem;
    }

    .ticket-strip {
        top: 0.65rem;
        right: 0.65rem;
        font-size: 0.625rem;
        padding: 0.3rem 0.5rem;
    }

    .carousel-indicators {
        top: 0.65rem;
        left: 0.65rem;
        bottom: auto;
        transform: none;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        opacity: 1;
    }

    .carousel-prev { left: 0.5rem; }
    .carousel-next { right: 0.5rem; }

    .panel-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .panel-link {
        align-self: flex-start;
        padding: 0.35rem 0;
    }

    .action-links {
        flex-direction: column;
    }

    .action-chip {
        justify-content: center;
        width: 100%;
        min-height: 44px;
    }

    .flight-thumb {
        width: 64px;
        height: 48px;
    }

    .hot-flight-item {
        gap: 0.55rem;
        padding: 0.65rem 0;
    }

    .rank-index { width: 1.15rem; }

    .section-mast-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .section-title { font-size: 1.2rem; }
    .section-lead { font-size: 0.8125rem; }

    .view-all-btn {
        padding: 0.35rem 0;
        min-height: 44px;
        align-items: center;
    }

    .category-section {
        padding: 1rem 0.875rem 1.1rem;
        margin-bottom: 2rem;
    }

    .home-news-section {
        padding: 1rem 0.875rem 1.1rem;
    }

    .home-news-card { padding: 0.95rem; }

    /* 手机端：单列等宽，禁止 featured 跨列 */
    .boarding-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .boarding-pass,
    .boarding-pass.featured {
        grid-column: auto;
        grid-row: auto;
    }

    .boarding-pass.featured .pass-image,
    .pass-image {
        height: 200px;
    }

    .pass-body { padding: 0.75rem 0.85rem 0.85rem; }

    .pass-flight-no {
        font-size: 0.875rem;
    }

    .hot-spotlight-inner {
        padding: 1rem 0.875rem 1.1rem;
    }

    .hot-spot-card { flex: 0 0 156px; }
    .hot-spot-card-img { height: 112px; }

    .hot-spotlight-badge {
        align-self: flex-start;
    }

    .home-news-grid { grid-template-columns: 1fr; }

    .home-showcase-row { margin-bottom: 2rem; }
    .home-showcase-row .row { --bs-gutter-y: 0.85rem; }

    .announcement-modal-overlay {
        padding: 1.25rem 1rem;
        align-items: center;
        justify-content: center;
        background: rgba(6, 11, 18, 0.65);
    }

    .announcement-modal {
        width: 100%;
        max-width: 100%;
        max-height: min(68vh, 68dvh);
        border-radius: 14px;
        border: 1px solid var(--line-strong);
    }

    .announcement-modal-header {
        padding: 0.75rem 0.875rem;
    }

    .announcement-modal-title {
        font-size: 0.9375rem;
    }

    .announcement-modal-close {
        width: 40px;
        height: 40px;
    }

    .announcement-modal-body {
        padding: 0.75rem 0.875rem 0.875rem;
        max-height: calc(min(68vh, 68dvh) - 52px);
    }

    .announcement-content {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .announcement-line--heading {
        font-size: 0.875rem;
    }

    .announcement-line--ok,
    .announcement-line--bad {
        font-size: 0.8125rem;
        padding: 0.5rem 0.65rem;
    }

    .announcement-line--warn {
        font-size: 0.875rem;
    }

    .announcement-ul {
        padding-left: 1rem;
    }

    .announcement-ul li {
        font-size: 0.8125rem;
    }

    .airport-footer {
        margin-top: 2rem;
        padding: 2rem 0 1.5rem;
    }

    .footer-content { padding: 0 0.875rem; }

    .terminal-gates {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
        margin-bottom: 1.5rem;
    }

    .gate {
        min-width: 0;
        width: 100%;
        padding: 1rem 0.75rem;
    }

    .gate i { font-size: 1.25rem; }
    .gate span { font-size: 0.8125rem; }
}

@media (max-width: 480px) {
    .masthead-title { font-size: 1.55rem; }

    .masthead-stat dd { font-size: 1rem; }

    .hero-image-wrapper {
        min-height: 200px;
        height: 36vh;
    }

    .hero-data-meta {
        grid-template-columns: 1fr;
    }

    .meta-val {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .boarding-pass.featured .pass-image,
    .pass-image { height: 180px; }

    .hot-spot-card { flex: 0 0 142px; }

    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .carousel-dot { width: 6px; height: 6px; }
    .carousel-dot.active { width: 20px; }

    .footer-info p { font-size: 0.8125rem; }
}

@media (max-width: 360px) {
    .main-wrapper { padding-left: 0.75rem; padding-right: 0.75rem; }

    .masthead-stats {
        grid-template-columns: 1fr;
    }

    .terminal-gates { grid-template-columns: 1fr; }
}
