/* 新闻列表页样式 */

/* ==================== Banner区域 ==================== */
.nl-banner {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
}

.nl-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nl-banner-content {
    text-align: center;
    z-index: 1;
}

.nl-banner-title {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 移动端适配 */
@media (max-width: 767px) {
    .nl-banner {
        height: 150px;
    }
    
    .nl-banner-title {
        font-size: 28px;
    }
}

/* 小屏移动端适配 */
@media (max-width: 480px) {
    .nl-banner {
        height: 150px;
    }
}

/* 平板端适配 */
@media (max-width: 991px) {
    .nl-banner {
        height: 200px;
    }
}

/* 面包屑导航 */
.nl-breadcrumb {
    padding: 20px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.nl-breadcrumb-content {
    font-size: 14px;
    color: #6c757d;
}

.nl-breadcrumb-content a {
    color: #6c757d;
    text-decoration: none;
}

.nl-breadcrumb-content a:hover {
    color: #b91c1c;
    text-decoration: underline;
}

.nl-breadcrumb-current {
    font-weight: 500;
    color: #343a40;
}

/* 主体内容 */
.nl-main {
    padding: 30px 0;
}

.nl-wrapper {
    display: flex;
    gap: 30px;
}

/* 左侧侧边栏 */
.nl-sidebar {
    flex: 0 0 20%;
    max-width: 250px;
    background-color: #d93025;
    border-radius: 4px;
    overflow: hidden;
    height: fit-content;
    border: 4px #d93025 solid;
}

.nl-sidebar-header {
    padding: 30px 20px;
    text-align: center;
    color: #fff;
    background-color: #d93025;
}

.nl-sidebar-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.nl-sidebar-menu {
    background-color: #f8f9fa;
}

.nl-sidebar-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nl-sidebar-menu-item {
    border-bottom: 1px solid #fff;
}

.nl-sidebar-menu-item:last-child {
    border-bottom: none;
}

.nl-sidebar-menu-item a {
    display: block;
    padding: 15px 20px;
    color: #343a40;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 16px;
    background-color: #fff;
}

.nl-sidebar-menu-item a:hover {
    background-color: #f8f9fa;
    color: #b91c1c;
}

.nl-sidebar-menu-item.active a {
    background-color: #fff;
    color: #b91c1c;
    font-weight: 700;
}

/* 右侧内容区 */
.nl-content {
    flex: 1;
}

/* 新闻列表 */
.nl-list {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.nl-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.nl-item:last-child {
    border-bottom: none;
}

.nl-item:hover {
    background-color: #f8f9fa;
}

/* 日期区域 */
.nl-date-box {
    flex: 0 0 100px;
    text-align: center;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.nl-date-day {
    font-size: 34px;
    font-weight: bold;
    color: #6c757d;
    line-height: 1;
}

.nl-date-divider {
    width: 80px;
    height: 1px;
    background-color: #6c757d;
    margin: 8px 0;
}

.nl-date-month {
    font-size: 16px;
    color: #6c757d;
}

/* 信息区域 */
.nl-info {
    flex: 1;
}

.nl-title {
    font-size: 18px;
    font-weight: 600;
    color: #343a40;
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}

.nl-title:hover {
    color: #b91c1c;
}

.nl-title a {
    color: inherit;
    text-decoration: none;
}

.nl-title a:hover {
    color: #b91c1c;
}

.nl-title-tag {
    display: inline-block;
    font-size: 12px;
    color: #b91c1c;
    margin-right: 10px;
}

.nl-desc {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nl-link {
    font-size: 14px;
    color: #f59e0b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nl-link:hover {
    color: #d97706;
    text-decoration: underline;
}

/* 分页 */
.nl-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.nl-pagination-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 5px;
}

.nl-pagination-item,
.page-item {
    margin: 0;
}

.nl-pagination-link,
.page-link {
    display: block;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #343a40;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nl-pagination-link:hover,
.page-link:hover {
    border-color: #b91c1c;
    color: #b91c1c;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

.nl-pagination-link.active,
.page-item.active .page-link,
.page-item.active.disabled .page-link {
    background-color: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

/* 移动端适配 */
@media (max-width: 991px) {
    .nl-wrapper {
        flex-direction: column;
    }

    .nl-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .nl-date-box {
        flex: 0 0 80px;
        padding-right: 15px;
    }

    .nl-date-day {
        font-size: 28px;
    }

    .nl-title {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .nl-breadcrumb {
        padding: 15px 0;
    }

    .nl-main {
        padding: 20px 0;
    }

    .nl-item {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }

    .nl-date-box {
        flex: 0 0 auto;
        text-align: left;
        padding-right: 0;
    }

    .nl-date-day {
        font-size: 24px;
        display: inline-block;
        margin-right: 10px;
    }

    .nl-date-month {
        display: inline-block;
        margin-top: 0;
    }

    .nl-title {
        font-size: 15px;
    }

    .nl-desc {
        font-size: 13px;
    }

    .nl-pagination-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nl-pagination-link,
    .page-link {
        padding: 6px 10px;
        font-size: 14px;
    }
}

/* 小屏移动端适配 */
@media (max-width: 480px) {
    .nl-breadcrumb-content {
        font-size: 13px;
    }

    .nl-item {
        padding: 12px;
    }

    .nl-date-day {
        font-size: 20px;
    }

    .nl-date-month {
        font-size: 12px;
    }

    .nl-title {
        font-size: 14px;
    }

    .nl-desc {
        font-size: 12px;
    }

    .nl-pagination-link,
    .page-link {
        padding: 5px 8px;
        font-size: 13px;
    }
}