@charset "utf-8";
/* -------------------------------- 

Primary style

-------------------------------- */
*,
*::after,
*::before {
	box-sizing: border-box;
}
* {
	color: #333;
}
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;
}
/* -------------------------------- 

导航

-------------------------------- */
.header {
	display: flex;
	justify-content: space-between;
	position: fixed;
	z-index: 3;
	top: 0;
	width: 100%;
    min-width: 1200px;
	height: 90px;
	padding: 0 7%;
	/*-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;
	-webkit-transform: translateZ(0);
	        transform: translateZ(0);
	will-change: transform;
	-webkit-transition: -webkit-transform .5s;
	transition: -webkit-transform .5s;
	transition: transform .5s;
	transition: transform .5s, -webkit-transform .5s;
	background-color: transparent;
}
.header.is-hidden {
	-webkit-transform: translateY(-100%);
	    -ms-transform: translateY(-100%);
	        transform: translateY(-100%);
}
@media only screen and (max-width: 768px) {
	.header {
		height: 80px;
		padding: 0 5%;
        min-width: inherit;
        background-color: #fafafa;
	}
}

.logo {
	display: flex;
	align-items: center;
	font-size: 40px;
    position: relative;
    z-index: 3;
}
.nav {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
}
.nav-trigger {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 32px;
    z-index: 3;
}
.nav-trigger span {
    display: block;
    width: 8px;
    height: 8px;
    background-color: #4f3e62;
    border-radius: 50%;
    margin: 1px;
}
@media only screen and (max-width: 768px) {
	.logo {
		font-size: 24px;
	}
}

.nav > ul {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding-top: 90px;
    background-color: #fff;
    flex-direction: column;
    justify-content: flex-start;
    transform: translateY(-100%);
    opacity: 0;
    transition: .5s;
}
.nav > ul > li {
    width: 100%;
    text-align: center;
}
.nav > ul > li:last-child {
    border-bottom: 1px solid #fafafa;
}
.nav > ul a {
    display: block;
    height: 50px;
    line-height: 50px;
    color: #666;
    border-top: 1px solid #fafafa;
}
.nav > ul a:hover,
.nav > ul a.active {
	color: #4f3e62;
}
.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 {
        padding-top: 80px;
    }
    .nav > ul a {
        color: #4f3e62;
    }
}

/* -------------------------------- 

banner

-------------------------------- */
#banner {
	width: 100%;
    min-width: 1200px;
	height: 83vh;
    min-height: 637px;
	margin-left: auto;
	margin-right: auto;
    background: url("../resource/banner-back.jpg") no-repeat center center / cover;
    position: relative;
}
[id^="banner-"] {
    background-color: transparent;
}
[id^="banner-"] img {
    position: absolute;
    bottom: 0;
    height: 65vh;
}
.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颜色 */
.swiper-container{
	--swiper-pagination-color: #ffffff;/* 分页器 */
	--swiper-navigation-color: #ffffff;/* 前进后退按钮 */
}
#dots {
    position: absolute;
    top: 95%;
}
@media only screen and (max-width: 768px) {
	#banner {
        min-width: inherit;
        min-height: inherit;
        height: 125vw;
	}
    [id^="banner-"] img {
        max-width: 90vw;
        height: auto;
    }
}

/* -------------------------------- 

页脚

-------------------------------- */
footer {
	width: 100%;
    min-width: 1200px;
	height: 17vh;
    min-height: 131px;
	display: flex;
	align-items: center;
	justify-content: space-between;
    padding: 0 7%;
    background-color: #fafafa;
}
.footer-left,
.footer-right {
    width: 30%;
    line-height: 1.5;
}
.footer-left p:first-of-type {
	color: #4f3e62;
    font-weight: bold;
}
.footer-left p:last-of-type {
    color: #666;
	font-size: 0.75em;
}
.footer-right {
	display: block;
	font-size: 0.75em;
	text-align: right;
	color: #4f3e62;
}
.footer-right p,
.footer-right a {
    color: #666;
}
footer ul {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
}
footer ul li {
    padding: 0 2px;
}
@media only screen and (max-width: 768px) {
	footer {
        width: 100%;
        min-width: inherit;
		height: auto;
        padding: 0;
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        -ms-flex-direction: column;
        -o-flex-direction: column;
        flex-direction: column;
	}
    .footer-left,
    .footer-right {
        width: 100%;
        line-height: 1.5;
        text-align: center;
    }
    footer ul {
        display: -webkit-flex;
        display: -moz-flex;
        display: -ms-flex;
        display: -o-flex;
        display: flex;
        width: 90%;
    }
    footer ul li {
        width: 20%;
    }
    footer ul li img {
        width: 100%;
    }
    .footer-left {
        margin: 16px auto;
    }
    .footer-right {
        background-color: #eee;
        margin-top: 18px;
        padding: 0.5em;
    }
}
/* --------------------------------

产品列表

-------------------------------- */
.product-sort {
    width: 100%;
    padding: 0 calc(50% - 600px);
    min-width: 1200px;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    flex-wrap: wrap;
    margin: 50px 0 0;
    cursor: pointer;
}
.product-sort li {
    width: 20%;
    text-align: center;
    line-height: 4;
}
.product-sort li:nth-child(odd) {
    background-color: #eee;
}
.product-sort li:nth-child(even) {
    background-color: #ddd;
}
.product-sort li:hover {
    background-color: #da422a;
}
.product-sort li:hover a {
    color: #fff;
}
.product-sort li a {
    display: block;
    width: 100%;
    height: 100%;
}
#product-sort-current {
    background-color: #da422a;
}
#product-sort-current a {
    color: #fff;
}
@media only screen and (max-width: 768px) {
    .product-sort {
        width: 100%;
        padding: 0 10%;
        min-width: inherit;
        margin: 40px 0 0;
    }
    .product-sort li {
        width: 50%;
    }
    .product-sort li:nth-child(4n+1) {
        background-color: #eee;
    }
    .product-sort li:nth-child(4n+2) {
        background-color: #ddd;
    }
    .product-sort li:nth-child(4n+3) {
        background-color: #ccc;
    }
    .product-sort li:nth-child(4n) {
        background-color: #bbb;
    }
}
.product-ul {
	width: 960px;
	display: flex;
	flex-wrap: wrap;
	flex-shrink: 3;
	margin: 100px 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: #4f3e62;
	margin-top: 40px;
}
.product-list p:nth-child(3) {
	font-size: 12px;
    color: #666;
	margin-top: 14px;
}
@media only screen and (max-width: 768px) {
	.product-ul {
		width: 80%;
		margin: 100px auto 0;
	}
	.product-list {
		width: 50%;
		margin: auto auto 50px;
	}
	.product-list img,
	.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: #ccc;
	transition: .5s;
}
.arrow i:hover::before{
	color: #4f3e62;
}
.arrow a i {
	font-size: 2.5em;
}
/* 布局 */
.product-box {
	width: 760px;
	margin: 100px auto;
	display: flex;
	justify-content: space-between;
}
.product {
	width: 244px;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.product p {
	font-size: 14px;
	color: #666;
	margin: 36px auto 0;
}
.product-detail {
	width: 320px;
}
.product-detail h2 {
	margin: 20px 0 50px;
	color: #4f3e62;
}
.product-detail p {
	font-size: 12px;
	line-height: 18px;
	text-align: justify;
	color: #666;
	margin-bottom: 50px;
	letter-spacing: .5px;
}
.product-detail h3 {
	font-size: 14px;
	font-weight: bold;
	color: #666;
}
.back {
	font-size: 18px;
	font-weight: normal;
	width: 100%;
	height: 30px;
	line-height: 30px;
	background: #eee;
	display: flex;
	margin: 0;
}
.feed-back {
	width: 960px;
	margin: 0 auto 100px;
}
.back a {
	display: block;
	color: #fff;
	height: 100%;
	text-align: center;
	transition: .5s;
}
.back a:first-child {
	width: 50%;
    background: #4f3e62;
}
.back a:first-child::after {
	content: "";
	display: block;
	width: 21px;
	height: 21px;
    background: #4f3e62;
	transform: translate(-50%,-50%) rotate(45deg);
	position: relative;
	right: -100%;
	top: -50%;
	transition: .5s;
}
.back a:last-child {
	width: 50%;
    color: #4f3e62;
}
.back a:hover {
	width: 65%;
}
.back a:hover:first-child::after {
	background: #4f3e62;
}
@media only screen and (max-width: 768px) {
	/* 左右箭头 */
	.arrow a i {
		font-size: 1.5em;
	}
	/* 布局 */
	.product-box {
		width: 70%;
		margin: 160px auto 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 - 190px);
    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 {
    width: 400px;
    display: block;
    margin: 0 auto;
}
.about div:first-of-type {
    width: 55%;
}
.about div:last-of-type {
    width: 45%;
}
.about p {
    color: #424242;
    line-height: 1.5;
    margin: 1em 0;
}
@media only screen and (max-width: 768px) {
    .about {
        min-width: inherit;
        min-height: calc(100vh - 140px);
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        -ms-flex-direction: column;
        -o-flex-direction: column;
        flex-direction: column;
        justify-content: flex-start;
        margin: 100px 0 0;
    }
    .about img {
        width: 80%;
        height: auto;
    }
    .about div:first-of-type {
        width: 80%;
    }
    .about div:last-of-type {
        width: 80%;
    }
    .about div {
        margin: 20px 0 0;
    }
    .about p {
        text-align: justify;
    }
}