/* ===== new_list.css - 新闻资讯列表页模块样式 ===== */

/* ===== Banner ===== */
.nl-banner {
    position: relative;
    width: 100%;
    height: 800px;
    margin-top: 86px;
    overflow: hidden;
}

.nl-banner .banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nl-banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.3) 0%, transparent 60%);
}

.nl-banner .banner-content {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    max-width: 1584px;
    margin: 0 auto;
    padding: 0 168px;
}

.nl-banner .banner-title {
    font-size: 60px;
    font-weight: bold;
    color: #fff;
    line-height: 1;
    letter-spacing: 0.23px;
    margin-bottom: 40px;
}

.nl-banner .banner-desc {
    font-size: 22px;
    color: #fff;
    line-height: 1.6;
    max-width: 700px;
}

/* ===== Tabs ===== */
.nl-tabs {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.nl-tabs-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-left: 0;
}

.nl-tab {
    display: inline-block;
    padding: 20px 24px;
    font-size: 16px;
    color: var(--color-text);
    position: relative;
    transition: all 0.3s;
}

.nl-tab:hover {
    color: var(--color-primary);
}

.nl-tab.active {
    color: #fff;
    background: var(--color-primary);
    font-weight: bold;
}

/* ===== Content Section ===== */
.nl-content {
    background: #f6f6f6;
    padding: 80px 0 100px;
}

.nl-content .section-header {
    margin-bottom: 60px;
}

/* ===== Featured News Card ===== */
.nl-featured {
    margin-bottom: 80px;
}

.nl-featured-inner {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    min-height: 480px;
}

.nl-featured-image {
    flex: 0 0 46%;
    max-width: 46%;
    overflow: hidden;
    padding: 40px;
    padding-right: 0;
}

.nl-featured-image a {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.nl-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nl-featured-image a:hover img {
    transform: scale(1.05);
}

.nl-featured-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
}

.nl-featured-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-text);
    line-height: 1.4;
    margin-bottom: 20px;
}

.nl-featured-title a:hover {
    color: var(--color-primary);
}

.nl-featured-desc {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 28px;
    margin-bottom: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nl-featured-info .btn-more{
    width: fit-content;
}

/* ===== News Grid ===== */
.nl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.nl-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.nl-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.nl-card-image {
    width: 100%;
    height: 0;
    padding-bottom: 66.5%;
    position: relative;
    overflow: hidden;
}

.nl-card-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.nl-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nl-card:hover .nl-card-image img {
    transform: scale(1.08);
}

.nl-card-info {
    padding: 26px;
}

.nl-card-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-text);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nl-card-title a:hover {
    color: var(--color-primary);
}

.nl-card-desc {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 28px;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Pagination ===== */
.nl-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.nl-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #d9d9d9;
    background: #fff;
    transition: all 0.3s;
    color: #666;
}

.nl-page-btn img {
    width: 7px;
    margin-top: 10px;
}

.nl-pagination .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nl-pagination .pagination li {
    margin: 0;
    padding: 0;
}

.nl-pagination .pagination a,
.nl-pagination .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #d9d9d9;
    background: #fff;
    font-size: 18px;
    line-height: 1;
    color: #666;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.nl-pagination .pagination a:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

.nl-pagination .pagination .active span {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    font-weight: bold;
}

.nl-pagination .pagination .disabled span {
    color: #b6b6b6;
    background: #f5f5f5;
    border-color: #e5e5e5;
    cursor: not-allowed;
}

@media (max-width: 1200px) {
    .nl-featured-title {
        font-size: 22px;
    }
}

@media (max-width: 992px) {
    .nl-banner {
        height: 500px;
    }

    .nl-banner .banner-content {
        padding: 0 30px;
    }

    .nl-banner .banner-title {
        font-size: 40px;
        margin-bottom: 24px;
    }

    .nl-banner .banner-desc {
        font-size: 16px;
    }

    .nl-featured-inner {
        flex-direction: column;
        min-height: auto;
    }

    .nl-featured-image {
        flex: none;
        max-width: 100%;
        height: 300px;
        padding: 24px;
        padding-bottom: 0;
    }

    .nl-featured-info {
        padding: 30px;
    }

    .nl-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .nl-content {
        padding: 60px 0 80px;
    }
}

/* ===== Responsive - Mobile ===== */
@media (max-width: 768px) {
    .nl-banner {
        height: 400px;
        margin-top: 60px;
    }

    .nl-banner .banner-content {
        padding: 0 15px;
    }

    .nl-banner .banner-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .nl-banner .banner-desc {
        font-size: 14px;
    }

    .nl-tabs-inner {
        gap: 0;
    }

    .nl-tab {
        padding: 14px 20px;
        font-size: 14px;
    }

    .nl-content {
        padding: 40px 0 60px;
    }

    .nl-content .section-header {
        margin-bottom: 30px;
    }

    .nl-featured {
        margin-bottom: 40px;
    }

    .nl-featured-image {
        height: 220px;
        padding: 16px;
        padding-bottom: 0;
    }

    .nl-featured-info {
        padding: 20px;
    }

    .nl-featured-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .nl-featured-desc {
        font-size: 14px;
        line-height: 24px;
        margin-bottom: 24px;
        -webkit-line-clamp: 3;
    }

    .nl-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 50px;
    }

    .nl-card-title {
        font-size: 16px;
    }

    .nl-card-desc {
        font-size: 14px;
        line-height: 24px;
        margin-bottom: 16px;
    }

    .nl-pagination .pagination {
        gap: 8px;
    }

    .nl-pagination .pagination a,
    .nl-pagination .pagination span {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .nl-banner {
        height: 320px;
    }

    .nl-banner .banner-title {
        font-size: 28px;
    }

    .nl-pagination {
        margin-top: 0;
    }

    .nl-pagination .pagination {
        gap: 6px;
    }

    .nl-pagination .pagination a,
    .nl-pagination .pagination span {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 13px;
    }
}