/* 全国项目页面专用样式 */

/* 页面头部 */
.page-header {
    margin-top: 80px;
    padding: 3rem 0;
    background: linear-gradient(135deg, #70C030 0%, #8FD14F 100%);
    color: white;
    text-align: center;
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
    text-decoration: underline;
}

.separator {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.current {
    color: white;
    font-weight: bold;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 项目统计 */
.projects-stats {
    padding: 3rem 0;
    background: white;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #70C030;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 1rem;
    color: #666;
}

/* 搜索筛选区域 */
.search-section {
    padding: 2rem 0;
    background: transparent;
    border-bottom: none;
    margin-top: -80px;
}

.search-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #70C030;
}

.filter-group button {
    padding: 0.8rem 1.5rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1.5rem;
}

.filter-group button:hover {
    background: #5a6268;
}

.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #70C030;
}

.search-box button {
    padding: 0.8rem 1.5rem;
    background: #70C030;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background: #5fa028;
}

/* 项目列表区域 */
.projects-list-section {
    padding: 3rem 0;
    background: white;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.list-header h2 {
    color: #70C030;
    margin: 0;
}

.list-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#projectCount {
    color: #666;
    font-size: 0.9rem;
}

.view-toggle {
    display: flex;
    background: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.view-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.view-btn.active {
    background: #70C030;
    color: white;
}

.view-btn:hover:not(.active) {
    background: #dee2e6;
}

/* 项目网格布局 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333 !important;
    margin: 0;
    flex: 1;
}

.project-id {
    background: #e9ecef;
    color: #666;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.project-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.info-icon {
    color: #70C030;
    width: 16px;
    text-align: center;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.detail-item {
    color: #666;
}

.detail-item strong {
    color: #333;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    background: #e8f5e0;
    color: #70C030;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* 项目列表布局 */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-list-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-list-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.list-item-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333 !important;
    margin: 0;
}

.list-item-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #e9ecef;
    background: white;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover:not(.disabled) {
    background: #f8f9fa;
    border-color: #70C030;
    color: #70C030;
}

.pagination button.active {
    background: #70C030;
    color: white;
    border-color: #70C030;
}

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

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.loading-spinner {
    text-align: center;
    color: #70C030;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #999;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        padding: 2rem 0;
        margin-top: 70px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card .stat-number {
        font-size: 2rem;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        margin-bottom: 0.5rem;
    }
    
    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .list-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-card {
        padding: 1rem;
    }
    
    .project-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .project-details {
        grid-template-columns: 1fr;
    }
    
    .list-item-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .pagination {
        gap: 0.3rem;
    }
    
    .pagination button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    .search-container {
        padding: 1rem;
    }
    
    .project-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .view-toggle {
        order: -1;
    }
}
