.happy-online-card {
  overflow: hidden;
  margin-bottom: 16px;
  border: 0 !important;
  border-radius: 8px !important;
  background: #fff;
  box-shadow: 0 10px 28px rgba(36, 38, 49, .055);
}

.happy-online-head {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid #f0f1f4;
}

.happy-online-title,
.happy-online-count {
  display: inline-flex;
  align-items: center;
}

.happy-online-title {
  gap: 8px;
  color: #242631;
  font-size: 14px;
}

.happy-online-title > i {
  color: #e94f87;
  font-size: 18px;
}

.happy-online-title b {
  font-weight: 700;
}

.happy-online-count {
  gap: 6px;
  color: #666b78;
  font-size: 12px;
  font-weight: 600;
}

.happy-online-count > i,
.happy-online-avatar > i {
  display: block;
  border-radius: 50%;
  background: #22a06b;
  box-shadow: 0 0 0 2px #fff;
}

.happy-online-count > i {
  width: 7px;
  height: 7px;
}

.happy-online-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 8px;
  padding: 16px;
}

.happy-online-member {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  color: #242631;
  text-align: center;
  text-decoration: none !important;
}

.happy-online-avatar {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
}

.happy-online-avatar img {
  display: block;
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px #e8eaf0, 0 6px 14px rgba(36, 38, 49, .11);
  transition: transform .18s ease, box-shadow .18s ease;
}

.happy-online-avatar > i {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 10px;
  height: 10px;
}

.happy-online-member:hover {
  color: #d93d75;
}

.happy-online-member:hover img {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px #e6b5c7, 0 8px 17px rgba(36, 38, 49, .14);
}

.happy-online-member > b {
  width: 100%;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.happy-online-card footer {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid #f4f5f8;
  color: #9399a6;
  font-size: 10px;
}

.happy-online-card footer > i {
  color: #d9dce4;
  font-size: 4px;
}

.happy-online-empty {
  padding: 24px 16px;
  color: #9399a6;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 1199.98px) {
  .happy-online-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .happy-online-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
