/* ==========================================================================
   RTM 渠道管理应用 · 专属组件（assets/css/rtm-page.css）
   只在 /RTM 加载，类名一律 rtmx- 前缀。

   ① .rtmx-grid   需求场景：官网是「一张大图标 + 一句总述」+ 7 个场景卡。
                  7 张卡铺 3 列会剩一张孤零零，铺 4 列空一格。
                  把总述做成第 1 格（深色卡），正好 4 × 2 装满，阅读顺序也没变。
   ② .rtmx-adv    产品优势：官网每张是 334×63 细横幅 + 图标 + 标题 + 一句。
                  横幅按原比例铺满卡顶（不裁切），图标与标题并排。
   ③ .rtmx-fn     产品功能：五张笔记本截图，3 + 2 排，截图原比例不裁。
   ④ .rtmx-map    相关产品：官网是「渠道类型 → 缩写 → 中文名 → 作用」，
                  做成传统渠道 / KA 渠道 两栏对照。这块本地此前完全没有。
   ⑤ .rtmx-case   客户案例：四张横卡 + 官网两个入口按钮。
   ========================================================================== */

.rtmx-head { margin-bottom: var(--s-6, 32px); }
.rtmx-head h2 { margin: 0; }
.rtmx-sub {
  margin: 8px 0 0;
  font-size: var(--fs-16, 16px);
  color: var(--muted, #6b7a90);
}

/* ① 需求场景 -------------------------------------------------------------- */
.rtmx-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.rtmx-card {
  padding: 22px 20px 20px;
  background: #fff;
  border: 1px solid var(--line, #e3e9f2);
  border-radius: var(--r-md, 12px);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.rtmx-card:hover {
  border-color: #2f6fd0;
  box-shadow: 0 8px 24px rgba(47, 111, 208, .12);
  transform: translateY(-2px);
}

.rtmx-card img { display: block; margin-bottom: 14px; }
.rtmx-card h3 { margin: 0 0 8px; font-size: var(--fs-17, 17px); color: #123c68; }
.rtmx-card p { margin: 0; font-size: var(--fs-14, 14px); line-height: 1.7; color: var(--body, #33445c); }
.rtmx-route-hint { margin: -16px 0 20px; color: #59728d; font-size: var(--fs-13, 13px); }
.rtmx-route-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: #2f6fd0; font-size: var(--fs-13, 13px); font-weight: 700; text-decoration: none; }
.rtmx-route-link span { transition: transform .18s ease; }
.rtmx-route-link:hover span { transform: translateX(4px); }
.rtmx-route-link:focus-visible { outline: 3px solid #d4942d; outline-offset: 3px; border-radius: 2px; }

/* 总述卡：深色，压住整块的起点 */
.rtmx-lead {
  grid-column: span 1;
  padding: 22px 20px;
  border-radius: var(--r-md, 12px);
  background: linear-gradient(150deg, #123c68, #1c5aa0 70%, #2f6fd0);
  color: #fff;
}

/* 图标原图是「蓝色渐变圆底 + 白色立方」，直接反白会变成一团白；
   给它一个白色圆托，原色保留，在深蓝卡上反而最清楚 */
.rtmx-lead img {
  display: block;
  margin-bottom: 16px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-sizing: content-box;
}
.rtmx-lead p { margin: 0; font-size: var(--fs-14, 14px); line-height: 1.75; color: rgba(255, 255, 255, .94); }

/* ② 产品优势 --------------------------------------------------------------
   照线上 /Content/2947166.html：淡蓝底板 + 斜切标题带 + 居中图标 + 左对齐标题正文。
   线上实测：卡列宽 289、卡间距 96；带图 334×63 显示成 289×55；标题 22/700 #1a3139；
   正文 14px、行高 25px、色 #333。这里把「间距 96」收进卡内留白，卡片仍占满一列。 */
.rtmx-advs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.rtmx-adv {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 32px;
  background: #f5f8fd;
  border: 0;
  border-radius: 6px;
}

/* 斜切标题带：原图 334×63 自带形状与「产品优势一」字样，只缩不放大 */
.rtmx-adv__band {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 0 10px;
}

.rtmx-adv__body { padding: 0; }

/* 图标居中、标题左对齐 —— 线上就是这个错位关系，别把两者都居中 */
.rtmx-adv__hd {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 18px;
}

.rtmx-adv__ico {
  width: 78px;
  height: auto;
  display: block;
  margin: 0 auto 16px;
}

.rtmx-adv__body h3 {
  align-self: stretch;
  margin: 0;
  text-align: left;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.45;
  font-weight: 700;
  color: #1a3139;
}

.rtmx-adv__body p {
  margin: 0;
  font-size: var(--fs-14, 14px);
  line-height: 1.85;
  color: #33445c;
}

/* ③ 产品功能 --------------------------------------------------------------
   照线上：一条一条的淡蓝横带，图与文字左右交替。线上实测图 379×229、文字块 630，
   行内留白 34/40，标题 22/700、正文 14/24.5。
   HTML 顺序固定是「图 + 文字」，靠 order 翻面，不去猜 nth-child 的结构。 */
.rtmx-fns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}

.rtmx-fn {
  display: grid;
  /* 奇数行：文字在左（宽列）、图在右（窄列）—— 别把宽列给图，图会被放到 600px 宽 */
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: center;
  gap: 40px;
  padding: 34px 44px;
  background: #f5f8fd;
  border: 0;
  border-radius: 6px;
  scroll-margin-top: 118px;
}
.rtmx-fn:target { outline: 3px solid #2f6fd0; outline-offset: 5px; }

.rtmx-fn > img {
  order: 2;
  justify-self: center;
  /* min-width/max-width 必须都归 100%：图片固有宽 450，不给 min-width:0 的话
     它会把 0.82fr 的列撑开，940 这种半屏就会压到文字上（2026-11-05 实测溢出 130px） */
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  background: none;
}

.rtmx-fn__body { order: 1; padding: 0; }

/* 偶数行翻面：图在左、文字在右 */
.rtmx-fn:nth-child(even) { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); }
.rtmx-fn:nth-child(even) > img { order: 1; }
.rtmx-fn:nth-child(even) .rtmx-fn__body { order: 2; }

.rtmx-fn__body h3 {
  margin: 0 0 14px;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.45;
  font-weight: 700;
  color: #1a3139;
}

.rtmx-fn__body p {
  margin: 0;
  font-size: var(--fs-14, 14px);
  line-height: 1.8;
  color: #33445c;
}

/* ④ 相关产品：传统渠道 / KA 渠道 两栏 ------------------------------------ */
.rtmx-map {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
}

.rtmx-col {
  background: #fff;
  border: 1px solid var(--line, #e3e9f2);
  border-radius: var(--r-md, 12px);
  padding: 22px 24px 24px;
}

.rtmx-col h3 {
  margin: 0 0 16px;
  font-size: var(--fs-15, 15px);
  letter-spacing: .04em;
  color: #2f6fd0;
}

.rtmx-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px dashed var(--line, #e3e9f2);
}

.rtmx-item:first-of-type { border-top: 0; padding-top: 4px; }

.rtmx-item__k {
  flex: 0 0 58px;
  height: 26px;
  border-radius: 6px;
  background: #eef4fd;
  color: #2f6fd0;
  font-size: var(--fs-12, 12px);
  font-weight: 800;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rtmx-item b {
  display: block;
  font-size: var(--fs-15, 15px);
  color: #123c68;
  margin-bottom: 4px;
}

.rtmx-item em {
  font-style: normal;
  font-size: var(--fs-13, 13px);
  line-height: 1.65;
  color: var(--body, #33445c);
}

/* ⑤ 客户案例 -------------------------------------------------------------- */
.rtmx-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rtmx-case {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line, #e3e9f2);
  border-radius: var(--r-md, 12px);
}

.rtmx-case img { flex: 0 0 auto; border-radius: 8px; }
.rtmx-case h3 { margin: 0 0 6px; font-size: var(--fs-16, 16px); color: #123c68; }
.rtmx-case p { margin: 0; font-size: var(--fs-14, 14px); line-height: 1.7; color: var(--body, #33445c); }

.rtmx-more {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

/* 响应式 ------------------------------------------------------------------
   关键一档在 820：线上半屏（约 940）就是三列并排，所以三列一直撑到 820 才收。 */
@media (max-width: 1100px) {
  .rtmx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rtmx-advs { gap: 26px; }
  .rtmx-adv { padding: 22px 20px 26px; }
  .rtmx-adv__ico { width: 66px; }
  .rtmx-fn { gap: 28px; padding: 28px 30px; }
  .rtmx-map { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .rtmx-fn { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 22px 28px; }
  .rtmx-fn > img, .rtmx-fn:nth-child(even) > img { order: 1; max-width: 100%; }
  .rtmx-fn__body, .rtmx-fn:nth-child(even) .rtmx-fn__body { order: 2; }
  .rtmx-fn:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .rtmx-fns { gap: 20px; }
}

@media (max-width: 820px) {
  .rtmx-advs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .rtmx-grid { grid-template-columns: 1fr; }
  .rtmx-advs { grid-template-columns: 1fr; }
  .rtmx-adv { padding: 22px 20px 26px; }
  .rtmx-cases { grid-template-columns: 1fr; }
  .rtmx-case { flex-direction: column; gap: 12px; }
  .rtmx-more { flex-direction: column; }
}

.abi-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 34px 0 66px;
  background: radial-gradient(ellipse at 78% 48%, #d9eeff 0, transparent 47%), radial-gradient(ellipse at 14% 83%, #e5f8f4 0, transparent 31%), linear-gradient(118deg, #f7fbff 2%, #edf5ff 50%, #e3f0ff 100%);
}
.abi-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .24;
  background-image: radial-gradient(#6da6e7 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent 32%, #000 72%);
}
.abi-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(62vw, 920px);
  height: min(62vw, 920px);
  right: -20vw;
  top: 4%;
  border: 1px solid #8ebbed55;
  border-radius: 50%;
  box-shadow: 0 0 0 34px #ffffff20, 0 0 0 80px #ffffff1a, 0 0 0 140px #ffffff15;
  pointer-events: none;
}
.abi-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  padding-top: 48px;
}
.abi-hero__name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  padding: 7px 13px;
  border: 1px solid #b8d8ff;
  border-radius: 99px;
  background: #ffffffa8;
  box-shadow: 0 8px 24px #6ca5df16;
  color: #3776c7;
  font-weight: 700;
  letter-spacing: .06em;
}
.abi-hero__name::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3980ed;
  box-shadow: 0 0 0 5px #3980ed19;
}
.abi-hero h1 {
  margin: 0 0 25px;
  color: #102d50;
  font-size: clamp(40px, 4vw, 64px);
  line-height: 1.18;
  letter-spacing: -.045em;
  text-shadow: 0 2px 0 #fff8;
}
.abi-hero__lead {
  max-width: 500px;
  color: #496784;
  font-size: 18px;
  line-height: 1.8;
}
.abi-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 23px;
  color: #2465b9;
  font-weight: 700;
  text-decoration: none;
}
.abi-hero__link span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #aac8ed;
  border-radius: 50%;
  transition: transform .2s ease, background .2s ease;
}
.abi-hero__link:hover span { transform: translateY(3px); background: #e5f1ff; }
.abi-visual {
  position: relative;
  padding: 28px;
  transform: rotate(-1.3deg);
  border: 1px solid #b8d5f6;
  border-radius: 28px;
  background: linear-gradient(145deg, #fff 4%, #fbfdff 100%);
  box-shadow: 0 34px 90px #2d69a52a, 0 8px 22px #2d69a510;
  transition: transform .45s cubic-bezier(.2,.75,.25,1), box-shadow .45s ease;
}
.abi-visual:hover { transform: rotate(0) translateY(-5px); box-shadow: 0 42px 100px #2d69a535, 0 10px 26px #2d69a516; }
.abi-visual__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #193e69; }
.abi-visual__top > span { color: #7089a4; font-size: 13px; }
.abi-visual__top strong { display: block; font-size: 21px; letter-spacing: .01em; }
.abi-visual__eyebrow { display: block; margin-bottom: 4px; color: #5183be; font-size: 12px; letter-spacing: .08em; }
.abi-analysis { margin-top: 20px; }
.abi-analysis__source, .abi-analysis__result {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 13px 16px;
  border-radius: 12px;
}
.abi-analysis__source {
  position: relative;
  overflow: hidden;
  border: 1px solid #cfe2fb;
  background: linear-gradient(105deg, #e8f2ff, #f2f8ff 76%);
  box-shadow: inset 4px 0 #4a8df0;
}
.abi-analysis__source::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #3980ed;
  box-shadow: 0 0 0 5px #3980ed18;
  animation: abi-signal 2.4s ease-in-out infinite;
}
.abi-analysis__source strong, .abi-analysis__result strong { color: #183b63; font-size: 15px; }
.abi-analysis__source > span:last-child, .abi-analysis__result > span:last-child { color: #607a97; font-size: 12px; }
.abi-analysis__label { display: block; width: 100%; color: #62809f; font-size: 11px; letter-spacing: .06em; }
.abi-analysis__arrow {
  display: grid;
  place-items: center;
  height: 26px;
  color: #82addd;
  font-size: 19px;
  line-height: 1;
  animation: abi-arrow 1.8s ease-in-out infinite;
}
.abi-analysis__arrow:nth-of-type(2) { animation-delay: .45s; }
.abi-analysis__views { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.abi-analysis__group {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 13px 14px;
  border: 1px solid #e1eaf5;
  border-radius: 12px;
  background: #fff;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.abi-analysis__group::before {
  content: "";
  position: absolute;
  top: 0;
  right: 100%;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #4287e8, #54c6b2);
  transition: right .35s ease;
}
.abi-analysis__group:hover { transform: translateY(-3px); border-color: #b9d5f7; box-shadow: 0 12px 26px #3977b315; }
.abi-analysis__group:hover::before { right: 0; }
.abi-analysis__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.abi-analysis__tags span {
  padding: 5px 8px;
  border-radius: 6px;
  background: #eef5ff;
  color: #356294;
  font-size: 13px;
  transition: transform .25s ease, background .25s ease;
}
.abi-analysis__group:hover .abi-analysis__tags span { transform: translateY(-2px); }
.abi-analysis__tags--metrics span { background: #edf8f6; color: #33776f; }
.abi-analysis__result {
  border: 0;
  background: linear-gradient(105deg, #174578, #286aab 72%, #287e8a);
  box-shadow: 0 12px 28px #184c7928;
  color: #fff;
}
.abi-analysis__result .abi-analysis__label { color: #c2ddff; }
.abi-analysis__result strong { color: #fff; }
.abi-analysis__result > span:last-child { color: #d7eaff; }
@keyframes abi-signal { 0%, 100% { box-shadow: 0 0 0 4px #3980ed14; } 50% { box-shadow: 0 0 0 9px #3980ed08; } }
@keyframes abi-arrow { 0%, 100% { transform: translateY(-2px); opacity: .55; } 50% { transform: translateY(2px); opacity: 1; } }
#scene .rtmx-head { display: flex; flex-direction: column; gap: 10px; }
#scene .rtmx-head h2, #scene .rtmx-head p { margin: 0; }
#scene .rtmx-head .rtmx-route-hint { margin: 0; }
@media (max-width: 760px) {
  .abi-hero { padding: 28px 0 42px; }
  .abi-hero::before { opacity: .16; background-size: 19px 19px; mask-image: linear-gradient(180deg, transparent, #000 34%, #000 76%, transparent); }
  .abi-hero::after { top: 38%; right: -48vw; width: 90vw; height: 90vw; box-shadow: 0 0 0 24px #ffffff18, 0 0 0 58px #ffffff12; }
  .abi-hero__layout { grid-template-columns: 1fr; gap: 30px; padding-top: 30px; }
  .abi-hero h1 { font-size: 38px; }
  .abi-hero__lead { font-size: 16px; }
  .abi-visual { padding: 20px; transform: none; }
  .abi-visual__top strong { font-size: 18px; }
  .abi-visual:hover { transform: none; }
  .abi-analysis__views { grid-template-columns: 1fr; }
  .abi-analysis__group { padding: 11px 14px; }
  .abi-analysis__arrow { height: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .abi-analysis__source::after, .abi-analysis__arrow { animation: none; }
  .abi-visual, .abi-analysis__group, .abi-analysis__tags span, .abi-hero__link span { transition: none; }
}
