/* 移动端汉堡菜单与导航折叠公共样式 */
.nav-toggle {
  display: none;
  background: var(--btn-bg);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
@media (max-width: 767px) {
  .nav-container { flex-wrap: wrap; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }
  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 8px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a, .login-button, .user-dropdown { width: 100%; }
}

/* runtimeSwitcher 在移动端的换行适配（若模板未内联也可生效） */
@media (max-width: 767px) {
  #runtimeSwitcher {
    flex-wrap: wrap;
    width: 100%;
  }
}