/* body {
	padding: 10px;
} */
#list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    padding: 20px;
    justify-items: center;
}
#list-container:empty::after {
	content: "出错了！";
}

.list-item {
	cursor: pointer;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #eaeaea;
  transition: all 0.3s ease;
  max-width: 400px;
}

.list-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.list-item img {
  width: 100%;
  cursor: pointer;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* 图片数量指示器 */
.image-count-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 2px;
  font-size: 0.8em;
  font-weight: 600;
}

.list-item-description {
  padding: 16px;
  background: #fff;
}

.list-item-description h1 {
  margin: 0 0 8px 0;
  font-size: 1.1em;
  color: #333;
  font-weight: 600;
}

.list-item-description p {
  margin: 0 0 12px 0;
  color: #666;
  font-size: 0.9em;
  line-height: 1.4;
}

/* 折扣提示 */
.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff4444;
  color: white;
  padding: 4px 8px;
  border-radius: 2px;
  font-size: 0.8em;
  font-weight: 600;
  /* opacity: 0; */
  /* transform: translateY(-10px); */
  transition: all 0.3s ease;
}

/* .list-item:hover .discount-badge {
  opacity: 1;
  transform: translateY(0);
} */

/* 隐藏折扣的类 */
.hidden {
  display: none;
}
@media screen and (max-width: 514px) {
	#list-container .list-item {
	    display: flex;
	    border: 1px solid #000;
	    padding: 10px;
	    flex-direction: column;
	    align-items: center;
	}
}