/* 导航栏星星动画样式 */
.title-text-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.star {
    position: absolute;
    font-size: 12px;
    animation: twinkle 2s ease-in-out infinite;
    pointer-events: none;
}

.star1 {
    color: #f472b6;
    top: -8px;
    left: -15px;
    animation-delay: 0s;
}

.star2 {
    color: #a78bfa;
    top: -5px;
    right: -15px;
    animation-delay: 0.3s;
}

.star3 {
    color: #60a5fa;
    bottom: -8px;
    left: -12px;
    animation-delay: 0.6s;
}

.star4 {
    color: #34d399;
    bottom: -5px;
    right: -12px;
    animation-delay: 0.9s;
}

.star5 {
    color: #fbbf24;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    animation-delay: 1.2s;
}

.star6 {
    color: #fb923c;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    animation-delay: 1.5s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 导航栏链接下划线动画 */
.nav-link {
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}