.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 92px;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  transition: background 0.3s, box-shadow 0.3s;
  background: #060610;
}

.navbar-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 92px;
}

.navbar-logo {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  height: 92px;
}
.navbar-logo img {
  height: 24px; /* 根据需要调整logo的高度 */
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease-in-out;
  transform: translateY(0); /* 确保在大屏幕上默认位置正确 */
}

.navbar-menu {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}
.navbar-menu li {
  display: flex;
  align-items: center;
}
.navbar-menu li a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.navbar-menu li a:hover,
.navbar-menu li a.active {
  color: #fff;
}

.navbar-action {
  margin-left: 32px;
}
.navbar-btn {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #fff;
  border-radius: 30px;
  width: 173px;
  height: 42px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.navbar-btn:hover {
  background: linear-gradient(90deg, #3b6cff 0%, #00fff0 100%);
  color: #3e1313ff;
}
.navbar-toggle {
  display: none;
}

/* 移动端样式适配 */
@media (max-width: 1000px) {
  .navbar-container {
    padding: 0 16px;
  }

  .navbar-links {
    position: fixed;
    top: -100vh; /* 初始位置在屏幕上方不可见区域 */
    left: 0;
    width: 100%;
    height: calc(100vh - 92px);
    background-color: #060610;
    transform: translateY(0);
    z-index: 999;
    transition: top 0.3s ease-in-out;
  }

  .navbar-menu {
    flex-direction: column;
    padding: 20px;
    width: 100%;
    height: 100%;
    gap: 20px;
    align-items: flex-start;
  }

  .navbar-menu li {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-menu li a {
    font-size: 1.2rem;
    width: 100%;
    display: block;
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-links.active {
    top: 92px !important; /* 激活时定位到导航栏下方 */
  }

  .navbar-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
  }

  .navbar-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
  }

  .navbar-toggle.active .bar:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
  }

  .navbar-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .navbar-toggle.active .bar:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
  }

  .navbar-action {
    display: none;
  }

  .navbar-action-mobile {
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .navbar-action-mobile .navbar-btn {
    width: 100%;
    max-width: 300px;
    height: 50px;
    font-size: 1.1rem;
  }
}
