     /* 新增星星轨迹样式 */
    :root {
        --star-color-1: rgba(255, 215, 0, 0.8);  /* 金星 */
        --star-color-2: rgba(147, 51, 234, 0.6); /* 紫星 */
        --star-size: 8px;
    }

    .star-trail {
        position: fixed;
        pointer-events: none;
        width: var(--star-size);
        height: var(--star-size);
        animation: starFall 1.2s ease-out forwards;
        z-index: 9999;
        clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    }

    @keyframes starFall {
    100% {
        transform: translate(
            calc(-50% + 150%), 
            calc(-50% + 100px)
        );
    }
}

/* 创建多个动画类 */
.star:nth-child(2n) {
    animation-name: starFall2; /* 另一个偏移量的动画 */
}

    /* 随机颜色生成 */
    .star-trail::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            45deg,
            var(--star-color-1),
            var(--star-color-2)
        );
        animation: colorShift 1s linear infinite;
    }

    @keyframes colorShift {
        0% { opacity: 0.9; }
        50% { opacity: 0.6; }
        100% { opacity: 0.9; }
    }