/* ==========================================================================
   关于我们（about.html）页面专属样式
   数据取自 MasterGo 设计稿「关于我们」(19:4067, 1920×3795)
   导航 / 页脚沿用 style.css 站点级样式，本文件仅覆盖与新增区块
   ========================================================================== */

:root {
  --pg-max: 1718px;                 /* 设计稿内容区 x100 ~ x1819 */
  --pg-pad: clamp(20px, 5.2vw, 101px);
  --pg-brand-deep: #c40c24;         /* 设计稿 矩形10 图标底红 */
}

/* 内容容器：与导航、页脚同一左右边界 */
.pg-wrap {
  width: 100%;
  max-width: var(--pg-max);
  margin: 0 auto;
  padding: 0 var(--pg-pad);
}

.pg-about { background: #fff; }

/* 固定导航高 78px（滚动后 64px），锚点跳转时预留头部空间 */
#about,
#culture,
#facility {
  scroll-margin-top: 90px;
}

/* ===== Banner（设计稿 banner 19:4886，1920×600） ===== */
.pg-banner {
  position: relative;
  width: 100%;
  height: clamp(220px, 31.25vw, 600px);
  margin-top: -78px;               /* 抵消 body 为固定导航预留的 78px，让 banner 顶到页面最上方 */
  overflow: hidden;
  background: #d9d9d9;
}
.pg-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 设计稿：大图 1922×1281 居中裁成 1920×600，天空在上、厂房主体居中偏下 */
  object-position: center 22%;
  display: block;
}
/* 顶部浅色蒙版：保证固定导航（深色文字）在照片上仍可读，强度低于之前 */
.pg-banner::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 42%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
  z-index: 1;
  pointer-events: none;
}

/* ===== 公司简介：直接复用 style.css 中的 .about 系列样式（与首页一致） ===== */
/* 多段落正文：字号/行高继承 .about__text，这里只补段落间距 */
.about__text p { margin: 0 0 22px; }
.about__text p:last-child { margin-bottom: 0; }

/* About 页正文有 3 段，取消小图与文字的重叠，桌面端把它放到正文下方 */
@media (min-width: 769px) {
  .about__thumbs {
    position: static;
    margin-top: 32px;
    display: flex;
    align-items: flex-end;
    gap: 14px;
  }
  .about__thumb--left { width: auto; max-width: 281px; }
  .about__thumb--right { width: auto; max-width: 453px; }
}

/* About 页面包屑（设计稿路径：首页 > 关于我们） */
.about__head {
  width: 100%;
  padding: 24px var(--pg-pad) 16px max(var(--pg-pad), calc((100vw - var(--pg-max)) / 2 + var(--pg-pad)));
}
.about__crumb {
  font-size: 16px;
  line-height: 28px;
  color: #999999;                  /* 设计稿 #999999 */
  margin: 0;
}
.about__crumb a { color: #999999; text-decoration: none; transition: color .25s ease; }
.about__crumb a:hover { color: var(--brand); }

/* About 页把面包屑提到内容区顶部后，减小文本列的上边距 */
.about__text-col { margin-top: 40px; }

/* About 页左侧内容与 .pg-wrap 内容区左边缘对齐，正文不居中 */
.about__inner { padding-left: max(var(--pg-pad), calc((100vw - var(--pg-max)) / 2 + var(--pg-pad))); }
.about__text { margin-left: 0 !important; margin-right: 0 !important; text-align: left !important; }
.about__text p { text-align: left !important; }

/* ===== 企业文化（设计稿 19:4455，1920×739） ===== */
.pg-culture {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-color: #0c0e10; /* 兜底：背景图未就绪时也不开天窗 */
  padding: clamp(64px, 7vw, 133px) 0 clamp(64px, 7vw, 140px);
}
.pg-culture__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
/* 深色蒙版已烘焙进 culture_bg.jpg（设计稿裁切框合成图），不再叠加 CSS 渐变以免二次变暗 */
.pg-culture__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 80px);
  align-items: start;
}
.pg-culture__title {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
}
.pg-culture__sub {
  margin-top: clamp(36px, 6vw, 120px);
  font-size: 18px;
  line-height: 28px;
  color: #fff;
}
.pg-culture__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 3.6vw, 40px);   /* 设计稿 4 项 y 间距 128 / 159 / 158 */
}
.pg-culture__item { display: flex; align-items: flex-start; gap: 31px; }
.pg-culture__icon {
  flex: none;
  width: 55px;                     /* 设计稿 矩形10 55×55 */
  height: 55px;
  background: var(--pg-brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pg-culture__icon img { width: 34px; height: auto; display: block; }
.pg-culture__name {
  font-size: 24px;
  font-weight: 400;
  line-height: 33px;
  color: #fff;
  margin: 0 0 10px;
}
.pg-culture__desc {
  font-size: 16px;
  line-height: 24px;
  color: #fff;
  max-width: 624px;                /* 设计稿正文宽 624.15 */
}

/* ===== 厂房设备（设计稿 组 14，1718×529） ===== */
.pg-facility {
  background: #fff;
  padding: clamp(56px, 6vw, 110px) 0 clamp(64px, 7vw, 125px);
}
.pg-facility__title {
  text-align: center;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 clamp(32px, 5vw, 95px);
}
.pg-facility__stage {
  position: relative;
}
.pg-facility__viewport {
  overflow: hidden;                /* 裁掉未进入的整组幻灯片 */
}
.pg-facility__track {
  display: flex;
  width: 100%;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1); /* 左右切换的滑动过渡 */
  will-change: transform;
}
.pg-facility__slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
}
.pg-facility__group {
  width: 100%;
  max-width: 1494px;               /* 2×648 + 197 + 1 ≈ 1494 */
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  /* 两图之间的总间距 = clamp(20px, 10vw, 197px)；
     因为 1px 分隔线两侧各有 gap，所以列 gap 取一半 */
  gap: 0 calc(clamp(20px, 10vw, 197px) / 2);
}
.pg-facility__cell {
  aspect-ratio: 648 / 426;
  overflow: hidden;
  background: #bfbfbf;             /* 设计稿 矩形11 占位灰 */
}
.pg-facility__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform .35s ease;
}
.pg-facility__cell img:hover { transform: scale(1.05); }
.pg-facility__divider {
  background: #bfbfbf;
  opacity: .5;
  align-self: stretch;
}
/* 末尾单数张：居中显示，避免右侧空白/灰块 */
.pg-facility__group--single {
  grid-template-columns: 1fr;
  justify-items: center;
}
.pg-facility__group--single .pg-facility__cell {
  max-width: 648px;
  width: 100%;
}
.pg-facility__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 61px;                     /* 设计稿 方向 61×61 */
  height: 61px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform .25s ease, opacity .25s ease;
  z-index: 2;
}
.pg-facility__arrow:hover { transform: translateY(-50%) scale(1.08); }
.pg-facility__arrow img { width: 100%; height: 100%; display: block; }
.pg-facility__arrow--prev { left: 0; }
.pg-facility__arrow--next { right: 0; }

/* ===== Spotlight 灯箱 ===== */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(0, 0, 0, .85);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.lb-overlay.is-open { opacity: 1; visibility: visible; }
.lb-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .5);
  background: #fff;
  cursor: default;
}
.lb-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background .25s ease;
}
.lb-close:hover { background: rgba(255, 255, 255, .3); }

/* ===== 响应式 ===== */
/* 极宽桌面（≥1719，内容区已居中留白）：舞台外扩到内容区最边缘，箭头贴最外缘，对齐设计稿 1920 */
@media (min-width: 1719px) {
  .pg-facility__stage { margin-left: calc(-1 * var(--pg-pad)); margin-right: calc(-1 * var(--pg-pad)); }
}

/* ≤1718：包裹框已占满视口，外扩无意义，改为舞台内缩留出边距，让箭头落在图片外侧而非压图上 */
@media (max-width: 1718px) {
  .pg-facility__stage { padding: 0 clamp(40px, 6vw, 80px); }
  .pg-facility__arrow { width: 52px; height: 52px; }
}

@media (max-width: 1280px) {
  .pg-culture__inner { grid-template-columns: 1fr; }
  .pg-culture__sub { margin-top: 24px; }
}

@media (max-width: 860px) {
  .pg-culture__item { gap: 18px; }
  .pg-culture__icon { width: 46px; height: 46px; }
  .pg-culture__icon img { width: 28px; }
  .pg-culture__name { font-size: 20px; line-height: 1.4; }
  /* 手机：图片上下堆叠，箭头隐藏，舞台恢复无内缩 */
  .pg-facility__stage { padding: 0; margin-left: 0; margin-right: 0; }
  /* 箭头隐藏后无法切换幻灯片，须让所有幻灯片纵向排开（否则只看到第 1 组，
     第 3 条等落单数据被 viewport 裁掉） */
  .pg-facility__track { flex-direction: column; gap: 24px; transform: none !important; }
  .pg-facility__slide { flex: 0 0 auto; width: 100%; }
  .pg-facility__group { grid-template-columns: 1fr; gap: 24px; }
  .pg-facility__divider { display: none; }
  .pg-facility__arrow { display: none; }
}

@media (max-width: 480px) {
  .pg-facility__title { font-size: 26px; }
}

/* 手机端：正文列与上方留白收紧（原 40px 与 .section/.about__inner 叠得偏大） */
@media (max-width: 767px) {
  .about__text-col { margin-top: 16px; }
}
