/* 文章列表页面样式 */

/* 面包屑导航 */
.breadcrumb {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e8f5e9;
}

.breadcrumb .container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.breadcrumb a {
    color: #2e7d32;
    text-decoration: none;
}

.breadcrumb span {
    color: #999;
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

/* 内容布局 */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 60px 0;
}

/* 文章网格 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

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

.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.article-content {
    padding: 25px;
}

.article-content .category {
    display: inline-block;
    padding: 4px 12px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.article-content h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-content .excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 13px;
}

.article-content .btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: #2e7d32;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.article-content .btn:hover {
    background: #1b5e20;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    background: white;
    color: #2e7d32;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #e8f5e9;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background: #2e7d32;
    color: white;
    border-color: #2e7d32;
}

/* 侧边栏 */
.sidebar {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: fit-content;
}

.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 18px;
    color: #2e7d32;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f5e9;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    margin-bottom: 10px;
}

.sidebar-widget a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar-widget a:hover {
    color: #2e7d32;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    padding: 5px 10px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 3px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-cloud a:hover {
    background: #2e7d32;
    color: white;
}

/* 响应式 */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
}
