/* ========== 新闻列表页专属样式 ========== */
/* Banner区 */
.news-list-banner {
    position: relative;
    height: 30vh;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: #222;
    color: #fff;
}

.news-list-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.news-list-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.news-list-banner-container {
    position: relative;
    z-index: 1;
    padding: 40px 0;
}

.news-list-breadcrumb {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.news-list-breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.news-list-breadcrumb a:hover {
    opacity: 0.7;
}

.news-list-title {
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.2;
}

.news-list-desc {
    font-size: 16px;
    max-width: 600px;
    line-height: 1.6;
    opacity: 0.9;
}

/* 新闻列表主体区 */
.news-list {
    padding: 60px 0;
    background-color: #fff;
}

.news-list-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

/* 左侧列表区 */
.news-list-main {
    padding-right: 20px;
}

/* 列表顶部筛选 */
.news-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.results-count {
    font-size: 14px;
    color: #666;
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label {
    font-size: 14px;
    color: #666;
}

.sort-select {
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sort-select:focus {
    border-color: #0052cc;
}

/* 新闻列表项 */
.news-articles-list {
    list-style: none;
}

.news-article-item {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.news-article-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.article-link {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.article-link:hover {
    transform: translateY(-2px);
}

.article-img {
    overflow: hidden;
}

.img-full {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.article-link:hover .img-full {
    transform: scale(1.03);
}

.article-content {
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
}

.article-category {
    text-transform: uppercase;
    font-weight: 600;
    color: #0052cc;
}

.article-date {
    color: #888;
    margin-left: 5px;
}

.article-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.article-link:hover .article-title {
    color: #0052cc;
}

.article-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.read-more {
    font-size: 13px;
    font-weight: 600;
    color: #0052cc;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.article-link:hover .read-more {
    gap: 8px;
}

/* 分页控件 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn:not(:disabled):hover {
    background-color: #0052cc;
    color: #fff;
    border-color: #0052cc;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
    list-style: none;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.page-number.active {
    background-color: #0052cc;
    color: #fff;
}

.page-number:hover:not(.active) {
    background-color: #f0f7ff;
    color: #0052cc;
}

/* 右侧侧边栏 */
.news-list-sidebar {
    padding-left: 20px;
}

/* 侧边栏通用样式 */
.sidebar-widget {
    margin-bottom: 30px;
    background-color: #fff;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0052cc;
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background-color: #fff;
    color: #666;
    border: none;
    width: 40px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: #0052cc;
    color: #fff;
}

/* 分类列表 */
.categories-list {
    list-style: none;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
    cursor: pointer;
}


.category-item a{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
    cursor: pointer;
}







.category-item:hover {
    background-color: #f8f9fa;
}

.category-item.active {
    background-color: #f0f7ff;
    padding-left: 8px;
    border-left: 3px solid #0052cc;
}

.category-name {
    font-size: 14px;
    color: #333;
    transition: color 0.3s ease;
}


.category-name a{
    text-decoration: none;
    font-size: 14px;
    color: #333;
    transition: color 0.3s ease;
}





.category-item:hover .category-name {
    color: #0052cc;
}

.category-count {
    font-size: 13px;
    color: #888;
    background-color: #f0f0f0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 最新文章 */
.recent-posts-list {
    list-style: none;
}

.recent-post-item {
    margin-bottom: 15px;
}

.post-link {
    display: flex;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.post-link:hover {
    transform: translateY(-2px);
}

.post-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    flex-shrink: 0;
}

.post-info {
    flex: 1;
}

.post-title {
    font-size: 13px;
    color: #222;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 3px;
    transition: color 0.3s ease;
}

.post-link:hover .post-title {
    color: #0052cc;
}

.post-date {
    font-size: 12px;
    color: #888;
}

/* 订阅框 */
.subscribe-widget {
    background-color: #0052cc;
    color: #fff;
    padding: 20px;
}

.subscribe-widget .widget-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
}

.subscribe-desc {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.9;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subscribe-input {
    padding: 10px 12px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    border-radius: 2px;
}

.subscribe-btn {
    background-color: #fff;
    color: #0052cc;
    border: none;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.subscribe-btn:hover {
    background-color: #f0f0f0;
    color: #0047b3;
}

/* ========== 响应式适配（新闻列表专属） ========== */
@media (max-width: 1200px) {
    .news-list-container {
        gap: 30px;
    }
    .article-link {
        grid-template-columns: 1fr 1.5fr;
    }
    .news-list-title {
        font-size: 42px;
    }
}

@media (max-width: 992px) {
    .news-list-container {
        grid-template-columns: 1fr;
    }
    .news-list-main {
        padding-right: 0;
    }
    .news-list-sidebar {
        padding-left: 0;
        margin-top: 50px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .subscribe-widget {
        grid-column: span 2;
    }
    .news-list-banner {
        height: 25vh;
        min-height: 200px;
    }
    .article-link {
        grid-template-columns: 1fr 2fr;
    }
}

@media (max-width: 768px) {
    .news-list-title {
        font-size: 36px;
    }
    .news-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .article-link {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .news-list-sidebar {
        grid-template-columns: 1fr;
    }
    .subscribe-widget {
        grid-column: span 1;
    }
    .pagination {
        gap: 5px;
    }
    .pagination-btn, .page-number {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .news-list-title {
        font-size: 28px;
    }
    .news-list-banner {
        height: 20vh;
        min-height: 180px;
    }
    .news-list-banner-container {
        padding: 30px 0;
    }
    .pagination-numbers {
        display: none;
    }
    .subscribe-widget {
        padding: 15px;
    }
    .article-meta {
        flex-wrap: wrap;
    }
    .article-date {
        margin-left: 0;
        margin-top: 5px;
    }
}