/* museum.css - 中东铁路数字影像博物馆（深灰蓝·进度条加载） */

/* 重置公共头部容器限制 */
#main-content {
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* 全局背景：深灰蓝科技质感 */
html, body {
    background: 
        radial-gradient(circle at 20% 20%, rgba(100, 150, 200, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 75% 60%, rgba(120, 140, 180, 0.06) 0%, transparent 55%),
        linear-gradient(135deg, #0b0e14 0%, #11151c 30%, #161b22 60%, #14181f 100%) fixed !important;
    color: #eef2ff;
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0; padding: 0;
}

/* 右侧悬浮导航 */
.museum-sub-nav {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    background: rgba(18, 20, 26, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(180, 200, 220, 0.2);
    border-radius: 40px;
    padding: 0.8rem 0.6rem;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.sub-nav-inner { display: flex; flex-direction: column; gap: 0.3rem; align-items: center; }
.sub-nav-link {
    color: rgba(220, 230, 245, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    transition: 0.2s;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}
.sub-nav-link.active, .sub-nav-link:hover {
    color: #fff;
    background: rgba(100, 180, 255, 0.25);
}
.sub-nav-link.active {
    background: rgba(100, 180, 255, 0.35);
    font-weight: 600;
}

/* 主内容区 */
.museum-main { margin-top: 0; padding: 0 2rem 2rem 2rem; }
.museum-section {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 0;
    scroll-margin-top: 80px;
}

/* 序厅 */
.hero-card {
    max-width: 700px; text-align: center;
    background: rgba(20, 24, 32, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(180, 200, 220, 0.2);
    border-radius: 24px;
    padding: 2.5rem; margin-bottom: 2rem;
}
.hero-card h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, #b8d4f0 0%, #8ab4e0 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}
.subtitle { font-size: 1.2rem; color: rgba(220, 230, 245, 0.8); margin: 1.5rem 0 2rem; }
.stats-row { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.stat { text-align: center; }
.num {
    font-size: 2.8rem; font-weight: 700;
    background: linear-gradient(135deg, #b8d4f0, #8ab4e0);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    display: block;
}
.label { font-size: 0.9rem; color: rgba(220, 230, 245, 0.6); }
.preface-text {
    max-width: 700px;
    background: rgba(20, 24, 32, 0.55);
    backdrop-filter: blur(10px);
    border-radius: 18px; padding: 2rem;
    font-size: 1.1rem; line-height: 1.8;
    color: rgba(220, 230, 245, 0.85);
    border: 1px solid rgba(180, 200, 220, 0.15);
}

/* 枢纽 */
.hub-card {
    width: 100%; max-width: 1200px; margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, rgba(80, 140, 200, 0.15), rgba(60, 120, 180, 0.1));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(100, 160, 220, 0.4);
    border-radius: 24px; padding: 2.5rem 2rem;
}
.hub-card h2 { color: #8ab4e0; margin-bottom: 1rem; }
.hub-card p { color: rgba(220, 230, 245, 0.8); max-width: 600px; margin: 0 auto 1.5rem; }
.hub-btn {
    display: inline-block; padding: 0.6rem 2rem;
    background: rgba(138, 180, 224, 0.15); border: 1px solid #8ab4e0;
    border-radius: 30px; color: #8ab4e0; cursor: pointer;
    transition: 0.3s; text-decoration: none;
}
.hub-btn:hover { background: #8ab4e0; color: #0b0e14; }

/* 线路标题 */
.line-header {
    width: 100%; max-width: 1200px; margin: 0 auto 1.2rem;
    text-align: center; padding: 1.5rem 2.5rem;
    border-radius: 24px; border: 1px solid rgba(180, 200, 220, 0.15);
    backdrop-filter: blur(12px);
}
#binsui .line-header { background: linear-gradient(135deg, rgba(0,150,136,0.25), rgba(0,100,90,0.2)); border-color: rgba(0,150,136,0.4); }
.line-title-binsui { color: #00b894; }
#binzhou .line-header { background: linear-gradient(135deg, rgba(233,30,99,0.25), rgba(180,20,70,0.2)); border-color: rgba(233,30,99,0.4); }
.line-title-binzhou { color: #e84393; }
#hada .line-header { background: linear-gradient(135deg, rgba(52,152,219,0.25), rgba(30,100,180,0.2)); border-color: rgba(52,152,219,0.4); }
.line-title-hada { color: #3498db; }
.line-header h2 { font-size: 2rem; margin-bottom: 0.3rem; }
.line-header p { color: rgba(220, 230, 245, 0.7); }

/* 卡片画廊 */
.card-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; max-width: 1200px; margin: 0 auto; }

/* 车站卡片（展柜质感） */
.station-card {
    width: 220px;
    background: rgba(20, 24, 32, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(180, 200, 220, 0.15);
    padding: 1rem;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    position: relative; overflow: hidden;
    transition: all 0.3s ease; cursor: pointer;
    box-shadow:
        0 8px 16px rgba(0,0,0,0.5),
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 0 0 1px rgba(200, 210, 230, 0.1);
}
.station-card:hover {
    box-shadow:
        0 16px 30px rgba(0,0,0,0.7),
        0 4px 8px rgba(0,0,0,0.4),
        0 0 0 2px rgba(138, 180, 224, 0.4),
        inset 0 0 0 1px rgba(200, 210, 230, 0.2);
    transform: translateY(-6px);
    border-color: rgba(138, 180, 224, 0.5);
}
.line-binsui .station-card:hover { border-color: #00b894; }
.line-binzhou .station-card:hover { border-color: #e84393; }
.line-hada .station-card:hover { border-color: #3498db; }

.card-num {
    position: absolute; top: 8px; left: 12px;
    font-size: 0.75rem; color: rgba(220, 230, 245, 0.5);
}
.station-card h3 { font-size: 1.1rem; font-weight: 600; color: #fff; margin: 0.5rem 0; }
.station-card img {
    width: 100%; height: 120px; object-fit: cover;
    border-radius: 10px; border: 1px solid rgba(180, 200, 220, 0.2);
}

.card-hover {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(12, 14, 18, 0.85); backdrop-filter: blur(8px);
    border-radius: 0 0 16px 16px; padding: 0.8rem;
    font-size: 0.8rem; color: #eef2ff;
    opacity: 0; transform: translateY(100%);
    transition: 0.3s; z-index: 5;
}
.station-card:hover .card-hover { opacity: 1; transform: translateY(0); }
.card-hover a { color: #8ab4e0; text-decoration: none; font-weight: 500; }

/* 后记 */
.epilogue-card {
    max-width: 700px;
    background: rgba(20, 24, 32, 0.65); backdrop-filter: blur(15px);
    border-radius: 24px; padding: 2.5rem; text-align: center;
    border: 1px solid rgba(138, 180, 224, 0.3);
}
.epilogue-card h2 { color: #8ab4e0; margin-bottom: 1.5rem; }
.epilogue-card p { line-height: 1.8; color: rgba(220, 230, 245, 0.85); }
blockquote {
    border-left: 3px solid #8ab4e0; padding-left: 1.5rem;
    font-style: italic; margin: 1.5rem 0; color: rgba(220, 230, 245, 0.7);
}
.author { font-weight: 600; margin-top: 1.5rem; color: #8ab4e0; }

/* 致敬按钮 */
.tribute-btn-wrapper { position: relative; display: inline-block; margin-top: 1.5rem; }
.tribute-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 2.2rem;
    background: rgba(138, 180, 224, 0.15); border: 1px solid #8ab4e0;
    border-radius: 30px; color: #8ab4e0; cursor: pointer;
    transition: 0.3s; font-size: 1rem; font-weight: 500;
}
.tribute-btn:hover { background: #8ab4e0; color: #0b0e14; }
#tributeCount {
    background: rgba(255,255,255,0.15); border-radius: 12px;
    padding: 0.1rem 0.6rem; min-width: 30px; font-weight: 600;
}

/* 烟花 */
.fireworks-container { position: absolute; top: 50%; left: 50%; width: 0; height: 0; pointer-events: none; z-index: 10; }
.firework-particle {
    position: absolute; width: 8px; height: 8px; border-radius: 50%;
    background: var(--color); box-shadow: 0 0 6px var(--color);
    animation: fireworkBurst 0.8s ease-out forwards;
    top: 50%; left: 50%; transform: translate(-50%,-50%);
}
@keyframes fireworkBurst {
    0% { opacity:1; transform: translate(-50%,-50%) scale(0.5); }
    50% { opacity:1; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.2); }
    100% { opacity:0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0); }
}
.tribute-btn.glow-anim { animation: buttonGlow 0.6s ease-out; }
@keyframes buttonGlow {
    0% { box-shadow: 0 0 0 0 rgba(138, 180, 224, 0.8); }
    100% { box-shadow: 0 0 30px 10px rgba(138, 180, 224, 0); }
}

/* 加载动画（进度条） */
.museum-loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(8, 10, 15, 0.95); backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.8rem;
}
.loader-progress-container {
    width: 200px; height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}
.loader-progress-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #8ab4e0, #b8d4f0);
    border-radius: 3px;
    transition: width 0.3s ease;
}
.loader-text { color: rgba(220, 230, 245, 0.8); font-size: 1rem; letter-spacing: 0.5px; }

/* 返回顶部 */
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 48px; height: 48px;
    background: rgba(138, 180, 224, 0.25); backdrop-filter: blur(10px);
    border: 1px solid #8ab4e0; border-radius: 50%;
    color: #8ab4e0; font-size: 1.5rem;
    cursor: pointer; display: none; align-items: center; justify-content: center;
    transition: 0.3s; z-index: 99;
}
.back-to-top:hover { background: #8ab4e0; color: #0b0e14; }

/* 响应式 */
@media (max-width: 768px) {
    .museum-sub-nav { right: 0.5rem; padding: 0.5rem 0.4rem; border-radius: 30px; }
    .sub-nav-link { font-size: 0.7rem; padding: 0.4rem 0.6rem; }
    .museum-main { padding: 0 1rem 2rem 1rem; }
    .museum-section { scroll-margin-top: 70px; }
    .hero-card h1 { font-size: 2rem; }
    .card-gallery { gap: 1rem; }
    .station-card { width: 160px; }
    .station-card img { height: 100px; }
}
@media (max-width: 480px) {
    .station-card { width: 100%; max-width: 300px; }
}