/* __KIKI_PAGE_LOADER__ 全站首屏加载层 */
#kiki-page-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 42%, rgba(71, 191, 255, 0.08), transparent 58%),
    #070b14;
  color: #e8eef6;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  letter-spacing: 0.08em;
}

#kiki-page-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 45%, #000 18%, transparent 72%);
  pointer-events: none;
}

.kiki-pl__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-width: 196px;
}

.kiki-pl__mark {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(71, 191, 255, 0.45);
  background: #0c1422;
  box-shadow: 0 0 0 8px rgba(7, 11, 20, 0.65), 0 0 32px rgba(126, 20, 255, 0.18);
  overflow: hidden;
}

.kiki-pl__mark svg {
  width: 38px;
  height: 36px;
  display: block;
}

.kiki-pl__mark::after {
  content: "";
  position: absolute;
  left: -20%;
  top: 0;
  width: 36%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232, 238, 246, 0.22), transparent);
  animation: kiki-pl-scan 1.6s ease-in-out infinite;
}

.kiki-pl__name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #f4f7fb;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
}

.kiki-pl__rail {
  width: 168px;
  height: 2px;
  background: rgba(232, 238, 246, 0.12);
  overflow: hidden;
}

.kiki-pl__bar {
  display: block;
  width: 18%;
  height: 100%;
  background: linear-gradient(90deg, #47bfff, #863bff);
  transform-origin: left center;
  animation: kiki-pl-bar 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.kiki-pl__hint {
  margin: 0;
  font-size: 11px;
  color: rgba(232, 238, 246, 0.55);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
}

html.kiki-page-ready #kiki-page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.38s ease, visibility 0.38s;
}

@media (prefers-reduced-motion: reduce) {
  .kiki-pl__mark::after,
  .kiki-pl__bar {
    animation: none;
  }
  .kiki-pl__bar {
    width: 70%;
  }
}

@keyframes kiki-pl-scan {
  0% { transform: translateX(-40%); }
  100% { transform: translateX(360%); }
}

@keyframes kiki-pl-bar {
  0% { width: 8%; }
  45% { width: 68%; }
  100% { width: 92%; }
}
