/* Bolg CMS · 首页新闻门户 */
.np-portal { background: #f0f2f7; }

/* 快讯条 */
.np-flashbar {
    background: linear-gradient(90deg, #1e293b, #334155);
    color: #fff;
    border-bottom: 2px solid #dc2626;
}
.np-flashbar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 40px;
    overflow: hidden;
}
.np-flash-label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .65rem;
    background: #dc2626;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .5px;
}
.np-flash-track-wrap {
    flex: 1;
    height: 40px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.np-flash-track {
    display: flex;
    flex-direction: column;
    transition: transform .5s ease;
}
.np-flash-item {
    flex-shrink: 0;
    height: 40px;
    line-height: 40px;
    color: rgba(255,255,255,.92);
    font-size: .88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 2rem;
}
.np-flash-item:hover { color: #fff; }
.np-flash-date {
    flex-shrink: 0;
    font-size: .78rem;
    opacity: .65;
    white-space: nowrap;
}

/* 头条区 */
.np-headline {
    padding: 1.75rem 0 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}
.np-headline-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}
.np-brand-title {
    margin: 0 0 .35rem;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.3px;
}
.np-brand-desc {
    margin: 0;
    color: #64748b;
    font-size: .92rem;
}
.np-headline-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.np-action-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: .88rem;
    font-weight: 600;
    transition: all .2s;
}
.np-action-btn:hover { border-color: var(--brand); color: var(--brand); }
.np-action-btn.primary {
    background: var(--brand-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px rgba(37,99,235,.28);
}
.np-action-btn.primary:hover { color: #fff; transform: translateY(-1px); }

.np-headline-grid {
    display: grid;
    grid-template-columns: 1.15fr .75fr 300px;
    gap: 1rem;
    align-items: stretch;
}

/* 主头条 */
.np-main-story {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15,23,42,.06);
    transition: box-shadow .25s;
}
.np-main-story:hover { box-shadow: 0 12px 36px rgba(15,23,42,.12); }
.np-main-story-link { display: block; color: inherit; height: 100%; }
.np-main-story-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1e293b;
}
.np-main-story-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s;
}
.np-main-story:hover .np-main-story-media img { transform: scale(1.04); }
.np-story-tag {
    position: absolute;
    top: .75rem; left: .75rem;
    padding: .25rem .65rem;
    background: #dc2626;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: .5px;
}
.np-main-story-body { padding: 1.15rem 1.25rem 1.35rem; }
.np-cat {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: .45rem;
}
.np-main-story-body h2 {
    margin: 0 0 .6rem;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.4;
    color: #0f172a;
    transition: color .2s;
}
.np-main-story:hover h2 { color: var(--brand); }
.np-main-story-body p {
    margin: 0 0 .65rem;
    color: #64748b;
    font-size: .9rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.np-story-meta { font-size: .78rem; color: #94a3b8; }

/* 次头条 */
.np-sub-stories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.np-sub-story {
    position: relative;
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    min-height: 0;
    background: #1e293b;
}
.np-sub-story img {
    width: 100%; height: 100%; object-fit: cover;
    min-height: 140px;
    transition: transform .35s;
}
.np-sub-story:hover img { transform: scale(1.05); }
.np-sub-story-cap {
    position: absolute; inset: 0;
    display: flex; align-items: flex-end;
    padding: .85rem 1rem;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.78) 100%);
}
.np-sub-story-cap h3 {
    margin: 0;
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 热榜 */
.np-hotboard {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(15,23,42,.06);
}
.np-hotboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1rem;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #fff;
}
.np-hotboard-head h3 {
    margin: 0;
    font-size: .92rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.np-hotboard-head a { color: rgba(255,255,255,.75); font-size: .78rem; }
.np-hotboard-head a:hover { color: #fff; }
.np-hotboard-list {
    list-style: none;
    margin: 0;
    padding: .5rem 0;
    flex: 1;
}
.np-hotboard-list li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding: .55rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}
.np-hotboard-list li:last-child { border-bottom: 0; }
.np-rank {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: .72rem;
    font-weight: 800;
    margin-top: .1rem;
}
.np-hotboard-list li.hot-top .np-rank,
.np-rank.top { background: #dc2626; color: #fff; }
.np-rank.sm { width: 18px; height: 18px; font-size: .68rem; }
.np-hotboard-list a {
    flex: 1;
    font-size: .84rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.np-hotboard-list a:hover { color: var(--brand); }
.np-hotboard-list em {
    flex-shrink: 0;
    font-style: normal;
    font-size: .72rem;
    color: #94a3b8;
    margin-top: .15rem;
}

/* 分类导航 */
.np-catnav {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 56px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.np-catnav-inner {
    display: flex;
    gap: .25rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: .5rem 0;
}
.np-catnav-inner::-webkit-scrollbar { display: none; }
.np-catnav-item {
    flex-shrink: 0;
    padding: .45rem 1rem;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 600;
    color: #64748b;
    transition: all .2s;
    white-space: nowrap;
}
.np-catnav-item:hover,
.np-catnav-item.active {
    background: var(--brand-grad);
    color: #fff;
}

.np-flash-item em {
    font-style: normal;
    color: #fca5a5;
    margin-right: .5rem;
    font-weight: 700;
}
.np-sub-cat {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    color: #93c5fd;
    margin-bottom: .25rem;
}
.np-hot-text { flex: 1; min-width: 0; }
.np-hot-cat {
    display: block;
    font-size: .68rem;
    color: #94a3b8;
    margin-top: .15rem;
}

/* 分类导航 */
.np-catnav-item small {
    margin-left: .25rem;
    opacity: .75;
    font-size: .72rem;
}
.np-catnav-item:hover small,
.np-catnav-item.active small { opacity: .9; }

/* 分类门户主体 */
.np-cat-portals { padding: 1.5rem 0 3rem; }
.np-main-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.25rem;
    align-items: start;
}
.np-cat-portals-main { display: flex; flex-direction: column; gap: 1.25rem; }

.np-cat-section {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 14px;
    padding: 1.35rem;
    box-shadow: 0 4px 24px rgba(15,23,42,.06);
    scroll-margin-top: 80px;
}
.np-cat-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
    padding-bottom: .85rem;
    border-bottom: 2px solid #0f172a;
}
.np-cat-section-title {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}
.np-cat-index {
    font-size: .78rem;
    font-weight: 800;
    color: var(--brand);
    opacity: .7;
    font-family: ui-monospace, monospace;
}
.np-cat-section-title h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}
.np-cat-count {
    font-size: .78rem;
    color: #94a3b8;
    font-weight: 600;
    padding: .15rem .55rem;
    background: #f1f5f9;
    border-radius: 999px;
}
.np-cat-more {
    font-size: .84rem;
    font-weight: 600;
    color: var(--brand);
    white-space: nowrap;
}
.np-cat-more:hover { text-decoration: underline; }

.np-cat-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.15rem;
}

.np-cat-lead {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eef2f7;
    transition: box-shadow .25s;
}
.np-cat-lead:hover { box-shadow: 0 10px 30px rgba(15,23,42,.1); }
.np-cat-lead-link { display: block; color: inherit; }
.np-cat-lead-media {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #1e293b;
}
.np-cat-lead-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s;
}
.np-cat-lead:hover .np-cat-lead-media img { transform: scale(1.04); }
.np-top-badge {
    position: absolute;
    top: .6rem; left: .6rem;
    padding: .2rem .5rem;
    background: #dc2626;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    border-radius: 4px;
}
.np-cat-lead-body { padding: 1rem 1.1rem 1.15rem; }
.np-cat-lead-body h3 {
    margin: 0 0 .45rem;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.4;
    color: #0f172a;
    transition: color .2s;
}
.np-cat-lead:hover h3 { color: var(--brand); }
.np-cat-lead-body p {
    margin: 0 0 .5rem;
    font-size: .86rem;
    color: #64748b;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.np-cat-lead-meta { font-size: .75rem; color: #94a3b8; }

.np-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.np-cat-list li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .65rem 0;
    border-bottom: 1px dashed #eef2f7;
}
.np-cat-list li:last-child { border-bottom: 0; }
.np-cat-list-rank {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
    font-size: .72rem;
    font-weight: 800;
    border-radius: 6px;
    margin-top: .1rem;
}
.np-cat-list-body { flex: 1; min-width: 0; }
.np-cat-list-body a {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.45;
    margin-bottom: .2rem;
    transition: color .2s;
}
.np-cat-list-body a:hover { color: var(--brand); }
.np-cat-list-body time { font-size: .72rem; color: #94a3b8; }

.np-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .85rem;
    padding-top: .85rem;
    border-top: 1px solid #f1f5f9;
}
.np-cat-grid-item {
    display: block;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    transition: transform .2s;
}
.np-cat-grid-item:hover { transform: translateY(-2px); }
.np-cat-grid-thumb {
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
    margin-bottom: .45rem;
}
.np-cat-grid-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.np-cat-grid-item:hover .np-cat-grid-thumb img { transform: scale(1.05); }
.np-cat-grid-item h4 {
    margin: 0 0 .2rem;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.4;
    color: #334155;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.np-cat-grid-item:hover h4 { color: var(--brand); }
.np-cat-grid-item time { font-size: .68rem; color: #94a3b8; }

.np-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
}
.np-empty i { font-size: 3rem; color: #cbd5e1; }
.np-empty p { color: #64748b; margin: 1rem 0 1.5rem; }

/* 侧栏 */
.np-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.np-side-card {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    box-shadow: 0 4px 16px rgba(15,23,42,.05);
}
.np-side-title {
    margin: 0 0 .75rem;
    font-size: .95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .4rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid #f1f5f9;
}
.np-side-title i { color: var(--brand); }
.np-side-cats { list-style: none; margin: 0; padding: 0; }
.np-side-cats li { border-bottom: 1px solid #f8fafc; }
.np-side-cats li:last-child { border-bottom: 0; }
.np-side-cats a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .55rem 0;
    font-size: .88rem;
    font-weight: 600;
    color: #475569;
}
.np-side-cats a:hover { color: var(--brand); }
.np-side-count {
    font-size: .72rem;
    color: #94a3b8;
    background: #f1f5f9;
    padding: .1rem .45rem;
    border-radius: 999px;
    font-weight: 700;
}
.np-side-hot-cat {
    display: block;
    font-size: .68rem;
    color: #94a3b8;
    margin-top: .15rem;
}
.np-side-hotlist { list-style: none; margin: 0; padding: 0; }
.np-side-hotlist li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .45rem 0;
    border-bottom: 1px dashed #f1f5f9;
}
.np-side-hotlist li:last-child { border-bottom: 0; }
.np-side-hotlist a {
    flex: 1;
    font-size: .84rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.45;
}
.np-side-hotlist a:hover { color: var(--brand); }
.np-side-sites { display: flex; flex-direction: column; gap: .35rem; }
.np-side-site {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .4rem 0;
    font-size: .84rem;
    font-weight: 600;
    color: #475569;
}
.np-side-site:hover { color: var(--brand); }
.np-side-site-logo {
    width: 28px; height: 28px;
    border-radius: 6px;
    background: var(--brand-grad-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: .75rem;
    font-weight: 800;
    color: var(--brand);
    flex-shrink: 0;
}
.np-side-site-logo img { width: 100%; height: 100%; object-fit: cover; }

/* 占位图 */
.np-media-ph {
    width: 100%; height: 100%;
    min-height: 180px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #334155, #475569);
    color: rgba(255,255,255,.5);
    font-size: 2.5rem;
}
.np-media-ph.sm { min-height: 140px; font-size: 2rem; }
.np-media-ph.xs { min-height: 100%; font-size: 1.4rem; }

/* 响应式 */
@media (max-width: 1199.98px) {
    .np-headline-grid { grid-template-columns: 1fr 280px; }
    .np-sub-stories { display: none; }
    .np-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .np-cat-layout { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
    .np-headline-grid { grid-template-columns: 1fr; }
    .np-hotboard { max-height: none; }
    .np-main-grid { grid-template-columns: 1fr; }
    .np-catnav { top: 0; }
    .np-flash-date { display: none; }
}

@media (max-width: 767.98px) {
    .np-headline-top { flex-direction: column; align-items: flex-start; }
    .np-cat-grid { grid-template-columns: 1fr 1fr; }
    .np-cat-section { padding: 1rem; }
}
