/* ---- Cubes 组件样式（移植自 React Bits） ---- */
/* 3D 透视立方体网格，支持鼠标悬停倾斜 + 点击波纹效果 */

.cubes-wrapper {
  position: relative;
  width: 60%;
  aspect-ratio: 1 / 1;
  height: auto;
  --cube-face-border: 2px dashed #5227FF;
  --cube-face-bg: #1a1a2e;
  --cube-face-shadow: none;
}

.cubes-scene {
  display: grid;
  width: 100%;
  height: 100%;
  column-gap: 5%;
  row-gap: 5%;
  perspective: 99999999px;
  grid-auto-rows: 1fr;
}

.cube {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
}

.cube::before {
  content: '';
  position: absolute;
  top: -36px;
  right: -36px;
  bottom: -36px;
  left: -36px;
}

.cube-face {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cube-face-bg);
  border: var(--cube-face-border);
  opacity: 1;
}

.cube-face--top {
  transform: translateY(-50%) rotateX(90deg);
}

.cube-face--bottom {
  transform: translateY(50%) rotateX(-90deg);
}

.cube-face--left {
  transform: translateX(-50%) rotateY(-90deg);
}

.cube-face--right {
  transform: translateX(50%) rotateY(90deg);
}

.cube-face--back,
.cube-face--front {
  transform: rotateY(-90deg) translateX(50%) rotateY(90deg);
}

@media (max-width: 768px) {
  .cubes-wrapper {
    width: 90%;
  }
}

/* ---- 实验室2号页面专属样式 ---- */
.lab2-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 40px 0;
}

.lab2-info {
  text-align: center;
  margin-top: 32px;
}

.lab2-info p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto;
}

.lab2-info .lab2-hint {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(82, 39, 255, 0.12);
  color: #5227FF;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
