/* 页面横幅样式 */
.page-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3)), url('https://cfcyunchat-1314260234.cos.ap-nanjing.myqcloud.com/pc/f567400224bd77016d436eced87f8a3.png') !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    background-color: #222 !important;
    background-position: center 9% !important;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.page-banner p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
}

/* 公益理念网格样式 */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.philosophy-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.philosophy-item:hover {
    transform: translateY(-5px);
}

.philosophy-item i {
    font-size: 2.5em;
    color: #007bff;
    margin-bottom: 20px;
}

.philosophy-item h3 {
    color: #333;
    margin-bottom: 15px;
}

.philosophy-item p {
    color: #666;
    line-height: 1.6;
}

/* 公益项目网格样式 */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.project-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card .card-content {
    padding: 25px;
}

.project-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.project-card p {
    color: #666;
    line-height: 1.6;
}

/* 联系我们样式 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 40px 0;
}

.contact-info {
    color: white;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    width: 20px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
}

.contact-form h3 {
    margin-bottom: 20px;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .page-banner {
        padding: 60px 0;
        background-attachment: scroll !important;
    }

    .page-banner h1 {
        font-size: 2em;
    }

    .philosophy-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-item,
    .project-card {
        margin: 0 20px;
    }
    
    /* 公益瞬间手机端优化 */
    .moments-list {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 0 8px;
    }
    
    .moment-item {
        margin: 0 !important;
    }
    
    .moment-item img {
        height: 200px !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    .moment-item > div {
        padding: 16px 16px !important;
    }
    
    .moment-item h4 {
        font-size: 1.1em !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
    }
    
    .moment-item p {
        font-size: 0.9em !important;
        line-height: 1.5 !important;
        margin-bottom: 12px !important;
    }
    
    .card-link {
        font-size: 0.85em !important;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .moments-list {
        gap: 12px !important;
        padding: 0 4px;
    }
    
    .moment-item img {
        height: 180px !important;
    }
    
    .moment-item > div {
        padding: 12px 12px !important;
    }
    
    .moment-item h4 {
        font-size: 1em !important;
    }
    
    .moment-item p {
        font-size: 0.85em !important;
    }
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background: #007bff;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* 通用样式 */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #555;
    font-size: 1.1em;
}

.bg-light {
    background: #f8f9fa;
}

.bg-dark {
    background: #343a40;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 手机端容器优化 */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
} 