/* 自定义样式 */
body {
    font-family: 'Inter', sans-serif;
}

/* 导航栏滚动效果 */
header {
    transition: padding 0.3s ease;
}

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

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 搜索框动画 */
.search-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.search-container.active {
    max-height: 100px;
}

/* 文本阴影 */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 回到顶部按钮 */
#back-to-top {
    transition: all 0.3s ease;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 图片懒加载淡入效果 */
.lazy-image {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.lazy-image.loaded {
    opacity: 1;
}

/* 骨架屏效果 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
    }
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
    .bg-gray-50 {
        background-color: #1a202c;
    }
    
    .text-gray-800 {
        color: #f7fafc;
    }
    
    .text-gray-600 {
        color: #cbd5e0;
    }
    
    .text-gray-500 {
        color: #a0aec0;
    }
    
    .bg-white {
        background-color: #2d3748;
    }
    
    .border-gray-300 {
        border-color: #4a5568;
    }
    
    .hover\:bg-gray-100:hover {
        background-color: #4a5568;
    }
    
    .skeleton {
        background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    }
}
