/* 项目案例页面样式 */

/* 主内容区 */
.main-content {
    background-color: #f8f9fa;
    min-height: calc(100vh - 200px);
}

/* 页面标题 */
.main-content h1 {
    color: #2c3e50;
    font-weight: 700;
}

/* 项目分类导航 */
.project-categories {
    border: 1px solid #e9ecef;
}

.project-categories .nav-pills .nav-link {
    color: #495057;
    border: 1px solid #e9ecef;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.project-categories .nav-pills .nav-link.active {
    background-color: #007bff;
    border-color: #007bff;
    color: #ffffff;
}

.project-categories .nav-pills .nav-link:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

/* 项目卡片 */
.project-card .card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.project-card .card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-5px) !important;
    border-color: #007bff;
}

.project-card .card-img-top {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    transition: all 0.3s ease;
}

.project-card .card:hover .card-img-top {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
}

.project-category {
    font-size: 0.8rem;
    font-weight: 500;
}

.project-card .card-title {
    color: #2c3e50;
    font-weight: 600;
}

.project-card .card-text {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-tags .badge {
    font-size: 0.75rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

.project-card .btn-primary {
    transition: all 0.3s ease;
}

.project-card .card:hover .btn-primary {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* 项目统计 */
.project-stats {
    border: 1px solid #e9ecef;
}

.section-title {
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.stat-item {
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    color: #2c3e50;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem 0;
    }
    
    .main-content h1 {
        font-size: 1.8rem;
    }
    
    .project-categories {
        padding: 1rem !important;
    }
    
    .project-categories .nav-pills {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-categories .nav-pills .nav-link {
        margin: 0;
    }
    
    .project-card {
        margin-bottom: 1.5rem;
    }
    
    .project-stats {
        padding: 1.5rem !important;
    }
    
    .stat-item {
        margin-bottom: 1.5rem;
    }
    
    .stat-item:last-child {
        margin-bottom: 0;
    }
}

/* 调整项目卡片布局，确保在不同屏幕尺寸下正确显示 */
.project-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.project-card {
    padding: 0 0.75rem;
    margin-bottom: 1.5rem;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

/* 项目过滤动画 */
.project-card.filtered-out {
    display: none;
}

.project-card.filtered-in {
    display: block;
    animation: fadeInUp 0.6s ease-out forwards;
}