/* --- 1. 基础重置与暗黑背景 --- */
html, body {
    margin: 0;
    padding: 0;
    background-color: #050505; 
    color: #f5f5f5;
    font-family: 'Manrope', sans-serif;
    /* 彻底锁死垂直方向的系统级滚动，防漏网之鱼 */
    overflow-y: hidden; 
    overflow-x: hidden; 
}

/* --- 2. 悬浮的返回按钮 --- */
.btn-back {
    position: fixed;
    top: 2rem;
    left: 2rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 100;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.btn-back:hover { 
    opacity: 1; 
}

/* --- 3. 核心轨道 --- */
.gallery-track {
    display: flex;
    align-items: center; 
    height: 100vh;
    padding: 0 15vw; 
    gap: 8vw; 
    overflow-x: auto;
    scrollbar-width: none; 
}

.gallery-track::-webkit-scrollbar { 
    display: none; 
}

/* --- 4. 每一张全景图的容器 --- */
.pano-item {
    height: 75vh;
    flex: 0 0 auto; 
    position: relative;
}

.pano-item img {
    height: 100%;
    width: auto; 
    border-radius: 18px; /* 稍微收敛了一点圆角，23px在风光摄影里有点过于圆润了，8px更有画框感 */
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8); 
}

/* --- 5. 照片下方的参数排版 --- */
.pano-caption {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.pano-caption h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pano-caption p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.1em;
}

/* --- 6. 结尾留白卡片 --- */
.end-credits {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px; 
}

.end-credits h2 { 
    font-size: 2rem; 
    opacity: 0.5; 
}

/* --- 电脑端：滚动提示 --- */
body::after {
    content: 'SCROLL TO EXPLORE →';
    position: fixed;
    bottom: 2rem;
    right: 3rem;
    color: rgba(255, 255, 255, 0.4); 
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    font-weight: 600;
    pointer-events: none; 
    animation: pulse 2s infinite ease-in-out;
    z-index: 10;
}

body.lang-zh::after {
    content: '滑动以探索 →';
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@keyframes pulse {
    0% { opacity: 0.2; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(5px); }
    100% { opacity: 0.2; transform: translateX(0); }
}

/* --- 7. 手机端响应式终极适配 --- */
@media (max-width: 768px) {
    
    /* 🎯 绝杀：不管中英文，手机端强制隐藏提示！ */
    body::after {
        display: none !important; 
    }

    .btn-back {
        top: 1.5rem;
        left: 1.5rem;
        font-size: 0.75rem;
        opacity: 0.8; 
    }

    .gallery-track {
        /* 🎯 解决顶部留白太大：取消垂直居中，改为靠上对齐 */
        align-items: flex-start; 
        
        /* 15vh 是顶部距离，你可以改这个数字来微调高低 */
        padding: 15vh 10vw 0 10vw; 
        gap: 5vw; 
    }

    .pano-item {
        /* 🎯 图片高度拉大到 60vh，冲击力更强 */
        height: 63vh; 
    }

    .pano-item img {
        border-radius: 18px; 
    }

    .pano-caption {
        margin-top: 1rem;
        flex-direction: column; 
        align-items: flex-start;
        gap: 0.4rem; 
    }

    .pano-caption h3 {
        font-size: 1.25rem; 
    }

    .pano-caption p {
        font-size: 0.7rem; 
    }

    .end-credits {
        width: 70vw; 
    }

    .end-credits h2 {
        font-size: 1.5rem;
    }
}