/* ==================== 自定义光标 ==================== */

/* 隐藏系统光标（全站） */
*, *::before, *::after {
  cursor: none !important;
}

/* ── 真实光标点（1:1 跟随，无延迟）── */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width 0.2s ease, height 0.2s ease, opacity 0.3s ease;
}

/* ── 光晕跟随圈（弹性延迟）── */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  /* 天空蓝半透明毛玻璃感 */
  background: radial-gradient(
    circle,
    rgba(0, 160, 255, 0.18) 0%,
    rgba(0, 124, 237, 0.08) 55%,
    transparent 70%
  );
  border: 1px solid rgba(180, 225, 255, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  will-change: transform;
  /* 过渡：悬停状态变化时的缩放动画 */
  transition:
    width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.3s ease,
    border-color 0.3s ease,
    opacity 0.3s ease;
}

/* ── 悬停可交互元素时：光晕放大 + 加深 ── */
.cursor-glow.is-hovering {
  width: 56px;
  height: 56px;
  background: radial-gradient(
    circle,
    rgba(0, 180, 255, 0.28) 0%,
    rgba(0, 124, 237, 0.12) 55%,
    transparent 70%
  );
  border-color: rgba(180, 225, 255, 0.6);
}

/* ── 点击瞬间：两者压缩 ── */
.cursor-dot.is-clicking {
  width: 4px;
  height: 4px;
}

.cursor-glow.is-clicking {
  width: 28px;
  height: 28px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(0, 160, 255, 0.15) 55%,
    transparent 70%
  );
  border-color: rgba(255, 255, 255, 0.7);
}

/* ── 触摸设备：完全关闭自定义光标 ── */
@media (hover: none) and (pointer: coarse) {
  .cursor-dot,
  .cursor-glow {
    display: none;
  }

  *, *::before, *::after {
    cursor: auto !important;
  }
}
