/* 自定义昵称tooltip样式 */
[data-tooltip] {
  position: relative;
  cursor: pointer;
}

[data-tooltip]::before,
[data-tooltip]::after {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease-in-out; /* 加快显示速度：从0.3s改为0.1s */
  transition-delay: 0.1s; /* 减少延迟：从0.5s改为0.1s */
}

/* Tooltip内容框 */
[data-tooltip]::before {
  content: attr(data-tooltip);
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 8px 12px;
  white-space: nowrap;
  background-color: #FFF9E9; /* 浅黄色背景 */
  color: #5C7524; /* 橄榄绿色文字 */
  border: 1px solid #5C7524; /* 橄榄绿色边框 */
  border-radius: 6px; /* 圆角矩形 */
  font-size: 14px;
  line-height: 1.4;
  z-index: 10000;
  box-shadow: 0 2px 8px rgba(92, 117, 36, 0.15); /* 添加轻微阴影 */
}

/* Tooltip小箭头 */
[data-tooltip]::after {
  content: '';
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-2px);
  border: 6px solid transparent;
  border-top-color: #5C7524; /* 箭头边框颜色 */
  z-index: 10001;
}

/* 鼠标悬浮时显示tooltip - 使用!important确保优先级 */
[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
  opacity: 1 !important;
  transition-delay: 0.1s !important; /* 快速显示 */
  visibility: visible !important;
}

/* 确保tooltip在所有元素之上 */
[data-tooltip]::before {
  min-width: max-content;
  max-width: 300px;
}



/* Charity detail structured sections */
.charity-section {
  margin: 48px 0;
}

.charity-section-title {
  font-size: 28px;
  line-height: 1.4;
  color: #2f562a;
  margin: 0 0 24px;
}

.charity-section-images {
  display: flex;
  gap: 24px;
  margin: 0 0 24px;
}

.charity-section-images--two .charity-section-image {
  flex: 1;
}

.charity-section-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  object-fit: cover;
}

.charity-section-content {
  margin-top: 0;
}
