/* Image-led equipment catalogue; category order is managed in the backend. */
.equipment-gallery {
  padding: clamp(46px, 5vw, 72px) 0 110px;
  background: #f5f7fa;
  color: #192a41;
}
.equipment-group { margin-top: clamp(68px, 7vw, 102px); scroll-margin-top: 108px; }
.equipment-group:first-child { margin-top: 0; }
.equipment-group__heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: clamp(14px, 2vw, 28px);
  margin-bottom: 26px;
  padding-bottom: 21px;
  border-bottom: 1px solid #cbd4e0;
}
.equipment-group__number { color: #7060b8; font: 400 clamp(19px, 2vw, 27px)/1 Georgia, serif; }
.equipment-group h2 { margin: 0; color: #1c2c45; font: 400 clamp(27px, 2.8vw, 40px)/1.2 Georgia, "Noto Serif SC", "Songti SC", serif; }
.equipment-group__count { color: #8794a4; font: 400 16px Georgia, serif; }
.equipment-group__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 26px);
}
.equipment-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dde4eb;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(33, 53, 82, .075);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.equipment-card:hover {
  transform: translateY(-5px);
  border-color: #bfc8dc;
  box-shadow: 0 24px 48px rgba(33, 53, 82, .16);
}
.equipment-card__image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #213a50;
  cursor: zoom-in;
  isolation: isolate;
}
.equipment-card__image:focus-visible { outline: 3px solid #7868ce; outline-offset: -4px; }
.equipment-card__backdrop,
.equipment-card__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.equipment-card__backdrop {
  object-fit: cover;
  filter: blur(26px) brightness(.78) saturate(.8);
  transform: scale(1.16);
}
.equipment-card__photo {
  z-index: 1;
  object-fit: cover;
  object-position: center 47%;
  transition: transform .5s ease;
}
.equipment-card__photo--contain { object-fit: contain; }
.equipment-card:hover .equipment-card__photo { transform: scale(1.025); }
.equipment-card__body {
  min-height: 148px;
  padding: clamp(21px, 2vw, 28px);
  background: #fff;
}
.equipment-card__title {
  margin: 0;
  color: #192a41;
  font: 600 clamp(16px, 1.2vw, 19px)/1.5 Poppins, "Microsoft YaHei", sans-serif;
  overflow-wrap: anywhere;
}
.equipment-card__description {
  margin: 12px 0 0;
  color: #5d6c7e;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
html.equipment-viewer-open,
body.equipment-viewer-open { overflow: hidden; overscroll-behavior: none; }
.equipment-viewer {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: clamp(12px, 2.5vw, 36px);
  overflow: hidden;
  border: 0;
  background: transparent;
}
.equipment-viewer::backdrop { background: transparent; }
.equipment-viewer__scrim {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(28,36,48,.26);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.equipment-viewer[open] { display: flex; align-items: center; justify-content: center; }
.equipment-viewer__panel {
  position: relative;
  z-index: 1;
  flex: none;
  width: var(--equipment-panel-width, min(100%, 1200px));
  height: var(--equipment-panel-height, min(100%, 720px));
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
}
.equipment-viewer__flight {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 5;
  display: block;
  max-width: none;
  max-height: none;
  pointer-events: none;
  user-select: none;
  object-fit: fill;
  transform-origin: 0 0;
  will-change: transform, clip-path;
}
.equipment-viewer__close {
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  display: grid;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(173,183,199,.7);
  border-radius: 50%;
  color: #334258;
  background: rgba(255,255,255,.66);
  backdrop-filter: blur(10px);
  font-size: 0;
  cursor: pointer;
  touch-action: manipulation;
}
.equipment-viewer__close::before,
.equipment-viewer__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.equipment-viewer__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.equipment-viewer__close:hover { background: #f1f3f6; }
.equipment-viewer__close:focus-visible { outline: 3px solid #afa3ff; outline-offset: 3px; }
.equipment-viewer__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--equipment-stage-width, minmax(0, 1fr));
  grid-template-areas: "details stage";
  min-height: 0;
  height: 100%;
}
.equipment-viewer__stage {
  grid-area: stage;
  position: relative;
  z-index: 2;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background: transparent;
  touch-action: none;
}
.equipment-viewer__details {
  grid-area: details;
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 44px) 32px;
  color: #1d2b40;
  background: rgba(250,251,253,.78);
  backdrop-filter: blur(28px) saturate(1.1);
  -webkit-backdrop-filter: blur(28px) saturate(1.1);
  box-shadow: 0 24px 60px rgba(24,37,56,.14);
}
.equipment-viewer__details h2 {
  margin: 0;
  padding-bottom: 29px;
  border-bottom: 1px solid #d7dce6;
  color: #17263d;
  font: 500 clamp(25px, 2vw, 36px)/1.27 Georgia,"Noto Serif SC","Songti SC",serif;
  overflow-wrap: anywhere;
}
.equipment-viewer__description { padding-top: 25px; }
.equipment-viewer__description:empty { display: none; }
.equipment-viewer__description p {
  margin: 0;
  color: #506077;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.equipment-viewer__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transform: translate3d(var(--equipment-pan-x,0px),var(--equipment-pan-y,0px),0) scale(var(--equipment-zoom,1));
  transform-origin: center;
}
@media (max-width: 760px) {
  .equipment-viewer { padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)); }
  .equipment-viewer__close { top: 10px; right: 10px; }
}
.equipment-viewer[data-layout="stacked"] .equipment-viewer__panel { width: var(--equipment-panel-width, 100%); height: auto; max-height: 100%; border-radius: 5px; }
.equipment-viewer[data-layout="stacked"] .equipment-viewer__content { display: flex; flex-direction: column; height: auto; }
.equipment-viewer[data-layout="stacked"] .equipment-viewer__stage { width: 100%; flex: none; height: var(--equipment-stage-height, 48dvh); }
.equipment-viewer[data-layout="stacked"] .equipment-viewer__details { width: 100%; flex: none; max-height: var(--equipment-details-max-height, 40dvh); padding: 20px 22px 24px; border: 0; }
.equipment-viewer[data-layout="stacked"] .equipment-viewer__details h2 { padding-bottom: 12px; font-size: 24px; }
.equipment-viewer[data-layout="stacked"] .equipment-viewer__description { padding-top: 12px; }
.equipment-viewer[data-layout="stacked"] .equipment-viewer__description p { font-size: 14px; line-height: 1.65; }
@media (max-height: 440px) {
  .equipment-viewer__details { padding: 20px; }
  .equipment-viewer__details h2 { font-size: 22px; padding-bottom: 14px; }
  .equipment-viewer__description { padding-top: 14px; }
}
@media (max-width: 1100px) {
  .equipment-group__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .equipment-gallery { padding: 45px 0 82px; }
  .equipment-group { margin-top: 70px; }
  .equipment-group__heading { grid-template-columns: 32px 1fr auto; gap: 9px; margin-bottom: 20px; }
  .equipment-group h2 { font-size: clamp(25px, 6.5vw, 33px); }
  .equipment-group__grid { grid-template-columns: 1fr; gap: 20px; }
  .equipment-card__body { min-height: 0; padding: 21px; }
  .equipment-card__title { font-size: 18px; }
}
.page-hero--equipment .page-hero__title { font-size: clamp(40px, 4vw, 60px); }
.page-hero--equipment .page-hero__subtitle { font-size: clamp(17px, 1.4vw, 21px); }
@media (max-width: 650px) { .page-hero--equipment .page-hero__title { font-size: clamp(31px, 8vw, 42px); } }
@media (prefers-reduced-motion: reduce) {
  .equipment-card, .equipment-card__photo { transition: none; }
}
