/*!  build: Vue Shop Vite
     copyright: https://vuejs-core.cn/shop-vite
 */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #f7f9fc;
}

#app {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.loader {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 180px;
  height: 180px;
  pointer-events: none;
}

.core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  background: linear-gradient(135deg, #2f63d7 0%, #1a3a6a 100%);
  clip-path: polygon(50% 0%, 97.55% 34.55%, 79.39% 90.45%, 20.61% 90.45%, 2.45% 34.55%);
  box-shadow: 0 0 20px rgba(47, 99, 215, 0.28), 0 0 40px rgba(47, 99, 215, 0.12);
  animation: coreSpinBreath 1.8s linear infinite;
  opacity: 0.68;
}

.shape {
  position: absolute;
  top: 50%;
  left: 50%;
  will-change: transform, opacity;
  filter: drop-shadow(0 4px 8px rgba(11, 31, 58, 0.1));
}

.shape--diamond {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  clip-path: polygon(50% 0%, 100% 55%, 50% 100%, 0% 55%);
}

.shape--diamond-1 {
  background: linear-gradient(160deg, #2f63d7 0%, #5a85e0 100%);
  animation: orbitA 2.8s cubic-bezier(0.42, 0, 0.25, 1) infinite;
}

.shape--diamond-2 {
  background: linear-gradient(135deg, #0b1f3a 0%, #1a3a6a 100%);
  animation: orbitB 3.2s cubic-bezier(0.55, 0.05, 0.4, 0.95) infinite;
}

.shape--diamond-3 {
  background: linear-gradient(135deg, #5a85e0 0%, #2f63d7 100%);
  animation: orbitC 2.5s cubic-bezier(0.35, 0.1, 0.25, 1) infinite;
}

.shape--diamond-4 {
  background: linear-gradient(145deg, #00b578 0%, #00886a 100%);
  animation: orbitD 3.6s cubic-bezier(0.5, 0.02, 0.3, 1) infinite;
}

.shape--diamond-5 {
  background: linear-gradient(135deg, #1a3a6a 0%, #0b1f3a 100%);
  animation: orbitE 3.0s cubic-bezier(0.48, 0.04, 0.32, 1) infinite;
}

@keyframes coreSpinBreath {
  0% {
    transform: rotate(0deg) scale(0.82);
  }
  12.5% {
    transform: rotate(180deg) scale(0.9);
  }
  25% {
    transform: rotate(360deg) scale(1);
  }
  37.5% {
    transform: rotate(540deg) scale(1.12);
  }
  50% {
    transform: rotate(720deg) scale(1.18);
  }
  62.5% {
    transform: rotate(900deg) scale(1.12);
  }
  75% {
    transform: rotate(1080deg) scale(1);
  }
  87.5% {
    transform: rotate(1260deg) scale(0.9);
  }
  100% {
    transform: rotate(1440deg) scale(0.82);
  }
}

@keyframes orbitA {
  0% {
    transform: rotate(0deg) translateX(68px) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  15% {
    opacity: 0.58;
  }
  50% {
    transform: rotate(180deg) translateX(52px) rotate(-180deg) scale(1.1);
    opacity: 0.62;
  }
  85% {
    opacity: 0.58;
  }
  100% {
    transform: rotate(360deg) translateX(68px) rotate(-360deg) scale(0.8);
    opacity: 0;
  }
}

@keyframes orbitB {
  0% {
    transform: rotate(72deg) translateX(62px) rotate(-72deg) scale(0.75);
    opacity: 0;
  }
  15% {
    opacity: 0.55;
  }
  50% {
    transform: rotate(252deg) translateX(48px) rotate(-252deg) scale(1.15);
    opacity: 0.6;
  }
  85% {
    opacity: 0.55;
  }
  100% {
    transform: rotate(432deg) translateX(62px) rotate(-432deg) scale(0.75);
    opacity: 0;
  }
}

@keyframes orbitC {
  0% {
    transform: rotate(144deg) translateX(72px) rotate(-144deg) scale(0.85);
    opacity: 0;
  }
  12% {
    opacity: 0.56;
  }
  50% {
    transform: rotate(324deg) translateX(56px) rotate(-324deg) scale(1.05);
    opacity: 0.64;
  }
  88% {
    opacity: 0.56;
  }
  100% {
    transform: rotate(504deg) translateX(72px) rotate(-504deg) scale(0.85);
    opacity: 0;
  }
}

@keyframes orbitD {
  0% {
    transform: rotate(216deg) translateX(58px) rotate(-216deg) scale(0.78);
    opacity: 0;
  }
  18% {
    opacity: 0.52;
  }
  50% {
    transform: rotate(396deg) translateX(74px) rotate(-396deg) scale(1.12);
    opacity: 0.58;
  }
  82% {
    opacity: 0.52;
  }
  100% {
    transform: rotate(576deg) translateX(58px) rotate(-576deg) scale(0.78);
    opacity: 0;
  }
}

@keyframes orbitE {
  0% {
    transform: rotate(288deg) translateX(66px) rotate(-288deg) scale(0.82);
    opacity: 0;
  }
  14% {
    opacity: 0.54;
  }
  50% {
    transform: rotate(468deg) translateX(50px) rotate(-468deg) scale(1.08);
    opacity: 0.6;
  }
  86% {
    opacity: 0.54;
  }
  100% {
    transform: rotate(648deg) translateX(66px) rotate(-648deg) scale(0.82);
    opacity: 0;
  }
}
