/* 风格切换器（调色板 + 深浅模式），右下角悬浮按钮 */
.theme-switcher { position: fixed; right: 24px; bottom: 24px; z-index: 9999; }
.theme-toggle {
  position: relative; width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff; font-size: 18px; box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  transition: transform .2s, box-shadow .2s;
}
.theme-toggle:hover { transform: scale(1.08); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.theme-panel {
  position: absolute; right: 0; bottom: 60px; width: 230px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.theme-switcher.open .theme-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.theme-group { margin-bottom: 14px; }
.theme-group:last-child { margin-bottom: 0; }
.theme-label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 8px; font-weight: 600; }
.theme-swatches { display: flex; gap: 10px; }
.theme-swatch {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--card); cursor: pointer;
  background: var(--sw); box-shadow: 0 0 0 1px var(--border); transition: transform .15s;
}
.theme-swatch:hover { transform: scale(1.15); }
.theme-swatch.selected { box-shadow: 0 0 0 2px var(--sw); transform: scale(1.1); }
.theme-modes { display: flex; gap: 8px; }
.theme-mode-btn {
  flex: 1; padding: 7px 0; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-2); color: var(--text); font-size: 13px; cursor: pointer; transition: all .15s;
}
.theme-mode-btn:hover { opacity: .9; }
.theme-mode-btn.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
