/*
 * 工厂展示 — 分区图库 + 灯箱
 */
.about-showcase-page {
  padding: 0 0 72px;
}

.about-showcase-intro {
  margin: 40px 0 24px;
}

.about-showcase-intro__lead {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.85;
  color: #495057;
}

.about-showcase-intro__link {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  font-family: var(--site-ui-font, 'Segoe UI', system-ui, -apple-system, 'Microsoft YaHei', 'PingFang SC', sans-serif);
}

.about-showcase-intro__link a {
  font-weight: 500;
  color: var(--menu-sub-brand, #1d5198);
  text-decoration: none;
}

.about-showcase-jump {
  margin: 0 0 32px;
  padding: 14px 16px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 5px;
}

.about-showcase-jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-showcase-jump a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.3;
  font-family: var(--site-ui-font, 'Segoe UI', system-ui, -apple-system, 'Microsoft YaHei', 'PingFang SC', sans-serif);
  font-weight: 500;
  color: var(--menu-sub-brand, #1d5198);
  text-decoration: none;
  background: #fff;
  border: 1px solid #c5d4e8;
  border-radius: 5px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.about-showcase-jump a:hover,
.about-showcase-jump a:focus-visible {
  background: rgba(29, 81, 152, 0.08);
  border-color: #1d5198;
  outline: none;
}

.about-showcase-section {
  margin-bottom: 44px;
}

.about-showcase-section__title {
  margin: 0 0 8px;
  padding-inline-start: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #212529;
  border-inline-start: 4px solid #1d5198;
}

.about-showcase-section__desc {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #6c757d;
}

.about-showcase-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-showcase-gallery__link {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: #fff;
  text-align: start;
  cursor: pointer;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.about-showcase-gallery__link:hover,
.about-showcase-gallery__link:focus-visible {
  box-shadow: 0 8px 24px rgba(29, 81, 152, 0.18);
  transform: translateY(-2px);
  outline: none;
}

.about-showcase-gallery__link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 450;
  object-fit: cover;
  vertical-align: top;
}

.about-showcase-gallery__label {
  display: block;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: #495057;
  background: #fff;
  text-align: center;
}

/* Lightbox */
.about-show-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.about-show-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.about-show-lightbox__dialog {
  position: relative;
  max-width: min(960px, 100%);
  width: 100%;
}

.about-show-lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 5px;
}

.about-show-lightbox__caption {
  margin: 12px 0 0;
  font-size: 14px;
  color: #e9ecef;
  text-align: center;
}

.about-show-lightbox__close,
.about-show-lightbox__prev,
.about-show-lightbox__next {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.about-show-lightbox__close:hover,
.about-show-lightbox__prev:hover,
.about-show-lightbox__next:hover {
  background: rgba(255, 255, 255, 0.22);
}

.about-show-lightbox__close {
  top: -52px;
  inset-inline-end: 0;
  font-size: 28px;
}

.about-show-lightbox__prev {
  inset-inline-start: -56px;
  top: 50%;
  transform: translateY(-50%);
}

.about-show-lightbox__next {
  inset-inline-end: -56px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 1100px) {
  .about-showcase-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .about-showcase-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-show-lightbox__prev {
    inset-inline-start: 8px;
  }

  .about-show-lightbox__next {
    inset-inline-end: 8px;
  }

  .about-show-lightbox__close {
    top: 8px;
    inset-inline-end: 8px;
  }
}

@media (max-width: 480px) {
  .about-showcase-gallery {
    grid-template-columns: 1fr;
  }
}
