/* 企业端统一顶栏 */
.site-header {
  background: linear-gradient(90deg, #5eb3ff 0%, #3d9ef5 35%, #2b8ce8 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 80, 180, 0.15);
}
.site-header a {
  text-decoration: none;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  line-height: 0;
}
.brand-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  object-position: left center;
}
.header-loc {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.15s;
}
a.header-loc:hover { opacity: 0.88; }
a.header-loc.on {
  font-weight: 600;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 4px 8px;
  margin: -4px -8px;
}
.header-loc i { font-size: 11px; opacity: 0.8; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 0;
}
.main-nav a {
  padding: 8px 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 2px;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.15); }
.main-nav a.active {
  background: rgba(255, 255, 255, 0.22);
  font-weight: 600;
}
.nav-dropdown { position: relative; flex-shrink: 0; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 2px;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-dropdown-trigger i {
  font-size: 11px;
  opacity: 0.85;
  transition: transform 0.2s ease;
}
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown.open .nav-dropdown-trigger,
.nav-dropdown.has-active .nav-dropdown-trigger {
  background: rgba(255, 255, 255, 0.15);
}
.nav-dropdown.has-active .nav-dropdown-trigger,
.nav-dropdown.open .nav-dropdown-trigger {
  background: rgba(255, 255, 255, 0.22);
  font-weight: 600;
}
.nav-dropdown:hover .nav-dropdown-trigger i,
.nav-dropdown.open .nav-dropdown-trigger i {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 132px;
  padding: 6px 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 120;
}
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown-menu a:hover {
  background: #f0f7ff;
  color: #1890ff;
}
.nav-dropdown-menu a.active {
  background: #e6f4ff;
  color: #1890ff;
  font-weight: 600;
}
.nav-dropdown-menu-wide {
  min-width: 148px;
}
