/* 首页：Banner / 公告条 / 水生知旅 / 豚豚动态 / 精选推荐 */

/* Banner */
.banner {
  position: relative;
  overflow: hidden;
}

.banner-swiper {
  width: 100%;
  height: 560px;
}

.banner-swiper .swiper-slide {
  position: relative;
  height: 560px;
  overflow: hidden;
}

.banner-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.banner-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: 0;
  object-fit: cover;
  object-position: center center;
}

.banner-copy {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  height: auto;
  z-index: 2;
  pointer-events: none;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-pack: start;
  justify-content: flex-start;
  padding-top: 160px;
}

.banner-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 520px;
  text-align: left;
  pointer-events: auto;
}

.banner-ui {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.banner-ui-inner {
  height: 100%;
}

.banner-ui-stage {
  position: relative;
  height: 100%;
}

.banner-pagination.swiper-pagination-bullets {
  position: absolute !important;
  top: 50% !important;
  right: 0 !important;
  bottom: auto !important;
  left: auto !important;
  width: 440px !important;
  padding: 16px 0;
  text-align: left;
  -ms-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  z-index: 3;
  border-radius: 10px;
  overflow: hidden;
  pointer-events: auto;
}

.banner-title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
}

.banner-desc {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  filter: alpha(opacity=90);
  opacity: 0.9;
}

.banner-btn {
  display: inline-block;
  height: 40px;
  line-height: 38px;
  padding: 0 22px 0 18px;
  border: 1px solid #fff;
  border-radius: 20px;
  color: #fff;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.12);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#1FFFFFFF, endColorstr=#1FFFFFFF);
}

.banner-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.banner-play {
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 8px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
  vertical-align: middle;
}

.banner-pagination::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  filter: alpha(opacity=51);
  opacity: 0.51;
  background-image: -webkit-linear-gradient(left, rgba(238, 238, 238, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
  background-image: linear-gradient(90deg, rgba(238, 238, 238, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

.banner-pagination .swiper-pagination-bullet,
.banner-menu-item {
  display: block;
  position: relative;
  width: auto;
  height: auto;
  margin: 0 !important;
  padding: 18px 28px 18px 24px;
  border-radius: 0;
  background: none;
  filter: alpha(opacity=100);
  opacity: 1;
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  outline: none;
}

.banner-menu-item::before,
.banner-menu-item::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.banner-menu-item::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: alpha(opacity=0);
  opacity: 0;
  background-image: -webkit-linear-gradient(left, rgba(238, 238, 238, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
  background-image: linear-gradient(90deg, rgba(238, 238, 238, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.banner-menu-item::after {
  top: 10px;
  right: 0;
  bottom: 10px;
  width: 3px;
  border-radius: 1.5px;
  filter: alpha(opacity=0);
  opacity: 0;
  background: var(--ui-color-primary);
  background-image: -webkit-linear-gradient(top, var(--ui-color-primary-soft) 12%, var(--ui-color-primary) 96%);
  background-image: linear-gradient(270deg, var(--ui-color-primary-soft) 12%, var(--ui-color-primary) 96%);
}

.banner-pagination .swiper-pagination-bullet:hover::before,
.banner-pagination .swiper-pagination-bullet-active::before,
.banner-menu-item:hover::before {
  filter: alpha(opacity=51);
  opacity: 0.51;
}

.banner-pagination .swiper-pagination-bullet:hover::after,
.banner-pagination .swiper-pagination-bullet-active::after,
.banner-menu-item:hover::after {
  filter: alpha(opacity=100);
  opacity: 1;
}

/* Notice bar */
.notice {
  height: 60px;
  background: #f4faf7;
}

.notice-inner {
  height: 60px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
}

.notice-icon {
  display: block;
  width: 20px;
  height: 20px;
  margin-right: 12px;
  -ms-flex: 0 0 20px;
  flex: 0 0 20px;
}

.notice-swiper {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  height: 60px;
  overflow: hidden;
  min-width: 0;
}

.notice-swiper .swiper-slide {
  height: 60px;
  line-height: 60px;
  font-size: 15px;
  color: #333;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.notice-swiper .swiper-slide a {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.notice-swiper .swiper-slide a:hover {
  color: #333;
}

.notice-close {
  -ms-flex: 0 0 36px;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin-left: 12px;
  font-size: 22px;
  line-height: 36px;
  color: #888;
  text-align: center;
      font-family: cursive;
}

.notice-close:hover {
  color: #333;
}

/* 水生知旅 */
.section-knowledge {
  padding: 48px 0 56px;
}

.knowledge-card {
  position: relative;
  display: block;
  margin-bottom: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #f5f5f5;
}

.knowledge-card-media {
  position: relative;
  display: block;
  overflow: hidden;
}

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

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

/* 标题栏：绝对定位，叠加在图片底部 */
.knowledge-card-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: block;
  padding: 12px 14px 16px;
  font-size: 15px;
  color: #fff;
}

/* 卡片遮罩：由 ::after 绘制，高度超出标题栏并向上延伸 */
.knowledge-card-name::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: calc(100% + 30px);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
  pointer-events: none;
}

.knowledge-swiper .swiper-slide:nth-child(1) .knowledge-card-name::after {
  background-image: url("../images/m1.png");
}

.knowledge-swiper .swiper-slide:nth-child(2) .knowledge-card-name::after {
  background-image: url("../images/m2.png");
}

.knowledge-swiper .swiper-slide:nth-child(3) .knowledge-card-name::after {
  background-image: url("../images/m3.png");
}

.knowledge-swiper .swiper-slide:nth-child(4) .knowledge-card-name::after {
  background-image: url("../images/m4.png");
}

.knowledge-pagination {
  position: relative !important;
  bottom: 0 !important;
  margin-top: 8px;
}

.knowledge-pagination .swiper-pagination-bullet {
  background: #ccc;
  filter: alpha(opacity=100);
  opacity: 1;
}

.knowledge-pagination .swiper-pagination-bullet-active {
  background: var(--ui-color-primary);
}

.mall-swiper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 20px;
  height: 0;
  padding-bottom: 75%;
}

.mall-banner {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.mall-swiper .swiper-wrapper {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
}

.mall-swiper .swiper-slide {
  height: 100%;
}

.mall-swiper .mall-banner img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: none;
  min-width: 100%;
  min-height: 100%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.mall-pagination {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 12px !important;
}

.mall-pagination .swiper-pagination-bullet {
  background: #fff;
  filter: alpha(opacity=50);
  opacity: 0.5;
}

.mall-pagination .swiper-pagination-bullet-active {
  background: var(--ui-color-primary);
  filter: alpha(opacity=100);
  opacity: 1;
}

.mall-head {
  position: relative;
  margin-bottom: 32px;
}

.mall-head .section-title {
  margin-bottom: 0;
}

/* 首页「长江礼物」：鼠标划入图片放大 + 悬浮阴影 */
.section-mall--home .mall-item {
  background: #fff;
  -webkit-transition: -webkit-box-shadow 0.35s ease;
  transition: box-shadow 0.35s ease;
}

.section-mall--home .mall-item:hover {
  -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.09);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.09);
}

/* 卡片高度由商品图片原始比例撑开（1:1 / 2:1 / 4:3 混排），
   配合 MallWaterfall 的最短列定位形成错落瀑布流；
   不再裁剪成统一比例的占位图，否则所有卡片等高、看不出瀑布流 */
.section-mall--home .mall-item-media {
  overflow: hidden;
}

.section-mall--home .mall-item-media img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-transition: -webkit-transform 0.35s ease;
  transition: transform 0.35s ease;
}

.section-mall--home .mall-item:hover .mall-item-media img {
  -webkit-transform: scale(1.06);
  -ms-transform: scale(1.06);
  transform: scale(1.06);
}

@media screen and (max-width: 991px) {
  .banner-swiper,
  .banner-swiper .swiper-slide {
    height: 320px;
  }
  .banner-copy {
    padding-top: 56px;
  }
  .banner-content {
    max-width: 46%;
  }
  .banner-pagination {
    display: none !important;
  }
  .banner-pagination .swiper-pagination-bullet,
  .banner-menu-item {
    padding: 8px 14px 8px 12px;
    font-size: 12px;
  }
  .banner-title {
    font-size: 22px;
  }
  .banner-desc {
    font-size: 13px;
    margin-bottom: 14px;
  }
  .banner-btn {
    height: 36px;
    line-height: 34px;
    font-size: 13px;
  }
  .notice-swiper .swiper-slide {
    font-size: 13px;
  }
  .section-knowledge {
    padding: 32px 0 40px;
  }
}
