/* 项目展示头部 */
.projects-header {
    height: 350px;
    background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.projects-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.projects-header .container {
    position: relative;
    z-index: 2;
    margin-top: 40px;
}

.projects-header h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.projects-header p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.view-all {
    display: inline-block;
    margin-top: 15px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.view-all:hover {
    color: #ddd;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
        -webkit-transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        -webkit-transform: translateY(0);
    }
}

@-webkit-keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(20px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
        -webkit-transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        -webkit-transform: translateY(0);
    }
}

@-webkit-keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(20px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}

/* 项目列表 */
.projects-list {
    padding: 60px 0;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    width: 250px;
}

.search-box button {
    padding: 10px 15px;
    background-color: #1a5276;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #154360;
}

.filter-options {
    display: flex;
    gap: 15px;
}

.filter-options {
    display: flex;
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-options select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
}

/* 屏幕阅读器专用样式 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 项目网格布局 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.project-image {
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0; /* 图片加载前的背景色 */
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    color: #1a5276;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.project-info p {
    color: #666;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.project-info i {
    margin-right: 5px;
    color: #1a5276;
}

.project-details {
    margin: 15px 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-label {
    font-weight: bold;
    color: #333;
}

.detail-value {
    color: #1a5276;
    font-weight: 500;
}

.project-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin: 15px 0;
}

.view-project-btn {
    background-color: #1a5276;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 15px;
}

.view-project-btn:hover {
    background-color: #154360;
}

/* 无结果提示 */
.no-results {
    text-align: center;
    padding: 50px;
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .filter-bar {
        flex-direction: column;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .filter-options {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .projects-header {
        padding: 120px 0 50px;
    }
    
    .projects-header h1 {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}