/* ========= 朝暮前台全局浪漫交互（全站可复用） ========= */

/* 自定义光标：保留系统指针（更稳），在旁边跟随一个小爱心点缀 */

.cm-cursor {
    position: fixed;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    /* 放在系统鼠标右下角一点点，不遮挡文本光标 */
    transform: translate3d(10px, 10px, 0);
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: normal;
    opacity: 0.95;
    transition: transform 120ms ease-out, filter 120ms ease-out, opacity 120ms ease-out;
    filter: drop-shadow(0 4px 10px rgba(248,113,113,0.22));
    will-change: transform, left, top;
}

.cm-cursor svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cm-cursor.cm-cursor-active {
    transform: translate3d(10px, 10px, 0) scale(1.15);
    filter: drop-shadow(0 6px 16px rgba(248,113,113,0.28));
}

/* 点击烟花容器（覆盖全屏，点击不阻断） */
.cm-fireworks {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

.cm-burst {
    position: absolute;
    width: 1px;
    height: 1px;
    left: 0;
    top: 0;
}

.cm-spark {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
    transform: translate3d(0, 0, 0) scale(1);
    animation: cm-spark 780ms cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes cm-spark {
    0% {
        opacity: 0;
        transform: translate3d(0,0,0) scale(0.6);
        filter: blur(0);
    }
    15% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--dx), var(--dy), 0) scale(0.2);
        filter: blur(0.6px);
    }
}

