/* News */
:root {
    --nw: #1d64f2;
}

/* Hero: soft lake band, full width; content in the container */
.nw-hero {
    background: linear-gradient(90deg, rgba(244, 248, 255, .97) 0%, rgba(240, 246, 255, .9) 45%, rgba(235, 243, 255, .35) 100%),
                var(--hero) center 62% / cover no-repeat;
    padding: 0.935rem 0 1.53rem;
}
.nw-hero-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.275rem;
}
.nw-hero h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    font-weight: 800;
    margin: .2rem 0 .3rem;
}
.nw-hero p {
    color: #606060;
    margin: 0;
}
.nw-search {
    display: flex;
    width: 100%;
    max-width: 330px;
    background: #fff;
    border-radius: 6px;
    padding: .3rem;
    box-shadow: none;
}
.nw-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 .7rem;
    font-size: .88rem;
}
.nw-search button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 6px;
    background: var(--nw);
    color: #fff;
}

/* Category tabs */
.nw-tabs {
    display: flex;
    gap: .35rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 1.02rem 0;
}
.nw-tabs a {
    flex-shrink: 0;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    padding: .45rem 0.892rem;
    font-size: .84rem;
    color: #303038;
    background: #fff;
}
.nw-tabs a:hover {
    border-color: var(--nw);
    color: var(--nw);
}
.nw-tabs a.active {
    background: var(--nw);
    border-color: var(--nw);
    color: #fff;
}

.nw-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 1.062rem;
    align-items: start;
}

/* Tags */
.nw-tag {
    --c: #2563eb;
    display: inline-block;
    font-size: .68rem;
    font-weight: 600;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 12%, #fff);
    padding: .12rem .5rem;
    border-radius: 5px;
}
.nw-tag.sm {
    font-size: .62rem;
}
.nw-tag.solid {
    color: #fff;
    background: var(--c);
}

/* Lead block */
.nw-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.6rem;
}
.nw-big {
    position: relative;
    display: block;
    min-height: 340px;
    border-radius: 6px;
    overflow: hidden;
    color: #fff;
}
.nw-big img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.nw-big:hover img {
    transform: scale(1.04);
}
.nw-big::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 10, 30, .85) 0%, rgba(0, 10, 30, .1) 60%);
}
.nw-big-body {
    position: absolute;
    left: 1.3rem;
    right: 4.5rem;
    bottom: 1.2rem;
    z-index: 1;
}
.nw-big h2 {
    font-size: 1.45rem;
    font-weight: 800;
    margin: .55rem 0 .4rem;
    line-height: 1.25;
}
.nw-big p {
    font-size: .82rem;
    opacity: .9;
    margin-bottom: .6rem;
}
.nw-big small {
    font-size: .76rem;
    opacity: .9;
}
.nw-go {
    position: absolute;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 1;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: var(--ek-text);
    display: flex;
    align-items: center;
    justify-content: center;
}
.nw-side-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: .6rem;
}
.nw-mini {
    display: flex;
    gap: 0.637rem;
    color: var(--ek-text);
}
.nw-mini img {
    width: 110px;
    height: 74px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.nw-mini strong,
.nw-rank strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .8rem;
    line-height: 1.3;
    margin: .2rem 0;
}
.nw-mini small,
.nw-rank small {
    font-size: .7rem;
    color: var(--ek-muted);
}
.nw-mini:hover strong,
.nw-rank:hover strong,
.nw-card:hover h3 {
    color: var(--nw);
}

/* Grid */
.nw-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .9rem;
}
.nw-head h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    padding-left: .7rem;
    border-left: 4px solid var(--nw);
}
.nw-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}
.nw-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    overflow: hidden;
    color: var(--ek-text);
    transition: box-shadow .2s;
}
.nw-card:hover {
    box-shadow: none;
}
.nw-card-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.nw-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.nw-card:hover .nw-card-img img {
    transform: scale(1.05);
}
.nw-card-img .nw-tag {
    position: absolute;
    left: 10px;
    top: 10px;
}
.nw-card-body {
    padding: 0.637rem 0.722rem 0.722rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.nw-card h3 {
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: .6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nw-card small {
    margin-top: auto;
    font-size: .72rem;
    color: var(--ek-muted);
}

/* Sidebar */
.nw-side {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.nw-box {
    background: #fff;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    padding: 0.85rem;
}
.nw-box h2 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: .8rem;
}
.nw-top1 {
    position: relative;
    display: block;
    height: 190px;
    border-radius: 6px;
    overflow: hidden;
    color: #fff;
    margin-bottom: .5rem;
}
.nw-top1 img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nw-top1::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, 0) 60%);
}
.nw-top1 > div {
    position: absolute;
    left: .8rem;
    right: .8rem;
    bottom: .7rem;
    z-index: 1;
}
.nw-top1 .nw-tag {
    color: #fff;
    background: var(--nw);
}
.nw-top1 h3 {
    font-size: .95rem;
    font-weight: 800;
    margin: .35rem 0 .25rem;
}
.nw-top1 small {
    font-size: .7rem;
    opacity: .9;
}
.nw-rank {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem 0;
    color: var(--ek-text);
}
.nw-rank + .nw-rank {
    border-top: 1px solid var(--ek-border);
}
.nw-rank img {
    width: 62px;
    height: 54px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.nw-num {
    width: 18px;
    font-weight: 700;
    color: #767678;
    text-align: center;
    flex-shrink: 0;
}
.nw-period {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .35rem;
    margin-bottom: .5rem;
}
.nw-period button {
    border: 0;
    background: var(--ek-bg);
    border-radius: 6px;
    padding: .4rem;
    font-size: .8rem;
    color: #606060;
}
.nw-period button.active {
    background: var(--nw);
    color: #fff;
}
.nw-rank.compact img {
    width: 54px;
    height: 44px;
}
.nw-badge {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #e3e5e8;
    color: #303038;
    font-size: .72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nw-badge.n1 { background: #f97316; color: #fff; }
.nw-badge.n2 { background: #f59e0b; color: #fff; }
.nw-badge.n3 { background: #ec4899; color: #fff; }

/* Article */
.nw-article {
    background: #fff;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    padding: 1.36rem 1.53rem;
}
.nw-article h1 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
    margin: .6rem 0 .6rem;
}
.nw-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.02rem;
    font-size: .8rem;
    color: var(--ek-muted);
    margin-bottom: 1.1rem;
}
.nw-figure {
    position: relative;
    margin: 0 0 1.2rem;
    border-radius: 6px;
    overflow: hidden;
}
.nw-figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.nw-figure figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: .65rem;
    padding: .2rem .55rem;
    border-top-left-radius: 8px;
}
.nw-lead-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: #101010;
}
.nw-body p {
    font-size: .98rem;
    line-height: 1.8;
    color: #303038;
}
.nw-share {
    display: flex;
    align-items: center;
    gap: .5rem;
    border-top: 1px solid var(--ek-border);
    padding-top: 1rem;
    margin-top: 1.2rem;
    font-size: .85rem;
    color: var(--ek-muted);
}
.nw-share a,
.nw-share button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--ek-border);
    background: #fff;
    color: #303038;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nw-share a:hover,
.nw-share button:hover {
    background: var(--nw);
    border-color: var(--nw);
    color: #fff;
}

@media (max-width: 1199.98px) {
    .nw-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .nw-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 991.98px) {
    .nw-lead {
        grid-template-columns: minmax(0, 1fr);
    }
    .nw-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767.98px) {
    .nw-hero-row {
        flex-direction: column;
        align-items: stretch;
    }
    .nw-search {
        max-width: none;
    }
    .nw-side {
        grid-template-columns: minmax(0, 1fr);
    }
    .nw-big {
        min-height: 260px;
    }
    .nw-big h2 {
        font-size: 1.15rem;
    }
    .nw-article {
        padding: 0.935rem;
    }
    .nw-article h1 {
        font-size: 1.35rem;
    }
}
@media (max-width: 575.98px) {
    .nw-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
