/* nh-header.css - 网站头部样式 */
/* 所有样式仅作用于 #nh-header-root 内部 */
#nh-header-root .nh-top-bar {
  background: #388E3C;
  color: #ecf0f1;
  padding: 8px 0;
  font-size: 14px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
#nh-header-root .nh-top-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
#nh-header-root .nh-contact-info {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}
#nh-header-root .nh-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bdc3c7;
  transition: color 0.3s ease;
  white-space: nowrap;
}
#nh-header-root .nh-contact-item:hover {
  color: #4CAF50;
}
#nh-header-root .nh-contact-icon {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: rgb(255 255 255);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#nh-header-root .nh-search-box {
  position: relative;
  width: 250px;
  min-width: 200px;
}
#nh-header-root .nh-search-input {
  width: 100%;
  padding: 8px 35px 8px 15px;
  border: 1px solid #FFFFFF;
  border-radius: 20px;
  background: #FFFFFF;
  color: #000000;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
#nh-header-root .nh-search-input:focus {
  outline: none;
  border-color: #4CAF50;
  background: #f1f1f1;
}
#nh-header-root .nh-search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #95a5a6;
  cursor: pointer;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
#nh-header-root .nh-search-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#nh-header-root .nh-main-header {
  background: #ffffff;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
#nh-header-root .nh-header-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: relative;
}
#nh-header-root .nh-logo-container {
  flex-shrink: 0;
}
#nh-header-root .nh-logo-container img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
  max-height: 50px;
  display: inline-block;
}
#nh-header-root .nh-logo-container:hover img {
  transform: scale(1.05);
}
#nh-header-root .nh-main-nav {
  flex-grow: 1;
  margin: 0 40px;
}
#nh-header-root .nh-nav-list {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  flex-wrap: wrap;
}
#nh-header-root .nh-nav-item {
  position: relative;
}
#nh-header-root .nh-nav-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #2c3e50;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
}
#nh-header-root .nh-nav-link:hover {
  background: #f8f9fa;
  color: #4CAF50;
}
#nh-header-root .nh-nav-link.active {
  background: #4CAF50;
  color: white;
}
#nh-header-root .nh-nav-icon {
  margin-left: 5px;
  font-size: 12px;
  transition: transform 0.3s ease;
}
#nh-header-root .nh-nav-item:hover .nh-nav-icon {
  transform: rotate(180deg);
}
#nh-header-root .nh-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: white;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  padding: 5px 0;
}
#nh-header-root .nh-nav-item:hover .nh-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#nh-header-root .nh-submenu-item {
  list-style: none;
}
#nh-header-root .nh-submenu-link {
  display: block;
  padding: 10px 20px;
  color: #2c3e50;
  text-decoration: none;
  transition: all 0.3s ease;
}
#nh-header-root .nh-submenu-link:hover {
  background: #f8f9fa;
  color: #4CAF50;
  padding-left: 25px;
}
#nh-header-root .nh-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1001;
}
#nh-header-root .nh-mobile-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #2c3e50;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: left center;
}
#nh-header-root .nh-mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(-2px);
}
#nh-header-root .nh-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  width: 0;
}
#nh-header-root .nh-mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(2px);
}
#nh-header-root .nh-language-selector {
  position: relative;
  margin-left: auto;
}
#nh-header-root .nh-language-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  z-index: 1001;
}
#nh-header-root .nh-language-btn:hover {
  background: #e9ecef;
  border-color: #4CAF50;
}
#nh-header-root .nh-globe-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#nh-header-root .nh-globe-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#nh-header-root .nh-current-lang {
  font-size: 14px;
  font-weight: 500;
}
#nh-header-root .nh-arrow-icon {
  font-size: 10px;
  color: #7f8c8d;
}
#nh-header-root .nh-language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 300px;
  background: white;
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
}
#nh-header-root .nh-language-selector.active .nh-language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#nh-header-root .nh-language-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  padding: 15px;
}
#nh-header-root .nh-language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  color: #2c3e50;
}
#nh-header-root .nh-language-option:hover {
  background: #f8f9fa;
}
#nh-header-root .nh-language-option img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
#nh-header-root .nh-language-option a {
  font-size: 13px;
  text-decoration: none;
  color: inherit;
}
#nh-header-root .nh-more-languages {
  padding: 12px;
  text-align: center;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  cursor: pointer;
  color: #4CAF50;
  font-size: 14px;
  transition: background 0.3s ease;
}
#nh-header-root .nh-more-languages:hover {
  background: #e9ecef;
}
#nh-header-root .nh-language-option.hidden {
  display: none;
}
#nh-header-root .nh-language-option.hidden.show {
  display: flex;
}
#nh-header-root .nh-mobile-search-btn {
  display: none;
  background: none;
  border: none;
  color: #2c3e50;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
#nh-header-root .nh-mobile-search-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#nh-header-root .nh-mobile-search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1002;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#nh-header-root .nh-mobile-search-overlay.active {
  display: block;
  opacity: 1;
}
#nh-header-root .nh-mobile-search-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 15px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 1003;
}
#nh-header-root .nh-mobile-search-overlay.active .nh-mobile-search-container {
  transform: translateY(0);
}
#nh-header-root .nh-mobile-search-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #4CAF50;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}
#nh-header-root .nh-mobile-search-close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #7f8c8d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
#nh-header-root .nh-mobile-search-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 响应式样式 */
@media (max-width: 1024px) and (min-width: 901px) {
  #nh-header-root .nh-header-wrapper { padding: 0 15px; height: 70px; }
  #nh-header-root .nh-main-nav { margin: 0 20px; }
  #nh-header-root .nh-nav-link { padding: 10px 12px; font-size: 13px; }
  #nh-header-root .nh-logo-container img { height: 45px; }
  #nh-header-root .nh-search-box { width: 180px; min-width: 150px; }
  #nh-header-root .nh-contact-info { gap: 15px; }
  #nh-header-root .nh-language-btn { padding: 6px 10px; font-size: 13px; }
  #nh-header-root .nh-language-dropdown { width: 250px; }
}
@media (max-width: 900px) and (min-width: 769px) {
  #nh-header-root .nh-header-wrapper { padding: 0 15px; height: 70px; }
  #nh-header-root .nh-main-nav { margin: 0 10px; }
  #nh-header-root .nh-nav-link { padding: 8px 10px; font-size: 12px; }
  #nh-header-root .nh-logo-container img { height: 45px; }
  #nh-header-root .nh-search-box { display: none; }
  #nh-header-root .nh-mobile-search-btn { display: block; }
  #nh-header-root .nh-contact-info { gap: 15px; }
  #nh-header-root .nh-language-btn { padding: 6px 8px; font-size: 12px; }
  #nh-header-root .nh-language-dropdown { width: 220px; }
}
@media (max-width: 768px) {
  #nh-header-root .nh-top-bar { display: none; }
  #nh-header-root .nh-main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    height: 60px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  #nh-header-root .nh-header-wrapper {
    height: 60px !important;
    padding: 0 15px !important;
    justify-content: space-between;
  }
  #nh-header-root .nh-language-selector { margin-left: 0; }
  #nh-header-root .nh-logo-container { order: 1; margin-right: auto; }
  #nh-header-root .nh-logo-container img { height: 40px; max-width: 180px; }
  #nh-header-root .nh-language-selector { order: 2; margin: 0 15px; }
  #nh-header-root .nh-language-btn { padding: 6px 10px; }
  #nh-header-root .nh-current-lang { display: none; }
  #nh-header-root .nh-mobile-search-btn { display: block; order: 3; margin-right: 15px; }
  #nh-header-root .nh-mobile-toggle { display: flex; order: 4; }
  #nh-header-root .nh-main-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    margin: 0;
    padding: 20px;
    z-index: 999;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  #nh-header-root .nh-main-nav.active { transform: translateX(0); }
  #nh-header-root .nh-nav-list { flex-direction: column; gap: 5px; }
  #nh-header-root .nh-nav-item { border-bottom: 1px solid #f0f0f0; }
  #nh-header-root .nh-nav-item:last-child { border-bottom: none; }
  #nh-header-root .nh-nav-link { padding: 15px; justify-content: space-between; border-radius: 0; font-size: 16px; }
  #nh-header-root .nh-submenu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding-left: 20px;
    margin-top: 5px;
    background: #f8f9fa;
    border-radius: 4px;
  }
  #nh-header-root .nh-submenu.active { display: block; }
  #nh-header-root .nh-submenu-item { border-bottom: 1px solid #e9ecef; }
  #nh-header-root .nh-submenu-item:last-child { border-bottom: none; }
  #nh-header-root .nh-submenu-link { padding: 10px 15px; font-size: 14px; }
  #nh-header-root .nh-language-dropdown {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 60px);
    border-radius: 0;
    box-shadow: none;
    z-index: 1002;
  }
  #nh-header-root .nh-language-grid { max-height: calc(100vh - 120px); overflow-y: auto; padding: 10px; }
  #nh-header-root .nh-mobile-search-overlay { top: 60px; }
  #nh-header-root .nh-mobile-search-container { top: 60px; padding: 10px; background: #f8f9fa; }
}
@media (max-width: 480px) {
  #nh-header-root .nh-main-header { height: 55px !important; }
  #nh-header-root .nh-header-wrapper { height: 55px !important; padding: 0 10px !important; }
  #nh-header-root .nh-logo-container img { height: 35px; max-width: 150px; }
  #nh-header-root .nh-main-nav { top: 55px; }
  #nh-header-root .nh-language-btn { padding: 5px 8px; }
  #nh-header-root .nh-globe-icon svg { width: 18px; height: 18px; }
  #nh-header-root .nh-mobile-search-btn { margin-right: 10px; }
  #nh-header-root .nh-language-selector { margin: 0 10px; }
  #nh-header-root .nh-language-dropdown { top: 55px; }
  #nh-header-root .nh-mobile-search-overlay { top: 55px; }
  #nh-header-root .nh-mobile-search-container { top: 55px; }
}
@media (min-width: 769px) {
  #nh-header-root .nh-header-wrapper { display: flex; align-items: center; }
  #nh-header-root .nh-main-nav { flex-grow: 1; display: flex; justify-content: center; }
  #nh-header-root .nh-language-selector { margin-left: auto; flex-shrink: 0; }
  #nh-header-root .nh-mobile-search-btn, 
  #nh-header-root .nh-mobile-toggle { display: none; }
  #nh-header-root .nh-main-header { position: sticky !important; height: auto !important; }
}