html, body {
    padding: 0;
    margin: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#unity-container {
    position: fixed;
    left: 0; top: 0;
    width: 100vw;
    height: 100vh;
    background: #231F20;
}

#unity-canvas {
    width: 100vw !important;
    height: 100vh !important;
    display: block;
    object-fit: contain;
    background: #231F20;
}

#unity-container.unity-desktop {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#unity-container.unity-mobile {
    position: fixed;
    left: 0; top: 0;
    width: 100vw;
    height: 100vh;
}
.unity-mobile #unity-canvas {
    width: 100vw !important;
    height: 100vh !important;
}

#unity-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto 48px auto; /* logo下方间距大一些 */
    background: none;
}
#unity-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* #unity-progress-bar-empty {
    width: 240px;
    height: 18px;
    margin-top: 10px;
    background: url('progress-bar-empty-dark.png') no-repeat center;
    background-color: #333;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}
#unity-progress-bar-full {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: url('progress-bar-full-dark.png') no-repeat center;
    background-color: #0078d4;
    border-radius: 8px;
    transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
    box-sizing: border-box;
} */

#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }

/* 父容器，作为背景和“轨道” */
#unity-progress-bar-empty {
    width: 241px;
    height: 18px;
    margin-top: 10px;
    
    /* 关键点 1: 只在父容器上设置圆角和背景 */
    background-color: #333; /* 轨道的背景色 */
    border-radius: 8px;   /* 设置圆角 */
    
    /* 关键点 2: 隐藏超出部分的子元素，形成圆角裁剪效果 */
    overflow: hidden;
    
    position: relative; /* 为子元素的绝对定位提供基准 */
    box-sizing: border-box;
  }
  
  /* 填充条，只负责颜色和宽度动画 */
  #unity-progress-bar-full {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    
    /* 只保留纯色填充 */
    background-color: #0078d4;
  
    /* 初始宽度为0，由脚本动态修改 */
    width: 0%;
    
    /* 保留平滑的宽度变化动画 */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
  }




#unity-footer { position: relative }
.unity-mobile #unity-footer { display: none }
#unity-webgl-logo { float:left; width: 204px; height: 38px; background: url('TuoTuo_Alpha.png') no-repeat center }
#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 }
