/* ============================================================
   上海兆信防伪科技 · 合作伙伴 logo 墙
   独立命名空间 .lgw-*，不与站内既有 .marq（行业标签带）冲突。

   设计要点（贴合本站"白底 + #0052d9 强调"的卡片语言）：
   · 淡蓝灰区块里放一张白色卡片，logo 在白卡上呈品牌原色
   · 3 行无缝滚动，第二行反向；每格左右固定 padding（相邻 logo 边缘固定间距）
   · 方形/竖形标（.lgw-item--sq）高度 36px、横标 30px，视觉重量均衡
   · 资产高度 108px（3 倍图），DPR2/3 屏清晰锐利
   ============================================================ */

/* 区块：淡蓝灰底 + 上下留白，与两侧白底 section 形成节奏 */
.lgw-section {
  background: linear-gradient(180deg, #eef3fb 0%, #f7f9fc 100%);
  padding: 96px 86.4px;
}

/* 白色承载卡 */
.lgw-wrap {
  background: #fff;
  border: 1px solid var(--line, rgba(15, 23, 42, .08));
  border-radius: 24px;
  box-shadow: 0 26px 64px -26px rgba(15, 23, 42, .18);
  padding: 34px 0 38px;
  position: relative;
}

/* 卡顶彩条：点缀，克制 */
.lgw-wrap::after {
  content: "";
  position: absolute;
  left: 24px; right: 24px; top: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent,
              rgba(56, 189, 248, .55) 26%,
              rgba(167, 139, 250, .55) 50%,
              rgba(232, 162, 61, .5) 74%, transparent);
  opacity: .75;
}

.lgw-cap {
  text-align: center;
  margin: 0 0 22px;
  font-size: 12.5px;
  letter-spacing: 4px;
  color: #8593ad;
}

.lgw-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 每行两端渐隐 */
.lgw-row {
  overflow: hidden;
  position: relative;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.lgw-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 0;
  animation: lgw-marq var(--lgw-dur, 46s) linear infinite;
  will-change: transform;
}

.lgw-row:nth-child(even) .lgw-track {
  animation-direction: reverse;
}

.lgw-row:hover .lgw-track {
  animation-play-state: paused;
}

.lgw-item {
  width: auto;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  line-height: 0;
}

.lgw-item img {
  height: 30px;
  width: auto;
  max-width: 136px;
  object-fit: contain;
  display: block;
  opacity: .92;
  transition: opacity .3s ease, transform .3s ease;
}

/* 方形/竖形徽标适当放大，与横排字标视觉重量一致 */
.lgw-item--sq img {
  height: 36px;
}

.lgw-item:hover img {
  opacity: 1;
  transform: translateY(-3px);
}

@keyframes lgw-marq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 1100px) {
  .lgw-section { padding: 72px 48px; }
  .lgw-item { padding: 0 22px; }
  .lgw-item img { height: 27px; max-width: 120px; }
  .lgw-item--sq img { height: 32px; }
}

@media (max-width: 768px) {
  .lgw-section { padding: 56px 20px; }
  .lgw-wrap { border-radius: 18px; padding: 24px 0 28px; }
  .lgw-wrap::after { left: 16px; right: 16px; }
  .lgw-cap { font-size: 11px; letter-spacing: 2.5px; margin-bottom: 16px; }
  .lgw-rows { gap: 10px; }
  .lgw-item { padding: 0 18px; }
  .lgw-item img { height: 22px; max-width: 100px; }
  .lgw-item--sq img { height: 26px; }
}

/* 尊重系统减弱动效设置 */
@media (prefers-reduced-motion: reduce) {
  .lgw-track { animation: none; }
}
