/* 通用样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  min-width: 1280px;
  font-family: Arial, sans-serif;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  min-width: 1280px;
  width: 100%;
  height: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

/* 左侧 Logo 区域 */
.nav-left {
  font-size: 0.25rem;
  color: #409EFF;
  padding-left: 0.8125rem;
}

.nav-left img {
  height: 1.25rem;
  margin-left: 0.5rem;
}

/* 右侧导航链接 */
.nav-right {
  display: flex;
  list-style: none;
  margin: 0;
  margin-right: 0.625rem;
}

.nav-right li {
  margin-left: 0.5625rem;
  position: relative;
}

.nav-right a {
  text-decoration: none;
  color: #ffffff;
  font-size: 0.25rem;
  padding-bottom: 0.05rem;
  position: relative;
}

.nav-right a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.0375rem;
  width: 0%;
  height: 0.025rem;
  background-color: #ffffff;
  transition: width 0.3s;
}

.nav-right a:hover::after {
  width: 100%;
}

.nav-right li.active a::after {
  width: 100%;
}

/* 滚动变色样式 */
.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.9); /* 半透明白色 */
}

.navbar.scrolled .nav-right a {
  color: black;
}

.navbar.scrolled .nav-left {
  color: black;
}

.navbar.scrolled .login-button {
  background-color: white;
  color: black;
  border: 0.0125rem solid black;
}

.navbar.scrolled .nav-right a::after {
  background-color: black;
}

.nav-right li.active a::after {
  width: 100%; /* 显示完整下划线 */
}

.login-button {
  background-color: transparent;
  border: 0.0125rem solid white; /* 白色边框 */
  color: white;
  font-size: 0.225rem;
  margin-top: -0.0875rem;
  padding: 0.0625rem 0.0625rem;
  margin-bottom: 0.025rem;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 0.05rem; /* 圆角边框 */
}

.login-button:hover {
  background-color: white;
  color: black; /* 悬停时背景变为白色，文字变为蓝色 */
}

