/* ============ 配色主题：覆盖 Butterfly 强调色 ============ */
html[data-accent="green"] {
  --btn-bg: #34a853;
  --default-bg-color: #34a853;
  --scrollbar-color: #34a853;
  --text-bg-hover: rgba(52, 168, 83, 0.7);
  --blockquote-bg: rgba(52, 168, 83, 0.1);
  --hr-border: rgba(52, 168, 83, 0.35);
}

html[data-accent="pink"] {
  --btn-bg: #f472b6;
  --default-bg-color: #f472b6;
  --scrollbar-color: #f472b6;
  --text-bg-hover: rgba(244, 114, 182, 0.7);
  --blockquote-bg: rgba(244, 114, 182, 0.1);
  --hr-border: rgba(244, 114, 182, 0.35);
}

html[data-accent="orange"] {
  --btn-bg: #ff9800;
  --default-bg-color: #ff9800;
  --scrollbar-color: #ff9800;
  --text-bg-hover: rgba(255, 152, 0, 0.7);
  --blockquote-bg: rgba(255, 152, 0, 0.1);
  --hr-border: rgba(255, 152, 0, 0.35);
}

html[data-accent="purple"] {
  --btn-bg: #8b5cf6;
  --default-bg-color: #8b5cf6;
  --scrollbar-color: #8b5cf6;
  --text-bg-hover: rgba(139, 92, 246, 0.7);
  --blockquote-bg: rgba(139, 92, 246, 0.1);
  --hr-border: rgba(139, 92, 246, 0.35);
}

/* ============ 字体样式 ============ */
html[data-font-family="serif"] body {
  font-family: "SimSun", "Songti SC", "Noto Serif SC", serif !important;
}

html[data-font-family="hei"] body {
  font-family: "SimHei", "Microsoft YaHei", "PingFang SC", sans-serif !important;
}

html[data-font-family="kai"] body {
  font-family: "KaiTi", "STKaiti", "Noto Serif SC", serif !important;
}

/* ============ 外观设置面板 ============ */
.appearance-panel {
  position: fixed;
  left: 20px;
  bottom: 40px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.ap-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ap-title {
  font-size: 12px;
  color: var(--font-color);
  opacity: 0.7;
  min-width: 24px;
}

.ap-dots {
  display: flex;
  gap: 7px;
}

.ap-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s;
}

.ap-dot:hover {
  transform: scale(1.25);
}

.ap-dot.active {
  border-color: var(--font-color);
}

.ap-btn {
  padding: 2px 9px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid rgba(128, 128, 128, 0.35);
  border-radius: 6px;
  background: transparent;
  color: var(--font-color);
  line-height: 1.6;
}

.ap-btn:hover {
  border-color: var(--btn-bg);
}

.ap-btn.active {
  border-color: var(--btn-bg);
  color: var(--btn-bg);
}
