/* 工具卡片悬停效果 */
.tool-card {
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0.75rem;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* 悬停时显示操作按钮 */
.tool-card-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.95));
  padding: 1rem;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-card:hover .tool-card-actions {
  transform: translateY(0);
}

/* 操作按钮 */
.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.action-btn:active {
  transform: scale(0.95);
}

.action-btn.active {
  background: rgba(255, 255, 255, 0.3);
}

/* 移动端 */
@media (max-width: 768px) {
  .tool-card:hover {
    transform: translateY(0);
  }
  
  .tool-card-actions {
    position: static;
    transform: none;
    background: transparent;
    padding: 0.5rem 0 0 0;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
  }
}
