/* ========== 悬浮半透明汉堡按钮 ========== */
.hamb-box {
  position: fixed;
  top: 6%;
  right: 5px;
  z-index: 9999;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.hamb-icon span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  transition: 0.3s;
  position: relative;
}

/* 菜单打开 → X */
.hamb-box.active .hamb-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamb-box.active .hamb-icon span:nth-child(2) {
  opacity: 0;
}
.hamb-box.active .hamb-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ========== 全屏菜单 ========== */
.menu-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9998;
  padding-top: 80px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s;
}
.menu-wrap.show {
  opacity: 1;
  visibility: visible;
}

/* ========== 【通用样式】所有菜单自动适配 ========== */
.menu li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.menu a {
  display: block;
  color: #fff;
  font-size: 16px;
  padding: 14px 24px;
  cursor: pointer;
}

/* 二级菜单通用样式 */
.sub-menu {
  max-height: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  transition: max-height 0.3s ease;
}
.sub-menu a {
  padding-left: 40px;
  font-size: 15px;
  color: #eee;
}
.sub-menu.show {
  max-height: 500px;
}
