/* 鼠标跟随文字特效 */

/* 文字样式 */
.text-trail-item {
    position: fixed; /* 改为fixed，避免滚动时位置错乱 */
    pointer-events: none; 
    color: var(--miku-color);
    font-family: serif;
    font-weight: bold;
    font-size: 20px;
    white-space: nowrap;
    z-index: 9998; /* 在内容之上，但在导航栏之下 */
    
    transform: translate(-50%, -50%);
    opacity: 0.7;
    text-shadow: 0 0 5px rgba(var(--miku-color-rgb), 0.5);
    animation: dropAway 1s linear forwards;
}

/* 文字动画 */
@keyframes dropAway {
    0% {
        transform: translate(-50%, -50%) rotate(var(--r)) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50px) rotate(var(--r)) scale(1.5);
        opacity: 0;
    }
}