/* 信息列表页样式 */

/* 页面标题区域 */
.page-header {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #f9fafb;
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f9fafb;
}

.page-header p {
    font-size: 1.2rem;
    color: #d1d5db;
    max-width: 600px;
    margin: 0 auto;
}

/* 筛选区域 */
.filter-section {
    background: #1f2937;
    padding: 2rem 0;
    padding-top: 100px;
    border-bottom: 1px solid #374151;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    color: #d1d5db;
    font-weight: 500;
    white-space: nowrap;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    background: #111827;
    color: #e5e7eb;
    font-size: 0.9rem;
    min-width: 120px;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.1);
}

.search-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 400px;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #374151;
    border-radius: 0.5rem 0 0 0.5rem;
    background: #111827;
    color: #e5e7eb;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.1);
}

.search-input::placeholder {
    color: #6b7280;
}

.search-btn {
    padding: 0.75rem 1rem;
    background: #818cf8;
    color: #f9fafb;
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #6366f1;
    transform: translateY(-1px);
}

/* 信息列表 */
.info-list {
    background: #111827;
    padding: 3rem 0;
    min-height: 60vh;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #374151;
}

.list-stats {
    color: #d1d5db;
    font-size: 1rem;
}

.list-stats strong {
    color: #818cf8;
    font-weight: 600;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options label {
    color: #d1d5db;
    font-weight: 500;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    background: #1f2937;
    color: #e5e7eb;
    font-size: 0.9rem;
    min-width: 150px;
    transition: all 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.1);
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 信息卡片 */
.info-card {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 1rem;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.4);
    border-color: #4b5563;
}

/* 项目封面图片 */
.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.info-card:hover .project-image img {
    transform: scale(1.05);
}

/* 图片覆盖层 */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
}

/* 卡片内容区域 */
.card-content {
    padding: 1.5rem;
}



.project-category {
    background: rgba(129, 140, 248, 0.9);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-status {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

/* 根据状态文本内容设置不同颜色 */
.project-status:contains('招标中') {
    background: rgba(16, 185, 129, 0.9);
}

.project-status:contains('进行中') {
    background: rgba(245, 158, 11, 0.9);
}

.project-status:contains('已完成') {
    background: rgba(107, 114, 128, 0.9);
}

/* 由于CSS不支持:contains，使用通用样式 */
.image-overlay .project-status {
    background: rgba(16, 185, 129, 0.9);
}

/* 状态样式的具体实现 */
.info-card:nth-child(1) .project-status,
.info-card:nth-child(3) .project-status,
.info-card:nth-child(4) .project-status,
.info-card:nth-child(6) .project-status {
    background: #10b981;
    color: #f9fafb;
}

.info-card:nth-child(2) .project-status {
    background: #f59e0b;
    color: #f9fafb;
}

.info-card:nth-child(5) .project-status {
    background: #6b7280;
    color: #f9fafb;
}

.project-title {
    color: #f9fafb;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.project-description {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

.meta-item i {
    color: #818cf8;
    width: 16px;
    text-align: center;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #374151;
}

.publisher-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.publisher-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #374151;
}

.publisher-name {
    color: #d1d5db;
    font-weight: 500;
    font-size: 0.9rem;
}

.view-detail-btn {
    background: #818cf8;
    color: #f9fafb;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-detail-btn:hover {
    background: #6366f1;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(129, 140, 248, 0.3);
}

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


/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .search-group {
        max-width: none;
    }
    
    .list-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-meta {
        gap: 0.75rem;
    }
    
    .card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .publisher-info {
        justify-content: center;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .page-numbers {
        margin: 0;
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .page-numbers .page-number {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}