
/*背景
  .bac2{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%; 
	height: 62.5rem; 
	background-image: url("../../img/官网-关于延天龄-二级&三级页面/动图-关于延天龄.gif");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: -1;
}  
@media (max-width: 768px) {
    .bac2 {
		width: 100%;
        height: 25rem; 
    }
}

@media (min-width: 1024px) {
    .bac2 {
		width: 100%;
        height: 33.375rem; 
    }
}*/


/*地图*/
.map h3{
	margin-top: 40%;
	text-align: center;
	color: #666666  ;
	font-size: 20pt; /* 根据需要调整字体大小 */
	padding-top: 2.5%;
	margin-bottom: 2.5%;
}
.where {
    width: 100%;
    height: 37.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 1;
    position: relative; /* 设置相对定位，子元素可以使用绝对定位 */
}



/*横向图片切换列表*/
.pic-list {
    position: absolute; /* 使 `.pic-list` 相对于视口固定定位 */
    top: 50%; /* 垂直方向居中 */
    left: 50%; /* 水平方向居中 */
    transform: translate(-50%, -50%); /* 使用 transform 将其中心对齐于视口的中心 */
    z-index: 1000; /* 确保 `.pic-list` 在最高层级 */
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s; /* 添加渐变效果 */
	
}

.pic-list.hidden {
    opacity: 0; /* 隐藏时设置透明度为 0 */
    pointer-events: none; /* 防止点击穿透 */
    display: none; /* 隐藏元素 */
}

.pic-list.show {
    opacity: 1; /* 显示时设置透明度为 1 */
    pointer-events: auto; /* 允许点击事件 */
    display: flex; /* 显示元素 */
}

.slider1 {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-container1 {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-wrapper1 {
	display: flex;
	transition: transform 0.5s ease;
	align-items: flex-end; /* 确保所有 slide2 底部对齐 */
	margin-left: 0; /* 使第一张图片靠左 */
}

.slider-wrapper1 .slide2 {
    position: relative;
    margin: 0 25px;
}

.slider-wrapper1 img {
    width: 580px;
    height: auto;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.slider-wrapper1 .mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: opacity 0.5s ease;
    z-index: 3; /* 确保遮罩在图片上层 */
}

.slider-wrapper1 img.selected {
    width: 600px;
    height: auto;
}

.slider-wrapper1 img.inactive + .mask {
    opacity: 1;
}

.slider-wrapper1 img.selected + .mask {
    opacity: 0;
}

.sld-word {
    display: flex; /* 使用 flexbox 布局 */
    justify-content: center; /* 水平居中 */
    color: white; /* 文字颜色为白色 */
    text-align: center; /* 文本水平对齐方式 */
	justify-content: center;
    position: absolute;
    bottom: 0.7%; /* 置于底部 */
    left: 0;
    width: 100%; /* 背景宽度占满图片 */
    height: 25%; /* 高度为图片的 25% */
    background: rgba(0, 0, 0, 0.7); /* 黑色半透明背景 */
    box-sizing: border-box; /* 包含边框和内边距 */
    font-size: 14pt;
    z-index: 4; /* 确保文字在遮罩上层 */
}

.sld-word p {
    margin-top: 3%;
}

.selected .sld-word {
    display: block; /* 被选中时显示 */
}

button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	z-index: 10;
}

.prev4 {
	left: 20%;
}

.next4 {
	right: 20%;
}

.prev4 img, .next4 img {
	width: 30px; /* 根据需要调整图片宽度 */
	height: auto;
}

.close-btn1 {
    position: absolute; /* 确保按钮位于绝对定位的右上角 */
    top: 10px; /* 距离顶部的距离 */
    right: 20px; /* 距离右边的距离 */
    font-size: 30px; /* 按钮字号 */
    cursor: pointer; /* 光标指针效果 */
    color: #fff; /* 按钮文字颜色 */
    border: none; /* 无边框 */
    background-color: transparent; /* 透明背景 */
    opacity: 0.8; /* 透明度 */
}
.close-btn1:hover{
	transform: scale(1.1 );
}
@media (max-width: 784px) {
	
	
	.where{
		
		width: 100%;
		height: 400px;
	}
	.where-icon1 img{
		transform: scale(0.8);
	}
	.slider1{
		transform: scale(0.8);
	}
}

/*地址文字*/
.map-word {
    position: relative;
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    background-color: #eee; /* 背景色 */
	width: 100%;
	
}

.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px; /* 可选的间隔 */
    width: 85%;
	margin-left: 8%;
    background-color: #eee; /* 容器背景色 */
	padding-top: 3.125rem;
	padding-bottom: 3.125rem;
}

.item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* 内容水平居中 */
    padding: 10px;
    box-sizing: border-box;
}

.item p {
	font-size: 11pt;
    margin: 0;
	margin-top: 0.2rem;
    text-align: center;
	color: #838383;
}
.item p:first-of-type{
	font-size: 16pt;
} 
@media (max-width: 784px){
	.map-word {
	    
		
		
	}
	.map h3{
		font-size: 15pt;
	}
	.item {
		padding: 0.5;
	}
	.item p:first-of-type{
		font-size: 10pt;
	} 
	.item p {
		font-size: 7pt;
	    margin: 0;
		
	    text-align: left;
		color: #838383;
	}
	.container {
	    display: grid;
	    grid-template-columns: repeat(3, 1fr);
	    grid-template-rows: repeat(3, 1fr);
	    gap: 0px; /* 可选的间隔 */
	    width: 100%;
		margin-left: 5%;
		margin-right: 5%;
	    background-color: #eee; /* 容器背景色 */
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
		
	}

}



/*延天龄·中医馆*/
.first{
	background-color: #fff;

}
.first-content {
    display: flex;
    justify-content: center; /* 水平居中对齐 */
    align-items: center; /* 垂直居中对齐 */
    gap: 1rem; /* 设置横向间距 */
}

/*图片轮播*/
 .pic-lunbo {
	position: relative;
	width: 600px; /* 轮播图宽度 */
	height: 400px; /* 轮播图高度 */
	overflow: hidden;
	margin-top: 6.25rem;
	margin-bottom: 6.25rem;
}

.pic-lunbo img {
	width: 100%;
	height: auto;
	display: block;
	position: absolute;
	transition: opacity 1s ease;
}

.pic-lunbo .prev, .pic-lunbo .next {
	position: absolute;
	top: 50%;
	width: 40px;
	height: 40px;
	background-color: rgba(0, 0, 0, 0);
	border: none;
	cursor: pointer;
	transform: translateY(-50%);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	z-index: 2;
}

.pic-lunbo .prev {
	left: 10px;
	background-image: url("../../img/home_left.png"); /* 替换为你的图片路径 */
}

.pic-lunbo .next {
	right: 10px;
	background-image: url("../../img/home_right.png"); /* 替换为你的图片路径 */
}
/*文字部分*/
.first-word{
	width: 28.125rem;
	margin-left: 5.375rem;
	margin-top: 60px;
}
.first-word h2{
	color: #686868;
}
.first-word p:first-of-type{
	margin-top: 3.125rem;
	}
.first-word p{
	color: #838383;
	line-height: 2;
	font-size: 11pt;
}
.konwmore{
	margin-top: 2.5rem;
		
}
.konwmore a{
	text-decoration: none;
}
.konwmore span{
	font-size: 16pt;
	color: #b52b21;
	border:0.125rem #b52b21 solid;
	padding: 0.5rem 3.125rem;
	cursor: pointer;
}
.konwmore span:hover{
	color: #fff;
	background-color: #b52b21;
}
/* 媒体查询：小于 784px 屏幕 */
@media (max-width: 784px) {
	.first{
		
		
	}
	.first-word p:first-of-type{
		margin-top:0;
		}
    .first-content {
        flex-direction: column; /* 竖向排列 */
        align-items: stretch; /* 让子元素占满宽度 */
        gap: 0; /* 不需要间距 */
    }

    .first-word {
        width: 100%; /* 文字部分占满宽度 */
        margin-left: 0; /* 去掉左边距 */
        margin-top: 0; /* 去掉顶部边距 */
		transform: scale(0.9);
    }

    .first-word h2 {
        margin: 1rem 0; /* 上下间距 */
        text-align: center; /* 居中对齐 */
    }

    .pic-lunbo {
        width: 100%; /* 占满宽度 */
        height: 50vw; /* 高度为宽度的50% */
        margin-top: 0; /* 去掉顶部边距 */
        margin-bottom: 0; /* 去掉底部边距 */
    }

    .pic-lunbo img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* 保持图片的覆盖效果 */
    }

    .konwmore {
        margin-top: 1rem; /* 调整按钮的顶部边距 */
        text-align: center; /* 居中对齐 */
    }

    .konwmore span {
        font-size: 14pt; /* 调整字体大小 */
        padding: 0.5rem 2rem; /* 调整内边距 */
    }

    .konwmore span:hover {
        background-color: #b52b21; /* 悬停效果 */
    }
	.konwmore1 {
	    margin-top: 1rem; /* 调整按钮的顶部边距 */
	    text-align: center; /* 居中对齐 */
	}
	
	.konwmore1 span {
	    font-size: 14pt; /* 调整字体大小 */
	    padding: 0.5rem 2rem; /* 调整内边距 */
	}
	
	.konwmore1 span:hover {
	    background-color: #b52b21; /* 悬停效果 */
	}
}


/*延天龄·健康管理中心*/

.second-content {
    display: flex;
	width: 100%;
	background-color: #eee;
    justify-content: center; /* 水平居中对齐 */
    align-items: center; /* 垂直居中对齐 */
    gap: 1rem; /* 设置横向间距 */
}
/*图片轮播*/
 .pic-lunbo2 {
	position: relative;
	width: 600px; /* 轮播图宽度 */
	height: 400px; /* 轮播图高度 */
	overflow: hidden;
	margin-top: 6.25rem;
	margin-bottom: 6.25rem;
	margin-left: 8rem;
}

.pic-lunbo2 img {
	width: 100%;
	height: auto;
	display: block;
	position: absolute;
	transition: opacity 1s ease;
}

.pic-lunbo2 .prev2, .pic-lunbo2 .next2 {
	position: absolute;
	top: 50%;
	width: 40px;
	height: 40px;
	background-color: rgba(0, 0, 0, 0);
	border: none;
	cursor: pointer;
	transform: translateY(-50%);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	z-index: 2;
}

.pic-lunbo2 .prev2 {
	left: 10px;
	background-image: url("../../img/home_left.png"); /* 替换为你的图片路径 */
}

.pic-lunbo2 .next2 {
	right: 10px;
	background-image: url("../../img/home_right.png"); /* 替换为你的图片路径 */
}
/*文字部分*/
.second-word{
	width: 400px;
	margin-top: -60px;
}
.second-word h2{
	color: #686868;
}
.second-word p:first-of-type{
	margin-top: 3.125rem;
}

.second-word p{
	color: #838383;
	line-height: 2;
	font-size: 11pt;
}
/* 媒体查询：小于 784px 屏幕 */
@media (max-width: 784px) {
	.second{
		
	}
	.second-word p:first-of-type{
		margin-top: 0;
	}
    .second-content {
        flex-direction: column; /* 竖向排列 */
        align-items: stretch; /* 让子元素占满宽度 */
        gap: 0; /* 不需要间距 */
    }

    .second-word {
        width: 100%; /* 文字部分占满宽度 */
        margin-left: 0; /* 去掉左边距 */
        margin-top: 0; /* 去掉顶部边距 */
		transform: scale(0.9);
    }

    .second-word h2 {
        margin: 1rem 0; /* 上下间距 */
        text-align: center; /* 居中对齐 */
    }

    .pic-lunbo2 {
        width: 100%; /* 占满宽度 */
        height: 50vw; /* 高度为宽度的50% */
        margin-top: 0; /* 去掉顶部边距 */
		margin-left: 0;
        margin-bottom: 0; /* 去掉底部边距 */
    }

    .pic-lunbo2 img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* 保持图片的覆盖效果 */
    }

    .konwmore {
        margin-top: 1rem; /* 调整按钮的顶部边距 */
        text-align: center; /* 居中对齐 */
		margin-bottom: 1rem;
    }

    .konwmore span {
        font-size: 14pt; /* 调整字体大小 */
        padding: 0.5rem 2rem; /* 调整内边距 */
    }

    .konwmore span:hover {
        background-color: #b52b21; /* 悬停效果 */
    }
	.konwmore1 {
	    margin-top: 1rem; /* 调整按钮的顶部边距 */
	    text-align: center; /* 居中对齐 */
	}
	
	.konwmore1 span {
	    font-size: 14pt; /* 调整字体大小 */
	    padding: 0.5rem 2rem; /* 调整内边距 */
	}
	
	.konwmore1 span:hover {
	    background-color: #b52b21; /* 悬停效果 */
	}
	.horner-word{
		transform: scale(1);
	}
}




/*延天龄·批发*/
.horner{
	width: 100%;
	background-image: url("../../img/industry/industry/industry-pifaditu.jpg"); /* 替换为动图的实际路径 */
	background-size: cover; /* 根据需要调整背景图像的尺寸 */
	background-position: center; /* 确保背景图像居中显示 */
	background-repeat: no-repeat; /* 防止背景图像重复 */
	height: 37.5rem; /* 根据需要调整背景的高度 */
	z-index: -2; /* 确保背景图片在内容下方 */
} 

/*文字部分*/
.horner-word{
	width: 100%;
	z-index: 2;
	height: 37.5rem;
	background: rgba(0, 0, 0, 0.5); /* 黑色背景，80%透明度 */
}
.horner-word {
    text-align: center; /* 文本居中对齐 */
    margin: 0 auto; /* 可选：水平居中对齐，前提是设置了固定宽度 */
    padding: 100px; /* 可选：内边距 */
}
.horner-word h2{
	color: #fff;
	margin-top: 50px;
}
.horner-word p:first-of-type{
	margin-top: 1.875rem;
}

.horner-word p{
	color: #fff;
	line-height: 2;
	font-size: 11pt;
}
.konwmore1{
	margin-top: 2.5rem;
		
}
.konwmore1 a{
	text-decoration: none;
}
.konwmore1 span{
	font-size: 16pt;
	color: #fff;
	background-color:#b52b21;
	padding: 0.5rem 3.125rem;
	cursor: pointer;
}
.konwmore1 span:hover{
	color: #b52b21;
	background-color: #fff;
	
}
/*煎药中心*/
.jianyao-title{
	text-align: center;
	padding: 6.25rem;
	font-size: 20pt;
	color: #666666  ;
}
@media (max-width: 784px) {
	.jianyao-title{
		
		font-size: 15pt;
		
	}
}
/*图片列表切换*/
 .slider4 {
	position: relative;
	width: 97.5%;
	overflow: hidden;
	margin-left: 2.5%;
}

.slider-container4 {
	position: relative;
	width: 97.5%;
	overflow: hidden;
}

.slider-wrapper4 {
	display: flex;
	transition: transform 0.5s ease;
	align-items: flex-end; /* 确保所有 slide2 底部对齐 */
	margin-left: 0; /* 使第一张图片靠左 */
}

.slider-wrapper4 .slide5 {
	display: flex; /* 添加 flex 布局 */
	align-items: flex-end; /* 确保内容底部对齐 */
	position: relative;
	margin: 0 15px; /* 每张图片左右间隔为15px */
}

.slider-wrapper4 .slide5:first-child {
	margin-left: 0; /* 第一张图片左边距为0 */
}

.slider-wrapper4 img {
	width: 580px;
	height: auto;
	transition: transform 0.5s ease;
	cursor: pointer;
	display: block; /* 确保图片没有额外的底部间隙 */
}

.slider-wrapper4 .mask4 {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	transition: opacity 0.5s ease;
	z-index: 1; /* 确保遮罩在图片上层 */
}

.slider-wrapper4 img {
  transition: transform 0.3s ease; /* 过渡效果 */
}

.slider-wrapper4 img.selected {
	width: 580px;
	animation-name: scaleDraw1; /* 关键帧名称 */
	animation-timing-function: linear; /* 动画的速度曲线 */
	animation-iteration-count: 1; /* 动画播放的次数 */
	animation-duration: 1s; /* 动画所花费的时间 */
}

@keyframes scaleDraw1 {
  0% {
    transform: scale(0.98); /* 开始为原始大小 */
  }
  100% {
    transform: scale(1); /* 结束为放大后的大小 */
  }
}

.slider-wrapper4 img.inactive + .mask4 {
	opacity: 1;
}

.slider-wrapper4 img.selected + .mask4 {
	opacity: 0;
}
.sld-word4 {
    display: flex; /* 使用 flexbox 布局 */
    flex-direction: column; /* 垂直方向排列子元素 */
    justify-content: center; /* 垂直居中对齐 */
    align-items: center; /* 水平居中对齐 */
    color: white; /* 文字颜色为白色 */
    text-align: center; /* 文本水平对齐方式 */
    position: absolute;
    bottom: 0%; /* 置于底部 */
    left: 0;
    width: 100%; /* 背景宽度占满图片 */
    height: 15%; /* 高度为图片的 15% */
    background: rgba(0, 0, 0, 0); /* 黑色半透明背景 */
    box-sizing: border-box; /* 包含边框和内边距 */
    font-size: 13pt;
    z-index: 4; /* 确保文字在遮罩上层 */
}
.sld-word4 p:first-of-type {
    font-size: 18pt; /* 或者其他较大的字体大小 */
	margin-top: 10px;
}
.sld-word4 p {
	
    padding: 0px 0; /* 添加一些内边距以分隔行 */
}

.selected .sld-word4 {
    display: block; /* 被选中时显示 */
}


.prev-4 {
	left: 20%;
	z-index: 1;
}

.next-4 {
	right: 20%;
	z-index: 1;
}

.prev-4 img, .next-4 img {
	width: 30px; /* 根据需要调整图片宽度 */
	height: auto;
	
}

button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	z-index: 10;
}

/*二维码放置处*/
.QRcode {
    margin-top: 6.25rem;
    padding-bottom: 6.25rem;
    display: flex;
    justify-content: center; /* 整体居中 */
	/*background: linear-gradient(to bottom, transparent 12.5%, #eef3fa 12.5%);*/
}
.QRcode a{
	text-decoration: none;
	color: #666666;
}
.QR-whole {
    display: flex;
    flex-direction: row; /* 横向布局 */
    align-items: center; /* 子元素在纵向上居中对齐 */
}

.QR-whole a {
    display: flex;
    flex-direction: column; /* 竖向布局 */
    align-items: center; /* 子元素在横向上居中对齐 */
    text-align: center; /* 文字居中对齐 */
    margin: 0 70px; /* 左右间距为 70px，每对相邻的子元素间距为 140px */
	
}

.QR-whole img {
    width: 60px;
    height: 62px;
    display: block;
    margin-bottom: 12px; /* 图片和文字之间的间距 */
}

/* 鼠标移入时文字颜色变为红色 */
.QR-whole > div:hover p {
    color: #b51b21 ;
}

.QR-whole a img:hover {
    transform: scale(2.5); /* 放大 10% */
    transition: transform 0.3s ease; /* 添加平滑过渡效果 */
}
@media (max-width: 1050px) {
	
    .QR-whole {
        flex-direction: row; /* 横向布局 */
        justify-content: space-between; /* 元素之间的间距均匀分布 */
		margin-left: 10%;
    }

    .QR-whole a {
        flex: 1 1 calc(50% - 20px); 
        margin: 10px; 
    }

    .QR-whole img {
        width: 60px; /* 根据需求调整缩放后的宽度 */
        height: auto; /* 保持图片的纵横比 */
    }
}
@media (max-width: 784px) {
    .QR-whole {
        flex-direction: row; /* 横向布局 */
        justify-content: space-between; /* 元素之间的间距均匀分布 */
		margin-left: 5%;
    }

    .QR-whole a {
        flex: 1 1 calc(50% - 20px); 
        margin: 10px; 
    }

    .QR-whole img {
        width: 50px; /* 根据需求调整缩放后的宽度 */
        height: auto; /* 保持图片的纵横比 */
    }
	.jianyao-title{
		
		padding: 3.125rem;
		
	}
	
}