/* ===== 蜂巢六边形 logo 墙（荣誉资质 honorlist.html / 合作伙伴 hzhblist.html 共用） ===== */
/* 由模板内联样式迁移而来；.hx-* 类名仅作用于带 .hx-wall 的容器，不影响其它页面 */

.hx-wall {
  --hw: 180px;                      /* 六边形宽度，页面脚本会按屏宽重算 */
  --hh: calc(var(--hw) * 0.866);    /* 六边形高度（正六边形比例） */
  --gap: calc(var(--hw) * 0.03);    /* 格子间距 */
  margin-top: 50px;
  margin-bottom: 40px;
}
/* 合作伙伴页使用略小的六边形 */
.hx-wall.hx-wall-sm {
  --hw: 170px;
}

/* 脚本未执行时的兜底：普通换行排列 */
.hx-wall ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hx-wall ul.hx-built {
  gap: 0;
}

/* 六边形列 */
.hx-wall .hx-col {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  width: var(--hw);
  flex: 0 0 auto;
}
.hx-wall .hx-col + .hx-col {
  margin-left: calc(var(--hw) * -0.25 + var(--gap));   /* 相邻列横向咬合 1/4 */
}
.hx-wall .hx-col:nth-child(even) {
  margin-top: calc((var(--hh) + var(--gap)) / 2);      /* 偶数列下移半格，形成蜂巢 */
}

/* 单个六边形 */
.hx-cell {
  position: relative;
  transition: transform .35s cubic-bezier(.22, .61, .36, 1), filter .35s ease, opacity .4s ease;
}
.hx-wall li {
  position: relative;
  width: var(--hw);
  height: var(--hh);
  background: #d9d9d9;                                 /* 外层=描边色 */
  -webkit-clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  transition: background .35s ease;
}
.hx-wall li a {
  position: absolute;
  inset: 2px;
  display: block;
  background: #fff;
  -webkit-clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  overflow: hidden;
}
.hx-wall li a dl {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
}
.hx-wall li a dl dt {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14% 10%;
  overflow: hidden;
}
.hx-wall li a dl dt img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

/* 标题：平时隐藏，悬停时从底部浮现 */
.hx-wall li a dl dd {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 20% 8% 8%;
  background: linear-gradient(to top, rgba(205, 16, 8, .94) 34%, rgba(205, 16, 8, 0) 100%);
  color: #fff;
  font-size: calc(var(--hw) * 0.072);
  line-height: 1.25;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.hx-wall li a dl dd span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 悬停：整格抬起放大 + 描边转品牌红 + 图片放大 + 标题浮现 + 红色投影 */
.hx-cell:hover {
  z-index: 9;
  transform: translateY(-6px) scale(1.06);
  filter: drop-shadow(0 12px 18px rgba(205, 16, 8, .25));
}
.hx-cell:hover li {
  background: #cd1008;
}
.hx-cell:hover li a dl dt img {
  transform: scale(1.1);
}
.hx-cell:hover li a dl dd {
  opacity: 1;
  transform: none;
}

/* 入场：逐个淡入上浮（类名由脚本添加，脚本失效则默认全部可见） */
.hx-cell.hx-pre {
  opacity: 0;
  transform: translateY(18px) scale(.94);
}
.hx-cell.hx-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 减少动效偏好时保持整洁 */
@media (prefers-reduced-motion: reduce) {
  .hx-cell {
    transition: none;
  }
  .hx-cell.hx-pre {
    opacity: 1;
    transform: none;
  }
}
