/* 全站公共顶栏 + 侧栏菜单（/assets/site-nav.css） */
.nav-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.nav-menu-overlay.active {
  background: rgba(0, 0, 0, 0.3);
  opacity: 1;
  visibility: visible;
}
.nav-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 340px;
  height: 100vh;
  background: #fff;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-menu-panel.active {
  transform: translateX(0);
}
.nav-menu-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}
.nav-menu-list {
  padding: 20px;
}
.nav-menu-item {
  display: block;
  padding: 16px 0;
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-menu-item:hover,
.nav-menu-item:active {
  color: #ff6b35;
}
.nav-menu-sub {
  padding: 20px;
  background: #f9f9f9;
}
.nav-menu-sub-title {
  font-size: 13px;
  color: #86868b;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-menu-sub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nav-menu-sub-link {
  font-size: 14px;
  color: #ff6b35;
  text-decoration: none;
  padding: 6px 12px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(255, 107, 53, 0.2);
  transition: all 0.2s ease;
}
.nav-menu-sub-link:hover,
.nav-menu-sub-link:active {
  background: #ff6b35;
  color: #fff;
}
.nav-menu-sub-link.is-active {
  background: #ff6b35;
  color: #fff;
  border-color: #ff6b35;
}
.menu-toggle-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}
.menu-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}
.menu-toggle-btn:active {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(0.95);
}
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
