* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
[v-cloak]{
  display: none;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  overflow: hidden;
}
#app{
  width: 100%;
}
.start-page {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* 静态背景图 */
.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}

.background-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* GIF动画背景 */
.gif-background {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  overflow: hidden;
}

.gif-background.visible {
  opacity: 1;
  pointer-events: auto;
}

.background-video img,
.gif-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* object-position: bottom; */
  pointer-events: none;
}

.bg-gif-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gif-background video {
  display: block;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* 周期关卡气泡外层容器 */
.level-wrapper {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  animation: bubbleFloat 3.2s ease-in-out infinite;
}

/* 周期关卡气泡（肥皂泡效果） */
.level-bubble {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.96) 0 7%, rgba(255, 255, 255, 0.34) 13%, rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 66% 72%, rgba(255, 255, 255, 0.5) 0 4%, rgba(255, 255, 255, 0) 17%),
    conic-gradient(from 28deg at 52% 48%,
      rgba(255, 119, 202, 0.34),
      rgba(120, 225, 255, 0.32),
      rgba(154, 255, 156, 0.24),
      rgba(255, 236, 132, 0.28),
      rgba(177, 136, 255, 0.32),
      rgba(255, 119, 202, 0.34)
    ),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0 42%, rgba(255, 255, 255, 0.2) 65%, rgba(255, 255, 255, 0.48) 100%);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 0 3px rgba(255, 255, 255, 0.82),
    inset 8px 9px 18px rgba(255, 255, 255, 0.3),
    inset -10px -12px 18px rgba(80, 190, 255, 0.16),
    inset 12px -10px 22px rgba(255, 104, 210, 0.13),
    0 7px 18px rgba(0, 0, 0, 0.18),
    0 0 12px rgba(172, 238, 255, 0.2);
  backdrop-filter: saturate(1.65) contrast(1.08) blur(0.8px);
  -webkit-backdrop-filter: saturate(1.65) contrast(1.08) blur(0.8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  overflow: hidden;
}

.level-bubble::before {
  content: '';
  position: absolute;
  top: 9%;
  left: 15%;
  width: 35%;
  height: 24%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 34%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.5) 34%, rgba(255, 255, 255, 0) 68%);
  transform: rotate(-25deg);
  filter: blur(0.2px);
  opacity: 0.9;
}

.level-bubble::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background:
    linear-gradient(132deg, rgba(255, 255, 255, 0.7) 0 7%, rgba(255, 255, 255, 0) 24%),
    linear-gradient(315deg, rgba(122, 244, 255, 0.35), rgba(255, 119, 202, 0.24) 40%, rgba(255, 255, 255, 0) 72%);
  box-shadow:
    inset 0 0 12px rgba(255, 255, 255, 0.3),
    inset 0 0 18px rgba(108, 232, 255, 0.18);
  opacity: 0.82;
  mix-blend-mode: screen;
}

.level-bubble .icon-img {
  position: relative;
  z-index: 2;
  width: 75%;
  height: 75%;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}

img.title-img {
  width: auto;
  height: 40px;
  margin-bottom: 8px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
}

.icon-img {
  width: 75%;
  height: 75%;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}

.level-bubble .state-icon {
  position: absolute;
  left: 50%;
  right: auto;
  z-index: 4;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.level-bubble .lock-icon,
.level-bubble .check-icon {
  bottom: 6px;
  width: 24px;
  height: 24px;
  transform: translateX(-50%);
}

.level-bubble .play-icon {
  top: 50%;
  width: 35px;
  height: 35px;
  transform: translate(-50%, -50%);
}

.level-bubble:hover {
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 1) 0 8%, rgba(255, 255, 255, 0.42) 14%, rgba(255, 255, 255, 0) 25%),
    radial-gradient(circle at 66% 72%, rgba(255, 255, 255, 0.58) 0 5%, rgba(255, 255, 255, 0) 18%),
    conic-gradient(from 40deg at 52% 48%,
      rgba(255, 119, 202, 0.44),
      rgba(120, 225, 255, 0.42),
      rgba(154, 255, 156, 0.32),
      rgba(255, 236, 132, 0.36),
      rgba(177, 136, 255, 0.42),
      rgba(255, 119, 202, 0.44)
    ),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04) 0 42%, rgba(255, 255, 255, 0.25) 65%, rgba(255, 255, 255, 0.56) 100%);
  border-color: rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 0 4px rgba(255, 255, 255, 0.92),
    inset 9px 10px 20px rgba(255, 255, 255, 0.36),
    inset -11px -13px 20px rgba(80, 190, 255, 0.2),
    inset 13px -11px 24px rgba(255, 104, 210, 0.18),
    0 9px 22px rgba(0, 0, 0, 0.22),
    0 0 16px rgba(172, 238, 255, 0.28);
}

@keyframes bubbleFloat {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-8px);
  }
}

/* 遮罩层 */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.overlay.hidden {
  opacity: 0;
  pointer-events: none;
}


/* 加载内容 */
.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* 3D立体进度条 */
.loading-bar-3d {
  width: 320px;
  height: 14px;
  background: linear-gradient(180deg, #2a2a3a 0%, #1a1a2a 100%);
  border-radius: 7px;
  padding: 3px;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.3);
}

.loading-bar-track {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #3a3a4a 0%, #2a2a3a 50%, #1a1a2a 100%);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.loading-bar-fill {
  position: relative;
  height: 100%;
  width: 0%;
  background: linear-gradient(180deg, 
    #ff69b4 0%, 
    #ff1493 30%, 
    #ff69b4 70%, 
    #ff85c0 100%
  );
  border-radius: 4px;
  box-shadow: 
    0 0 10px rgba(255, 105, 180, 0.8),
    0 0 20px rgba(255, 20, 147, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.loading-bar-fill.animate {
  animation: loadingProgress 1.5s ease-in-out forwards;
}

/* 高光效果 */
.loading-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
  border-radius: 4px 4px 0 0;
}

.loading-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.clear-icon,.certificate-download-icon{
  position:fixed;
  top: 40px;
  right: 10px;
  width: 40px;
  height: 40px;
  z-index: 99;
}
.certificate-download-icon{
  top: 120px;
  width: 50px;
  height: 50px;
}

/* Animations */
@keyframes loadingProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Responsive */
@media (max-width: 480px) {
  .loading-bar-3d {
    width: 260px;
    height: 12px;
  }

  .home-modal {
    width: min(100%, 300px);
    padding: 24px 20px 20px;
  }

  .home-modal h2 {
    font-size: 20px;
  }
}
