@charset "utf-8";
/* ==========================================================================
   产品详情页  product-detail.css
   ========================================================================== */

/* ---------- 上部：图库 + 概要 ---------- */
.pd-top{display:flex;gap:34px;padding:26px;background:#fff;border:1px solid #e8eef7;border-radius:5px}
.pd-gal{flex:0 0 42%;max-width:430px}

/* ---------- 主图轮播 ---------- */
.pd-big{position:relative;height:360px;background:linear-gradient(180deg,#f8fbff,#eaf3fd);
  border:1px solid #e8eef7;border-radius:4px;overflow:hidden}
.pd-views{position:absolute;inset:0;overflow:hidden;touch-action:pan-y}
.pd-slides{display:flex;height:100%;will-change:transform;transition:transform .45s cubic-bezier(.4,0,.2,1)}
.pd-slide{flex:0 0 100%;display:flex;align-items:center;justify-content:center}
.pd-slide img{width:100%;height:100%;max-width:100%;object-fit:contain;-webkit-user-drag:none;user-select:none}
.pd-big .pd-tag{position:absolute;left:0;top:0;z-index:4;padding:4px 12px;background:#1a6fd4;color:#fff;font-size:12px}

/* 左右箭头 */
.pd-arw{position:absolute;top:50%;z-index:3;width:34px;height:34px;margin-top:-17px;
  display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.92);
  border:1px solid #e2ebf6;border-radius:50%;opacity:0;transition:opacity .25s,background .2s,border-color .2s}
.pd-arw svg{width:15px;height:15px;stroke:#5f7d9e;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.pd-arw.prev{left:10px}
.pd-arw.next{right:10px}
.pd-big:hover .pd-arw{opacity:1}
.pd-arw:hover{background:#1a6fd4;border-color:#1a6fd4}
.pd-arw:hover svg{stroke:#fff}

/* 计数 */
.pd-num{position:absolute;right:10px;bottom:10px;z-index:3;padding:3px 9px;
  font:12px/1.5 Arial,"Microsoft YaHei";color:#7d8b9e;background:rgba(255,255,255,.9);
  border:1px solid #e8eef7;border-radius:2px}
.pd-num b{font-weight:600;color:#1a6fd4}
.pd-num i{font-style:normal}

/* 缩略图 */
.pd-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.pd-thumbs a{flex:1 1 56px;min-width:56px;height:72px;display:flex;align-items:center;justify-content:center;
  overflow:hidden;background:#f8fbff;border:1px solid #e8eef7;border-radius:3px;transition:.2s}
.pd-thumbs a img{max-height:56px;max-width:88%;width:auto}
.pd-thumbs a:hover,.pd-thumbs a.on{border-color:#1a6fd4}

/* 只有一张图时收起控件 */
.pd-gal.is-single .pd-arw,
.pd-gal.is-single .pd-num,
.pd-gal.is-single .pd-thumbs{display:none}

/* 触屏设备没有 hover，箭头常显 */
@media(hover:none){
  .pd-arw{opacity:1}
}

.pd-info{flex:1;min-width:0;padding-top:4px}
.pd-info h1{font-size:25px;font-weight:600;line-height:1.45;color:#1b2431}
.pd-info .pd-sub{margin-top:8px;font-size:13.5px;color:#8d98a9}
.pd-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}
.pd-tags span{padding:2px 10px;font-size:12px;line-height:20px;color:#3f7cb8;
  background:#f1f7fe;border:1px solid #dcebfa;border-radius:2px}

.pd-price{margin:18px 0 4px;padding:14px 18px;background:#f6fafe;border:1px solid #e6f0fb;border-radius:4px}
.pd-price .lbl{font-size:13px;color:#8d98a9}
.pd-price b{margin-left:10px;font:700 26px/1.2 Arial,"Microsoft YaHei";color:#e8661b}
.pd-price i{font-size:13px;font-style:normal;color:#a5afbc;margin-left:8px}

/* 关键参数 */
.pd-key{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;margin-top:18px;background:#eef2f8;
  border:1px solid #eef2f8;border-radius:4px;overflow:hidden}
.pd-key div{padding:11px 16px;background:#fff;font-size:13.5px;color:#4b5665}
.pd-key span{color:#98a3b3;margin-right:8px}

/* 服务承诺 */
.pd-srv{display:flex;flex-wrap:wrap;gap:22px;margin-top:18px;padding-top:16px;border-top:1px dashed #eef1f6}
.pd-srv li{display:flex;align-items:center;gap:7px;font-size:13px;color:#6b7684}
.pd-srv svg{width:17px;height:17px;stroke:#1a6fd4;fill:none;flex:none}

.pd-btns{display:flex;gap:12px;margin-top:22px}

/* ---------- 选项卡 ---------- */
.pd-tabs{margin-top:24px;background:#fff;border:1px solid #e8eef7;border-radius:5px;overflow:hidden}
.tab-hd{display:flex;border-bottom:1px solid #e8eef7;background:#fafcff}
.tab-hd a{padding:0 30px;height:50px;line-height:50px;font-size:15px;color:#5a6677;position:relative;transition:.2s}
.tab-hd a:hover{color:#1a6fd4}
.tab-hd a.on{color:#1a6fd4;font-weight:600;background:#fff}
.tab-hd a.on::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:#1a6fd4}
.tab-bd{padding:26px 28px}
.tab-pane{display:none}
.tab-pane.on{display:block}

/* 参数表 */
.spec-table{width:100%;border-collapse:collapse;font-size:14px}
.spec-table th,.spec-table td{padding:11px 16px;border:1px solid #e8eef7;text-align:left;color:#4b5665}
.spec-table th{width:26%;background:#f6faff;font-weight:600;color:#2b3542}

/* ---------- 相关产品 ---------- */
.pd-rel{margin-top:38px}
.pd-rel-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.pd-rel-hd h2{font-size:20px;font-weight:600;color:#1b2431;letter-spacing:1px}
.pd-rel-hd h2::before{content:"";display:inline-block;width:4px;height:17px;margin-right:10px;
  vertical-align:-2px;background:#1a6fd4}
.pd-rel-hd a{font-size:13px;color:#8d98a9}
.pd-rel-hd a:hover{color:#1a6fd4}

@media(max-width:992px){
  .pd-top{flex-direction:column;gap:22px;padding:20px}
  .pd-gal{flex:none;max-width:none}
  .pd-big{height:290px}
  .pd-slide img{max-height:240px}
  .pd-arw{opacity:1}
  .tab-bd{padding:20px}
}
@media(max-width:640px){
  .pd-info h1{font-size:20px}
  .pd-big{height:230px}
  .pd-slide img{max-height:190px}
  .pd-thumbs{gap:6px}
  .pd-thumbs a{height:58px}
  .pd-thumbs a img{max-height:44px}
  .pd-arw{width:30px;height:30px;margin-top:-15px}
  .pd-key{grid-template-columns:1fr}
  .pd-btns{flex-direction:column}
  .pd-btns .btn{width:100%}
  .tab-hd a{padding:0 16px;font-size:13.5px;height:44px;line-height:44px}
  .tab-bd{padding:16px 14px}
  .spec-table th,.spec-table td{padding:9px 10px;font-size:12.8px}
  .spec-table th{width:34%}
}
