/* 按钮工具提示模块 */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(0,0,0,0.8);
  color: white;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 100;
}

[data-tooltip]:hover::before {
  opacity: 1;
  margin-bottom: 8px;
}

/* 日夜间模式适配 */
.dark [data-tooltip]::before {
  background: rgba(255,255,255,0.9);
  color: #333;
}