/* 扁平化砂岩色调主题 */
:root {
    --sand-light: #F5E7D3;
    --sand-medium: #D2B48C;
    --sand-dark: #A68A64;
    --sand-accent: #8B7355;
    --text-dark: #4A3C2A;
    --text-light: #7A6A4F;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--sand-light);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--sand-accent);
    transition: all 0.2s;
}

a:hover {
    color: var(--text-dark);
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 扁平化头部 */
header {
    background-color: var(--sand-medium);
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-dark);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 0;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover {
    border-bottom-color: var(--sand-accent);
    text-decoration: none;
}

/* 主要内容区 */
.main-content {
    background-color: white;
    border-radius: 0;
    padding: 30px;
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--sand-medium);
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--sand-accent);
    position: relative;
    padding-bottom: 10px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--sand-medium);
}

/* 扁平化卡片 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    border: 1px solid var(--sand-medium);
    transition: transform 0.2s;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--sand-medium);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 15px;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--sand-medium);
    color: white;
    font-size: 12px;
    margin-bottom: 10px;
}

/* 文章详情 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
}

.article-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--sand-accent);
}

.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin: 20px 0;
    border: 1px solid var(--sand-medium);
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 20px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a {
    padding: 8px 16px;
    background-color: var(--sand-medium);
    color: white;
}

.pagination a:hover {
    background-color: var(--sand-accent);
    text-decoration: none;
}

/* 友情链接 */
.friend-links {
    background-color: white;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid var(--sand-medium);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--sand-accent);
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.friend-links-container a {
    padding: 8px 15px;
    background-color: var(--sand-light);
    color: var(--text-dark);
}

.friend-links-container a:hover {
    background-color: var(--sand-medium);
    color: white;
    text-decoration: none;
}

/* 页脚 */
footer {
    background-color: var(--sand-medium);
    padding: 25px 0;
    text-align: center;
    color: white;
    margin-top: 50px;
}

.copyright {
    font-size: 14px;
}

/* 响应式设计 */
@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;
    }
}