﻿/*文章列表*/
/* 页头样式 */
.page-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

    .page-header h1 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .page-header p {
        font-size: 1.2rem;
        opacity: 0.9;
    }

/* 内容区域 */
.content-section {
    padding: 3rem 0;
}

/* 文章列表样式 */
.article-list {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.article-item {
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
    margin-bottom: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

    .article-item:last-child {
        border-bottom: none;
    }

    .article-item:hover {
        background-color: #f8f9fa;
    }

    .article-item a {
        text-decoration: none;
        color: inherit;
        display: block;
    }

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.article-item:hover .article-title {
    color: #0d6efd;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}
/* 侧边栏样式 */
.sidebar {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1.5rem;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0d6efd;
}

.sidebar-item {
    margin-bottom: 10px;
}

    .sidebar-item a {
        text-decoration: none;
        color: #666;
        transition: color 0.3s;
        display: block;
        padding: 0.5rem 0;
    }

        .sidebar-item a:hover {
            color: #0d6efd;
        }

.category-list .sidebar-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 分页样式 */
.pagination {
    margin-top: 2rem;
    justify-content: center;
}

.page-link {
    color: #0d6efd;
    border: 1px solid #dee2e6;
    margin: 0 0.25rem;
    transition: all 0.3s;
}

    .page-link:hover {
        background-color: #0d6efd;
        color: white;
        border-color: #0d6efd;
    }

.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}





/* 相关文章 */
.related-article {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: transform 0.3s;
}

    .related-article:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .related-article:hover {
        transform: translateX(5px);
    }

    .related-article a {
        text-decoration: none;
        color: #333;
        display: block;
    }

.related-article-title {
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.related-article:hover .related-article-title {
    color: #0d6efd;
}

.related-article-meta {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
}