/* 分半式主题切换按钮 */
.theme-toggle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
  background: linear-gradient(90deg, #fff 50%, #333 50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.theme-toggle.light-mode:hover {
  background: linear-gradient(90deg, #fff 50%, #333 50%) !important;
}


.theme-toggle.dark-mode:hover {
  background: linear-gradient(90deg, #333 50%, #fff 50%) !important;
}


.theme-toggle.light-mode {
  background: linear-gradient(90deg, #fff 50%, #333 50%);
}

.theme-toggle.dark-mode {
  background: linear-gradient(90deg, #333 50%, #fff 50%);
}


.theme-toggle:active::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.2;
}