/* 公共组件：板块标题 / 更多按钮 / 新闻列表组件 / 商品卡片 / 触底状态 / 滚动入场动画 */

.section-title {
  display: block;
  width: 220px;
  height: 48px;
  margin: 0 auto 32px;
  font-size: 28px;
  font-weight: 600;
  line-height: 48px;
  text-align: center;
  color: #333;
  position: relative;
  z-index: 1;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: 244px;
  height: 52px;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  background: url("../images/title_bg2x.png") no-repeat center;
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 176px 26px;
  pointer-events: none;
}

.section-more {
  text-align: center;
  margin-top: 8px;
}

.more-btn {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 4px 12px 6px;
  color: #333;
  font-size: 15px;
  line-height: 1.4;
}

.more-btn::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: -1;
  width: 163px;
  height: 19px;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  background: url("../images/more.png") no-repeat left bottom;
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 163px 19px;
  pointer-events: none;
}

.more-btn:hover {
  color: #333;
}

/* 豚豚动态 */
.section-news {
  padding: 56px 0;
  background-color: #F3F4F5;
}

.news-board {
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
}

.news-board .row {
  position: relative;
  margin-left: 0;
  margin-right: 0;
}

.news-board [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
  float: none;
}

.news-feature {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.news-feature-media {
  display: block;
  overflow: hidden;
}

.news-feature-media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  -webkit-transition: -webkit-transform 0.35s ease;
  transition: transform 0.35s ease;
}

.news-feature:hover .news-feature-media img {
  -webkit-transform: scale(1.06);
  -ms-transform: scale(1.06);
  transform: scale(1.06);
}

.news-feature-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  color: #fff;
}

.news-feature-title {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.news-date {
  display: inline-block;
  height: 24px;
  line-height: 24px;
  padding: 0 12px;
  font-size: 12px;
  color: #000;
  background: #D8D8D8;
  border-radius: 12px;
  opacity: 0.3;
}

.news-date--onimg {
  color: #fff;
  background: #555555;
  background: rgba(0, 0, 0, 0.4);
}

.news-list {
  height: 100%;
  padding: 20px 28px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.news-item {
  display: block;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 32px 0;
  border-bottom: 1px solid #eee;
}

.news-item:last-child {
  border-bottom: 0;
}

.news-item-title {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #333;
  max-height: 41px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-item:hover .news-item-title {
  color: #333;
}

@media screen and (min-width: 992px) {
  .news-board .row > :first-child {
    width: 50%;
  }
  .news-board .row > :last-child {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
  }
  .news-feature {
    border-radius: 10px 0 0 10px;
  }
}

/* 长江礼物 */
.section-mall {
  padding: 56px 0;
  background-color: #fff;
}

.mall-item {
  display: block;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 10px;
  border: 0;
  text-align: center;
}

.mall-item-media {
  display: block;
}

.mall-item-media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.mall-item-name {
  display: block;
  padding: 10px 12px 4px;
  font-size: 15px;
  color: #333;
}

.mall-item-price {
  display: block;
  padding: 0 12px 12px;
  font-size: 15px;
  color: #E2574C;
  font-weight: 700;
}

.mall-item-price del {
  margin-left: 8px;
  color: #999;
  font-size: 13px;
  font-weight: 400;
  text-decoration: line-through;
}

@media screen and (max-width: 991px) {
  .section-mall {
    padding: 32px 0 40px;
  }
  .section-title {
    width: 180px;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    margin-bottom: 20px;
  }
  .news-board .row > :last-child {
    position: static;
    width: 100%;
  }
  .news-list {
    height: auto;
    padding: 16px 20px 20px;
  }
  .news-item {
    padding: 20px 0;
  }
}

.mall-waterfall {
  position: relative;
}

.mall-waterfall.is-packed > [class*="col-"] {
  position: absolute;
  float: none;
}

.mall-waterfall.is-packed .mall-item,
.mall-waterfall.is-packed .mall-swiper {
  margin-bottom: 0;
}

/* 首页滚动入场动画 */
html.reveal-enabled .reveal {
  opacity: 0;
  -webkit-transform: translateY(28px);
  -ms-transform: translateY(28px);
  transform: translateY(28px);
  -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html.reveal-enabled .reveal.is-visible {
  opacity: 1;
  -webkit-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  html.reveal-enabled .reveal {
    opacity: 1;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    -webkit-transition: none;
    transition: none;
  }
}

/* 首页「长江礼物」触底加载状态 */
.mall-status {
  padding: 12px 0 4px;
  color: #999;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.mall-status.is-error {
  color: #d9534f;
}
