* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部导航 */
header {
    background: linear-gradient(135deg, #2d5a4a 0%, #1a3d30 100%);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #a8e6cf;
}

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Banner */
.banner {
    margin-top: 60px;
    background: linear-gradient(rgba(45, 90, 74, 0.8), rgba(26, 61, 48, 0.8)), 
                url('../images/banner-home.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* 内页banner */
.inner-banner {
    margin-top: 60px;
    background: linear-gradient(rgba(45, 90, 74, 0.8), rgba(26, 61, 48, 0.8)), 
                url('../images/banner-inner.jpg');
    background-size: cover;
    background-position: center;
    padding: 40px 0;
    text-align: center;
    color: #fff;
}

.inner-banner h1 {
    font-size: 32px;
}

/* 面包屑导航 */
.breadcrumb {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: #2d5a4a;
    text-decoration: none;
}

.breadcrumb span {
    color: #999;
}

/* 分类信息 */
.categories {
    padding: 40px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: #2d5a4a;
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #2d5a4a;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-item {
    display: block;
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #2d5a4a;
    color: #fff;
}

.category-item i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #2d5a4a;
}

.category-item:hover i {
    color: #fff;
}

/* 带缩略图的文章列表 */
.featured-articles {
    padding: 40px 0;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.article-thumb {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.article-content {
    padding: 20px;
}

.article-category {
    display: inline-block;
    background: #2d5a4a;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.article-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    text-decoration: none;
    display: block;
}

.article-title:hover {
    color: #2d5a4a;
}

.article-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* 健康贴士 */
.health-tips {
    padding: 40px 0;
    background: linear-gradient(135deg, #2d5a4a 0%, #1a3d30 100%);
    color: #fff;
}

.health-tips .section-title {
    color: #fff;
}

.health-tips .section-title::after {
    background: #fff;
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.tip-card {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.tip-card i {
    font-size: 36px;
    margin-bottom: 15px;
}

.tip-card h3 {
    margin-bottom: 10px;
}

/* 无缩略图文章列表 */
.simple-articles {
    padding: 40px 0;
    background: #fff;
}

.simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.simple-card {
    padding: 20px;
    border-left: 4px solid #2d5a4a;
    background: #f8f9fa;
    transition: all 0.3s;
}

.simple-card:hover {
    background: #e8f5f0;
    padding-left: 30px;
}

.simple-card h3 {
    margin-bottom: 8px;
}

.simple-card a {
    color: #333;
    text-decoration: none;
}

.simple-card a:hover {
    color: #2d5a4a;
}

.simple-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

/* 表单提交模块 */
.contact-form {
    padding: 40px 0;
    background: #f8f9fa;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    background: linear-gradient(135deg, #2d5a4a 0%, #1a3d30 100%);
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(45, 90, 74, 0.3);
}

/* 友情链接 */
.links {
    padding: 40px 0;
    background: #fff;
}

.links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap: 20px;
}

.links a {
    color: #666;
    text-decoration: none;
    padding: 8px 20px;
    background: #f5f5f5;
    border-radius: 20px;
    transition: all 0.3s;
}

.links a:hover {
    background: #2d5a4a;
    color: #fff;
}

/* 底部 */
footer {
    background: #1a3d30;
    color: #fff;
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #a8e6cf;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #a8e6cf;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
}

/* 文章页 */
.article-page {
    padding: 40px 0;
}

.article-main {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.article-content-full {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.article-content-full h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #2d5a4a;
}

.article-meta-full {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: #999;
    font-size: 14px;
}

.article-body {
    line-height: 2;
    color: #444;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    color: #2d5a4a;
    margin: 30px 0 15px;
}

/* 上下篇导航 */
.prev-next {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.prev-next a {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
}

.prev-next a:hover {
    color: #2d5a4a;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-section {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.sidebar-section h3 {
    margin-bottom: 20px;
    color: #2d5a4a;
    padding-bottom: 15px;
    border-bottom: 2px solid #2d5a4a;
}

.sidebar-articles {
    list-style: none;
}

.sidebar-articles li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sidebar-articles li:last-child {
    border-bottom: none;
}

.sidebar-articles a {
    color: #333;
    text-decoration: none;
    display: block;
}

.sidebar-articles a:hover {
    color: #2d5a4a;
}

/* 列表页 */
.list-page {
    padding: 40px 0;
}

.list-main {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.list-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-item {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    display: flex;
    gap: 20px;
}

.list-thumb {
    width: 200px;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

.list-info {
    flex: 1;
}

.list-info h3 {
    margin-bottom: 10px;
}

.list-info a {
    color: #333;
    text-decoration: none;
}

.list-info a:hover {
    color: #2d5a4a;
}

.list-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    margin: 0 5px;
    border-radius: 5px;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .active {
    background: #2d5a4a;
    color: #fff;
    border-color: #2d5a4a;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #1a3d30;
        padding: 20px;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .banner h1 {
        font-size: 32px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .simple-grid {
        grid-template-columns: 1fr;
    }
    
    .article-main,
    .list-main {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .prev-next {
        flex-direction: column;
        gap: 20px;
    }
    
    .list-item {
        flex-direction: column;
    }
    
    .list-thumb {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tips-container {
        grid-template-columns: 1fr;
    }
}