/* Factory：与新站头/底并存 */
.mot-factory-legacy {
  position: relative;
  width: 100%;
}

.mot-factory-page {
  display: block;
  width: 100%;
}

.mot-factory-legacy #eejzpc {
  max-width: 100%;
}

/* Banner：文字垂直居中 */
#c78MQvl.mot-factory-banner {
  position: relative;
  width: 100%;
  height: 480px;
  margin: 0 !important;
  overflow: hidden;
  box-sizing: border-box;
}

#c78MQvl.mot-factory-banner > ul,
#c78MQvl.mot-factory-banner > ul > li {
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

#c78MQvl.mot-factory-banner > ul > li {
  display: block !important;
  width: 100% !important;
}

#c78MQvl.mot-factory-banner #co5FoQe {
  position: relative;
  height: 100%;
  box-sizing: border-box;
  padding: 2% 12% !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

#c78MQvl.mot-factory-banner #co5FoQe > .rowList {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  float: none !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
}

#c78MQvl.mot-factory-banner .cqHYvvEA,
#c78MQvl.mot-factory-banner #cS4SQUW {
  display: block !important;
  position: relative !important;
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  clear: both !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
}

#c78MQvl.mot-factory-banner .cqHYvvEA {
  margin: 0 0 0.8rem 0 !important;
}

#cS4SQUW .CrumbsBox {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

#cS4SQUW .CrumbsBox .cS4SQUWIc,
#cS4SQUW .CrumbsBox .btnIcon {
  display: inline-block;
  flex: 0 0 auto;
  line-height: 1;
}

#cS4SQUW .CrumbsBox .currentPosFont,
#cS4SQUW .CrumbsBox .cS4SQUWFont {
  display: inline-block;
  flex: 0 1 auto;
  white-space: nowrap;
}

.mot-factory-banner--no-bg #co5FoQe,
.mot-factory-banner--no-bg .mot-factory-banner-bg-fallback {
  background: #f0f0f0 !important;
}

#c78MQvl.mot-factory-banner .rowBgPreview {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/*
 * 相册：固定槽位比例 + object-fit 裁剪，任意尺寸图都可上传。
 * 侧列 4:3；中间高图约 2:3；底行 16:9。
 */
.mot-factory-gallery .ImghidCont {
  overflow: hidden;
}

.mot-factory-gallery .ImghidCont .baguetteBox,
.mot-factory-gallery .ImghidCont > .Imgbox {
  display: block;
  width: 100%;
}

.mot-factory-gallery .ImghidCont .Imgbox {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 0 !important;
  padding-top: 75% !important; /* 4:3 */
  overflow: hidden !important;
  box-sizing: border-box;
}

.mot-factory-gallery .ImghidCont .Imgbox img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

/* 中间竖图 */
.mot-factory-gallery .ckdZoCh .Imgbox {
  padding-top: 145% !important;
}

/* 底行宽图 */
.mot-factory-gallery #cChxqFR .Imgbox,
.mot-factory-gallery #cP2wSXS .Imgbox {
  padding-top: 56.25% !important; /* 16:9 */
}

/* 上下叠放间距（固定，避免随原图高度跳动） */
.mot-factory-gallery #ciSWgrS,
.mot-factory-gallery #c610Qv7,
.mot-factory-gallery #coDnepV {
  margin-top: 1rem !important;
}

/* 超出 9 张的附加网格 */
.mot-factory-more {
  display: flex;
  flex-wrap: wrap;
  margin: 2% -1% 0;
  width: auto;
}

.mot-factory-more__col {
  width: 25%;
  box-sizing: border-box;
  padding: 0 1% 2%;
}

.mot-factory-more__item .Imgbox {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
}

.mot-factory-more__item .Imgbox img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 960px) {
  #c78MQvl.mot-factory-banner {
    height: 320px;
  }

  #c78MQvl.mot-factory-banner #co5FoQe {
    padding: 6% 5% 8% !important;
  }

  .mot-factory-more__col {
    width: 50%;
  }
}

@media screen and (max-width: 640px) {
  #c78MQvl.mot-factory-banner {
    height: 240px;
  }

  .mot-factory-more__col {
    width: 100%;
  }
}
