/* ===== 导航栏样式 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232, 238, 242, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-navbar);
  transition: all 0.3s ease;
}

/* 导航栏内部布局 */
.navbar-inner {
  width: 100%;
  max-width: 1440px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== Logo样式 ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-image {
  width: 100px;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

.logo-text {
  font-size: 20px;
  font-weight: 600;
  color: #1A3A5C;
  letter-spacing: 2px;
}

/* ===== 导航菜单样式 ===== */
.nav-menu {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: #1A1A1A;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: #0D1B2A;
  background: rgba(26, 58, 92, 0.06);
}

/* 导航链接底部线条动画 */
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #1A3A5C, #2E7DB4);
  transition: transform 0.3s ease;
}

.nav-menu a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* 导航栏激活状态 */
.nav-menu a.active {
  color: #fff !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #0F3460, #1E3A8A) !important;
  padding: 8px 20px;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(15, 52, 96, 0.35);
}

.nav-menu a.active::after {
  display: none;
}

/* ===== 移动端菜单按钮 ===== */
.mobile-menu {
  display: none;
  cursor: pointer;
  font-size: 24px;
  color: #1A1A1A;
  padding: 8px;
  background: none;
  border: none;
}

/* ===== 移动端响应式 ===== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: var(--z-navbar);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    padding: 15px 20px;
    border-bottom: 1px solid #E8EDF5;
    text-align: center;
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }

  .mobile-menu {
    display: block;
  }

  .navbar-inner {
    padding: 0 30px;
  }
}

/* ===== 导航栏固定显示（确保覆盖其他样式） ===== */
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: var(--z-navbar) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05) !important;
}
