.banner-next{
	width: 50px !important;
	height:50px !important;
	line-height: 50px!important;
	text-align: center!important;
	border: 2px solid #fff!important;
	border-radius:50px!important;
}
.banner-next:after{
	color: #fff !important;
	font-size:16px;
}
.banner-next:hover{
	background: #3f8458;
}
.banner-prev{
	width: 50px !important;
	height:50px !important;
	line-height: 50px!important;
	text-align: center!important;
	border: 2px solid #fff!important;
	border-radius:50px!important;
}
.banner-prev:after{
	color: #fff !important;
	font-size:16px;
}
.banner-prev:hover{
	background: #3f8458;
}
.banner img{
	width:100%;
	display: block;
	height:auto!important;
}
@media(max-width:999px){
	.banner img{
		width:100%;
		height:auto!important;
	}
}
.index-title{
	text-align: center;
	font-size:48px;
	line-height: 1;
	color:#414141;
	font-weight:400;
}
.index-con{
	margin-top:60px;
}
.s2{
	padding-top:100px;
}
.s2-tab{
	width:calc((100% - 90px) / 4);
}
.s2-p1{
	position: relative;
	width:100%;
	box-shadow: 0px 1px 5px 1px rgba(6, 6, 6, 0.09);
	padding:10px 0;
	text-align: center;
	font-size:18px;
	font-weight:400;
	color:#414141;
	background: #fff;
	transition: 0.3s;
	border-radius:15px;
	cursor: pointer;
	margin-bottom:25px;
	min-height:80px;
	padding-left: 10px;
	padding-right: 10px;
}
.s2-tab:hover .s2-p1{
	color:#fff;
	background: #3e8358;
}
.s2-p1::after {
    content: '';
    position: absolute;
    bottom: -10px; /* 调整箭头位置 */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #3e8358; /* 箭头颜色 */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* 鼠标经过时显示箭头 */
.s2-tab:hover .s2-p1::after {
    opacity: 1;
}
	
.s2-d{
	position: relative;
	width:100%;
	box-shadow: 0px 1px 5px 1px rgba(6, 6, 6, 0.09);
	background: #fff;
	transition: 0.3s;
	border-radius:25px;
	cursor: pointer;
	overflow: hidden;
}
.s2-img-box{
	overflow: hidden;
}
.s2-img-box img{
	width:100%;
	display: block;
	transition: 0.3s;
}
.s2-tab:hover img{
	transform: scale(1.1);
}
.s2-d{
	padding-bottom: 30px;
	text-align: center;
	transition: 1s;
}
.s2-p2{
	padding:0 30px 30px;
	font-size:16px;
	color:#302b2c;
	line-height: 1.6;
	font-weight:400;
	box-sizing: border-box;
	min-height: 133px;
}
.s2-d a{
	display: inline-block;
	text-align: center;
	margin:0 auto;
	font-size:20px;
	color:#3e8358;
	line-height: 1;
}
.s2-tab:hover .s2-d{
	transform: translate(0px,-5px);
}
@media(max-width:1500px){
	.s2-p1{
		font-size:18px;
	}
	.index-title{
		font-size:36px;
	}
}
@media(max-width:999px){
	.s2{
		padding-top:30px;
	}
	.index-title{
		font-size:26px;
	}
	.index-con{
		margin-top:20px;
	}
	.s2-tab{
		width:100%;
		margin-bottom:20px;
	}
}
.s3{
	padding-top:100px;
}
.s3-left{
	width: calc(60% - 20px);
}
.s3-tab{
	width:100%;
	box-shadow: 0px 1px 5px 1px rgba(6, 6, 6, 0.09);
	transition: 0.3s;
	background: #fff;
	border-radius: 25px;
	overflow: hidden;
}
.s3-tab:hover{
	transform: translate(0px,-5px);
}

.s3-z{
	width:50%;
	padding:40px;
	box-sizing: border-box;
}
.s3-y{
	width:50%;
	position: relative;
}
.s3-y img{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	left: 0;
	top: 0;
	transition: 0.5s;
}
.s3-y:hover img{
	transform: scale(1.1);
}
.s3-right{
	width: calc(40% - 20px);
}
.s3-p1{
	font-size:20px;
	color:#000000;
	font-weight:400;
	line-height: 1.6;
	margin-top:0;
}
.s3-p2{
	font-size:18px;
	color:#6c6c6c;
	font-weight:400;
	line-height: 1.6;
	margin-top:20px;
}
.s3-a{
	display: inline-block;
	padding:15px 20px;
	background: #3e8358;
	color:#fff;
	font-size:16px;
	font-weight:400;
	line-height: 1;
	border-radius: 10px;
}
.s3-a:hover{
	background: #1f7963;
	color:#fff;
}
.s3-a1{
	margin-top: 120px;
}
.s3-right .s3-tab .s3-z{
	padding:20px;
	width: calc(70% - 10px);
	align-items: flex-start;
}
.s3-right .s3-tab .s3-y{
	padding:20px;
	width: calc(30% - 10px);
}
.s3-right .s3-tab{
	/* height:240px; */
	min-height:240px;
	margin-bottom:20px;
}
.s3-right .s3-tab:last-child{
	margin-bottom:0;
}
.s3-right .s3-tab .s3-p2{
	margin-top:10px;
}
.s3-a2{
	margin-top:30px;
}
@media(max-width:1500px){
	.s3-right .s3-tab{
		height:auto;
	}
}
@media(max-width:999px){
	.s3{
		padding-top:30px;
	}
	.s3-left{
		width:100%;
	}
	.s3-right{
		width:100%;
		margin-top:20px;
	}
	.s3-z{
		width:100%;
	}
	.s3-y{
		width:100%;
		min-height: 300px;
	}
	.s3-right .s3-tab{
		height: auto;
	}
	.s3-right .s3-tab .s3-z{
		width:100%;
	}
	.s3-right .s3-y{
		display: none;
	}
}
.s4 {
    padding-top: 100px;
    width: 100%;
    overflow: hidden;
}

.s4 > .flex {
    display: flex;
    width: 100%;
    height: 550px;
}

.s4-tab {
    position: relative;
    height: 100%;
    flex-shrink: 0;
    transition: width 0.6s ease;
    overflow: hidden;
    border-radius: 15px;
    overflow: hidden;
    /* 默认宽度由JS控制，但CSS保留默认值作为后备 */
    width: 16%; /* 默认值 */
}

/* ===== 默认状态下，第三个卡片激活 ===== */
.s4-tab:nth-child(3) {
    width: 36%;
}

.s4-tab:nth-child(3) .s4-text {
    opacity: 1;
    pointer-events: auto;
}

.s4-tab:not(:nth-child(3)) .s4-text {
    opacity: 0;
    pointer-events: none;
}

/* ===== 由JS控制的激活状态 ===== */
/* 当前激活的卡片（包括hover和点击） */
.s4-tab.active-tab {
    width: 36% !important;
}

.s4-tab.active-tab .s4-text {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ===== hover交互 ===== */
.s4-tab:hover {
    width: 36% !important;
}

.s4-tab:hover .s4-text {
    opacity: 1 !important;
    pointer-events: auto !important;
}
@media(min-width:1000px){
	/* 父容器hover时，非悬停且非激活的卡片缩窄 */
	.s4 > .flex:hover .s4-tab:not(:hover):not(.active-tab) {
	    width: 16% !important;
	}
	
	.s4 > .flex:hover .s4-tab:not(:hover):not(.active-tab) .s4-text {
	    opacity: 0 !important;
	    pointer-events: none !important;
	}
	
	/* 但要注意：激活的卡片在父容器hover时仍保持展开 */
	.s4 > .flex:hover .s4-tab.active-tab {
	    width: 36% !important;
	}
	
	.s4 > .flex:hover .s4-tab.active-tab .s4-text {
	    opacity: 1 !important;
	    pointer-events: auto !important;
	}
}


/* ===== 移动端布局 ===== */
.s4 > .flex.mobile-layout {
    flex-direction: column;
    height: auto;
}

.s4 > .flex.mobile-layout .s4-tab {
    width: 100% !important;
    height: 320px;
    transition: none !important;
    margin-bottom: 20px;
}

.s4 > .flex.mobile-layout .s4-tab .s4-text {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.s4 > .flex.mobile-layout .s4-tab:hover {
    width: 100% !important;
}

.s4 > .flex.mobile-layout:hover .s4-tab:not(:hover) {
    width: 100% !important;
}

.s4 > .flex.mobile-layout .s4-des p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.s4 > .flex.mobile-layout .s4-title {
    font-size: 36px;
}

/* 其他样式保持不变 */
.s4-img-box {
    width: 100%;
    height: 100%;
}

.s4-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.s4-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    padding: 40px 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.5s ease;
    text-align: center;
}

.s4-title {
    font-size: 50px;
    margin: 0 0 20px;
    font-weight: bold;
    color: #fff;
}

.s4-des {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #fff;
}

.s4-des p {
    margin: 0;
    color: #fff;
    text-align: center;
}

.s4-text a {
    color: #fff;
    text-decoration: underline;
    font-size: 16px;
    width: fit-content;
    text-align: center;
    margin: 0 auto;
}

.s4-text a:hover {
    color: #1f7963;
}

/* 移动端响应式 */
@media (max-width: 999px) {
    .s4 {
        padding: 20px;
    }
    
    .s4 > .flex {
        flex-direction: column;
        height: auto;
    }
    
    .s4-tab {
        width: 100% !important;
        height: 320px;
        transition: none !important;
        margin-bottom: 20px;
    }
    
    .s4-tab .s4-text {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .s4-tab:hover {
        width: 100% !important;
    }
    
    .s4 > .flex:hover .s4-tab:not(:hover) {
        width: 100% !important;
    }
    
    .s4-des p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .s4-title {
        font-size: 36px;
    }
}
.s5 {
    padding-top: 100px;
	padding-bottom: 50px;
	background:#fbfdfb;
	
}

/* 外层容器 */
.s5 .index-con {
    display: flex;
    gap: 24px;
    padding:0;
    margin: 0 auto;
	margin-top:50px;
    flex-wrap: wrap;
}

/* 单张新闻卡片 */
.s5 .index-con .s5-tab {
    flex: 1;
    min-width: 300px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    padding: 30px 24px 24px;
    position: relative;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

/* 日期圆形标签 */
.s5 .index-con .s5-time {
    width: 64px;
    height: 64px;
    background-color: #f2f7f2;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.s5 .index-con .s5-time1 {
    font-size: 22px;
    font-weight: 600;
    color: #3b7c48;
    line-height: 1;
}

.s5 .index-con .s5-time2 {
    font-size: 12px;
    color: #3b7c48;
    margin-top: 4px;
}

/* 标题文本 */
.s5 .index-con .s5-title {
    font-size: 16px;
    line-height: 1.6;
    color: #444444;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
	min-height:78px;
}

/* 卡片内ReadMore绿色按钮 */
.s5 .index-con .s5-text>a {
    display: inline-block;
    background-color: #408c4e;
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 24px;
}

.s5 .index-con .s5-text>a:hover {
    background-color: #34723f;
}

/* 图片容器 */
.s5 .index-con .s5-img-box {
    width: 100%;
}

.s5 .index-con .s5-img-box img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* 卡片外面多余的ReadMore链接，隐藏 */
.s5 .index-con>a {
    display: none;
}

/* 页面底部全局 Read More */
.s5 .index-con+a {
    display: block;
    text-align: center;
    color: #408c4e;
    font-size: 16px;
    text-decoration: underline;
    margin-top: 10px;
}
.s5-ca-box{
	width:100%;
	text-align: center;
}
.s5-ca{
	margin-top:50px;
	display: inline-block;
	margin-left: auto;
	margin-right: auto;
	color:#3e8358;
	font-size: 20px;
	width:auto;
}
@media(max-width:999px) {
    .s5 {
        padding-top: 30px;
    }

    .s5 .index-con {
        flex-direction: column;
        gap: 20px;
    }

    .s5 .index-con .s5-tab {
        width: 100%;
        flex: none;
    }
}
