/* 禅意风格全局样式 */
:root {
    --primary-color: #8ac24a; /* 青柠绿 */
    --secondary-color: #a5d6a7;
    --bg-color: #f8f5f2; /* 亚麻色背景 */
    --text-color: #5f5f5f;
    --light-color: #ffffff;
    --border-color: #e0e0e0;
    --wabi-sabi: #d7ccc8; /* 侘寂米色 */
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', 'Hiragino Sans GB', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: var(--text-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: var(--light-color);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 300;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.logo span {
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 0;
    position: relative;
    font-weight: 300;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 主要内容区域 - 禅意卡片 */
.main-content {
    background-color: var(--light-color);
    border-radius: 2px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 24px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
    font-weight: 300;
    letter-spacing: 1px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

/* 禅意文章网格 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: var(--light-color);
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(138,194,74,0.05) 100%);
    z-index: 1;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    filter: grayscale(20%);
    opacity: 0.9;
}

.card-body {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--wabi-sabi);
    margin-top: 15px;
    font-weight: 300;
}

/* 禅意分类标签 */
.category-tag {
    display: inline-block;
    padding: 2px 10px;
    background-color: var(--wabi-sabi);
    color: var(--text-color);
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 15px;
    font-weight: 300;
}

/* 文章详情页 - 禅意风格 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.article-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.4;
    color: var(--text-color);
    font-weight: 300;
    letter-spacing: 1px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--wabi-sabi);
    margin-bottom: 25px;
    flex-wrap: wrap;
    font-weight: 300;
}

.article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 30px;
    filter: grayscale(20%);
    opacity: 0.9;
}

.article-content {
    line-height: 1.9;
    font-size: 16px;
    font-weight: 300;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    filter: grayscale(10%);
}

/* 禅意分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 8px 20px;
    border-radius: 2px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    font-weight: 300;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
}

/* 友情链接 - 禅意风格 */
.friend-links {
    background-color: var(--light-color);
    border-radius: 2px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 1px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.friend-links-container a {
    padding: 6px 15px;
    background-color: var(--wabi-sabi);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 300;
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* 页脚 - 禅意风格 */
footer {
    background-color: var(--light-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
}

.copyright {
    font-size: 14px;
    color: var(--wabi-sabi);
    font-weight: 300;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .friend-links-container {
        justify-content: center;
    }
}