/* 首页自定义光标：圆圈 + 环绕滚动 mreddiehu.com + 卡片链接态「查看」 */
body.home-body,
body.home-body a,
body.home-body button,
body.home-body .home-cards-viewport,
body.home-body .home-cards-viewport.is-dragging {
  cursor: none !important;
}

.home-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10050;
  width: 52px;
  height: 52px;
  color: rgba(11, 11, 11, .52);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity .22s ease, width .25s cubic-bezier(.33, 1, .68, 1), height .25s cubic-bezier(.33, 1, .68, 1);
  will-change: transform, width, height, opacity;
  contain: layout style;
}

.home-cursor.is-visible {
  opacity: 1;
}

.home-cursor.is-link {
  width: 68px;
  height: 68px;
  color: rgba(11, 11, 11, .78);
}

.home-cursor.is-touch {
  width: 58px;
  height: 58px;
}

.home-cursor.is-touch.is-link {
  width: 72px;
  height: 72px;
}

.home-cursor__inner {
  position: absolute;
  inset: 0;
}

.home-cursor__ring {
  position: absolute;
  inset: 0;
  animation: home-cursor-ring-spin 14s linear infinite;
  transform-origin: 50% 50%;
}

.home-cursor__ring svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.home-cursor__ring-path {
  fill: none;
}

.home-cursor__ring-text {
  fill: currentColor;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: lowercase;
}

.home-cursor__core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border: 1.5px solid rgba(11, 11, 11, .88);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .45);
  transition: transform .25s cubic-bezier(.33, 1, .68, 1), border-color .25s ease, background .25s ease;
}

.home-cursor.is-link .home-cursor__core {
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-color: var(--home-accent, #f59e0b);
  background: rgba(255, 255, 255, .96);
  transform: scale(1.05);
}

.home-cursor__label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.82);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--home-ink, #0b0b0b);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  user-select: none;
  white-space: nowrap;
}

.home-cursor.is-link .home-cursor__label {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.home-cursor.is-link .home-cursor__core {
  opacity: 0;
  transform: scale(.4);
}

@keyframes home-cursor-ring-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
  .home-cursor {
    width: 56px;
    height: 56px;
  }

  .home-cursor.is-link {
    width: 74px;
    height: 74px;
  }

  .home-cursor__ring-text {
    font-size: 8px;
  }

  .home-cursor__label {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-cursor__ring {
    animation-duration: 28s;
  }
}
