/* 公益活动页面样式 */
.charity-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 头部横幅 */
.hero {
    position: relative;
    height: 400px;
    margin-bottom: 3rem;
    overflow: hidden;
    border-radius: 8px;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* 项目筛选 */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #1e88e5;
    color: #fff;
}

/* 项目网格 */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.project-meta span {
    display: flex;
    align-items: center;
}

.project-meta i {
    margin-right: 0.5rem;
}

.project-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-role {
    color: #1e88e5;
    font-weight: bold;
    margin-bottom: 1rem;
}

.project-achievements {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.project-achievements h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.project-achievements ul {
    list-style: none;
    padding-left: 1rem;
}

.project-achievements li {
    position: relative;
    margin-bottom: 0.5rem;
    color: #666;
}

.project-achievements li::before {
    content: "•";
    color: #1e88e5;
    position: absolute;
    left: -1rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:not(:disabled):hover {
    background: #1e88e5;
    color: #fff;
    border-color: #1e88e5;
}

.page-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.page-num {
    margin: 0 1rem;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .charity-container {
        padding: 1rem;
    }

    .project-filters {
        flex-wrap: wrap;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
} 