@charset "utf-8";
/* -------------------------------- 

Primary style

-------------------------------- */
*,
*::after,
*::before {
	box-sizing: border-box;
}
body {
	font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,PingFang SC,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
    background: #fdf123 url("../resource/background.jpg") no-repeat top center / contain;
    min-height: 100vh;
}
@media only screen and (max-width: 768px) {
}
/* -------------------------------- 

导航

-------------------------------- */
.header {
	display: flex;
	justify-content: center;
	width: 100%;
	height: 88px;
	/*-webkit-backdrop-filter:saturate(180%) blur(20px);
	backdrop-filter:saturate(180%) blur(20px);*/
	-webkit-user-select:none;
	-moz-user-select:none;
	-ms-user-select:none;
	user-select:none;
    background: url("../resource/header-background.png") no-repeat top center / contain;
    position: relative;
    top: 0px;
    z-index: 99;
    margin: 0;
}
@media only screen and (max-width: 768px) {
	.header {
	    justify-content: space-between;
		height: 50px;
		padding: 0 0 0 5%;
        top: 0;
        background: #fff;
	}
}

.logo {
	display: none;
}
.nav {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
}
.nav-trigger {
	display: none;
}
.nav-trigger ul {
    display: none;
}
@media only screen and (max-width: 768px) {
    .logo {
        left: 5%;
        display: flex;
        align-items: center;
        z-index: 3;
    }
    .logo img {
        height: 32px;
    }
	.nav-trigger {
		display: flex;
		justify-content: center;
		align-items: center;
		height: 100%;
		width: 70px;
		z-index: 3;
	}
    .nav-trigger ul {
        display: -webkit-flex;
        display: -moz-flex;
        display: -ms-flex;
        display: -o-flex;
        display: flex;
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        -ms-flex-direction: column;
        -o-flex-direction: column;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
    }
    .nav-trigger ul li {
        width: 100%;
        height: 4px;
        background-color: #257131;
    }
}

.nav > ul {
	display: flex;
	align-items: center;
	width: 100%;
	height: 0;
	background-color: #fff;
	opacity: 1;
	transform: translateY(8px);
	transition: .5s;
}
.nav > ul > li {
	text-align: center;
    cursor: pointer;
    margin: 0 1.5em;
}
.nav > ul a {
	font-size: 1em;
	height: 100%;
	padding: 0;
	border: none;
	transition: all .5s;
    color: #c3de8c;
    cursor: pointer;
}
.nav > ul a:hover,
.nav > ul a.active {
	font-weight: bold;
    color: #fdf123;
}
.nav-open .nav ul,
.nav ul:target {
	display: flex;
	flex-direction: column;
	align-items: center;
	opacity: 1;
	transform: translateY(0);
}
@media only screen and (max-width: 768px) {
	.nav > ul {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		padding-top: 50px;
		flex-direction: column;
		justify-content: flex-start;
		transform: translateY(-100%);
		opacity: 0;
		transition: .5s;
	}
	.nav > ul > li {
		width: 100%;
		text-align: center;
	}
	.nav > ul a {
		display: block;
		height: 50px;
		line-height: 50px;
		border-top: 1px solid #eee;
        color: #257131;
	}
	.nav > ul > li:last-child {
		border-bottom: 1px solid #eee;
	}
}

/* -------------------------------- 

banner

-------------------------------- */
#banner {
	width: 100%;
	height: 416px;
    position: relative;
}
#banner1 {background-image: url("../resource/youruipai-banner-shanchayou.jpg");}
#banner2 {background-image: url("../resource/youruipai-banner-pinneng.jpg");}
#banner3 {background-image: url("../resource/youruipai-banner-wugu.jpg");}
.swiper-slide {
	text-align: center;
	font-size: 18px;
	background-size: cover;
	background-position: center;
	background-repeat:no-repeat;

	/* Center slide text vertically */
	display: -webkit-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-box-align: center;
	-ms-flex-align: center;
	-webkit-align-items: center;
	align-items: center;
}
/* 分页器颜色 */
.swiper-container{
	--swiper-pagination-color: #fff;/* 两种都可以 */
}
@media only screen and (max-width: 768px) {
	#banner {
		height: 220px;
		height: 120px;
	}
}

/* -------------------------------- 

页脚

-------------------------------- */
footer {
	width: 1280px;
	height: 60px;
    margin: 0 auto 50px;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
	align-items: center;
    justify-content: space-between;
    background: linear-gradient(to right, #257131, #469c3f 50%, #257131);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border: 1px solid #257131;
    padding: 0 70px;
}
footer > p,
footer > a {
    line-height: 30px;
    font-size: 0.75em;
    color: #143d20;
}
@media only screen and (max-width: 768px) {
    footer {
        width: 100%;
        height: auto;
        padding: 0.5em 10%;
        margin: 0 auto;
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        -ms-flex-direction: column;
        -o-flex-direction: column;
        flex-direction: column;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
    }
    footer > p,
    footer > a {
        line-height: 1.5;
    }
}
/* --------------------------------

产品列表

-------------------------------- */
.product-sort {
    width: 100%;
    padding: 20px calc(50% - 600px);
    min-width: 1200px;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    flex-wrap: wrap;
    cursor: pointer;
}
.product-sort li {
    width: 20%;
    text-align: center;
    line-height: 4;
    border-radius: 8px;
}
.product-sort li:nth-child(odd) {
    background-color: #257131;
}
.product-sort li:nth-child(even) {
    background-color: #469c3f;
}
.product-sort li:hover {
    background-color: #fdf123;
}
.product-sort li:hover a {
    color: #257131;
}
.product-sort li a {
    display: block;
    width: 100%;
    height: 100%;
    color: #fdf123;
}
#product-sort-current {
    background-color: #fdf123;
}
#product-sort-current a {
    color: #257131;
}
@media only screen and (max-width: 768px) {
    .product-sort {
        width: 100%;
        padding: 20px 10% 0;
        min-width: inherit;
    }
    .product-sort li {
        width: 50%;
    }
    .product-sort li:nth-child(4n+1) {
        background-color: #257131;
    }
    .product-sort li:nth-child(4n+2) {
        background-color: #469c3f;
    }
    .product-sort li:nth-child(4n+3) {
        background-color: #469c3f;
    }
    .product-sort li:nth-child(4n) {
        background-color: #257131;
    }
}
.product-ul {
	width: 960px;
	display: flex;
	flex-wrap: wrap;
	flex-shrink: 3;
	margin: 80px auto 0;
}
.product-list {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 320px;
	margin: auto auto 120px;
}
.product-list img {
	width: 180px;
	transition: .5s;
}
.product-list:hover img {
	transform: translateY(-10px);
}
.product-list p {
	width: 184px;
	text-align: center;
	overflow: hidden;
	white-space: nowrap;
    text-overflow: ellipsis;
}
.product-list p:nth-child(2) {
	font-size: 14px;
	color: #257131;
	margin-top: 40px;
}
.product-list p:nth-child(3) {
	font-size: 12px;
    color: #469c3f;
	margin-top: 14px;
}
@media only screen and (max-width: 768px) {
	.product-ul {
		width: 80%;
		margin: 50px auto 0;
	}
	.product-list {
		width: 50%;
		margin: auto auto 50px;
	}
	.product-list img {
		width: 100px;
	}
	.product-list p {
		width: 100px;
	}
	.product-list p:nth-child(2) {
		font-size: 14px;
		margin-top: 16px;
	}
	.product-list p:nth-child(3) {
		font-size: 10px;
		margin-top: 8px;
	}
}
/* --------------------------------

产品详情页

-------------------------------- */
/* 左右箭头 */
.arrow {
	position: fixed;
	left: 50%;
	top: 50%;
	transform:translate(-50%,-50%);
	display: flex;
	justify-content: space-between;
	width: 90%;
}
.arrow i::before {
	color: #469c3f;
	transition: .5s;
}
.arrow i:hover::before{
	color: #257131;
}
.arrow a i {
	font-size: 2.5em;
}
/* 布局 */
.product-box {
	width: 760px;
    margin: 0 auto;
    padding: 100px 0;
	display: flex;
	justify-content: space-between;
}
.product {
	width: 244px;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.product p {
	font-size: 14px;
	color: #257131;
	margin: 36px auto 0;
}
.product-detail {
	width: 320px;
}
.product-detail h2 {
	margin: 20px 0 50px;
	color: #257131;
}
.product-detail p {
	font-size: 12px;
	line-height: 18px;
	text-align: justify;
	color: #469c3f;
	margin-bottom: 50px;
	letter-spacing: .5px;
}
.product-detail h3 {
	font-size: 14px;
	font-weight: bold;
	color: #257131;
}
.back {
	font-size: 18px;
	font-weight: normal;
	width: 100%;
	height: 30px;
	line-height: 30px;
	background: #469c3f;
	display: flex;
	margin: 0;
}
.feed-back {
	width: 960px;
	margin: 0 auto 100px;
}
.back a {
	display: block;
	color: #c3de8c;
	height: 100%;
	text-align: center;
	transition: .5s;
}
.back a:first-child {
	width: 50%;
	background: #257131;
}
.back a:first-child::after {
	content: "";
	display: block;
	width: 21px;
	height: 21px;
	background: #257131;
	transform: translate(-50%,-50%) rotate(45deg);
	position: relative;
	right: -100%;
	top: -50%;
	transition: .5s;
}
.back a:last-child {
	width: 50%;
}
.back a:hover {
	background: #fdf123;
}
.back a:hover {
	width: 65%;
    color: #257131;
}
.back a:hover:first-child::after {
	background: #fdf123;
}
@media only screen and (max-width: 768px) {
	/* 左右箭头 */
	.arrow a i {
		font-size: 1.5em;
	}
	/* 布局 */
	.product-box {
		width: 70%;
        padding: 80px 0 50px;
		flex-direction: column;
	}
	.product {
		width: 100%;
		margin: 0 auto 50px;
	}
	.product div {
		max-width: 60%;
		margin: 0 auto;
	}
	.product img {
		width: 100%;
	}
	.product p {
		margin: 16px auto 0;
	}
	.product-detail {
		width: 100%;
		display: flex;
		flex-direction: column;
	}
	.product-detail h2 {
		margin: 10px auto 50px;
		text-align: center;
	}
	.back {
		margin: 16px auto 48px;
	}
	.feed-back {
		width: 90%;
	}
}

/* --------------------------------

关于页面

-------------------------------- */
.about {
    width: 100%;
    min-width: 1200px;
    min-height: calc(100vh - 120px);
    padding: 0 calc(50% - 600px);
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.about img {
    display: block;
    margin: 0 auto;
}
.about div:first-of-type {
    width: 55%;
}
.about div:last-of-type {
    width: 45%;
}
.about p {
    color: #666;
    line-height: 1.5;
    margin: 1em 0;
}
@media only screen and (max-width: 768px) {
    .about {
        min-width: inherit;
        min-height: calc(100vh - 80px);
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        -ms-flex-direction: column;
        -o-flex-direction: column;
        flex-direction: column;
        justify-content: flex-start;
    }
    .about img {
        width: 80%;
        height: auto;
    }
    .about div:first-of-type {
        width: 80%;
    }
    .about div:last-of-type {
        width: 80%;
    }
    .about div {
        margin: 50px 0 0;
    }
    .about p {
        text-align: justify;
    }
}

.main-logo {
    display: block;
    width: fit-content;
    margin: 8px auto 0;
}
.index-box {
    width: 1280px;
    margin: 0 auto;
}
@media only screen and (max-width: 768px) {
    .main-logo {
        display: none;
    }
    .index-box {
        width: 100%;
    }
}

.index-bottom {
    width: 100%;
    height: 240px;
    padding: 0 70px;
    background: linear-gradient(to right, #257131, #469c3f 50%, #257131);
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.index-bottom li {
    width: 350px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
}
@media only screen and (max-width: 768px) {
    .index-bottom {
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        -ms-flex-direction: column;
        -o-flex-direction: column;
        flex-direction: column;
        height: auto;
        padding: 10px 5%;
    }
    .index-bottom > li {
        width: 100%;
        height: auto;
        display: -webkit-flex;
        display: -moz-flex;
        display: -ms-flex;
        display: -o-flex;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 10px 0;
    }
    .index-bottom > li > a {
        display: block;
        font-size: 0;
    }
    .index-bottom > li > a > img {
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
    }
}

.content {
    width: 100%;
    height: auto;
    background-color: #c3de8c;
}