/* 自然美学主题 - 大地色系 */
:root {
    --cream: #F5F0E6;
    --clay: #D8C3A5;
    --terracotta: #E07A5F;
    --sage: #8A9B6E;
    --slate: #3D405B;
    --shadow: 0 3px 8px rgba(61, 64, 91, 0.1);
    --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(--cream);
    color: var(--slate);
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: var(--terracotta);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a:hover {
    color: var(--sage);
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 有机形态头部 */
header {
    background-color: var(--cream);
    padding: 25px 0;
    border-bottom: 1px solid var(--clay);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--slate);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--terracotta), var(--sage));
    border-radius: 3px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
}

nav ul li a {
    padding: 8px 15px;
    border-radius: var(--radius-organic);
    font-weight: 500;
    color: var(--slate);
}

nav ul li a:hover {
    background-color: var(--clay);
    text-decoration: none;
}

/* 主要内容区域 - 纸张质感 */
.main-content {
    background-color: white;
    padding: 40px;
    margin: 40px 0;
    border-radius: var(--radius-organic);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--terracotta), var(--sage));
}

.section-title {
    font-size: 26px;
    margin-bottom: 30px;
    color: var(--slate);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60%;
    height: 3px;
    background: var(--clay);
    border-radius: 3px;
}

/* 有机网格布局 */
.organic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.organic-card {
    background: white;
    border-radius: var(--radius-organic);
    overflow: hidden;
    transition: transform 0.4s, box-shadow 0.4s;
    border: 1px solid var(--clay);
}

.organic-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 10px 20px rgba(61, 64, 91, 0.15);
}

.card-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.organic-card:hover .card-image {
    transform: scale(1.05);
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--slate);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    color: var(--slate);
    opacity: 0.8;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--terracotta);
    border-top: 1px dashed var(--clay);
    padding-top: 15px;
}

/* 分类标签 */
.category-label {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--sage);
    color: white;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--slate);
    font-weight: 700;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--terracotta);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius-organic);
    margin-bottom: 30px;
    position: relative;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}

.article-image-container:hover .article-image {
    transform: scale(1.03);
}

.article-content {
    line-height: 1.9;
    font-size: 18px;
    color: var(--slate);
}

.article-content p {
    margin-bottom: 25px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-organic);
    margin: 30px 0;
    box-shadow: var(--shadow);
}

/* 有机分页 */
.organic-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.organic-pagination a {
    padding: 12px 25px;
    border-radius: var(--radius-organic);
    background-color: white;
    border: 1px solid var(--clay);
    color: var(--slate);
    transition: all 0.4s;
    font-weight: 500;
}

.organic-pagination a:hover {
    background-color: var(--sage);
    color: white;
    border-color: var(--sage);
    text-decoration: none;
    transform: translateY(-3px);
}

/* 友情链接 - 自然风格 */
.friend-links {
    background-color: white;
    border-radius: var(--radius-organic);
    padding: 30px;
    margin: 40px 0;
    box-shadow: var(--shadow);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--slate);
    font-size: 22px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-container a {
    padding: 8px 18px;
    background-color: var(--cream);
    border-radius: var(--radius-organic);
    font-size: 14px;
    border: 1px solid var(--clay);
    color: var(--slate);
}

.friend-links-container a:hover {
    background-color: var(--sage);
    color: white;
    border-color: var(--sage);
}

/* 页脚 - 自然质感 */
footer {
    background-color: var(--slate);
    color: var(--cream);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.copyright {
    font-size: 15px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-image-container {
        height: 250px;
    }
}