/* 自定义工具类 */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.text-shadow-star {
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.7), 0 0 20px rgba(65, 105, 225, 0.5);
}

.bg-glow {
    box-shadow: 0 0 15px rgba(65, 105, 225, 0.5), 0 0 30px rgba(96, 165, 250, 0.3);
}

.blue-gradient {
    background: linear-gradient(135deg, #60A5FA 0%, #4169E1 50%, #3B82F6 100%);
}

.star-gradient {
    background: linear-gradient(135deg, #E0F2FE 0%, #60A5FA 50%, #3B82F6 100%);
}

.blue-border {
    border-image: linear-gradient(to right, #87CEEB, #4169E1, #3B82F6) 1;
}

/* 星光闪烁动画 */
@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes twinkle-slow {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes twinkle-fast {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite;
}

.star::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: twinkle-slow 3s infinite;
}

.star-small {
    width: 2px;
    height: 2px;
    animation-duration: 1.5s;
}

.star-medium {
    width: 3px;
    height: 3px;
    animation-duration: 2s;
}

.star-large {
    width: 4px;
    height: 4px;
    animation-duration: 2.5s;
}

.star-fast {
    animation: twinkle-fast 1s infinite;
}

.star-slow {
    animation: twinkle-slow 4s infinite;
}

/* 页面加载动画 */
body {
    transition: opacity 1s ease-in-out;
}

body.opacity-0 {
    opacity: 0;
}

body.opacity-100 {
    opacity: 1;
}

/* FAQ 动画 */
.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.rotate-180 {
    transform: rotate(180deg);
}

/* 弹窗动画 */
#modal {
    transition: opacity 0.3s ease;
}

#modal:not(.hidden) {
    animation: fadeIn 0.3s ease;
}

#modal .bg-blue-deep {
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* 星光背景效果 */
.starry-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 脉冲光效 */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(96, 165, 250, 0.3), 0 0 40px rgba(65, 105, 225, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(96, 165, 250, 0.5), 0 0 60px rgba(65, 105, 225, 0.4);
    }
}

.pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

