/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f7;
}

a {
    text-decoration: none;
    color: #4a7c59;
    transition: color 0.3s ease;
}

a:hover {
    color: #2e5a3a;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4a7c59;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2e5a3a;
    color: #fff;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #2e5a3a;
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #4a7c59;
}

.section-desc {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 导航栏样式 */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 28px;
    margin: 0;
    color: #4a7c59;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-size: 16px;
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4a7c59;
    transition: width 0.3s ease;
}

nav ul li a:hover:after {
    width: 100%;
}

/* 首页英雄区域 */
.hero {
    padding: 80px 0;
    background-color: #e8f4ea;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #2e5a3a;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #555;
}

.hero-image {
    flex: 1;
}

/* 关于我们部分 */
.about {
    padding: 80px 0;
    background-color: #ffffff;
}

.about-content {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
}

.about-text {
    flex: 1;
    padding-right: 40px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.about-image {
    flex: 1;
}

.about-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.card {
    flex: 1;
    min-width: 300px;
    background-color: #f9f9f7;
    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;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card h3 {
    padding: 15px 20px 0;
    font-size: 20px;
}

.card p {
    padding: 0 20px 20px;
    color: #666;
}

/* 植物图鉴部分 */
.plants {
    padding: 80px 0;
    background-color: #f0f7f1;
}

.plant-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.plant-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.plant-card h3 {
    padding: 15px 20px 5px;
    font-size: 20px;
}

.plant-card p {
    padding: 0 20px 20px;
    color: #666;
}

.plant-article {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.plant-article h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.plant-article p {
    line-height: 1.8;
    color: #444;
}

/* 社区活动部分 */
.community {
    padding: 80px 0;
    background-color: #ffffff;
}

.activity-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.activity-card {
    background-color: #f9f9f7;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.activity-info {
    padding: 20px;
}

.activity-info h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.activity-info p {
    margin-bottom: 15px;
    color: #666;
}

.activity-date {
    display: block;
    font-size: 14px;
    color: #4a7c59;
    font-weight: 600;
}

.community-article {
    background-color: #f0f7f1;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.community-article h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.community-article p {
    line-height: 1.8;
    color: #444;
}

/* 自然教育部分 */
.education {
    padding: 80px 0;
    background-color: #f0f7f1;
}

.education-content {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.education-image {
    flex: 1;
}

.education-text {
    flex: 1;
    padding: 30px;
}

.education-text h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.education-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.education-features {
    margin-top: 20px;
}

.education-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.education-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4a7c59;
    font-weight: bold;
}

.course-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.course-card {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.course-card h3 {
    padding: 15px 20px 5px;
    font-size: 20px;
}

.course-card p {
    padding: 0 20px 20px;
    color: #666;
}

.education-article {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.education-article h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.education-article p {
    line-height: 1.8;
    color: #444;
}

/* 生态保护部分 */
.protection {
    padding: 80px 0;
    background-color: #ffffff;
}

.protection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.protection-item {
    display: flex;
    flex-direction: column;
    background-color: #f9f9f7;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.protection-item:hover {
    transform: translateY(-5px);
}

.protection-content {
    padding: 20px;
}

.protection-content h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.protection-content p {
    color: #666;
    line-height: 1.7;
}

.protection-article {
    background-color: #f0f7f1;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.protection-article h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.protection-article p {
    line-height: 1.8;
    color: #444;
}

/* 联系我们部分 */
.contact {
    padding: 80px 0;
    background-color: #f0f7f1;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-info p {
    margin-bottom: 25px;
    line-height: 1.7;
}

.contact-list {
    margin-bottom: 25px;
}

.contact-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-block;
    padding: 10px 15px;
    background-color: #4a7c59;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: #2e5a3a;
    color: #fff;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    margin-bottom: 20px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4a7c59;
    outline: none;
}

/* 文章部分 */
.articles {
    padding: 80px 0;
    background-color: #ffffff;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: #f9f9f7;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.article-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
    color: #2e5a3a;
}

.article-card p {
    line-height: 1.8;
    color: #444;
}

/* 页脚部分 */
footer {
    background-color: #2e5a3a;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-logo p {
    color: #ccc;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 150px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #aaa;
    font-size: 14px;
}

.footer-bottom a {
    color: #ccc;
}

.footer-bottom a:hover {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .education-content {
        flex-direction: column;
    }
    
    .protection-grid {
        grid-template-columns: 1fr;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .card, .course-card {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 28px;
    }
    
    .activity-cards {
        grid-template-columns: 1fr;
    }
}
