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

body {
    font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
}

/* 头部样式 */
header {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.logo:hover {
    color: #007bff;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #666;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #007bff;
}

/* 主内容区样式 */
main {
    flex: 3;
    min-width: 0;
}

.post {
    background-color: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #007bff;
}

.post-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.post-meta span {
    margin-right: 20px;
}

.post-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.read-more {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color: #0056b3;
}

/* 侧边栏样式 */
aside {
    flex: 1;
    margin-left: 30px;
    min-width: 250px;
}

.widget {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.category-list, .tag-list {
    list-style: none;
}

.category-list li, .tag-list li {
    margin-bottom: 10px;
}

.category-list a, .tag-list a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.category-list a:hover, .tag-list a:hover {
    color: #007bff;
    padding-left: 5px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
}

.tag-list li {
    margin-right: 10px;
    margin-bottom: 10px;
}

.tag-list a {
    padding: 5px 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 14px;
}

.tag-list a:hover {
    background-color: #007bff;
    color: #fff;
    padding-left: 10px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background-color: #fff;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.pagination a:hover, .pagination .current {
    background-color: #007bff;
    color: #fff;
}

/* 底部样式 */
footer {
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-info {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

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

.footer-info p {
    color: #ccc;
    line-height: 1.8;
}

.footer-links {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-links h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #007bff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    margin-top: 20px;
    color: #ccc;
    font-size: 14px;
}

.footer-bottom a {
    color: #007bff;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    aside {
        margin-left: 0;
    }
    
    .header-content {
        flex-direction: column;
    }
    
    .nav-menu {
        margin-top: 20px;
        justify-content: center;
    }
    
    .nav-menu li {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .post {
        padding: 20px;
    }
}


     /* 主内容区样式 */
        main {
            flex: 2.5;
            min-width: 260px;
            background: #ffffff;
            border-radius: 24px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
            padding: 1.8rem 2rem;
            transition: all 0.2s;
        }

        /* 侧边栏样式 */
        aside {
            flex: 1.2;
            min-width: 240px;
        }

        /* 通用小部件样式 */
        .widget {
            background: #ffffff;
            border-radius: 20px;
            padding: 1.5rem;
            margin-bottom: 1.8rem;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
            transition: 0.2s;
            border: 1px solid #eef2e6;
        }

        .widget-title {
            font-size: 1.35rem;
            font-weight: 600;
            margin-bottom: 1.2rem;
            padding-bottom: 0.5rem;
            border-bottom: 3px solid #8fbc6e;
            display: inline-block;
            color: #2d4a22;
            letter-spacing: -0.2px;
        }

        .category-list, .tag-list {
            list-style: none;
        }

        .category-list li, .tag-list li {
            margin-bottom: 0.7rem;
        }

        .category-list a, .tag-list a {
            text-decoration: none;
            color: #3b5c2e;
            font-weight: 500;
            transition: color 0.2s, padding-left 0.2s;
            display: inline-block;
        }

        .category-list a:hover, .tag-list a:hover {
            color: #6a9c4b;
            padding-left: 5px;
        }

        .tag-list a {
            background: #f0f4ea;
            padding: 0.25rem 0.7rem;
            border-radius: 30px;
            font-size: 0.85rem;
            font-weight: normal;
            margin-right: 0.4rem;
            margin-bottom: 0.5rem;
            display: inline-block;
        }

        .tag-list a:hover {
            background: #e2ebd6;
            padding-left: 0.7rem;
            padding-right: 0.7rem;
        }

        /* 文章列表样式 */
        .article-list {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        .post-item {
            border-bottom: 1px solid #e8eddf;
            padding-bottom: 1.8rem;
            transition: 0.2s;
        }

        .post-item:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .post-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 0.6rem;
        }

        .post-title a {
            text-decoration: none;
            color: #2c4b24;
            transition: color 0.2s;
        }

        .post-title a:hover {
            color: #6f9e4f;
            text-decoration: underline;
        }

        .post-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            font-size: 0.85rem;
            color: #7e8c6e;
            margin-bottom: 0.9rem;
            border-left: 3px solid #cbddaa;
            padding-left: 10px;
        }

        .post-meta span {
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .post-excerpt {
            color: #3c4a35;
            margin-bottom: 1rem;
            line-height: 1.6;
        }

        .read-more {
            display: inline-block;
            background: none;
            border: 1.5px solid #8fbc6e;
            color: #416e2c;
            padding: 0.3rem 1rem;
            border-radius: 40px;
            font-size: 0.85rem;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.2s;
        }

        .read-more:hover {
            background: #8fbc6e;
            color: white;
            border-color: #6e9c4a;
        }

        /* 分页导航样式 */
        .pagination {
            margin-top: 2.2rem;
            padding-top: 1.2rem;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
            border-top: 1px solid #e2e8d5;
        }

        .pagination a, .pagination .current {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 38px;
            height: 38px;
            padding: 0 0.8rem;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.2s;
            background: #f9faf6;
            color: #3e6130;
            border: 1px solid #dee6d3;
        }

        .pagination a:hover {
            background: #eef3e6;
            border-color: #92bb6e;
            color: #2a551c;
            transform: translateY(-2px);
        }

        .pagination .current {
            background: #8fbc6e;
            border-color: #8fbc6e;
            color: white;
            box-shadow: 0 2px 6px rgba(100, 130, 60, 0.2);
        }

        .pagination .disabled {
            opacity: 0.5;
            pointer-events: none;
            background: #f3f3ef;
            color: #9aaa8a;
        }

        /* 响应式 */
        @media (max-width: 780px) {
            main {
                padding: 1.2rem;
            }
            .post-title {
                font-size: 1.5rem;
            }
            .blog-wrapper {
                gap: 1.2rem;
            }
        }

        /* 农业装饰小元素 */
        .widget p {
            color: #4a5c3c;
            font-size: 0.9rem;
            line-height: 1.5;
        }
        .tag-list li {
            display: inline-block;
        }
        .category-list li {
            list-style-type: circle;
            margin-left: 1.2rem;
            padding-left: 0.2rem;
        }