/* 合作伙伴 logo 墙 —— 4列 × 2行 规整网格横向滑动  zkcktec 2026-11-05 v2 */
.zk-partners {
  position: relative;
  padding: 0 54px;
}

/* 所有 logo 都装在这一个框里 */
.zk-frame {
  background: #fff;
  border: 1px solid #e7eaf1;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(16, 32, 56, .06);
  padding: 14px;
  overflow: hidden;
}

.zk-marquee {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
}

.zk-marquee::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.zk-marquee:active { cursor: grabbing; }

.zk-track {
  display: flex;
  align-items: stretch;
  width: max-content;
}

/* 一个 .zk-group = 一屏 = 4 列 × 2 行 = 8 个格子 */
.zk-group {
  flex: 0 0 auto;
  width: 1100px;              /* 由 JS 按可见宽度覆盖 */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 112px);
  gap: 0;                     /* 用格子 margin 做间隙，保证列网格严格等距 */
}

.zk-logo {
  margin: 5px;
  border: 1px solid #edf0f5;
  border-radius: 10px;
  background: #fbfcfe;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  box-sizing: border-box;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.zk-logo:hover {
  background: #fff;
  border-color: #dbe3ef;
  box-shadow: 0 4px 14px rgba(16, 32, 56, .07);
}

.zk-logo img {
  max-width: 100%;
  max-height: 76px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: .9;
  transition: opacity .25s ease, transform .25s ease;
  -webkit-user-drag: none;
  user-select: none;
}

.zk-logo:hover img {
  opacity: 1;
  transform: translateY(-1px);
}

/* 16 格补齐用的中性占位，保持网格完整 */
.zk-logo-more span {
  font-size: 20px;
  letter-spacing: 6px;
  color: #c6cede;
  line-height: 1;
  transform: translateY(-6px);
}

.zk-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #e6e9f0;
  background: #fff;
  color: #4b5261;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 10px rgba(15, 32, 56, .10);
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.zk-arrow:hover {
  background: #0055bc;
  border-color: #0055bc;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 85, 188, .28);
}

.zk-arrow:focus-visible {
  outline: 2px solid #0055bc;
  outline-offset: 2px;
}

.zk-prev { left: 0; }
.zk-next { right: 0; }

.zk-partners-hint {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: #80879a;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.zk-partners-hint .zk-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0f74e0;
  display: inline-block;
  opacity: .7;
}

/* 两屏分页指示 */
.zk-pager {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
}

.zk-pager i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d5dbe6;
  cursor: pointer;
  transition: width .25s ease, background .25s ease, border-radius .25s ease;
}

.zk-pager i.on {
  width: 16px;
  border-radius: 3px;
  background: #0f74e0;
}

@media (max-width: 991.98px) {
  .zk-partners { padding: 0 44px; }
  .zk-group { grid-template-rows: repeat(2, 96px); }
  .zk-logo img { max-height: 64px; }
}

@media (max-width: 767.98px) {
  .zk-partners { padding: 0 8px; }
  .zk-frame { padding: 8px; border-radius: 10px; }
  .zk-group { grid-template-rows: repeat(2, 78px); }
  .zk-logo { margin: 3px; padding: 0 6px; border-radius: 7px; }
  .zk-logo img { max-height: 50px; }
  .zk-arrow { display: none; }
  .zk-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  }
  .zk-partners-hint { font-size: 12px; margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .zk-logo, .zk-logo img { transition: none; }
}
