/* ==========================================
   Cursor Module — 自定义炫酷光标样式
   ========================================== */

/* 隐藏系统默认光标 */
html, html * {
  cursor: none !important;
}

/* ===== 自定义光标 - 外圈 (延迟跟随) ===== */
.cursor-outer {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(0, 255, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, transform 0.15s;
  mix-blend-mode: difference;
}

/* 悬停在可交互元素上时外圈变大 + 变色 */
.cursor-outer.hover {
  width: 60px;
  height: 60px;
  border-color: rgba(255, 0, 255, 0.8);
  border-width: 3px;
}

/* ===== 自定义光标 - 内点 (瞬时跟随) ===== */
.cursor-inner {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #00ffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 10px #00ffff,
    0 0 20px #00ffff;
  mix-blend-mode: difference;
}

/* ===== 光标拖尾粒子 ===== */
.cursor-trail {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  animation: trailFade 0.6s ease-out forwards;
}

@keyframes trailFade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
}

/* ===== 点击波纹 ===== */
.click-ripple {
  position: fixed;
  border: 2px solid #ff00ff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  animation: rippleExpand 0.8s ease-out forwards;
}

@keyframes rippleExpand {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  100% {
    width: 150px;
    height: 150px;
    opacity: 0;
    transform: translate(-50%, -50%);
  }
}