/* 资讯页专用样式 */
:root {
    --nx-deep: #0d2c52;
    --nx-line: #e8edf5;
}

/* 页头 Banner（样式与精益管理页一致） */
.nx-hero {
    position: relative;
    min-height: clamp(320px, 30vw, 420px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0b1f3f url('../images/news.jpg') center / cover no-repeat;
}
.nx-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 24, 52, 0.88) 0%, rgba(7, 24, 52, 0.55) 55%, rgba(7, 24, 52, 0.25) 100%);
}
.nx-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(48px, 6vw, 90px) var(--gutter);
}
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 18px;
}
.breadcrumb a {
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.3s;
}
.breadcrumb a:hover {
    color: var(--gold);
}
.breadcrumb .current {
    color: #fff;
}
.nx-hero-title {
    font-size: clamp(26px, 3.2vw, 44px);
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 14px;
}
.nx-hero-title em {
    font-style: normal;
    color: var(--gold);
}
.nx-hero-desc {
    max-width: 860px;
    font-size: clamp(14px, 1.3vw, 18px);
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 1px;
    margin-bottom: clamp(24px, 3vw, 40px);
}
.nx-hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.nx-btn {
    display: inline-block;
    padding: 9px 26px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.nx-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #1a1a1a;
}
@media (max-width: 768px) {
    .nx-hero {
        min-height: 300px;
    }

    /* 小屏改为自上而下遮罩，保证文字压在图上仍清晰 */
    .nx-hero::before {
        background: linear-gradient(180deg, rgba(7, 24, 52, 0.88) 0%, rgba(7, 24, 52, 0.6) 60%, rgba(7, 24, 52, 0.35) 100%);
    }

    .nx-hero-inner {
        padding: 40px var(--gutter);
    }

    .nx-hero-btns .nx-btn {
        flex: 1;
        text-align: center;
    }
}

/* 主体 */
.nx-main {
    background: #f6f7f9;
    padding: clamp(30px, 4vw, 50px) 0 clamp(46px, 5vw, 70px);
}
.nx-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* 工具条 */
.nx-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--nx-line);
    border-radius: 12px;
}
.nx-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nx-tab {
    font: inherit;
    font-size: 14px;
    color: #555;
    background: #f4f6fa;
    border: 0;
    border-radius: 30px;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.3s;
}
.nx-tab:hover {
    color: var(--main);
}
.nx-tab.active {
    background: var(--main);
    color: #fff;
}
.nx-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nx-search input,
.nx-sort select {
    font: inherit;
    font-size: 13px;
    color: #333;
    height: 38px;
    border: 1px solid #dde4ee;
    border-radius: 6px;
    padding: 0 12px;
    background: #fff;
    outline: none;
    transition: border-color 0.3s;
}
.nx-search input {
    width: clamp(180px, 22vw, 260px);
}
.nx-sort select {
    cursor: pointer;
}
.nx-search input:focus,
.nx-sort select:focus {
    border-color: var(--main);
}
.nx-count {
    font-size: 13px;
    color: #888;
    margin: 16px 2px 18px;
}

/* 布局 */
.nx-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(20px, 2.4vw, 32px);
    align-items: start;
}
.nx-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 1.6vw, 22px);
}

/* 资讯卡片 */
.nx-card {
    background: #fff;
    border: 1px solid var(--nx-line);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.nx-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(13, 44, 82, 0.1);
}
.nx-card.is-hide {
    display: none;
}
.nx-card.is-feature {
    grid-column: span 2;
}
.nx-card.is-feature article {
    display: grid;
    grid-template-columns: 46% 1fr;
}
.nx-card.is-feature .nx-media {
    height: 100%;
    min-height: 240px;
}
.nx-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: #eef2f7;
}
.nx-media img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s;
}
.nx-card:hover .nx-media img {
    transform: scale(1.05);
}
.nx-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 4px 10px;
    background: var(--main);
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
}
.nx-body {
    padding: clamp(16px, 1.6vw, 24px);
}
.nx-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}
.nx-hot {
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 198, 2, 0.16);
    color: #b8860b;
}
.nx-title {
    font-size: clamp(16px, 1.3vw, 20px);
    font-weight: 500;
    line-height: 1.5;
    color: #16233a;
    margin-bottom: 10px;
    font-family: 'SourceHanSansSC Medium', "Microsoft Yahei", sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nx-title a:hover {
    color: var(--main);
}
.nx-desc {
    font-size: 14px;
    line-height: 1.85;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nx-detail {
    margin-top: 14px;
}
.nx-detail summary {
    font-size: 13px;
    color: var(--main);
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nx-detail summary::-webkit-details-marker {
    display: none;
}
.nx-detail summary::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s;
}
.nx-detail[open] summary::after {
    transform: rotate(-135deg);
}
.nx-detail-body {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--nx-line);
    font-size: 14px;
    line-height: 1.9;
    color: #555;
}
.nx-detail-body p + p,
.nx-detail-body ul {
    margin-top: 8px;
}
.nx-detail-body ul li {
    position: relative;
    padding-left: 14px;
}
.nx-detail-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--main);
}
.nx-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
/* 卡片内是 button（当前页内筛选），侧栏热门标签是 a（服务端 ?tag= 过滤），两者共用样式 */
.nx-tag {
    display: inline-flex;
    align-items: center;
    font: inherit;
    font-size: 12px;
    color: #7a869a;
    background: #f4f6fa;
    border: 0;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}
.nx-tag:hover,
.nx-tag.is-active {
    background: var(--main);
    color: #fff;
}
.nx-tag-clear {
    margin-left: 8px;
    color: var(--main);
    text-decoration: underline;
}

.nx-read-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--main);
}
.nx-read-all::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-top: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s;
}
.nx-read-all:hover::after {
    transform: rotate(45deg) translate(2px, -2px);
}

/* 空态 / 加载更多 */
.nx-empty {
    padding: 46px 0;
    text-align: center;
    font-size: 14px;
    color: #999;
}
.nx-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: clamp(24px, 3vw, 36px);
}
.nx-more-wrap[style*="display: none"] {
    display: none;
}
.nx-more-btn {
    font: inherit;
    font-size: 15px;
    color: var(--main);
    background: #fff;
    border: 1px solid var(--main);
    border-radius: 30px;
    padding: 11px 42px;
    cursor: pointer;
    transition: all 0.3s;
}
.nx-more-btn:hover {
    background: var(--main);
    color: #fff;
}

/* 侧栏 */
.nx-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 24px;
}
.nx-widget {
    background: #fff;
    border: 1px solid var(--nx-line);
    border-radius: 12px;
    padding: clamp(18px, 1.8vw, 24px);
}
.nx-widget-title {
    position: relative;
    font-size: 16px;
    font-weight: 500;
    color: #16233a;
    padding-left: 12px;
    margin-bottom: 16px;
    font-family: 'SourceHanSansSC Medium', "Microsoft Yahei", sans-serif;
}
.nx-widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 2px;
    background: var(--main);
}
.nx-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nx-course-list li + li {
    margin-top: 12px;
}
.nx-course-list a {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--nx-line);
    border-radius: 8px;
    transition: all 0.3s;
}
.nx-course-list a:hover {
    border-color: var(--main);
    background: #f5f9ff;
}
.nx-course-name {
    display: block;
    font-size: 14px;
    color: #16233a;
    margin-bottom: 4px;
}
.nx-course-meta {
    display: block;
    font-size: 12px;
    color: #999;
}
.nx-widget-cta p {
    font-size: 13px;
    line-height: 1.9;
    color: #666;
}
.nx-cta-phone {
    font-size: 22px !important;
    font-weight: 700;
    color: var(--main) !important;
    margin: 10px 0 14px;
}
.nx-cta-btn {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #fff;
    background: var(--main);
    border-radius: 30px;
    padding: 11px 0;
    transition: all 0.3s;
}
.nx-cta-btn:hover {
    background: var(--nx-deep);
}

/* 响应式 */
@media (max-width: 1200px) {
    .nx-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .nx-side {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .nx-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .nx-card.is-feature {
        grid-column: span 1;
    }
    .nx-card.is-feature article {
        grid-template-columns: minmax(0, 1fr);
    }
    .nx-card.is-feature .nx-media {
        min-height: 0;
    }
    .nx-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .nx-tools {
        justify-content: space-between;
    }
    .nx-search input {
        width: 100%;
    }
    .nx-search {
        flex: 1;
    }
}
@media (max-width: 600px) {
    .nx-side {
        grid-template-columns: minmax(0, 1fr);
    }
    .nx-hero-stats {
        gap: 20px;
    }
}
