/* 自然美学主题 - 大地色系 */
:root {
    --clay-50: #f8f4e9;
    --clay-100: #e9e1c5;
    --clay-200: #d4c9a1;
    --clay-300: #bfb07d;
    --clay-400: #aa9759;
    --clay-500: #8f7e40;
    --clay-600: #6e5f31;
    --clay-700: #4d4022;
    --clay-800: #2c2113;
    --moss-300: #8a9b68;
    --moss-500: #556b2f;
    --sky-300: #a8c4d9;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --radius-organic: 66% 34% 33% 67% / 60% 45% 55% 40%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--clay-50);
    color: var(--clay-800);
    line-height: 1.7;
    background-image: radial-gradient(circle at 10% 20%, rgba(232, 225, 197, 0.2) 0%, transparent 20%);
}

a {
    text-decoration: none;
    color: var(--clay-600);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a:hover {
    color: var(--moss-500);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 有机形态头部 */
header {
    background: linear-gradient(135deg, var(--clay-100) 0%, var(--clay-50) 100%);
    padding: 25px 0;
    border-radius: 0 0 30% 70% / 0 0 50px 50px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(170, 151, 89, 0.1);
    border-radius: var(--radius-organic);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(to right, var(--clay-500), var(--moss-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    font-family: 'Playfair Display', serif;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 15px;
    border-radius: var(--radius-organic);
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(170, 151, 89, 0.2);
}

nav ul li a:hover {
    background-color: var(--moss-500);
    color: white;
    transform: translateY(-2px);
}

/* 主要内容区域 - 纸张质感 */
.main-content {
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    background-image: 
        linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
        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,30 Q50,20 70,30 T90,50 Q80,70 70,70 T50,90 Q20,80 30,50 T30,30" fill="none" stroke="%23e9e1c5" stroke-width="0.5"/></svg>');
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(to right, var(--clay-400), var(--moss-300));
}

.section-title {
    font-size: 26px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--clay-100);
    position: relative;
    color: var(--clay-700);
    font-family: 'Playfair Display', serif;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, var(--moss-500), transparent);
}

/* 有机卡片设计 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--clay-100);
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(170, 151, 89, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--clay-100);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
}

.card-body {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--clay-700);
    line-height: 1.5;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--clay-500);
    margin-top: 20px;
}

/* 分类标签 - 叶子形状 */
.category-tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--moss-300);
    color: white;
    border-radius: 0 15px 15px 15px;
    font-size: 12px;
    margin-bottom: 15px;
    position: relative;
}

.category-tag::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid var(--moss-500);
    border-bottom: 10px solid transparent;
}

/* 文章详情页 - 手稿风格 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.article-title {
    font-size: 36px;
    margin-bottom: 25px;
    line-height: 1.3;
    color: var(--clay-700);
    font-family: 'Playfair Display', serif;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--clay-500);
    margin-bottom: 30px;
    flex-wrap: wrap;
    font-size: 15px;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--clay-200);
}

.article-content {
    line-height: 1.9;
    font-size: 17px;
    color: var(--clay-700);
}

.article-content p {
    margin-bottom: 25px;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px auto;
    display: block;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--clay-100);
}

/* 分页导航 - 自然按钮 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    border-radius: var(--radius-organic);
    background-color: var(--clay-100);
    color: var(--clay-700);
    transition: all 0.4s;
    border: 1px solid var(--clay-200);
}

.pagination a:hover {
    background-color: var(--moss-300);
    color: white;
    transform: translateY(-3px);
}

/* 友情链接 - 种子样式 */
.friend-links {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--clay-100);
}

.friend-links h3 {
    margin-bottom: 25px;
    color: var(--clay-700);
    font-size: 22px;
    font-family: 'Playfair Display', serif;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-container a {
    padding: 8px 20px;
    background-color: var(--clay-50);
    border-radius: var(--radius-organic);
    font-size: 14px;
    border: 1px solid var(--clay-100);
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background-color: var(--moss-300);
    color: white;
    transform: scale(1.05);
}

/* 页脚样式 - 大地色调 */
footer {
    background: linear-gradient(to right, var(--clay-300), var(--clay-400));
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    color: white;
    border-radius: 70% 30% 0 0 / 50px 50px 0 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to right, var(--moss-500), var(--clay-500));
}

.copyright {
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .main-content {
        padding: 30px 20px;
    }
}