/* ============================================================
 * home.css · 首页专属区块样式
 * 仅 pages-tech/home.html 使用，从首页"动效与交互增强层"拆出：
 *   六大能力网格 .cap-grid / 四步闭环 .steps--process / 数据轨道时间轴 .sec--timeline
 *   JS 跑马灯 .mq* / 合作伙伴轮播 .pm* / 区块背景系统 .sec--honor / .sec--pm
 *   鼠标聚光层 .tl-spot / .honor-spot / .pm-spot
 * 全站通用部分见 assets/common.css
 * ============================================================ */

/* 能力卡片由外层 .cap-grid 统一做入场，卡片自身不再单独隐藏
   只覆盖透明度，不动 transform，避免覆盖 3D 倾斜与 hover 位移 */
.cap-grid .biz-card.reveal {
  opacity: 1;
}

/* ============================================================
 * 四步闭环 · 中央轨道圆环 + 左右两列卡片 + 弧线连接
 * 左列：需求诊断 / 专业交付，右列：方案策划 / 验收闭环，
 * 中央蓝灰外环 + 粉色光晕 + 旋转虚线轨道，表达"闭环"语义。
 * ============================================================ */
.sec--process {
  position: relative;
  background: #f4f6fa url(img/steps-bg.png) center center / cover no-repeat
    fixed;
}

.sec--process::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  z-index: 1;
}

.steps-wrap {
  position: relative;
  margin-top: var(--s7);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 40px;
  min-height: 520px;
}

/* 卡片与圆环之间的连接弧线（铺最底层） */
.proc-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.proc-links path {
  fill: none;
  stroke: #e4b9c1;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}
.proc-links circle {
  fill: #e9869a;
}

/* 左右两侧的科技感装饰（文档 + 电路线条） */
.proc-deco {
  position: absolute;
  z-index: 0;
  width: 150px;
  opacity: 0.8;
  pointer-events: none;
}
.proc-deco--l {
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
}
.proc-deco--r {
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
}

/* 卡片列：上下两张分居两端，把中央空间让给圆环 */
.steps-col {
  position: relative;
  z-index: 2;
  flex: 0 0 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 0;
}

.steps-col .step {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px 18px;
  box-shadow:
    0 12px 32px rgba(36, 48, 76, 0.08),
    0 0px 30px rgb(255, 239, 239) inset;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.steps-col .step h4 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.steps-col .step__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-600);
  letter-spacing: 0.04em;
  vertical-align: 1px;
}

.steps-col .step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-500);
}

.steps-col .step__icon {
  margin-top: 12px;
  color: var(--brand-500);
  line-height: 0;
  opacity: 0.8;
}
.steps-col .step__icon svg {
  width: 22px;
  height: 22px;
}

@media (hover: hover) and (pointer: fine) {
  .steps-col .step:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(36, 48, 76, 0.12);
  }
}

/* 中央大圆环 */
.proc-orbit {
  position: relative;
  z-index: 1;
  flex: 0 0 380px;
  width: 380px;
  height: 380px;
  align-self: center;
}

/* 中心logo */
.proc-orbit__logo {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  img {
    width: 160px;
  }
}

/* 中心粉色光晕（缓慢呼吸） */
.proc-orbit__glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(233, 134, 154, 0.3) 0%,
    rgba(233, 134, 154, 0.12) 48%,
    rgba(233, 134, 154, 0) 70%
  );
  animation: orbitBreath 5.2s ease-in-out infinite;
}
@keyframes orbitBreath {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

/* 虚线轨道环 + 相位点整体缓慢旋转 */
.proc-orbit__ring {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: center center;
  animation: procRotate 48s linear infinite;
}
@keyframes procRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .proc-orbit__ring {
    animation: none;
  }
  .proc-orbit__glow {
    animation: none;
  }
}

@media (max-width: 980px) {
  .sec--process {
    padding: var(--s7) 0;
  }
  .steps-wrap {
    padding: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s5);
  }
  .proc-orbit,
  .proc-links,
  .proc-deco {
    display: none;
  }
  .steps-col {
    flex: none;
    padding: 0;
    justify-content: flex-start;
    gap: var(--s5);
    display: contents;
  }
  .steps-col--l .step:nth-child(1) { order:1; }
  .steps-col--r .step:nth-child(1) { order:2; }
  .steps-col--l .step:nth-child(2) { order:3; }
  .steps-col--r .step:nth-child(2) { order:4; }
}

@media (max-width: 620px) {
  .steps-wrap {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
 * 发展历程 · 数据轨道时间轴
 * 左侧年份 + 竖向轨道（滚动填充）+ 节点点亮 + 内容卡片
 * ============================================================ */
.sec--timeline .timeline {
  position: relative;
  margin-top: var(--s7);
  padding-left: 115px;
}
/* 取消基础版的粗红线，改用轨道 + 填充层 */
.sec--timeline .timeline::before {
  display: none;
}

.sec--timeline .tl-rail {
  position: absolute;
  left: 90px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: #e9e4e0;
}

.sec--timeline .tl-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, var(--brand-600), #ff7a45);
  box-shadow: 0 0 10px rgba(200, 16, 46, 0.55);
}

.sec--timeline .tl-item {
  position: relative;
  padding: 0 0 var(--s6) 0;
}

/* 节点：默认空心，激活后填充发光 */
.sec--timeline .tl-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: var(--r-full);
  background: #fff;
  border: 1px solid #dcd5d0;
  box-shadow: 0 0 0 4px #fff;
  transition:
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.sec--timeline .tl-item.is-active::before {
  background: var(--brand-600);
  border-color: var(--brand-600);
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 7px rgba(200, 16, 46, 0.12),
    0 0 16px rgba(200, 16, 46, 0.45);
}

/* 当前节点：光环从节点内部持续向外扩散，扩散到最外层淡出后从中心重新开始。
   只作用于 is-current（ScrollTrigger 进入时由脚本标出的那一个点），
   已点亮的旧节点保持静态发光，不参与动画。 */
@keyframes tl-dot-wave {
  from {
    box-shadow:
      0 0 0 4px #fff,
      0 0 0 4px rgba(200, 16, 46, 0.42),
      0 0 16px rgba(200, 16, 46, 0.45);
  }
  to {
    box-shadow:
      0 0 0 4px #fff,
      0 0 0 26px rgba(200, 16, 46, 0),
      0 0 16px rgba(200, 16, 46, 0.45);
  }
}
.sec--timeline .tl-item.is-current::before {
  animation: tl-dot-wave 1.8s cubic-bezier(0.2, 0.6, 0.35, 1) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .sec--timeline .tl-item.is-current::before {
    animation: none;
  }
}

/* 年份：浅灰幽灵，激活后转品牌红 */
.sec--timeline .tl-year {
  position: absolute;
  left: -150px;
  top: 16px;
  width: 92px;
  text-align: right;
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #d7d0ca;
  transition: color 0.35s var(--ease);
}
.sec--timeline .tl-item.is-active .tl-year {
  color: var(--brand-600);
}

/* 内容卡片：左图右文，图片随激活由灰转彩 */
.sec--timeline .tl-card {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 32px;
  background: #fff;
  border-radius: 16px;
  transition:
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.sec--timeline .tl-media {
  flex: 0 0 320px;
  border-radius: 11px 0 0 11px;
  overflow: hidden;
  background: #f2efec;
}
.sec--timeline .tl-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) brightness(0.96) contrast(0.95);
  transform: scale(1.04);
  transition:
    filter 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.sec--timeline .tl-item.is-active .tl-media img {
  filter: grayscale(0) brightness(1) contrast(1);
  transform: scale(1);
}
.sec--timeline .tl-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 18px 18px 0;
  position: relative;
}
.sec--timeline .tl-card h4 {
  font-size: 21px;
  margin-bottom: 0;
}
.sec--timeline .tl-card p {
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.5;
}

/* 标题行：图标方块 + 标题 */
.sec--timeline .tl-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.sec--timeline .tl-ico {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(200, 16, 46, 0.16);
  background: rgba(200, 16, 46, 0.055);
  color: var(--brand-600);
  transition:
    background-color 0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.sec--timeline .tl-ico svg {
  width: 21px;
  height: 21px;
}
.sec--timeline .tl-item.is-active .tl-ico {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
  box-shadow: 0 8px 18px rgba(200, 16, 46, 0.22);
}

/* 底部关键词标签 */
.sec--timeline .tl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.sec--timeline .tl-meta span {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #faf8f6;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.7;
  transition:
    border-color 0.35s var(--ease),
    color 0.35s var(--ease),
    background-color 0.35s var(--ease);
}
.sec--timeline .tl-item.is-active .tl-meta span {
  border-color: rgba(200, 16, 46, 0.2);
  background: rgba(200, 16, 46, 0.04);
  color: var(--brand-700, #a30d25);
}

/* 最新节点的 NOW 标签 */
.sec--timeline .tl-now {
  position: absolute;
  right: 18px;
  top: 18px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 3px 8px;
  border: 1px solid rgba(200, 16, 46, 0.3);
  border-radius: 999px;
  background: rgba(200, 16, 46, 0.05);
  color: var(--brand-600);
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.sec--timeline .tl-now.old {
  border-color: var(--line);
  background: var(--line);
  color: var(--ink-500);
}

@media (hover: hover) and (pointer: fine) {
  .sec--timeline .tl-card:hover {
    transform: translateY(-3px);
    border-color: rgba(200, 16, 46, 0.22);
    box-shadow: 0 18px 38px rgba(20, 17, 15, 0.1);
  }
}

@media (max-width: 980px) {
  .sec--timeline .timeline {
    padding-left: 52px;
  }
  .sec--timeline .tl-rail {
    left: 26px;
  }
  .sec--timeline .tl-year {
    position: static;
    width: auto;
    text-align: left;
    font-size: 22px;
    margin-bottom: 10px;
  }
  .sec--timeline .tl-card {
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    padding: 12px;
  }
  .sec--timeline .tl-media {
    flex: none;
    width: 100%;
    height: 190px;
  }
  .sec--timeline .tl-body {
    padding: 0 8px 10px;
  }
  .sec--timeline .tl-card h4 {
    font-size: 19px;
  }
}

/* ============================================================
 * 六大业务能力 · 规整 3 列网格
 * 布局等宽等高等间距，视觉层次交给卡片自身（深色卡 + hover 特效）
 * ============================================================ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 等高等宽：卡片纵向 flex，正文区填满剩余高度 */
.cap-grid .biz-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.cap-grid .biz-card__body {
  flex: 1;
  position: relative;
}

/* 图片与正文交界处的白色图标圆：外圈羽化白晕，向图片渐隐，与正文自然交融 */
.biz-card__badge {
  position: absolute;
  top: -32px;
  right: 24px;
  z-index: 3;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-600);
  transition:
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.biz-card__badge svg {
  width: 30px;
  height: 30px;
}

/* 能力网格响应式：3 列 → 2 列 → 1 列 */
@media (max-width: 1020px) {
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .cap-grid {
    grid-template-columns: 1fr;
  }
}

/* 发展历程 · 区块背景系统 */
.sec--timeline {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-warm);
}

/* 背景实景图：右半侧淡入，左侧完全隐去，保证文字区干净 */
.sec--timeline::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../assets/img/hero-office.jpg") right 30% / cover no-repeat;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 38%,
    rgba(0, 0, 0, 0.55) 72%,
    #000 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 38%,
    rgba(0, 0, 0, 0.55) 72%,
    #000 100%
  );
}

/* 上层：白色渐隐 + 点阵 + 右上角红色光晕 */
.sec--timeline::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(60% 48% at 88% 6%, rgba(200, 16, 46, 0.1), transparent 66%),
    radial-gradient(rgba(20, 17, 15, 0.07) 1px, transparent 1px),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.78),
      rgba(255, 255, 255, 0.9) 45%,
      rgba(255, 255, 255, 0.82)
    );
  background-size:
    auto,
    24px 24px,
    auto;
  background-repeat: no-repeat, repeat, no-repeat;
}

.sec--timeline .wrap {
  position: relative;
  z-index: 1;
}

/* ============================================================
 * 全宽 JS 跑马灯（首页 · 荣誉 / 团队 / 伙伴）
 * rAF 驱动无缝循环，hover 暂停；两侧不做 mask 渐隐
 * 旧 .marquee/.honor-track/.team-track/.pm-track 保留给其他页面
 * ============================================================ */
.mq {
  overflow: hidden;
  width: 100%;
  padding: 8px 0 22px;
}
.mq-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  will-change: transform;
}

/* 资质荣誉：白卡 + hover 上浮 */
.mq--honor {
  margin-top: var(--s7);
  position: relative;
  z-index: 2;
}
@media screen and (max-width: 768px) {
  .mq--honor {
    margin-top: var(--s4);
  }
}
.mq--honor .mq-track {
  gap: 20px;
}

/* 荣誉双行：每行独立无缝滚动，第二行反向，视口内首尾错开 */
.mq--honor {
  padding-bottom: 10px;
}
/* .mq--honor .mq-track + .mq-track { margin-top: 20px; } */
.mq--honor .honor {
  display: flex;
  flex-direction: column;
}
.mq--honor .honor__body {
  display: flex;
  /* align-items: center; */
  justify-content: center;
}
@media screen and (max-width: 768px) {
  .mq--honor .honor__body {
    padding: 4px 0 8px 0;
  }
}
.mq--honor .honor {
  flex: 0 0 230px;
  overflow: inherit;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
@media screen and (max-width: 768px) {
  .mq--honor .honor {
    flex: 0 0 150px;
  }
}
.mq--honor .honor:hover {
  transform: translateY(-4px);
  /* box-shadow: var(--sh2); */
  border-color: var(--brand-100);
}

.mq--honor .honor:hover .honor__img {
  box-shadow: var(--sh2);
}

/* 专业团队：去卡片化，3:4 人像 + 编辑式排版 */
.mq--team {
  margin-top: var(--s5);
  padding-bottom: 12px;
}
.mq--team .mq-track {
  gap: 44px;
}
.mq--team .tm {
  flex: 0 0 250px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.mq--team .tm__img {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  position: relative;
}
.mq--team .tm__img img {
  transition: transform 0.6s var(--ease);
}
.mq--team .tm:hover .tm__img img {
  transform: scale(1.05);
}
.mq--team .tm__body {
  padding: 16px 2px 0;
}
.mq--team .tm__body::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: var(--brand-600);
  margin-bottom: 10px;
  transition: width 0.35s var(--ease);
}
.mq--team .tm:hover .tm__body::before {
  width: 44px;
}
.mq--team .tm__body b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-700);
}
.mq--team .tm__body span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-500);
  letter-spacing: 0.02em;
}

/* 合作伙伴：跑马灯，单行无缝滚动 */
.mq--partner {
  margin-top: var(--s3);
  padding: 40px 0;
  position: relative;
  z-index: 2;
}
.mq--partner .mq-track {
  gap: 18px;
}
.mq--partner .pm-card {
  flex: 0 0 250px;
}
.pm-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-sizing: border-box;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.pm-card:hover {
  transform: translateY(-4px);
  /* box-shadow: var(--sh2); */
  border-color: var(--brand-100);
  box-shadow: var(--sh2);
}
/* 横向长方形 logo：固定高度，宽度自适应，左图右字不压缩 */
.pm-card img {
  width: 100%;
  height: 90px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
@media (max-width: 980px) {
  .pm-card img {
    height: 42px;
  }
  /* 980 以下卡片改为上图下文：圆角四角统一 */
  .sec--timeline .tl-media {
    border-radius: 11px 11px 0 0;
  }
}
@media (max-width: 768px) {
  .mq--partner {
    padding: 24px 0;
    margin-top: 0;
  }
}
@media (max-width: 620px) {
  .mq--partner .mq-track {
    gap: 12px;
  }
  .mq--partner .pm-card {
    flex: 0 0 200px;
  }
  .pm-card {
    padding: 16px 38px;
    gap: 10px;
  }
  .pm-card img {
    height: 70px;
  }
}

/* ============================================================
 * 区块背景系统：三个区块三种语言，避免同质化
 *   荣誉 = 暖红底 + 135° 斜纹（证书拉丝）+ 漂移辉光
 *   伙伴 = 浅灰底 + 方格网（蓝图）+ 漂移墨晕
 *   历程 = 点阵（已有）+ 鼠标聚光红点
 * ============================================================ */
.sec--honor {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #fdf8f7 0%, #f9efee 100%);
}
.sec--honor::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(
    135deg,
    rgba(200, 16, 46, 0.032) 0 1px,
    transparent 1px 15px
  );
}
.sec--honor::after {
  content: "";
  position: absolute;
  left: -160px;
  top: -200px;
  width: 640px;
  height: 640px;
  z-index: -1;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.08), transparent 65%);
  animation: secGlowA 20s ease-in-out infinite alternate;
}
@keyframes secGlowA {
  to {
    transform: translate(38vw, 220px);
  }
}

.sec--pm {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #f8f7f5 0%, #f1efec 100%);
}
@media (max-width: 768px) {
  .sec--pm {
    padding: 24px 0;
  }
}
.sec--pm::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(20, 17, 15, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 17, 15, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
}
.sec--pm::after {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -240px;
  width: 700px;
  height: 700px;
  z-index: -1;
  background: radial-gradient(circle, rgba(20, 17, 15, 0.06), transparent 62%);
  animation: secGlowB 24s ease-in-out infinite alternate;
}
@keyframes secGlowB {
  to {
    transform: translate(-32vw, -200px);
  }
}

/* 发展历程 · 鼠标聚光：红点阵与灰点阵同几何（24px），radial mask 揭示
 * 层级：底图/白纱(z0) < 聚光红点(z1) < 内容(z2) */
.sec--timeline .tl-spot {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  background-image: radial-gradient(
    rgba(200, 16, 46, 0.55) 1.4px,
    transparent 1.8px
  );
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(
    150px circle at var(--mx, -999px) var(--my, -999px),
    rgba(0, 0, 0, 0.95),
    transparent 74%
  );
  mask-image: radial-gradient(
    150px circle at var(--mx, -999px) var(--my, -999px),
    rgba(0, 0, 0, 0.95),
    transparent 74%
  );
}
.sec--timeline .tl-spot.is-live {
  opacity: 1;
}
.sec--timeline .wrap {
  z-index: 2;
}

/* 资质荣誉 · 鼠标聚光：斜纹红色高亮（与 ::before 同 135°/15px 几何） */
.sec--honor .honor-spot {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  background: repeating-linear-gradient(
    135deg,
    rgba(200, 16, 46, 0.16) 0 1px,
    transparent 1px 15px
  );
  -webkit-mask-image: radial-gradient(
    300px circle at var(--mx, -999px) var(--my, -999px),
    rgba(0, 0, 0, 1),
    transparent 72%
  );
  mask-image: radial-gradient(
    300px circle at var(--mx, -999px) var(--my, -999px),
    rgba(0, 0, 0, 1),
    transparent 72%
  );
}
.sec--honor .honor-spot.is-live {
  opacity: 1;
}
.sec--honor .wrap {
  position: relative;
  z-index: 2;
}

/* 合作伙伴 · 鼠标聚光：方格网红色高亮（与 ::before 同 44px 几何） */
.sec--pm .pm-spot {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  background-image:
    linear-gradient(rgba(200, 16, 46, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 16, 46, 0.22) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(
    300px circle at var(--mx, -999px) var(--my, -999px),
    rgba(0, 0, 0, 1),
    transparent 72%
  );
  mask-image: radial-gradient(
    300px circle at var(--mx, -999px) var(--my, -999px),
    rgba(0, 0, 0, 1),
    transparent 72%
  );
}
.sec--pm .pm-spot.is-live {
  opacity: 1;
}
.sec--pm .wrap {
  position: relative;
  z-index: 2;
}

/* 四步闭环 · 背景使用 steps-bg.png，移除点阵与鼠标推开特效 */
.sec--process .wrap {
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .mq-track {
    transform: none !important;
  }
  .sec--honor::after,
  .sec--pm::after {
    animation: none;
  }
  .tl-spot,
  .honor-spot,
  .pm-spot {
    display: none;
  }
}

/* ============================================================
 * 首页 Hero · Swiper 轮播（fade 交叉淡入，支持鼠标拖拽 / 触屏滑动）
 * 视觉与内容入场动画沿用原 Hero 设计，切换动画仍为 fade
 * ============================================================ */
.hero-swiper {
  position: relative;
  min-height: 100vh;
  background: var(--ink-900);
  overflow: hidden;
  isolation: isolate;
}
.hero-swiper .hero-slides {
  position: relative;
  height: 100vh;
  min-height: 560px;
  /* 手势层：横向拖动由脚本接管切屏，纵向仍交给页面滚动 */
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.hero-swiper .hero-slides:active {
  cursor: grabbing;
}
/* 链接和图片默认可以被原生拖拽，会打断 Pointer 手势（触发 pointercancel），这里禁掉 */
.hero-swiper .hero-slides a,
.hero-swiper .hero-slides img {
  -webkit-user-drag: none;
  user-drag: none;
}
.hero-swiper .swiper-wrapper {
  height: 100%;
}
/* 渐变切换由 Swiper fade 负责；slide 回到正常文档流，不再靠绝对定位叠层 */
.hero-swiper .hero__slide {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink-900);
}

/* 每屏内容入场（切到该屏时重放） */
.hero-swiper .hero__slide.is-active .hero__in > .eyebrow {
  animation: heroLineIn 0.7s var(--ease) 0.12s both;
}
.hero-swiper .hero__slide.is-active .hero__in > .hero__title {
  animation: heroLineIn 0.8s var(--ease) 0.24s both;
}
.hero-swiper .hero__slide.is-active .hero__in > .hero__lede {
  animation: heroLineIn 0.7s var(--ease) 0.42s both;
}
.hero-swiper .hero__slide.is-active .hero__in > .hero__acts {
  animation: heroLineIn 0.7s var(--ease) 0.56s both;
}
.hero-swiper .hero__slide.is-active .hero__in > .hero__badges {
  animation: heroLineIn 0.6s var(--ease) 0.7s both;
}
@keyframes heroLineIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 分页指示器（细长条） */
.hero-swiper .hero-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 80px;
  z-index: 6;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  padding-right: 140px;
}
.hero-swiper .hero-dot {
  width: 30px;
  height: 4px;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition:
    background-color var(--t) var(--ease),
    width var(--t) var(--ease);
}
.hero-swiper .hero-dot.is-active {
  width: 44px;
  background: #fff;
}
.hero-swiper .hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* 底部 SCROLL 提示：位于分页指示器上方，避免与圆点重叠 */
.hero-swiper .hero__scroll {
  bottom: 44px;
  z-index: 6;
  pointer-events: none;
}

@media (max-width: 760px) {
  .hero-swiper .hero-slides {
    min-height: 520px;
  }
  .hero-swiper .hero-pagination {
    bottom: 18px;
  }
  .hero-swiper .hero__scroll {
    bottom: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-swiper .hero__in > .eyebrow,
  .hero-swiper .hero__in > .hero__title,
  .hero-swiper .hero__in > .hero__lede,
  .hero-swiper .hero__in > .hero__acts,
  .hero-swiper .hero__in > .hero__badges {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .hero-swiper .hero__slide {
    transition: none;
  }
}

/* ============================================================
 * 首页 Header：初始透明浮于深色 Hero 之上，滚动后转白底深字
 * —— .header--over-hero 只由 common.js 在首页加（页面存在 .hero-swiper 时）
 * ============================================================ */
.header--over-hero {
  position: fixed;
  top: 0;
}
.header--over-hero:not(.is-stuck) {
  background: transparent;
  backdrop-filter: saturate(100%) blur(0);
  -webkit-backdrop-filter: saturate(100%) blur(0);
  border-bottom-color: transparent;
  box-shadow: none;
}
/* 顶部轻微压暗，保证白色文字在明亮天空/画面区域也可读；滚动后淡出 */
.header--over-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(12, 16, 22, 0.5),
    rgba(12, 16, 22, 0)
  );
  opacity: 1;
  transition: opacity var(--t) var(--ease);
}
.header--over-hero.is-stuck::before {
  opacity: 0;
}

/* 文字：初始白色 → 滚动后回到深色（颜色过渡与背景同步） */
.header--over-hero .logo__name,
.header--over-hero .logo__sub,
.header--over-hero .nav a,
.header--over-hero .nav a[aria-current="page"]::after,
.header--over-hero .burger {
  transition:
    color var(--t) var(--ease),
    background-color var(--t) var(--ease),
    border-color var(--t) var(--ease);
}
.header--over-hero:not(.is-stuck) .logo__name,
.header--over-hero:not(.is-stuck) .nav a,
.header--over-hero:not(.is-stuck) .nav a[aria-current="page"] {
  color: #fff;
}
.header--over-hero:not(.is-stuck) .logo__sub {
  color: rgba(255, 255, 255, 0.72);
}
.header--over-hero:not(.is-stuck) .nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.header--over-hero:not(.is-stuck) .nav a[aria-current="page"]::after {
  background: #fff;
}
.header--over-hero:not(.is-stuck) .burger {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

/* 移动端菜单展开：透明 Header 立即转白底深字，与白色抽屉连成整体 */
.header--over-hero.is-menu-open {
  background: #fff;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
  box-shadow: var(--sh1);
}
.header--over-hero.is-menu-open::before {
  opacity: 0;
}
.header--over-hero.is-menu-open .logo__name {
  color: var(--ink);
}
.header--over-hero.is-menu-open .logo__sub {
  color: var(--ink-500);
}
.header--over-hero.is-menu-open .burger {
  color: var(--brand-600);
  background: var(--brand-50);
  border-color: var(--brand-100);
}

@media (prefers-reduced-motion: reduce) {
  .header--over-hero::before,
  .header--over-hero .logo__name,
  .header--over-hero .logo__sub,
  .header--over-hero .nav a,
  .header--over-hero .burger {
    transition: none;
  }
}
