/* 文章列表页面样式 */
.article-list {
    padding: 60px 0;
    background-color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.section-header p {
    color: #666;
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto;
}

/* 文章网格布局 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* 文章卡片样式 */
.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.article-link {
    text-decoration: none;
    color: inherit;
}

.article-image {
    position: relative;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
}

.article-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.article-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f0f0f0;
    color: #666;
    border-radius: 20px;
    font-size: 0.85em;
    margin-bottom: 15px;
    align-self: flex-start;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    width: 100%;
    text-align: left;
}

.article-excerpt {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    text-align: left;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: 0.85em;
    margin-bottom: 15px;
    width: 100%;
    text-align: left;
}

.view-more {
    display: inline-flex;
    align-items: center;
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9em;
    padding: 8px 16px;
    margin-top: 5px;
    border-radius: 20px;
    background: linear-gradient(to right, #f8f8f8, #f0f0f0);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.view-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.view-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
    position: relative;
}

.article-card:hover .view-more {
    background: linear-gradient(to right, #1a1a1a, #333);
    color: #fff;
    border-color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.article-card:hover .view-more::before {
    left: 100%;
}

.article-card:hover .view-more i {
    transform: translateX(5px);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination-item {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-item:hover {
    background-color: #f5f5f5;
    color: #1a1a1a;
}

.pagination-item.active {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-header h1 {
        font-size: 2em;
    }

    .article-title {
        font-size: 1.2em;
    }
}

