/* 移动端菜单按钮样式 - 默认隐藏 */
.menu-toggle {
  display: none;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.menu-toggle:hover {
  background: #1d4ed8;
}
.menu-toggle i {
  font-size: 24px;
}

/* 遮罩层 */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

/* 移动端侧边栏样式 */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex; /* 移动端显示按钮 */
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%; /* 默认隐藏 */
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: #fafcff;
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    border-right: none;
  }
  .sidebar.active {
    left: 0; /* 显示侧边栏 */
  }
  .menu-overlay.active {
    display: block; /* 显示遮罩 */
  }
  /* 调整原有内容区，避免挤压 */
  .doc-main {
    flex-direction: column;
  }
  .content-pane {
    width: 100%;
  }
}