/* =========================================================
   二次元樱花鼠标样式 · sakura-cursor
   与 sakura 主题粉色系呼应：自定义光标 + 跟随光环 + 点击粒子
   ========================================================= */

/* ---------- 1. 全局隐藏系统指针，改用自定义光标 ---------- */
html,
body,
a,
button,
input,
textarea,
select,
label,
[role="button"],
.fa-solid,
.sakura-search-btn,
.sakura-toggle,
.sakura-user,
.replybtn,
.page-btn,
.tag,
.nav-item,
.related-item,
.card-link {
	cursor: none !important;
}

/* 需要已阻止默认光标时，也强制自定义 */
.sakura-hero,
.sakura-card,
.post-card {
	cursor: none !important;
}

/* ---------- 2. 光标本体（本体+外壳双层，二次元描边感） ---------- */
.sc2d-dot,
.sc2d-ring {
	position: fixed;
	top: 0;
	left: 0;
	pointer-events: none;
	z-index: 2147483647;
	will-change: transform;
	/* 保证在浏览器最上层 */
}

/* 内部实心圆点：樱粉 */
.sc2d-dot {
	width: 8px;
	height: 8px;
	margin-left: -4px;
	margin-top: -4px;
	border-radius: 50%;
	background: #fe6d70;                       /* 主题主色 */
	box-shadow: 0 0 6px rgba(254, 109, 112, .9);
	transition: transform .08s ease;
}

/* 外层白色描边光环，二次元轮廓感 */
.sc2d-ring {
	width: 32px;
	height: 32px;
	margin-left: -16px;
	margin-top: -16px;
	border: 2px solid #fe6d70;
	border-radius: 50%;
	background: rgba(255, 236, 238, .25);
	transition: width .22s ease, height .22s ease, margin .22s ease,
	            background .22s ease, border-color .22s ease;
}

/* hover 在可点击元素上时的放大反馈 */
.sc2d-hover .sc2d-ring {
	width: 52px;
	height: 52px;
	margin-left: -26px;
	margin-top: -26px;
	background: rgba(254, 109, 112, .15);
	border-color: #fff;
}

/* 按下时收缩 */
.sc2d-down .sc2d-ring {
	width: 20px;
	height: 20px;
	margin-left: -10px;
	margin-top: -10px;
	background: #fe6d70;
	border-color: #fff;
}

/* ---------- 3. 点击粒子（樱花花瓣 + 小圆点） ---------- */
.sc2d-particle {
	position: fixed;
	pointer-events: none;
	z-index: 2147483646;
	border-radius: 50%;
	animation: sc2d-fly .6s ease-out forwards;
}

.sc2d-petal {
	width: 10px;
	height: 10px;
	background: #ffb7c0;
	border-radius: 100% 0 100% 0;              /* 花瓣形状 */
	position: fixed;
	pointer-events: none;
	z-index: 2147483646;
	animation: sc2d-petal-fly 1s ease-out forwards;
}

@keyframes sc2d-fly {
	0%   { transform: translate(0, 0) scale(1);    opacity: 1; }
	100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

@keyframes sc2d-petal-fly {
	0%   { transform: translate(0, 0) rotate(0deg);    opacity: 1; }
	100% { transform: translate(var(--dx), var(--dy)) rotate(320deg); opacity: 0; }
}

/* ---------- 4. 触屏设备上隐藏（避免遮挡） ---------- */
@media (hover: none), (pointer: coarse) {
	.sc2d-dot, .sc2d-ring, .sc2d-particle, .sc2d-petal { display: none !important; }
	html, body, a, button { cursor: auto !important; }
}