* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    font-family: "Microsoft YaHei", sans-serif;
}

#container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#scene-thumbnails {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    z-index: 100;
}

.thumbnail {
    width: 80px;
    height: 45px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: #3498db;
}

.thumbnail.active {
    border-color: #2ecc71;
}

#info-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    z-index: 100;
}

#info-panel.hidden {
    display: none;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.hotspot {
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.hotspot:hover {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.2);
}

#controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.control-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

#keyboard-help {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    z-index: 100;
}

#keyboard-help.hidden {
    display: none;
}

#keyboard-help h3 {
    margin-bottom: 10px;
    color: #333;
}

#keyboard-help p {
    margin: 5px 0;
    color: #666;
}

@media (max-width: 768px) {
    .thumbnail {
        width: 60px;
        height: 34px;
    }
    
    #info-panel {
        width: 90%;
        max-width: none;
    }

    .control-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

/* 微信浏览器适配 */
@media screen and (max-width: 768px) {
    #controls {
        top: auto;
        bottom: 80px;
        right: 20px;
    }
} 