/* Web 首页“为什么选择”下方环境支持模块 */
body#index-page .qy-environment-support {
  position: relative;
  overflow: hidden;
  background: #f7f9fc;
}

body#index-page .qy-environment-support .qy-section-head h2 {
  margin: 0;
  font-size: 20px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

body#index-page .qy-environment-support .qy-section-head > p {
  font-size: 16px !important;
  line-height: 1.65 !important;
  font-weight: 400 !important;
}

/* 单行环境滚动区：电脑端一屏 8 个 */
body#index-page .qy-environment-support__viewport {
  --qy-env-visible: 8;
  --qy-env-gap: 12px;
  width: 100%;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}

body#index-page .qy-environment-support__track {
  display: flex;
  align-items: stretch;
  width: max-content;
  will-change: transform;
}

body#index-page .qy-environment-support__group {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
}

body#index-page .qy-environment-support__item {
  width: var(--qy-env-item-width, 150px);
  min-width: var(--qy-env-item-width, 150px);
  min-height: 112px;
  display: flex;
  flex: 0 0 var(--qy-env-item-width, 150px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-right: var(--qy-env-gap);
  padding: 16px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 0 !important;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035);
  box-sizing: border-box;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

body#index-page .qy-environment-support__item:hover {
  border-color: #9dbef8;
  box-shadow: 0 7px 18px rgba(18, 99, 255, 0.07);
  transform: translateY(-1px);
}

body#index-page .qy-environment-support__logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden;
}

body#index-page .qy-environment-support__logo img {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body#index-page .qy-environment-support__logo.is-empty::before {
  content: "";
  width: 30px;
  height: 30px;
  border: 2px solid #94a3b8;
  box-sizing: border-box;
}

body#index-page .qy-environment-support__name {
  display: block;
  width: 100%;
  overflow: hidden;
  color: #0f172a;
  font-size: 16px !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 鼠标进入时暂停，便于查看具体环境名称 */
body#index-page .qy-environment-support__viewport:hover .qy-environment-support__track {
  animation-play-state: paused;
}

body#index-page .qy-environment-support__viewport.is-static {
  overflow-x: auto;
  scrollbar-width: none;
}

body#index-page .qy-environment-support__viewport.is-static::-webkit-scrollbar {
  display: none;
}

body#index-page .qy-environment-support__viewport.is-static .qy-environment-support__group[aria-hidden="true"] {
  display: none;
}

/* 手机端：一屏 4 个，上方 LOGO、下方系统名称 */
@media (max-width: 760px) {
  body#index-page .qy-environment-support__viewport {
    --qy-env-visible: 4;
    --qy-env-gap: 8px;
  }

  body#index-page .qy-environment-support__item {
    min-height: 96px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 4px;
  }

  body#index-page .qy-environment-support__logo,
  body#index-page .qy-environment-support__logo img {
    width: 40px;
    height: 40px;
  }

  body#index-page .qy-environment-support__logo {
    flex-basis: 40px;
  }

  body#index-page .qy-environment-support__name {
    min-width: 0;
    font-size: 13px !important;
    line-height: 1.25 !important;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  body#index-page .qy-environment-support__viewport {
    overflow-x: auto;
    scrollbar-width: none;
  }

  body#index-page .qy-environment-support__viewport::-webkit-scrollbar {
    display: none;
  }

  body#index-page .qy-environment-support__track {
    transform: none !important;
  }
}
