.nnews-page-wrapper {
    width: 100%;
    background-color: #F5F5F5;
}

.nnews-page-container {
    width: 80.72916vw;
    margin: 0 auto;
    padding: 40px 0;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    min-height: 60vh;
}

.nnews-filter-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 80px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nnews-search-box {
    width: 100%;
    height: 42px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0 12px 0 40px;
    margin-bottom: 24px;
    font-size: 14px;
    background: #f8f9fc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 12px center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.nnews-search-box:focus {
    outline: none;
    border-color: #007fc6;
    box-shadow: 0 0 0 3px rgba(0, 127, 198, 0.1);
}

.nnews-filter-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #333;
}

.nnews-filter-clear {
    font-size: 13px;
    color: #007fc6;
    font-weight: normal;
    cursor: pointer;
    transition: opacity 0.3s;
}

.nnews-filter-clear:hover {
    opacity: 0.8;
}

.nnews-filter-group {
    margin-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.nnews-filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.nnews-filter-group-header {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #333;
    padding: 8px 0;
    transition: color 0.3s;
}

.nnews-filter-group-header:hover {
    color: #007fc6;
}

.nnews-filter-group-header::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #999;
    margin-left: auto;
    transition: transform 0.3s;
}

.nnews-filter-group.collapsed .nnews-filter-group-header::after {
    transform: rotate(-90deg);
}

.nnews-filter-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 4px;
    list-style: none;
    margin: 0;
}

.nnews-filter-group.collapsed .nnews-filter-list {
    display: none;
}

.nnews-filter-item {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.3s;
    list-style: none;
}

.nnews-filter-item:hover {
    background: #f5f7fa;
    color: #007fc6;
}

.nnews-filter-item input {
    display: none;
}

.nnews-filter-item label {
    cursor: pointer;
    flex: 1;
}

.nnews-filter-item.active {
    color: #007fc6;
    background: rgba(0, 127, 198, 0.08);
}

.nnews-filter-item.active::before {
    content: '✓';
    color: #007fc6;
    font-weight: bold;
}

.nnews-filter-count {
    margin-left: auto;
    color: #999;
    font-size: 12px;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
}

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

.nnews-card-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    text-decoration: none;
    display: block;
}

.nnews-card-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.nnews-card-img {
    width: 100%;
    padding-bottom: 56.25%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e8ed 100%);
}

.nnews-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nnews-card-item:hover .nnews-card-img img {
    transform: scale(1.05);
}

.nnews-card-content {
    padding: 20px;
}

.nnews-card-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nnews-card-date::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #007fc6;
    border-radius: 50%;
}

.nnews-card-title {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 700;
    transition: color 0.3s;
    margin-top: 0;
}

.nnews-card-item:hover .nnews-card-title {
    color: #007fc6;
}

.nnews-card-desc {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.nnews-card-tag {
    display: inline-block;
    font-size: 12px;
    color: #007fc6;
    background: rgba(0, 127, 198, 0.08);
    padding: 4px 12px;
    border-radius: 4px;
    margin-top: 12px;
}

.nnews-pagination {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.nnews-pagination a,
.nnews-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
    text-decoration: none;
}

.nnews-pagination a:hover {
    border-color: #007fc6;
    color: #007fc6;
}

.nnews-pagination .current {
    background: #007fc6;
    border-color: #007fc6;
    color: #fff;
}

.nnews-pagination .prev,
.nnews-pagination .next {
    padding: 0 16px;
}

.nnews-pagination .sub-pages-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.nnews-pagination .sub-pages-wrap a,
.nnews-pagination .sub-pages-wrap span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
    text-decoration: none;
}

.nnews-pagination .sub-pages-wrap a:hover {
    border-color: #007fc6;
    color: #007fc6;
}

.nnews-pagination .sub-pages-wrap .current {
    background: #007fc6;
    border-color: #007fc6;
    color: #fff;
}

.nnews-no-result {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.nnews-no-result-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.nnews-no-result-text {
    font-size: 16px;
}

.nnews-banner {
    background: #ddf3f3;
    padding: 11.5vw 0 7.8125vw 0;
    text-align: center;
    color: #333;
}

.nnews-banner-title {
    font-size: 2.5vw;
    font-weight: bold;
    margin-bottom: 1vw;
    padding: 0 4%;
    color: #333;
}

.nnews-banner-desc {
    font-size: 1.04166vw;
    opacity: 0.8;
    line-height: 1.8;
    padding: 0 4%;
    color: #666;
}

.nnews-filter-sub-list {
    padding-left: 16px;
    margin-top: 8px;
    border-left: 2px solid #f0f0f0;
    list-style: none;
}

.nnews-filter-sub-item {
    font-size: 13px;
    color: #888;
    padding: 5px 8px 5px 21px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
    list-style: none;
}

.nnews-filter-sub-item:hover {
    color: #007fc6;
    background: rgba(0, 127, 198, 0.05);
}

.nnews-filter-sub-item.active {
    color: #007fc6;
    font-weight: 500;
}

.nnews-filter-sub-item.active::before {
    content: '•';
    margin-right: 6px;
    color: #007fc6;
}

.nnews-filter-parent-item {
    list-style: none;
}

.nnews-filter-parent-header {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #666;
    position: relative;
}

.nnews-filter-parent-header:hover {
    background: #f5f7fa;
    color: #007fc6;
}

.nnews-filter-parent-item.active > .nnews-filter-parent-header {
    color: #007fc6;
    background: rgba(0, 127, 198, 0.08);
}

.nnews-filter-parent-item.active > .nnews-filter-parent-header::before {
    content: '✓';
    color: #007fc6;
    font-weight: bold;
    margin-right: 8px;
}

.nnews-filter-parent-item.active.has-children > .nnews-filter-parent-header::before {
    margin-right: 0;
}

.nnews-filter-parent-item.active.has-children .nnews-filter-toggle-btn {
    left: 28px;
}

.nnews-filter-parent-item.active > .nnews-filter-parent-header .nnews-filter-arrow:not(.placeholder) {
    border-left-color: #007fc6;
}

.nnews-filter-parent-header label {
    flex: 1;
    cursor: pointer;
}

.nnews-filter-parent-item.has-children .nnews-filter-parent-header label {
    padding-left: 26px;
}

.nnews-filter-arrow {
    display: none;
}

.nnews-filter-parent-item.collapsed .nnews-filter-sub-list {
    display: none;
}

.nnews-filter-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    flex-shrink: 0;
    background: transparent;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.nnews-filter-toggle-btn.placeholder {
    cursor: default;
    visibility: hidden;
}

.nnews-filter-toggle-btn:hover {
    background: rgba(0, 127, 198, 0.1);
}

.nnews-filter-toggle-btn.placeholder:hover {
    background: transparent;
}

.nnews-arrow-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.3s;
}

.nnews-filter-parent-item.collapsed .nnews-arrow-icon {
    transform: rotate(0deg);
}

.nnews-filter-parent-item:not(.collapsed) .nnews-arrow-icon {
    transform: rotate(90deg);
}

.nnews-filter-parent-item.no-children .nnews-arrow-icon {
    transform: rotate(90deg);
}

.nnews-filter-parent-item.has-children .nnews-filter-parent-header {
    cursor: default;
}

@media (max-width: 1200px) {
    .nnews-page-container {
        width: 90%;
        grid-template-columns: 220px 1fr;
        gap: 24px;
    }

    .nnews-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .nnews-banner-title {
        font-size: 40px;
    }

    .nnews-banner-desc {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .nnews-page-container {
        width: 90%;
        grid-template-columns: 1fr;
        padding: 20px 0;
    }

    .nnews-filter-sidebar {
        position: static;
        margin-bottom: 20px;
    }

    .nnews-filter-list {
        max-height: none;
    }

    .nnews-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .nnews-card-grid {
        grid-template-columns: 1fr;
    }

    .nnews-banner {
        padding: 1.8rem 4% 0 4%;
        background: initial;
    }

    .nnews-banner-title {
        font-size: .5rem;
        margin-bottom: .3rem;
    }

    .nnews-banner-desc {
        font-size: .28rem;
    }

    .nnews-filter-group-header {
        font-size: 14px;
    }

    .nnews-filter-item {
        font-size: 13px;
    }
}

.nnews-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.nnews-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #007fc6;
    border-radius: 50%;
    animation: nnews-spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes nnews-spin {
    to {
        transform: rotate(360deg);
    }
}

.nnews-result-count {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
    padding-left: 4px;
    scroll-margin-top: 100px;
}

.nnews-result-count span {
    color: #007fc6;
    font-weight: bold;
}
