* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, sans-serif;
    overflow: hidden;
    background: #000;
    color: #fff;
}

#container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* 查看器容器 */
#viewer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* 缩略图导航 - 优化版 */
#thumbnailNav {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.thumbnail {
    width: 140px;
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.7;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: #1a1a1a;
}

.thumbnail:hover {
    opacity: 1;
    transform: translateY(-8px) scale(1.05);
    border-color: rgba(33, 150, 243, 0.6);
    box-shadow: 0 12px 24px rgba(33, 150, 243, 0.3);
}

.thumbnail.active {
    border-color: #2196F3;
    opacity: 1;
    box-shadow: 0 0 25px rgba(33, 150, 243, 0.6);
    transform: translateY(-5px);
}

.thumbnail-img {
    width: 100%;
    height: 80px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s;
}

.thumbnail:hover .thumbnail-img {
    transform: scale(1.1);
}

.thumbnail-label {
    padding: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.9));
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.thumbnail.active .thumbnail-label {
    background: linear-gradient(to bottom, rgba(33, 150, 243, 0.8), rgba(21, 101, 192, 0.9));
    font-weight: 600;
}

/* 营销信息区域 */
#marketingInfo {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.95), rgba(21, 101, 192, 0.95));
    padding: 20px 35px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(33, 150, 243, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    max-width: 90%;
}

.marketing-content {
    text-align: center;
}

.marketing-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.marketing-content p {
    font-size: 13px;
    margin-bottom: 12px;
    opacity: 0.95;
}

/* WhatsApp 按钮 */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.whatsapp-btn:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn:active {
    transform: translateY(0);
}

.whatsapp-btn svg {
    width: 24px;
    height: 24px;
}

/* 加载提示 - 简化版 */
#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 200;
}

#loading.hidden {
    display: none;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border: 5px solid rgba(33, 150, 243, 0.2);
    border-top-color: #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    #thumbnailNav {
        bottom: 180px;
        padding: 15px;
        gap: 15px;
    }

    .thumbnail {
        width: 110px;
    }

    .thumbnail-img {
        height: 65px;
    }

    .thumbnail-label {
        font-size: 12px;
        padding: 8px;
    }

    #marketingInfo {
        padding: 18px 30px;
    }

    .marketing-content h3 {
        font-size: 16px;
    }

    .marketing-content p {
        font-size: 12px;
    }

    .whatsapp-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}

@media (max-width: 768px) {
    #thumbnailNav {
        bottom: 200px;
        padding: 12px;
        gap: 10px;
        max-width: 95%;
        overflow-x: auto;
        border-radius: 12px;
    }

    .thumbnail {
        width: 100px;
        flex-shrink: 0;
    }

    .thumbnail-img {
        height: 60px;
    }

    .thumbnail-label {
        font-size: 11px;
        padding: 6px;
    }

    #marketingInfo {
        padding: 15px 20px;
        border-radius: 40px;
    }

    .marketing-content h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .marketing-content p {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .whatsapp-btn {
        font-size: 13px;
        padding: 10px 18px;
        gap: 8px;
    }

    .whatsapp-btn svg {
        width: 20px;
        height: 20px;
    }

    .whatsapp-btn span {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    #thumbnailNav {
        bottom: 220px;
        padding: 10px;
        gap: 8px;
    }

    .thumbnail {
        width: 85px;
    }

    .thumbnail-img {
        height: 50px;
    }

    .thumbnail-label {
        font-size: 10px;
        padding: 5px;
    }

    #marketingInfo {
        padding: 12px 15px;
    }

    .marketing-content h3 {
        font-size: 14px;
    }

    .marketing-content p {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .whatsapp-btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    .whatsapp-btn span {
        display: none;
    }

    .whatsapp-btn::after {
        content: 'WhatsApp';
        font-size: 12px;
    }
}

/* 优化滚动条样式（用于移动端缩略图滚动） */
#thumbnailNav::-webkit-scrollbar {
    height: 6px;
}

#thumbnailNav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

#thumbnailNav::-webkit-scrollbar-thumb {
    background: rgba(33, 150, 243, 0.6);
    border-radius: 3px;
}

#thumbnailNav::-webkit-scrollbar-thumb:hover {
    background: rgba(33, 150, 243, 0.8);
}