/* 统一导航栏样式 */
.nav-container {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: 4rem;
}

.nav-content {
  margin: 0 auto;
  padding: 0 1rem;
  max-width: 1280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-image {
  height: 2.5rem;
  width: auto;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  margin: 0 0 0 auto;
  padding: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: calc(100vw - 250px);
  scrollbar-width: none;
  -ms-overflow-style: none;
  font-size: 0.75rem; /* Even smaller font size */
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.75rem;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .nav-link,
  .dropdown-toggle {
    font-size: 0.85rem;
    padding: 0.4rem 0;
  }
  
  .main-nav {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    max-width: calc(100vw - 200px);
  }
}

.nav-link {
  color: #1D2129;
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  white-space: nowrap;
  font-size: 0.75rem;
}

.nav-link:hover {
  color: #00B42A;
}

.nav-link.active {
  color: #00B42A;
  font-weight: 500;
}

.nav-link-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0.125rem;
  background-color: #00B42A;
  transition: width 0.3s ease;
}

.nav-link:hover .nav-link-indicator,
.nav-link.active .nav-link-indicator {
  width: 100%;
}

.dropdown-container {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.75rem;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 16rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-radius: 0.5rem;
  padding: 1rem 0;
  z-index: 1000;
}

.submenu.show {
  display: block;
}

.language-submenu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  min-width: 12rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-radius: 0.5rem;
  padding: 1rem 0;
  z-index: 1000;
}

.language-submenu.show {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: #4B5563;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: #F3F4F6;
  color: #00B42A;
}

.right-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.language-selector {
  position: relative;
  display: none;
}

@media (min-width: 768px) {
  .language-selector {
    display: block;
  }
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: #4B5563;
  transition: color 0.3s ease;
}

.language-toggle:hover {
  color: #00B42A;
}

.language-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  min-width: 12rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-radius: 0.5rem;
  padding: 1rem 0;
  z-index: 1000;
}

.language-selector:hover .language-dropdown {
  display: block;
}

.cta-buttons {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .cta-buttons {
    display: flex;
  }
}

.ecosystem-btn {
  border: 2px solid #00B42A;
  color: #00B42A;
  text-decoration: none;
  padding: 0.25rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-size: 0.75rem;
  font-weight: 500;
}

.ecosystem-btn:hover {
  background-color: rgba(0, 180, 42, 0.05);
}

.consultation-btn {
  background-color: #FF7D00;
  color: white;
  text-decoration: none;
  padding: 0.25rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-size: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.consultation-btn:hover {
  background-color: #e67100;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  color: #1D2129;
}

.mobile-toggle span {
  width: 1.25rem;
  height: 0.125rem;
  background-color: #1D2129;
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 4rem;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 40;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.mobile-nav.show {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 1rem;
}

.mobile-nav li {
  margin-bottom: 0.75rem;
}

.mobile-nav a {
  display: block;
  padding: 0.5rem;
  text-decoration: none;
  color: #1D2129;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-nav a:hover {
  color: #00B42A;
}

.mobile-dropdown {
  margin-top: 0.5rem;
  padding-left: 1rem;
}

.scrolled.nav-container {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}