/* ─── 标签云集（样式对齐 nuoea.com 的 .sidebar-tags） ───
   每个标签为带边框的圆角盒，flex:1 0 auto 使其自动撑满每行，形成云集排布。 */

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  padding: 0 0.25rem;
}

.tag-cloud-item {
  position: relative;
  display: flex;
  flex: 1 0 auto;
  justify-content: center;
  align-items: center;
  gap: 0.3em;
  margin: 0.25rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.33rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tag-cloud-item:hover {
  border-color: #0f61ff;
  color: #0f61ff;
}

@media (prefers-color-scheme: dark) {
  .tag-cloud-item {
    border-color: rgba(255, 255, 255, 0.15);
  }

  .tag-cloud-item:hover {
    border-color: #81a5f8;
    color: #81a5f8;
  }
}
