/* 标签页美化样式 */

/* 标签云容器 */
.tag-cloud {
  padding: 30px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

/* 标签卡片 */
.tag-cloud-title {
  font-size: 2em;
  font-weight: bold;
  margin: 30px 0;
  color: #49b1f5;
  text-shadow: 2px 2px 4px rgba(73, 177, 245, 0.2);
  text-align: center;
  position: relative;
}

.tag-cloud-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #49b1f5, #6a5acd);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* 标签项 */
a.tag-cloud-item {
  display: inline-block;
  padding: 8px 20px;
  margin: 8px;
  border-radius: 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

a.tag-cloud-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

a.tag-cloud-item:hover::before {
  left: 100%;
}

a.tag-cloud-item:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* 不同大小的标签 */
a.tag-cloud-item[style*="font-size: 1.15em"] {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

a.tag-cloud-item[style*="font-size: 1.30em"] {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

a.tag-cloud-item[style*="font-size: 1.45em"] {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  box-shadow: 0 4px 15px rgba(67, 233, 123, 0.3);
}

/* 标签数量徽章 */
a.tag-cloud-item::after {
  content: attr(data-count);
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: #fff;
  color: #333;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 2px solid currentColor;
}

/* 3D标签云容器 */
#tag-cloud-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
  margin: 30px auto;
  max-width: 800px;
}

#tag-cloud-container canvas {
  border-radius: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .tag-cloud {
    padding: 20px;
  }

  .tag-cloud-title {
    font-size: 1.5em;
  }

  a.tag-cloud-item {
    padding: 6px 15px;
    margin: 5px;
    font-size: 0.9em !important;
  }

  #tag-cloud-container {
    height: 300px !important;
    padding: 20px;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tag-cloud {
  animation: fadeIn 0.6s ease-out;
}

a.tag-cloud-item {
  animation: fadeIn 0.6s ease-out;
}

/* 每个标签延迟动画 */
a.tag-cloud-item:nth-child(1) { animation-delay: 0.1s; }
a.tag-cloud-item:nth-child(2) { animation-delay: 0.2s; }
a.tag-cloud-item:nth-child(3) { animation-delay: 0.3s; }
a.tag-cloud-item:nth-child(4) { animation-delay: 0.4s; }
a.tag-cloud-item:nth-child(5) { animation-delay: 0.5s; }
a.tag-cloud-item:nth-child(6) { animation-delay: 0.6s; }
a.tag-cloud-item:nth-child(7) { animation-delay: 0.7s; }
a.tag-cloud-item:nth-child(8) { animation-delay: 0.8s; }
a.tag-cloud-item:nth-child(9) { animation-delay: 0.9s; }
a.tag-cloud-item:nth-child(10) { animation-delay: 1.0s; }
a.tag-cloud-item:nth-child(11) { animation-delay: 1.1s; }
a.tag-cloud-item:nth-child(12) { animation-delay: 1.2s; }

