/* 项目列表页面特定样式 */

/* 页面头部 */
.page-header {
    padding: 150px 0 80px;
    background-color: #f5f5f7;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 18px;
    color: #6e6e73;
    max-width: 600px;
    margin: 0 auto;
}

/* 项目筛选 */
.project-filters {
    padding: 40px 0;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.project-filters .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background-color: transparent;
    border: 2px solid #f0f0f0;
    border-radius: 24px;
    color: #86868b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #6e6e73;
    border-color: #6e6e73;
    color: white;
}

.view-options {
    display: flex;
    gap: 8px;
}

.view-btn {
    padding: 8px;
    background-color: transparent;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    color: #86868b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover,
.view-btn.active {
    background-color: #f5f5f7;
    color: #1d1d1f;
}

/* 项目网格 */
.projects-section {
    padding: 80px 0;
    background-color: #f5f5f7;
    min-height: 60vh;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.project-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.project-card.hidden {
    display: none;
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-placeholder {
    color: white;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.project-content {
    padding: 24px;
}

.project-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-content p {
    color: #6e6e73;
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 14px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.project-date {
    font-size: 12px;
    color: #86868b;
}

.project-status {
    padding: 4px 12px;
    background-color: #f0f9f0;
    color: #2d5a3d;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background-color: #f5f5f7;
    color: #86868b;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.pagination-btn {
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    color: #86868b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #f5f5f7;
    color: #1d1d1f;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
}

.pagination-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: transparent;
    border: 1px solid #f0f0f0;
    color: #86868b;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pagination-number:hover,
.pagination-number.active {
    background-color: #6e6e73;
    border-color: #6e6e73;
    color: white;
}

/* 列表视图 */
.projects-grid.list-view {
    grid-template-columns: 1fr;
}

.projects-grid.list-view .project-card {
    display: flex;
    align-items: center;
    padding: 24px;
}

.projects-grid.list-view .project-image {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    margin-right: 24px;
}

.projects-grid.list-view .project-content {
    flex: 1;
    padding: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .page-header p {
        font-size: 16px;
    }
    
    .project-filters .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .projects-grid.list-view .project-card {
        flex-direction: column;
        text-align: center;
    }
    
    .projects-grid.list-view .project-image {
        width: 100%;
        height: 150px;
        margin-right: 0;
        margin-bottom: 16px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 12px;
    }
    
    .pagination-numbers {
        order: -1;
    }
}

@media (max-width: 480px) {
    .filter-tabs {
        flex-direction: column;
    }
    
    .filter-btn {
        text-align: center;
    }
    
    .project-card {
        margin: 0 8px;
    }
}

/* 加载动画 */
.project-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.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; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}