/* ===== 晟达保安 通用栏目列表/详情（外框度量随 about.css，此处站内蓝金主题+横排卡片） ===== */

.ab-tab:hover{color:var(--navy)}
.ab-tab.on{background:var(--navy);box-shadow:0 6px 18px rgba(20,35,63,.25);color:#fff}
.ab-tab.on:hover{color:#fff}
@media(min-width:1101px){
  .ab-tabs{padding-left:0;justify-content:center}
}
.ab-pages li a:hover{border-color:var(--navy);color:var(--navy)}
.ab-pages li.active span{background:var(--navy);border-color:var(--navy)}

/* 栏目标题 + 右侧子栏目 */
.dj-head{display:flex;align-items:baseline;justify-content:space-between;gap:20px;padding-bottom:10px;border-bottom:1px solid #c9ccd2;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(--navy)}
.dj-subtabs a.on{color:var(--navy);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(--navy);color:var(--navy)}
.ns-fs button.on{background:var(--navy);border-color:var(--navy);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}
}

/* ===== 服务案例图片网格（xk.png 相框，按设计图 1920 量定：列384 行距42 列距28） =====
   切角只裁照片（clip-path 加在 img 上），相框 ::after 保持完整矩形，金色角不会被裁掉。
   38px = 设计图里照片斜边到角顶的距离（38/386、38/299）；xk.png 的金色角到 34px 结束，
   所以 34~38 之间留出设计图那条米色斜带。因为 .fw-item 锁了 386/299 的宽高比，百分比在任何尺寸下都是 45°。 */
.fw-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:42px 28px}
.fw-item{position:relative;display:block;aspect-ratio:386/299}
.fw-item img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;clip-path:polygon(9.84% 0,90.16% 0,100% 12.71%,100% 87.29%,90.16% 100%,9.84% 100%,0 87.29%,0 12.71%)}
.fw-item::after{content:'';position:absolute;inset:0;background:url('/assets/image/xk.png') no-repeat center/100% 100%;pointer-events:none}
.fw-pages li.active span{background:#9a1b1e;border-color:#9a1b1e}
.fw-pages li a:hover{border-color:#9a1b1e;color:#9a1b1e}
/* 图片网格的"白卡装裱"变体：不套 xk.png 相框、不切角，照片浅灰细边，标题落在卡内。
   宣传视频（about/videos）与服务案例（service/lists）两个列表都用它；上面那套相框基样式保留着，
   去掉容器上的 .fw-plain 就回到金色切角相框。 */
.fw-plain .fw-item{aspect-ratio:auto;background:#fff;border:1px solid #e2e6ec;border-radius:8px;padding:12px 12px 0;box-shadow:0 3px 14px rgba(28,43,74,.08);transition:.25s}
.fw-plain .fw-item::after{display:none}
.fw-plain .fw-item img{position:static;display:block;width:100%;height:auto;aspect-ratio:386/299;object-fit:cover;clip-path:none;border:2px solid #dfe3ea;border-radius:4px}
.fw-plain .fw-cap{display:block;margin:14px 0;padding:12px 2px 2px;font-size:16px;font-weight:500;color:#1c2b4a;text-align:center;border-top:1px dashed #e2e6ec;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fw-plain .fw-item:hover{box-shadow:0 10px 26px rgba(28,43,74,.16);transform:translateY(-3px)}
.fw-plain .fw-item:hover .fw-cap{color:#1c2b4a}
@media(max-width:1100px){
  .fw-grid{grid-template-columns:repeat(2,1fr);gap:20px}
}
@media(max-width:768px){
  .fw-grid{grid-template-columns:1fr;gap:16px}
}

/* 服务案例导语：按设计图行距 36px/20px = 1.8 */
.ab-lead.fw-lead{line-height:1.8}

/* 服务案例详情 meta 行：间隔加宽 */
.ns-bar.fw-bar{gap:80px}
@media(max-width:1100px){.ns-bar.fw-bar{gap:18px}}

/* ===== 服务项目主页（按设计图 1920 量定：h2 34px、正文 18px/36px、h3 26px、■条目） ===== */
.fw2-h2{font-size:34px;font-weight:700;color:#1f1f1f;line-height:1.4;padding-bottom:10px;border-bottom:1px solid #e6e6e6;margin:72px 0 34px}
.fw2-sec:first-child .fw2-h2{margin-top:8px}
/* 首页大图跳转进来的锚点定位：留出顶部呼吸空间 */
.fw2-sec{scroll-margin-top:24px}
.fw2-row{display:flex;gap:10px;align-items:flex-start}
.fw2-row.rev{flex-direction:row-reverse}
.fw2-tx{flex:1;min-width:0}
.fw2-img{flex:none;}
.fw2-img img{display:block;width:100%;object-fit:cover}
.fw2-img.solo{width:550px;margin-top:26px}
.fw2-p{font-size:18px;line-height:31px;color:#333;text-align:justify;margin:0 0 25px}
.fw2-h3{font-size:26px;font-weight:700;color:#1f1f1f;margin:0px 0 14px}
.fw2-ul{list-style:none;margin:0;padding:0}
.fw2-ul li{font-size:18px;line-height:38px;color:#333;display:flex}
.fw2-ul li::before{content:'■';font-size:18px;line-height:30px;color:#111;margin-right:12px;flex:none}
@media(max-width:1100px){
  .fw2-row,.fw2-row.rev{flex-direction:column}
  .fw2-img,.fw2-img.solo{width:100%}
  .fw2-h2{font-size:26px;margin:48px 0 22px}
  .fw2-h3{font-size:22px}
  .fw2-p,.fw2-ul li{font-size:16px;line-height:30px}
}

/* 人力安保板块：照片按图1 605x310 */
.fw2-img.s1{width:605px;max-width:605px}
.fw2-img.s1 img{height:310px}

/* 安检服务板块：左大图 520x330 + 右下两小图 */

.fw2-img.s2a img{}
.fw2-pair{display:flex;gap:10px;margin-top:14px}
.fw2-pair img{object-fit:cover;display:block;width:auto}

/* 智慧安防板块：右侧三图 172/172/312、高230（xm5/6/7 原生比例） */
.fw2-img.s3{width:676px;max-width:676px}
.fw2-trio{display:flex;gap:10px}
.fw2-trio img{object-fit:cover;display:block}
.fw2-trio img:nth-child(1),.fw2-trio img:nth-child(2){}
.fw2-trio img:nth-child(3){}
.fw2-img.s4{max-width:676px;}
.fw2-duo{display:flex;gap:10px}
.fw2-duo img{object-fit:cover;display:block;width:auto}
@media(max-width:1100px){.fw2-img.s4{width:100%;margin-top:18px}.fw2-duo img{flex:1;width:auto;height:200px}}
/* 医疗后勤板块：右侧三竖图，原生尺寸 */
.fw2-img.s5{max-width:676px}
.fw2-med{display:flex;gap:5px}
.fw2-med img{object-fit:cover;display:block;width:auto}
@media(max-width:1100px){.fw2-img.s5{width:100%}.fw2-med img{flex:1;width:auto}}
/* 保安器材板块：下方四横图，原生尺寸 */
.fw2-quad{display:flex;gap:10px;}
.fw2-quad img{object-fit:cover;display:block;width:auto}
@media(max-width:1100px){.fw2-quad img{flex:1 1 45%;width:auto;height:180px}}

/* 人才招聘列表（peixun/zhaopin 视图）：图左 + 标题简介 + 右侧日期块 */
.zp-list{display:flex;flex-direction:column;gap:30px}
.zp-card{display:flex;align-items:stretch;background:#fff;box-shadow:0 4px 16px rgba(20,35,63,.06);transition:box-shadow .25s}
.zp-card:hover{box-shadow:0 10px 30px rgba(20,35,63,.14)}
.zp-card .ph{overflow:hidden;background:#f2f2f2}
.zp-card .ph img{width:100%;height:100%;object-fit:cover;transition:transform .6s}
.zp-card:hover .ph img{transform:scale(1.05)}
.zp-card .bd{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;padding:20px 26px}
.zp-card h3{font-size:20px;font-weight:700;color:#1a1a1a;line-height:1.5;margin-bottom:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zp-card .ds{font-size:14px;color:#555;line-height:1.9;text-align:justify;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0}
.zp-date{flex:none;width:106px;height:88px;align-self:center;margin:0 26px 0 0;background:url('/assets/image/zp1.png') center/100% 100% no-repeat;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.zp-date b{font-size:30px;font-weight:700;line-height:1.1}
.zp-date i{font-style:normal;font-size:14px;opacity:.85}
@media(max-width:1100px){
  .zp-list{gap:20px}
  .zp-card .ph{flex-basis:200px;max-width:200px;height:130px}
  .zp-card h3{font-size:17px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .zp-card .ds{-webkit-line-clamp:2;line-height:1.7}
  .zp-date{width:72px;margin:14px 14px 14px 0}
  .zp-date b{font-size:22px}
}
@media(max-width:768px){
  .zp-card{flex-wrap:wrap}
  .zp-card .ph{flex:none;max-width:none;width:100%;height:auto;aspect-ratio:288/160}
  .zp-card .bd{width:100%;padding:16px}
  .zp-date{flex-direction:row;gap:8px;width:auto;margin:-8px 16px 16px auto;padding:6px 14px}
  .zp-date b{font-size:20px}
}

/* ===== 培训招聘详情：上一篇/下一篇 ===== */
.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(--navy)}
@media(max-width:768px){
  .ns-pn{margin-top:48px}
  .ns-pn-item{padding:14px 0;font-size:14px}
}
