/* 顶部工作区切换：3D 打印工作区与 CNC 工作区共用同一份样式。 */

.workspace-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
}

.workspace-switch-item {
  display: block;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  color: #cfe0f5;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: .18s ease;
}

.workspace-switch-item:hover { color: #fff; background: rgba(255, 255, 255, .12); }

.workspace-switch-item.is-active {
  color: #10243a;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(9, 24, 41, .28);
}

/* 侧边栏内的工作区切换：位于品牌下方、模块导航上方。 */
.sidebar > .workspace-switch { margin: 0 0 18px; }
