/* 清芳风格 - 清新自然主题 */
:root {
    --primary-color: #5d9b9b;
    --secondary-color: #d4e2d4;
    --accent-color: #f8a978;
    --text-color: #4a4a4a;
    --light-color: #f9f9f7;
    --border-color: #e0e0e0;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 - 清新简约 */
header {
    background-color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.logo span {
    font-weight: 600;
    color: var(--accent-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 0;
    position: relative;
    font-weight: 400;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 主要内容区域 */
.main-content {
    background-color: white;
    border-radius: 8px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 24px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--secondary-color);
    color: var(--primary-color);
    font-weight: 300;
    letter-spacing: 1px;
}

/* 文章列表样式 - 卡片布局 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.article-card {
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #999;
    margin-top: 15px;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
}

/* 文章详情页样式 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 300;
    color: var(--primary-color);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: #999;
    margin-bottom: 25px;
    flex-wrap: wrap;
    font-size: 14px;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.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;
    border-radius: 6px;
    margin: 25px 0;
    box-shadow: var(--shadow);
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 8px 20px;
    border-radius: 4px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transition: all 0.3s;
    font-size: 14px;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 友情链接 */
.friend-links {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: var(--shadow);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 300;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-container a {
    padding: 8px 15px;
    background-color: var(--secondary-color);
    border-radius: 4px;
    font-size: 14px;
    color: var(--primary-color);
}

.friend-links-container a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 页脚样式 */
footer {
    background-color: var(--primary-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    color: white;
}

.copyright {
    font-size: 14px;
    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;
    }
    
    .article-meta {
        gap: 15px;
    }
}