body {
  margin: 0;
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  background: #1a1a1a;
  color: #fff;
  height: 80px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 5vw;
}

.logoAndTitle {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
}

.logo-img {
  height: 6vw;
  max-height: 60px;
}

/* 大屏幕：导航栏水平排列 */
.nav-links {
  display: flex;
  gap: 60px;
  align-items: center;
}

.logo-link {
  text-decoration: none;
  color: #111;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
}

.nav-links a:hover h6 {
  color: #e50914;
  text-decoration: underline;
  text-decoration-color: #e50914;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.nav-links a.active h6 {
  color: #e50914;
  text-decoration: underline;
  text-decoration-color: #e50914;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* 汉堡按钮样式 */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  user-select: none;
}

/* 默认隐藏 nav */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: #111;
    padding: 40px 5vw;
    box-sizing: border-box;
    overflow-y: auto;
    gap: 40px;
    align-items: start;
  }

  .nav-links.show {
    display: flex; /* 展开菜单 */
  }

  /* 汉堡按钮显示 */
  .menu-toggle {
    display: block;
  }
}
