/* ==========================================================
   新闻资讯列表页 · 左轨时间轴版式（科技感）
   依赖 style.css 设计变量 + news.css 公共组件（btn/cta/empty/pager）
   仅 /news.html 引用；详情页不受影响
   ========================================================== */

/* ========== Hero：浅色渐变（与整站 hero 一致） ========== */
.nt-hero {
    position: relative;
    padding: 96px 0 44px;
    background: linear-gradient(180deg, #eef2ff 0%, var(--primary-lighter) 52%, #f8fafc 100%);
    overflow: hidden;
}
.nt-hero::before {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 58%;
    height: 100%;
    background: radial-gradient(ellipse at 82% 12%, rgba(99, 102, 241, .10) 0%, transparent 62%);
    pointer-events: none;
}
.nt-hero::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 42%;
    height: 100%;
    background: radial-gradient(ellipse at 10% 88%, rgba(14, 165, 233, .08) 0%, transparent 60%);
    pointer-events: none;
}
.nt-hero .news-container { position: relative; z-index: 1; }

.nt-hero-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: var(--gray-900, #0f172a);
    margin-bottom: 12px;
}
.nt-hero-title em {
    font-style: normal;
    background: linear-gradient(92deg, #0ea5e9 0%, #6366f1 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;
}
.nt-hero-sub {
    font-size: 15.5px;
    color: var(--gray-500, #64748b);
    max-width: 680px;
    margin-bottom: 26px;
}
.nt-stats {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 6px;
    padding: 5px 6px;
    background: rgba(255, 255, 255, .85);
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .05);
}
.nt-stat {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 7px 20px;
}
.nt-stat + .nt-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22%;
    height: 56%;
    width: 1px;
    background: var(--gray-200, #e5e7eb);
}
.nt-stat b {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(92deg, #0ea5e9, #6366f1);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;
    font-variant-numeric: tabular-nums;
}
.nt-stat span { font-size: 12.5px; color: var(--gray-500, #64748b); }

/* ========== 分类 + 搜索（位于列表区内） ========== */
.nt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 4px 0 30px;
}
.nt-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.nt-tab {
    display: inline-block;
    padding: 7px 17px;
    border-radius: 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--gray-600);
    background: #fff;
    border: 1px solid var(--gray-200);
    text-decoration: none;
    transition: all .2s;
}
.nt-tab:hover {
    color: var(--primary-dark);
    border-color: var(--primary);
    background: var(--primary-lighter);
}
.nt-tab.active {
    color: #fff;
    background: linear-gradient(92deg, #0ea5e9, #6366f1);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(56, 140, 233, .30);
}

.nt-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 300px;
    max-width: 100%;
}
.nt-search svg {
    position: absolute;
    left: 13px;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: var(--gray-400);
    stroke-width: 2;
    stroke-linecap: round;
}
.nt-search input {
    width: 100%;
    height: 38px;
    padding: 0 74px 0 36px;
    border: 1px solid var(--gray-200);
    border-radius: 19px;
    background: #fff;
    font-size: 13.5px;
    color: var(--gray-800);
    outline: none;
    transition: all .2s;
}
.nt-search input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .12);
}
.nt-search button {
    position: absolute;
    right: 4px;
    top: 4px;
    height: 30px;
    padding: 0 14px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(92deg, #0ea5e9, #6366f1);
    color: #fff;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity .2s;
}
.nt-search button:hover { opacity: .88; }

/* ========== 时间轴主体 ========== */
.nt-section {
    padding: 44px 0 56px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 420px);
}

.nt-focus {
    display: grid;
    grid-template-columns: 460px minmax(0, 1fr);
    margin-bottom: 44px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: #fff;
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s, transform .25s, border-color .25s;
}
.nt-focus:hover {
    transform: translateY(-3px);
    border-color: #bae6fd;
    box-shadow: var(--shadow-lg);
}
.nt-focus-media {
    position: relative;
    min-height: 296px;
    overflow: hidden;
    background: var(--gray-100);
}
.nt-focus-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.nt-focus:hover .nt-focus-media img { transform: scale(1.03); }
.nt-focus-flag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(92deg, #0ea5e9, #6366f1);
    box-shadow: 0 4px 12px rgba(14, 165, 233, .35);
    letter-spacing: 1px;
}
.nt-focus-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 38px;
    border-left: 1px solid var(--gray-100);
    position: relative;
}
.nt-focus-body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9, #6366f1 55%, transparent);
}
.nt-focus-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.nt-focus-body h2 {
    font-size: 23px;
    line-height: 1.45;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.3px;
    margin-bottom: 12px;
    transition: color .2s;
}
.nt-focus:hover .nt-focus-body h2 { color: var(--primary-dark); }
.nt-focus-body > p {
    font-size: 14.5px;
    line-height: 1.85;
    color: var(--gray-500);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nt-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--gray-400);
    font-variant-numeric: tabular-nums;
}
.nt-meta .dot { color: var(--gray-300); }

/* --- 轨道 --- */
.nt-timeline {
    position: relative;
    padding-left: 76px;
}
.nt-timeline::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, #0ea5e9 0%, #6366f1 55%, rgba(99, 102, 241, .12) 100%);
}

.nt-month {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0 22px;
}
.nt-month:first-child { margin-top: 0; }
.nt-month-label {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 7px 18px;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    background: #fff;
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 74px;
    z-index: 5;
}
.nt-month-count { font-size: 12px; font-weight: 400; color: var(--gray-400); }

.nt-dot {
    position: absolute;
    left: -60px;
    top: 9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, .14);
    box-sizing: border-box;
    z-index: 2;
}
.nt-node[data-cat="1"] .nt-dot { border-color: #6366f1; box-shadow: 0 0 0 4px rgba(99, 102, 241, .14); }
.nt-node[data-cat="2"] .nt-dot { border-color: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .14); }
.nt-node[data-cat="3"] .nt-dot { border-color: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, .16); }
.nt-dot-month {
    left: -63px;
    top: 3px;
    width: 24px;
    height: 24px;
    border: none;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    box-shadow: 0 0 0 5px rgba(14, 165, 233, .14);
}
.nt-dot-month::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: #fff;
}

.nt-node {
    position: relative;
    margin-bottom: 20px;
}
.nt-node:last-child { margin-bottom: 0; }

/* --- 时间轴卡片 --- */
.nt-card {
    display: flex;
    gap: 20px;
    align-items: stretch;
    padding: 20px 22px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: #fff;
    text-decoration: none;
    transition: box-shadow .25s, transform .25s, border-color .25s;
}
.nt-card:hover {
    transform: translateY(-3px);
    border-color: #bae6fd;
    box-shadow: var(--shadow-lg);
}
.nt-card-main {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.nt-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
}
.nt-read {
    font-size: 12px;
    color: var(--gray-400);
    font-variant-numeric: tabular-nums;
}
.nt-card h3 {
    font-size: 16.5px;
    line-height: 1.5;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.2px;
    margin-bottom: 7px;
    transition: color .2s;
    word-break: break-word;
}
.nt-card:hover .nt-card h3 { color: var(--primary-dark); }
.nt-card:hover h3 { color: var(--primary-dark); }
.nt-card-main > p {
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--gray-500);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nt-card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.nt-card-meta time {
    font-size: 12.5px;
    color: var(--gray-400);
    font-variant-numeric: tabular-nums;
}
.nt-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--primary);
    opacity: .75;
    transition: opacity .2s, gap .2s;
}
.nt-card:hover .nt-more { opacity: 1; gap: 9px; }

/* --- 卡片缩略图 --- */
.nt-thumb {
    flex: 0 0 256px;
    width: 256px;
    aspect-ratio: 16 / 9;
    align-self: flex-start;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-100);
    position: relative;
}
.nt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.nt-card:hover .nt-thumb img { transform: scale(1.05); }

/* 无图占位：分类色浅底 + 大字水印，弱化"缺图感" */
.nt-thumb-fallback {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 8px 10px;
    box-sizing: border-box;
}
.nt-thumb-fallback span {
    font-size: 46px;
    font-weight: 700;
    line-height: 1;
    opacity: .38;
    letter-spacing: 2px;
}
.nt-node[data-cat="0"] .nt-thumb-fallback { background: linear-gradient(135deg, #e0f2fe, #f0f9ff 70%); }
.nt-node[data-cat="0"] .nt-thumb-fallback span { color: #0284c7; }
.nt-node[data-cat="1"] .nt-thumb-fallback { background: linear-gradient(135deg, #e0e7ff, #eef2ff 70%); }
.nt-node[data-cat="1"] .nt-thumb-fallback span { color: #4f46e5; }
.nt-node[data-cat="2"] .nt-thumb-fallback { background: linear-gradient(135deg, #d1fae5, #ecfdf5 70%); }
.nt-node[data-cat="2"] .nt-thumb-fallback span { color: #059669; }
.nt-node[data-cat="3"] .nt-thumb-fallback { background: linear-gradient(135deg, #fef3c7, #fffbeb 70%); }
.nt-node[data-cat="3"] .nt-thumb-fallback span { color: #b45309; }
.nt-node[data-cat="0"] .nt-focus-media.nt-thumb-fallback { background: linear-gradient(135deg, #bae6fd, #e0f2fe 55%, #f0f9ff); }
.nt-node[data-cat="1"] .nt-focus-media.nt-thumb-fallback { background: linear-gradient(135deg, #c7d2fe, #e0e7ff 55%, #eef2ff); }
.nt-node[data-cat="2"] .nt-focus-media.nt-thumb-fallback { background: linear-gradient(135deg, #a7f3d0, #d1fae5 55%, #ecfdf5); }
.nt-node[data-cat="3"] .nt-focus-media.nt-thumb-fallback { background: linear-gradient(135deg, #fde68a, #fef3c7 55%, #fffbeb); }
.nt-focus-media.nt-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.nt-focus-media.nt-thumb-fallback > span:not(.nt-focus-flag) {
    font-size: 64px;
    opacity: .22;
    letter-spacing: 6px;
}
.nt-focus-flag { z-index: 3; }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .nt-focus { grid-template-columns: 1fr 1fr; }
    .nt-focus-media { min-height: 260px; }
    .nt-thumb { flex: 0 0 200px; width: 200px; }
    .nt-thumb-fallback span { font-size: 36px; }
}
@media (max-width: 768px) {
    .nt-hero { padding: 78px 0 38px; }
    .nt-hero-title { font-size: 29px; }
    .nt-hero-sub { font-size: 14px; margin-bottom: 20px; }
    .nt-stat { padding: 8px 14px; }
    .nt-stat b { font-size: 17px; }
    .nt-toolbar { padding-bottom: 22px; }
    .nt-focus { grid-template-columns: 1fr; }
    .nt-focus-media { min-height: 200px; }
    .nt-focus-body { padding: 22px 20px; border-left: none; border-top: 1px solid var(--gray-100); }
    .nt-focus-body h2 { font-size: 18.5px; }
    .nt-timeline { padding-left: 40px; }
    .nt-timeline::before { left: 11px; }
    .nt-dot { left: -37px; top: 10px; width: 14px; height: 14px; border-width: 2.5px; }
    .nt-dot-month { left: -40px; top: 2px; width: 22px; height: 22px; }
    .nt-month-label { top: 62px; font-size: 14px; padding: 6px 14px; }
    .nt-card { padding: 15px 15px; gap: 13px; }
    .nt-thumb { flex: 0 0 124px; width: 124px; }
    .nt-thumb-fallback span { font-size: 28px; }
    .nt-card h3 { font-size: 15px; }
    .nt-card-main > p { -webkit-line-clamp: 2; font-size: 13px; }
    .nt-more { display: none; }
}
