/* 隐藏默认鼠标 */
body {
  cursor: none;
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f4f4f4;
  font-family: Arial, sans-serif;
}

/* 小圆点样式 */
.custom-cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: rgba(0, 0, 0, 1); /* 初始颜色完全不透明 */
  border-radius: 50%;
  pointer-events: none; /* 防止阻止点击事件 */
  z-index: 1000;
  transform: translate(-50%, -50%);
  transition: transform 0.2s, width 0.2s, height 0.2s, background-color 0.2s;
}

/* 旋转的正方形框样式 */
.square-frame {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid #000;
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
  z-index: 999;
  transition: all 0.2s;
}

/* 鼠标悬停在链接上时，改变小圆点为稀释的正方形 */
a:hover ~ .custom-cursor {
  width: 40px;
  height: 40px;
  border-radius: 0; /* 变成正方形 */
  background: rgba(0, 0, 0, 0.2); /* 颜色变淡，模拟稀释效果 */
  transform: translate(-50%, -50%) rotate(45deg); /* 旋转45度 */
}
