/* 主题切换与返回顶部按钮 样式 */
.right-tools {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.tool-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.tool-btn:hover {
  transform: scale(1.1);
}

.theme-btn {
  background-color: #333;
  color: #fff;
}

.top-btn {
  background-color: #007bff;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.top-btn.show {
  opacity: 1;
  pointer-events: auto;
}

/* 移动端适配 */
@media (max-width: 480px) {
  .right-tools {
    right: 10px;
    bottom: 10px;
  }
  .tool-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* 需在项目全局样式中添加 body 的 light/dark 类样式 */
/* 
body.light {
  background-color: #fff;
  color: #333;
}
body.dark {
  background-color: #1a1a1a;
  color: #f0f0f0;
}
*/
