﻿﻿/* 清除默认样式 */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: #000; /* 防止白闪 */
}

/* 自定义全屏背景图 */
#custom-loading-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('bg.png') no-repeat;
    background-size: 100% 100%;
}

#bg-text {
    position: absolute;
    top:4%;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 12%;
    background: url('bg1.png') no-repeat center/contain;
}

/* 底部进度条 */
#custom-progress-container {
    position: fixed;
    bottom: 30px;
    left: 10%;
    width: 80%;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    z-index: 10000;
}

#custom-progress-bar {
    height: 100%;
    width: 0%;
    background: white;
    border-radius: 6px;
    transition: width 0.2s ease;
}

/* Unity 容器：强制铺满 */
#unity-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10001;
}

#unity-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}
