﻿html, body {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden
}

#unity-container {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0
}

    #unity-container.unity-desktop {
        width: 100vw;
        height: 100vh
    }

    #unity-container.unity-mobile {
        position: fixed;
        width: 100%;
        height: 100%
    }

#unity-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('background.png') no-repeat center center fixed;
    background-size: cover;
    /* 禁用触摸手势和文本选择，确保游戏输入正常 */
    touch-action: none;
    -ms-touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.unity-mobile #unity-canvas {
    width: 100%;
    height: 100%
}

#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex; /* 使用flex布局 */
    flex-direction: column;
    align-items: center;
    width: 100%; /* 确保宽度足够 */
    max-width: 600px; /* 与logo最大宽度一致 */
}

#unity-logo {
    width: 100%; /* 宽度占满容器 */
    max-width: 600px; /* 限制最大宽度 */
    height: 60px;
    background: url('unity-logo-dark.png') no-repeat center;
    background-size: contain; /* 确保图片适应容器 */
    margin-bottom: 15px; /* 与进度条保持间距 */
}

#unity-progress-bar-empty {
    width: 100%; /* 宽度与logo一致 */
    height: 20px;
    background: url('progress-bar-empty-dark.png') no-repeat center;
    background-size: 100% 100%; /* 确保背景图片填充容器 */
    margin: 0; /* 移除不必要的边距 */
    border-radius: 10px; /* 可选：添加圆角 */
    overflow: hidden; /* 确保内部进度条不溢出 */
}

#unity-progress-bar-full {
    width: 0%; /* 初始宽度为0% */
    height: 100%; /* 高度占满容器 */
    background: url('progress-bar-full-dark.png') no-repeat left center;
    background-size: auto 100%; /* 保持高度，宽度自适应 */
    transition: width 0.3s ease; /* 添加平滑过渡动画 */
}

#unity-footer {
    position: relative
}

.unity-mobile #unity-footer {
    display: none
}

#unity-build-title {
    float: right;
    margin-right: 10px;
    line-height: 38px;
    font-family: arial;
    font-size: 18px
}

#unity-fullscreen-button {
    cursor: pointer;
    float: right;
    width: 38px;
    height: 38px;
    background: url('fullscreen-button.png') no-repeat center
}

#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 10px;
    display: none
}
