@charset "utf-8";

/* ==========================================================================
   5aCAE 软件介绍页 — 白 / 灰 / 绿 科技风
   作用域：body.cae-soft-page（由页面底部脚本注入），不影响全站其他页面。
   ========================================================================== */

body.cae-soft-page {
  --cae-green: #76b900;          /* 主强调色（NVIDIA 式绿） */
  --cae-green-dark: #5c9100;
  --cae-green-deep: #3f6600;
  --cae-green-ink: #101410;      /* 近黑，用于深色区块底 */
  --cae-green-tint: #f2f7e8;     /* 极浅绿底 */
  --cae-green-line: #cfe3ac;
  --cae-gray-950: #0e1211;
  --cae-gray-900: #1a1f1d;
  --cae-gray-800: #2b322f;
  --cae-gray-700: #414a46;
  --cae-gray-500: #6b7570;
  --cae-gray-400: #97a09b;
  --cae-gray-200: #dfe4e1;
  --cae-gray-100: #eef1ef;
  --cae-gray-50: #f6f8f7;
  --cae-ink: #14181a;
  --cae-header-h: 90px;          /* 与 modern-site.css 的 .modern-header-inner 高度对应 */

  background: #ffffff;
}

body.cae-soft-page .cae-wrap a { color: var(--cae-green-deep); }
body.cae-soft-page .cae-wrap a:hover { color: var(--cae-green-dark); }

/* The injected site header keeps its shared blue theme; green remains on CAE content. */
body.cae-soft-page .modern-site-footer { background: var(--cae-gray-950); color: #a9b4ae; }

/* 去掉旧页面的表格容器约束，交由 .cae-wrap 控制宽度 */
body.cae-soft-page .modern-legacy-content {
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;   /* modern-site.css 在 ≤1280px 设了 overflow-x:auto，会裁掉内容阴影 */
}

.cae-wrap {
  width: min(calc(100% - 48px), 1180px);
  margin: 0 auto;
}

/* ==========================================================================
   1. 首屏 Hero
   ========================================================================== */

.cae-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 66px;
  background: var(--cae-gray-950);
  color: #fff;
}

.cae-hero::before {
  position: absolute;
  top: -180px;
  right: -140px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 185, 0, 0.30) 0%, rgba(118, 185, 0, 0) 66%);
  content: "";
  pointer-events: none;
}

.cae-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
  gap: 48px;
  align-items: center;
}

.cae-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--cae-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cae-eyebrow::before {
  width: 26px;
  height: 2px;
  background: var(--cae-green);
  content: "";
}

.cae-hero h1 {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.cae-hero h1 .cae-hero-accent { color: var(--cae-green); }

.cae-hero-lead {
  max-width: 620px;
  margin: 0;
  color: #c9d2cc;
  font-size: 17px;
  line-height: 1.85;
}

.cae-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.cae-hero-tags li {
  padding: 7px 14px;
  border: 1px solid rgba(118, 185, 0, 0.42);
  border-radius: 999px;
  background: rgba(118, 185, 0, 0.10);
  color: #d8e9bd;
  font-size: 13px;
  font-weight: 600;
}

.cae-hero-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: #fff;
}

/* 两张网格图叠放、交叉淡入；比例取两图中较宽者（齿轮全局图 1374×732 + 说明条） */
.cae-hero-frame {
  position: relative;
  aspect-ratio: 1374 / 812;
}

.cae-hero-item {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.cae-hero-item.is-active { opacity: 1; z-index: 1; }

.cae-hero-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 18px 18px 14px;
  object-fit: contain;
  background: #fff;
}

.cae-hero-item figcaption {
  padding: 12px 18px;
  background: #161c19;
  color: #c9d2cc;
  font-size: 12.5px;
  line-height: 1.6;
}

/* 首屏指标条 */
.cae-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.cae-metric {
  padding: 26px 24px 4px 0;
}

.cae-metric + .cae-metric { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.13); }

.cae-metric-value {
  display: block;
  color: var(--cae-green);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.1;
}

.cae-metric-label {
  display: block;
  margin-top: 7px;
  color: #97a49d;
  font-size: 13px;
  line-height: 1.5;
}

.cae-hero-metrics { margin-top: 46px; }

/* ==========================================================================
   2. 左侧纵向目录（深色首屏快滚完时从左侧滑入）
   ========================================================================== */

.cae-rail {
  position: fixed;
  top: calc(var(--cae-header-h) + 44px);
  left: 24px;
  z-index: 850;
  width: max-content;
  border-left: 1px solid var(--cae-gray-200);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-40px);
  transition: opacity 0.22s ease, transform 0.28s ease, visibility 0s linear 0.28s;
}

body.cae-rail-on .cae-rail {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: opacity 0.32s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s;
}

.cae-rail-title {
  margin: 0 0 8px;
  padding: 2px 0 0 16px;
  color: var(--cae-gray-400);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.cae-rail a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-left: -1px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  color: var(--cae-gray-500);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  opacity: 0;
  transform: translateX(-16px);
  transition: color 0.16s ease, border-color 0.16s ease, opacity 0.18s ease, transform 0.18s ease;
}

/* 各项依次滑入，延迟由 HTML 里的 --cae-rail-delay 指定 */
body.cae-rail-on .cae-rail a {
  opacity: 1;
  transform: none;
  transition: color 0.16s ease, border-color 0.16s ease,
    opacity 0.34s ease var(--cae-rail-delay, 0ms),
    transform 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) var(--cae-rail-delay, 0ms);
}

.cae-rail a:hover { color: var(--cae-ink); text-decoration: none; }

.cae-rail a.is-active {
  border-left-color: var(--cae-green);
  color: var(--cae-green-deep);
}

.cae-rail-index {
  flex: 0 0 auto;
  min-width: 1.7em;
  color: var(--cae-gray-400);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.cae-rail a.is-active .cae-rail-index { color: var(--cae-green); }

.cae-rail-label { white-space: nowrap; }

/* 父项（热传导）：位于任一子主题内时高亮，但不画左侧绿线，绿线留给具体子项 */
.cae-rail a.is-parent.is-active { border-left-color: transparent; }

/* 子项：缩进、字号小一号 */
.cae-rail a.is-sub {
  padding-top: 3px;
  padding-bottom: 3px;
  padding-left: 26px;
  font-size: 12.5px;
  font-weight: 600;
}

.cae-rail a.is-sub .cae-rail-index { font-size: 10.5px; }

/* 目录共 12 项，视口偏矮时收紧行距，保证一屏放得下 */
@media (max-height: 820px) {
  .cae-rail { top: calc(var(--cae-header-h) + 22px); }
  .cae-rail a { padding-top: 4px; padding-bottom: 4px; }
  .cae-rail a.is-sub { padding-top: 2px; padding-bottom: 2px; }
}

/* 左侧留白放不下完整目录时，由脚本给正文让出位置（--cae-rail-reserve = 目录宽度 + 两侧间距），
   目录始终显示完整标题 */
body.cae-rail-reserve .cae-main .cae-wrap {
  width: min(calc(100% - var(--cae-rail-reserve) - 24px), 1180px);
  margin-right: auto;
  margin-left: max(var(--cae-rail-reserve), calc((100% - 1180px) / 2));
}

@media (prefers-reduced-motion: reduce) {
  .cae-rail,
  .cae-rail a {
    transform: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* ==========================================================================
   3. 区块骨架
   ========================================================================== */

.cae-section { padding: 78px 0; }
.cae-section.is-tinted { background: var(--cae-gray-50); }
.cae-section.is-dark { background: var(--cae-gray-950); color: #fff; }

.cae-section-head { max-width: 800px; margin-bottom: 42px; }

.cae-section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--cae-green-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cae-section-kicker::after {
  flex: 0 0 26px;
  height: 2px;
  background: var(--cae-green);
  content: "";
}

.cae-section.is-dark .cae-section-kicker { color: var(--cae-green); }

.cae-section-head h2 {
  margin: 0 0 16px;
  color: var(--cae-ink);
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.18;
}

.cae-section.is-dark .cae-section-head h2 { color: #fff; }

.cae-section-lead {
  margin: 0;
  color: var(--cae-gray-500);
  font-size: 17px;
  line-height: 1.85;
}

.cae-section.is-dark .cae-section-lead { color: #b3beb8; }

.cae-section-head code,
.cae-section-lead code {
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--cae-green-tint);
  color: var(--cae-green-deep);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.94em;
}

/* ==========================================================================
   4. 研究背景 — 特点卡片
   ========================================================================== */

.cae-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--cae-gray-200);
  background: var(--cae-gray-200);
}

.cae-feature-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 30px;
  background: #fff;
  transition: background 0.18s ease;
}

.cae-feature-card:hover { background: var(--cae-green-tint); }

.cae-feature-index {
  display: block;
  margin-bottom: 14px;
  color: var(--cae-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.cae-feature-card h3 {
  margin: 0 0 12px;
  color: var(--cae-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.cae-feature-card p {
  margin: 0;
  color: var(--cae-gray-500);
  font-size: 15px;
  line-height: 1.85;
}

/* ==========================================================================
   5. 横向分页框体（算法创新 / 算例分组共用）
   ========================================================================== */

.cae-slider {
  border: 1px solid var(--cae-gray-200);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(20, 24, 26, 0.05);
}

.cae-slider-viewport {
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}

/* 内容比框体高时内部可滚，避免被裁掉（左右翻页用 transform，不受影响） */
.cae-section.is-fit .cae-slider-viewport,
.cae-case-group.is-fit .cae-slider-viewport { overflow-y: auto; }

.cae-slider-track {
  display: flex;
  /* 视口是 flex 容器，轨道必须锁定为视口宽度，否则会按内容撑宽，每页右半边被挤出可视区 */
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  align-items: stretch;
  transition: transform 0.52s cubic-bezier(0.22, 0.68, 0.16, 1);
  will-change: transform;
}

/* 主题需要一屏完整显示时：区块撑满视口，框体吃掉剩余高度 */
.cae-section.is-fit {
  display: flex;
  min-height: calc(100vh - var(--cae-header-h));
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.cae-section.is-fit > .cae-wrap { width: min(calc(100% - 48px), 1180px); }

/* 算例分组：每组占满“页头以下的一整屏”，标题贴顶、框体紧随其后，
   多出的高度留在框体下方，保证翻到某组时看不到下一组的标题 */
.cae-case-group.is-fit {
  display: flex;
  min-height: calc(100vh - var(--cae-header-h) + 8px);
  flex-direction: column;
  justify-content: flex-start;
  margin-bottom: 0;
  padding: 28px 0;
}

.cae-section.is-fit .cae-slider,
.cae-case-group.is-fit .cae-slider {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.cae-section.is-fit .cae-slider-viewport,
.cae-case-group.is-fit .cae-slider-viewport {
  display: flex;
  min-height: 0;
}

/* 框体高度上限随视口，保证标题 + 框体 + 翻页条在一屏内 */
.cae-section.is-fit .cae-slider-viewport { max-height: calc(100vh - var(--cae-header-h) - 300px); }

/* 6–10 算例框体：统一为固定高度（即 5.2 圆角冲头接触页的大小），
   每页的图片和文字在框内自适应，翻页时框体不再忽高忽低 */
.cae-case-group.is-fit {
  --cae-box-h: max(380px, calc(100vh - var(--cae-header-h) - 205px));
}

.cae-case-group.is-fit .cae-slider-viewport {
  height: var(--cae-box-h);
  max-height: none;
  overflow: hidden;
}

.cae-case-group.is-fit .cae-slider-track { height: 100%; }

.cae-case-group.is-fit .cae-slide {
  height: 100%;
  min-height: 0;
  padding: 26px 40px 30px;
  overflow: hidden;
}

/* 两图页：标题、说明占自身高度，两张图平分剩余空间 */
.cae-case-group.is-fit .cae-slide.is-case {
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: stretch;
}

.cae-case-group.is-fit .cae-pair {
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
}
.cae-case-group.is-fit .cae-mini { min-height: 0; }

.cae-case-group.is-fit .cae-mini-img {
  position: relative;
  min-height: 0;
  padding: 0;
}

.cae-case-group.is-fit .cae-mini-img img {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  max-width: none;
  max-height: none;
  object-fit: contain;
}

/* 单图页：算例配图几乎都是横向宽图，左右分栏会在图片上下留大片空白。
   改为与两图页相同的上下结构：标题、说明在上，图片占满下方剩余空间 */
.cae-case-group.is-fit .cae-slide.is-detail {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.cae-case-group.is-fit .cae-slide-copy {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 12px;
}

.cae-case-group.is-fit .cae-slide-copy .cae-slide-index {
  margin: 0;
  padding: 0;
  background: none;
  color: var(--cae-green);
  font-size: 15px;
  letter-spacing: 0;
}

.cae-case-group.is-fit .cae-slide-copy h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.4;
}

.cae-case-group.is-fit .cae-slide-copy .cae-case-note {
  justify-self: start;
  margin: 0;
}

.cae-case-group.is-fit .cae-slide-copy p {
  grid-column: 1 / -1;
  max-width: 1000px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
}

.cae-case-group.is-fit .cae-slide.is-detail .cae-slide-figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
}

.cae-case-group.is-fit .cae-slide.is-detail .cae-slide-figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  padding: 12px;
  object-fit: contain;
}

/* 算例图片可点击放大 */
.cae-case-group .cae-mini-img,
.cae-case-group .cae-slide-figure img { cursor: zoom-in; }

.cae-zoom {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  padding: 4vh 4vw;
  place-items: center;
  background: rgba(14, 18, 17, 0);
  cursor: zoom-out;
  transition: background 0.36s ease;
}

.cae-zoom.is-open { display: grid; }
.cae-zoom.is-shown { background: rgba(14, 18, 17, 0.78); }

.cae-zoom-card {
  display: grid;
  max-width: min(92vw, 1400px);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  cursor: default;
  will-change: transform;
}

.cae-zoom-card img {
  display: block;
  width: auto;
  max-width: min(92vw, 1400px);
  height: auto;
  max-height: calc(92vh - 76px);
  padding: 18px;
  object-fit: contain;
}

.cae-zoom-caption {
  padding: 13px 20px 15px;
  border-top: 1px solid var(--cae-gray-200);
  background: var(--cae-gray-50);
  color: var(--cae-gray-500);
  font-size: 14px;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cae-zoom.is-shown .cae-zoom-caption {
  opacity: 1;
  transition-delay: 0.22s;
}

.cae-zoom-caption b {
  display: block;
  margin-bottom: 2px;
  color: var(--cae-ink);
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .cae-zoom,
  .cae-zoom-card,
  .cae-zoom-caption { transition: none !important; }
}

/* 点击框体左右边缘翻页；宽度不超过页面左右内边距，不遮挡图片与文字 */
.cae-slider-viewport { position: relative; }

.cae-slider-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  width: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--cae-gray-400);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.cae-slider-edge[hidden] { display: none; }
.cae-slider-edge.is-prev { left: 0; }
.cae-slider-edge.is-next { right: 0; }

.cae-slider-edge:hover,
.cae-slider-edge:focus-visible {
  color: var(--cae-green-deep);
  opacity: 1;
}

.cae-slider-edge.is-prev:hover { background: linear-gradient(to right, rgba(118, 185, 0, 0.12), transparent); }
.cae-slider-edge.is-next:hover { background: linear-gradient(to left, rgba(118, 185, 0, 0.12), transparent); }

.cae-slide {
  display: grid;
  flex: 0 0 100%;
  align-content: start;
  gap: 20px;
  min-width: 0;
  padding: 34px 40px;
}

/* ---- 第 1 页：五个方法概览（左侧单列文字、右侧配图） ---- */

.cae-slide.is-overview {
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 36px;
  align-items: center;
}

.cae-slide-overview {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cae-slide-overview li {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--cae-gray-100);
}

.cae-slide-overview li:first-child { padding-top: 0; }
.cae-slide-overview li:last-child { padding-bottom: 0; border-bottom: 0; }

.cae-slide-overview .cae-ov-no {
  color: var(--cae-green);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.cae-slide-overview .cae-ov-no small {
  display: block;
  margin-top: 3px;
  color: var(--cae-gray-400);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cae-slide-overview h3 {
  margin: 0;
  color: var(--cae-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.cae-slide-overview p {
  margin: 3px 0 0;
  color: var(--cae-gray-500);
  font-size: 13.5px;
  line-height: 1.68;
}

.cae-overview-figure img { max-height: 300px; }

/* ---- 第 2 页起：单个方法详情 ---- */

.cae-slide.is-detail {
  grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.94fr);
  gap: 44px;
  align-items: center;
}

.cae-slide-copy { min-width: 0; }

.cae-slide-copy .cae-slide-index {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 10px;
  border-radius: 3px;
  background: var(--cae-green-tint);
  color: var(--cae-green-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cae-slide-copy h3 {
  margin: 0 0 14px;
  color: var(--cae-ink);
  font-size: clamp(20px, 2.1vw, 24px);
  font-weight: 700;
  line-height: 1.32;
}

.cae-slide-copy p {
  margin: 0 0 12px;
  color: var(--cae-gray-500);
  font-size: 15px;
  line-height: 1.82;
}

.cae-slide-copy p:last-child { margin-bottom: 0; }

.cae-slide-copy code {
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--cae-green-tint);
  color: var(--cae-green-deep);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.94em;
}

.cae-slide-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--cae-gray-200);
  border-radius: 5px;
  background: var(--cae-gray-50);
}

.cae-slide-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  padding: 12px;
}

.cae-slide-figure figcaption {
  padding: 11px 16px;
  border-top: 1px solid var(--cae-gray-200);
  background: #fff;
  color: var(--cae-gray-500);
  font-size: 12.5px;
  line-height: 1.6;
}

.cae-slide-figure figcaption b {
  display: block;
  margin-bottom: 2px;
  color: var(--cae-ink);
  font-size: 13px;
}

/* ---- 导航：箭头 + 圆点 ---- */

.cae-slider-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 14px;
  border-top: 1px solid var(--cae-gray-200);
  background: var(--cae-gray-50);
  border-radius: 0 0 6px 6px;
}

.cae-slider-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cae-slider-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--cae-gray-200);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.cae-slider-dots button:hover { background: var(--cae-gray-400); }

.cae-slider-dots button.is-active {
  background: var(--cae-green);
  transform: scale(1.34);
}

.cae-slider-arrows { display: flex; gap: 6px; }

.cae-slider-arrows button {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--cae-gray-200);
  border-radius: 4px;
  background: #fff;
  color: var(--cae-gray-700);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.cae-slider-arrows button:hover:not(:disabled) {
  border-color: var(--cae-green);
  background: var(--cae-green);
  color: #fff;
}

.cae-slider-arrows button:disabled { color: var(--cae-gray-200); cursor: not-allowed; }

.cae-slider-progress {
  margin: 0;
  color: var(--cae-gray-400);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cae-slider-progress b { color: var(--cae-green-deep); }

/* ---- 算例分页：每页最多两张图 ---- */

.cae-slide { align-content: start; }

/* 两图页：标题与说明在上，两张图一左一右 */
.cae-slide.is-case { gap: 0; }

.cae-case-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 6px;
}

.cae-case-top h4 {
  margin: 0;
  color: var(--cae-ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}

.cae-case-text {
  max-width: 920px;
  margin: 0 0 16px;
  color: var(--cae-gray-500);
  font-size: 14.5px;
  line-height: 1.75;
}

.cae-case-note {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 3px;
  background: var(--cae-green-tint);
  color: var(--cae-green-deep);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.cae-case-note.is-plain { background: var(--cae-gray-100); color: var(--cae-gray-700); }

.cae-slide-copy .cae-case-note { margin: -4px 0 12px; }

.cae-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.cae-mini {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--cae-gray-200);
  border-radius: 5px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cae-mini:hover {
  border-color: var(--cae-green);
  box-shadow: 0 10px 24px rgba(20, 24, 26, 0.08);
}

.cae-mini.is-bfm { border-top: 3px solid var(--cae-green); }
.cae-mini.is-fem { border-top: 3px solid var(--cae-gray-400); }

.cae-mini-img {
  display: grid;
  padding: 12px;
  place-items: center;
  background: var(--cae-gray-50);
}

.cae-mini-img img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.cae-mini figcaption {
  padding: 9px 14px;
  border-top: 1px solid var(--cae-gray-200);
  color: var(--cae-gray-500);
  font-size: 12.5px;
  line-height: 1.55;
}

.cae-mini figcaption b {
  display: block;
  margin-bottom: 1px;
  color: var(--cae-ink);
  font-size: 13px;
}

.cae-mini.is-bfm figcaption b { color: var(--cae-green-deep); }

/* ==========================================================================
   6b. 当前进展：两张截图自动轮换
   ========================================================================== */

.cae-shot {
  display: grid;
  gap: 12px;
  margin: 0;
}

/* 两张图叠在同一个网格单元里：框高取较高的那张，两张都按原比例完整显示，不裁切 */
.cae-shot-frame {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--cae-gray-200);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 24, 26, 0.07);
}

.cae-shot-item {
  display: flex;
  grid-area: 1 / 1;
  flex-direction: column;
  margin: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.cae-shot-item.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.cae-shot-item img {
  display: block;
  width: 100%;
  height: auto;
  margin: auto 0;
  background: #fff;
}

.cae-shot-item figcaption {
  margin-top: auto;
  padding: 11px 16px;
  border-top: 1px solid var(--cae-gray-200);
  background: var(--cae-gray-50);
  color: var(--cae-gray-500);
  font-size: 13px;
  line-height: 1.6;
}

.cae-shot-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cae-shot-nav button {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: var(--cae-gray-200);
  cursor: pointer;
  transition: background 0.2s ease;
}

.cae-shot-nav button.is-active { background: var(--cae-green); }
.cae-shot-nav button:hover { background: var(--cae-gray-400); }
.cae-shot-nav button.is-active:hover { background: var(--cae-green); }

/* ==========================================================================
   6. 初步成果
   ========================================================================== */

.cae-outcome {
  display: grid;
  /* 右侧图片框加宽，截图里的界面细节才看得清 */
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: center;
}

.cae-outcome-copy p {
  margin: 0 0 16px;
  color: var(--cae-gray-500);
  font-size: 15.5px;
  line-height: 1.85;
}

.cae-outcome-copy p:last-child { margin-bottom: 0; }

.cae-outcome-copy strong { color: var(--cae-ink); }

.cae-outcome-media {
  display: grid;
  gap: 18px;
  margin: 0;
}

.cae-outcome-media figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--cae-gray-200);
  border-radius: 6px;
  background: #fff;
}

.cae-outcome-media img {
  display: block;
  width: 100%;
  height: auto;
}

.cae-outcome-media figcaption {
  padding: 13px 18px;
  border-top: 1px solid var(--cae-gray-200);
  background: var(--cae-gray-50);
  color: var(--cae-gray-500);
  font-size: 13px;
  line-height: 1.6;
}

/* 颠覆性特点：上下两个框体，每个框体三列特点，每个特点下列要点 */
#features .cae-section-head { margin-bottom: 28px; }

.cae-traits {
  display: grid;
  gap: 16px;
}

.cae-trait-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--cae-gray-200);
  border-top: 3px solid var(--cae-green);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(20, 24, 26, 0.05);
}

.cae-trait {
  min-width: 0;
  padding: 22px 26px 24px;
  transition: background 0.18s ease;
}

.cae-trait + .cae-trait { border-left: 1px solid var(--cae-gray-100); }
.cae-trait:hover { background: var(--cae-green-tint); }

.cae-trait-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.cae-trait-head span {
  color: var(--cae-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.cae-trait-head h3 {
  margin: 0;
  color: var(--cae-ink);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.cae-trait ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cae-trait li {
  position: relative;
  padding-left: 15px;
  color: var(--cae-gray-500);
  font-size: 14px;
  line-height: 1.6;
}

.cae-trait li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--cae-green);
  content: "";
}

/* ==========================================================================
   7. 典型算例
   ========================================================================== */

.cae-case-group { margin-bottom: 72px; }
.cae-case-group:last-child { margin-bottom: 0; }

.cae-group-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--cae-gray-200);
}

.cae-group-no {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 4px;
  background: var(--cae-green);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}

.cae-group-head h3 {
  margin: 0;
  color: var(--cae-ink);
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 700;
  line-height: 1.3;
}

/* 只作用于右侧的计数文字；不能写成 .cae-group-head span，否则会命中编号方块，把白字变灰、方块推到中间 */
.cae-group-head .cae-group-count {
  margin-left: auto;
  color: var(--cae-gray-400);
  font-size: 13px;
  white-space: nowrap;
}

.cae-case-no {
  color: var(--cae-green);
  font-size: 15px;
  font-weight: 700;
}

/* ==========================================================================
   8. 页脚信息条
   ========================================================================== */

.cae-colophon {
  padding: 30px 0;
  border-top: 1px solid var(--cae-gray-200);
  background: #fff;
  color: var(--cae-gray-400);
  font-size: 13px;
}

.cae-colophon-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* ==========================================================================
   9. 锚点定位与翻页
   ========================================================================== */

/* 让主题标题正好落在吸顶页头下方，而不是停在区块顶部（区块自身有 78px 内边距） */
.cae-section-head,
.cae-group-head { scroll-margin-top: calc(var(--cae-header-h) + 26px); }

.cae-case-group { scroll-margin-top: calc(var(--cae-header-h) + 72px); }

/* 脚本接管滚轮翻页时用 JS 逐帧滚动，关掉 CSS 平滑滚动以免互相打架 */
html.cae-paging { scroll-behavior: auto; }

@media (prefers-reduced-motion: reduce) {
  .cae-slider-track { transition: none; }
}

/* 矮屏：压缩框体内边距，尽量一屏放下 */
@media (max-height: 860px) and (min-width: 721px) {
  .cae-slide { padding: 24px 32px; }
  .cae-slide.is-detail,
  .cae-slide.is-overview { gap: 28px; }
  .cae-slide-overview li { padding: 7px 0; }
  .cae-slide-overview p { font-size: 13px; line-height: 1.6; }
  .cae-overview-figure img { max-height: 230px; }
  .cae-case-text { margin-bottom: 12px; font-size: 13.5px; }
}

/* ==========================================================================
   10. 响应式
   ========================================================================== */

/* 1280px 以下，modern-site.css 把 .modern-header-inner 压到 min-height:48px */
@media (max-width: 1280px) {
  body.cae-soft-page { --cae-header-h: 56px; }
}

@media (max-width: 1080px) {
  .cae-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .cae-hero { padding: 56px 0 50px; }
  .cae-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .cae-hero-media { max-width: 620px; }
  .cae-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cae-metric { padding: 22px 20px 4px 0; }
  .cae-metric:nth-child(odd) { padding-left: 0; border-left: 0; }
  .cae-metric:nth-child(3),
  .cae-metric:nth-child(4) { border-top: 1px solid rgba(255, 255, 255, 0.13); }
  .cae-outcome { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .cae-trait-panel { grid-template-columns: minmax(0, 1fr); }
  .cae-trait + .cae-trait { border-top: 1px solid var(--cae-gray-100); border-left: 0; }
  .cae-section { padding: 58px 0; }
  .cae-slide { padding: 28px 28px; }
  .cae-slide.is-detail,
  .cae-slide.is-overview { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .cae-slide-figure img { max-height: 280px; }
  .cae-case-group.is-fit .cae-slider-viewport,
  .cae-case-group.is-fit .cae-slider-track,
  .cae-case-group.is-fit .cae-slide { height: auto; }
  .cae-case-group.is-fit .cae-mini-img { padding: 12px; }
  .cae-case-group.is-fit .cae-mini-img img {
    position: static;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 260px;
  }
  .cae-case-group.is-fit .cae-slide.is-detail .cae-slide-figure img { height: auto; max-height: 280px; }
  .cae-hero-media { width: 100%; }
}

@media (max-width: 720px) {
  .cae-wrap { width: min(calc(100% - 28px), 680px); }
  .cae-hero { padding: 42px 0 40px; }
  .cae-hero h1 { font-size: clamp(30px, 8.4vw, 40px); }
  .cae-hero-lead { font-size: 15.5px; }
  .cae-hero-metrics { margin-top: 34px; }
  .cae-metric-value { font-size: 26px; }
  .cae-metric-label { font-size: 12px; }
  .cae-section { padding: 44px 0; }
  .cae-section-head { margin-bottom: 30px; }
  .cae-section-head h2 { font-size: clamp(24px, 6.6vw, 30px); }
  .cae-section-lead { font-size: 15.5px; }
  .cae-feature-grid { grid-template-columns: minmax(0, 1fr); }
  .cae-feature-card { padding: 24px 22px; }
  .cae-slide { padding: 26px 20px; gap: 20px; }
  .cae-slide-copy h3 { font-size: 19px; }
  .cae-slide-copy p { font-size: 14.5px; }
  .cae-slide-overview li { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 15px 0; }
  .cae-slide-overview .cae-ov-no { font-size: 21px; }
  .cae-slide-overview h3 { font-size: 16px; }
  .cae-slide-overview p { font-size: 13.5px; }
  .cae-slider-nav { gap: 10px; padding: 7px 12px; }
  .cae-pair { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cae-mini-img img { max-height: 230px; }
  .cae-case-top h4 { font-size: 17px; }
  .cae-case-group { margin-bottom: 52px; }
  .cae-group-head { gap: 14px; margin-bottom: 24px; }
  .cae-group-no { width: 40px; height: 40px; font-size: 17px; }
  .cae-group-head .cae-group-count { display: none; }
}

@media print {
  .cae-rail { display: none; }
  .cae-mini:hover { border-color: var(--cae-gray-200); box-shadow: none; }
}
