/* ==========================================================================
   XINHUA · about.css  (关于我们页专属样式)
   --------------------------------------------------------------------------
   目录 / CONTENTS
   01  公司简介 About intro   —— 与首页同名类，原样复制自 home.css（home.css 未改动）
   02  数据优势 Stats          —— 计数器卡片
   03  工厂实拍 Factory        —— 4 列网格：4 张实拍图 + 4 段视频
   04  质量控制 QC             —— 四步时间线
   05  资质证书 Certificates   —— Swiper 竖版证书轮播（占位图 zs.jpg）
   06  客户反馈 Voices         —— Swiper 轮播卡片
   07  CTA 联系引导            —— 与首页同名类，原样复制自 home.css
   08  响应式 Responsive
   --------------------------------------------------------------------------
   页面级样式只引用 style.css 的 token 与组件类；不覆盖其它页面、不改公共层。
   首页的 .about__* / .cta-band* 只在 home.css 中定义，本页不加载 home.css，
   因此同名规则原样复制一份到这里，保证两个页面视觉一致、互不依赖。
   ========================================================================== */

/* ==========================================================================
   01  公司简介 About intro（复制自 home.css「03 About」）
   ========================================================================== */
.about__inner {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: var(--sp-10);
  align-items: center;
}

.about__media {
  position: relative;
  padding: 0 34px 34px 0;
}

.about__media-main {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r-lg);
}

.about__media-sub {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 6px solid var(--c-white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}

.about__badge {
  position: absolute;
  left: 18px;
  bottom: 74px;
  padding: 16px 20px;
  border-radius: var(--r-sm);
  background: var(--c-lime);
  color: var(--c-green-900);
  box-shadow: var(--shadow-md);
}

.about__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: var(--fw-extrabold);
  line-height: 1.1;
}

.about__badge span {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.about__content .section-head {
  margin-bottom: var(--sp-3);
}

.about__text {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--c-body);
}

.about__text+.about__text {
  margin-top: 14px;
}

.about__actions {
  margin-top: var(--sp-4);
}

/* ==========================================================================
   02  数据优势 Stats
   ========================================================================== */
.section--dark .section-subtitle {
  color: rgba(255, 255, 255, .72);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.stats__item {
  padding: 32px 26px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .055);
}

.stats__value {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 58px);
  font-weight: var(--fw-extrabold);
  line-height: 1;
  color: var(--c-lime);
  font-variant-numeric: tabular-nums;
}

.stats__label {
  margin: 14px 0 8px;
  font-size: 17px;
  font-weight: var(--fw-bold);
  color: var(--c-white);
}

.stats__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .66);
}

/* ==========================================================================
   03  工厂实拍 Factory（4 列网格：4 张实拍图 + 4 段视频交错）
   ========================================================================== */
.factory__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.factory__tile {
  position: relative;
  margin: 0;
  /* aspect-ratio: 1 / 1; */
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--c-green-900);
}

.factory__tile>img,
.factory__tile>video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 播放按钮：只有点击才加载 / 播放视频，避免首屏拉 4 个 mp4 */
.factory__play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: var(--c-lime);
  color: var(--c-green-900);
  font-size: 19px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(6, 32, 20, .32);
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease),
    background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.factory__play i {
  margin-left: 3px;
}

.factory__play:hover {
  background: var(--c-white);
  transform: translate(-50%, -50%) scale(1.08);
}

.js-video.is-playing .factory__play {
  opacity: 0;
  visibility: hidden;
}

/* ==========================================================================
   04  质量控制 QC
   ========================================================================== */
.qc__inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: var(--sp-10);
  align-items: center;
}

.qc__media {
  position: relative;
}

.qc__media>img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r-lg);
}

.qc__badge {
  position: absolute;
  right: 14px;
  bottom: 28px;
  padding: 18px 24px;
  border-radius: var(--r-sm);
  background: var(--c-lime);
  color: var(--c-green-900);
  box-shadow: var(--shadow-md);
}

.qc__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: var(--fw-extrabold);
  line-height: 1.1;
}

.qc__badge span {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.qc__steps {
  margin: 0 0 var(--sp-4);
  padding: 0;
  list-style: none;
}

.qc__step {
  position: relative;
  display: flex;
  gap: 18px;
  padding-bottom: 26px;
}

.qc__step:last-child {
  padding-bottom: 0;
}

.qc__step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--c-line);
}

.qc__num {
  position: relative;
  z-index: 1;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-green-100);
  color: var(--c-green-700);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: var(--fw-extrabold);
}

.qc__step h3 {
  margin: 2px 0 6px;
  font-size: 18px;
  font-weight: var(--fw-bold);
}

.qc__step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-body);
}

/* ==========================================================================
   05  资质证书 Certificates（Swiper 竖版证书轮播，占位图 images/zs.jpg）
   ========================================================================== */
.certs__carousel {
  position: relative;
}

.certs__swiper {
  overflow: hidden;
}

.certs__swiper .swiper-slide {
  height: auto;
}

.certs__card {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.certs__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.certs__card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: #f4f6f3;
}

/* 贴边箭头 + 居中分页点：与客户反馈的「底部箭头 / 自动播放」区分开 */
.certs__arrow {
  position: absolute;
  z-index: 3;
  top: 45%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-green-700);
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

/* 放在卡片外侧的浅底上，不遮挡证书内容 */
.certs__arrow--prev {
  left: -18px;
}

.certs__arrow--next {
  right: -18px;
}

.certs__arrow:hover {
  border-color: var(--c-green-700);
  background: var(--c-green-700);
  color: var(--c-white);
}

.certs__arrow.swiper-button-disabled {
  opacity: .35;
  cursor: default;
}

.certs__pagination,
.certs__pagination.swiper-pagination-horizontal {
  position: static;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
}

.certs__pagination .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  margin: 0;
  background: var(--c-green-100);
  opacity: 1;
  transition: width var(--dur) var(--ease), background var(--dur) var(--ease);
}

.certs__pagination .swiper-pagination-bullet-active {
  width: 26px;
  border-radius: var(--r-pill);
  background: var(--c-green-700);
}

/* ==========================================================================
   06  客户反馈 Voices（Swiper）
   ========================================================================== */
.voices__swiper {
  overflow: hidden;
}

.voices__swiper .swiper-slide {
  height: auto;
}

.quote-card {
  height: 100%;
  margin: 0;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
}

.quote-card__stars {
  display: flex;
  gap: 3px;
  color: #e6b33d;
  font-size: 14px;
}

.quote-card__text {
  flex: 1 1 auto;
  margin: 18px 0 24px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-ink);
}

.quote-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
}

.quote-card__avatar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-green-100);
  color: var(--c-green-700);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: var(--fw-extrabold);
  letter-spacing: .03em;
}

.quote-card__author strong {
  display: block;
  font-size: 15px;
  font-weight: var(--fw-bold);
}

.quote-card__author small {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--c-muted);
}

.voices__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
}

/* Swiper 运行时会给分页容器加 .swiper-pagination-bullets / -horizontal，
   用同等特异性把默认的绝对定位改回普通 flex 行 */
.voices__pagination,
.voices__pagination.swiper-pagination-horizontal {
  position: static;
  width: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.voices__pagination .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  margin: 0;
  background: var(--c-green-100);
  opacity: 1;
  transition: width var(--dur) var(--ease), background var(--dur) var(--ease);
}

.voices__pagination .swiper-pagination-bullet-active {
  width: 26px;
  border-radius: var(--r-pill);
  background: var(--c-green-700);
}

.voices__arrows {
  display: flex;
  gap: 10px;
}

.voices__arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-green-700);
  font-size: 15px;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.voices__arrow:hover {
  border-color: var(--c-green-700);
  background: var(--c-green-700);
  color: var(--c-white);
}

.voices__arrow.swiper-button-disabled {
  opacity: .4;
  cursor: default;
}

/* ==========================================================================
   07  CTA 联系引导（复制自 home.css「09 CTA」）
   ========================================================================== */
.cta-section {
  background: var(--c-white);
}

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--c-green-800) url("../images/cta-bg.jpg") center center / cover no-repeat;
  color: var(--c-white);
}

/* 深色蒙版单独一层：换背景图时不用改文字配色 */
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(6, 32, 20, .60) 0%, rgba(6, 32, 20, .76) 62%, rgba(6, 32, 20, .88) 100%);
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-inline: auto;
  padding: clamp(48px, 6vw, 84px) var(--sp-5);
  text-align: center;
}

.cta-band .eyebrow {
  margin-bottom: 18px;
}

.cta-band__title {
  margin: 0 0 16px;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.16;
  color: var(--c-white);
}

.cta-band__text {
  max-width: 620px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .82);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: var(--sp-4);
}

.cta-band__note {
  margin: var(--sp-3) 0 0;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .66);
}

.cta-band__note a {
  color: var(--c-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-band__note a:hover {
  color: var(--c-lime);
}

/* ==========================================================================
   08  响应式 Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .about__inner,
  .qc__inner {
    gap: var(--sp-8);
  }
}

@media (max-width: 991.98px) {
  .about__inner,
  .qc__inner {
    grid-template-columns: 1fr;
  }

  .about__media {
    max-width: 520px;
  }

  .about__content {
    margin-top: var(--sp-2);
  }

  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .factory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qc__media {
    max-width: 520px;
  }
}

@media (max-width: 767.98px) {
  .about__media {
    padding-right: 26px;
    padding-bottom: 26px;
  }

  .about__media-sub {
    border-width: 4px;
  }

  .about__badge {
    left: 10px;
    bottom: 52px;
    padding: 12px 16px;
  }

  .about__badge strong {
    font-size: 17px;
  }

  .stats__item {
    padding: 24px 20px;
  }

  .factory__grid {
    gap: 14px;
  }

  /* 手机上证书轮播只留居中分页点，贴边箭头会压住证书内容 */
  .certs__arrow {
    display: none;
  }

  .qc__badge {
    right: 12px;
    bottom: 16px;
    padding: 14px 18px;
  }

  .qc__badge strong {
    font-size: 22px;
  }

  .cta-band__inner {
    padding: 44px 24px;
  }
}

@media (max-width: 560px) {
  .factory__play {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }

  .cta-band__inner {
    padding: 38px 18px;
  }

  .cta-band__actions {
    flex-direction: column;
  }

  .cta-band__actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .stats__grid {
    gap: 12px;
  }

  .stats__value {
    font-size: 38px;
  }

  .stats__label {
    font-size: 15.5px;
  }

  .voices__controls {
    margin-top: 22px;
  }

  .voices__arrow {
    width: 40px;
    height: 40px;
  }
}
