/* 滋补养生主题 - 温暖自然风格 */
:root {
    --primary-color: #e67e22;
    --secondary-color: #d35400;
    --accent-color: #27ae60;
    --light-bg: #fef9f0;
    --dark-text: #3d3d3d;
    --light-text: #7f8c8d;
    --card-bg: #ffffff;
    --border-radius: 12px;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --leaf-pattern: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%23e67e22" fill-opacity="0.1" d="M50,10 C60,20 70,30 80,40 C90,50 95,60 90,70 C85,80 70,85 50,90 C30,85 15,80 10,70 C5,60 10,50 20,40 C30,30 40,20 50,10 Z"/></svg>');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.8;
    background-image: var(--leaf-pattern);
    background-size: 200px;
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 自然风格头部 */
header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(230, 126, 34, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo::before {
    content: "🌿";
    margin-right: 10px;
    font-size: 32px;
}

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-text);
}

nav ul li a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 主要内容区域 - 纸质卡片效果 */
.main-content {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    border: 1px solid rgba(230, 126, 34, 0.1);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(230, 126, 34, 0.3);
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: "❀";
    position: absolute;
    right: 0;
    color: var(--primary-color);
}

/* 有机形态文章列表 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.4s, box-shadow 0.4s;
    border: 1px solid rgba(230, 126, 34, 0.1);
    position: relative;
}

.article-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--accent-color), transparent);
}

.article-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(230, 126, 34, 0.1);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--dark-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--light-text);
    margin-top: 15px;
}

/* 自然标签样式 */
.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--accent-color);
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
    border: 1px dashed var(--accent-color);
}

/* 文章详情页 - 阅读友好设计 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.article-header::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 20px auto 0;
    border-radius: 3px;
}

.article-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.4;
    color: var(--secondary-color);
    font-weight: 700;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--light-text);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(230, 126, 34, 0.2);
}

.article-content {
    line-height: 1.9;
    font-size: 17px;
    color: var(--dark-text);
}

.article-content p {
    margin-bottom: 25px;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px auto;
    display: block;
    box-shadow: var(--shadow);
}

/* 自然风格分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border-radius: 30px;
    background-color: rgba(230, 126, 34, 0.1);
    color: var(--secondary-color);
    border: 1px dashed var(--primary-color);
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    border-style: solid;
}

/* 友情链接 - 自然标签云 */
.friend-links {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 20px;
    display: flex;
    align-items: center;
}

.friend-links h3::before {
    content: "🌱";
    margin-right: 10px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-container a {
    padding: 8px 15px;
    background-color: rgba(230, 126, 34, 0.1);
    border-radius: 20px;
    font-size: 14px;
    color: var(--secondary-color);
    border: 1px dashed var(--primary-color);
}

.friend-links-container a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 自然风格页脚 */
footer {
    background-color: #2c3e50;
    padding: 40px 0;
    text-align: center;
    margin-top: 50px;
    color: white;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
}

/* 响应式设计 */
@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;
    }
}