/* 自定义样式补充 */
@layer components {
    /* 卡片悬停效果 */
    .card-hover {
        @apply transition-transform duration-300 hover:-translate-y-1;
    }
    
    /* 文字截断 */
    .line-clamp-3 {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* 科技感特效 */
@keyframes glow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.3; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* 导航栏图标旋转动画 */
@keyframes icon-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-icon-rotate:hover {
    animation: icon-rotate 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

.floating {
    animation: float 6s ease-in-out infinite;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 移动端导航适配 */
@media (max-width: 767px) {
    .mobile-hidden {
        display: none;
    }
}