/* 全屏加载容器 */
#__loading_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100svh;
  height: 100dvh;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
  transition: opacity 1s ease, visibility 1s;
}

#__loading_overlay.fade_out {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ========== Logo容器 ========== */
#__loading_logo_container {
  position: relative;
  width: 420px;
  max-width: 85vw;
  height: 140px;
  margin-bottom: 30px;
  animation: __logo_float 3s ease-in-out infinite;
}

@keyframes __logo_float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ========== 主标题文字 "黛棠OI" ========== */
#__loading_title {
  position: relative;
  font-size: 72px;
  font-weight: 900;
  letter-spacing: 8px;
  text-align: center;
  background: linear-gradient(135deg, #a8d8ea 0%, #b8e4f0 25%, #f8b4d9 50%, #f2a6c9 75%, #a8d8ea 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(2px 3px 0 rgba(168, 216, 234, 0.5)) 
          drop-shadow(-1px -1px 0 rgba(248, 180, 217, 0.4));
  animation: __title_shimmer 4s ease-in-out infinite, __title_in 1.2s ease forwards;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  padding: 20px 30px;
  opacity: 0;
  transform: scale(0.85);
}

@keyframes __title_in {
  to { opacity: 1; transform: scale(1); }
}

@keyframes __title_shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ========== 进度条区域 ========== */
#__loading_progress {
  width: 220px;
  max-width: 50vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#__progress_track {
  width: 100%;
  height: 3px;
  background: rgba(168, 216, 234, 0.2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

#__progress_fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #a8d8ea, #f8b4d9, #b8e4f0);
  border-radius: 2px;
  transition: width 0.8s ease;
  box-shadow: 0 0 8px rgba(168, 216, 234, 0.5);
}

#__progress_text {
  font-size: 11px;
  color: #bbb;
  letter-spacing: 3px;
  font-weight: 300;
}

/* 加载提示 */
#__loading_tip {
  margin-top: 30px;
  font-size: 11px;
  color: #ccc;
  letter-spacing: 3px;
  font-weight: 300;
  animation: __tip_blink 3s ease-in-out infinite;
}

@keyframes __tip_blink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

@media (max-width: 479px) {
  #__loading_logo_container {
    width: 100%;
    height: 110px;
    margin-bottom: 20px;
  }

  #__loading_title {
    font-size: 48px;
    letter-spacing: 4px;
    padding: 18px 12px;
  }

  #__loading_progress {
    width: min(220px, 72vw);
    max-width: none;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #__loading_logo_container {
    height: 90px;
    margin-bottom: 8px;
  }

  #__loading_title {
    font-size: 44px;
    padding: 12px;
  }

  #__loading_tip {
    margin-top: 12px;
  }
}
