/* 导航栏整体样式 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(0, 184, 217, 0.15) !important;
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border-bottom: 1px solid rgba(0, 184, 217, 0.3);
  box-shadow: 0 4px 30px rgba(0, 184, 217, 0.15) !important;
  z-index: 1000;
  transition: all 0.3s ease;
  box-sizing: border-box;
  overflow: visible;
}

/* 滚动时的导航栏 - 增强蓝色效果 */
.navbar.scrolled {
  background: rgba(0, 184, 217, 0.25) !important;
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  box-shadow: 0 4px 30px rgba(0, 184, 217, 0.25) !important;
  border-bottom: 1px solid rgba(0, 184, 217, 0.4);
  mix-blend-mode: normal !important;
}

.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%;
  gap: 20px;
}

/* Logo - 彻底隔离，保持原始颜色 */
.nav-logo {
  position: relative;
  z-index: 1001;
  flex-shrink: 0;
  overflow: visible;
  display: inline-block;
  padding: 10px 15px;
  mix-blend-mode: normal !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 4px;
  border: none !important;
  box-shadow: none !important;
}

/* 隔离logo容器 */
.nav-logo .logo-container {
  display: block;
  mix-blend-mode: normal !important;
  background: none !important;
}

/* 确保logo图像完全不受影响 */
.nav-logo .logo-image {
  mix-blend-mode: normal !important;
  height: 50px;
  width: auto;
  filter: brightness(1.2) drop-shadow(0 0 8px var(--primary-cyan));
  transition: all 0.3s ease;
  display: block;
  max-width: 100%;
}

.nav-logo .logo-image:hover {
  transform: scale(1.08);
  filter: brightness(1.3) drop-shadow(0 0 12px var(--primary-cyan));
}

/* 导航内容区 - 包含菜单和右侧功能 */
.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 20px;
}

/* 导航菜单容器 */
.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
  margin: 0;
  padding: 0;
}

/* 导航链接 */
.nav-link {
  color: var(--primary-silver) !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  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;
  overflow: hidden;
  cursor: pointer;
  text-shadow:
    0 0 2px rgba(0, 184, 217, 0.8),
    0 0 4px rgba(0, 184, 217, 0.5),
    1px 1px 2px rgba(0, 0, 0, 0.8),
    -1px -1px 2px rgba(0, 0, 0, 0.8),
    1px -1px 2px rgba(0, 0, 0, 0.8),
    -1px 1px 2px rgba(0, 0, 0, 0.8);
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid transparent;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(0, 184, 217, 0.3), rgba(128, 222, 234, 0.3));
  background-size: 200% 100%;
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
  animation: gradientFlow 10s linear infinite;
}

.nav-link:hover,
.nav-link.active {
  transform: translateY(-2px);
  text-shadow:
    0 0 4px rgba(0, 184, 217, 1),
    0 0 8px rgba(0, 184, 217, 0.8),
    1px 1px 2px rgba(0, 0, 0, 0.8),
    -1px -1px 2px rgba(0, 0, 0, 0.8),
    1px -1px 2px rgba(0, 0, 0, 0.8),
    -1px 1px 2px rgba(0, 0, 0, 0.8);
}

.nav-link:hover::before,
.nav-link.active::before {
  opacity: 1;
}

/* 下拉菜单 */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  color: var(--primary-silver) !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  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;
  overflow: hidden;
  cursor: pointer;
  text-shadow:
    0 0 2px rgba(0, 184, 217, 0.8),
    0 0 4px rgba(0, 184, 217, 0.5),
    1px 1px 2px rgba(0, 0, 0, 0.8),
    -1px -1px 2px rgba(0, 0, 0, 0.8),
    1px -1px 2px rgba(0, 0, 0, 0.8),
    -1px 1px 2px rgba(0, 0, 0, 0.8);
}

.dropdown-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--primary-gradient-border);
  background-size: 200% 100%;
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
  animation: gradientFlow 10s linear infinite;
}

.dropdown-toggle:hover {
  transform: translateY(-2px);
  text-shadow:
    0 0 4px rgba(0, 184, 217, 1),
    0 0 8px rgba(0, 184, 217, 0.8),
    1px 1px 2px rgba(0, 0, 0, 0.8),
    -1px -1px 2px rgba(0, 0, 0, 0.8),
    1px -1px 2px rgba(0, 0, 0, 0.8),
    -1px 1px 2px rgba(0, 0, 0, 0.8);
}

.dropdown-toggle:hover::before {
  opacity: 1;
}

/* 下拉箭头 */
.dropdown-toggle::after {
  content: '▼';
  font-size: 0.6rem;
  margin-left: 6px;
  transition: transform 0.3s ease;
  color: inherit;
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* 下拉菜单面板 */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  /* 将背景从半透明改为不透明的深蓝色 */
  background: #0a1929 !important;
  /* 移除backdrop-filter效果，因为它只对透明背景有效 */
  /* backdrop-filter: blur(25px) saturate(200%); */
  /* -webkit-backdrop-filter: blur(25px) saturate(200%); */
  border: 1px solid rgba(0, 184, 217, 0.3);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  list-style: none;
  padding: 12px 0;
  min-width: 180px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}


.dropdown:hover .dropdown-menu {
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  opacity: 1;  /* 添加这一行，使下拉菜单在hover时变为不透明 */
}

/* 下拉菜单链接 */
.dropdown-link {
  color: var(--primary-silver) !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  display: block;
  transition: all 0.3s ease;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  position: relative;
  cursor: pointer;
  text-shadow:
    0 0 2px rgba(0, 184, 217, 0.8),
    0 0 4px rgba(0, 184, 217, 0.5),
    1px 1px 2px rgba(0, 0, 0, 0.8),
    -1px -1px 2px rgba(0, 0, 0, 0.8),
    1px -1px 2px rgba(0, 0, 0, 0.8),
    -1px 1px 2px rgba(0, 0, 0, 0.8);
}

.dropdown-link:hover {
  background: rgba(0, 184, 217, 0.1);
  padding-left: 24px;
  text-shadow:
    0 0 4px rgba(0, 184, 217, 1),
    0 0 8px rgba(0, 184, 217, 0.8),
    1px 1px 2px rgba(0, 0, 0, 0.8),
    -1px -1px 2px rgba(0, 0, 0, 0.8),
    1px -1px 2px rgba(0, 0, 0, 0.8),
    -1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* 右侧功能区 */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 语言切换按钮 */
#langSwitch {
  background: rgba(10, 15, 37, 0.5);
  border: 1px solid var(--border-color);
  color: var(--primary-silver) !important;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.05em;
  text-shadow:
    0 0 2px rgba(0, 184, 217, 0.8),
    0 0 4px rgba(0, 184, 217, 0.5),
    1px 1px 2px rgba(0, 0, 0, 0.8),
    -1px -1px 2px rgba(0, 0, 0, 0.8),
    1px -1px 2px rgba(0, 0, 0, 0.8),
    -1px 1px 2px rgba(0, 0, 0, 0.8);
}

#langSwitch:hover {
  background: rgba(0, 184, 217, 0.1);
  color: var(--primary-silver) !important;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 8px rgba(0, 184, 217, 0.3);
  text-shadow:
    0 0 4px rgba(0, 184, 217, 1),
    0 0 8px rgba(0, 184, 217, 0.8),
    1px 1px 2px rgba(0, 0, 0, 0.8),
    -1px -1px 2px rgba(0, 0, 0, 0.8),
    1px -1px 2px rgba(0, 0, 0, 0.8),
    -1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* 移动端汉堡按钮 */
.nav-hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
  text-shadow: 0 0 2px rgba(0, 184, 217, 0.3);
}

.nav-hamburger:hover {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 8px rgba(0, 184, 217, 0.3);
}

.hamburger-icon {
  width: 22px;
  height: 2px;
  background: var(--primary-gradient);
  margin: 5px 0;
}
