

.main-content {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    margin-top: 30px;
}

.blog-posts {
    flex: 1;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.blog-header h2 {
    font-size: 24px;
    color: #1a3a5f;
}

.blog-categories {
    display: flex;
    gap: 10px;
}

.blog-category {
    padding: 8px 15px;
    background-color: #f5f7fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.blog-category:hover, .blog-category.active {
    background-color: #2a7de1;
    color: #fff;
    border-color: #2a7de1;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.post-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #2a7de1;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.post-content {
    padding: 20px;
}

.post-date {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.post-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a3a5f;
}

.post-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #888;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-link {
    color: #2a7de1;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.post-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.post-link:hover i {
    transform: translateX(5px);
}

/* 侧边栏 */
.blog-sidebar {
    flex: 0 0 300px;
}

.sidebar-widget {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 18px;
    color: #1a3a5f;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f1fd;
}

.search-box {
    display: flex;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-btn {
    background-color: #2a7de1;
    color: #fff;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.categories-list {
    list-style: none;
}

.category-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.category-item a:hover {
    color: #2a7de1;
}

.category-count {
    background-color: #e8f1fd;
    color: #2a7de1;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.popular-posts {
    list-style: none;
}

.popular-post {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.popular-post:last-child {
    border-bottom: none;
}

.popular-post-image {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

.popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.popular-post-content h4 a {
    color: #1a3a5f;
    text-decoration: none;
    transition: color 0.3s;
}

.popular-post-content h4 a:hover {
    color: #2a7de1;
}

.popular-post-date {
    color: #888;
    font-size: 12px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: #f5f7fa;
    color: #666;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}

.tag:hover {
    background-color: #2a7de1;
    color: #fff;
}

/* 分页器 */
.pagination {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover {
    background-color: #f5f7fa;
}

.page-btn.active {
    background-color: #2a7de1;
    color: #fff;
    border-color: #2a7de1;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    padding: 0 10px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .blog-sidebar {
        flex: 1;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}