/* ========== 工具状态标签样式 ========== */
.resource-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 4px;
  margin-right: 0.5rem;
  font-weight: 500;
  z-index: 1;
  position: relative;
  cursor: help;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin-bottom: 10px;
}
main { 
  padding: 30px 0 15px; 
}

.tag-recommended { 
  background: #dcfce7; 
  color: #166534; 
  border: 1px solid #a7f3d0; 
}

.tag-discontinued { 
  background: #fee2e2; 
  color: #b91c1c; 
  border: 1px solid #fca5a5; 
}

.tag-experimental { 
  background: #fef3c7; 
  color: #92400e; 
  border: 1px solid #fde68a; 
}

.tag-open-source { 
  background: #ede9fe; 
  color: #7c3aed; 
  border: 1px solid #ddd6fe; 
}

.tag-closed-source { 
  background: #f3f4f6; 
  color: #374151; 
  border: 1px solid #d1d5db; 
}

.tag-free {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #86efac;
}

.tag-paid {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fb923c;
}

/* ========== 悬停提示 Tooltip 样式 ========== */
.resource-tag::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  max-width: 220px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.resource-tag::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(2px);
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.resource-tag:hover::after,
.resource-tag:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(8px);
}

/* ========== 页脚样式 ========== */
.footer-info {
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
  margin: 1.5rem 0;
}