/* ============================================================
 * pages/about/factory.css  工厂实力页样式
 * @author sctjsj.com  @date 2026
 * ========================================================== */
.page-about-factory .about-banner {
  background-image: url('../images/about/about_banner@2x.webp');
}

.page-about-factory .about-banner::after {
  background: linear-gradient(180deg, rgba(7, 30, 77, .66), rgba(7, 30, 77, .5));
}

.inner-banner__slash {
  color: var(--color-primary);
  margin-right: 6px;
}

.fsec {
  padding: var(--sp-10) 6.25rem;
}

/* 修正：原 nth-child 不会匹配 .fsec，应用 nth-of-type 才能让第N个 .fsec 生效 */
.fsec:nth-of-type(1) {
  background-image: url('../images/about/bk1.jpg');
  background-size: 100% 100%;
}
.fsec:nth-of-type(4) {
  background-size: 100% 100%;
}

.fsec__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.fsec__dot {
  border-radius: 50%;
  background: var(--color-primary);
}

.fsec__title {
  font-family: SourceHanSansCN;
  font-weight: bold;
  font-size: 1.75rem;
  color: #333333;
  white-space: nowrap;
}

.fsec__title--light {
  color: #fff;
}

.fsec__dots {
  margin-left: auto;
}

/* ============================================================
 * 三大制造能力 cap-swiper
 * ========================================================== */
.cap-swiper {
  position: relative;
  padding-bottom: var(--sp-2);
}

.cap-dots-wrap {
  position: absolute;
  top: 1.25rem !important;
  left: auto !important;
  right: 5% !important;
  z-index: 5;
  display: flex;
  height: 2.34rem !important;
  background: #F1F1F1;
  border-radius: 1.17rem;
  gap: 8px;
  width: auto !important;
  padding: 6px 10px;
  backdrop-filter: blur(2px);
  align-items: center;
}

.cap-dot {
  width: 0.71rem;
  height: 0.72rem;
  background: #FFFFFF;
  border-radius: 50%;
  display: inline-block;
  margin: 0;
  transition: all .3s;
  cursor: pointer;
  border: none;
  padding: 0;
  opacity: .6;
}

.cap-dot.is-active {
  width: 1.76rem;
  height: 0.72rem;
  background: #1E4EB4;
  border-radius: 0.36rem;
  opacity: 1;
}

.cap-slide {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 29rem;

}

.cap-slide > img,
.cap-slide__ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cap-slide__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-soft);
  color: var(--text-light);
}

.cap-slide__card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: rgba(255, 255, 255, .9);
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  transition: transform .4s var(--ease-out);
  width: 90%;
  height: 11.38rem;
  border-radius: 0.5rem;
}
.cap-slide__card img {
  width: 3.06rem;
  height: auto;
}
.cap-slide:hover .cap-slide__card {
  transform: translateY(-6px);
}

.cap-slide__card h3 {
  color: var(--color-primary);
  font-size: var(--fs-md);
  margin: 8px 0 4px;
}

.cap-slide__card p {
  color: var(--text-sub);
  font-size: var(--fs-sm);
}

/* ============================================================
 * 制造装备 equip
 * ========================================================== */
.equip {
  position: relative;
  margin: var(--sp-6) 0;
  height: 47.56rem;
  background: url('../images/about/gongchangshili.jpg') center/cover no-repeat;
  transition: background-image .6s;
}

.equip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 42, 107, .35), rgba(10, 42, 107, .55));
}

.equip__inner {
  position: relative;
  z-index: 2;
  padding: 3rem 6.25rem 2.5rem 6.25rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.equip__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.equip__arrows {
  margin-left: auto;
  display: flex;
  gap: var(--sp-3);
}

.equip__arrow {
  width: 2.63rem;
  height: 2.63rem;
  background: rgba(255, 255, 255, .9);
  border-radius: 0.5rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
}

.equip__arrow:hover {
  background: var(--color-primary);
  color: #fff;
}

.equip__arrow--next {
  background: var(--color-primary);
  color: #fff;
}

.equip__tags {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.38rem;
}

.equip__tag {
  height: 7.81rem;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 1.5rem;
  transition: all .3s var(--ease-out);
}

.equip__tag:hover {
  transform: translateY(-3px);
}

.equip__tag.is-active {
  background: var(--color-primary);
  color: #fff;
}

/* ============================================================
 * 质量体系 qcflow / qc-swiper
 * ========================================================== */
.qcflow {
  position: relative;
  width: 100%;
  gap: var(--sp-4);
  min-height: 320px;
  box-sizing: border-box;
  overflow: hidden;
}

.qc-swiper {
  width: 100%;
  overflow: hidden;
  padding: 2.5rem 8%;
}

.qcflow__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #FFFFFF;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: transform .3s var(--ease-out), background-color .3s var(--ease-out);
  animation: arrowPulse 2.6s var(--ease-out) infinite;
}

#qc-prev { left: 2% !important; }
#qc-next { right: 2% !important; }

.qcflow__nav img {
  width: 50%;
  height: 50%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
  transition: opacity .3s var(--ease-out);
}

.qcflow__nav:hover img {
  opacity: 0;
}
#qc-prev:hover {
  background-image: url('../images/common/jiantou-b-l.png');
  background-size: 40% 40%;
  background-position: center;
  background-repeat: no-repeat;
}
#qc-next:hover {
  background-image: url('../images/common/jiantou-b.png');
  background-size: 40% 40%;
  background-position: center;
  background-repeat: no-repeat;
}

.qcflow__nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(226,243,255,.94), rgba(140,205,255,.44) 52%, rgba(120,190,255,0) 74%);
  opacity: 0;
  transform: scale(.72);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}

.qcflow__nav:hover {
  background-color: #255ac7;
  transform: translateY(-50%) scale(1.08);
  animation-duration: 1.1s;
}

.qcflow__nav:hover::before {
  opacity: 1;
  transform: scale(1);
}

@keyframes arrowPulse {
  0% { box-shadow: 0 0 0 0 rgba(150,205,255,.55); }
  70% { box-shadow: 0 0 0 12px rgba(150,205,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(150,205,255,0); }
}

/* 异形 slide */
.qc-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 300ms;
  transform: scale(.8);
}
.qc-swiper .swiper-slide-active,
.qc-swiper .swiper-slide-duplicate-active {
  transform: scale(1);
}

.qc-swiper .swiper-slide figure {
  width: 100%;
  max-width: 24rem;
  margin: 0;
  text-align: center;
  position: relative;
}

.qc-swiper .swiper-slide img {
  width: 18.44rem;
  height: auto;
  border-radius: var(--radius-sm);
  border: 4px solid #d8d8d8;
}

.qc-swiper .swiper-slide p {
  text-align: center;
  margin-top: 1.5rem;
  font-family: SourceHanSansCN;
  font-weight: bold;
  font-size: 1.34rem;
  color: #333333;
  opacity: 0;
}

.qc-swiper .swiper-slide-active p {
  opacity: 1;
}

.qc-swiper .swiper-slide-active img {
  width: 100% !important;
}

.qc-swiper .swiper-slide-active figure .qc-bk {
  background-image: url('../images/common/ry.png');
  padding: 2rem;
  background-size: 100% 100%;
}

/* Swiper 分页圆点 */
.qc-dots {
  position: static;
  margin-top: var(--sp-4);
}
.qc-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  background: #cfd9e8;
  transition: all .3s;
  cursor: pointer;
}
.qc-dots .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 4px;
  background: var(--color-primary);
}

/* ============================================================
 * 质量目标 qgoal
 * ========================================================== */
.qgoal {
  position: relative;
    display: grid;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 5rem;
    margin-bottom: 5rem;
      grid-template-columns: repeat(3, 1fr);

}

.qgoal__card {
  position: relative;
  z-index: 1;
  width: 30.38rem;
  height: 35.19rem;
  border-radius: var(--radius-lg);
  padding: 5.54rem 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out);
}

.qgoal__card--l {
  background: url('../images/about/bk2.jpg') center/cover no-repeat;
}
.qgoal__card--l::after,
.qgoal__card--r::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -3.25rem;
  transform: translateX(-50%);
  width: 3.81rem;
  height: 1.69rem;
  background: url('../images/common/huan.png') center/cover no-repeat;
  transition: filter .3s;
}
/* ============================================================
 * qgoal 卡片 3D 翻转
 * ========================================================== */

/* 外层：提供透视 + 环 */
.qgoal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 35.19rem;
  perspective: 1200px;          /* ★ 关键：3D 透视 */
  transition: transform .4s var(--ease-out);
}
.qgoal__card:hover { transform: translateY(-6px); }
.cap-slide__card img {
  transition: transform 0.8s ease-in-out;
  transform: rotateY(0deg);
}

.cap-slide:hover .cap-slide__card img {
  transform: rotateY(360deg);
}
/* 内层：真正翻转的容器 */
.qgoal__card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
  transform-style: preserve-3d;
}
.qgoal__card:hover .qgoal__card-inner {
  animation: qgoalFlip 0.8s ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes qgoalFlip {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }   /* ★ 90 改 360 */
}

/* 正、反面 */
.qgoal__card-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 5.54rem 2.25rem;
  backface-visibility: hidden;      /* ★ 隐藏背面 */
  -webkit-backface-visibility: hidden;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  overflow: hidden;
}

/* 正面图 */
.qgoal__card--l .qgoal__card-front {
  background: url('../images/about/bk2.jpg') center/cover no-repeat;
}
.qgoal__card--m .qgoal__card-front {
  background: url('../images/about/bk3.jpg') center/cover no-repeat;
}
.qgoal__card--r .qgoal__card-front {
  background: url('../images/about/bk4.jpg') center/cover no-repeat;
}
.qgoal__card:hover  {
  transform: rotateX(180deg);      /* ★ Y → X，上下翻 */
}

/* 背面：预先转 180°，翻转后刚好正对 */
.qgoal__card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #1e4eb8 0%, #2c5abb 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 背面文字颜色 */
.qgoal__card-back h3,
.qgoal__card-back p,
.qgoal__card-back .qgoal__num {
  color: #fff;
}
.qgoal__card--m {
  background: url('../images/about/bk3.jpg') center/cover no-repeat;
}
.qgoal__card--m::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -3.25rem;
  transform: translateX(-50%);
  width: 3.81rem;
  height: 1.69rem;
  background: url('../images/common/huan.png') center/cover no-repeat;
  transition: filter .3s;
}

.qgoal__card--r {
  background: url('../images/about/bk4.jpg') center/cover no-repeat;
}

/* ★ 移入：环转圈 */
.qgoal__card:hover::after {
  animation: huanSpin 1.4s linear infinite;
  filter: drop-shadow(0 0 6px rgba(30, 78, 180, .5));
}
.qgoal__card:hover {
 transform: rotateY(360deg);   
}

/* ============================================================
 * 质量目标：三条竖线撑满 zlmb
 * ========================================================== */
.zlmb {
  position: relative !important;
}

.zlmb > .ab-line--vgrid {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  height: 100% !important;
  width: 1px !important;
  background: #CECECE !important;
  z-index: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) !important;
  display: block !important;
  clip-path: none !important;
}

.zlmb > .ab-line--vgrid1 { left: 19.6966% !important; }
.zlmb > .ab-line--vgrid2 { left: 50% !important; }
.zlmb > .ab-line--vgrid3 {
    left:80.133% !important
}



.qgoal__card h3 {
  font-family: PingFang;
  font-weight: 500;
  font-size: 1.75rem;
  color: #333333;
}

.qgoal__num {
  font-family: AlibabaPuHuiTiH;
  font-weight: 800;
  font-size: 3.37rem;
  color: #1E4EB4;
  margin-top: var(--sp-2);
}

.qgoal__deco {
  position: absolute;
  right: 20px;
  bottom: 20px;
  color: var(--color-primary);
  opacity: .85;
  display: flex;
}

.qgoal__link {
  color: var(--color-primary);
  font-size: 22px;
  opacity: .5;
}

/* ============================================================
 * ★ 三条竖线（穿过 左卡 / 中卡 / 右卡 的中心）
 * ========================================================== */
.zlmb {
  position: relative;
}

.ab-line--g {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(30, 78, 180, 0) 0%,
    rgba(30, 78, 180, .55) 50%,
    rgba(30, 78, 180, 0) 100%);
  z-index: 0;
  pointer-events: none;
  transform: translateX(-50%);
  display: block;
}

.ab-line--g1 { left: 16.666%; }
.ab-line--g2 { left: 50%; }
.ab-line--g3 { left: 83.333%; }

/* ============================================================
 * ★ 荣誉资质 honor-swiper（参考 news-consultation-banner 写法）
 * ========================================================== */
.honor-swiper {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding-top: 2rem;
}

.honor-swiper .swiper-wrapper {
  width: 100%;
}

/* 关闭 coverflow 阴影 */
.honor-swiper .swiper-slide-shadow-left,
.honor-swiper .swiper-slide-shadow-right,
.honor-swiper .swiper-slide-shadow-top,
.honor-swiper .swiper-slide-shadow-bottom {
  display: none !important;
  opacity: 0 !important;
}

/* ★ slide 固定宽度，配合 JS 里 slidesPerView: 'auto' */
.honor-swiper .swiper-slide {
  background-position: center;
  background-size: cover;
  width: 29.34rem;
  height: 30rem;
  pointer-events: auto;
  border-radius: 1.25rem;
}

.honor-swiper .swiper-slide img {
  display: block;
  width: 100%;
}

/* 卡片内 figure / figcaption 布局 */
.honorflow__item {
  display: flex;
  justify-content: center;
}

.honorflow__item figure {
  width: 100%;
  margin: 0;
  text-align: center;
}

.honorflow__item img {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--color-gold);
}

.honorflow__item figcaption {
  text-align: center;
  margin-top: var(--sp-3);
  color: var(--text-main);
  font-weight: 600;
}

.swiper-3d {
  perspective: 600px !important;
}

/* 按钮 */
.honorflow__ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
}

.honorflow__nav {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #FFFFFF;
  padding: 0;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s var(--ease-out), background-color .3s var(--ease-out);
  animation: arrowPulse 2.6s var(--ease-out) infinite;
}

.honorflow__nav img {
  width: 50%;
  height: 50%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
  transition: opacity .3s var(--ease-out);
}

.honorflow__nav:hover img {
  opacity: 0;
}
#honor-prev:hover {
  background-image: url('../images/common/jiantou-b-l.png');
  background-size: 40% 40%;
  background-position: center;
  background-repeat: no-repeat;
}
#honor-next:hover {
  background-image: url('../images/common/jiantou-b.png');
  background-size: 40% 40%;
  background-position: center;
  background-repeat: no-repeat;
}

.honorflow__nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(226,243,255,.94), rgba(140,205,255,.44) 52%, rgba(120,190,255,0) 74%);
  opacity: 0;
  transform: scale(.72);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}

.honorflow__nav:hover {
  background-color: #255ac7;
  transform: scale(1.08);
  animation-duration: 1.1s;
}

.honorflow__nav:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* ============================================================
 * 专业授权 auth
 * ========================================================== */
.auth {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.auth__card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .4s var(--ease-out);
}

.auth__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.auth__card img {
  width: 100%;
  height: 23.63rem;
  object-fit: cover;
}

.auth__card figcaption {
  text-align: center;
  padding: var(--sp-4);
  font-family: SourceHanSansCN;
  font-weight: bold;
  font-size: 1.5rem;
  color: #333333;
}

/* ============================================================
 * 平板：1024 以下
 * ========================================================== */
@media (max-width: 1024px) {
  .qcflow__item {
    width: 180px;
  }
.honor-swiper .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 19.34rem;
    height: 17rem;
    pointer-events: auto;
    border-radius: 1.25rem;
}
  .qc-swiper,
  .honor-swiper {
    overflow: hidden;
  }

  .cap-slide {  !important; height: 26rem; }
  .cap-slide__card {
    left: 16px; bottom: 16px;
    width: 22rem; height: auto;
    min-height: 8rem; padding: 14px 16px;
  }
  .cap-slide__card h3 { font-size: 1.4rem; }

  .equip { height: 34rem; }
  .equip__inner { padding: 2.5rem 3.5rem; }
  .equip__tag { height: 6rem; font-size: 1rem; }

  .qgoal { gap: 1.5rem; }
  .qgoal__card { width: 100%; height: auto; padding: 3.5rem 1.5rem; }
  .qgoal__num { font-size: 2.8rem; }

  .auth__card img { height: 24rem; }

  .fsec:first-of-type {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
  .honor-swiper .swiper-slide{
    padding: 2rem;
  }
}

/* ============================================================
 * 手机：768 以下
 * ========================================================== */
 @media (max-width: 500px) {
  .qgoal{
  grid-template-columns: repeat(1, 1fr);
  
        padding:0 10%;
       
}
.cap-swiper .swiper-wrapper{
  flex-direction:column;
}
.cap-swiper .cap-slide{
  margin-bottom:2rem;
}
.zlmb > .ab-line--vgrid {
  width: 0px !important;
  background: transparent !important;
 }
.ab-line--vgrid {
  display:none;
}
  .fsec {
    padding:1rem!important;
  }
  .equip__tags{
    grid-template-columns: repeat(3, 1fr);
  }
      .qgoal__card {

       
        height: 27rem;
        padding: 3.5rem 1.5rem;
    }
  .qgoal__card::after{
    display:none;
  }
  .honorflow__item figcaption{
    font-size:1.25rem;
  }

  }
@media (max-width: 768px) {
  .fsec {
    padding: var(--sp-8) 0;
  }
.equip__head{
  margin-bottom:2rem;
}
  .cap-slide {
    height: 300px;
    width: 100% !important;
  }

  .cap-slide__card {
    left: 14px;
    right: 14px;
    max-width: none;
    width: auto;
  }

  .qcflow {
    flex-wrap: wrap;
  }

  .qcflow__item {
    width: 42%;
  }

  .qgoal {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* ★ 移动端隐藏三条竖线 */
  .ab-line--g {
    display: none;
  }

  .qgoal__card--m {
    transform: none;
  }

  .qgoal__link {
    display: none;
  }

  /* ★ 荣誉资质移动端 */
  .honor-swiper .swiper-slide {
    width: 100%;
    height: auto;
  }

  .auth {
    grid-template-columns: 1fr;
  }

  .auth__card img {
    height: 240px;
  }

  .equip__tag {
    flex: 1 1 40%;
  }

  .about-banner {
    flex-direction: column;
    gap: 6px;
  }

  .about-banner__en {
    margin-top: 0;
  }

  .cap-slide__card { width: auto; }

  .equip { height: auto; }
  .equip__inner { padding: 1.5rem 1.25rem 2rem; }
  .equip__head { flex-wrap: wrap; }
  .equip__tag { height: auto; min-height: 4.5rem; font-size: 1.15rem; padding: 10px 14px; }

  .fsec:first-of-type {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
  }
}

/* ============================================================
 * fsec 第4个区块伪元素
 * ========================================================== */
.fsec:nth-of-type(4) {
  position: relative;
}
.fsec:nth-of-type(4)::after {
  content: "";
  position: absolute;
  top: 7.69rem;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #faf4f4;
  z-index: 777;
  transform: scaleY(0);
}
