body { 
    margin: 0; 
    overflow: hidden; 
    font-family: 'Arial', sans-serif;
}

#canvas-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* 雨点效果 */
.raindrop {
    position: absolute;
    width: 1px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.8));
    animation: fall linear infinite;
    z-index: 1;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

#loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(211, 231, 235, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 100;
    transition: opacity 0.5s;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    margin-top: 20px;
    overflow: hidden;
}

#progress-bar-fill {
    height: 100%;
    width: 0%;
    background:  #adcdff;
    transition: width 0.3s;
}

#control-panel {
    position: absolute;
    top: 20px;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    max-width: 300px;
    max-height: 80vh; /* 限制最大高度 */
    overflow-y: auto; /* 添加垂直滚动 */
    z-index: 10;
    transition: transform 0.3s ease;
    transform: translateX(calc(100% - 30px));
}

#control-panel::-webkit-scrollbar {
    width: 6px;
}

#control-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

#control-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

#control-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

#control-panel.expanded {
    transform: translateX(0);
}

#toggle-panel {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    z-index: 11;
}

.panel-content {
    padding: 15px;
    padding-left: 30px;
}

.panel-section {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.panel-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #adcdff;
}

.control-group {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.control-group label {
    flex: 1;
    margin-right: 10px;
}

.control-group input[type="range"] {
    flex: 2;
}

.control-group input[type="color"] {
    width: 50px;
    height: 30px;
    padding: 0;
    border: none;
}

.control-group button, #reset-camera, #reset-bg {
    padding: 5px 10px;
    background: #adcdff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 5px;
    width: 100%;
}

#model-info {
    margin-top: 15px;
    font-size: 12px;
    line-height: 1.5;
}