#app {
  background: #f4f4f4;
  position: relative;
}

#app>img {
  width: 100%;
  object-fit: contain;
  display: block;
  position: absolute;
  top: 20%;
  left: 0;
}

#app>.factory-back {
  top: 40%;
}

/* 页面基础样式 */
.picture,
.video {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.picture button,
.video .section2 .prev,
.video .section2 .next,
.video .section1 .swiper-slide .img-poster,
.video .section1 .swiper-slide .mask .play {
  cursor: pointer;
}

/* 工厂图片样式 */
.picture {
  position: relative;
  padding: 0 0 74px;
}

.picture .inner {
  width: 83.333%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.picture .section1 {
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 1fr 0.8fr;
  grid-template-rows: 1.25fr 1.1fr 1fr;
  gap: 24px;
  aspect-ratio: 1.2 / 1;
}

.picture .section1 .item {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  overflow: hidden;
  border-radius: 6px;
  background: #e9edf0;
  box-shadow: 0 10px 28px rgba(18, 39, 59, 0.08);
}

.picture .section1 .item:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1;
}

.picture .section1 .item:nth-child(2) {
  grid-column: 3;
  grid-row: 1 / 3;
}

.picture .section1 .item:nth-child(3) {
  grid-column: 1;
  grid-row: 2 / 4;
}

.picture .section1 .item:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.picture .section1 .item:nth-child(5) {
  grid-column: 2;
  grid-row: 3;
}

.picture .section1 .item:nth-child(6) {
  grid-column: 3;
  grid-row: 3;
}

.picture .section1.picture-grid-partial {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: none;
  grid-auto-rows: auto;
  aspect-ratio: auto;
}

.picture .section1.picture-grid-partial .item:nth-child(n) {
  grid-column: auto;
  grid-row: auto;
  aspect-ratio: 16 / 10;
}

.picture .section1.picture-grid-partial .item:only-child {
  grid-column: span 2;
  aspect-ratio: 1281 / 520;
}

.picture .section1.picture-grid-partial + .page {
  padding-top: 32px;
}

.picture .section1 .item .el-image {
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
}

.picture .section1 .item .el-image__inner {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  display: block;
  transition: transform 0.5s ease;
}

.picture .section1 .item:hover .el-image__inner {
  transform: scale(1.05);
}

/* 图片分页样式 */
.picture .page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 57px 0 100px;
}

.picture .page .pre-pageBtn,
.picture .page .next-pageBtn {
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
  min-width: 56px;
  min-height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.5s ease;
}

.picture .page .pre-pageBtn {
  border: 2px solid #090909;
}

.picture .page .next-pageBtn {
  border: none;
  background: #0099ff;
}

.picture .page .pre-pageBtn:hover,
.picture .page .next-pageBtn:hover {
  transform: translateY(-2px);
}

.picture .page .pre-pageBtn:disabled,
.picture .page .next-pageBtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.picture .page .pages {
  display: flex;
  align-items: center;
  margin: 0 23px;
}

.picture .page .pages .num {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 23px;
  border: none;
  background: transparent;
  color: #000000;
  font-family: DIN;
  font-weight: 700;
  font-size: 45px;
  cursor: pointer;
  transition: all 0.5s ease;
}

.picture .page .pages .num.num-active {

}

.picture .page .pages .ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 23px;
  color: #000000;
  font-family: DIN;
  font-weight: 700;
  font-size: 45px;
  cursor: default;
}

/* 工厂视频样式 */
.video {
  padding: 18px 0 96px;
}

.video .inner {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.video .section1 {
  width: 100%;
  display: flex;
  overflow: hidden;
}

.video .section1 .swiper {
  width: 100%;
  display: flex;
  overflow: hidden;
}

.video .section1 .swiper-wrapper {
  width: 100%;
  display: flex;
  align-items: stretch;
  box-sizing: content-box;
  transition-property: transform;
}

.video .section1 .swiper-slide {
  width: 45.5%;
  display: flex;
  flex-shrink: 0;
  opacity: 0.72;
  transition: all 0.5s ease;
}

.video .section1 .swiper-slide-active {
  opacity: 1;
}

.video .section1 .swiper-slide .img-inner {
  width: 100%;
  display: flex;
}

.video .section1 .swiper-slide .img-poster {
  width: 100%;
  position: relative;
  display: flex;
  overflow: hidden;
  border-radius: 6px;
  background: #1a2d42;
}

.video .section1 .swiper-slide .img-poster img {
  width: 100%;
  aspect-ratio: 981 / 585;
  object-fit: cover;
  display: block;
}

.video .section1 .swiper-slide .img-poster .mask {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 55, 98, 0.48);
  transition: all 0.5s ease;
}

.video .section1 .swiper-slide .img-poster:hover .mask {
  background: rgba(8, 55, 98, 0.34);
}

.video .section1 .swiper-slide .mask .play {
  width: 85px;
  height: 85px;
  max-width: 85px;
  max-height: 85px;
  min-width: 85px;
  min-height: 85px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff8c;
  transition: all 0.5s ease;
}

.video .section1 .swiper-slide .img-poster:hover .mask .play {
  background: rgba(255, 255, 255, 0.82);
  transform: scale(1.05);
}

.video .section2 {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 48px;
}

.video .section2 .prev,
.video .section2 .next {
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
  min-width: 56px;
  min-height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
}

.video .section2 .prev {
  border: 2px solid #090909;
  background: transparent;
  margin-right: 24px;
}

.video .section2 .next {
  border: 2px solid #0099ff;
  background: #0099ff;
}

.video .section2 .prev:hover,
.video .section2 .next:hover {
  transform: translateY(-2px);
}

/* 视频弹窗样式 */
.factory-video-dialog .el-dialog__wrapper {
  z-index: 3000;
}

.picture .el-image-viewer__wrapper,
.factory-video-viewer {
  z-index: 3000 !important;
  outline: none;
}

.picture .el-image-viewer__mask,
.factory-video-viewer .el-image-viewer__mask {
  opacity: 0.72;
  background: #000000;
}

.factory-video-viewer .el-image-viewer__mask {
  z-index: 0;
}

.picture .el-image-viewer__canvas,
.factory-video-viewer .el-image-viewer__canvas {
  box-sizing: border-box;
  padding: 72px 88px 86px;
}

.picture .el-image-viewer__btn,
.factory-video-viewer .el-image-viewer__btn {
  z-index: 2;
}

.picture .el-image-viewer__close,
.factory-video-viewer .el-image-viewer__close {
  top: 32px;
  right: 32px;
  color: #ffffff;
  background: rgba(28, 32, 39, 0.88);
  cursor: pointer;
}

.picture .el-image-viewer__prev,
.picture .el-image-viewer__next {
  background: rgba(28, 32, 39, 0.78);
}

.picture .el-image-viewer__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}

.factory-video-viewer .el-image-viewer__canvas {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.factory-video-viewer video {
  width: auto !important;
  height: auto;
  max-width: min(86vw, 1180px);
  max-height: 78vh;
  display: block;
  object-fit: contain;
  pointer-events: auto;
  background: #000000;
  border-radius: 6px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.36);
}

@media only screen and (max-width: 820px) {
  .picture .el-image-viewer__canvas,
  .factory-video-viewer .el-image-viewer__canvas {
    padding: 72px 18px;
  }

  .picture .el-image-viewer__close,
  .factory-video-viewer .el-image-viewer__close {
    top: 18px;
    right: 18px;
  }

  .picture .el-image-viewer__prev {
    left: 14px;
  }

  .picture .el-image-viewer__next {
    right: 14px;
  }

  .factory-video-viewer video {
    max-width: calc(100vw - 36px);
    max-height: calc(100vh - 144px);
  }

  .picture .section1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    aspect-ratio: auto;
  }

  .picture .section1 .item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

  .picture .section1.picture-grid-partial .item:only-child {
    grid-column: 1 / -1;
  }
}

/* 1280px 响应式样式 */
@media only screen and (max-width: 1280px) and (min-width: 1025px) {
  .aboutNav {
    width: 86%;
    margin: 25px auto;
    padding: 16px 25px;
    gap: 25px;
  }

  .aboutNav .item {
    padding: 12px 25px;
  }

  .aboutNav .item p {
    font-size: 15px;
    line-height: 22px;
  }

  .picture {
    padding: 0 0 25px;
  }

  .picture .inner {
    width: 86%;
  }

  .picture .section1 {
    gap: 22px;
  }

  .picture .page {
    padding: 25px 0;
  }

  .picture .page .pages {
    margin: 0 20px;
  }

  .picture .page .pages .num,
  .picture .page .pages .ellipsis {
    padding: 0 18px;
    font-size: 38px;
  }

  .video {
    padding: 25px 0;
  }

  .video .section1 .swiper-slide {
    width: 48%;
  }

  .video .section2 {
    margin-top: 25px;
  }

  .video .section2 .prev {
    margin-right: 24px;
  }

}

/* 1024px 响应式样式 */
@media only screen and (max-width: 1024px) and (min-width: 821px) {
  .aboutNav {
    width: 88%;
    margin: 24px auto;
    padding: 14px 22px;
    gap: 20px;
  }

  .aboutNav .item {
    padding: 11px 22px;
  }

  .aboutNav .item p {
    font-size: 14px;
    line-height: 22px;
  }

  .picture {
    padding: 0 0 24px;
  }

  .picture .inner {
    width: 88%;
  }

  .picture .section1 {
    gap: 20px;
  }

  .picture .page {
    padding: 24px 0;
  }

  .picture .page .pages {
    margin: 0 18px;
  }

  .picture .page .pages .num,
  .picture .page .pages .ellipsis {
    padding: 0 16px;
    font-size: 34px;
  }

  .video {
    padding: 24px 0;
  }

  .video .section1 .swiper-slide {
    width: 54%;
  }

  .video .section2 {
    margin-top: 24px;
  }

  .video .section2 .prev {
    margin-right: 22px;
  }

}

/* 820px 响应式样式 */
@media only screen and (max-width: 820px) and (min-width: 769px) {
  .aboutNav {
    width: 88%;
    margin: 22px auto;
    padding: 12px;
    gap: 12px;
  }

  .aboutNav .item {
    width: 48.6%;
    flex: none;
    padding: 10px 14px;
  }

  .aboutNav .item p {
    font-size: 13px;
    line-height: 21px;
  }

  .picture {
    padding: 0 0 22px;
  }

  .picture .inner {
    width: 88%;
  }

  .picture .section1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .picture .page {
    padding: 22px 0;
  }

  .picture .page .pages {
    margin: 0 16px;
  }

  .picture .page .pages .num,
  .picture .page .pages .ellipsis {
    padding: 0 14px;
    font-size: 30px;
  }

  .video {
    padding: 22px 0;
  }

  .video .section1 .swiper-slide {
    width: 62%;
  }

  .video .section2 {
    margin-top: 22px;
  }

  .video .section2 .prev {
    margin-right: 20px;
  }

}

/* 768px 响应式样式 */
@media only screen and (max-width: 768px) and (min-width: 641px) {
  .aboutNav {
    width: 88%;
    margin: 20px auto;
    padding: 12px;
    gap: 12px;
  }

  .aboutNav .item {
    width: 48.6%;
    flex: none;
    padding: 10px 14px;
  }

  .aboutNav .item p {
    font-size: 12.5px;
    line-height: 20px;
  }

  .picture {
    padding: 0 0 20px;
  }

  .picture .inner {
    width: 88%;
  }

  .picture .section1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .picture .page {
    padding: 20px 0;
  }

  .picture .page .pages {
    margin: 0 14px;
  }

  .picture .page .pages .num,
  .picture .page .pages .ellipsis {
    padding: 0 12px;
    font-size: 28px;
  }

  .video {
    padding: 20px 0;
  }

  .video .section1 .swiper-slide {
    width: 68%;
  }

  .video .section2 {
    margin-top: 20px;
  }

  .video .section2 .prev {
    margin-right: 18px;
  }

}

/* 640px 响应式样式 */
@media only screen and (max-width: 640px) and (min-width: 415px) {
  .aboutNav {
    width: 88%;
    margin: 18px auto;
    padding: 10px;
    gap: 10px;
  }

  .aboutNav .item {
    width: 48.6%;
    flex: none;
    padding: 9px 12px;
  }

  .aboutNav .item p {
    font-size: 12px;
    line-height: 20px;
  }

  .picture {
    padding: 0 0 18px;
  }

  .picture .inner {
    width: 88%;
  }

  .picture .section1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .picture .page {
    padding: 18px 0;
  }

  .picture .page .pages {
    margin: 0 12px;
  }

  .picture .page .pages .num,
  .picture .page .pages .ellipsis {
    padding: 0 10px;
    font-size: 26px;
  }

  .video {
    padding: 18px 0;
  }

  .video .section1 .swiper-slide {
    width: 78%;
  }

  .video .section1 .swiper-slide .mask .play {
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
    min-width: 64px;
    min-height: 64px;
  }

  .video .section2 {
    margin-top: 18px;
  }

  .video .section2 .prev {
    margin-right: 16px;
  }

}

/* 414px 响应式样式 */
@media only screen and (max-width: 414px) {
  .aboutNav {
    width: 88%;
    margin: 16px auto;
    padding: 8px;
    gap: 8px;
  }

  .aboutNav .item {
    width: 48.6%;
    flex: none;
    padding: 8px 10px;
  }

  .aboutNav .item p {
    font-size: 11.5px;
    line-height: 19px;
  }

  .picture {
    padding: 0 0 16px;
  }

  .picture .inner {
    width: 88%;
  }

  .picture .section1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .picture .page {
    padding: 16px 0;
  }

  .picture .page .pages {
    margin: 0 10px;
  }

  .picture .page .pages .num,
  .picture .page .pages .ellipsis {
    padding: 0 8px;
    font-size: 24px;
  }

  .video {
    padding: 16px 0;
  }

  .video .section1 .swiper-slide {
    width: 88%;
  }

  .video .section1 .swiper-slide .mask .play {
    width: 56px;
    height: 56px;
    max-width: 56px;
    max-height: 56px;
    min-width: 56px;
    min-height: 56px;
  }

  .video .section2 {
    margin-top: 16px;
  }

  .video .section2 .prev {
    margin-right: 14px;
  }

}

/* 375px 响应式样式 */
@media only screen and (max-width: 375px) {
  .aboutNav {
    margin: 14px auto;
    padding: 7px;
    gap: 7px;
  }

  .aboutNav .item {
    padding: 7px 8px;
  }

  .aboutNav .item p {
    font-size: 11px;
    line-height: 18px;
  }

  .picture {
    padding: 0 0 14px;
  }

  .picture .section1 {
    gap: 9px;
  }

  .picture .page {
    padding: 14px 0;
  }

  .picture .page .pages {
    margin: 0 8px;
  }

  .picture .page .pages .num,
  .picture .page .pages .ellipsis {
    padding: 0 6px;
    font-size: 22px;
  }

  .video {
    padding: 14px 0;
  }

  .video .section1 .swiper-slide {
    width: 92%;
  }

  .video .section2 {
    margin-top: 14px;
  }

  .video .section2 .prev {
    margin-right: 12px;
  }

}

/* 1280px targeted responsive fixes */
@media only screen and (max-width: 1280px) and (min-width: 1025px) {
  .picture .page .pre-pageBtn,
  .picture .page .next-pageBtn,
  .video .section2 .prev,
  .video .section2 .next {
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
}

/* 1024px targeted responsive fixes */
@media only screen and (max-width: 1024px) and (min-width: 821px) {
  .picture .page .pre-pageBtn,
  .picture .page .next-pageBtn,
  .video .section2 .prev,
  .video .section2 .next {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}

/* 820px targeted responsive fixes */
@media only screen and (max-width: 820px) and (min-width: 769px) {
  .picture .page .pre-pageBtn,
  .picture .page .next-pageBtn,
  .video .section2 .prev,
  .video .section2 .next {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}

/* 768px targeted responsive fixes */
@media only screen and (max-width: 768px) and (min-width: 641px) {
  .picture .page .pre-pageBtn,
  .picture .page .next-pageBtn,
  .video .section2 .prev,
  .video .section2 .next {
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
    min-width: 38px;
    min-height: 38px;
  }
}

/* 640px targeted responsive fixes */
@media only screen and (max-width: 640px) and (min-width: 415px) {
  .picture .page .pre-pageBtn,
  .picture .page .next-pageBtn,
  .video .section2 .prev,
  .video .section2 .next {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
}

/* 414px targeted responsive fixes */
@media only screen and (max-width: 414px) {
  .picture .page .pre-pageBtn,
  .picture .page .next-pageBtn,
  .video .section2 .prev,
  .video .section2 .next {
    width: 34px;
    height: 34px;
    max-width: 34px;
    max-height: 34px;
    min-width: 34px;
    min-height: 34px;
  }
}

/* 375px targeted responsive fixes */
@media only screen and (max-width: 375px) {
  .picture .page .pre-pageBtn,
  .picture .page .next-pageBtn,
  .video .section2 .prev,
  .video .section2 .next {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
}

/* Direct content section spacing. */
@media only screen and (max-width: 1280px) and (min-width: 1025px) {
  .picture {
    padding-bottom: 60px;
  }

  .video {
    padding: 40px 0 72px;
  }
}

@media only screen and (max-width: 1024px) and (min-width: 821px) {
  .picture {
    padding-bottom: 50px;
  }

  .video {
    padding: 40px 0 56px;
  }
}

@media only screen and (max-width: 820px) {
  .picture {
    padding-bottom: 40px;
  }

  .video {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}
/* Element UI dialog replaces the former custom video viewer. */
.factory-video-dialog .el-dialog__wrapper {
  z-index: 3000;
}
