
/* 博客页面主容器 */
.blogs-page {
    padding: 0;
    background-color: #fff;
}

/* 博客头部背景图 */
.blogs-header-bg {
    height: 500px;
    width: 100%;
    overflow: hidden;
}

.blogs-header-bg img {
    width: 100%;
    height: 100%;
    display: block;
}

/* 博客标题 */
.blogs-title {
       /*  font-family: "Poppins", Sans-serif; */
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.3em;
    letter-spacing: 0.4px;
    /* font-size: 3rem; */
    color: #000;
    text-align: center;
    margin: 4rem 0;
   /*  text-transform: uppercase;
    font-weight: bold; */
}

/* 博客卡片网格 */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 0 auto 3rem;
    max-width: 1000px;
    padding: 0 1rem;
}

/* 博客卡片样式 */
.blog-card {
    text-align: left;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-img {
    background-color: #d8d8d8;
    margin-bottom: 1rem;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.blog-card-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.read-more {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.read-more:hover {
    color: #004c99;
    text-decoration: underline;
}

/* 分页控件样式 */
.blogs-pagination {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 0.5rem;
    margin: 12rem 0 5rem;
}

.page-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.page-btn.active {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.page-btn:hover:not(.disabled):not(.active) {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.page-btn.disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background-color: #f9f9f9;
}

.next-btn {
    width: auto;
    padding: 0 1rem;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .blogs-title {
        font-size: 2.5rem;
    }
    
    .blogs-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .blogs-title {
        font-size: 2rem;
        margin: 2rem 0;
    }
    
    .blog-img {
        height: 180px;
    }
    
    .blogs-pagination {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    
    .page-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .blogs-title {
        font-size: 1.8rem;
        margin: 1.5rem 0;
    }
    
    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-img {
        height: 150px;
    }
    
    .blogs-pagination {
        margin: 2rem 0 3rem;
    }
}