Toy model for the mean-field theory of hard-sphere liquids