/* ========================================
   汉堡导航菜单样式 - 商务简约主题
   ======================================== */

/* 顶部导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(64px + env(safe-area-inset-top, 0px));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar .logo {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  color: #1A1A1A;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 90%;
}

.navbar .logo .logo-img {
  height: 100%;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  border-radius: 4px;
}

.navbar .logo .logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: auto;
  aspect-ratio: 1;
  background: #2563EB;
  color: white;
  border-radius: 6px;
  font-size: 1.5rem;
}

/* 菜单按钮（汉堡图标） */
.menu-btn {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.menu-btn span {
  display: block;
  width: 28px;
  height: 3px;
  background: #1A1A1A;
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translateY(6.5px);
  background: #2563EB;
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-6.5px);
  background: #2563EB;
}

/* 侧滑菜单 */
.slide-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 999;
  padding: 100px 30px 80px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
}

.slide-menu.active {
  right: 0;
}

.slide-menu a {
  display: block;
  padding: 18px 0;
  font-size: 1.125rem;
  color: #1A1A1A;
  text-decoration: none;
  border-bottom: 1px solid #E5E7EB;
  font-weight: 500;
  transition: all 0.3s ease;
}

.slide-menu a:hover {
  color: #2563EB;
  padding-left: 12px;
}

/* 菜单遮罩层 */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.slide-menu-footer {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: #999;
  padding: 10px 20px;
  white-space: nowrap;
}

.slide-menu-footer a {
  display: inline;
  padding: 0;
  font-size: inherit;
  color: inherit;
  text-decoration: none;
}

.slide-menu-footer a:hover {
  color: #666;
}

@media (max-width: 768px) {
  .slide-menu-footer {
    bottom: 80px;
  }
}
