/* products.html · 可维修仪器：八大类卡配图 + 仪器示例图墙
   作用域限定在 .inst-cat.has-photo / .scene-strip2.products-gallery，
   不影响站内其它复用 .inst-cat / .scene-strip2 的页面。 */

.inst-cat.has-photo .inst-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e8f5;
  border-radius: 12px;
}
.inst-cat.has-photo .inst-card:hover { border-color: rgba(47, 107, 255, .4); }

.inst-thumb {
  position: relative;
  display: block;
  height: 148px;
  overflow: hidden;
  background: linear-gradient(160deg, #eef4fc, #e2ebf8);
  border-bottom: 1px solid #e6edf7;
}
.inst-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}
.inst-cat.has-photo .inst-card:hover .inst-thumb img { transform: scale(1.055); }

.inst-thumb-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 12px 8px;
  font-size: 11.5px;
  line-height: 1.4;
  color: #fff;
  letter-spacing: .02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  background: linear-gradient(transparent, rgba(9, 28, 56, .78));
  pointer-events: none;
}

.inst-body { padding: 12px 14px 13px; flex: 1; }
.inst-cat.has-photo .inst-card .ih { margin-bottom: 8px; }

/* 仪器示例：8 张 4×2 图墙，统一高度，轻交互 */
.scene-strip2.products-gallery { margin-bottom: 6px; }
.scene-strip2.products-gallery figure {
  transition: transform .3s ease, box-shadow .3s ease;
}
.scene-strip2.products-gallery a:hover figure {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 40, 70, .16);
}
.scene-strip2.products-gallery img { transition: filter .3s ease; }
.scene-strip2.products-gallery a:hover img { filter: saturate(1.08); }
.scene-strip2.products-gallery figcaption {
  line-height: 1.5;
  padding: 7px 5px 9px;
}

/* 键盘可达 */
.inst-cat.has-photo .inst-card:focus-visible,
.scene-strip2.products-gallery a:focus-visible {
  outline: 3px solid #2f6bff;
  outline-offset: 3px;
  border-radius: 12px;
}

@media (max-width: 960px) {
  .inst-thumb { height: 156px; }
}
@media (max-width: 600px) {
  .inst-thumb { height: 140px; }
  .inst-body { padding: 11px 13px 12px; }
  .scene-strip2.products-gallery figcaption { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .inst-cat.has-photo .inst-card,
  .inst-thumb img,
  .scene-strip2.products-gallery figure,
  .scene-strip2.products-gallery img { transition: none !important; }
  .inst-cat.has-photo .inst-card:hover,
  .inst-cat.has-photo .inst-card:hover .inst-thumb img,
  .scene-strip2.products-gallery a:hover figure { transform: none !important; }
}
