/* flex list */

.flex-list {
  --gap: 12px;
  --item-margin-bottom: 20px;
}

@media only screen and (min-width: 768px) {
  .flex-list {
    --gap: 0.2rem;
    --item-margin-bottom: 0.4rem;
  }
}

.flex-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--gap) * -1);
}

.flex-list > li {
  display: block;
  box-sizing: border-box;
  padding: 0 var(--gap);
  margin-bottom: var(--item-margin-bottom);
}

.flex-list.col-3 > li {
  flex: 0 0 12.5%;
  max-width: 12.5%;
}

.flex-list.col-4 > li {
  flex: 0 0 16.666666666666664%;
  max-width: 16.666666666666664%;
}

.flex-list.col-6 > li {
  flex: 0 0 25%;
  max-width: 25%;
}

.flex-list.col-8 > li {
  flex: 0 0 33.33333333333333%;
  max-width: 33.33333333333333%;
}

.flex-list.col-12 > li {
  flex: 0 0 50%;
  max-width: 50%;
}

@media only screen and (max-width: 767px) {
  .flex-list {
  }

  .flex-list > li {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .flex-list > li:last-child {
    margin-bottom: 0;
  }
}

.layui-col-space24 {
  margin: 0 -12px !important;
}

.layui-col-space24 > * {
  padding: 0 12px !important;
}

.layui-col-space32 {
  margin: 0 -16px !important;
}

.layui-col-space32 > * {
  padding: 0 16px !important;
}

.layui-col-space90 {
  margin: 0 -0.45rem !important;
}

.layui-col-space90 > * {
  padding: 0 0.45rem !important;
}

.flex {
  display: flex;
  margin: 0;
  padding: 0;
}

.flex-vertical {
  flex-direction: column;
}

.flex-rtl {
  direction: rtl;
}

.flex:empty {
  display: none;
}

.flex-gap {
  gap: 0.16rem;
}

.flex-wrap-wrap {
  flex-wrap: wrap;
}

.flex-wrap-nowrap {
  flex-wrap: nowrap;
}

.flex-wrap-wrap-reverse {
  flex-wrap: wrap-reverse;
}

.flex-align-center {
  align-items: center;
}

.flex-align-start {
  align-items: start;
}

.flex-align-end {
  align-items: end;
}

.flex-align-flex-start {
  align-items: flex-start;
}

.flex-align-flex-end {
  align-items: flex-end;
}

.flex-align-self-start {
  align-items: self-start;
}

.flex-align-self-end {
  align-items: self-end;
}

.flex-align-baseline {
  align-items: baseline;
}

.flex-align-normal {
  align-items: normal;
}

.flex-align-stretch {
  align-items: stretch;
}

.flex-justify-flex-start {
  justify-content: flex-start;
}

.flex-justify-flex-end {
  justify-content: flex-end;
}

.flex-justify-start {
  justify-content: start;
}

.flex-justify-end {
  justify-content: end;
}

.flex-justify-center {
  justify-content: center;
}

.flex-justify-space-between {
  justify-content: space-between;
}

.flex-justify-space-around {
  justify-content: space-around;
}

.flex-justify-space-evenly {
  justify-content: space-evenly;
}

.flex-justify-stretch {
  justify-content: stretch;
}

.flex-justify-normal {
  justify-content: normal;
}

.flex-justify-left {
  justify-content: left;
}

.flex-justify-right {
  justify-content: right;
}

.gradient-text {
  background-image: linear-gradient(
    90deg,
    var(--gradient-from) 0,
    var(--gradient-to) 100%
  ) !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  display: inline-block !important;
}

.lr {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
}

.lrw {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -ms-flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}

.lrc {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.pic {
  overflow: hidden;
  position: relative;
  height: auto;
}

.bgimg {
  width: 100%;
}

.upimg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transition: all 0.5s;
}

.pic:hover .upimg {
  transform: scale(1.05);
}

/* 居中对齐 */
.upimg3 {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: 100%;
  max-height: 100%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transition: all 0.5s;
}

.pic:hover .upimg3 {
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}
.upimg4 {
  position: absolute;
  left: 0;
  top: 0;
width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  transition: all 0.5s;
}
