/* page-case-detail.css —— 检测案例详情页.html 页面私有样式（site.css 之后加载）*/
/* ============================================================
   页面专属：检测案例详情页
   ============================================================ */
/* 频道页 banner（104px 高 + 深蓝渐变遮罩） */
.page-banner{position:relative;background:#0f4a82 url('../images/banner-cases.png') center/cover;color:#fff;padding:104px 0}
.page-banner::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(9,40,72,.9) 0%,rgba(12,58,99,.74) 45%,rgba(15,74,130,.3) 100%)}
.page-banner .container{position:relative;z-index:2}
.page-banner .pb-title{font-weight:700;font-size:34px;letter-spacing:2px}
.page-banner .pb-title small{font-size:13px;font-weight:400;letter-spacing:3px;color:#9cc4ec;margin-left:14px;vertical-align:4px}
.page-banner p{font-size:14px;color:#cfe0f2;margin-top:10px}
.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}
/* 左右布局（左栏：检测服务导航 + 预约检测卡；右栏：正文） */
.detail-flex{display:flex;gap:28px;align-items:flex-start;padding:36px 0 8px}
.sidebar{flex:0 0 280px;position:sticky;top:100px}
.domain-nav{background:#fff;border:1px solid #e3ebf3;border-radius:12px;overflow:hidden}
.dn-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)}
.dn-head::before{content:"";width:4px;height:16px;background:#1a5fa8;border-radius:2px}
.dn-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px}
.dn-item{display:flex;flex-direction:column;align-items:center;gap:7px;padding:13px 6px 11px;border:1px solid #e6eef6;border-radius:10px;font-size:13px;color:#3a4a5a;transition:.22s;background:#fff}
.dn-item svg{width:26px;height:26px;stroke:#1a5fa8;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:stroke .22s}
.dn-item:hover{border-color:#1a5fa8;background:#1a5fa8;color:#fff;transform:translateY(-2px);box-shadow:0 4px 12px rgba(26,95,168,.28)}
.dn-item:hover svg{stroke:#fff}
.dn-item.active{background:#1a5fa8;border-color:#1a5fa8;color:#fff;font-weight:600}
.dn-item.active svg{stroke:#fff}
.consult-card{background:linear-gradient(170deg,#10517f,#0c3a63);border-radius:12px;color:#fff;padding:22px 20px 24px;margin-top: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;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}
/* 正文 */
.article{flex:1;min-width:0;padding:0}
.art-title{font-size:24px;color:#16324e;line-height:1.55;margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid #edf2f8}
.article h2{font-size:20px;color:#16324e;margin:36px 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}
.figure{background:#f5f8fc;border-radius:10px;height:220px;display:flex;align-items:center;justify-content:center;color:#7b93aa;font-size:13px;margin:16px 0}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.article table{width:100%;border-collapse:collapse;font-size:13px;margin:14px 0;min-width:520px}
.article th{background:#f0f5fa;color:#16324e;padding:10px 12px;border:1px solid #dbe6f1;text-align:left}
.article td{padding:9px 12px;border:1px solid #e3ebf3;color:#4a5b6d}
.article td.num{text-align:right;font-family:Menlo,Consolas,monospace}
/* 表格列宽与对齐：原先写在 th 的行内 style 上，已提到类上，便于后台富文本统一出报告表 */
.tbl-plan th:nth-child(1){width:32%}
.tbl-plan th:nth-child(2){width:40%}
.tbl-data th:nth-child(3){text-align:right}
/* 结果表中「偏高 / 异常」等需提示的判定值 */
.txt-alert{color:#b3402e}
.conclusion{background:#e8f5ee;border:1px solid #bfe3d0;border-radius:12px;padding:20px 24px;margin:18px 0}
.conclusion h3{font-size:15px;color:#0f6e50;margin-bottom:8px}
.conclusion p{margin:0;font-size:13px}
/* 相关案例（卡片横向滑动 + 领域筛选，沿用 .case-card 规范类名） */
.rel-cases{padding:44px 0 8px}
.rel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.rel-head h2{font-size:20px;color:#16324e;padding-left:12px;border-left:4px solid #1a5fa8}
.rel-nav{display:flex;gap:8px}
.rel-arrow{width:34px;height:34px;border:1px solid #d8e3ee;background:#fff;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:.2s;padding:0}
.rel-arrow svg{width:16px;height:16px;stroke:#1a5fa8;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rel-arrow:hover:not(:disabled){background:#1a5fa8;border-color:#1a5fa8}
.rel-arrow:hover:not(:disabled) svg{stroke:#fff}
.rel-arrow:disabled{opacity:.3;cursor:default}
.rel-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}
.rel-tab{padding:7px 18px;border-radius:18px;border:1px solid #d8e3ee;background:#fff;font-size:13px;color:#4a5d70;cursor:pointer;transition:.2s}
.rel-tab:hover{border-color:#9cc0e8;color:#1a5fa8}
.rel-tab.active{background:#1a5fa8;border-color:#1a5fa8;color:#fff}
.rel-cases .case-list{display:flex;gap:22px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:6px}
.rel-cases .case-list::-webkit-scrollbar{display:none}
.rel-cases .case-list .case-card{flex:0 0 369px;scroll-snap-align:start}
.case-card{background:#fff;border:1px solid #e3ebf3;border-radius:12px;overflow:hidden;transition:.2s;display:flex;flex-direction:column}
.case-card:hover{box-shadow:0 10px 26px rgba(18,50,78,.12);transform:translateY(-3px)}
.case-cover{flex:0 0 160px;display:flex;align-items:center;justify-content:center;font-size:13px;color:#fff;position:relative}
.case-cover .domain{position:absolute;top:12px;left:12px;background:rgba(255,255,255,.9);color:#124b7f;font-size:12px;padding:2px 10px;border-radius:12px}
.case-body{flex:1;padding:20px 22px;display:flex;flex-direction:column}
.case-body h3{font-size:16px;color:#16324e;margin-bottom:10px;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}
.case-body p{font-size:13px;color:#5a6b7d;margin-bottom:14px;flex:1;line-height:1.75;min-height:68px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.case-meta{display:flex;justify-content:flex-end;align-items:center;border-top:1px dashed #edf2f7;padding-top:12px}
.case-meta .link{font-size:13px;color:#1a5fa8;font-weight:600}
/* ============================================================
   平板 769–1024px：保留桌面结构，主要是收紧间距与字号
   ============================================================ */
@media (max-width:1024px){
/* 详情页专属 */
.page-banner{padding:88px 0}
.detail-flex{gap:20px}
.sidebar{flex:0 0 240px}
.article h2{font-size:18px}
.rel-cases .case-list .case-card{flex-basis:320px}
}
/* ============================================================
   移动 <=768px：抽屉导航 + 底部固定栏，布局转单列
   ============================================================ */
@media (max-width:768px){
.sec-head h2{font-size:20px}
/* CTA 带与友链带：内容保留，改纵向堆叠 */
.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}
/* 详情页专属移动端 */
.page-banner{padding:76px 0}
.page-banner::before{background:linear-gradient(180deg,rgba(9,40,72,.35) 0%,rgba(9,40,72,.82) 100%)}
.page-banner .pb-title{font-size:22px;letter-spacing:1px;text-shadow:0 2px 8px rgba(7,28,52,.45)}
.page-banner p{font-size:13px}
.crumb-bar .container{white-space:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:11px 16px}
/* 竖排必须把 align-items 从桌面端的 flex-start 改回 stretch：
   否则子项按自身内容宽度收缩，正文里 min-width:520px 的表格会把整列撑到 520px，
   手机端图片/表格/正文一起横向溢出屏幕 */
.detail-flex{flex-direction:column;align-items:stretch;padding:22px 0 8px}
.sidebar{order:2;position:static;flex:none;width:100%}
/* 预约检测卡：移动端整行宽度下，上下堆叠（电话→或→二维码）会留下大片空白、重心失衡；
   改为「左电话 / 右二维码」双列，标题整行居中，装饰分隔条不再需要 */
.consult-card{display:grid;grid-template-columns:minmax(0,1fr) 108px;column-gap:14px;align-items:center;text-align:left;padding:18px 16px 20px}
.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}
.article{order:1;padding:0}
.art-title{font-size:18px;margin-bottom:16px;padding-bottom:14px}
.article h2{font-size:17px;margin:22px 0 10px;padding-left:10px}
.article p,.article li{font-size:13.5px}
.figure{height:180px}
.conclusion{padding:15px 16px}
/* 数据表格：外层横向滚动，不隐藏任何列 */
.table-wrap{margin:12px 0}
.article table{min-width:520px}
/* 相关案例：移动端转单列，隐藏横向控制 */
.rel-cases{padding:30px 0 8px}
.rel-nav{display:none}
.rel-cases .case-list{display:grid;grid-template-columns:1fr;gap:14px;overflow:visible;scroll-snap-type:none}
.rel-cases .case-list .case-card{flex:none;scroll-snap-align:auto}
.rel-tabs{margin-bottom:16px}
}
/* ============================================================
   占位色板：图片位（缩略图 / 封面）在后台上传真实图片前的示意底色。
   仅为设计稿预览用，接入真实图片后可整段删除。
   ============================================================ */
.ph-2b6ca3{background:#2b6ca3}
.ph-3d7d5c{background:#3d7d5c}
.ph-446e8e{background:#446e8e}
.ph-5b5ea6{background:#5b5ea6}
.ph-8a6d3b{background:#8a6d3b}
.ph-a0522d{background:#a0522d}
