#pwa-loading {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  overflow: hidden;
  pointer-events: none;
}

#pwa-loading-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

#pwa-loading-bg img {
  width: 100%;
  height: 100%;
  display: block;
}

#pwa-loading-root {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 750px;
  height: 1624px;
  transform-origin: center center;

  /* 调试用
  background: rgba(255, 0, 0, 0.25);
  border: 2px solid #00ff00;
  box-sizing: border-box; */
}

#pwa-loading-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: 626px;
  height: auto;

  object-fit: contain;

  /* 调试 */
  /* background: rgba(0, 0, 255, 0.3);
  border: 2px solid yellow; */
}
#pwa-loading-website {
  position: absolute;
  left: 50px;
  top: 60px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

#pwa-loading-web-logo {
  display: block;
  width: auto;
  height: auto;
}

#pwa-loading-website-text {
  color: #FFFFFFBE;
  font-size: 26px;
  line-height: 1;
  white-space: nowrap;
}

#pwa-loading-nego {
  position: absolute;
  left: 50%;
  bottom: 80px;
  width: 660px;
  height: 100px;
  transform: translateX(-50%);

  opacity: 0;
  transition: opacity 1s linear;
}

#pwa-loading-small-img {
  position: absolute;
  left: 18px; /* -312 + 660 / 2 */
  top: 10px;  /* 50 - 40 */
  transform: translate(-50%, -50%);
  display: block;
}

#pwa-loading-text-loading {
  position: absolute;
  left: 45px; /* -285 + 660 / 2 */
  top: 12px;  /* 50 - 38 */
  transform: translateY(-50%);
  color: #FFFFFF80;
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
}

#pwa-loading-text-hot {
  position: absolute;
  left: 656px; /* 326 + 660 / 2 */
  top: 87px;   /* 50 - (-37) */
  transform: translate(-100%, -50%);
  color: #52DBB3;
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
}

#pwa-loading-progress {
  position: absolute;
  left: 330px;
  top: 53px;
  transform: translate(-50%, -50%);

  width: 650px;   
  height: 14px;   

  background-image: url("../res/Login_Progress_Shade.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  overflow: hidden;
}

#pwa-loading-progress-fill {
  width: 0%;
  height: 100%;
  overflow: hidden;
}

#pwa-loading-progress-fill img {
  display: block;
  width: 650px;   
  height: 14px;  
  max-width: none;
}

#pwa-loading-timeout {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 524px;
  height: 449px;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: auto;
  overflow: hidden;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 22px;
  background: #171717;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.65);
}

#pwa-loading-timeout-panel {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

#pwa-loading-timeout-message {
  position: absolute;
  left: 52px;
  right: 52px;
  top: 150px;
  color: #fff;
  font-size: 28px;
  line-height: 1.4;
  text-align: center;
}

#pwa-loading-timeout-retry {
  position: absolute;
  left: 50%;
  bottom: 58px;
  width: 210px;
  height: 76px;
  padding: 0;
  border: 0;
  outline: 0;
  overflow: hidden;
  border-radius: 38px;
  background: linear-gradient(180deg, #f8d77d 0%, #dca62f 100%);
  transform: translateX(-50%);
  cursor: pointer;
  color: #fff;
  font: inherit;
}

#pwa-loading-timeout-retry img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

#pwa-loading-timeout-retry span {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
