 /* 白色背景 */
 .white {
  background-color: #eeeeee;
}

/* 卡片 */
.layui-card {
  /* box-shadow: 5px 5px 5px rgb(48, 47, 47, 0.1); */
  border-radius: 10px;
  cursor: pointer;
}

.layui-card-header {
  height: auto;
  aspect-ratio: 1 / 1;
  /* 设置宽高比为1:1 */
  padding: 0;
  margin: 0;
}

.layui-row {
  margin-top: 10px;
  margin-left: 5px;
  margin-right: 5px;
}

/* 列表图片 */
.list_img {
  border-radius: 10px;
  width: 100%;
  height: auto;
  object-fit: cover;
  /* 裁剪图片以填充元素，但保持其宽高比(长图片显示中间但保持1:1宽度) */
  aspect-ratio: 1 / 1;
  /* 设置宽高比为1:1 */
  margin-top: 10px;
  margin: 0;
}

/* 商品名称 */
.name {
  text-align: center;
  margin-top: 5px;
  font-weight: bold;
  /* letter-spacing: 1px; */
}

.title {
  margin-left: 12px;
  font-size: 16px;
}

.dynamic-border {
  position: relative;
  display: inline-block;
  /* 或者其他布局方式 */
  padding: 10px 0px;
  /* 或者其他背景色 */
  overflow: hidden;
  /* 确保伪元素不会溢出 */
}

.dynamic-border::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 50px;
  /* 下边框的高度 */
  background: linear-gradient(45deg, #1fa57b, #06502e);
  /* 渐变颜色 */
  /* animation: borderAnimation 3s linear infinite; */
  background-size: 200% 100%;
  /* 控制渐变背景移动的范围 */
}