/* 轮播图：首屏自适应，不超出视口 */
#myCarousel {
	height: calc(100vh - 62px);
	margin-bottom: 2rem;
	overflow: hidden;
}

#myCarousel .carousel-inner {
	height: 100%;
}

#myCarousel .carousel-item {
	height: 100%;
	position: relative;
}

#myCarousel .carousel-item > img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Since positioning the image, we need to help out the caption */
.carousel-caption {
	bottom: 3rem;
	z-index: 10;
}

.carousel-control-prev,
.carousel-control-next {
	opacity: 0;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
	opacity: 1;
}

/*宽度大于768px时的样式*/
@media (min-width: 768px) {

	/*轮播图*/
	.lbt-max {
		display: block;
	}

	.lbt-min {
		display: none;
	}
}

/*宽度小于768px时的样式*/
@media (max-width: 768px) {

	/*轮播图*/
	.lbt-max {
		display: none;
	}

	.lbt-min {
		display: block;
	}
}


/*人气产品*/
.title {
	font-family: SourceHanSansSC-Medium;
	/*font-size: 54px;*/
	font-size: 34px;
	line-height: 95px;
	color: #48494b;
	text-align: center;
}

.shadow-sm {
	box-shadow: none !important;
}

.card {
	border: none;
	background-color: transparent;
}

.card:hover {
	text-decoration: none;
}

.card-text {
	text-align: center;
}

.album .container .row .card img:hover {
	width: 110%;
	height: 110%;
	margin-top: -12%;
	margin-left: -5%;
	transition-duration: 0.8s;
	-webkit-transition-duration: 0.8s;
	-moz-transition-duration: 0.8s;
	-ms-transition-duration: 0.8s;
	-o-transition-duration: 0.8s;
}

.album .container .row .card .card-body {
	padding: 0;
	margin-top: -20px;
}

.album .container .row .card .card-body p {
	/*margin: 0;*/
}

.t1 {
	font-family: SourceHanSansSC-Light;
	/*font-size: 35px;*/
	font-size: 22px;
	color: #414142;
}

.t2 {
	font-family: SourceHanSansSC-Light;
	/*font-size: 23px;*/
	font-size: 13px;
	color: #414142;
	margin-top: -10px;
}

/*产品展示*/
.productShow {
	padding: 0 8%;
}

.card-img,
.card-img-top {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.ps {
	padding-right: 9px;
	padding-left: 9px;
}

.proImg {
	position: relative;
}

.proName {
	width: calc(100% - 1.1rem);
	position: absolute;
	bottom: 0;
	font-family: SourceHanSansSC-Normal;
	font-size: 22px;
	text-align: center;
	letter-spacing: 2px;
	color: #ffffff;
	padding: 15px 0 10px;
	background-image: linear-gradient(0deg, #333, transparent);
	display: none;
}

/* .pro0,
.pro1,
.pro2,
.pro3,
.pro4,
.pro5,
.pro6,
.pro7 {
	display: none;
} */

/* 悬浮弹窗样式 */
.popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 9999;
  animation: fadeIn 0.5s;
}

.popup-content {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 660px;
  padding: 20px;
  background: #ffffff00;
  border-radius: 10px;
}

.popup-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.close-btn {
  position: absolute;
  right: 15px;
  top: -45px;
  font-size: 28px;
  cursor: pointer;
  color: #666;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@media (max-width: 768px) {
  .popup-content {
    width: 90%;
    padding: 10px;
  }
}

/* 首页轮播内的视频容器：填满首屏高度 */
#myCarousel .carousel-item .video-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#myCarousel .carousel-item .video-container.ratio {
	padding-bottom: 0 !important;
}

#myCarousel .carousel-item .video-container video {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: translate(-50%, -50%);
	display: block;
}

/* 移动端导航栏较矮，轮播高度相应增加 */
@media (max-width: 768px) {
	#myCarousel {
		height: calc(100vh - 42px);
	}
}