/* station-detail.css - 中东铁路车站/建筑详情页（科技档案风） */

:root {
    --bg-0: #080604;
    --bg-1: #0f0c08;
    --bg-2: #16110c;
    --bg-3: #1d1711;
    --gold: #d4a24c;
    --gold-bright: #f0c674;
    --gold-deep: #b87333;
    --gold-glow: rgba(212, 162, 76, 0.25);
    --border: rgba(212, 162, 76, 0.15);
    --border-hover: rgba(212, 162, 76, 0.4);
    --text: #ede5d8;
    --text-dim: rgba(237, 229, 216, 0.7);
    --text-mute: rgba(237, 229, 216, 0.4);
    --font-mono: "SF Mono", "Consolas", "Monaco", monospace;
    --accent-blue: #5b9bd5;
    --accent-blue-dim: rgba(91, 155, 213, 0.2);
    --theme-color: #5b9bd5;
    --theme-rgb: 91, 155, 213;

    /* 信号机配色（进度条复用） */
    --signal-green: #4CAF50;
    --signal-yellow: #FFC107;
    --signal-red: #F44336;
}

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

body {
    background: var(--bg-0);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-image:
        linear-gradient(rgba(212, 162, 76, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 162, 76, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    line-height: 1.6;
}

/* ========== 预加载器（暗金版） ========== */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(8, 6, 4, 0.96);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
.preloader-container { width: 280px; text-align: center; }
.preloader-logo {
    margin-bottom: 30px;
    font-size: 48px;
    color: var(--gold);
    animation: pulseLogo 1.5s infinite;
    text-shadow: 0 0 20px var(--gold-glow);
}
@keyframes pulseLogo {
    0% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.6; transform: scale(1); }
}
.progress-bar-bg {
    width: 100%; height: 12px;
    background: rgba(237, 229, 216, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 8px var(--gold-glow);
    border: 1px solid var(--border);
}
.progress-fill {
    width: 0%; height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
    border-radius: 20px;
    transition: width 0.2s linear;
    box-shadow: 0 0 8px var(--gold);
}
.progress-percent {
    margin-top: 16px;
    font-size: 28px;
    font-weight: bold;
    font-family: var(--font-mono);
    color: var(--gold-bright);
    text-shadow: 0 0 12px var(--gold-glow);
    letter-spacing: 2px;
}
.progress-text {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

/* ========== HERO ========== */
.station-hero {
    position: relative;
    width: 100%;
    height: 620px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5) contrast(1.05) saturate(0.85);
    transform: scale(1.03);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 6, 4, 0.3) 0%, rgba(8, 6, 4, 0.55) 50%, rgba(8, 6, 4, 0.98) 100%),
        radial-gradient(circle at 30% 40%, rgba(212, 162, 76, 0.08) 0%, transparent 60%);
    z-index: 1;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212, 162, 76, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 162, 76, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 1;
    pointer-events: none;
}
.hero-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(212, 162, 76, 0.02) 0px,
        rgba(212, 162, 76, 0.02) 1px,
        transparent 1px,
        transparent 3px
    );
    z-index: 1;
    pointer-events: none;
}
.hero-hud {
    position: absolute;
    width: 24px; height: 24px;
    border: 1.5px solid var(--gold);
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
}
.hero-hud.tl { top: 24px; left: 24px; border-right: none; border-bottom: none; }
.hero-hud.tr { top: 24px; right: 24px; border-left: none; border-bottom: none; }
.hero-hud.bl { bottom: 24px; left: 24px; border-right: none; border-top: none; }
.hero-hud.br { bottom: 24px; right: 24px; border-left: none; border-top: none; }

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px 60px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.hero-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.station-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(8, 6, 4, 0.7);
    border: 1.5px solid var(--theme-color);
    border-radius: 4px;
    backdrop-filter: blur(6px);
    box-shadow: inset 0 0 20px rgba(var(--theme-rgb), 0.15);
}
.station-badge-label {
    font-size: 0.72rem;
    color: var(--theme-color);
    font-family: var(--font-mono);
    letter-spacing: 3px;
    text-transform: uppercase;
}
.station-badge-code {
    font-size: 1.05rem;
    color: var(--text);
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 1.5px;
}
.hero-line-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(8, 6, 4, 0.7);
    border: 1px solid var(--border);
    border-radius: 100px;
    backdrop-filter: blur(6px);
}
.hero-line-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.hero-line-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 1px;
}
.hero-title-block {
    display: flex;
    align-items: baseline;
    gap: 24px;
    flex-wrap: wrap;
}
.hero-station-name {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ede5d8 0%, #f0c674 60%, #d4a24c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 60px rgba(212, 162, 76, 0.2);
}
.hero-station-pinyin {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 600;
    color: var(--theme-color);
    font-family: var(--font-mono);
    letter-spacing: 3px;
    padding-bottom: 10px;
    text-transform: uppercase;
}
.hero-meta-line {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 1rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    letter-spacing: 1px;
}
.hero-meta-line .sep { color: var(--gold-deep); opacity: 0.5; }
.hero-meta-line i { color: var(--gold); margin-right: 6px; }

/* ========== 数据仪表盘 ========== */
.data-dashboard {
    max-width: 1280px;
    margin: -40px auto 0;
    padding: 0 48px;
    position: relative;
    z-index: 5;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.dashboard-grid::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.dash-item {
    padding: 16px 14px;
    border-right: 1px dashed rgba(212, 162, 76, 0.12);
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 8px;
}
.dash-item:last-child { border-right: none; }
.dash-item:hover {
    background: rgba(212, 162, 76, 0.04);
    transform: translateY(-3px);
}
.dash-icon {
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 10px;
    display: block;
}
.dash-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold-bright);
    font-family: var(--font-mono);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    text-shadow: 0 0 20px rgba(212, 162, 76, 0.3);
}
.dash-label {
    font-size: 0.68rem;
    color: var(--text-mute);
    font-family: var(--font-mono);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ========== 主容器 ========== */
.detail-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px 80px;
    position: relative;
    z-index: 2;
}
.detail-section {
    padding: 80px 0;
    scroll-margin-top: 40px;
    position: relative;
}
.detail-section + .detail-section {
    border-top: 1px solid var(--border);
}
.section-head {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.section-head::after {
    content: "";
    position: absolute;
    bottom: -1px; left: 0;
    width: 80px; height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
.section-num {
    font-size: 0.85rem;
    color: var(--gold);
    font-family: var(--font-mono);
    letter-spacing: 4px;
    font-weight: 600;
}
.section-title {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
    flex: 1;
}
.section-title i {
    color: var(--gold);
    margin-right: 12px;
    font-size: 0.85em;
}
.section-en {
    font-size: 0.72rem;
    color: var(--text-mute);
    font-family: var(--font-mono);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ========== 01 图片档案 ========== */
.gallery-main-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #1a1510;
    border: 1px solid var(--border);
    cursor: zoom-in;
    margin-bottom: 16px;
}
.gallery-main-wrap::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-deep), transparent);
    z-index: 3;
}
.gallery-main-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.gallery-main-wrap:hover .gallery-main-img { transform: scale(1.02); }
.gallery-info-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px 28px;
    background: linear-gradient(to top, rgba(8, 6, 4, 0.95), rgba(8, 6, 4, 0.4) 60%, transparent);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    z-index: 2;
    flex-wrap: wrap;
}
.gallery-info-left { flex: 1; min-width: 0; }
.gallery-img-title {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}
.gallery-img-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
    max-width: 600px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gallery-img-year {
    font-size: 0.8rem;
    color: var(--theme-color);
    font-family: var(--font-mono);
    letter-spacing: 1px;
    padding: 6px 12px;
    background: rgba(8, 6, 4, 0.6);
    border: 1px solid var(--border);
    border-radius: 100px;
    backdrop-filter: blur(6px);
    white-space: nowrap;
}
.gallery-img-year i { margin-right: 6px; }

.gallery-thumbs-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}
.gallery-thumb {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: all 0.25s ease;
    position: relative;
    background: #1a1510;
}
.gallery-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-thumb:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}
.gallery-thumb:hover img { transform: scale(1.06); }
.gallery-thumb.active {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold), 0 0 20px var(--gold-glow);
}
.gallery-thumb.active::after {
    content: "";
    position: absolute;
    top: 8px; right: 8px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px var(--gold);
}

/* ========== 02 运营信息 ========== */
.operation-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: stretch;
}
.sign-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px 20px;
    position: relative;
    overflow: hidden;
}
.sign-column::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-deep), transparent);
}
.sign-column-label {
    font-size: 0.7rem;
    color: var(--gold);
    font-family: var(--font-mono);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
    align-self: flex-start;
}
.railway-station-sign-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow-x: auto;
}

.monitor-column { display: flex; flex-direction: column; gap: 16px; }
.monitor-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.monitor-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-deep), transparent);
}
.monitor-title {
    font-size: 0.72rem;
    color: var(--gold);
    font-family: var(--font-mono);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.monitor-title::before {
    content: "";
    width: 20px; height: 1px;
    background: var(--gold);
}

/* 状态监控行：STATUS + 信号灯组 + LED 显示屏，一行排布 */
.status-monitor-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    min-width: 0;
    flex-wrap: nowrap;
}
.status-monitor-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    letter-spacing: 1px;
    flex-shrink: 0;
    white-space: nowrap;
}
.status-groups { display: flex; gap: 8px; align-items: flex-end; flex-shrink: 0; }
.status-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.4);
}
.status-dot {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 1.5px solid rgba(237, 229, 216, 0.35);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.25), inset 0 -2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.status-dot.using { background-color: rgba(76, 175, 80, 0.25); }
.status-dot.disused { background-color: rgba(255, 193, 7, 0.25); }
.status-dot.abandoned { background-color: rgba(220, 53, 69, 0.25); }
.status-dot.demolished { background-color: rgba(91, 155, 213, 0.25); }
.status-dot.other { background-color: rgba(237, 229, 216, 0.25); }
.status-dot.current { opacity: 1; animation: pulse-border 1.5s infinite; }
.status-dot.using.current { background-color: #4CAF50; }
.status-dot.disused.current { background-color: #FFC107; }
.status-dot.abandoned.current { background-color: #F44336; }
.status-dot.demolished.current { background-color: #5b9bd5; }
.status-dot.other.current { background-color: var(--text); }
.status-dot.current::after {
    content: '';
    position: absolute;
    top: -10%; left: -10%;
    width: 120%; height: 120%;
    background: radial-gradient(circle at 30% 30%,
        rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 30%, rgba(255, 255, 255, 0) 70%);
    filter: blur(4px);
    animation: glow-sweep 4s ease-in-out infinite;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0.8;
}
@keyframes glow-sweep {
    0% { transform: translateX(-80%) translateY(-80%); }
    100% { transform: translateX(80%) translateY(80%); }
}
@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(237, 229, 216, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(237, 229, 216, 0); }
    100% { box-shadow: 0 0 0 0 rgba(237, 229, 216, 0.7); }
}

.readout-grid {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 0;
}
.readout-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 8px;
    background: transparent;
    border: none;
    border-bottom: 1px dashed rgba(212, 162, 76, 0.1);
    border-radius: 0;
    transition: all 0.25s ease;
    min-height: 48px;
}
.readout-item:last-child { border-bottom: none; }
.readout-item:hover {
    padding-left: 14px;
    padding-right: 4px;
    background: rgba(212, 162, 76, 0.04);
}
.readout-label {
    font-size: 1.0rem;
    color: var(--text-mute);
    font-family: var(--font-mono);
    letter-spacing: 2px;
    text-transform: uppercase;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.readout-label::before {
    content: "";
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--gold-deep);
    opacity: 0.5;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.readout-item:hover .readout-label::before {
    background: var(--gold-bright);
    opacity: 1;
    box-shadow: 0 0 8px var(--gold-glow);
}
.readout-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-bright);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    text-align: right;
    text-shadow: 0 0 12px rgba(212, 162, 76, 0.2);
}
.readout-value.small {
    font-size: 0.92rem;
    color: var(--text);
    font-weight: 500;
    text-shadow: none;
}

/* 运营信息下半部：叙事 + 相邻站 */
.operation-narrative {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.narrative-block {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}
.narrative-block::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-deep), transparent);
}
.narrative-title {
    font-size: 0.9rem;
    color: var(--gold);
    font-family: var(--font-mono);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.narrative-title i { color: var(--gold); font-size: 1em; }
.narrative-content {
    font-size: 0.98rem;
    line-height: 1.9;
    color: var(--text-dim);
    letter-spacing: 0.2px;
}
.narrative-content p {
    text-indent: 2em;
    margin: 0 0 14px 0;
}
.narrative-content p:last-child { margin-bottom: 0; }

/* 相邻站导航（上下站） */
.adjacent-section {
    margin-top: 24px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
}
.adjacent-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-deep), transparent);
}
.adjacent-title {
    font-size: 0.85rem;
    color: var(--gold);
    font-family: var(--font-mono);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.adjacent-title::before {
    content: "";
    width: 20px; height: 1px;
    background: var(--gold);
}
.adjacent-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    padding: 12px 0;
}
.adjacent-track::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 12px;
    background: repeating-linear-gradient(
        90deg,
        var(--gold-deep) 0px,
        var(--gold-deep) 22px,
        var(--bg-3)      22px,
        var(--bg-3)      44px
    );
    border: 1px solid var(--border);
    border-radius: 4px;
    transform: translateY(-50%);
    z-index: 0;
    box-shadow: 
        inset 0 1px 0 rgba(240, 198, 116, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5),
        0 0 20px rgba(212, 162, 76, 0.15);
    overflow: hidden;
}
.adjacent-track::after {
    content: "";
    position: absolute;
    top: 50%; left: -100%;
    width: 100%; height: 12px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, 
        transparent, 
        rgba(240, 198, 116, 0.5) 50%, 
        transparent
    );
    animation: trackShine 4s infinite linear;
    z-index: 1;
    pointer-events: none;
    border-radius: 4px;
    overflow: hidden;
}
@keyframes trackShine {
    0%   { left: -100%; }
    100% { left: 100%; }
}
.adjacent-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    background: var(--bg-0);
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 120px;
    position: relative;
    z-index: 1;
}
.adjacent-node:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.adjacent-node .node-label {
    font-size: 0.65rem;
    color: var(--text-mute);
    font-family: var(--font-mono);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.adjacent-node .node-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}
.adjacent-node .node-distance {
    font-size: 0.7rem;
    color: var(--theme-color);
    font-family: var(--font-mono);
    letter-spacing: 1px;
}
.adjacent-node.current {
    border-color: var(--gold);
    background: rgba(212, 162, 76, 0.06);
}
.adjacent-node.current .node-name {
    color: var(--gold-bright);
    text-shadow: 0 0 12px var(--gold-glow);
}

/* ========== 03 互动档案 ========== */
.interaction-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
.interact-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}
.interact-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-deep), transparent);
}
.interact-title {
    font-size: 0.9rem;
    color: var(--gold);
    font-family: var(--font-mono);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.interact-title i { color: var(--gold); }

.checkin-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.checkin-btn {
    flex: 1;
    padding: 14px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 10px;
    color: var(--gold);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}
.checkin-btn:hover:not(:disabled) {
    background: rgba(212, 162, 76, 0.08);
    border-color: var(--gold);
    transform: translateY(-2px);
}
.checkin-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.checkin-btn.checkin { border-color: rgba(76, 175, 80, 0.5); color: #7fd48a; }
.checkin-btn.checkin:hover:not(:disabled) { background: rgba(76, 175, 80, 0.1); border-color: #7fd48a; }

.checkin-btn.checkin.done {
    border-color: rgba(244, 67, 54, 0.6);
    color: #f44336;
    background: rgba(244, 67, 54, 0.08);
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.18);
}
.checkin-btn.checkin.done:hover:not(:disabled) {
    background: rgba(244, 67, 54, 0.12);
    border-color: #f44336;
}
.checkin-btn.checkin.done:disabled {
    opacity: 0.85;
    cursor: not-allowed;
    border-color: rgba(244, 67, 54, 0.6);
    color: #f44336;
}

.checkin-btn.intend { border-color: rgba(91, 155, 213, 0.5); color: var(--theme-color); }
.checkin-btn.intend:hover:not(:disabled) { background: rgba(91, 155, 213, 0.1); border-color: var(--theme-color); }

.checkin-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.stat-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.25s ease;
}
.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
.stat-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(212, 162, 76, 0.08);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.95rem;
    flex-shrink: 0;
}
.stat-content { display: flex; flex-direction: column; gap: 2px; }
.stat-label {
    font-size: 0.68rem;
    color: var(--text-mute);
    font-family: var(--font-mono);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.stat-number { display: flex; align-items: baseline; gap: 4px; }
.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold-bright);
    font-family: var(--font-mono);
    line-height: 1;
    text-shadow: 0 0 12px rgba(212, 162, 76, 0.3);
}
.stat-unit {
    font-size: 0.7rem;
    color: var(--text-mute);
}

.rating-stars {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 30px;
    cursor: pointer;
}
.rating-stars .star {
    color: rgba(237, 229, 216, 0.15);
    transition: all 0.3s;
    line-height: 1;
}
.rating-stars .star.active {
    color: var(--gold-bright);
    text-shadow: 0 0 14px var(--gold-glow);
    animation: starPop 0.3s ease-out, breathe 4s ease-in-out infinite;
}
@keyframes starPop { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes breathe {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}
.rating-info {
    font-size: 0.88rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}
.rating-average {
    font-weight: 700;
    color: var(--gold-bright);
    font-size: 1.05rem;
    margin-right: 6px;
}

.comment-section {
    margin-top: 0;
    padding: 28px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}
.comment-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-deep), transparent);
}
.comment-container { max-width: 100%; margin: 0 auto; padding: 0; }
.comment-title {
    font-size: 0.9rem;
    margin-bottom: 22px;
    color: var(--gold);
    font-family: var(--font-mono);
    letter-spacing: 3px;
    text-transform: uppercase;
    padding-left: 0;
    border-left: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.comment-title-left { display: flex; align-items: center; gap: 10px; }
.comment-title-left i { color: var(--gold); }
.comment-title-right {
    font-size: 0.72rem;
    background: rgba(212, 162, 76, 0.08);
    border: 1px solid var(--border);
    color: var(--gold);
    padding: 6px 14px;
    border-radius: 100px;
    cursor: pointer;
    transition: 0.2s;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}
.comment-title-right:hover {
    background: var(--gold);
    color: var(--bg-0);
    border-color: var(--gold);
}
.comment-form {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: none;
    border: 1px solid var(--border);
}
.comment-form.show { display: block; }
.form-row { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.form-group { flex: 1; min-width: 120px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--gold);
    font-size: 0.72rem;
    font-family: var(--font-mono);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.88rem;
    transition: 0.2s;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 162, 76, 0.15);
}
.captcha-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.captcha-question {
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: bold;
    color: var(--gold-bright);
    font-size: 0.88rem;
    font-family: var(--font-mono);
    border: 1px solid var(--border);
}
.btn-submit {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    border: none;
    color: var(--bg-0);
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.3s;
    width: 100%;
    font-family: inherit;
    letter-spacing: 0.5px;
}
.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 162, 76, 0.3);
}
.comment-list { margin-top: 15px; }
.comment-item {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border-left: 3px solid var(--gold);
    transition: all 0.25s ease;
}
.comment-item:hover {
    background: rgba(0, 0, 0, 0.35);
    transform: translateX(4px);
}
.comment-meta {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.comment-nickname {
    font-weight: 700;
    color: var(--gold-bright);
    font-size: 0.88rem;
}
.comment-time {
    font-size: 0.72rem;
    color: var(--text-mute);
    font-family: var(--font-mono);
}
.comment-content {
    line-height: 1.6;
    color: var(--text-dim);
    font-size: 0.88rem;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.pagination button {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--gold);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.2s;
    font-family: var(--font-mono);
}
.pagination button:hover:not(:disabled) {
    background: var(--gold);
    color: var(--bg-0);
    border-color: var(--gold);
}
.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.loading {
    text-align: center;
    color: var(--text-mute);
    padding: 20px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

/* ========== 04 纪念车票 ========== */
.ticket-section {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}
.ticket-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-deep), transparent);
}
.ticket-section h3 {
    color: var(--gold);
    font-family: var(--font-mono);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.ticket-section h3 i { color: var(--gold); }
.ticket-section .ticket-generator-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.ticket-preview {
    border: 1px solid var(--border-hover) !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 162, 76, 0.1) !important;
    color: var(--text) !important;
}
.ticket-preview.blue {
    background: linear-gradient(135deg, #0f0c08 0%, #1d1711 60%, #2a2017 100%) !important;
    background-image:
        linear-gradient(90deg, rgba(212, 162, 76, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(212, 162, 76, 0.08) 1px, transparent 1px),
        linear-gradient(45deg, rgba(212, 162, 76, 0.05) 0%, rgba(212, 162, 76, 0.08) 50%, rgba(212, 162, 76, 0.05) 100%) !important;
    background-size: 20px 20px, 20px 20px, 100% 100% !important;
}
.ticket-preview.green {
    background: linear-gradient(135deg, #1a2b1a 0%, #2b3e2b 60%, #3d523d 100%) !important;
    background-image:
        linear-gradient(90deg, rgba(255, 240, 150, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(255, 240, 150, 0.1) 1px, transparent 1px) !important;
    background-size: 20px 20px, 20px 20px !important;
}
.ticket-preview.red {
    background: linear-gradient(135deg, #2b1a1a 0%, #3e2828 60%, #523d3d 100%) !important;
    background-image:
        linear-gradient(90deg, rgba(255, 220, 220, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(255, 220, 220, 0.1) 1px, transparent 1px) !important;
    background-size: 20px 20px, 20px 20px !important;
}
.ticket-preview::before {
    background: radial-gradient(circle at center, rgba(212, 162, 76, 0.3) 0%, rgba(212, 162, 76, 0.05) 80%) !important;
}
.ticket-preview .ticket-code-area {
    color: var(--gold-bright) !important;
    background: rgba(8, 6, 4, 0.6) !important;
    border: 1px solid rgba(212, 162, 76, 0.3) !important;
    font-family: var(--font-mono) !important;
}
.ticket-preview .corner-tag {
    border: 1px solid rgba(212, 162, 76, 0.4) !important;
    background: rgba(8, 6, 4, 0.6) !important;
    color: var(--gold-bright) !important;
}
.ticket-preview .train-number {
    color: var(--gold-bright) !important;
    border-bottom: 1px solid rgba(212, 162, 76, 0.4) !important;
    text-shadow: 0 0 10px rgba(212, 162, 76, 0.4) !important;
}
.ticket-preview .depart-station,
.ticket-preview .arrive-station {
    background: rgba(8, 6, 4, 0.4) !important;
    border: 1px solid rgba(212, 162, 76, 0.2) !important;
}
.ticket-preview .station-name { color: var(--text) !important; }
.ticket-preview .station-pinyin { color: var(--gold-bright) !important; }
.ticket-preview .arrow {
    color: var(--gold-bright) !important;
    text-shadow: 0 0 12px rgba(212, 162, 76, 0.5) !important;
}
.ticket-preview .info-row1,
.ticket-preview .info-row2 {
    background: rgba(8, 6, 4, 0.5) !important;
    border: 1px solid rgba(212, 162, 76, 0.2) !important;
}
.ticket-preview .price { color: var(--gold-bright) !important; }
.ticket-preview .ticket-rule { color: var(--text-mute) !important; }

.ticket-form {
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    border: 1px solid var(--border) !important;
    backdrop-filter: blur(8px);
}
.ticket-form label { color: var(--gold) !important; font-family: var(--font-mono) !important; font-size: 0.72rem !important; letter-spacing: 1.5px !important; text-transform: uppercase !important; }
.ticket-form input {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: 8px !important;
}
.ticket-form input:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 10px rgba(212, 162, 76, 0.2) !important;
}
.generate-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep)) !important;
    color: var(--bg-0) !important;
    box-shadow: 0 4px 15px rgba(212, 162, 76, 0.3) !important;
}
.download-btn {
    background: transparent !important;
    color: var(--gold) !important;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
}
.download-btn:hover {
    background: var(--gold) !important;
    color: var(--bg-0) !important;
    border-color: var(--gold) !important;
}
.generate-btn:hover, .download-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(212, 162, 76, 0.5) !important;
}
.suggestions-dropdown {
    background: var(--bg-2) !important;
    border: 1px solid var(--gold) !important;
}
.suggestions-dropdown div {
    color: var(--text) !important;
    border-bottom: 1px solid rgba(212, 162, 76, 0.2) !important;
}
.suggestions-dropdown div:hover {
    background: rgba(212, 162, 76, 0.08) !important;
    color: var(--gold-bright) !important;
}
.suggestions-dropdown div strong { color: var(--gold-bright) !important; }
.suggestions-dropdown div small { color: var(--text-mute) !important; }

/* ========== 05 地理定位 ========== */
.geo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: stretch;
}
.geo-map {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    background: var(--bg-2);
    min-height: 420px;
}
.geo-map::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-deep), transparent);
    z-index: 1001;
}
#stationMap {
    width: 100%; height: 100%;
    min-height: 420px;
    z-index: 1;
}
.map-controls {
    position: absolute;
    top: 20px; right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}
.map-btn {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(8, 6, 4, 0.85);
    border: 1px solid var(--border);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
    font-size: 0.9rem;
}
.map-btn:hover {
    background: var(--gold);
    color: var(--bg-0);
    border-color: var(--gold);
    transform: scale(1.05);
}
.map-placeholder {
    width: 100%; height: 100%;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-mute);
    background: rgba(0, 0, 0, 0.25);
}
.map-placeholder i { font-size: 3rem; margin-bottom: 12px; opacity: 0.5; }

.geo-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.geo-info-item {
    padding: 16px 18px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.25s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.geo-info-item::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--gold);
    opacity: 0.7;
}
.geo-info-item:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}
.geo-info-item:hover::before { opacity: 1; }
.geo-info-label {
    font-size: 0.68rem;
    color: var(--text-mute);
    font-family: var(--font-mono);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.geo-info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    word-break: break-word;
}

.leaflet-container {
    background: #dce3e8;
    border-radius: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.leaflet-popup-content-wrapper {
    background: var(--bg-2);
    color: var(--text);
    border-radius: 10px;
    border: 1px solid var(--gold);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.leaflet-popup-content { margin: 8px 12px; line-height: 1.5; }
.leaflet-popup-tip {
    background: var(--bg-2);
    border: 1px solid var(--gold);
}
.leaflet-popup-close-button { color: var(--gold) !important; }
.station-div-icon { background: transparent !important; border: none !important; }

/* ========== 操作条带 ========== */
.action-band {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 48px 60px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
}
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--gold);
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.8px;
}
.action-btn:hover {
    background: var(--gold);
    color: var(--bg-0);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 162, 76, 0.25);
}
.action-btn i {
    font-size: 1rem;
    color: var(--gold);
    transition: color 0.25s ease;
}
.action-btn:hover i { color: var(--bg-0); }

/* ========== 右侧章节导航 ========== */
.section-nav {
    position: fixed;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    pointer-events: none;
}
.section-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(8, 6, 4, 0.85);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 8px;
    pointer-events: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    position: relative;
}
.section-nav-inner::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px 11px 14px;
    font-size: 0.88rem;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 1.5px;
    font-family: "STKaiti", "KaiTi", "楷体", serif;
    font-weight: 500;
    transition: all 0.25s ease;
    border-radius: 8px;
    position: relative;
    white-space: nowrap;
}
.section-nav-link::before {
    content: "";
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--text-mute);
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.section-nav-link:hover {
    color: var(--gold);
    background: rgba(212, 162, 76, 0.06);
}
.section-nav-link:hover::before { background: var(--gold); box-shadow: 0 0 8px var(--gold-glow); }
.section-nav-link.active {
    color: var(--gold-bright);
    background: rgba(212, 162, 76, 0.12);
    font-weight: 700;
    text-shadow: 0 0 12px var(--gold-glow);
}
.section-nav-link.active::before {
    width: 6px; height: 6px;
    background: var(--gold-bright);
    box-shadow: 0 0 12px var(--gold-bright);
}
.section-nav-link.active::after {
    content: "";
    position: absolute;
    left: -8px; top: 50%;
    transform: translateY(-50%);
    width: 2px; height: 60%;
    background: linear-gradient(180deg, transparent, var(--gold-bright), transparent);
    border-radius: 2px;
}

/* ========== 图片放大模态框 ========== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.image-modal.show { display: flex; }
.modal-content {
    max-width: 90%; max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(212, 162, 76, 0.2);
    border: 1px solid var(--border);
}
.modal-close {
    position: absolute;
    top: 20px; right: 30px;
    color: var(--gold);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10002;
    line-height: 1;
}
.modal-close:hover { color: var(--gold-bright); transform: rotate(90deg); }
.modal-caption {
    position: absolute;
    bottom: 20px; left: 0;
    width: 100%;
    text-align: center;
    color: var(--text);
    font-size: 0.95rem;
    padding: 12px 20px;
    background: rgba(8, 6, 4, 0.7);
    font-family: var(--font-mono);
    letter-spacing: 1px;
    backdrop-filter: blur(6px);
}
.modal-prev, .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(8, 6, 4, 0.7);
    color: var(--gold);
    font-size: 32px;
    font-weight: bold;
    border: 1px solid var(--border);
    cursor: pointer;
    padding: 14px 20px;
    border-radius: 50%;
    z-index: 10002;
    transition: all 0.3s;
    user-select: none;
    line-height: 1;
    backdrop-filter: blur(6px);
}
.modal-prev:hover, .modal-next:hover {
    background: var(--gold);
    color: var(--bg-0);
    border-color: var(--gold);
}
.modal-prev { left: 24px; }
.modal-next { right: 24px; }

/* ========== 页脚 ========== */
.footer {
    text-align: center;
    padding: 40px 20px 30px;
    border-top: 1px solid var(--border);
    color: var(--text-mute);
    font-size: 0.78rem;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    max-width: 1280px;
    margin: 0 auto;
}
.footer p { margin-bottom: 8px; }
.footer p:last-child { margin-bottom: 0; }

/* ========== 语音状态 ========== */
.voice-status {
    position: fixed;
    bottom: 24px;
    left: 24px;
    padding: 12px 22px;
    background: rgba(8, 6, 4, 0.95);
    border-radius: 100px;
    color: var(--text);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--gold);
    z-index: 9998;
    animation: slideUp 0.5s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    font-family: var(--font-mono);
}
.voice-status i { color: var(--gold); }
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ========== 站牌名特殊处理 ========== */
.station-name-4chars { letter-spacing: -0.15em; }

/* ========== 动画 ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.6s ease forwards; }

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .section-nav { right: 16px; }
    .section-nav-link { padding: 9px 13px 9px 11px; font-size: 0.82rem; letter-spacing: 1px; }
}
@media (max-width: 1024px) {
    .station-hero { height: 520px; }
    .hero-content { padding: 0 32px 40px; }
    .detail-main { padding: 0 32px 60px; }
    .data-dashboard { padding: 0 32px; }
    .dashboard-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .dash-item:nth-child(3) { border-right: none; }
    .section-nav { display: none; }

    .operation-grid { grid-template-columns: 1fr; gap: 24px; }
    .operation-narrative { grid-template-columns: 1fr; }
    .interaction-grid { grid-template-columns: 1fr; }
    .geo-grid { grid-template-columns: 1fr; }
    .geo-map, #stationMap { min-height: 320px; }
    .action-band { padding: 30px 32px 40px; }
}
@media (max-width: 768px) {
    .station-hero { height: 440px; }
    .hero-content { padding: 0 20px 30px; gap: 18px; }
    .hero-station-name { font-size: 2.6rem; }
    .hero-station-pinyin { font-size: 1rem; letter-spacing: 2px; }
    .hero-meta-line { font-size: 0.85rem; gap: 12px; }
    .hero-hud { display: none; }

    .data-dashboard { padding: 0 20px; margin-top: -30px; }
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); padding: 16px; }
    .dash-item:nth-child(3) { border-right: 1px dashed rgba(212, 162, 76, 0.12); }
    .dash-item:nth-child(2n) { border-right: none; }
    .dash-value { font-size: 1.15rem; }

    .detail-main { padding: 0 20px 40px; }
    .detail-section { padding: 55px 0; }

    .gallery-main-wrap { aspect-ratio: 4 / 3; }
    .gallery-info-overlay { padding: 16px 20px; }
    .gallery-img-title { font-size: 1rem; }
    .gallery-thumbs-row { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }

    .sign-column { padding: 24px 16px; }
    .monitor-card { padding: 20px; }
    .readout-item { min-height: 44px; }
    .readout-label { font-size: 1.0rem; letter-spacing: 1.5px; }
    .readout-value { font-size: 0.95rem; }
    .readout-value.small { font-size: 0.85rem; }

    .geo-map, #stationMap { min-height: 280px; }
    .narrative-block { padding: 24px; }

    .interact-card { padding: 22px; }
    .comment-section { padding: 22px; }
    .adjacent-track { flex-direction: column; gap: 12px; }
    .adjacent-track::before { display: none; }
    .adjacent-track::after  { display: none !important; }

    .action-band { padding: 24px 20px 32px; gap: 8px; }
    .action-btn { padding: 10px 18px; font-size: 0.8rem; }

    .ticket-section { padding: 22px; }
    .ticket-preview { min-height: 260px !important; }
}
@media (max-width: 480px) {
    .station-hero { height: 400px; }
    .hero-station-name { font-size: 2rem; letter-spacing: -0.02em; }
    .hero-station-pinyin { font-size: 0.85rem; }
    .hero-meta-line { font-size: 0.78rem; gap: 8px; }
    .station-badge, .hero-line-badge { padding: 8px 14px; }
    .station-badge-code { font-size: 0.95rem; }

    .data-dashboard { padding: 0 14px; }
    .dashboard-grid { padding: 12px; gap: 8px; }
    .dash-item { padding: 12px 8px; }
    .dash-value { font-size: 1rem; }
    .dash-label { font-size: 0.6rem; letter-spacing: 1px; }

    .detail-main { padding: 0 14px 30px; }
    .detail-section { padding: 45px 0; }
    .section-head { margin-bottom: 24px; padding-bottom: 14px; }
    .section-num { font-size: 0.72rem; }
    .section-title { font-size: 1.2rem; }

    .readout-item { min-height: 40px; padding: 0 4px; }
    .readout-label { font-size: 1.0rem; letter-spacing: 1px; }
    .readout-value { font-size: 0.9rem; }
    .readout-value.small { font-size: 0.82rem; }

    .checkin-buttons { flex-direction: column; }
    .checkin-stats { grid-template-columns: 1fr; }
    .stat-value { font-size: 1.3rem; }

    .modal-prev, .modal-next { font-size: 22px; padding: 10px 14px; }
    .modal-prev { left: 10px; }
    .modal-next { right: 10px; }

    .action-btn { flex: 1 1 calc(50% - 4px); justify-content: center; }
}

/* ============================================================ */
/* ========== 分享 / 打印 / 关闭：底部弹层 ========== */
/* ============================================================ */

.action-band .js-mobile-only { display: none; }
.action-band .js-mobile-only.is-visible { display: inline-flex; }

.action-sheet {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10005 !important;
    display: none !important;
    align-items: flex-end;
    justify-content: center;
}
.action-sheet.show { display: flex !important; }
.action-sheet-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.action-sheet.show .action-sheet-mask { opacity: 1; }
.action-sheet-panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: var(--bg-2, #16110c);
    border: 1px solid var(--border, rgba(212, 162, 76, 0.15));
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    padding: 12px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.7);
}
.action-sheet.show .action-sheet-panel { transform: translateY(0); }
.action-sheet-handle {
    width: 40px; height: 4px;
    background: rgba(212, 162, 76, 0.35);
    border-radius: 4px;
    margin: 0 auto 16px;
}
.action-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border, rgba(212, 162, 76, 0.15));
    margin-bottom: 20px;
}
.action-sheet-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text, #ede5d8);
    letter-spacing: 1px;
    font-family: var(--font-mono, monospace);
    text-transform: uppercase;
}
.action-sheet-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(212, 162, 76, 0.08);
    border: 1px solid var(--border, rgba(212, 162, 76, 0.15));
    color: var(--gold, #d4a24c);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    font-size: 0.85rem;
}
.action-sheet-close:hover {
    background: var(--gold, #d4a24c);
    color: var(--bg-0, #080604);
    border-color: var(--gold, #d4a24c);
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
.share-item {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border, rgba(212, 162, 76, 0.15));
    border-radius: 14px;
    padding: 16px 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
    font-family: inherit;
    color: inherit;
}
.share-item:hover, .share-item:active {
    border-color: var(--gold, #d4a24c);
    background: rgba(212, 162, 76, 0.08);
    transform: translateY(-2px);
}
.share-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
}
.share-icon-wechat { background: linear-gradient(135deg, #4ecb71, #07c160); }
.share-icon-douyin { background: linear-gradient(135deg, #2b2b2b, #000); color: #fff; }
.share-icon-xhs    { background: linear-gradient(135deg, #ff4d6d, #fe2c55); }
.share-icon-weibo  { background: linear-gradient(135deg, #ff9a3c, #e6162d); }
.share-icon-qq     { background: linear-gradient(135deg, #4fb8ff, #12b7f5); }
.share-icon-native { background: linear-gradient(135deg, #d4a24c, #b87333); }
.share-label {
    font-size: 0.78rem;
    color: var(--text-dim, rgba(237, 229, 216, 0.7));
    font-family: inherit;
    letter-spacing: 0.5px;
}

.share-copy-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
    padding-top: 4px;
}
.share-copy-row input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border, rgba(212, 162, 76, 0.15));
    border-radius: 10px;
    color: var(--text-dim, rgba(237, 229, 216, 0.7));
    font-size: 0.78rem;
    font-family: var(--font-mono, monospace);
    outline: none;
}
.share-copy-row button {
    padding: 11px 18px;
    background: linear-gradient(135deg, var(--gold, #d4a24c), var(--gold-deep, #b87333));
    color: var(--bg-0, #080604);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    font-family: inherit;
}
.share-copy-row button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(212, 162, 76, 0.3); }

.print-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.print-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border, rgba(212, 162, 76, 0.15));
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
    font-family: inherit;
    color: inherit;
}
.print-item:hover, .print-item:active {
    border-color: var(--gold, #d4a24c);
    background: rgba(212, 162, 76, 0.08);
    transform: translateX(3px);
}
.print-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(212, 162, 76, 0.12);
    border: 1px solid var(--border, rgba(212, 162, 76, 0.15));
    color: var(--gold, #d4a24c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.print-text { flex: 1; min-width: 0; }
.print-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text, #ede5d8);
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}
.print-desc {
    font-size: 0.75rem;
    color: var(--text-mute, rgba(237, 229, 216, 0.4));
    font-family: var(--font-mono, monospace);
    letter-spacing: 0.5px;
}
.print-tip {
    padding: 12px 14px;
    background: rgba(212, 162, 76, 0.06);
    border: 1px dashed var(--border, rgba(212, 162, 76, 0.15));
    border-radius: 10px;
    font-size: 0.72rem;
    color: var(--text-mute, rgba(237, 229, 216, 0.4));
    line-height: 1.6;
    font-family: var(--font-mono, monospace);
}
.print-tip i { color: var(--gold, #d4a24c); margin-right: 6px; }

.action-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(8, 6, 4, 0.95);
    border: 1px solid var(--gold, #d4a24c);
    color: var(--text, #ede5d8);
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    z-index: 10010;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    font-family: inherit;
    max-width: 80vw;
    text-align: center;
    line-height: 1.5;
}
.action-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media print {
    #preloader, .section-nav, .action-band, .action-sheet, .action-toast,
    .image-modal, .map-controls, .voice-status, .gallery-thumbs-row { display: none !important; }
    .station-hero { height: auto; min-height: 380px; }
    .detail-section { page-break-inside: avoid; }
}

/* ============================================================ */
/* ========== 数据行：脉冲进度条 + 数字滚动 ========== */
/* ============================================================ */

.readout-value.mileage-value,
.readout-value.visit-value,
.readout-value.images-value {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
}

.readout-item {
    gap: 24px;
}

.pulse-bar {
    position: relative;
    display: block;
    flex: 1 1 auto;
    min-width: 60px;
    max-width: 100%;
    height: 6px;
    background: rgba(212, 162, 76, 0.1);
    border: 1px solid rgba(212, 162, 76, 0.2);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
    animation: pulseBarBreathe 2.6s ease-in-out infinite;
}

@keyframes pulseBarBreathe {
    0%, 100% { box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4); }
    50%      { box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4),
                           0 0 8px rgba(212, 162, 76, 0.28); }
}

.pulse-bar-fill {
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: var(--p, 0%);
    border-radius: 3px;
    animation: pulseBarFill 1.6s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}
@keyframes pulseBarFill {
    from { width: 0; }
    to   { width: var(--p, 0%); }
}

.pulse-bar-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.7) 50%,
        transparent 100%
    );
    animation: pulseBarShine 2.2s linear infinite;
    pointer-events: none;
    border-radius: 3px;
}
@keyframes pulseBarShine {
    0%   { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

.pulse-bar[data-pulse-level="0"] .pulse-bar-fill {
    background: linear-gradient(90deg, #2e7d32, var(--signal-green));
    box-shadow: 0 0 10px var(--signal-green), 0 0 4px var(--signal-green);
}
.pulse-bar[data-pulse-level="1"] .pulse-bar-fill {
    background: linear-gradient(90deg, #b38600, var(--signal-yellow));
    box-shadow: 0 0 10px var(--signal-yellow), 0 0 4px var(--signal-yellow);
}
.pulse-bar[data-pulse-level="2"] .pulse-bar-fill {
    background: linear-gradient(90deg, #8a1a1a, var(--signal-red));
    box-shadow: 0 0 10px var(--signal-red), 0 0 4px var(--signal-red);
}

.pulse-bar[data-pulse-level="0"] ~ .readout-num {
    color: var(--signal-green);
    text-shadow: 0 0 12px rgba(76, 175, 80, 0.35);
}
.pulse-bar[data-pulse-level="1"] ~ .readout-num {
    color: var(--signal-yellow);
    text-shadow: 0 0 12px rgba(255, 193, 7, 0.35);
}
.pulse-bar[data-pulse-level="2"] ~ .readout-num {
    color: var(--signal-red);
    text-shadow: 0 0 12px rgba(244, 67, 54, 0.35);
}

.mileage-text {
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    color: var(--text);
    min-width: 4.5em;
    text-align: right;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.readout-num {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--gold-bright);
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px rgba(212, 162, 76, 0.2);
    min-width: 2.4em;
    text-align: right;
    display: inline-block;
    font-size: 1rem;
    flex-shrink: 0;
}

.count-unit {
    font-size: 0.72rem;
    color: var(--text-mute);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    margin-left: -6px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .readout-item { gap: 16px; }
    .readout-value.mileage-value,
    .readout-value.visit-value,
    .readout-value.images-value { gap: 12px; }
    .pulse-bar { height: 5px; min-width: 40px; }
}

@media (max-width: 480px) {
    .readout-item { gap: 12px; }
    .readout-value.mileage-value,
    .readout-value.visit-value,
    .readout-value.images-value { gap: 10px; }
    .pulse-bar { height: 4px; min-width: 32px; }
    .readout-num { font-size: 0.92rem; min-width: 2em; }
    .mileage-text { font-size: 0.82rem; min-width: 3.8em; }
}

/* ============================================================ */
/* ========== 修复 grid 布局：防止内容撑破 + 避让悬浮导航 ========== */
/* ============================================================ */

.operation-grid,
.operation-grid > * {
    min-width: 0;
}
.monitor-column,
.monitor-card {
    min-width: 0;
}
.status-monitor-row {
    min-width: 0;
    flex-wrap: nowrap;
}
.status-monitor-row > * {
    min-width: 0;
}
.readout-grid,
.readout-item,
.readout-value {
    min-width: 0;
}

@media (min-width: 1025px) {
    #operation {
        padding-right: 96px;
    }
}

/* ============================================================ */
/* ========== LED 显示屏：整块屏 + 左侧车厢号 + 右侧跑马灯 ========== */
/* ========== 真实车厢屏风：固定黄绿 · 紧凑车号 · 金色外框 ========== */
/* ============================================================ */

/* 引入开源中文点阵字体「正格点黑 16」 */
@font-face {
    font-family: 'ZhengGeDianHei16';
    src: url('https://cdn.jsdelivr.net/gh/yzdnn/ZhengGeDianHei-16@main/Fonts/ZhengGeDianHei-16.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* 车厢 LED 黄绿色（真实屏色） */
    --led-lime: #b8e000;
    --led-lime-rgb: 184, 224, 0;
    /* 外框 / 分隔线金色（与整体风格一致） */
    --led-frame: rgba(212, 162, 76, 0.45);
}

/* 外层：一整块 LED 屏（金色外框，高度降低让文字更贴边） */
.led-display {
    flex: 1 1 0;
    min-width: 0;
    height: 46px;
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #050301;
    border: 1.5px solid var(--led-frame);
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 0 12px rgba(212, 162, 76, 0.08);
}

/* 点阵：中性白点，不抢黄绿文字的颜色 */
.led-display::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1.4px);
    background-size: 4px 4px;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: screen;
    opacity: 0.7;
}

/* 左右渐隐遮罩 */
.led-display::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #050301 0%,
        rgba(5, 3, 1, 0.7) 3%,
        transparent 10%,
        transparent 90%,
        rgba(5, 3, 1, 0.7) 97%,
        #050301 100%
    );
    pointer-events: none;
    z-index: 3;
}

/* ===== 左侧：车厢号区（紧凑，两侧只留极小间距） ===== */
.led-car {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    position: relative;
    z-index: 4;
    border-right: 1.5px solid var(--led-frame);
}

/* 竖线分隔光晕（金色） */
.led-car::after {
    content: "";
    position: absolute;
    right: -1.5px;
    top: 18%;
    bottom: 18%;
    width: 1.5px;
    background: linear-gradient(180deg,
        transparent,
        rgba(212, 162, 76, 0.85),
        transparent);
    pointer-events: none;
}

/* 车厢号数字：固定黄绿色，无外框，字体偏细 */
.led-car-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: "ZhengGeDianHei16", "Arial", "Helvetica Neue", Arial,
                 "Courier New", var(--font-mono), monospace;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    color: var(--led-lime);
    font-variant-numeric: tabular-nums;
    text-shadow:
        0 0 4px currentColor,
        0 0 12px rgba(var(--led-lime-rgb), 0.65),
        0 0 22px rgba(var(--led-lime-rgb), 0.30);
}

/* ===== 右侧：滚动区（透明，融入整块屏） ===== */
.led-marquee {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 1;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* 轨道：上下各留 1.5px 内边距 */
.led-marquee-track {
    position: absolute;
    top: 1.5px;
    bottom: 1.5px;
    left: 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform, opacity;
}

/* 滚动文字：与车厢号同字号，字体偏细，固定黄绿 */
.led-marquee-text {
    font-family: "ZhengGeDianHei16", "Arial", "Helvetica Neue", Arial,
                 "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 1px;
    color: var(--led-lime);
    text-shadow:
        0 0 5px currentColor,
        0 0 14px rgba(var(--led-lime-rgb), 0.60),
        0 0 26px rgba(var(--led-lime-rgb), 0.28);
    display: none;
    flex-shrink: 0;
}
.led-marquee-text.is-active {
    display: inline-block;
}

/* ===== welcome 居中显示模式 ===== */
.led-marquee-track.is-welcome {
    width: 100%;
    left: 0;
    top: 0;
    bottom: 0;
    justify-content: center;
    transform: none !important;
    transition: none !important;
}
.led-marquee-track.is-welcome .led-marquee-text {
    display: none !important;
}
.led-marquee-track.is-welcome .led-marquee-welcome {
    display: inline-block !important;
}

/* ===== 响应式：整块屏统一缩放 ===== */
@media (max-width: 1024px) {
    .status-monitor-row {
        flex-wrap: nowrap !important;
        gap: 10px;
    }
    .led-display { height: 42px; }
    .led-car { padding: 0 4px; }
    .led-car-num { font-size: 1.6rem; }
    .led-marquee-text { font-size: 1.6rem; letter-spacing: 0.8px; }
}
@media (max-width: 768px) {
    .led-display { height: 36px; border-radius: 4px; }
    .led-car { padding: 0 4px; }
    .led-car-num { font-size: 1.35rem; }
    .led-marquee-text { font-size: 1.35rem; letter-spacing: 0.5px; }
}
@media (max-width: 480px) {
    .status-monitor-row { gap: 8px; }
    .status-monitor-label { font-size: 0.68rem; letter-spacing: 0.5px; }
    .status-group { padding: 4px; gap: 3px; }
    .status-dot { width: 14px; height: 14px; }
    .led-display { height: 32px; }
    .led-car { padding: 0 3px; }
    .led-car-num { font-size: 1.15rem; }
    .led-marquee-text { font-size: 1.15rem; letter-spacing: 0; }
}

/* 极窄屏兜底 */
@media (max-width: 360px) {
    .status-monitor-label { display: none; }
    .status-monitor-row { gap: 6px; }
    .led-car { padding: 0 3px; }
    .led-car-num { font-size: 1rem; }
    .led-marquee-text { font-size: 1rem; }
}

/* ============================================================ */
/* ========== 滚动区左侧渐隐 ========== */
/* ============================================================ */
.led-marquee::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 22px;
    background: linear-gradient(90deg,
        #050301 0%,
        rgba(5, 3, 1, 0.85) 30%,
        rgba(5, 3, 1, 0.4) 65%,
        transparent 100%);
    pointer-events: none;
    z-index: 2;
}
/* ============================================================ */
/* ========== 附属建筑群 ========== */
/* ============================================================ */

.related-buildings-intro {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.9;
    margin-bottom: 28px;
    padding: 18px 24px;
    background: rgba(212, 162, 76, 0.04);
    border-left: 3px solid var(--gold);
    border-radius: 0 10px 10px 0;
    letter-spacing: 0.2px;
}
.related-buildings-intro strong {
    color: var(--gold-bright);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin: 0 4px;
    text-shadow: 0 0 12px var(--gold-glow);
}

.related-buildings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.related-building-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}
.related-building-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
}
.related-building-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(212, 162, 76, 0.12);
}
.related-building-card:hover::before { opacity: 1; }

.rb-photo-wrap {
    width: 100%;
    height: 170px;
    background: linear-gradient(135deg, #1a1510, #0d0a07);
    position: relative;
    overflow: hidden;
}
.rb-photo {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: block;
}
.related-building-card:hover .rb-photo { transform: scale(1.08); }

.rb-photo-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-deep);
    font-size: 2.2rem;
    opacity: 0.35;
}

.rb-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.rb-name {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.35;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.rb-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-mute);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}
.rb-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.rb-meta-item i { color: var(--gold); font-size: 0.85em; }

.rb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 4px;
}
.rb-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    color: color-mix(in srgb, var(--c, #999) 90%, #fff 10%);
    background: color-mix(in srgb, var(--c, #999) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--c, #999) 42%, transparent);
    line-height: 1.45;
}
.rb-chip i { font-size: 0.85em; }

.rb-arrow {
    position: absolute;
    top: 12px; right: 12px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(8, 6, 4, 0.75);
    border: 1px solid var(--border);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none;
}
.related-building-card:hover .rb-arrow {
    background: var(--gold);
    color: var(--bg-0);
    border-color: var(--gold);
    transform: translateX(3px);
}

/* 响应式 */
@media (max-width: 768px) {
    .related-buildings-intro {
        font-size: 0.88rem;
        padding: 14px 18px;
        margin-bottom: 20px;
    }
    .related-buildings-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 12px;
    }
    .rb-photo-wrap { height: 140px; }
    .rb-body { padding: 14px 16px 16px; gap: 8px; }
    .rb-name { font-size: 1rem; }
}
@media (max-width: 480px) {
    .related-buildings-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .rb-photo-wrap { height: 160px; }
    .rb-name { font-size: 1.05rem; min-height: auto; }
}
/* ============================================================ */
/* ========== 附属建筑群：纯卡片网格 ========== */
/* ============================================================ */

.related-buildings-intro {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.9;
    margin-bottom: 20px;
    padding: 16px 22px;
    background: rgba(212, 162, 76, 0.04);
    border-left: 3px solid var(--gold);
    border-radius: 0 10px 10px 0;
    letter-spacing: 0.2px;
}
.related-buildings-intro strong {
    color: var(--gold-bright);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin: 0 4px;
    text-shadow: 0 0 12px var(--gold-glow);
}
.rb-pagination-hint {
    font-size: 0.82rem;
    color: var(--text-mute);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    margin-left: 6px;
}
.rb-pagination-hint #rbCurrentPageLabel {
    color: var(--gold-bright);
    font-weight: 700;
}

.related-buildings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.related-building-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 22px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    min-height: 140px;
}
.related-building-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.related-building-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.45),
        0 0 24px rgba(212, 162, 76, 0.1);
}
.related-building-card:hover::before { opacity: 1; }

.rb-name {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.rb-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 0.82rem;
    color: var(--text-mute);
    font-family: var(--font-mono);
    letter-spacing: 0.3px;
}
.rb-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rb-meta-item i {
    color: var(--gold);
    font-size: 0.85em;
    flex-shrink: 0;
}

.rb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 4px;
}
.rb-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    color: color-mix(in srgb, var(--c, #999) 90%, #fff 10%);
    background: color-mix(in srgb, var(--c, #999) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--c, #999) 42%, transparent);
    line-height: 1.45;
}
.rb-chip i { font-size: 0.85em; }

.rb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px dashed var(--border);
}
.rb-page-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.85rem;
    font-family: inherit;
}
.rb-page-btn:hover:not(:disabled) {
    background: var(--gold);
    color: var(--bg-0);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 162, 76, 0.25);
}
.rb-page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.rb-page-numbers {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.rb-page-num {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.88rem;
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rb-page-num:hover:not(.active) {
    border-color: var(--border-hover);
    color: var(--gold);
    background: rgba(212, 162, 76, 0.06);
}
.rb-page-num.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    border-color: var(--gold);
    color: var(--bg-0);
    box-shadow: 0 4px 14px rgba(212, 162, 76, 0.4);
    cursor: default;
}

@media (max-width: 768px) {
    .related-buildings-intro {
        font-size: 0.88rem;
        padding: 14px 18px;
        margin-bottom: 16px;
    }
    .related-buildings-grid { gap: 12px; }
    .related-building-card {
        padding: 16px 18px;
        border-radius: 10px;
        min-height: 120px;
    }
    .rb-name { font-size: 1rem; }
    .rb-meta-row { font-size: 0.78rem; gap: 4px 10px; }
    .rb-chip { font-size: 0.68rem; padding: 2px 8px; }
    .rb-pagination { gap: 8px; margin-top: 20px; padding-top: 18px; }
    .rb-page-btn,
    .rb-page-num {
        min-width: 36px;
        height: 36px;
        font-size: 0.82rem;
        border-radius: 8px;
    }
    .rb-page-num { padding: 0 8px; }
}
@media (max-width: 480px) {
    .related-buildings-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .related-building-card {
        min-height: auto;
        padding: 14px 16px;
    }
}