@charset "utf-8";
/* 厂区实景  factory.css
   列表：#galList > li > a.gal-item（img + .gal-txt）
   灯箱：#galm > .galm-box(.galm-view>.galm-track / 箭头) + .galm-cap + .galm-thumbs
   ========================================================================== */

/* ---------- 图片列表 ---------- */
.gal-list{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}

.gal-item{position:relative;display:block;overflow:hidden;background:#eef3f9;
  border:1px solid #e6ecf4;transition:border-color .22s,box-shadow .22s}
.gal-item:hover{border-color:#c9dcf4;box-shadow:0 10px 24px rgba(16,48,92,.12)}
.gal-item:focus-visible{outline:2px solid #1b5fbe;outline-offset:2px}

.gal-item img{display:block;width:100%;height:auto;aspect-ratio:4/3;
  object-fit:cover;transition:transform .45s ease}
.gal-item:hover img{transform:scale(1.05)}

/* 标题条（覆盖在图片底部） */
.gal-txt{position:absolute;left:0;right:0;bottom:0;z-index:1;padding:30px 14px 11px;
  background:linear-gradient(transparent,rgba(6,28,60,.78));pointer-events:none;
  transition:background .28s}
.gal-item:hover .gal-txt{background:linear-gradient(transparent,rgba(6,28,60,.88))}
.gal-txt p{font-size:13px;line-height:1.5;color:#fff;letter-spacing:.5px;
  text-shadow:0 1px 3px rgba(0,0,0,.35);white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis}

/* 居中放大镜（hover 出现） */
.gal-item::before{content:"";position:absolute;left:50%;top:44%;z-index:2;
  width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;
  background-color:rgba(12,44,88,.55);border:1px solid rgba(255,255,255,.5);
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.6' cy='10.6' r='6.1'/%3E%3Cpath d='M15.2 15.2 20 20M8.4 10.6h4.4M10.6 8.4v4.4'/%3E%3C/svg%3E");
  background-size:22px 22px;background-position:center;background-repeat:no-repeat;
  opacity:0;transform:scale(.86);transition:opacity .24s,transform .24s,background-color .24s}
.gal-item:hover::before{opacity:1;transform:scale(1);background-color:rgba(27,95,190,.78)}

/* ---------- 灯箱 ---------- */
.galm{position:fixed;inset:0;z-index:210;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:16px;padding:54px 18px 18px;background:rgba(4,13,26,.965);
  opacity:0;visibility:hidden;transition:opacity .26s,visibility 0s .26s;
  overscroll-behavior:contain}
.galm.open{opacity:1;visibility:visible;transition:opacity .26s,visibility 0s}

.galm-box{position:relative;flex:none;width:100%;max-width:1080px}
.galm-view{position:relative;overflow:hidden;background:#06182f;
  border:1px solid rgba(255,255,255,.14)}
.galm-track{display:flex;align-items:center;transition:transform .45s cubic-bezier(.4,0,.2,1)}
.galm-track img{display:block;flex:0 0 100%;width:100%;height:auto;max-height:62vh;
  object-fit:contain;background:#06182f;user-select:none;-webkit-user-drag:none}

/* 左右箭头 */
.galm-arw{position:absolute;top:50%;z-index:2;width:44px;height:44px;margin-top:-22px;
  border-radius:50%;background:rgba(8,28,54,.62);border:1px solid rgba(255,255,255,.3);
  transition:.22s;backdrop-filter:blur(2px)}
.galm-arw::after{content:"";position:absolute;left:16px;top:15px;width:11px;height:11px;
  border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(45deg)}
.galm-arw.next::after{left:13px;transform:rotate(-135deg)}
.galm-arw.prev{left:14px}
.galm-arw.next{right:14px}
.galm-arw:hover{background:#1b5fbe;border-color:#1b5fbe}
.galm-arw:active{transform:scale(.94)}

/* 标题行 */
.galm-cap{display:flex;align-items:baseline;gap:12px;padding:12px 2px 0;color:#fff}
.galm-cap b{font-size:15px;font-weight:600;letter-spacing:.5px}
.galm-cap span{flex:1;min-width:0;font-size:12.5px;color:#93a8c2;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.galm-cap i{font-style:normal;margin-left:auto;font:400 12.5px/1 Arial;color:#7f96b4;
  letter-spacing:1px}

/* 缩略图条 */
.galm-thumbs{display:flex;gap:8px;width:100%;max-width:1080px;padding-bottom:4px;
  overflow-x:auto;scrollbar-width:thin;scrollbar-color:#3d8bfd transparent}
.galm-thumbs::-webkit-scrollbar{height:4px}
.galm-thumbs::-webkit-scrollbar-track{background:rgba(255,255,255,.08)}
.galm-thumbs::-webkit-scrollbar-thumb{background:#3d8bfd}
.galm-thumbs button{flex:none;width:92px;height:58px;padding:0;border:1px solid transparent;
  background:#0d2748;opacity:.5;transition:.2s}
.galm-thumbs button img{display:block;width:100%;height:100%;object-fit:cover}
.galm-thumbs button:hover{opacity:.85}
.galm-thumbs button.on{opacity:1;border-color:#3d8bfd}

.galm-x{position:fixed;right:22px;top:16px;z-index:3;width:38px;height:38px;
  color:#fff;font:300 24px/1 Arial;background:rgba(255,255,255,.12);
  transition:.2s;line-height:36px;text-align:center}
.galm-x:hover{background:#1b5fbe}

/* ---------- 响应式 ---------- */
@media(max-width:1200px){
  .gal-list{gap:14px}
}

@media(max-width:992px){
  .gal-list{grid-template-columns:repeat(2,1fr)}
  .galm-track img{max-height:54vh}
}

@media(max-width:640px){
  .gal-list{gap:10px}
  .gal-item::before{display:none}
  .gal-txt{padding:16px 8px 6px}
  .gal-txt p{font-size:11.5px;letter-spacing:0}

  .galm{padding:50px 0 10px;gap:10px}
  .galm-view{border-left:0;border-right:0}
  .galm-track img{max-height:46vh}
  .galm-arw{width:36px;height:36px;margin-top:-18px}
  .galm-arw::after{left:12px;top:11px;width:10px;height:10px}
  .galm-arw.prev{left:8px}
  .galm-arw.next{right:8px}
  .galm-cap{padding:10px 14px 0}
  .galm-cap b{font-size:13.5px}
  .galm-cap span{display:none}
  .galm-thumbs{padding:0 14px 4px;gap:6px}
  .galm-thumbs button{width:66px;height:42px}
  .galm-x{right:12px;top:12px;width:34px;height:34px;line-height:32px;font-size:21px}
}

/* 横屏矮屏（笔记本 768 高以下 / 手机横屏） */
@media(max-height:560px){
  .galm{padding:44px 12px 10px;gap:8px}
  .galm-track img{max-height:48vh}
  .galm-thumbs{display:none}
}
