/* 窄屏陪伴式服务：左文右图，避免装饰图压住标题。
   同文件含第二屏 AI 矩阵卡片窄屏调整。 */
@media (max-width: 991.98px) {
  .jby-service-system__card--consultant,
  .jby-service-system__card--ai {
    min-height: 228px;
    padding: 22px 18px 20px;
  }
  .jby-service-system__card--consultant .jby-service-system__content,
  .jby-service-system__card--ai .jby-service-system__content {
    max-width: 52%;
    padding-right: 8px;
  }
  .jby-service-system__card--consultant img {
    inset: 8px 0 0 auto;
    width: 50%;
    height: calc(100% - 8px);
    object-fit: contain;
    object-position: right bottom;
  }
  .jby-service-system__provided-visual--ai {
    left: auto;
    right: -4%;
    bottom: -6%;
    width: 50%;
    max-width: 210px;
    -webkit-transform: none;
    transform: none;
  }
}

/* 旧版 iOS：绝对定位装饰图高度塌陷修复（覆盖正式站可能滞后的 jby-home.css） */
.jby-service-system__provided-visual {
  position: absolute;
  z-index: 1;
  margin: 0;
  padding: 0;
  overflow: visible;
  line-height: 0;
  font-size: 0;
  pointer-events: none;
  height: auto;
}
.jby-service-system__provided-visual::before {
  content: "";
  display: block;
  width: 100%;
  padding-bottom: 100%;
}
.jby-service-system__provided-visual img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
@media (max-width: 767.98px) {
  .jby-ai-matrix { min-height: 0; padding: 48px 0 36px; }
  .jby-ai-matrix::before { top: 36px; height: 220px; opacity: .45; }
  .jby-ai-matrix__head { width: min(100% - 30px, 560px); margin: 0 auto; text-align: left; }
  .jby-ai-matrix__head h2 { font-size: 35px; }
  .jby-service-support__intro h2,
  .jby-service-system__head h2,
  .jby-security-system__intro h2 { font-size: 35px; }

  .jby-home__carousel-actions,
  .jby-home__carousel-button { display: none !important; }

  /* 收紧第 4/5 屏与上一屏间距 */
  .jby-service-support { padding-bottom: 36px; }
  .jby-service-system { padding: 36px 0 40px; }
  .jby-service-system__head { margin-bottom: 22px; }
  .jby-security-system { padding: 36px 0 40px; }
  .jby-security-system__intro { padding-top: 0; padding-bottom: 0; }
  .jby-security-system__architecture,
  .jby-security-system__values { display: none; }

  .jby-unified-cta { padding: 36px 0; }
  .jby-unified-cta h2 { font-size: 20px; letter-spacing: 0; line-height: 1.4; }
  .jby-unified-cta__actions { gap: 10px; margin-top: 16px; }
  .jby-unified-cta .btn { width: 100%; min-width: 0; min-height: 42px; padding: 0 16px; font-size: 14px; }
  .jby-ai-matrix__head > p:last-child { padding: 0; font-size: 14px; line-height: 1.65; }
  .jby-ai-matrix__viewport { width: min(100% - 16px, 560px); margin-top: 22px; }
  .jby-ai-matrix__viewport::before, .jby-ai-matrix__viewport::after { display: none; }
  .jby-ai-matrix__track { --jby-matrix-card-width: calc(100% - 72px); gap: 12px; padding: 8px 0 12px; }
  .jby-ai-matrix__card { min-width: 0; min-height: 0; padding: 18px 16px 14px; border-radius: 20px; scroll-snap-align: center; }
  .jby-ai-matrix__card:hover,
  .jby-ai-matrix__card.is-active { transform: none; box-shadow: 0 16px 34px rgba(52, 108, 187, .16), inset 0 1px 0 #fff; }
  .jby-ai-matrix__icon { width: 46px; height: 46px; margin: -4px 0 4px -4px; }
  .jby-ai-matrix__card h3 { min-height: 0; font-size: 18px; }
  .jby-ai-matrix__card > p { min-height: 0; margin: 6px 0 8px; font-size: 13px; }
  .jby-ai-matrix__visual,
  .jby-ai-matrix__visual img { height: auto; min-height: 0; }
  .jby-ai-matrix__visual { margin: 0 -2px 10px; }
  .jby-ai-matrix__visual img { height: 168px; }
  .jby-ai-matrix__card > a { opacity: 1; pointer-events: auto; transform: none; }
  .jby-ai-matrix__control { display: grid; width: 36px; height: 36px; font-size: 20px; }
  .jby-ai-matrix__control--prev { left: 0; }
  .jby-ai-matrix__control--next { right: 0; }

  .jby-service-system__card--consultant,
  .jby-service-system__card--ai {
    min-height: 200px;
  }
  .jby-service-system__card--consultant .jby-service-system__content,
  .jby-service-system__card--ai .jby-service-system__content {
    max-width: 48%;
  }
  .jby-service-system__card--consultant .jby-service-system__content h3,
  .jby-service-system__card--ai .jby-service-system__content h3 {
    font-size: 22px;
  }
  .jby-service-system__card--consultant .jby-service-system__content p,
  .jby-service-system__card--ai .jby-service-system__content p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.55;
  }
}
