/* News list page CSS */
/* Independent class namespace: nwnl- */

.nwnl-page {
    width: 100%;
    background: #f6f7f9;
}

.nwnl-container {
    width: 100%;
    max-width: 1520px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.nwnl-banner {
    width: 100%;
    height: 375px;
    overflow: hidden;
    background: #ffffff;
}

.nwnl-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.nwnl-main {
    width: 100%;
    padding: 30px 0 82px;
}

.nwnl-location {
    width: 100%;
    margin-bottom: 18px;
}

.nwnl-location__nav {
    min-height: 42px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.nwnl-location__label {
    color: #111827;
    font-weight: 800;
}

.nwnl-location__nav a {
    color: #6b7280;
    text-decoration: none;
}

.nwnl-location__nav a:hover {
    color: #111827;
}

.nwnl-location__sep {
    color: #cbd5e1;
}

.nwnl-location__nav strong {
    color: #111827;
    font-weight: 800;
}

.nwnl-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 34px;
    align-items: start;
}

.nwnl-content {
    min-width: 0;
}

.nwnl-list-head {
    margin-bottom: 22px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--nw-border);
}

.nwnl-list-title {
    margin: 0;
    color: #111827;
    font-size: 34px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.nwnl-category-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -6px 0 24px;
}

.nwnl-category-tab {
    min-height: 40px;
    padding: 9px 18px;
    border: 1px solid var(--nw-border);
    border-radius: 999px;
    background: #ffffff;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.nwnl-category-tab:hover,
.nwnl-category-tab[data-current],
.nwnl-category-tab[data-current="true"] {
    border-color: var(--nw-primary);
    background: var(--nw-primary);
    color: #111827;
}

.nwnl-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.nwnl-card {
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--nw-border);
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transition: border-color 0.22s ease, transform 0.22s ease;
}

.nwnl-card:hover {
    border-color: rgba(252, 200, 3, 0.9);
    transform: translateY(-3px);
}

.nwnl-card__img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f8fafc;
}

.nwnl-card__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.nwnl-card:hover .nwnl-card__img img {
    transform: scale(1.04);
}

.nwnl-card__body {
    flex: 1 1 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.nwnl-category {
    color: #d9a900;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.nwnl-card h2 {
    min-height: 50px;
    margin: 9px 0 0;
    color: #111827;
    font-size: 18px;
    line-height: 1.38;
    font-weight: 800;
}

.nwnl-card h2 a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nwnl-card p {
    min-height: 48px;
    margin: 12px 0 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nwnl-date {
    margin-top: auto;
    padding-top: 16px;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
}

.nwnl-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.nwnl-page-info {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--nw-border);
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 800;
    white-space: nowrap;
}

/* Pagination */
.nwnl-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
}

/* Page info */
.nwnl-page-info {
    margin-right: 8px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

/* Number container */
.nwnl-page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Unified pagination button */
.nwnl-page-btn,
.nwnl-page-numbers a,
.nwnl-page-current {
    min-width: 42px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--nw-border, #e5e7eb);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 800;
    text-decoration: none;
    box-shadow: none;
    transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

/* Hover */
.nwnl-page-btn:hover,
.nwnl-page-numbers a:hover {
    border-color: var(--nw-primary, #fcc603);
    background: rgba(252, 200, 3, 0.14);
    color: #111827;
    transform: translateY(-1px);
}

/* Current page */
.nwnl-page-current,
.nwnl-page-numbers .page-num-current {
    border-color: var(--nw-primary, #fcc603);
    background: var(--nw-primary, #fcc603);
    color: #111827;
}

/* Dots */
.nwnl-page-dots {
    min-width: auto;
    height: 40px;
    padding: 0 4px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 800;
    pointer-events: none;
}

/* Jump form */
.nwnl-page-jump {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

.nwnl-page-jump-text {
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.nwnl-page-jump-input {
    width: 72px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--nw-border, #e5e7eb);
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    outline: none;
}

.nwnl-page-jump-input:focus {
    border-color: var(--nw-primary, #fcc603);
    box-shadow: 0 0 0 3px rgba(252, 200, 3, 0.16);
}

.nwnl-page-jump-btn {
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--nw-primary, #fcc603);
    border-radius: 999px;
    background: var(--nw-primary, #fcc603);
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.22s ease, transform 0.22s ease;
}

.nwnl-page-jump-btn:hover {
    transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 640px) {
    .nwnl-pagination {
        gap: 6px;
    }

    .nwnl-page-info {
        width: 100%;
        margin-right: 0;
        margin-bottom: 4px;
        text-align: center;
        font-size: 13px;
    }

    .nwnl-page-btn,
    .nwnl-page-numbers a,
    .nwnl-page-current {
        min-width: 36px;
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }

    .nwnl-page-dots {
        height: 36px;
    }

    .nwnl-page-jump {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 4px;
    }

    .nwnl-page-jump-input {
        width: 68px;
        height: 36px;
        font-size: 13px;
    }

    .nwnl-page-jump-btn {
        height: 36px;
        padding: 0 14px;
        font-size: 13px;
    }
}



.nwnl-sidebar {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 20px;
}

.nwnl-side-box {
    padding: 24px;
    border: 1px solid var(--nw-border);
    border-radius: 10px;
    background: #ffffff;
}

.nwnl-side-title {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--nw-border);
    color: #111827;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 800;
}

.nwnl-latest-list {
    display: grid;
    gap: 14px;
}

.nwnl-side-categories {
    display: grid;
    gap: 10px;
}

.nwnl-side-category {
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid #edf0f3;
    border-radius: 8px;
    background: #f8fafc;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.nwnl-side-category::after {
    content: "›";
    color: #9ca3af;
    font-size: 18px;
    line-height: 1;
    transition: color 0.22s ease, transform 0.22s ease;
}

.nwnl-side-category:hover,
.nwnl-side-category[data-current],
.nwnl-side-category[data-current="true"] {
    border-color: var(--nw-primary);
    background: rgba(252, 200, 3, 0.16);
    color: #111827;
}

.nwnl-side-category:hover::after,
.nwnl-side-category[data-current]::after,
.nwnl-side-category[data-current="true"]::after {
    color: #111827;
    transform: translateX(2px);
}

.nwnl-latest {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    text-decoration: none;
}

.nwnl-latest img {
    display: block;
    width: 96px;
    height: 70px;
    border-radius: 6px;
    background: #f8fafc;
    object-fit: cover;
    object-position: center;
}

.nwnl-latest strong {
    color: #111827;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nwnl-latest small {
    display: block;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.4;
}

.nwnl-side-box--quote {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.nwnl-side-box--quote .nwnl-side-title {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.14);
}

.nwnl-side-box--quote p {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    line-height: 1.75;
}

.nwnl-side-box--quote a {
    width: 100%;
    height: 42px;
    margin-top: 18px;
    border-radius: 999px;
    background: var(--nw-primary);
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 1440px) and (min-width: 1025px) {
    .nwnl-container {
        max-width: 1360px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .nwnl-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 28px;
    }

    .nwnl-grid {
        gap: 20px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .nwnl-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .nwnl-layout {
        grid-template-columns: 1fr;
    }

    .nwnl-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nwnl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .nwnl-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .nwnl-banner {
        height: auto;
    }

    .nwnl-banner img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .nwnl-main {
        padding: 20px 0 52px;
    }

    .nwnl-location__nav {
        min-height: auto;
        font-size: 13px;
    }

    .nwnl-list-title {
        font-size: 28px;
    }

    .nwnl-category-bar {
        flex-wrap: nowrap;
        margin-bottom: 20px;
        padding-bottom: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nwnl-category-tab {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 8px 14px;
        font-size: 13px;
    }

    .nwnl-layout {
        grid-template-columns: 1fr;
    }

    .nwnl-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .nwnl-sidebar {
        position: static;
    }

    .nwnl-side-box {
        padding: 20px;
    }
    
    /*翻页样式*/
    /* News pagination mobile/tablet */
    .nwnl-pagination {
        gap: 6px;
        margin-top: 28px;
        padding: 0 12px;
    }
    
    .nwnl-page-info {
        width: 100%;
        margin: 0 0 6px;
        text-align: center;
        font-size: 12px;
        font-weight: 600;
        color: #9ca3af;
    }
    
    /* 移动端隐藏 First / Last */
    .nwnl-page-first,
    .nwnl-page-last {
        display: none;
    }
    
    .nwnl-page-numbers {
        gap: 5px;
    }
    
    .nwnl-page-btn,
    .nwnl-page-numbers a,
    .nwnl-page-current {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        font-size: 12px;
    }
    
    .nwnl-page-prev,
    .nwnl-page-next {
        min-width: 52px;
        padding: 0 12px;
    }
    
    .nwnl-page-dots {
        height: 34px !important;
        padding: 0 1px !important;
        font-size: 15px !important;
    }
    
    /* 跳转框单独一行 */
    .nwnl-page-jump {
        width: 100%;
        margin: 8px 0 0;
        justify-content: center;
    }
    
    .nwnl-page-jump-text {
        font-size: 12px;
    }
    
    .nwnl-page-jump-input {
        width: 58px;
        height: 34px;
        padding: 0 8px;
        font-size: 12px;
    }
    
    .nwnl-page-jump-btn {
        height: 34px;
        padding: 0 13px;
        font-size: 12px;
    }
        
}

@media (max-width: 390px) {
    .nwnl-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .nwnl-list-title {
        font-size: 26px;
    }

    .nwnl-card__body {
        padding: 18px;
    }

    .nwnl-latest {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .nwnl-latest img {
        width: 82px;
        height: 62px;
    }
    /*翻页样式*/
    .nwnl-pagination {
        gap: 5px;
        padding: 0 8px;
    }
    
    .nwnl-page-btn,
    .nwnl-page-numbers a,
    .nwnl-page-current {
        min-width: 32px;
        height: 32px;
        padding: 0 9px;
        font-size: 12px;
    }
    
    .nwnl-page-prev,
    .nwnl-page-next {
        min-width: 48px;
        padding: 0 10px;
    }
    
    .nwnl-page-numbers {
        gap: 4px;
    }
    
    .nwnl-page-jump-input {
        width: 54px;
        height: 32px;
    }
    
    .nwnl-page-jump-btn {
        height: 32px;
        padding: 0 12px;
    }
    
}


/* News list v4: equal card height, left content border, no image zoom */
.nwnl-content {
    min-width: 0;
    padding: 26px;
    border: 1px solid var(--nw-border);
    border-radius: 10px;
    background: #ffffff;
}

.nwnl-list-head {
    margin-bottom: 24px !important;
    padding-bottom: 16px !important;
}

.nwnl-grid {
    align-items: stretch !important;
}

.nwnl-card {
    height: 100% !important;
    min-height: 430px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    transform: none !important;
}

.nwnl-card:hover {
    transform: none !important;
    border-color: rgba(252, 200, 3, 0.85) !important;
}

.nwnl-card__img {
    height: 190px !important;
    aspect-ratio: auto !important;
    flex: 0 0 190px !important;
}

.nwnl-card__img img {
    transform: none !important;
    transition: none !important;
}

.nwnl-card:hover .nwnl-card__img img {
    transform: none !important;
}

.nwnl-card__body {
    min-height: 240px !important;
}

.nwnl-category {
    min-height: 19px;
}

.nwnl-card h2 {
    min-height: 50px !important;
}

.nwnl-card p {
    min-height: 48px !important;
}

.nwnl-card .nwnl-date {
    margin-top: auto !important;
}

@media (max-width: 1440px) and (min-width: 1025px) {
    .nwnl-content {
        padding: 22px;
    }

    .nwnl-card {
        min-height: 410px !important;
    }

    .nwnl-card__img {
        height: 178px !important;
        flex-basis: 178px !important;
    }

    .nwnl-card__body {
        min-height: 232px !important;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .nwnl-content {
        padding: 22px;
    }

    .nwnl-card {
        min-height: 400px !important;
    }

    .nwnl-card__img {
        height: 180px !important;
        flex-basis: 180px !important;
    }
}

@media (max-width: 768px) {
    .nwnl-content {
        padding: 18px;
        border-radius: 10px;
    }

    .nwnl-card {
        min-height: auto !important;
    }

    .nwnl-card__img {
        height: auto !important;
        aspect-ratio: 16 / 10 !important;
        flex-basis: auto !important;
    }

    .nwnl-card__body {
        min-height: auto !important;
    }

    .nwnl-card h2,
    .nwnl-card p {
        min-height: auto !important;
    }
}

@media (max-width: 390px) {
    .nwnl-content {
        padding: 14px;
    }
}



/* v5 */
.nwnl-card{
    background:#fafafa !important;
    border:1px solid #e8edf3 !important;
}
.nwnl-card:hover{
    background:#ffffff !important;
    border-color:#fcc803 !important;
}
.nwnl-card__body{
    background:#fafafa;
}
.nwnl-card:hover .nwnl-card__body{
    background:#ffffff;
}
.nwnl-category{
    display:inline-flex !important;
    align-items:center;
    width:max-content;
    max-width:100%;
    min-height:24px;
    padding:4px 9px;
    border-radius:999px;
    background:rgba(252, 200, 3, 0.16);
    color:#9a7600;
    font-size:12px;
    line-height:1.3;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:0.5px;
}

/* v7: news hover interaction */
.nwnl-card {
    position: relative !important;
    isolation: isolate;
    overflow: hidden !important;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04) !important;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease !important;
    will-change: transform;
}

.nwnl-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 2;
    height: 3px;
    background: #fcc803;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s ease;
}

.nwnl-card:hover {
    transform: translateY(-8px) !important;
    border-color: #fcc803 !important;
    background: #ffffff !important;
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.14) !important;
}

.nwnl-card:hover::before {
    transform: scaleX(1);
}

.nwnl-card__img img {
    transition: transform 0.42s ease, filter 0.42s ease !important;
    will-change: transform;
}

.nwnl-card:hover .nwnl-card__img img {
    transform: scale(1.065) !important;
    filter: brightness(1.04) contrast(1.03);
}

.nwnl-card__body {
    transition: background 0.28s ease !important;
}

.nwnl-card h2 a {
    transition: color 0.22s ease;
}

.nwnl-card:hover h2 a {
    color: #9a7600 !important;
}

.nwnl-card:hover .nwnl-category {
    background: #fcc803 !important;
    color: #111827 !important;
}

.nwnl-card:hover .nwnl-date {
    color: #64748b !important;
}

.nwnl-latest {
    border-radius: 8px;
    transition: transform 0.22s ease, background 0.22s ease;
}

.nwnl-latest img {
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.nwnl-latest strong {
    transition: color 0.22s ease;
}

.nwnl-latest:hover {
    transform: translateX(4px);
    background: rgba(252, 200, 3, 0.08);
}

.nwnl-latest:hover img {
    transform: scale(1.04);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.nwnl-latest:hover strong {
    color: #9a7600;
}

@media (hover: none) {
    .nwnl-card:hover {
        transform: none !important;
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04) !important;
    }

    .nwnl-card:hover .nwnl-card__img img {
        transform: none !important;
        filter: none;
    }

    .nwnl-latest:hover {
        transform: none;
    }
}
