body { padding: 0; margin: 0 }
#container { position: absolute;overflow: hidden; }
#container.desktop {  width: 100vw; height: 100vh }
#container.mobile { width: 100vw; height: 100vh }
#canvas { background: #1e1f20 }
.mobile #canvas { width: 100%; height: 100% }

#loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  align-items: center;
  width: 436px; /* 增加固定宽度匹配进度条 */
  gap: 20px; 	/* 控制logo和进度条间距 */
}

#logo {
  width: 254px;
  height: 108px;
  background: url('logo-dark.png') no-repeat center;
  margin: auto;
}

#progress-bar-empty {
  width: 100%; 	/* 新宽度 */
  height: 66px; /* 新高度 */
  background: url('progress-bar-empty-dark.png') no-repeat center/cover;
  position: relative; /* 为进度条满条提供定位基准 */
}

#progress-bar-full {
  position: absolute;
  left: 0;
  top: 0;
  width: 0%; 	/* 改为百分比显示进度 */
  height: 100%;
  background: url('progress-bar-full-dark.png') no-repeat left center/cover;
}

#warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  background: white;
  padding: 10px;
  display: none
}

#loading-text {
  color: #ffffff; /* 白色文字 */
  font-family: Arial, sans-serif; /* 使用系统默认字体 */
  font-size: 24px;
  text-align: center;
  margin-top: 10px; /* 与进度条的间距 */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* 添加文字阴影提升可读性 */
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  #loading-text {
    font-size: 18px; /* 移动端缩小字号 */
    margin-top: 5px;
  }
}
