@charset "utf-8";

[v-cloak] {
    display: none;
}

/********* common ********/
html, body, ul, li {
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;  /*scroll*/
}

a { text-decoration: none;}

body {
    background-color: #fffeec;
    font-family: "微軟正黑體";
}

/* bg set */
.imgcommon {
    background-position: center;  /*center */
    background-size: cover;       /*cover*/
    background-repeat: none;
}

/**************************** ele styles ******************************/
/*--------- mobile ----------*/
/****** banner ******/
.banner { 
    height: 200px;
    margin: 0 auto;
}

/****** nav ******/
nav {
    width: 100%;
    height: 3em;
    background-color: #c7ddf3; 
    box-shadow: 1px 3px 4px rgba(0, 0, 0, .1);
}

.choose-type {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0.8em 1em 1em 1em;
    box-sizing: border-box;
}

.choose-title {
    font-weight: bold;
}

.choose-type select {
    width: 100%;
    padding: 4px;
    border-radius: 8px;
    position: relative;
    top: -2px;
    left: 0; 
}

.choose-type select:focus {
    outline: none;
}

/****** Main ******/
main {
    margin: 2em auto; 
    display: flex;
    flex-wrap: wrap;    /*auto*/
}

/* item */
.prod {
    width: 90%;
    border: 1px solid rgba(65, 64, 64, .3);
    margin: 0 auto 2em;
    border-radius: 8px;
    background-color: white;
    transition: all .3s;
    box-sizing: border-box;
    position: relative;
}

.prod-img {
    border-bottom: 1px solid rgba(65, 64, 64, .3);
    width: 100%;
    height: 200px;
}

.prod-con {
    width: 100%;
    line-height: 1.5em;
    box-sizing: border-box;
    padding: 1em;
}

.prod-title {
    font-weight: bold;
    font-size: 130%;
    color: #e4508f;
    margin-bottom: .5em;
}

.prod-des {
    font-size: 100%;
    color: #000000;
}

.prod-footer {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0 1em 1.2em;
    text-align: right;
}

.prod-footer a {
    margin-right: .1em;
    padding: .3em 1em .3em 0;
    background-color: #556fb5;
    border-radius: 8px;
    position: relative;
    transition: all .3s;
}

.prod-footer a, 
.prod-footer a:hover,
.prod-footer a:link,
.prod-footer a:active {
    color: white;
} 

.prod-footer a:before {
    content: '▶';
    padding: .3em .7em .3em .8em;
    background-color: #293966;
}

/*top*/
.gotop{
	display: none;
	position: fixed;
	bottom:1.5em;
	right: 1.2em;
	width: 3em;
	height: 3em;
	cursor: pointer;
}




/*--------- 768px ---------*/
@media screen and (min-width: 768px) {
    /****** nav ******/
    .choose-type select {
        width: 150px;
    }

    /****** main ******/
    /* item */
    .prod {
        width: 40%;
        margin-right: 0;  /* mobile auto del */
        margin-left: calc(20%/3);  /*2item  1/3 */
    }
}



/*--------- 1280px ---------*/
@media screen and (min-width: 1280px) {
    /*banner*/
    .banner { 
        width: 1280px;
        height: 256px;
    }
    
    /****** nav ******/
    .choose-type {
        width: 1280px;
    }
    
    /****** main ******/
    main {
        width: 1280px;
    }
    
    /* item */
    .prod {
        width: 290px;
        margin-left: 40px;
    }
    
    /* line first */
    .prod:nth-child(4n+1) {
        margin-left: 0;
    }
    
    .prod:hover {
        box-shadow: 2px 4px 15px rgba(0, 0, 0, .4);
    }
    
    .prod-footer a:hover {
        top: -1px;
        left: 2px;
        background-color: #3e589e;
        box-shadow: 2px 4px 6px rgba(0, 0, 0, .5);
    }
}

