/* 清芳风格 - 清新自然主题 */
:root {
    --primary-color: #4a9c82;
    --secondary-color: #8fc1a9;
    --light-color: #f8f9f7;
    --dark-color: #2a3d45;
    --text-color: #4a4a4a;
    --accent-color: #e8a87c;
    --shadow-sm: 0 2px 8px rgba(42, 61, 69, 0.08);
    --shadow-md: 0 4px 12px rgba(42, 61, 69, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 - 清新自然风格 */
header {
    background-color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(138, 175, 156, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo::before {
    content: "🌿";
    margin-right: 8px;
    font-size: 24px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    color: var(--dark-color);
}

nav ul li a:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* 主要内容区域 */
.main-content {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(138, 175, 156, 0.2);
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(138, 175, 156, 0.3);
    position: relative;
    color: var(--dark-color);
    font-weight: 500;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: var(--primary-color);
}

/* 文章列表样式 - 清新卡片 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(138, 175, 156, 0.2);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(138, 175, 156, 0.2);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--dark-color);
    line-height: 1.5;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--primary-color);
    margin-top: 15px;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
}

/* 文章详情页样式 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--dark-color);
    font-weight: 500;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--primary-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.article-content {
    line-height: 1.8;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border-radius: 30px;
    background-color: white;
    border: 1px solid var(--secondary-color);
    transition: all 0.3s;
    color: var(--primary-color);
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 友情链接 */
.friend-links {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(138, 175, 156, 0.2);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 20px;
    font-weight: 500;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-container a {
    padding: 8px 15px;
    background-color: white;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid var(--secondary-color);
    color: var(--primary-color);
}

.friend-links-container a:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* 页脚样式 */
footer {
    background-color: var(--dark-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid rgba(138, 175, 156, 0.2);
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-meta {
        gap: 15px;
    }
}