/* 内页子导航：手机端改为下拉选择框（zlm 系列导航通用） */
.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-drop ul,
  .zlm-grid ul {
    display: none;
  }
  .zlm-drop .zlm-mobile-select,
  .zlm-grid .zlm-mobile-select {
    display: block;
  }
}

/* ===== 内页分类栏：鼠标悬停展开二级栏目 ===== */
.zlm ul.zlm-nav {
  align-items: center;
}
.zlm .zlm-item {
  position: relative;
}
.zlm ul li .zlm-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  width:100%
}
/* 有子栏目的项：右侧小三角 */
.zlm .zlm-item.has-sub .zlm-link::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.75;
  transition: transform 0.22s ease;
}
.zlm .zlm-item.has-sub:hover .zlm-link::after {
  transform: rotate(180deg);
  opacity: 1;
}
/* 二级面板 */
.zlm .zlm-sub {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 8px);
  z-index: 120;
  min-width: 100%;
  width: max-content;
  max-width: 280px;
  padding: 6px 0;
  margin: 0;
  background: #ffffff;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
/* 透明桥接区：鼠标从一级下移到面板时不会丢失悬停 */
.zlm .zlm-sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.zlm .zlm-item:hover .zlm-sub {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
/* 二级项样式（覆盖 .zlm ul li a 的胶囊内边距） */
.zlm ul li .zlm-sub a {
  display: block;
  width: 100%;
  padding: 9px 20px;
  border-radius: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  box-sizing: border-box;
  border-left: 3px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.zlm ul li .zlm-sub a:hover {
  background: #fff5f4;
  color: #cd1008;
  border-left-color: #cd1008;
}
.zlm ul li .zlm-sub a.cur {
  background: #fdeceb;
  color: #cd1008;
  border-left-color: #cd1008;
}
.zlm ul li .zlm-sub a:last-child {
  border-radius: 0 0 7px 7px;
}
/* 没有子栏目时不出现空面板 */
.zlm .zlm-item:not(.has-sub) .zlm-sub {
  display: none;
}
.zlm .zlm-sub:not(:has(a)) {
  display: none;
}
