/* 列悬停提示样式 */
th.header-tooltip {
  position: relative;
}

.column-tooltip {
  visibility: hidden;
  width: 280px;
  background: white;
  color: #333;
  text-align: left;
  border-radius: 8px;
  padding: 12px;
  position: absolute;
  z-index: 10000;
  bottom: calc(100% + 10px); /* 固定在元素上方10px */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  white-space: normal;
  border: 1px solid #e5e7eb;
}

.column-tooltip::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: white transparent transparent transparent;
}

.column-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px;
  border-style: solid;
  border-color: #e5e7eb transparent transparent transparent;
  z-index: -1;
  margin-top: -1px;
}

/* 标题样式 */
.column-tooltip strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1f2937;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 4px;
}

/* 内容样式 */
.column-tooltip .tooltip-content {
  font-size: 13px;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.5;
}

/* 确保表格单元格有相对定位 */
.data-table td {
  position: relative !important;
  overflow: visible !important; /* 重要：确保提示框可以显示在单元格外部 */
}

.data-table th {
  position: relative !important;
  overflow: visible !important;
}

/* 表格容器允许溢出显示 */
.table-container {
  overflow-x: auto;
  overflow-y: visible !important; /* 重要：允许垂直方向溢出 */
}

/* 悬停效果 */
.data-table td:hover .column-tooltip,
th.header-tooltip:hover .column-tooltip {
  visibility: visible;
  opacity: 1;
}