/* =====================================================
   qing-tech-ai  —  AI算法技术版块（编号 + 流程图 + 卡片网格）
   前缀: qta-
   对应源码 .tech-cards.tech-cards--gray.tech-ai
   ===================================================== */

.qta-wrap {
  background: #f5f5f5;
  padding: 72px 0;
}

.qta-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 50px;
  box-sizing: border-box;
}

/* ---------- 版块编号 01/AI算法技术 ---------- */
.qta-section-no {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-accent, #1f6feb);
  line-height: 1.2;
  margin: 0 0 14px;
}

.qta-section-no-num {
  margin-right: 2px;
}

/* ---------- 标题 ---------- */
.qta-title {
  font-size: 30px;
  font-weight: 800;
  color: #111;
  line-height: 1.35;
  margin: 0 0 14px;
  text-align: left;
}

/* ---------- 引导语 ---------- */
.qta-lead {
  font-size: 15px;
  font-weight: 600;
  color: #444;
  margin: 0 0 34px;
}

/* ---------- 流程图 ---------- */
.qta-flow {
  width: 100%;
  margin: 0 0 40px;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  padding: 28px;
  box-sizing: border-box;
}

.qta-flow img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ---------- 卡片网格 ---------- */
.qta-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.qta-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  padding: 34px 28px;
  box-sizing: border-box;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.qta-card:hover {
  transform: translateY(-4px);
  box-shadow: 10px 10px 0 var(--color-accent, #1f6feb);
  border-color: var(--color-accent, #1f6feb);
}

/* ---------- 卡片图标 ---------- */
/* 用 min-width/min-height 而非固定 width/height：
   图标模式下仍占 46×46（外观不变），上传的横向图片则能自然撑开，
   不会被 46px 的硬宽度裁掉。 */
.qta-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  margin-bottom: 18px;
  color: var(--color-accent, #1f6feb);
}

.qta-card-icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qta-card-icon i {
  font-size: 34px;
  line-height: 1;
}

/* 上传图片：高度跟随「图标尺寸」控件，宽度自适应，避免非正方形图被压扁。
   控件同时输出 width/height，这里的 width:auto 会被它覆盖 —— 属预期，
   需要保持原始比例时把控件的宽度留空即可。 */
.qta-card-icon img {
  width: auto;
  height: 40px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* ---------- 卡片文字 ---------- */
.qta-card-name {
  font-size: 19px;
  font-weight: 700;
  color: #111;
  margin: 0 0 12px;
}

.qta-card-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  margin: 0;
}

/* ---------- 底部说明行 ---------- */
.qta-foot {
  margin: 40px 0 0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-accent, #1f6feb);
}

/* ---------- 进入视口动画 ---------- */
@keyframes qta-enter-up {
  from { opacity: 0; transform: translate3d(0, 30px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.qing-motion-js .qta-wrap:not(.is-motion-visible) .qta-section-no,
.qing-motion-js .qta-wrap:not(.is-motion-visible) .qta-title,
.qing-motion-js .qta-wrap:not(.is-motion-visible) .qta-lead,
.qing-motion-js .qta-wrap:not(.is-motion-visible) .qta-flow,
.qing-motion-js .qta-wrap:not(.is-motion-visible) .qta-card,
.qing-motion-js .qta-wrap:not(.is-motion-visible) .qta-foot {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
}

.qta-wrap.is-motion-visible .qta-section-no,
.qta-wrap.is-motion-visible .qta-title,
.qta-wrap.is-motion-visible .qta-lead,
.qta-wrap.is-motion-visible .qta-flow,
.qta-wrap.is-motion-visible .qta-card,
.qta-wrap.is-motion-visible .qta-foot {
  animation: qta-enter-up 1.15s cubic-bezier(.22,1,.36,1) backwards;
}

.qta-wrap.is-motion-visible .qta-section-no { animation-delay: 60ms; }
.qta-wrap.is-motion-visible .qta-title { animation-delay: 150ms; }
.qta-wrap.is-motion-visible .qta-lead { animation-delay: 240ms; }
.qta-wrap.is-motion-visible .qta-flow { animation-delay: 340ms; }
.qta-wrap.is-motion-visible .qta-card { animation-delay: calc(520ms + var(--motion-i, 0) * 240ms); }
.qta-wrap.is-motion-visible .qta-foot { animation-delay: 1020ms; }

@media (prefers-reduced-motion: reduce) {
  .qing-motion-js .qta-wrap .qta-section-no,
  .qing-motion-js .qta-wrap .qta-title,
  .qing-motion-js .qta-wrap .qta-lead,
  .qing-motion-js .qta-wrap .qta-flow,
  .qing-motion-js .qta-wrap .qta-card,
  .qing-motion-js .qta-wrap .qta-foot {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* =====================================================
   响应式
   说明：以下属性已由 Elementor 响应式控件按断点输出，
   不在此处重复声明，避免内联样式与媒体查询互相覆盖：
     · 每行列数（grid-template-columns）· 卡片间距（gap）
     · 外层内边距 / 内容区左右内边距 / 卡片内边距
     · 流程图内边距 · 悬停投影偏移 · 底部说明对齐
   此处仅保留无对应控件的属性（主要是字号）。
   字号未设控件默认值，故媒体查询可正常生效；
   一旦在「字体排版」中手动设置字号，则以控件值为准，
   需自行切换到平板/手机视图分别调整。
   ===================================================== */

/* ---------- ≤860px ---------- */
@media (max-width: 860px) {
  .qta-title {
    font-size: 25px;
  }

  .qta-lead {
    font-size: 14px;
  }

  .qta-foot {
    font-size: 14px;
  }
}

/* ---------- ≤560px ---------- */
@media (max-width: 560px) {
  .qta-section-no {
    font-size: 19px;
  }

  .qta-title {
    font-size: 22px;
  }

  .qta-card-name {
    font-size: 17px;
  }

  .qta-card-icon {
    margin-bottom: 14px;
  }
}
