/* ============================================================
   mqxn.cn 资讯列表页样式（news.html + 资讯分类页）
   每个列表页使用不同的卡片排列，避免同质化
   ============================================================ */

/* 列表页主体布局 */
.news-layout{display:grid;grid-template-columns:1fr 300px;gap:28px;align-items:start}
@media (max-width:1024px){.news-layout{grid-template-columns:1fr}}

/* ---------- 形态A：纵向混合列表（news.html 主列表） ---------- */
.news-mix{display:grid;gap:20px}
.news-mix .nm-item{display:grid;grid-template-columns:290px 1fr;background:var(--white);border:1px solid var(--line);border-radius:14px;overflow:hidden;transition:.3s}
.news-mix .nm-item:hover{box-shadow:var(--shadow-lg);border-color:#bfdcf6;transform:translateY(-3px)}
.news-mix .nm-item .nm-img{position:relative;overflow:hidden}
.news-mix .nm-item .nm-img img{width:100%;height:100%;object-fit:cover;transition:.5s}
.news-mix .nm-item:hover .nm-img img{transform:scale(1.06)}
.news-mix .nm-item .nm-img::after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(46,158,245,.15),transparent 60%)}
.news-mix .nm-item .nm-body{padding:20px 24px;display:flex;flex-direction:column}
.news-mix .nm-item h3{font-size:17px;font-weight:700;line-height:1.55;transition:.2s}
.news-mix .nm-item:hover h3{color:var(--blue-d)}
.news-mix .nm-item p{font-size:13.5px;color:var(--ink2);line-height:1.85;margin:9px 0 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.news-mix .nm-item .nm-meta{display:flex;align-items:center;gap:16px;font-size:12px;color:var(--ink3);border-top:1px dashed var(--line);padding-top:11px;margin-top:auto}
.news-mix .nm-item .nm-meta .tag{background:var(--sky);color:var(--blue-d);padding:2px 10px;border-radius:99px;font-weight:600}
.news-mix .nm-item .nm-meta svg{width:13px;height:13px}
.news-mix .nm-item .nm-meta span{display:inline-flex;align-items:center;gap:4px}
@media (max-width:640px){.news-mix .nm-item{grid-template-columns:1fr}.news-mix .nm-item .nm-img{aspect-ratio:16/9}}

/* ---------- 形态B：三列瀑布卡片（通知公告类） ---------- */
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
@media (max-width:1024px){.news-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.news-grid{grid-template-columns:1fr}}
.ng-item{background:var(--white);border:1px solid var(--line);border-radius:14px;overflow:hidden;transition:.3s;display:block}
.ng-item:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg)}
.ng-item .ng-img{position:relative;aspect-ratio:16/10;overflow:hidden}
.ng-item .ng-img img{width:100%;height:100%;object-fit:cover;transition:.5s}
.ng-item:hover .ng-img img{transform:scale(1.06)}
.ng-item .ng-date{position:absolute;right:12px;bottom:-18px;width:58px;height:58px;background:var(--blue-d);color:#fff;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 8px 18px rgba(13,80,148,.35)}
.ng-item .ng-date b{font-size:19px;line-height:1.1}
.ng-item .ng-date span{font-size:10.5px;color:rgba(255,255,255,.8)}
.ng-item .ng-body{padding:22px 20px 18px}
.ng-item .ng-body h3{font-size:15px;font-weight:700;line-height:1.6;height:48px;overflow:hidden;transition:.2s}
.ng-item:hover .ng-body h3{color:var(--blue-d)}
.ng-item .ng-body p{font-size:13px;color:var(--ink2);line-height:1.85;height:47px;overflow:hidden;margin-top:8px}
.ng-item .ng-body .ng-tag{display:inline-block;margin-top:12px;font-size:12px;color:var(--blue-d);background:var(--sky);padding:3px 12px;border-radius:99px}

/* ---------- 形态C：简洁横向列表（政策法规类） ---------- */
.news-list{border:1px solid var(--line);border-radius:14px;background:var(--white);overflow:hidden}
.news-list .nl-item{display:flex;align-items:center;gap:18px;padding:18px 22px;transition:.25s;border-bottom:1px dashed var(--line)}
.news-list .nl-item:last-child{border-bottom:none}
.news-list .nl-item:hover{background:var(--sky2)}
.news-list .nl-item .nl-no{width:44px;height:44px;border-radius:11px;background:var(--sky);color:var(--blue-d);font-weight:800;font-size:17px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.news-list .nl-item:nth-child(1) .nl-no{background:var(--blue);color:#fff}
.news-list .nl-item:nth-child(2) .nl-no{background:var(--blue-d);color:#fff}
.news-list .nl-item h3{font-size:15.5px;font-weight:700;flex:1;line-height:1.55;transition:.2s}
.news-list .nl-item:hover h3{color:var(--blue-d)}
.news-list .nl-item .nl-tag{font-size:12px;color:var(--ink3);flex-shrink:0}
.news-list .nl-item time{font-size:12.5px;color:var(--ink3);flex-shrink:0;font-variant-numeric:tabular-nums}
@media (max-width:640px){.news-list .nl-item{flex-wrap:wrap;gap:10px}.news-list .nl-item h3{flex:1 1 100%}}

/* ---------- 形态D：双列图文混合（经验分享类） ---------- */
.news-duo{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
@media (max-width:640px){.news-duo{grid-template-columns:1fr}}
.nd-card{background:var(--white);border:1px solid var(--line);border-radius:16px;overflow:hidden;transition:.3s}
.nd-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg)}
.nd-card .nd-img{aspect-ratio:16/9;overflow:hidden;position:relative}
.nd-card .nd-img img{width:100%;height:100%;object-fit:cover;transition:.5s}
.nd-card:hover .nd-img img{transform:scale(1.06)}
.nd-card .nd-img .nd-badge{position:absolute;left:14px;top:14px;background:rgba(10,58,104,.85);color:#fff;font-size:12px;padding:4px 13px;border-radius:99px}
.nd-card .nd-body{padding:20px 22px}
.nd-card .nd-body h3{font-size:16px;font-weight:700;line-height:1.55;transition:.2s}
.nd-card:hover .nd-body h3{color:var(--blue-d)}
.nd-card .nd-body p{font-size:13px;color:var(--ink2);line-height:1.85;margin:9px 0 14px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.nd-card .nd-foot{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--ink3);border-top:1px dashed var(--line);padding-top:12px}
.nd-card .nd-foot a{color:var(--blue-d);font-weight:600;display:inline-flex;align-items:center;gap:5px}
.nd-card .nd-foot svg{width:13px;height:13px}

/* ---------- 频道横幅（列表页顶部话题） ---------- */
.channel-hero{position:relative;border-radius:18px;overflow:hidden;padding:38px 40px;color:#fff;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;background-size:cover;background-position:center}
.channel-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(9,44,82,.93),rgba(13,90,165,.72))}
.channel-hero>*{position:relative;z-index:1}
.channel-hero h2{font-size:26px;letter-spacing:1px;font-weight:700}
.channel-hero p{font-size:14px;color:rgba(255,255,255,.8);margin-top:6px}
.channel-hero .ch-count{font-size:13px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);padding:8px 20px;border-radius:99px}

/* ---------- 频道筛选条 ---------- */
.ch-filter{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}
.ch-filter a{font-size:13.5px;padding:7px 18px;border-radius:99px;border:1.5px solid var(--line);color:var(--ink2);background:var(--white);transition:.25s}
.ch-filter a.on,.ch-filter a:hover{background:var(--blue);border-color:var(--blue);color:#fff}

/* ---------- 订阅/提醒卡 ---------- */
.sub-card{background:linear-gradient(120deg,var(--sky),var(--sky2));border:1px solid #d3e9fb;border-radius:14px;padding:22px;margin-bottom:20px}
.sub-card h3{font-size:15px;font-weight:700;margin-bottom:6px;color:var(--blue-dd)}
.sub-card p{font-size:12.5px;color:var(--ink2);margin-bottom:12px;line-height:1.8}
.sub-card a{display:block;text-align:center}

/* ============================================================
   资讯分类页扩展组件（政策/经验/行业 三个频道页专用）
   ============================================================ */

/* 政策要点网格（zhengce 页） */
.policy-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
@media (max-width:1024px){.policy-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.policy-grid{grid-template-columns:1fr}}
.policy-grid .pg-item{position:relative;background:var(--white);border:1px solid var(--line);border-radius:14px;padding:26px 22px 24px;overflow:hidden;transition:.3s}
.policy-grid .pg-item:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg);border-color:#bfdcf6}
.policy-grid .pg-no{position:absolute;right:14px;top:8px;font-size:44px;font-weight:800;color:var(--sky);line-height:1}
.policy-grid .pg-item h3{font-size:15.5px;font-weight:700;margin-bottom:10px;position:relative}
.policy-grid .pg-item p{font-size:13.5px;color:var(--ink2);line-height:1.85;position:relative}

/* 简洁横向列表（zhengce / hangye 页） */
.news-simple{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--white)}
.news-simple .ns-item{display:grid;grid-template-columns:150px 1fr 40px;gap:22px;align-items:center;padding:20px 26px;border-bottom:1px solid var(--line);transition:.25s}
.news-simple .ns-item:last-child{border-bottom:none}
.news-simple .ns-item:hover{background:var(--sky2)}
@media (max-width:640px){.news-simple .ns-item{grid-template-columns:1fr;gap:6px}}
.news-simple .ns-date{font-size:13px;color:var(--blue-d);font-weight:600;display:flex;align-items:center;gap:9px}
.news-simple .ns-date i{width:26px;height:26px;border-radius:8px;background:var(--sky);display:block;position:relative}
.news-simple .ns-date i::after{content:"";position:absolute;left:7px;top:6px;width:12px;height:14px;border:2px solid var(--blue);border-radius:3px}
.news-simple .ns-body h3{font-size:16px;font-weight:700;margin-bottom:5px;transition:.25s}
.news-simple .ns-item:hover .ns-body h3{color:var(--blue-d)}
.news-simple .ns-body p{font-size:13.5px;color:var(--ink2);line-height:1.8;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}
.news-simple .ns-arrow{width:34px;height:34px;border-radius:50%;background:var(--sky);display:flex;align-items:center;justify-content:center;color:var(--blue-d);transition:.3s}
.news-simple .ns-item:hover .ns-arrow{background:var(--blue);color:#fff}
.news-simple .ns-arrow svg{width:16px;height:16px}

/* 政策提示三栏（zhengce 页） */
.policy-notes{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media (max-width:1024px){.policy-notes{grid-template-columns:1fr}}
.policy-notes .pn-item{position:relative;background:var(--sky2);border:1px solid #d9ecfd;border-radius:14px;padding:22px 22px 22px 60px;transition:.3s}
.policy-notes .pn-item::before{content:"";position:absolute;left:20px;top:22px;width:24px;height:24px;border-radius:7px;background:var(--blue);opacity:.16}
.policy-notes .pn-item:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.policy-notes .pn-item h3{font-size:15.5px;font-weight:700;margin-bottom:7px;color:var(--blue-dd)}
.policy-notes .pn-item p{font-size:13.5px;color:var(--ink2);line-height:1.85}

/* 经验要点网格（jingyan 页） */
.jx-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
@media (max-width:1024px){.jx-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.jx-grid{grid-template-columns:1fr}}
.jx-grid .jx-item{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:28px 24px;text-align:center;transition:.3s}
.jx-grid .jx-item:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg);border-color:#bfdcf6}
.jx-grid .jx-ico{width:60px;height:60px;margin:0 auto 16px;border-radius:18px;background:linear-gradient(135deg,var(--blue),#57b3ff);display:flex;align-items:center;justify-content:center;box-shadow:0 12px 26px rgba(46,158,245,.3)}
.jx-grid .jx-ico svg{width:30px;height:30px;color:#fff}
.jx-grid .jx-item h3{font-size:16.5px;font-weight:700;margin-bottom:9px}
.jx-grid .jx-item p{font-size:13.5px;color:var(--ink2);line-height:1.85;text-align:left}

/* 双列图文列表（jingyan 页） */
.news-two{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
@media (max-width:1024px){.news-two{grid-template-columns:1fr}}
.news-two .nt-item{background:var(--white);border:1px solid var(--line);border-radius:16px;overflow:hidden;transition:.3s}
.news-two .nt-item:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg)}
.news-two .nt-img{aspect-ratio:16/8;overflow:hidden;display:block}
.news-two .nt-img img{width:100%;height:100%;object-fit:cover;transition:.5s}
.news-two .nt-item:hover .nt-img img{transform:scale(1.05)}
.news-two .nt-body{padding:18px 22px 20px}
.news-two .nt-body h3{font-size:16px;font-weight:700;margin-bottom:8px;line-height:1.55}
.news-two .nt-body h3 a:hover{color:var(--blue-d)}
.news-two .nt-body p{font-size:13.5px;color:var(--ink2);line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.news-two .nt-time{display:inline-block;margin-top:10px;font-size:12px;color:var(--ink3);background:var(--sky);padding:3px 12px;border-radius:99px}

/* 工种备考差异（jingyan 页） */
.jx-tabs{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--white)}
.jx-tabs .jt-row{display:grid;grid-template-columns:190px 1fr;gap:18px;align-items:center;padding:18px 24px;border-bottom:1px solid var(--line);transition:.25s}
.jx-tabs .jt-row:last-child{border-bottom:none}
.jx-tabs .jt-row:hover{background:var(--sky2)}
@media (max-width:640px){.jx-tabs .jt-row{grid-template-columns:1fr;gap:6px}}
.jx-tabs .jt-k{font-size:16px;font-weight:800;color:var(--blue-d);letter-spacing:1px;position:relative;padding-left:16px}
.jx-tabs .jt-k::before{content:"";position:absolute;left:0;top:3px;bottom:3px;width:4px;border-radius:4px;background:var(--blue)}
.jx-tabs .jt-row p{font-size:14px;color:var(--ink2);line-height:1.85}

/* 行业行情双栏（hangye 页） */
.hy-brief{display:grid;grid-template-columns:1.1fr 1fr;gap:30px;align-items:center}
@media (max-width:1024px){.hy-brief{grid-template-columns:1fr}}
.hy-brief .hb-text h2{font-size:24px;font-weight:700;margin-bottom:14px;line-height:1.5}
.hy-brief .hb-text h2 em{font-style:normal;color:var(--blue-d)}
.hy-brief .hb-text p{color:var(--ink2);font-size:14.5px;line-height:1.95;margin-bottom:14px}
.hy-brief .hb-text ul li{font-size:14px;color:var(--ink2);display:flex;gap:9px;margin:8px 0}
.hy-brief .hb-text ul li::before{content:"✓";color:var(--blue);font-weight:800}
.hy-brief .hb-img{border-radius:18px;overflow:hidden;box-shadow:var(--shadow-lg)}
.hy-brief .hb-img img{width:100%;height:100%;object-fit:cover;min-height:320px}

/* 本地用工场景（hangye 页） */
.hy-scene{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
@media (max-width:1024px){.hy-scene{grid-template-columns:1fr}}
.hy-scene .hs-item{background:var(--white);border:1px solid var(--line);border-radius:16px;overflow:hidden;transition:.3s}
.hy-scene .hs-item:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg)}
.hy-scene .hs-item img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}
.hy-scene .hs-body{padding:18px 20px 20px}
.hy-scene .hs-body h3{font-size:16px;font-weight:700;margin-bottom:7px;position:relative;padding-left:14px}
.hy-scene .hs-body h3::before{content:"";position:absolute;left:0;top:5px;bottom:5px;width:4px;border-radius:4px;background:var(--blue)}
.hy-scene .hs-body p{font-size:13.5px;color:var(--ink2);line-height:1.8}

/* ===== 资讯列表双栏布局 ===== */
.news-layout{display:grid;grid-template-columns:1fr 320px;gap:26px;align-items:start}
.news-layout .news-side{display:flex;flex-direction:column;gap:0}
.news-layout .news-side .side-box{margin-bottom:0}
@media (max-width:960px){.news-layout{grid-template-columns:1fr}}
/* ===== 频道页小标题 ===== */
.section-head{text-align:center;max-width:640px;margin:0 auto 30px}
.section-head h2{font-size:26px;font-weight:800;letter-spacing:.5px;color:var(--ink)}
.section-head h2 em{font-style:normal;color:var(--blue-d)}
.section-head p{font-size:14px;color:var(--ink2);margin-top:8px}
@media (max-width:640px){.section-head h2{font-size:21px}}
