/* 产品列表页 子导航：2排 × 每排6个，等宽、带边框 */
.zlm-grid {
  box-sizing: border-box;
}
.zlm-grid ul {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}
.zlm-grid ul li {
  width: 100%;
  display: block;
  font-size: 14px;
}
.zlm-grid ul li a {
  display: block;
  text-align: center;
  padding: 12px 4px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  color: #333;
  background: #ffffff;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  transition: all 0.25s ease;
}
.zlm-grid ul li a:hover,
.zlm-grid ul li a.cur {
  background-color: #0C427A;
  color: #ffffff;
  border-color: #0C427A;
}

/* 中等屏幕：4列 */
@media screen and (max-width: 992px) {
  .zlm-grid ul {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}

/* 手机端：子导航改为下拉选择框 */
.zlm-mobile-select {
  display: none;
  width: 100%;
}
.zlm-mobile-select select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: #333;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #ffffff;
  box-sizing: border-box;
}

@media screen and (max-width: 768px) {
  .zlm-grid ul {
    display: none;
  }
  .zlm-mobile-select {
    display: block;
  }
}
