/* 全站头部 — 仅作用于 <header> 内，避免污染页面主体 */
header {
  position: sticky;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background: #080705;
  border: 1px solid #1e2431;
}

header .header-wrapper {
  height: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  display: flex;
  align-items: center;
}

header .logo img {
  height: 32px;
}

header .nav-container {
  display: flex;
  align-items: center;
  background: transparent;
  position: relative;
  height: 60px;
}

header .nav-list {
  display: flex;
  list-style: none;
  margin-right: 20px;
}

header .nav-item {
  position: relative;
  margin: 0 10px;
}

header .nav-link {
  color: #f9fafb;
  font-size: 16px;
  padding: 8px 12px;
  display: block;
  transition: background 0.3s, color 0.3s;
}

header .nav-link.active,
header .nav-link:hover,
header .nav-link:focus-visible {
  background: #ed5e1a;
  border-radius: 32px;
}

header .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  background: #080705;
  border: 1px solid #3d3f42;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  list-style: none;
  padding: 8px;
  margin: 0;
  z-index: 1000;
  text-align: center;
  width: auto;
}

header .dropdown-menu .dropdown-item a {
  display: block;
  padding: 6px 15px;
  color: #fff;
  white-space: nowrap;
  
}

header .nav-item:hover .dropdown-menu {
  display: block;
}

header .dropdown-menu .dropdown-item a:hover,
header .dropdown-menu .dropdown-item a.active {
  background-color: #1b1612;
  color: #ed5e1a;
}
