/* 语言切换器容器 */
.language-switcher {
  background: transparent;
  margin: 20px 0;
  overflow: hidden;
  position: relative;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
}

/* 标签页容器 */
.language-switcher-tabs-container {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 0 8px;
  height: 40px;
  box-sizing: border-box;
  background: #f6f8fa;
  border-bottom: 1px solid #e1e4e8;
  margin-bottom: -1px;
}

/* 标签页组 */
.language-switcher-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 6px;
  height: 100%;
  margin-left: -8px;
}

/* 标签页按钮 */
.language-switcher-tab {
  border: none;
  background: transparent;
  font-size: 14px;
  padding: 6px 10px;
  margin: 0;
  border-radius: 6px 6px 0 0;
  color: #586069;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.language-switcher-tab:hover {
  background: #e1e4e8;
  color: #24292e;
}

.language-switcher-tab.active {
  background: #ffffff;
  color: #24292e;
  font-weight: 600;
  border-bottom: 2px solid #ffffff;
  position: relative;
  z-index: 1;
}

.language-switcher-tab.disabled {
  cursor: default;
  opacity: 0.6;
}

.language-switcher-tab.disabled:hover {
  background: transparent;
}

.language-switcher-tab.disabled.active {
  background: #ffffff;
  color: #24292e;
  font-weight: 600;
}

/* 代码面板 */
.language-switcher .language-switcher-panel {
  display: none;
  margin: 0;
  background: transparent;
  border: none !important;
  box-shadow: none !important;
}

.language-switcher .language-switcher-panel.is-active {
  display: block;
}

.language-switcher .language-switcher-panel pre {
  margin: 0;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-top: none;
}
