.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #333;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand:hover {
  color: #64B5F6;
}

.navbar-brand img {
  height: 32px;
  border-radius: 6px;
  margin: 0;
  border: none;
}

.navbar-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #64B5F6;
}

.nav-link.active {
  background: #64B5F6;
  color: #000;
}

.nav-link.active:hover {
  background: #90CAF9;
  color: #000;
}

/* 为了适应导航栏，给body添加上边距 */
body {
  padding-top: 60px;
}

/* 平板端响应式 */
@media (max-width: 768px) {
  .navbar {
    padding: 0 16px;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .navbar-brand img {
    height: 28px;
  }

  .navbar-links {
    gap: 12px;
  }

  .nav-link {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}

/* 汉堡菜单按钮 - 默认隐藏 */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* 语言选择器样式 */
.lang-select-container {
  margin-left: 16px;
  position: relative;
}

.nav-lang-select {
  background: rgba(26, 26, 26, 0.8);
  color: #ffffff;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #333;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 100px;
  transition: all 0.2s ease;
}

.nav-lang-select:hover, 
.nav-lang-select:focus {
  background: rgba(26, 26, 26, 1);
  border-color: #444;
}

/* 移动端汉堡菜单（扩大到平板，体验更一致） */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .navbar-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 16px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid #333;
    gap: 8px;
    z-index: 1000;
  }

  .navbar-links.active {
    transform: translateY(0);
  }

  .nav-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: 8px;
  }

  .lang-select-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 8px 0 0 0;
  }

  .nav-lang-select {
    min-width: 120px;
    padding: 8px 14px;
  }
}

/* 超小屏进一步优化可用空间 */
@media (max-width: 420px) {
  .navbar-brand span { display: none; }
  .nav-lang-select { min-width: 100px; }
}

/* 汉堡菜单动画效果 */
.menu-toggle span.active:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle span.active:nth-child(2) {
  opacity: 0;
}

.menu-toggle span.active:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* -------------------- Footer (shared) -------------------- */
.site-footer {
  margin-top: 60px;
  padding: 20px 16px;
  background: #1a1a1a;
  border-top: 1px solid #333;
  width: 100%;
  box-sizing: border-box;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.site-footer h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin: 0 0 16px 0;
}

.site-footer p {
  color: #cccccc;
  font-size: 0.9rem;
  margin: 0;
}

.site-footer__groups {
  display: flex;
  gap: 40px;
}

.site-footer__group h4 {
  color: #ffffff;
  font-size: 1rem;
  margin: 0 0 12px 0;
}

.site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__list li {
  margin-bottom: 8px;
}

.site-footer__list a {
  color: #cccccc;
  text-decoration: none;
}

.site-footer__list a:hover {
  color: #90CAF9;
}

.site-footer__bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid #333;
  text-align: center;
}

.site-footer__badges {
  text-align: center;
  margin: 10px auto 20px;
  padding-top: 2px;
  justify-content: center;
  display: flex;
  gap: 20px;
  max-width: 1200px;
}

@media (max-width: 768px) {
  .site-footer__groups {
    gap: 20px;
  }
  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .site-footer__groups {
    flex-direction: column;
    align-items: center;
  }
  .site-footer__badges {
    flex-wrap: wrap;
    gap: 12px;
  }
  #fazier-badge img {
    max-width: 140px;
    height: auto;
  }
}

@media (max-width: 420px) {
  .site-footer__badges {
    flex-direction: column;
    align-items: center;
  }
  #fazier-badge img {
    max-width: 120px;
  }
}