/* Tailwind CSS 自定义工具类 */
@layer utilities {
  .content-auto {
    content-visibility: auto;
  }
  .text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
  }
  .card-hover {
    transition: all 0.3s ease;
  }
  .card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(22, 93, 255, 0.15);
  }
}

/* 通用弹窗关闭按钮样式 */
.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #ff4757;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  z-index: 10;
  border: none;
}

.close-btn:hover {
  background-color: #ff3742;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}

/* 横版对话框关闭按钮 */
.dialog-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #ff4757;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
  z-index: 10;
  border: none;
}

.dialog-close:hover {
  background-color: #ff3742;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}
