/* 中文页面菜单字体优化 */
/* 为中文字体提供更优雅、更轻盈的显示效果 */

/* 主菜单链接 - 减轻字重并确保相对定位 */
.nav-menu a {
  font-weight: 400 !important;
  position: relative !important;
}

/* 下拉菜单切换按钮 - 保持一致 */
.dropdown-toggle {
  font-weight: 400 !important;
}

/* 子菜单项 - 使用更轻的字重 */
.dropdown-menu a {
  font-weight: 400 !important;
}

/* 激活状态的菜单项 - 稍微加重但不过分 */
.nav-menu a.active,
.dropdown-toggle.active {
  font-weight: 500 !important;
}

/* 悬停状态 - 保持优雅 */
.nav-menu a:hover,
.dropdown-menu a:hover {
  font-weight: 500 !important;
}

/* 品牌文字优化 */
.brand-text h1,
.brand-text h2 {
  font-weight: 600 !important;
}

/* 确保中文字体渲染平滑 */
.nav-menu,
.dropdown-menu {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 确保下划线效果在中文页面也显示 */
.nav-menu a::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  bottom: -6px !important;
  width: 0 !important;
  height: 2px !important;
  background: #fff !important;
  transition: width 0.3s ease !important;
}

.nav-menu a:hover::after {
  width: 100% !important;
}

.nav-menu a.active::after {
  width: 100% !important;
}

/* 下拉菜单的激活状态下划线 */
.dropdown.active > .dropdown-toggle::after {
  width: 100% !important;
}

/* 下拉菜单内的链接不显示下划线 */
.dropdown-menu a::after {
  display: none !important;
}
