/* 作者：yang */
/* 时间：2024.11.27 */
/*基础CSS*/
html {
  font-size: 14px;
  overflow-x: hidden;
}

li {
  list-style: none;
}

.site-title {
  color: white;
  font-family: SimSun, serif;
  font-weight: bold;
  text-align: center;
  font-size: 32px;
  white-space: nowrap; 
  margin-top: 1px;
}
.navbar-brand {
  margin-left: 5%; 
}
.low-width {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap; 
}

.navbar-nav {
  display: flex;
  justify-content: space-between;
  /* 内容两端对齐 */
}

.navbar-light {
  background-color: rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s;
}

/* 设置导航链接文字颜色为白色 */
.navbar-light .navbar-nav .nav-link {
  color: white;
  font-size: 1.1em;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: #1296db;
}

.navbar-light .navbar-nav .show>.nav-link,
.navbar-light .navbar-nav .active>.nav-link,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .nav-link.active {
  color: #1296db;
}

/* 设置导航栏在滚动时的样式 */
.navbar-light.scrolled {
  background-color: #fff;
}

.navbar-light.scrolled .site-title {
    color: #1296db;
    font-family: SimSun, serif;
    font-weight: bold;
    text-align: center;
    font-size: 32px;
}

/* 滚动时导航链接文字颜色为黑色 */
.navbar-light.scrolled .navbar-nav .nav-link {
  color: #000;
}

.navbar-light.scrolled .navbar-nav .nav-link:hover,
.navbar-light.scrolled .navbar-nav .nav-link:focus {
  color: #1296db;
}

.navbar-light.scrolled .navbar-nav .show>.nav-link,
.navbar-light.scrolled .navbar-nav .active>.nav-link,
.navbar-light.scrolled .navbar-nav .nav-link.show,
.navbar-light.scrolled .navbar-nav .nav-link.active {
  color: #1296db;
}

/* 默认隐藏二级菜单 */
.dropdown-menu {
  display: none;
  position: absolute;
  text-align: center;
  min-width: 100px;
  max-width: 300px;
  width: 100%;
  top: 15;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.dropdown-menu a {
  display: block; /* 使每个链接独占一行 */
  padding: 5px 10px; /* 可选，为链接添加一些内边距，根据需要调整 */
  text-decoration: none; /* 可选，去除下划线 */
  color: #000; /* 可选，使链接颜色继承自父元素 */
}
.dropdown-menu a:hover {
  color: #1296db; /* 鼠标悬停时链接颜色变为蓝色 */
}
/* 鼠标悬停在一级菜单上时显示二级菜单 */
.nav-item:hover .dropdown-menu {
  display: block;
}

.lan {
  width: auto;
  margin-left: 50px;
  font-size: 1rem;
  /* 设置字体大小 */
  color: #333;
  /* 设置字体颜色 */
  font-family: Verdana, Arial, Geneva;
  /* 设置字体为黑体 */
  margin-left: 50px;
  /* 设置左边距 */
}

.lan img {
  vertical-align: middle;
  /* 使图标与文字垂直居中 */
  margin-right: 5px;
  /* 图标右侧的间距 */
  width: 1em;
  /* 设置图标大小 */
  height: 1em;
  /* 设置图标大小 */
}

.lan a {
  margin-right: 10px;
  /* 链接右侧的间距 */
  color: #333;
  /* 设置链接颜色 */
  text-decoration: none;
  /* 去除下划线 */
}

.lan a.active {
  color: #1296db;
  /* 设置活动链接的颜色 */
  font-weight: bold;
  /* 加粗活动链接 */
}

.lan a:hover {
  color: #1296db;
  /* 设置链接悬停时的颜色 */
  text-decoration: underline;
  /* 悬停时添加下划线 */
}