/* 自然美学主题 - 森林色系 */
:root {
    --primary-green: #3a7d44;
    --secondary-green: #6a994e;
    --light-beige: #f2e8cf;
    --dark-brown: #432818;
    --accent-orange: #bc4749;
    --text-dark: #386641;
    --text-light: #5a6f5a;
    --natural-shadow: 0 4px 12px rgba(58, 125, 68, 0.15);
    --border-radius-organic: 12px 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--light-beige);
    color: var(--text-dark);
    line-height: 1.8;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M30,50 Q50,30 70,50 T90,50" fill="none" stroke="%233a7d44" stroke-width="0.3" opacity="0.1"/></svg>');
}

a {
    text-decoration: none;
    color: var(--secondary-green);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

a:hover {
    color: var(--accent-orange);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 自然风格头部 */
header {
    background-color: rgba(242, 232, 207, 0.92);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--natural-shadow);
    border-bottom: 1px solid rgba(58, 125, 68, 0.1);
    backdrop-filter: blur(8px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-brown);
    position: relative;
    padding-left: 45px;
}

.logo::before {
    content: '🌿';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 36px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
}

nav ul li a {
    padding: 8px 16px;
    border-radius: var(--border-radius-organic);
    font-weight: 500;
    background-color: rgba(106, 153, 78, 0.1);
}

nav ul li a:hover {
    background-color: var(--primary-green);
    color: white;
    transform: translateY(-2px);
}

/* 主要内容区域 - 树叶卡片效果 */
.main-content {
    background-color: white;
    border-radius: var(--border-radius-organic);
    padding: 35px;
    margin: 30px 0;
    box-shadow: var(--natural-shadow);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M30,20 Q50,5 70,20 Q85,40 80,60 Q70,85 50,95 Q30,85 20,60 Q15,40 30,20" fill="%236a994e" opacity="0.08"/></svg>');
    background-repeat: no-repeat;
}

.section-title {
    font-size: 26px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px dashed var(--secondary-green);
    color: var(--dark-brown);
    position: relative;
    font-weight: 600;
}

.section-title::after {
    content: '❀';
    position: absolute;
    right: 0;
    color: var(--accent-orange);
}

/* 自然风格文章网格 */
.nature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.nature-card {
    background-color: white;
    border-radius: var(--border-radius-organic);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(106, 153, 78, 0.3);
    position: relative;
}

.nature-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 10px 25px rgba(58, 125, 68, 0.2);
}

.card-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(106, 153, 78, 0.3);
    transition: transform 0.5s ease;
}

.nature-card:hover .card-cover {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--dark-brown);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--secondary-green);
    border-top: 1px dashed rgba(106, 153, 78, 0.3);
    padding-top: 12px;
}

/* 分类标签 - 树叶形状 */
.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--light-beige);
    color: var(--primary-green);
    border-radius: 0 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
    border: 1px solid var(--secondary-green);
    clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%);
}

/* 文章详情页 - 自然阅读体验 */
.article-nature {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.article-header::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="20" viewBox="0 0 100 20" xmlns="http://www.w3.org/2000/svg"><path d="M0,10 Q25,20 50,10 Q75,0 100,10" fill="none" stroke="%23bc4749" stroke-width="1" stroke-dasharray="5,3"/></svg>');
}

.article-title {
    font-size: 34px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--dark-brown);
    font-weight: 700;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--text-light);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--border-radius-organic);
    margin-bottom: 30px;
    box-shadow: var(--natural-shadow);
    border: 1px solid rgba(106, 153, 78, 0.3);
}

.article-content {
    line-height: 1.9;
    font-size: 17px;
    color: var(--text-light);
}

.article-content p {
    margin-bottom: 25px;
    text-align: justify;
}

.article-content h2,
.article-content h3 {
    color: var(--dark-brown);
    margin: 35px 0 15px;
    position: relative;
    padding-left: 15px;
}

.article-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 80%;
    background-color: var(--accent-orange);
    border-radius: 3px;
}

/* 自然风格分页 */
.pagination-nature {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.pagination-nature a {
    padding: 10px 25px;
    border-radius: var(--border-radius-organic);
    background-color: var(--light-beige);
    color: var(--primary-green);
    border: 1px solid var(--secondary-green);
    transition: all 0.4s ease;
    font-weight: 500;
}

.pagination-nature a:hover {
    background-color: var(--primary-green);
    color: white;
    transform: translateY(-3px);
}

/* 友情链接 - 种子样式 */
.friend-links-nature {
    background-color: white;
    border-radius: var(--border-radius-organic);
    padding: 30px;
    margin: 30px 0;
    box-shadow: var(--natural-shadow);
    position: relative;
    overflow: hidden;
}

.friend-links-nature::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background-image: url('data:image/svg+xml;utf8,<svg width="80" height="80" viewBox="0 0 80 80" xmlns="http://www.w3.org/2000/svg"><path d="M40,10 Q50,5 60,15 Q75,30 70,50 Q65,70 40,75 Q15,70 10,50 Q5,30 20,15 Q30,5 40,10" fill="%23bc4749" opacity="0.08"/></svg>');
}

.friend-links-nature h3 {
    margin-bottom: 20px;
    color: var(--dark-brown);
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.friend-links-nature h3::before {
    content: '🌱';
    font-size: 28px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-container a {
    padding: 8px 18px;
    background-color: var(--light-beige);
    border-radius: var(--border-radius-organic);
    font-size: 14px;
    border: 1px solid var(--secondary-green);
    transition: all 0.3s ease;
}

.friend-links-container a:hover {
    background-color: var(--primary-green);
    color: white;
    transform: scale(1.05);
}

/* 自然风格页脚 */
footer {
    background-color: var(--dark-brown);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    color: var(--light-beige);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="40" viewBox="0 0 100 40" xmlns="http://www.w3.org/2000/svg"><path d="M0,40 Q25,20 50,30 Q75,40 100,30 L100,40 L0,40" fill="%23432818"/></svg>');
}

.copyright {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .nature-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 10px;
    }
    
    .main-content {
        padding: 25px;
    }
}