/* ==========================================
   莲花点阵样式
   Lotus Dot Matrix Styles
   ========================================== */

/* Lotus dot matrix container - 2D optimized */
.eye-matrix-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.eye-matrix-container .dot-matrix {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Lotus dot base style */
.dot.eye {
  /* 移除 transition 和 preserve-3d 以提升滚动性能 */
}

/* Square outline */
.dot.eye.outline {
  opacity: 0.5;
}

/* Petal layers - 2D opacity instead of 3D */
.dot.eye.layer-1 {
  opacity: 0.3;
}

.dot.eye.layer-2 {
  opacity: 0.5;
}

.dot.eye.layer-3 {
  opacity: 0.7;
}

.dot.eye.layer-4 {
  opacity: 0.9;
}

/* Center pistil - highest opacity */
.dot.eye.layer-5 {
  opacity: 1;
}

.dot.eye.center {
  font-weight: var(--font-weight-bold);
}

/* Mobile optimization - disable 3D */
@media (max-width: 768px) {
  .eye-matrix-container {
    perspective: none;
  }

  .eye-matrix-container .dot-matrix {
    transform-style: flat;
  }

  .dot.eye {
    transform: none !important;
  }

  .eye-matrix-container:hover .dot.eye {
    transform: scale(1.05) !important;
  }

  .dot.eye.petal {
    animation: none;
  }

  .dot.eye.center {
    animation: none;
  }
}

/* Small screen layout adjustment */
@media (max-width: 480px) {
  .eye-matrix-container {
    padding: var(--spacing-lg) 0;
  }

  .eye-matrix-container .dot-matrix {
    transform: scale(0.85);
  }
}

/* Reduced Motion support */
@media (prefers-reduced-motion: reduce) {
  .dot.eye.petal {
    animation: none;
  }

  .dot.eye.center {
    animation: none;
  }

  .eye-matrix-container:hover .dot.eye,
  .eye-matrix-container:hover .dot-matrix {
    transform: none !important;
  }
}
