/* ============================================================
   凌阳科技官网 · 多级导航下拉菜单（2026 补全：对齐线上站点一级/二级导航）
   仅新增，不改动原有规则
   ============================================================ */

.header .nav-menu > li { position: relative; }

.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 168px;
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1200;
}

.nav-menu > li.has-sub:hover > .sub-menu,
.nav-menu > li.has-sub:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-menu .sub-menu li { display: block; }

.nav-menu .sub-menu li a {
  padding: 0 20px;
  line-height: 40px;
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.nav-menu .sub-menu li a::after { display: none; }

.nav-menu .sub-menu li a:hover {
  color: var(--primary);
  background: var(--primary-gradient-subtle);
}

.nav-menu > li.has-sub > a::before {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  opacity: .55;
}

.site-menu-trigger { display: none; }
@media (961px <= width <= 1200px) {
  .header #logo-img { max-width: 150px; }
  .header .search-box input, .header .search-box input:focus { width: 105px; }
  .header .nav-menu > li > a { padding: 0 11px; font-size: 13px; }
  .header .nav-menu > li.has-sub > a::before { right: 2px; }
}

@media (max-width: 960px) {
  .header .container { flex-wrap: nowrap; gap: 8px; }
  .header nav { order: 3; }
  .header .logo { min-width: 0; }
  .header #logo-img { max-width: min(31vw, 200px); }
  .header .search-box { margin-left: auto; }
  .header .search-box input, .header .search-box input:focus { width: clamp(70px, 20vw, 145px); }
  .header .search-dropdown { left: auto !important; width: min(72vw, 330px); }
  .site-menu-trigger { display: block; background: #fff; color: var(--text-primary); border: 1px solid var(--border-light); border-radius: 6px; padding: 0 10px; min-height: 44px; white-space: nowrap; cursor: pointer; }
  .header .nav-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; overscroll-behavior: contain; background: white; padding: 8px 16px; box-shadow: var(--shadow-lg); }
  .header .nav-menu.open { display: block; }
  .header .nav-menu > li > a { line-height: 44px; padding: 0 8px; font-weight: 600; }
  .header .nav-menu .sub-menu { position: static; display: flex; flex-wrap: wrap; transform: none; visibility: visible; opacity: 1; pointer-events: auto; box-shadow: none; padding: 0 0 6px; min-width: 0; border-bottom: 1px solid var(--border-light); }
  .header .nav-menu .sub-menu a { padding: 0 8px; line-height: 44px; font-size: 14px; }
  .header .nav-menu a::before, .header .nav-menu a::after { display: none; }
}
