/* 全局样式 */
body { 
    padding: 0; 
    margin: 0; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    overflow: hidden;
}

/* 容器样式 */
#unity-container { 
    position: absolute;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

#unity-container.unity-desktop { 
    /* 位置已在HTML中内联样式中定义 */
}

#unity-container.unity-mobile { 
    position: fixed; 
    width: 100%; 
    height: 100%; 
    border-radius: 0;
}

/* Canvas样式 */
#unity-canvas { 
    background: #231F20;
    border-radius: 12px;
}

.unity-mobile #unity-canvas { 
    width: 100%; 
    height: 100%; 
    border-radius: 0;
}

/* 加载栏样式 */
#unity-loading-bar { 
    position: absolute; 
    left: 50%; 
    top: 50%; 
    transform: translate(-50%, -50%); 
    display: none;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

#unity-logo { 
    width: 154px; 
    height: 130px; 
    background: url('unity-logo-dark.png') no-repeat center;
    margin: 0 auto 20px;
}

#unity-progress-bar-empty { 
    width: 200px;
    height: 8px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

#unity-progress-bar-full { 
    width: 0%; 
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 底部工具栏样式 */
#unity-footer { 
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    backdrop-filter: blur(5px);
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.unity-mobile #unity-footer { 
    display: none;
}

#unity-webgl-logo { 
    width: 204px; 
    height: 38px; 
    background: url('webgl-logo.png') no-repeat center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#unity-webgl-logo:hover {
    opacity: 1;
}

#unity-build-title { 
    margin-right: 10px;
    line-height: 38px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
}

#unity-fullscreen-button { 
    cursor: pointer;
    width: 38px; 
    height: 38px; 
    background: url('fullscreen-button.png') no-repeat center;
    opacity: 0.8;
    transition: all 0.3s ease;
    border-radius: 6px;
}

#unity-fullscreen-button:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

/* 警告消息样式 */
#unity-warning { 
    position: absolute; 
    left: 50%; 
    top: 5%; 
    transform: translate(-50%); 
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none;
    max-width: 80%;
    text-align: center;
    backdrop-filter: blur(5px);
    font-size: 14px;
    z-index: 1000;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #unity-container.unity-desktop {
        width: 95%;
        height: auto;
    }
    
    #unity-canvas {
        width: 100% !important;
        height: auto !important;
    }
    
    #unity-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    #unity-webgl-logo {
        order: 2;
    }
    
    #unity-build-title {
        order: 1;
        margin-right: 0;
    }
    
    #unity-fullscreen-button {
        order: 3;
    }
}