body {
  background-color: #f8f9fa;
  font-size: 14px;
}

.card.community-card {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.community-header {
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: #fff;
  border-radius: 10px;
  position: relative;
  flex-direction: column;
  text-align: center;
}

.community-header img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.community-name {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.community-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  text-align: center;
  margin-bottom: 6px;
}

.community-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 6px;
}

.community-tags .badge {
  margin: 0 4px 4px 0;
}

.community-meta {
  font-size: 12px;
  color: #888;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.creator-info {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-bottom: 4px;
  color: #444;
}

.creator-info i {
  margin-right: 4px;
  color: #888;
}

.creator-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.community-actions .btn {
  flex: 1;
  min-width: 120px;
}

.post-sorting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 10px;
}

.post-sorting .btn-group {
  flex-shrink: 0;
}

#community-post-list {
  padding-bottom: 50px;
}

#community-desc {
  min-height: 2.5em;
  overflow: hidden;
}

#community-links a {
  margin: 4px 6px;
  font-size: 0.85rem;
}

#community-links a {
  margin-right: 8px;
}

#community-tags .badge {
  background-color: #e9f5f5;
  color: #007b8f;
  font-size: 0.75rem;
  margin: 2px 6px 2px 0;
}

#community-post-list .list-group-item {
  border: 1px solid #eee;
  margin-bottom: 10px;
  border-radius: 5px;
  padding: 10px;
}

/* ✅ 图片样式：等比缩小，靠左对齐 */
.post-image {
  width: auto;
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
  display: block;
  margin: 0 0 8px 0;
  border-radius: 6px;
}

/* ✅ 去除热度背景，只保留文字 + 图标 */
.post-hot,
.badge-danger {
  background: none !important;
  color: #d9534f !important;
  font-weight: bold;
  padding: 0 !important;
  border: none;
}

/* ✅ 社区Token池显示区域 */
#community-token-pool {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #28a745;
}

/* 补充默认卡片图片适配 */
.card .img-fluid {
  object-fit: contain;
  max-height: 160px;
  border-radius: 6px;
}
#community-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.load-more-wrapper {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 80px;
}

#loadMoreBtn {
  padding: 6px 20px;
  font-size: 14px;
  border-radius: 8px;
}