.yun-project-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.yun-project-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  padding: 0 0.75rem;
  border: 1px solid var(--va-c-bg-soft, rgba(128, 128, 128, 0.2));
  border-radius: 0.375rem;
  background: var(--va-c-bg-soft, rgba(255, 255, 255, 0.9));
  color: var(--va-c-text, #333);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.yun-project-tab:hover {
  filter: brightness(0.95);
}

.yun-project-tab.active {
  border-color: #0078e7;
  color: #0078e7;
}

.yun-project-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.yun-project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 22rem;
  max-width: 100%;
  margin: 0.5rem;
  padding: 0.75rem 0.75rem 3rem;
  border-radius: 0.5rem;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  filter: grayscale(30%);
  transition: filter 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  animation: yun-project-reveal 0.6s ease both;
}

.yun-project-card:hover {
  filter: grayscale(0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.yun-project-icon {
  margin-top: 1rem;
  font-size: 1.75rem;
  line-height: 1;
}

.yun-project-icon svg,
.yun-project-link-item svg,
.yun-project-pin svg {
  width: 1em;
  height: 1em;
  display: block;
}

.yun-project-pin {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1rem;
  cursor: default;
}

.yun-project-pin .iconify,
.yun-project-pin svg {
  font-size: 1rem;
}

.yun-project-name {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.yun-project-desc {
  margin: 0;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.yun-project-links {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  height: 2.5rem;
  border-radius: 0 0 0.5rem 0.5rem;
  overflow: hidden;
}

.yun-project-link-item {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--c-brand, #fff);
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.25s ease;
}

.yun-project-link-item:hover {
  background: rgba(255, 255, 255, 0.35);
}

.yun-project-link-item i,
.yun-project-link-item svg {
  font-size: 1.25rem;
}

@keyframes yun-project-reveal {
  from {
    opacity: 0;
    transform: translate3d(0, 50px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
