/* ==========================================================================
   DIS 渠道数据平台 · 专属组件（assets/css/dis-page.css）
   只在 /DIS.html 加载，类名一律 disx- 前缀。

   这页官网的原文是「一段 200 字说明 + 一张 1100px 通栏大图」循环四遍，读起来是平的。
   本轮只动排版，不动一个字：
   ① .disx-row     四个功能区改成左右交替两栏（文字 520 / 图 560），奇数区图在左、偶数区图在右。
   ② .disx-pipe    产品功能区下方的四段管道轴，点一下滚到对应功能区，滚动时自动高亮。
   ③ .disx-pts     移动传数三个要点块，带 01/02/03。
   ④ .disx-rels    相关产品三张卡（官网只有名称 +「了解详情」）。
   ⑤ .disx-cases   客户案例五张一行五列（原 grid--4 会把第 5 张甩到第二行）。
   ========================================================================== */

.disx-title { margin: 0 0 var(--s-5); }
.disx-lead { max-width: 1000px; }
.disx-lead h2 { margin: 0 0 12px; }
.disx-lead p { margin: 0; font-size: var(--fs-16, 16px); line-height: 1.9; color: var(--body, #33445c); }

/* 产品优势：官网这一段是视频 + 说明，视频 preload="none" 不阻塞首屏 */
.disx-adv {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.disx-adv video {
  width: 100%;
  border-radius: 12px;
  background: #0d1b2a;
  box-shadow: var(--shadow-lg, 0 12px 40px rgba(0, 0, 0, .12));
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ① 四个功能区：左右交替 ------------------------------------------------- */
.disx-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 40px;
  align-items: start;
  padding: 56px 0;
  scroll-margin-top: 120px;
}

.disx-row + .disx-row { border-top: 1px solid var(--line, #e3e9f2); }

.disx-row--flip .disx-txt { order: 2; }

.disx-txt h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2vw, 30px);
  color: #123c68;
}

.disx-txt p {
  margin: 0;
  font-size: var(--fs-16, 16px);
  line-height: 1.95;
  color: var(--body, #33445c);
}

.disx-fig { margin: 0; }

.disx-fig img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line, #e3e9f2);
  background: #fff;
}

.disx-fig--wide { margin-top: var(--s-5); }
.disx-fig--wide img { border-radius: 12px; }

/* ② 四段管道轴 ------------------------------------------------------------ */
/* 原来是四张白卡描边，跟上面那张四色功能图撞在一起像图的一部分。
   改成一条轻量的行进条：序号 + 功能名 + 箭头，只做导航，不抢画面。 */
.disx-pipe {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px dashed var(--line, #e3e9f2);
}

.disx-pipe__item {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--fs-15, 15px);
  color: var(--body, #33445c);
  padding: 6px 26px 6px 0;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: baseline;
  gap: 9px;
  position: relative;
  transition: color .16s ease;
}

.disx-pipe__item::after {
  content: "→";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #c2d2e6;
  font-size: 15px;
}

.disx-pipe__item:last-child::after { content: none; }

.disx-pipe__item:hover { color: #2f6fd0; }

.disx-pipe__item.is-on {
  color: #123c68;
  font-weight: 700;
}

.disx-pipe__item.is-on .disx-pipe__no { color: #2f6fd0; opacity: 1; }

.disx-pipe__no {
  font-size: var(--fs-12, 12px);
  font-weight: 700;
  letter-spacing: .08em;
  color: #9fb2c9;
}

/* ③ 移动传数三个要点块 ---------------------------------------------------- */
.disx-pts {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

/* 通栏版：放在移动传数两栏之后，三列并排 */
.disx-pts--row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: -16px 0 56px;
  align-items: start;
}

.disx-pt {
  position: relative;
  padding: 14px 16px 14px 44px;
  background: var(--soft-1, #f6f8fb);
  border-radius: 10px;
}

.disx-pt__no {
  position: absolute;
  left: 14px;
  top: 15px;
  font-size: var(--fs-12, 12px);
  font-weight: 800;
  color: #2f6fd0;
  letter-spacing: .06em;
}

.disx-pt h3 {
  margin: 0 0 6px;
  font-size: var(--fs-15, 15px);
  color: #123c68;
}

.disx-pt ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.disx-pt li {
  position: relative;
  padding-left: 13px;
  font-size: var(--fs-14, 14px);
  line-height: 1.7;
  color: var(--body, #33445c);
}

.disx-pt li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b9cbe6;
}

/* ④ 相关产品三张卡 -------------------------------------------------------- */
.disx-rels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.disx-rel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--line, #e3e9f2);
  border-radius: var(--r-md, 12px);
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.disx-rel:hover {
  border-color: #2f6fd0;
  box-shadow: 0 8px 26px rgba(47, 111, 208, .13);
  transform: translateY(-2px);
}

.disx-rel__k {
  font-size: var(--fs-12, 12px);
  font-weight: 800;
  letter-spacing: .12em;
  color: #2f6fd0;
}

.disx-rel b {
  font-size: var(--fs-18, 18px);
  color: #123c68;
}

.disx-rel em {
  font-style: normal;
  font-size: var(--fs-13, 13px);
  color: var(--muted, #6b7a90);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* ⑤ 客户案例：官网是城市夜景底 + 五张品牌卡 -------------------------------- */
.disx-cases {
  padding: 64px 0 72px;
  background: linear-gradient(rgba(9, 20, 35, .52), rgba(9, 20, 35, .62)), url(/assets/off/img.wds168.cn/comdata/92538/202504/20250412173603a34c36.png) center/cover no-repeat;
}

.disx-cases h2 {
  margin: 0 0 28px;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}

.disx-case-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.disx-case {
  padding: 18px 14px 14px;
  background: rgba(255, 255, 255, .96);
  border-radius: 12px;
  text-align: center;
  overflow: hidden;
}

.disx-case img {
  width: 100%;
  height: 74px;
  object-fit: contain;
  display: block;
}

.disx-case p {
  margin: 10px 0 0;
  font-size: var(--fs-14, 14px);
  font-weight: 700;
  color: #123c68;
}

/* 官网 FAQ 问句自带 ">>>"，站点 .faq summary 又生成一个 → 本页关掉 */
.faq summary::before { content: none; }

/* 响应式 ------------------------------------------------------------------ */
@media (max-width: 1000px) {
  .disx-adv { grid-template-columns: 1fr; gap: 24px; }
  .disx-pts--row { grid-template-columns: 1fr; }
  .disx-row { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .disx-row--flip .disx-txt { order: 0; }
  .disx-pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .disx-rels { grid-template-columns: 1fr; }
  .disx-case-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .disx-pipe { grid-template-columns: 1fr; }
  .disx-case-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .disx-cases { padding: 44px 0 52px; }
}

/* ==========================================================================
   首屏 banner + 逐字飞入（2026-11-13，用户要求对齐官网 DIS 首屏）
   官网首屏是一张 2000×500 的浅蓝渐变插画：左半留白、右半 3D 数据平台场景，
   标题与副标题逐字从右侧飞入（官网用 anime.js 逐字拆 span，延迟 30ms/字）。
   这里同一版式，动画改纯 CSS：不引第三方库、不依赖 JS 运行，无脚本时字也在。
   ========================================================================== */
.page-hero.page-hero--fly {
  display: flex;
  align-items: center;
  min-height: clamp(340px, 34vw, 500px);
  background-position: center right;
  border-bottom: 0;
}
.page-hero.page-hero--fly > .container { width: 100%; }
/* 图左侧本身就是浅蓝渐变，遮罩只负责「托字」不负责「洗白」：
   文字区（0–55%）保持 6 成白保证对比，62% 之后迅速收干净，插画主体不被冲淡。 */
.page-hero.page-hero--fly::before {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, .74) 0%,
      rgba(255, 255, 255, .62) 36%,
      rgba(255, 255, 255, .16) 62%,
      rgba(255, 255, 255, 0) 82%);
}
.page-hero--fly h1 {
  max-width: 13em;
  font-size: clamp(30px, 3.4vw, 50px);
  letter-spacing: -0.01em;
}
/* 副标题收到 560px：再宽右端就压到插画左下角那块白屏上了（线上 max-width:50% 同理） */
.page-hero--fly .lead { max-width: 34em; color: #2b3d4a; }

/* 字符与短语：起始右移 40px + 全透明，按 --i 阶梯延时归位（44ms/级） */
.page-hero--fly .fly-ch,
.page-hero--fly .fly-ph {
  display: inline-block;
  opacity: 0;
  transform: translate3d(40px, 0, 0);
  animation: disx-fly-in .78s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 44ms);
  will-change: transform, opacity;
}
.page-hero--fly .fly-ph {
  animation-duration: .9s;
  animation-delay: calc(var(--i, 0) * 44ms + 90ms);
}
@keyframes disx-fly-in {
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* 系统开了「减少动态效果」就直接就位，不做位移动画 */
@media (prefers-reduced-motion: reduce) {
  .page-hero--fly .fly-ch,
  .page-hero--fly .fly-ph {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  /* ≤900 一律「图带 + 白雾收尾」：这段宽度里文字要占 3–4 行，
     cover 之后插画会正好长在字底下（768 实测会压住人物），怎么调 position 都躲不开。
     图带高 = 容器宽 / 4，最后 40px 用白雾把图带收进底色，不留硬边。 */
  .page-hero.page-hero--fly {
    min-height: 0;
    background-size: 100% auto;
    background-position: top center;
    background-color: #f8fbff;
    padding: 25vw 0 38px;
  }
  .page-hero.page-hero--fly::before {
    background: linear-gradient(180deg,
        rgba(248, 251, 255, 0) 0,
        rgba(248, 251, 255, 0) calc(25vw - 58px),
        rgba(248, 251, 255, .78) calc(25vw - 16px),
        #f8fbff 25vw);
  }
  .page-hero--fly h1 { max-width: 100%; font-size: 27px; letter-spacing: 0; }
  .page-hero--fly .lead { max-width: 100%; font-size: 15px; color: #24404f; }
  .page-hero--fly .fly-ch { animation-duration: .6s; animation-delay: calc(var(--i, 0) * 32ms); }
  .page-hero--fly .fly-ph { animation-duration: .7s; animation-delay: calc(var(--i, 0) * 32ms + 60ms); }
}

/* 手机：图带不动，但把图放大到 132%，插画不至于缩成一个点 */
@media (max-width: 600px) {
  .page-hero.page-hero--fly {
    background-size: 132% auto;
    background-position: 76% top;
    padding: 33vw 0 34px;
  }
  .page-hero.page-hero--fly::before {
    background: linear-gradient(180deg,
        rgba(248, 251, 255, 0) 0,
        rgba(248, 251, 255, 0) calc(33vw - 52px),
        rgba(248, 251, 255, .80) calc(33vw - 14px),
        #f8fbff 33vw);
  }
  .page-hero--fly h1 { font-size: 25px; }
  .page-hero--fly .lead { font-size: 14.5px; }
}

