@charset "utf-8";
/* CSS Document */

.toshow {display: inline-block!important;}
.tohide {display: none!important;}
#carte {
    height: 100%;
    width: 100%;
    position: fixed;
    padding-bottom: 50px;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}
#totop {
    text-align: center;
    margin-top: 1.5em;
}
#totop a {
    padding: .5em;
    cursor: pointer;
}
#totop a:hover {
    color: black;
    text-decoration: underline;
}

/*---------------------------------------------页面上半部分*/
#market-head {
    position: relative;
    width: 100%;
    height: 460px;
    background-color: #525252;
    background-size: cover;
    background-position: center;
}
#relation {
    position: absolute;
    bottom: 70px;
    left: 4em;
    padding: .2em 1em;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    background: rgba(0, 0, 0, .6);
    border-radius: .2em;
}
#title-cap {
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 50px;
    background-color: whitesmoke;
}
#title {
    width: 50%;
    background-color: whitesmoke;
    text-align: center;
    margin: 0 auto 20px auto;
    padding: 0 2% 50px 2%;
    -webkit-box-shadow: 0 0 30px #e5e5e5;
	box-shadow: 0 0 30px #e5e5e5;
}
#title h1 {
    font-size: 2em;
    padding-bottom: .8em;
}
#title p {font-size: .9em;}

/*---------------------------------------------翻页按钮*/
.flashLeft, .flashRight {
    position: absolute;
    top: 160px;
    padding: 0 .1em;
	text-align: center;
	font-size: 2.7em;
    color: rgba(245, 245, 245, 0.8);
	background: rgba(0, 0, 0, 0.4);
    transition: .2s;
}
.flashLeft {left: 5%;}
.flashRight {right: 5%;}
.flashLeft:hover, .flashRight:hover {
	color: rgba(0, 0, 0, 0.4);
	background: rgba(255, 255, 255, 0.6);
	transition: .2s;
}

/*---------------------------------------------工具栏*/
#switch-box {
    width: 100%;
    -webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
#filter-switch, #trier-switch {
    position: absolute;
    top: 520px;
    padding: .5em;
    border: 1px solid #1a1a1a;
    border-radius: .3em;
    cursor: pointer;
    transition: .1s;
}
#trier-switch {left: 10%;}
#filter-switch {right: 10%;}
#filter-switch:hover, .trierbox:hover, #trier-switch:hover {
    color: white;
    background: #1a1a1a;
}
#trier-list {
    padding: 0 10% 1.6em 10%;
    display: none;
}
.trierbox {
    display: inline-block;
    padding: .5em;
    border: 1px solid #1a1a1a;
    border-radius: .3em;
    margin: .3em;
    cursor: pointer;
    transition: .1s;
    -webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.trierbox img, .trierbox p {float: left;}
.trierbox img {
    width: 1.1em;
    height: auto;
}
.trierbox p {
    font-size: .9em;
    padding: 0 .5em;
}
#first-filter-box {
    position: fixed;
    height: 100%;
    width: 325px;
    top: 0;
    left: 100%;
    z-index: +90;
}
#first-filter-tags {
    position: absolute;
    display: flex;
    flex-flow: column;
    top: 0;
    right: 0;
    padding: 60px 0;
    width: 325px;
    height: 100%;
    background: #e2e2e2;
    /*z-index: +90;*/
    transition: .5s;
    -webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	overflow-y: auto;
}
#filterbox-top {
    position: relative;
    padding: 0 10px;
}
#filterbox-top h1 {
    padding: 1.2em 0 .8em 0;
    font-family: "Helvetica", serif;
    font-size: .9em;
    border-bottom: 1px solid black;
}
#close-filter {
    position: absolute;
    top: .8em;
    right: 13px;
    font-size: 1.2em;
    cursor: pointer;
}
.first-tag {
    font-family: "Roboto", serif;
    font-size: .9em;
    padding: .5em 10px;
    cursor: pointer;
}
.click-ft {
    display: flex;
    flex-flow: row;
    width: 100%;
}
.ft-title-left {
    float: left;
    flex: 1;
}
.ft-title-right {
    float: right;
    width: 50px;
}
.num-sft {
    display: inline-block;
    margin: 0;
    padding: .1em 0;
    width: 25px;
    color: white;
    font-family: "Helvetica", serif;
    font-size: .8em;
    font-weight: bolder;
    text-align: center;
    border-radius: .2em;
    background: black;
    opacity: 0;
}
.second-filter-tags {
    background: #f3f3f3;
    margin-top: .5em;
    display: none;
}
.click-sft {transition: .1s;}
.click-sft:hover {background: #c9c9c9;}
.click-sft p {
    width: 100% !important;
    padding: .5em 1em;
    transition: .1s;
}
.click-sft span {
    display: inline-block;
    float: left;
}
#filterbox-mid {
    flex: 1;
    overflow-y: auto;
}
#filterbox-bas {padding: .5em 10px .8em 10px;}
#filterbox-bas button {
    padding: .3em .5em;
    width: 100%;
    font-weight: bold;
    border: 1px solid #6c6c6c;
    border-radius: .1em;
    transition: .2s;
}
#filterbox-bas button:hover {
    border: 1px solid #1a1a1a;
    box-shadow: inset 0 0 0 1px #1a1a1a;
}

/*---------------------------------------------商品列表*/
#prod-list {
    width: 85%;
    height: auto;
    margin: auto;
}
.prod-box {
    float: left;
    width: 20%;
}
.prod-scale, .img-scale {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    height: 0;
}
.prod {
    position: absolute;
    width: 96%;
    height: 96%;
    left: 2%;
    top: 2%;
    cursor: pointer;
    transition: .2s;
}
.img-box {
    width: 100%;
    background: whitesmoke;
}
.prod-img {
    position: absolute;
    width: 96%;
    height: 96%;
    left: 2%;
    top: 2%;
    background-color: #c6c6c6;
    background-size: 100% auto;
    background-position: center;
}
.intro {
    position: absolute;
    top: 0;
    margin: .2em 2em .2em .2em;
    padding: 0 .5em;
    color: white;
    font-size: .8em;
    background: rgba(0, 0, 0, .35);
    transition: .1s;
}
.collect {
    position: absolute;
    top: 0;
    right: 0;
    margin: .2em;
    width: 1.2em;
    height: 1.2em;
    transition: .2s;
}
.collect img {
    display: block;
    width: 100%;
}
.collect:hover {
    top: -.15em;
    right: -.15em;
    width: 1.5em;
    height: 1.5em;
}
.spec-intro {
    position: absolute;
    bottom: 0;
    right: 0;
    margin: .2em;
    padding: 0 .5em;
    color: white;
    font-size: .8em;
    background: rgba(0, 0, 0, .35);
}
.addinfo {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, .35);
}
.addinfo p {
    font-family: "Helvetica", serif;
    text-align: center;
    font-size: .8em;
    padding: 1em;
}
.prod-info-box {
    position: absolute;
    display: none;
    width: 100%;
    border-left: 1px solid black;
    border-right: 1px solid black;
    border-bottom: 1px solid black;
    background: whitesmoke;
    -webkit-box-shadow: 0 .3em .3em rgba(0, 0, 0, 0.4);
	box-shadow: 0 .3em .3em rgba(0, 0, 0, 0.4);
    z-index: +1;
}
.prod-info-scale {
    position: relative;
    width: 100%;
    padding-bottom: 40%;
    height: 0;
}
.prod-info {
    text-align: center;
    position: absolute;
    width: 96%;
    height: 96%;
    top: 0;
    left: 2%;
}
.prod-info h2 {
    font-family: "Helvetica", serif;
    font-size: .7em;
    padding-bottom: .5em;
}
.prodname {font-size: .8em;}

/*购买按钮*/
.buy {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 1.9em;
    background: whitesmoke;
}
.prodprice {
    font-family: "Roboto", serif;
    font-size: .8em;
    padding-top: .2em;
    display: inline-block;
    float: left;
    margin-left: 1em;
}
.euro {font-size: .8em;}
.compose {
    color: whitesmoke;
    font-family: "Helvetica", serif;
    font-size: .8em;
    float: right;
    padding: .3em .6em;
    margin-right: 1em;
    border: 1px solid #1a1a1a;
    background: #1a1a1a;
    transition: .1s;
}
.addsub {
    float: right;
    height: 2em;
    margin-right: .8em;
}
.addsub button, .prodnum {
    display: block;
    float: left;
}
.addsub button {
    color: whitesmoke;
    font-size: .8em;
    padding: .3em .5em;
    border: 1px solid #1a1a1a;
    background: #1a1a1a;
    transition: .1s;
}
.prodnum {
    font-family: "Helvetica", serif;
    padding: .1em .8em 0 .8em;
}
.buy button:hover {
    color: black;
    background: transparent;
}

/*---------------------------------------------页内购物车*/
#panieropen {
    position: fixed;
    top: 12em;
    right: 8%;
    width: 3em;
    height: 3em;
    line-height: 3em;
    text-align: center;
    background: #d2d2d2;
    box-shadow: .2em .2em .3em rgba(0, 0, 0, .4);
    border-radius: 50%;
    z-index: +80;
    cursor: pointer;
    transition: .2s;
    -webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
#panieropen:hover {
    background: #fff;
    box-shadow: 0 0 1em rgba(255, 255, 255, .6);
}
#panieropen img {
    max-width: 70%;
    max-height: 70%;
    vertical-align: middle;
    margin: 0 auto;
}
#cartepanier {
    display: block;
    float: right;
    width: 0;
    transition: .8s;
}
#cpbox {
    position: fixed;
    display: flex;
    flex-flow: column;
    top: 10%;
    width: 400px;
    height: 80%;
    font-size: .8em;
    border: none;
    background: whitesmoke;
    z-index: +100;
    transition: .5s;
}
#maininfo {
    width: 94%;
    height: 100px;
    margin: auto;
    padding: 12px 0;
    border-bottom: 1px solid black;
    position: relative;
}
.infobox {padding: 3px 0;}
.lefttext {
    font-weight: bolder;
    text-transform: uppercase;
}
.righttext{
    font-family: "Roboto", serif;
    font-style: italic;
    float: right;
}
#panierclose {
    /*display: none; js动态设定*/
    color: whitesmoke;
    position: absolute;
    top: 0;
    left: -65px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    cursor: pointer;
}
#panierclose:hover {
    background: rgba(156, 156, 156, 0.35);
}
#panierclose span {
    width: 100%;
    font-size: 2em;
    text-align: center;
    padding-top: 9px;
}
#panierwindow {
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
}
#gotocart {
    display: block;
    width: 100%;
    height: 50px;
    background: #1a1a1a;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    color: whitesmoke;
    padding-top: 14px;
    transition: .1s;
}
#gotocart:hover {
    color: white;
    background: #525252;
}

/*---------------------------------------------详情页*/
#detailbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 300;
}
#detailwindow {
    position: absolute;
    left: 5%;
    top: 7%;
    width: 90%;
    height: 87%;
    border: none;
}
.closebox {
    position: absolute;
    right: 8%;
    top: 10%;
    background: transparent;
    border: none;
    z-index: +1;
}
.closebox:hover {color: #878787;}


/*---------------------------------------------窗体自适应性布局*/
@media (min-width: 2000px) {
    .prod-box {width: calc(100% / 6);}
}

@media (max-width: 1680px) {
    .prodprice {font-size: .7em;}
    .prodname {font-size: .7em;}
    .prod-info-scale {padding-bottom: 50%;}
}

@media (max-width: 1280px) {
    #carte {padding-bottom: 35px;}
    #market-head {height: 322px;}
    #title-cap {height: 35px;}
    #relation {bottom: 50px;}
    #title {
        padding-bottom: 35px;
        margin-bottom: 14px;
        -webkit-box-shadow: 0 0 21px #e5e5e5;
        box-shadow: 0 0 21px #e5e5e5;
    }
    .flashLeft, .flashRight {top: 112px;}
    #filter-switch, #trier-switch {top: 364px;}
    #first-filter-tags {
        padding: 42px 0 35px 0;
        width: 230px;
    }
    .ft-title-right {width: 40px;}
    .num-sft {width: 20px;}
    #cpbox {width: 280px;}
    #maininfo {
        height: 70px;
        padding: 8px 0;
    }
    .infobox {padding: 2px 0;}
    #panierclose {
        left: -45px;
        width: 35px;
        height: 35px;
    }
    #panierclose span {padding-top: 6px;}
    #gotocart {
        height: 35px;
        padding-top: 10px;
    }
}

@media (max-width: 1024px) {
    #prod-list {width: 90%;}
    .prod-box {width: 25%;}
}

@media (max-width: 860px) {
    #market-head {height: 310px;}
    #relation {left: 2em;}
    #title-cap {
        left: 15%;
        width: 70%;
    }
    #title {width: 70%;}
    .flashLeft, .flashRight {top: 122px;}
    .flashLeft {left: 3%;}
    .flashRight {right: 3%;}
    #filter-switch, #trier-switch {
        position: static;
        float: left;
        padding: 0 0 1em 0;
        width: 50%;
        border: none;
        border-radius: 0;
        text-align: center;
    }
    #filter-switch:hover, #trier-switch:hover {
        color: black;
        background: transparent;
    }
    .prod-box {width: calc(100% / 3);}
}

@media (max-width: 768px) {
    #market-head {height: 328px;}
    #relation {
        left: 50%;
        transform: translate(-50%, 0);
    }
    #first-filter-tags {padding-top: 60px;}
    #first-filter-box {width: 100%;}
    #first-filter-tags {
        width: 100%;
    }
    #detailwindow {
        top: 8%;
        left: 2%;
        width: 96%;
    }
    #panieropen {display: none;}
    #cartepanier {display: none;}
}

@media (max-width: 660px) {
    #title-cap {
        left: 10%;
        width: 80%;
    }
    #title {width: 80%;}
    #prod-list {width: 98%;}
    .prod-box {width: 50%;}
    .prodprice {font-size: .8em;}
    .prodname {font-size: .8em;}
}

@media (max-width: 580px) {
    #relation {
        left: 5%;
        width: 90%;
        text-align: center;
        transform: translate(0, 0);
    }
    .prod-info-scale {padding-bottom: 55%;}
    .prod-info-box {display: none !important;}
    .prodname span {font-size: .8em;}
}
