html, body, app-root {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.load {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  background: linear-gradient(135deg, #a3afeb 0%, #3768b1 100% 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  overflow: hidden;
}

/* 气泡动画 */
.loadbubbles {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  top: 0;
  left: 0;
}

.loadbubble {
  position: absolute;
  bottom: -100px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: loadbubble 10s infinite ease-in;
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.3);
  filter: blur(1px);
}

  .loadbubble.light:before {
    content: '';
    position: absolute;
    width: 20%;
    height: 20%;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    top: 20%;
    left: 20%;
    transform: rotate(45deg);
    filter: blur(1px);
  }

  .loadbubble.high:after {
    content: '';
    position: absolute;
    width: 15%;
    height: 15%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    top: 30%;
    left: 50%;
    filter: blur(0.5px);
  }

  .loadbubble:nth-child(1) {
    width: 40px;
    height: 40px;
    left: 10%;
    animation-duration: 8s;
  }

  .loadbubble:nth-child(2) {
    width: 20px;
    height: 20px;
    left: 20%;
    animation-duration: 5s;
    animation-delay: 1s;
  }

  .loadbubble:nth-child(3) {
    width: 50px;
    height: 50px;
    left: 35%;
    animation-duration: 7s;
    animation-delay: 2s;
  }

  .loadbubble:nth-child(4) {
    width: 80px;
    height: 80px;
    left: 50%;
    animation-duration: 11s;
    animation-delay: 0s;
  }

  .loadbubble:nth-child(5) {
    width: 35px;
    height: 35px;
    left: 55%;
    animation-duration: 6s;
    animation-delay: 1s;
  }

  .loadbubble:nth-child(6) {
    width: 45px;
    height: 45px;
    left: 65%;
    animation-duration: 8s;
    animation-delay: 3s;
  }

  .loadbubble:nth-child(7) {
    width: 25px;
    height: 25px;
    left: 75%;
    animation-duration: 7s;
    animation-delay: 2s;
  }

  .loadbubble:nth-child(8) {
    width: 80px;
    height: 80px;
    left: 80%;
    animation-duration: 6s;
    animation-delay: 1s;
  }

  .loadbubble:nth-child(9) {
    width: 15px;
    height: 15px;
    left: 70%;
    animation-duration: 9s;
    animation-delay: 0s;
  }

  .loadbubble:nth-child(10) {
    width: 50px;
    height: 50px;
    left: 85%;
    animation-duration: 5s;
    animation-delay: 3s;
  }

@keyframes loadbubble {
  0% {
    bottom: -80px;
    transform: translateX(0);
  }

  50% {
    transform: translateX(100px);
  }

  100% {
    bottom: 1080px;
    transform: translateX(-200px);
  }
}

.load .content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.fading-load, .fading-fail {
  display: none;
  text-align: center;
  animation: indexfadeIn 0.5s ease-out;
}

.hide-load {
  animation: hide 1s ease-out forwards;
}

.hide-loadbubbles {
  animation: hide 3s ease-out forwards;
}

.load .logo {
  width: 80px;
  height: 80px;
  aspect-ratio: 1;
  border-radius: 15px;
  background-size: cover;
  margin: 0 auto;
  margin-bottom: 20px;
}

.fading-load .logo {
  border-radius: 50%;
  clip-path: polygon(0 0,100% 0,100% 100%,0 100%);
  animation: logo 3s infinite cubic-bezier(0.35,1,0,1);
}

.load .txt {
  width: fit-content;
  font-weight: bold;
  font-family: 'Arial', sans-serif;
  font-size: 22px;
  padding: 0 5px 8px 0;
  background: repeating-linear-gradient(90deg,currentColor 0 8%,#0000 0 10%) 200% 100%/200% 3px no-repeat;
  animation: txt 2s steps(6) infinite;
  margin: 0 auto;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fading-load .txt:before {
  content: "Loading";
}

/* 失败提示样式 */
.fading-fail {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  max-width: 80%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

  .fading-fail .fail-txt:before {
    content: "Failure";
    display: block;
    margin-bottom: 15px;
    font-size: 22px;
  }

  .fading-fail .fail-txt {
    display: block;
    font-size: 14px;
    opacity: 0.8;
    margin-top: 5px;
  }

/* 重试链接样式 */
.retry-link {
  margin-top: 20px;
  padding: 12px 30px;
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

  .retry-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }

  .retry-link:active {
    transform: translateY(0);
  }

  .retry-link:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
  }

  .retry-link:hover:before {
    left: 100%;
  }

.fading-circle {
  width: 60px;
  height: 60px;
  position: relative;
}

  .fading-circle .sk-circle {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
  }

    .fading-circle .sk-circle:before {
      content: '';
      display: block;
      margin: 0 auto;
      width: 15%;
      height: 15%;
      background-color: white;
      border-radius: 100%;
      animation: sk-circleFadeDelay 1.2s infinite ease-in-out both;
    }

  .fading-circle .sk-circle2 {
    transform: rotate(30deg);
  }

  .fading-circle .sk-circle3 {
    transform: rotate(60deg);
  }

  .fading-circle .sk-circle4 {
    transform: rotate(90deg);
  }

  .fading-circle .sk-circle5 {
    transform: rotate(120deg);
  }

  .fading-circle .sk-circle6 {
    transform: rotate(150deg);
  }

  .fading-circle .sk-circle7 {
    transform: rotate(180deg);
  }

  .fading-circle .sk-circle8 {
    transform: rotate(210deg);
  }

  .fading-circle .sk-circle9 {
    transform: rotate(240deg);
  }

  .fading-circle .sk-circle10 {
    transform: rotate(270deg);
  }

  .fading-circle .sk-circle11 {
    transform: rotate(300deg);
  }

  .fading-circle .sk-circle12 {
    transform: rotate(330deg);
  }

  .fading-circle .sk-circle2:before {
    animation-delay: -1.1s;
  }

  .fading-circle .sk-circle3:before {
    animation-delay: -1s;
  }

  .fading-circle .sk-circle4:before {
    animation-delay: -0.9s;
  }

  .fading-circle .sk-circle5:before {
    animation-delay: -0.8s;
  }

  .fading-circle .sk-circle6:before {
    animation-delay: -0.7s;
  }

  .fading-circle .sk-circle7:before {
    animation-delay: -0.6s;
  }

  .fading-circle .sk-circle8:before {
    animation-delay: -0.5s;
  }

  .fading-circle .sk-circle9:before {
    animation-delay: -0.4s;
  }

  .fading-circle .sk-circle10:before {
    animation-delay: -0.3s;
  }

  .fading-circle .sk-circle11:before {
    animation-delay: -0.2s;
  }

  .fading-circle .sk-circle12:before {
    animation-delay: -0.1s;
  }

@keyframes logo {
  50% {
    border-radius: 0;
  }
}

@keyframes txt {
  to {
    background-position: 80% 100%
  }
}

@keyframes hide {
  0% {
    opacity: 0.9;
  }

  90% {
    opacity: 0;
  }

  100% {
    opacity: 0;
    pointer-events: none;
    display: none;
  }
}

@keyframes indexfadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sk-circleFadeDelay {
  0%, 39%, 100% {
    opacity: 0;
  }

  40% {
    opacity: 1;
  }
}
