/* 2026-06-12 导航整改：案例、知识、服务分组下拉菜单；独立版本文件避免旧CSS缓存 */
.yh-site-header .nav-sub {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 1002;
  min-width: 150px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid #e5ebf3;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 10px 24px rgba(5, 25, 55, .16);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}

.yh-site-header .has-subnav:hover .nav-sub,
.yh-site-header .has-subnav:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.yh-site-header .nav-sub a {
  padding: 0 20px;
  color: #26364d;
  font-size: 14px;
  line-height: 40px;
  text-align: center;
}

.yh-site-header .nav-sub a::after {
  display: none;
}

.yh-site-header .nav-sub a:hover {
  color: #146fc8;
  background: #f3f7fc;
}

@media (max-width: 900px) {
  .yh-site-header .nav-sub {
    position: static;
    min-width: 0;
    padding: 0 0 4px 18px;
    background: rgba(255, 255, 255, .04);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .yh-site-header .nav-sub a {
    padding: 8px 12px;
    color: rgba(255, 255, 255, .68);
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
  }

  .yh-site-header .nav-sub a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
  }
}
