/* 原有的样式 */
body {
    margin: 0;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}

#container {
    width: 100vw;
    height: 100vh;
    perspective: 1000px
}

#panorama {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d
}

.controls {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100
}

.scene-nav {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
}

.scene-nav-item {
    cursor: pointer;
    text-align: center;
    padding: 0 10px;
    margin: 0 5px;
    transition: transform .2s ease
}

.scene-nav-item img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    border-radius: 5px
}

.scene-nav-item div {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: white;
    margin-top: 5px
}

.scene-nav-item.active img {
    border: 2px solid #00ff00;
    transform: scale(1.1)
}

.scene-nav-item.active div {
    color: #00ff00
}

.scene-nav-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5)
}

.scene-nav-item:hover div {
    color: #00ff00
}

.designer-info {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    z-index: 100
}

.designer-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    cursor: pointer
}

.designer-info .details {
    text-align: left
}

.qr-code {
    position: absolute;
    top: 80px;
    left: 20px;
    width: 150px;
    height: 150px;
    background-color: white;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 101
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

@media (max-width: 768px) {
    .scene-nav {
        left: 2%;
        right: 2%;
        max-width: 96%;
        justify-content: flex-start
    }

    .scene-nav-item {
        min-width: 80px
    }

    .scene-nav-item img {
        width: 80px;
        height: 60px
    }

    .designer-info {
        top: 10px;
        left: 10px;
        padding: 5px
    }

    .designer-info img {
        width: 40px;
        height: 40px
    }

    .qr-code {
        display: none !important
    }
}

.mobile-access-icon,
.fullscreen-access-icon,
.video-access-icon {
    position: fixed;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: background-color 0.3s ease
}

@media (max-width: 768px) {

    .mobile-access-icon,
    .fullscreen-access-icon,
    .video-access-icon {
        width: 30px;
        height: 30px;
        right: 10px
    }

    .mobile-access-icon img,
    .fullscreen-access-icon img,
    .video-access-icon img {
        width: 18px;
        height: 18px
    }

    .video-popup {
        width: 90%
    }
}

.mobile-access-icon {
    top: 20px;
}

.fullscreen-access-icon {
    top: 90px;
}

.video-access-icon {
    top: 160px;
    display: none;
}

.mobile-access-icon img,
.fullscreen-access-icon img,
.video-access-icon img {
    width: 24px;
    height: 24px;
    filter: invert(1);
    border-radius: 4px
}

.mobile-access-icon:hover,
.fullscreen-access-icon:hover,
.video-access-icon:hover {
    background-color: rgba(255, 255, 255, 0.2)
}

.icon-label {
    position: fixed;
    right: 20px;
    color: white;
    font-size: 10px;
    text-align: center;
    width: 40px;
}

@media (max-width: 768px) {
    .icon-label {
        right: 10px;
        width: 30px;
    }
}

.mobile-access-icon + .icon-label {
    top: 65px;
}

.fullscreen-access-icon + .icon-label {
    top: 135px;
}

.video-access-icon + .icon-label {
    top: 205px;
    display: none;
}

.qr-code-popup {
    position: fixed;
    top: 50px;
    right: 70px;
    background-color: white;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 101
}

.qr-code-popup img {
    width: 150px;
    height: 150px;
    object-fit: cover
}

.video-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 102;
    /* 修改这里，增大宽度和高度 */
    width: 90%; 
    max-width: 1200px; 
    height: auto; 
}

.video-popup-close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 24px;
    cursor: pointer
}

.video-popup video {
    width: 100%;
    height: auto
}

/* 加载中的 GIF 样式 */
#loading-gif img {
    width: 100px;
    height: 100px;
}    