body {
  background: #f8f9fa;
   padding-bottom: 90px;
  font-size: 14px;
}

.community-card {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.community-card img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.community-name {
  font-weight: 600;
  font-size: 14px;
  margin: 5px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.community-desc {
  font-size: 12px;
  color: #666;
  margin: 4px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 最多两行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
}

.community-tags {
  font-size: 11px;
  margin-bottom: 6px;
}

.community-tags span {
  margin-right: 4px;
  color: #555;
  font-weight: 500;
}

.community-stats {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

.community-btn {
  margin-top: 6px;
  font-size: 13px;
  padding: 2px 10px;
}

img.rounded-circle {
  object-fit: cover;
}
.clamp-description {
  height: 2.6em;                 /* 保留两行高度 */
  overflow: hidden;
  font-size: 0.85rem;
  color: #6c757d;
  display: -webkit-box;
  -webkit-line-clamp: 2;         /* 限制2行 */
  -webkit-box-orient: vertical;
  line-height: 1.3em;
}
.creator-name {
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: middle;
}
.sort-btn-sm {
  font-size: 12px;
  padding: 2px 6px;
  line-height: 1.2;
  min-width: 80px;
  white-space: nowrap;
  text-align: center;
}
.sort-btn-sm.active {
  font-weight: bold;
}
.btn-sort {
  font-size: 12px;
  padding: 4px 8px;
  min-width: 68px;
  line-height: 1.2;
  flex: 1 1 23%; /* 每个占据大约 1/4 宽度 */
  text-align: center;
  white-space: nowrap;
}
.small-sort-group .btn {
  font-size: 12px;
  padding: 4px 6px;
  min-width: 64px;
  white-space: nowrap;
  text-align: center;
}


