/* 生物形态设计 - 砂岩色调 */
:root {
    --sand-1: #f5e8d0;
    --sand-2: #e7d8b0;
    --sand-3: #d2c09b;
    --sand-4: #b8a58a;
    --sand-5: #9c8c75;
    --accent: #8c7b66;
    --text: #5a4a3a;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', serif;
}

body {
    background-color: var(--sand-1);
    color: var(--text);
    line-height: 1.7;
}

/* 生物形态曲线 */
.organic-shape {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
    background: linear-gradient(135deg, var(--sand-2), var(--sand-3));
    opacity: 0.2;
    z-index: -1;
}

.shape-1 {
    top: -100px;
    right: -100px;
}

.shape-2 {
    bottom: -50px;
    left: -100px;
    transform: rotate(45deg);
}

a {
    text-decoration: none;
    color: var(--sand-5);
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--accent);
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 - 有机形态 */
header {
    background-color: rgba(245, 232, 208, 0.9);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(156, 140, 117, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent);
    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: 20px;
}

nav ul li a:hover {
    background-color: var(--sand-3);
    color: white;
}

/* 主要内容区域 - 有机卡片 */
.main-content {
    background-color: white;
    border-radius: 15px;
    padding: 35px;
    margin: 35px 0;
    box-shadow: var(--shadow);
    border: 1px solid rgba(156, 140, 117, 0.1);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--sand-2), var(--sand-4));
}

.section-title {
    font-size: 26px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(156, 140, 117, 0.3);
    color: var(--accent);
    font-family: 'Playfair Display', serif;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: var(--accent);
}

/* 有机文章网格 */
.organic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.organic-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(156, 140, 117, 0.2);
    position: relative;
}

.organic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.organic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 75% 25%, rgba(231, 216, 176, 0.1), transparent 60%);
    pointer-events: none;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(156, 140, 117, 0.2);
}

.card-body {
    padding: 22px;
}

.card-title {
    font-size: 19px;
    margin-bottom: 12px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--sand-5);
    margin-top: 15px;
}

/* 分类标签 - 有机形状 */
.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--sand-2);
    color: var(--text);
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(156, 140, 117, 0.3);
}

/* 文章详情页样式 */
.organic-article {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 34px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--text);
    font-family: 'Playfair Display', serif;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--sand-5);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(156, 140, 117, 0.2);
}

.article-content {
    line-height: 1.9;
    font-size: 18px;
}

.article-content p {
    margin-bottom: 22px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid rgba(156, 140, 117, 0.2);
}

/* 有机分页导航 */
.organic-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.organic-pagination a {
    padding: 10px 20px;
    border-radius: 30px;
    background-color: var(--sand-2);
    color: var(--text);
    transition: all 0.3s ease;
    border: 1px solid rgba(156, 140, 117, 0.3);
}

.organic-pagination a:hover {
    background-color: var(--sand-3);
    color: white;
}

/* 友情链接 - 有机风格 */
.organic-links {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    margin: 35px 0;
    box-shadow: var(--shadow);
    border: 1px solid rgba(156, 140, 117, 0.1);
}

.organic-links h3 {
    margin-bottom: 20px;
    color: var(--text);
    font-size: 22px;
    font-family: 'Playfair Display', serif;
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.links-container a {
    padding: 8px 18px;
    background-color: var(--sand-2);
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(156, 140, 117, 0.3);
}

.links-container a:hover {
    background-color: var(--sand-3);
    color: white;
}

/* 页脚样式 */
footer {
    background-color: var(--sand-4);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    color: white;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(156, 140, 117, 0.8), rgba(184, 165, 138, 0.8));
    z-index: -1;
}

.copyright {
    font-size: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .organic-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .organic-shape {
        display: none;
    }
}