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

.text-shadow-sky {
    text-shadow: 0 0 10px rgba(135, 206, 235, 0.5), 0 0 20px rgba(65, 105, 225, 0.3);
}

.bg-glow-sky {
    box-shadow: 0 0 15px rgba(135, 206, 235, 0.4), 0 0 30px rgba(255, 182, 193, 0.2);
}

.sky-gradient {
    background: linear-gradient(135deg, #87CEEB 0%, #5BA3D0 50%, #4169E1 100%);
}

.sunset-gradient {
    background: linear-gradient(135deg, #FFE4E1 0%, #FFB6C1 50%, #FFA07A 100%);
}

/* 云朵效果 */
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    opacity: 0.7;
    animation: float 20s infinite ease-in-out;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50px;
}

.cloud-1 {
    width: 100px;
    height: 40px;
    top: 20%;
    left: 10%;
    animation-duration: 25s;
}

.cloud-1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.cloud-1::after {
    width: 60px;
    height: 60px;
    top: -35px;
    right: 10px;
}

.cloud-2 {
    width: 120px;
    height: 50px;
    top: 50%;
    right: 15%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.cloud-2::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 15px;
}

.cloud-2::after {
    width: 70px;
    height: 70px;
    top: -40px;
    right: 15px;
}

.cloud-3 {
    width: 80px;
    height: 35px;
    bottom: 30%;
    left: 20%;
    animation-duration: 22s;
    animation-delay: -10s;
}

.cloud-3::before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 10px;
}

.cloud-3::after {
    width: 50px;
    height: 50px;
    top: -25px;
    right: 10px;
}

@keyframes float {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(20px) translateY(-10px);
    }
    50% {
        transform: translateX(-10px) translateY(-20px);
    }
    75% {
        transform: translateX(15px) translateY(-5px);
    }
}

/* 星光闪烁动画 */
@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(135, 206, 235, 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-white {
    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(135, 206, 235, 0.3), 0 0 40px rgba(255, 182, 193, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(135, 206, 235, 0.5), 0 0 60px rgba(255, 182, 193, 0.4);
    }
}

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

/* 波浪分割线动画 */
@keyframes wave {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 卡片悬停效果增强 */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(135, 206, 235, 0.2);
}

/* 渐变文字效果 */
.gradient-text {
    background: linear-gradient(135deg, #4169E1 0%, #87CEEB 50%, #FFB6C1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .cloud {
        opacity: 0.5;
    }
    
    .cloud-1,
    .cloud-2,
    .cloud-3 {
        width: 60px;
        height: 25px;
    }
    
    /* 移动端FAQ改为单列 */
    #faq .grid {
        grid-template-columns: 1fr;
    }
}

