/* 文章卡片网格布局 */
.content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* 文章卡片样式 */
.post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.post-content {
    padding: 20px;
}

.post-title {
    margin: 0 0 15px 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-title a:hover {
    color: #007bff;
}

.post-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.post-date, .post-category {
    display: flex;
    align-items: center;
}

.post-category a {
    color: #666;
    text-decoration: none;
}

.post-category a:hover {
    color: #007bff;
}

.post-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 分页导航样式 */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 4px;
    background: white;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background: #007bff;
    color: white;
}

.pagination .page-numbers.current:hover {
    background: #007bff;
}

.pagination .page-numbers:hover:not(.current) {
    background: #f0f0f0;
}

/* 无文章提示 */
.no-posts {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.no-posts h2 {
    color: #666;
    font-size: 1.5rem;
    margin: 0;
}

/* 响应式布局 */
@media screen and (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .content-area {
        padding: 15px;
    }
}
