.index-html-loader {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    #4fc3f7 0%,
    #81d4fa 35%,
    #b3e5fc 65%,
    #e1f5fe 75%
  );
}

/* 白云 SVG 背景 */
.clouds-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1600px;
  min-width: 1600px;
  height: 320px;
  animation: clouds-drift 11.5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes clouds-drift {
  from { transform: translateX(calc(-50% - 30px)); }
  to   { transform: translateX(calc(-50% + 30px)); }
}

/* 曲线土地 SVG */
.ground-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  pointer-events: none;
}

.index-html-loader .text {
  font-family: -apple-system, 'SF Pro Rounded', 'Helvetica Rounded', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
}

/* ── icon animation (保持原来的动画逻辑) ── */
.loading__content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 8em;
  height: 1em;
  font-size: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon-leader {
  width: 1em;
  height: 1em;
  --duration: 1.5s;
  position: relative;
  will-change: transform;
  animation: slide var(--duration) ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(8em - (1em * 1.25)));
  }
}

.icon-group {
  width: 6em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon {
  width: 1em;
  height: 1em;
  --duration: 1.5s;
  position: relative;
  will-change: transform;
  animation: var(--duration) ease-in-out infinite alternate;
  transform-origin: -50% center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.icon:nth-child(1) {
  animation-name: jump-off-1;
}
.icon:nth-child(2) {
  animation-name: jump-off-2;
}
.icon:nth-child(3) {
  animation-name: jump-off-3;
}
.icon:nth-child(4) {
  animation-name: jump-off-4;
}

@keyframes jump-off-1 {
  0%, 15% { transform: rotate(0deg); }
  35%, 100% { transform: rotate(-180deg); }
}
@keyframes jump-off-2 {
  0%, 30% { transform: rotate(0deg); }
  50%, 100% { transform: rotate(-180deg); }
}
@keyframes jump-off-3 {
  0%, 45% { transform: rotate(0deg); }
  65%, 100% { transform: rotate(-180deg); }
}
@keyframes jump-off-4 {
  0%, 60% { transform: rotate(0deg); }
  80%, 100% { transform: rotate(-180deg); }
}

@media (max-width: 768px) {
  .index-html-loader .text {
    font-size: 22px;
  }
  .container {
    font-size: 38px;
  }
}
