/* 首页 Hero 星星闪烁动画 */
.hero-section {
    cursor: none;
}

.hero-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 6px rgba(144,202,255,.6)) drop-shadow(0 0 12px rgba(255,255,255,.3));
    animation: cursorTwinkle 1.5s ease-in-out infinite;
}

.hero-cursor svg {
    width: 100%;
    height: 100%;
}

@keyframes cursorTwinkle {
    0%, 100% { opacity: .5; transform: translate(-50%, -50%) scale(.7); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.hero-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.6),
                0 0 12px 2px rgba(144, 202, 255, 0.3);
    animation: starTwinkle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0;
}

.star::before,
.star::after {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 50%;
}

.star::before {
    width: 1px;
    height: 8px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.5);
}

.star::after {
    width: 8px;
    height: 1px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.5);
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0; transform: scale(0.3); }
    20% { opacity: 1; transform: scale(1); }
    40% { opacity: 0.6; transform: scale(0.7); }
    60% { opacity: 1; transform: scale(1.1); }
    80% { opacity: 0.2; transform: scale(0.4); }
}

/* 移动端减少星星密度 */
@media (max-width: 768px) {
    .star:nth-child(4n+2),
    .star:nth-child(3n+1) { display: none; }
}

/* 流星动画 */
.shooting-star {
    position: absolute;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), transparent);
    border-radius: 50%;
    transform: rotate(-35deg);
    animation: shoot var(--shoot-duration) linear infinite;
    animation-delay: var(--shoot-delay);
    opacity: 0;
}

.shooting-star::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(144, 202, 255, 0.5);
}

@keyframes shoot {
    0% { opacity: 0; transform: rotate(-35deg) translateX(100px); }
    8% { opacity: 1; transform: rotate(-35deg) translateX(-200px); }
    15% { opacity: 1; transform: rotate(-35deg) translateX(-400px); }
    20%, 100% { opacity: 0; transform: rotate(-35deg) translateX(-500px); }
}
