/* 滋补养生主题 - 自然风格 */
:root {
    --primary-color: #8d6e63;
    --secondary-color: #a1887f;
    --accent-color: #5d4037;
    --light-color: #efebe9;
    --text-color: #4e342e;
    --bg-color: #fff8f0;
    --shadow: 0 4px 8px rgba(141, 110, 99, 0.15);
    --radius-organic: 12px 25px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    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="%23d7ccc8" stroke-width="0.5"/></svg>');
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 自然风格头部 */
header {
    background-color: var(--light-color);
    padding: 20px 0;
    border-bottom: 1px solid rgba(141, 110, 99, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
}

.logo::before {
    content: "🌿";
    margin-right: 10px;
    font-size: 32px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
}

nav ul li a {
    padding: 8px 16px;
    border-radius: var(--radius-organic);
    font-weight: 500;
    background-color: rgba(141, 110, 99, 0.1);
}

nav ul li a:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* 主要内容区域 - 纸质质感 */
.main-content {
    background-color: white;
    padding: 30px;
    margin: 30px 0;
    border-radius: var(--radius-organic);
    box-shadow: var(--shadow);
    border: 1px solid rgba(141, 110, 99, 0.1);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #d7ccc8, #8d6e63, #d7ccc8);
}

.section-title {
    font-size: 26px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    color: var(--accent-color);
    position: relative;
    font-weight: 600;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* 文章卡片 - 有机形状 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background-color: white;
    border-radius: var(--radius-organic);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(141, 110, 99, 0.2);
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.article-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 75% 30%, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(141, 110, 99, 0.1);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--accent-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--secondary-color);
    margin-top: 15px;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(141, 110, 99, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 12px;
    border: 1px dashed var(--secondary-color);
}

/* 文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.article-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.4;
    color: var(--accent-color);
    font-weight: 700;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--secondary-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--radius-organic);
    margin-bottom: 30px;
    border: 1px solid rgba(141, 110, 99, 0.2);
}

.article-content {
    line-height: 1.9;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px auto;
    display: block;
    border: 1px solid rgba(141, 110, 99, 0.2);
}

/* 分页导航 - 叶子样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border-radius: var(--radius-organic);
    background-color: rgba(141, 110, 99, 0.1);
    border: 1px solid var(--secondary-color);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination a::after {
    content: "🍃";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s;
}

.pagination a:hover::after {
    right: 10px;
    opacity: 1;
}

/* 友情链接 - 药丸样式 */
.friend-links {
    background-color: var(--light-color);
    border-radius: var(--radius-organic);
    padding: 25px;
    margin: 30px 0;
    border: 1px solid rgba(141, 110, 99, 0.2);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--accent-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 16px;
    background-color: rgba(141, 110, 99, 0.1);
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid var(--secondary-color);
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* 页脚样式 */
footer {
    background-color: var(--accent-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    color: var(--light-color);
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, #8d6e63, #d7ccc8, #8d6e63);
}

.copyright {
    font-size: 14px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .section-title {
        font-size: 22px;
    }
}