.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(10, 15, 37, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  box-sizing: border-box;
  overflow: visible;
}

.navbar.scrolled {
  background: rgba(10, 15, 37, 0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* 导航栏容器 */
.navbar .container {
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

/* 导航栏Logo */
.nav-logo .logo-image {
  height: 60px;
  width: auto;
  filter: brightness(1.2);
  transition: all 0.3s ease;
}

.nav-logo .logo-image:hover {
  transform: scale(1.05);
}

/* 导航菜单 */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #c9d1d9;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  line-height: 1.5;
  display: inline-block;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

.nav-link:hover,
.nav-link.active {
  color: #1eeeff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: #1eeeff;
  border-radius: 1px;
}

/* 下拉菜单样式 */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  color: #c9d1d9;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  line-height: 1.5;
  display: inline-block;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

.dropdown-toggle:hover {
  color: #1eeeff;
}

.dropdown-toggle::after {
  content: '▼';
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: rgba(10, 15, 37, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  list-style: none;
  padding: 8px 0;
  min-width: 160px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  color: #c9d1d9;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 12px;
  display: block;
  transition: all 0.3s ease;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

.dropdown-link:hover {
  color: #1eeeff;
  background: rgba(30, 238, 255, 0.1);
}
.language-switcher {
  display: flex;
  gap: 8px;
  margin-left: 20px;
}

.lang-btn, #langSwitch {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c9d1d9;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

.lang-btn:hover, #langSwitch:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #1eeeff;
  border-color: #1eeeff;
}

.lang-btn.active, #langSwitch.active {
  background: #1eeeff;
  color: #0d1117;
  border-color: #1eeeff;
  box-shadow: 0 0 10px rgba(30, 238, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar .container {
    padding: 0 15px;
  }

  .nav-menu {
    gap: 24px;
  }

  .language-switcher, #langSwitch {
    margin-left: 0;
    margin-top: 10px;
    justify-content: center;
  }

  .nav-inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    gap: 16px;
  }

  .nav-link {
    font-size: 14px;
    padding: 6px 10px;
  }

  .dropdown-menu {
    min-width: 140px;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar .container {
    padding: 0 15px;
  }

  .nav-menu {
    gap: 24px;
  }

  .language-switcher {
    margin-left: 0;
    margin-top: 10px;
    justify-content: center;
  }

  .nav-inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    gap: 16px;
  }

  .nav-link {
    font-size: 14px;
    padding: 6px 10px;
  }

  .dropdown-menu {
    min-width: 140px;
  }
}
/* 移动端汉堡按钮 + 平滑过渡动画 */
.nav-hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  transition: transform 0.3s ease;
}
.nav-hamburger:hover { transform: scale(1.05); }
.hamburger-icon {
  width: 24px;
  height: 2px;
  background: var(--primary-gradient);
  margin: 5px 0;
  animation: gradientFlow 10s linear infinite;
}
