/* 文章列表页样式 */
.articles-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.articles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.articles-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.card-header {
    padding: 1.5rem 1.5rem 0;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.article-author {
    font-weight: 500;
    color: #007bff;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag:hover {
    background: #007bff;
    color: #fff;
    text-decoration: none;
}

.card-content {
    padding: 0 1.5rem;
    flex-grow: 1;
}

.article-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.article-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.article-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.article-excerpt {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.article-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.category a {
    color: #28a745;
    text-decoration: none;
    font-weight: 500;
}

.category a:hover {
    text-decoration: underline;
}

.read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #0056b3;
    text-decoration: none;
}

/* 导航样式 */
.nav-menu .active {
    color: #007bff;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .articles-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .articles-container {
        padding: 1rem 0.5rem;
    }
    
    .card-header,
    .card-content,
    .card-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}