/* ========== 博客列表页专属样式 ========== */
/* 博客顶部Banner区 */
.blog-banner {
    position: relative;
    background-color: #000;
    color: #fff;
    padding: 60px 0;
}

.blog-banner__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blog-banner__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.blog-banner__container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-banner__title {
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 15px;
    line-height: 1.2;
}

.blog-banner__desc {
    font-size: 18px;
    color: #f1f1f1;
    max-width: 800px;
    line-height: 1.6;
}

/* 博客列表主内容区 */
.blog-list {
    background-color: #fff;
}

.blog-list__container {
    display: grid;
    grid-template-columns: 75% 25%;
    gap: 40px;
}

/* 列表头部（结果统计+排序） */
.blog-list__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.blog-list__results {
    font-size: 14px;
    color: #666;
}

.blog-list__sort {
    padding: 8px 15px;
    border: 1px solid #eee;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    outline: none;
    cursor: pointer;
}

/* 博客卡片网格 */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    position: relative;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.blog-card__tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #f58220;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 10px;
    z-index: 2;
}

.blog-card__img-wrapper {
    overflow: hidden;
    margin-bottom: 15px;
}

.blog-card__img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__img {
    transform: scale(1.05);
}

.blog-card__meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.4;
}
.blog-card__title a {
text-decoration: none;
color: #000;
}


.blog-card__desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.blog-card__readmore {
    font-size: 14px;
    font-weight: 700;
    color: #f58220;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card__readmore:hover {
    color: #e07518;
}

/* 分页控件 */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.blog-pagination__btn {
    width: 40px;
    height: 40px;
    border: 1px solid #eee;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-pagination__btn:hover {
    border-color: #f58220;
    color: #f58220;
}

.blog-pagination__active {
    background-color: #f58220;
    border-color: #f58220;
    color: #fff !important;
}

.blog-pagination__ellipsis {
    font-size: 14px;
    color: #999;
    margin: 0 5px;
}

.blog-pagination__last {
    font-size: 16px;
}

/* 右侧侧边栏 */
.blog-list__sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-sidebar__widget {
    background-color: #f9f9f9;
    padding: 25px;
}

.blog-sidebar__title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f58220;
    display: inline-block;
}

/* 侧边栏分类 */
.blog-sidebar__category-list {
    list-style: none;
}

.blog-sidebar__category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.blog-sidebar__category-item:last-child {
    border-bottom: none;
}

.blog-sidebar__category-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.blog-sidebar__category-link:hover {
    color: #f58220;
}

.blog-sidebar__category-count {
    font-size: 12px;
    color: #999;
    background-color: #eee;
    padding: 2px 8px;
    border-radius: 10px;
}

/* 侧边栏热门文章 */
.blog-sidebar__popular-list {
    list-style: none;
}

.blog-sidebar__popular-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.blog-sidebar__popular-item:last-child {
    border-bottom: none;
}

.blog-sidebar__popular-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
}

.blog-sidebar__popular-content {
    flex: 1;
}

.blog-sidebar__popular-link {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
    transition: color 0.3s ease;
}

.blog-sidebar__popular-link:hover {
    color: #f58220;
}

.blog-sidebar__popular-date {
    font-size: 12px;
    color: #999;
}

/* 侧边栏订阅模块 */
.blog-sidebar__newsletter-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.blog-sidebar__newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.blog-sidebar__newsletter-input {
    padding: 10px 15px;
    border: 1px solid #eee;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.blog-sidebar__newsletter-input:focus {
    border-color: #f58220;
}

.blog-sidebar__newsletter-btn {
    background-color: #f58220 !important;
    padding: 10px 0 !important;
    font-size: 14px !important;
    text-transform: uppercase;
    font-weight: 700;
}

.blog-sidebar__newsletter-btn:hover {
    background-color: #e07518 !important;
}

.blog-sidebar__newsletter-icon {
    position: absolute;
    bottom: -30px;
    right: 10px;
    opacity: 0.2;
}

.blog-sidebar__icon-img {
    width: 60px;
    height: 60px;
}

/* ========== 响应式适配（博客列表页） ========== */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-banner__title {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .blog-list__container {
        grid-template-columns: 1fr;
    }
    
    .blog-list__sidebar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .blog-sidebar__newsletter {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-banner__title {
        font-size: 28px;
    }
    
    .blog-banner__desc {
        font-size: 16px;
    }
    
    .blog-list__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .blog-list__sidebar {
        grid-template-columns: 1fr;
    }
    
    .blog-card__img {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .blog-banner {
        padding: 40px 0;
    }
    
    .blog-banner__title {
        font-size: 24px;
    }
    
    .blog-pagination__btn {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }
    
    .blog-sidebar__widget {
        padding: 20px;
    }
}