/* page-service-detail.css —— 检测项目详情页.html 页面私有样式（site.css 之后加载）*/
/* ============================================================
   详情页专属：banner / 面包屑 / 正文 / 侧栏 / 表格
   ============================================================ */
/* ===== 详情页 banner：实验室大图 + 品牌蓝遮罩，左侧标题信息 / 右侧固定尺寸项目图 ===== */
.page-banner{position:relative;background:#0f4a82 url('../images/banner-lab.png') center/cover;color:#fff;padding:56px 0}
.page-banner::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(9,40,72,.92) 0%,rgba(12,58,99,.78) 50%,rgba(15,74,130,.45) 100%)}
.page-banner .container{position:relative;z-index:2;display:flex;align-items:center;gap:48px}
.pb-left{flex:1;min-width:0}
.page-banner h1{font-size:32px;letter-spacing:2px}
.pb-intro{margin-top:16px;max-width:560px;font-size:13px;color:#cfe0f2;line-height:1.85;text-align:justify;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.pb-btns{display:flex;gap:14px;margin-top:24px}
.pb-btn{display:inline-block;padding:11px 28px;border-radius:8px;font-size:14px;font-weight:600;letter-spacing:1px;transition:.22s}
.pb-btn-primary{background:#fff;color:#124b7f;box-shadow:0 4px 14px rgba(0,0,0,.18)}
.pb-btn-primary:hover{background:#eaf2fb;transform:translateY(-2px)}
.pb-btn-ghost{border:1px solid rgba(255,255,255,.65);color:#fff;background:transparent}
.pb-btn-ghost:hover{background:rgba(255,255,255,.14);border-color:#fff;transform:translateY(-2px)}
.pb-figure{flex:0 0 440px;width:440px;height:280px;border-radius:12px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;text-align:center;font-size:12px;color:rgba(255,255,255,.85);line-height:1.7}
/* 移动端正文首图（桌面隐藏，避免与 banner 右侧项目图重复） */
.pb-main-figure{display:none}
/* ===== 面包屑（banner 下方独立条，与频道页同款） ===== */
.crumb-bar{background:#fff;border-bottom:1px solid #edf2f8}
.crumb-bar .container{padding:14px 24px;font-size:15px;color:#7b93aa}
.crumb-bar a{color:#5a86b3}
.crumb-bar a:hover{color:#1a5fa8}
.crumb-bar b{color:#24303e;font-weight:600}
/* ===== 主区：正文 + 侧栏 ===== */
.main{display:flex;gap:30px;padding:38px 24px 8px;align-items:flex-start}
.article{flex:1;min-width:0}
.article h2{font-size:20px;color:#16324e;margin:38px 0 14px;padding-left:12px;border-left:4px solid #1a5fa8}
.article h2:first-child{margin-top:0}
.article p{color:#4a5b6d;font-size:14px;margin-bottom:12px}
.article ul{padding-left:22px;color:#4a5b6d;font-size:14px;margin-bottom:12px}
.article li{margin-bottom:6px}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:14px 0}
.table{min-width:520px;width:100%;border-collapse:collapse;font-size:13px}
.table th{background:#f0f5fa;color:#16324e;padding:10px 12px;border:1px solid #dbe6f1;text-align:left}
.table td{padding:9px 12px;border:1px solid #e3ebf3;color:#4a5b6d}
.case-refs{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}
.case-ref{border:1px solid #e3ebf3;border-radius:10px;padding:16px 18px;background:#fafcff}
.case-ref:hover{border-color:#1a5fa8}
.case-ref h4{font-size:14px;color:#16324e;margin-bottom:6px}
.case-ref p{font-size:12px;color:#0f6e50;margin:0}
.process-brief{background:#f5f8fc;border-radius:10px;padding:14px 18px;font-size:13px;color:#4a5b6d;margin-top:12px}
.faq-item{border:1px solid #e3ebf3;border-radius:10px;margin-bottom:10px;overflow:hidden}
.faq-q{padding:13px 18px;font-size:14px;font-weight:600;color:#16324e;background:#fafcff;cursor:pointer;display:flex;justify-content:space-between}
.faq-a{padding:12px 18px;font-size:13px;color:#5a6b7d;display:none}
.faq-item.open .faq-a{display:block}
.faq-item.open .faq-q::after{content:"−"}
.faq-q::after{content:"+"}
.aside{flex:0 0 320px;position:sticky;top:100px}
/* ===== 预约检测卡（与频道页同款） ===== */
.consult-card{background:linear-gradient(170deg,#10517f,#0c3a63);border-radius:12px;color:#fff;padding:22px 20px 24px;margin-bottom:18px;text-align:center;position:relative;overflow:hidden}
.consult-card::after{content:"";position:absolute;right:-36px;top:-36px;width:110px;height:110px;border-radius:50%;background:rgba(255,255,255,.05)}
.consult-card h4{font-size:16px;margin-bottom:14px;color:#fff;position:relative;z-index:2;letter-spacing:1px}
.consult-card h4::after{content:"";display:block;width:32px;height:2px;background:#5f9fd6;margin:10px auto 0;border-radius:1px}
.cc-phone{position:relative;z-index:2;margin-bottom:6px}
.cc-phone b{display:block;font-size:27px;font-weight:700;letter-spacing:1px;font-variant-numeric:tabular-nums;line-height:1.2}
.cc-phone span{font-size:12px;color:#9cc4ec}
.cc-divider{display:flex;align-items:center;gap:10px;margin:16px 0 14px;color:#5f86ad;font-size:11px;position:relative;z-index:2}
.cc-divider::before,.cc-divider::after{content:"";flex:1;height:1px;background:rgba(255,255,255,.14)}
.cc-qr{position:relative;z-index:2}
.cc-qrbox{width:132px;height:132px;background:#fff;border-radius:8px;margin:0 auto 8px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:12px;color:#5b7a95;line-height:1.6}
.cc-qr > span{font-size:12px;color:#cfe0f2}
/* ===== 热门检测服务（图卡式：16:9 缩略图 + 简介 + 了解详情） =====
   桌面/平板：侧栏内竖向卡片；移动端（见 768 块）改为「左缩略图 + 右文字」紧凑列表
   缩略图上传后自动裁切为 16:9（源图建议 800×450） */
.hot-card{border:1px solid #e3ebf3;border-radius:12px;overflow:hidden;background:#fff;margin-bottom:18px}
.hot-head{display:flex;align-items:center;gap:9px;padding:14px 16px;font-size:15px;font-weight:700;color:#16324e;border-bottom:1px solid #eef3f8;background:linear-gradient(90deg,#f2f7fc,#fff)}
.hot-head::before{content:"";width:4px;height:16px;background:#1a5fa8;border-radius:2px}
.hot-head .hot-en{margin-left:auto;font-size:10px;font-weight:400;letter-spacing:2px;color:#a9bfd4}
.hot-list{padding:12px;display:flex;flex-direction:column;gap:12px}
.hot-item{display:block;border:1px solid #e6eef6;border-radius:10px;overflow:hidden;background:#fff;transition:.22s}
.hi-thumb{display:block;aspect-ratio:16/9;background:#2b6ca3;color:rgba(255,255,255,.85);font-size:11px;text-align:center;line-height:1.7;display:flex;align-items:center;justify-content:center;overflow:hidden}
/* 后台上传的缩略图填满槽位：可替换元素的固有尺寸会突破 aspect-ratio 槽位，必须显式约束 */
.hi-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.hi-body{padding:14px 14px 15px}
.hi-name{display:block;text-align:center;font-size:15px;font-weight:700;letter-spacing:.5px;color:#16324e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .22s}
.hi-name::after{content:"";display:block;width:24px;height:2px;background:#7db4e8;border-radius:1px;margin:7px auto 0}
.hi-intro{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;color:#7b93aa;line-height:1.7;margin-top:10px;text-align:justify}
.hi-more{display:block;width:max-content;margin:12px auto 0;padding:6px 22px;border:1px solid #1a5fa8;border-radius:999px;font-size:12px;font-weight:600;color:#1a5fa8;background:#fff;transition:.22s}
.hi-more::after{content:" ›";transition:margin-left .22s}
.hot-item:hover .hi-more{background:#1a5fa8;color:#fff}
.hot-item:hover{border-color:#9cc0e8;transform:translateY(-2px);box-shadow:0 5px 14px rgba(26,95,168,.14)}
.hot-item:hover .hi-name{color:#1a5fa8}
.hot-item:hover .hi-name::after{background:#1a5fa8}
.hot-item:hover .hi-more::after{margin-left:3px}
/* ============================================================
   平板 769–1024px：保留桌面结构，主要是收紧间距与字号
   ============================================================ */
@media (max-width:1024px){
/* 详情页平板：banner 项目图收窄，侧栏收窄 */
.page-banner .container{gap:28px}
.pb-figure{flex:0 0 320px;width:320px;height:210px}
.aside{flex:0 0 280px}
}
/* ============================================================
   移动 <=768px：抽屉导航 + 底部固定栏，布局转单列
   ============================================================ */
@media (max-width:768px){
.sec-head h2{font-size:20px}
/* 详情页移动端：banner 转纵向 + 压暗，项目图下移正文首图；正文/侧栏转单列；表格横滚 */
.page-banner{padding:48px 0}
.page-banner::before{background:linear-gradient(180deg,rgba(9,40,72,.9) 0%,rgba(12,58,99,.82) 55%,rgba(15,74,130,.5) 100%)}
.page-banner .container{flex-direction:column;gap:18px;align-items:stretch}
.page-banner h1{font-size:21px;letter-spacing:1px}
.pb-intro{font-size:12.5px;margin-top:9px;-webkit-line-clamp:4}
.pb-btns{margin-top:16px;gap:10px}
.pb-btn{flex:1;text-align:center;padding:10px 0;font-size:13.5px}
.pb-figure{display:none}
/* 正文首图：横向 margin 必须为 0——父级 .article 已有 16px 内边距，
   若此处再加 16px 会形成 32px 缩进，与上下正文左边缘错位（图片看起来"没对齐"）。
   用 flex-direction:column：flex 子项会被块化，里面的 <br> 不再起换行作用，
   横排会把两行说明并排成两列；竖排才是设计意图的两行居中。overflow:hidden 兜底防溢出 */
.pb-main-figure{display:flex;flex-direction:column;margin:14px 0 0;aspect-ratio:11/7;border-radius:12px;background:#2b6ca3;align-items:center;justify-content:center;text-align:center;font-size:11.5px;color:rgba(255,255,255,.85);line-height:1.7;padding:0 12px;overflow:hidden}
/* 后台上传的真实图片必须被容器锁死：图片是可替换元素，作为 flex 子项时
   min-width:auto 等于其固有宽度，不加约束会直接把 440×280 / 16:9 的槽位撑破 */
.pb-main-figure img,.pb-figure img{width:100%;height:100%;object-fit:cover;display:block}
.crumb-bar .container{white-space:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:10px 16px;font-size:12.5px}
.crumb-bar a,.crumb-bar b{flex-shrink:0}
/* 竖排必须把 align-items 从桌面端的 flex-start 改回 stretch：
   flex-start 在竖排下等于"子项按自身内容宽度收缩"，而正文里 .table 有 min-width:520px，
   会把整个正文列撑到 520px（+32px 内边距 = 552px），手机端图片/表格/正文一起横向溢出屏幕 */
.main{flex-direction:column;align-items:stretch;padding:18px 0 8px;gap:0}
.article{padding:6px 16px 0}
.article h2{font-size:17px;margin:24px 0 10px;padding-left:10px}
.article h2:first-child{margin-top:0}
.article p{font-size:13.5px;margin-bottom:10px}
.article ul{font-size:13.5px;padding-left:20px;margin-bottom:10px}
.article li{margin-bottom:5px}
.table-wrap{margin:10px 0}
.table{min-width:520px;font-size:12px}
.table th{padding:8px 10px}
.table td{padding:7px 10px}
.case-refs{grid-template-columns:1fr;gap:10px;margin:12px 0}
.case-ref{margin-bottom:0}
.process-brief{margin-top:10px;padding:12px 14px;font-size:12.5px}
/* 移动端 .main 横向内边距被清零，正文由 .article 自带 16px；侧栏同理必须补回，
   否则预约卡与热门卡会顶到屏幕边缘（与频道页 .consult-card{margin:16px 16px 0} 口径一致） */
.aside{flex:0 0 auto;width:100%;position:static;margin-top:20px;padding:0 16px}
/* 预约检测卡：移动端整行宽度下，上下堆叠（电话→或→二维码）会留下大片空白、重心失衡；
   改为「左电话 / 右二维码」双列，标题整行居中，中间装饰分隔条不再需要 */
.consult-card{display:grid;grid-template-columns:minmax(0,1fr) 108px;column-gap:14px;align-items:center;text-align:left;padding:18px 16px 20px;margin-bottom:18px}
.consult-card h4{grid-column:1/-1;text-align:center;margin-bottom:14px}
.cc-phone{grid-column:1;margin-bottom:0}
.cc-phone b{font-size:23px}
.cc-phone span{display:block;margin-top:3px}
.cc-divider{display:none}
.cc-qr{grid-column:2}
.cc-qrbox{width:108px;height:108px;font-size:10.5px;margin-bottom:6px}
.cc-qr > span{display:block;font-size:10.5px;line-height:1.5}
/* 热门检测服务：横滑轨道在 375px 下只能露出半张卡、卡片高度参差、胶囊按钮过重；
   改为紧凑竖列表——左 16:9 缩略图 + 右文字，「了解详情」由按钮降级为文字链。
   缩略图 112 → 160px（原尺寸在 375px 下明显偏小）；卡片内边距 10 → 8px 为文字列让位。
   文字列随之收窄，简介 2 行放不下 → 行数上限 2 → 3，避免文案被截断 */
.hot-list{display:flex;flex-direction:column;padding:8px;gap:10px}
.hot-item{display:grid;grid-template-columns:160px minmax(0,1fr);column-gap:12px;align-items:center;padding:8px}
.hi-thumb{aspect-ratio:16/9;border-radius:8px;font-size:10.5px;line-height:1.5}
.hi-body{padding:0;min-width:0}
.hi-name{text-align:left;font-size:14px}
.hi-name::after{margin:6px 0 0}
.hi-intro{font-size:12px;margin-top:7px;text-align:left;-webkit-line-clamp:3}
.hi-more{display:inline-block;width:auto;margin:8px 0 0;padding:0;border:none;background:none;font-size:12px}
.cta-band{padding:38px 0}
.cta-band h2{font-size:20px}
.cta-band p{font-size:13px;margin-bottom:20px}
.cta-band .btn{display:block;width:100%;margin:0 0 10px}
.cta-band .btn:last-child{margin-bottom:0}
}
/* ============================================================
   占位色板：图片位（缩略图 / 封面）在后台上传真实图片前的示意底色。
   仅为设计稿预览用，接入真实图片后可整段删除。
   ============================================================ */
.ph-3d7d5c{background:#3d7d5c}
.ph-4a8a8f{background:#4a8a8f}
.ph-5a6fa8{background:#5a6fa8}
