/* ========== Custom cursor (视觉中心 = 红点) ========== */
@media (hover: hover) and (pointer: fine) {
  body, a, button, [data-cursor], [data-href], input, textarea, select, label { cursor: none; }
}

.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  display: none;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
}

.cursor__square {
  position: absolute;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--accent);
  transition: width .25s cubic-bezier(.7,.05,.2,1),
              height .25s cubic-bezier(.7,.05,.2,1),
              background .25s,
              border .25s;
}

.cursor__label {
  position: absolute;
  top: 14px;
  left: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  opacity: 0.9;
  transition: top .25s, color .25s, font-size .25s;
}

/* Active state on interactive elements */
.cursor.is-active .cursor__square {
  width: 56px;
  height: 56px;
  background: transparent;
  border: 1.5px solid var(--accent);
}
.cursor.is-active .cursor__label {
  top: 40px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.cursor.is-press .cursor__square {
  transform: translate(-50%, -50%) scale(0.85);
}

.cursor.is-text { opacity: 0; }
.cursor.is-out { opacity: 0; transition: opacity .15s; }
