/* ===== 晟达保安 党建专栏（外框度量随 about.css，此处红色主题+横排卡片） ===== */
:root{--dj-red:#dd2b15;--dj-dark:#9a1b1e}

.ab-tab:hover{color:var(--dj-red)}
.ab-tab.on{background:var(--dj-red);box-shadow:0 6px 18px rgba(160,30,20,.25)}
.ab-pages li a:hover{border-color:var(--dj-red);color:var(--dj-red)}
.ab-pages li.active span{background:var(--dj-dark);border-color:var(--dj-dark)}

/* 栏目标题 + 右侧子栏目 */
.dj-head{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:40px}
.dj-head .ab-sec{margin-bottom:0}
.dj-head .ab-sec h2{font-size:32px;letter-spacing:0}
.dj-head .ab-sec span{font-size:16px}
.dj-subtabs{display:flex;gap:28px;font-size:17px;color:#333}
.dj-subtabs a{white-space:nowrap;transition:color .2s}
.dj-subtabs a:hover{color:var(--dj-red)}
.dj-subtabs a.on{color:var(--dj-red);font-weight:600}

/* 横排文章卡片 */
.dj-list{display:flex;flex-direction:column;gap:46px}
.dj-card{display:flex;background:#fff;min-height:274px;transition:box-shadow .25s}
.dj-card:hover{box-shadow:0 10px 30px rgba(20,35,63,.12)}
.dj-card .ph{flex:0 0 460px;max-width:460px;height:274px;overflow:hidden;background:#fff}
.dj-card .ph img{width:100%;height:100%;object-fit:cover;transition:transform .6s}
.dj-card:hover .ph img{transform:scale(1.05)}
.dj-card .bd{flex:1;min-width:0;display:flex;flex-direction:column;padding:34px 40px 26px 31px}
.dj-card h3{font-size:24px;font-weight:600;color:#1a1a1a;line-height:1.4;margin-bottom:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dj-card .ds{font-size:16px;color:#555;line-height:2.2;text-align:justify;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.dj-card .meta{margin-top:auto;display:flex;align-items:center;justify-content:flex-end;gap:14px;padding-top:12px}
.dj-card .date{font-size:13px;color:#666}
.dj-card .ar{width:116px;height:16px}

/* 文章标题与信息栏（版式与新闻详情页一致，配色沿用党建红） */
.ns-ameta{margin-bottom:34px}
.ns-atitle{font-size:30px;font-weight:600;color:#1a1a1a;line-height:1.5;text-align:center}
.ns-asub{margin-top:10px;font-size:16px;color:#666;text-align:right}
.ns-bar{margin-top:22px;padding-top:16px;border-top:1px dashed var(--line);display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:80px;font-size:14px;color:#777}
.ns-fs{display:inline-flex;gap:6px}
.ns-fs button{width:30px;height:26px;border:1px solid var(--line);background:#fff;color:#666;font-size:13px;cursor:pointer;transition:.2s}
.ns-fs button:hover{border-color:var(--dj-red);color:var(--dj-red)}
.ns-fs button.on{background:var(--dj-red);border-color:var(--dj-red);color:#fff}

/* 正文字号切换 */
#nsBody.fs-small{font-size:14px}
#nsBody.fs-medium{font-size:16px}
#nsBody.fs-large{font-size:19px}

@media(max-width:1100px){
  .dj-head{flex-direction:column;align-items:flex-start;gap:12px;margin-bottom:28px}
  .dj-list{gap:28px}
  .dj-card{min-height:200px}
  .dj-card .ph{flex-basis:300px;max-width:300px;height:200px}
  .dj-card .bd{padding:20px 24px}
  .dj-card h3{font-size:18px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .dj-card .ds{-webkit-line-clamp:3;line-height:2}
  .ns-atitle{font-size:22px}
  .ns-bar{gap:12px;justify-content:flex-start}
}
@media(max-width:768px){
  .dj-head .ab-sec h2{font-size:24px}
  .dj-head .ab-sec span{font-size:14px}
  .dj-subtabs{gap:18px;font-size:15px}
  .dj-list{gap:24px}
  .dj-card{flex-direction:column;min-height:0}
  .dj-card .ph{flex:none;max-width:none;width:100%;height:auto;aspect-ratio:460/274}
  .dj-card .bd{padding:18px 16px}
  .dj-card h3{font-size:17px}
  .dj-card .ds{font-size:14px;-webkit-line-clamp:3}
  .dj-card .ar{width:90px;height:12px}
  .ns-atitle{font-size:19px;text-align:left}
}
/* ===== 党建详情：上一篇/下一篇（红色主题，度量同 news.css） ===== */
.ns-pn{margin-top:80px}
.ns-pn-item{display:flex;align-items:center;gap:12px;padding:18px 0;border-top:1px dashed var(--line);font-size:16px;color:#555;line-height:1.6}
.ns-pn-item:last-child{border-bottom:1px dashed var(--line)}
.ns-pn-item .k{flex:none;color:#999}
.ns-pn-item .t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:color .2s}
.ns-pn-item:hover .k,.ns-pn-item:hover .t{color:var(--dj-red)}
@media(max-width:768px){
  .ns-pn{margin-top:48px}
  .ns-pn-item{padding:14px 0;font-size:14px}
}
