/* pages/home_about.css — 首页「关于我们」：背景缓放 / 文案 / 数据条（.stat）
   拆自 pages/home.css（2026-10-12 拆分，纯搬移）；页面源 bundle 2:53「终稿-首页-初稿 5.0」（1920×6660）。
   含原 home.css「移动端专属」段中数据条横滑部分（<768）；news 部分在 home_news.css */

/* ---------- 关于我们（1920×1080） ---------- */
/* 背景图 + 蒙版合在 ::before 一层（与 KV 同构），以便 scale 时图与蒙版一起缩放。
   之前把蒙版留在 section 上导致被 ::before 图片层盖住 → 蒙版丢失。 */
.about {
  position: relative;
  background: none;
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .3) 35%, rgba(255, 255, 255, .16) 100%),
    linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .25)),
    url(https://cdn-s3.t24.thinkart.net/xitec/public/images/about-bg.webp) center / cover no-repeat;
  z-index: 0;
}

/* ── About 背景缓放：滚动进入视口时从 1.1 缓回到 1，持续 2.5s ──
   用 transform: scale（伪元素无定位 transform 需保护）。
   JS（count-up.js）通过 IntersectionObserver 加 .zoom-in 触发。
   reduced-motion 下不加 class → 保持 scale(1) 静态。 */
@media (min-width: 1280px) {
  .about::before {
    transform: scale(1.1);
    transition: transform 2.5s var(--m-ease, cubic-bezier(0.075, 0.82, 0.165, 1));
    will-change: transform;
  }

  .about.zoom-in::before {
    transform: scale(1);
  }
}

.about__inner {
  position: relative;
  z-index: 1;
  padding: var(--space-16) var(--space-6) var(--space-16);
}

.about__lead {
  max-width: 52rem;
  margin-top: var(--space-5);
  font-size: clamp(1.375rem, 1rem + 1.2vw, var(--font-size-h2));
  font-weight: var(--font-weight-medium);
  line-height: 1.39;
  color: #fff;
}

.about__inner > .btn-more {
  margin-top: var(--space-10);
  color: #fff;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 16.5625rem));
  gap: var(--space-10) var(--space-8);
  margin-top: var(--space-16);
}

@media (min-width: 1280px) {
  .about {
    min-height: 67.5rem;
  }

  .about__inner {
    padding: 9.9375rem 0 0 7.6875rem; /* 内容 x=123，眉题 y=159 */
  }

  .about__lead {
    max-width: min(86.5rem, calc(100% - 4.1875rem)); /* 1384@1920，随视口流式 */
    margin-top: 1.25rem;
  }

  .about__inner > .btn-more {
    margin-top: 5.1875rem;
  }

  .about__stats {
    display: flex;
    gap: 3.75rem;
    margin-top: 15.875rem; /* 数据行 y=725 */
  }

  .stat {
    width: 16.5625rem;
  }
}

/* ---------- 移动端专属（<768 手机档；PC / 平板档严格不动）——数据条横滑
   （原 home.css「移动端专属」段的 about/stats 部分；news 部分在 home_news.css） ---------- */
@media (max-width: 767px) {
  /* 数据条（1956 / 150 / 37 / 2）：单行横排、可左右滑动、字号缩小（数字 80→48、标签 20→14），
     JS（js/stats-marquee.js）克隆一份内容实现自动无限循环 */
  .about__stats {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-top: 2.5rem;
  }

  .about__stats::-webkit-scrollbar {
    display: none;
  }

  .stat {
    flex: none;
    width: auto;
    /* 桌面 min-height: 143 + space-between 会在「数字 → 标签」之间凭空留出 59px
       （143 - 数字行盒 64 - 标签行盒 20）。移动端改由内容决定高度：
       间距 59 → 0，即需求 R1 的「减少 60px」。
       ⚠ 别删 min-height: 0 —— 否则那 59px 幽灵间距会回来。 */
    min-height: 0;
    justify-content: flex-start;
  }

  .stat__value {
    font-size: 3rem;              /* 80 → 48 */
    line-height: 4rem;            /* 64 */
    letter-spacing: -.09375rem;   /* -3px 等比缩放至 48 字号 */
  }

  .stat__label {
    font-size: .875rem;   /* 20 → 14 */
    line-height: 1.25rem; /* 20 */
  }
}