@import 'reset.css';
@import 'fonts/font-awesome/css/font-awesome.min.css';


/*font set*/
@font-face {
  font-family: MyCustomFont;
  src: local(Heiti TC), local("微軟正黑體");
  /* no unicode-range; default to all characters */
}

/* Latin characters 專用 */
@font-face {
  font-family: MyCustomFont; /* 同樣的 font-family */
  unicode-range: U+00-024F;  /* Latin, Latin1 Sup., Ext-A, Ext-B */
  src: local(Helvetica),     /* OS X preferred */
       local(Arial);         /* Other OS */
}

/* 注音符號專用 */
@font-face {
  font-family: MyCustomFont;      /* 同樣的 font-family */
  unicode-range: U+3100-312F;     /* Bopomofo */
  src: local(LiHei Pro),          /* OS X */
       local("微軟正黑體"); /* Windows Vista+ */
}



html{
	width: 100%;
	height: 100%;
}


body {
    margin:0;
    padding:0;
    background: #b7b6b7 url(../images/bg.jpg) center center fixed no-repeat;
    -moz-background-size: cover;
    background-size: cover;
    height: 100%;
    width: 100%;
    font-family: MyCustomFont, sans-serif;
    position: relative;
    color:#565656;
    /*font-size: 1em;*/
}

*:focus {
    outline: none;
}

.bg_fabric{
	width: 100%;
	height: 50vh;
	background: url(../images/bg_fabric.jpg) center center fixed no-repeat;
	position: absolute;
	top: 20vh;
	z-index: 1;
	padding:0;
}

header{
	width: 100%;
	height: 80px;
	background: url(../images/bg_fabric.jpg) 0 0 fixed no-repeat;
	top: 0;
	left: 0;
	padding: 1em;
	box-sizing: border-box;
	position: relative;
}

header .mask{
	background-color: rgba(0,0,0,.76);
	position: absolute;
	height: 100%;
	width: 100%;
	z-index: 1;
	left: 0;
	top:0;
}


input[type=text],select{
	border-radius: 0.3rem;
	border:1px solid #efefef;
	line-height: 1.5;
	/*height:36px;*/
}

select {
        height:36px;
        line-height:36px;
} 

.btn,
.btn:hover{
	text-align: center;
	border: 0;
	border-color: none;
	color: #fff;
}


.bg-colorB{
	background-color: #085cb4;
}


.bg-colorG{
	background-color: #46bba0;
}

.colorB{
	color: #085cb4;
}

.colorG{
	color: #46bba0;
}

.bg-colorB:hover,
.bg-colorB:active,
.bg-colorB:visited{
	background-color: #085cb4;
}

.bg-colorG:hover,
.bg-colorG:active,
.bg-colorG:visited{
	background-color: #46bba0;
}

.floatL{
	float: left;
	display: inline-block;
}

.floatR{
	float: right;
	display: inline-block;
}

.login-panel{
	width: 50%;
	margin: auto;
	height: 100%;
	background-color: rgba(0,0,0,.75);
	display: block;
	z-index: 2;
	position: relative;
	padding:1em;
	box-sizing: border-box;
	line-height: 2;
}

.login-panel .logo{
	height: 15vh;
	width: 60%;
	margin:auto;
	text-align: center;
	vertical-align: middle;
	/*display: table-cell;*/
}

.login-panel form{
	width: 60%;
	margin: auto;

}

.login-panel form label{
	width: 100%;
	display: block;
	margin: 1em auto;
	
}

.login-panel input{
	border-radius: 0.3rem;
	border:0;
	height:36px;
}

.login-panel form label span{
	color:#fff;
}

.login-panel form input,
.login-panel form select,
.login-panel form button,
.login-panel form .info{
	width: 70%;
	display: inline-block;
	float: right;
}

.login-panel .funcLink{
	width: 70%;
	display: block;
	color:#fff;
	font-size: 80%;
}

.login-panel .funcLink .create{
	margin-top: 4em;
	margin-bottom: 5em;
}


.login-panel .funcLink input{
	width: auto;
	float: left;
	margin-right: 1em;
	height: auto;
}

.copyright{
	color: #666;
	font-size: 80%;
	position: absolute;
	bottom: 0.5em;
	text-align: center;;
	width: 100%;
}


main{
	width: 90%;
	min-width: 1100px;
	/*height: 80vh;*/
	margin:2% 2%;
	position: relative;
	overflow: hidden;
}

main button{
	background-color: #46bba0;
	color: #fff;
}

.content2L{
	width: 88%;
	float: left;
}

.content2R{
	width: 10%;
	float: right;
	text-align: center;
}

.search-block{
	width: 100%;
	background-color: #459ad0;
	border-top-left-radius: 0.5rem;
	border-top-right-radius: 0.5rem;
	padding: 0.5em 1em;
	box-sizing: border-box;
	float: left;
	border-bottom: 2px solid #001c58;
}

.content-title-bar{
	width: 100%;
	border-top-left-radius: 0.5rem;
	border-top-right-radius: 0.5rem;
	padding: 0.5em;
	box-sizing: border-box;
	text-align: center;
	color:#fff;
}

/*-------search block-------------*/

.search-block h1{
	font-size: 120%;
	color:#fff;
}

.search-block table{
	margin: 0.5em auto;
	width: 100%;
}

.search-block caption,
.search-block th{
	color: #fff;
	white-space: nowrap;
}

.search-block table th,
.search-block table td{
	padding:0.5em;
	color:#fff;
}

.search-block table td input,
.search-block table td select{
	width: 100%;
	color:#565656;
}

.search-block table td.rule2 input{
	width: 35%;
	margin-right: 0.2em;
}

.search-block table td.rule3 input,
.search-block table td.rule3 select{
	width: 30%;
}

.content2T .content-block,
.content-block{
	background-color: #ededed;
	border-radius: 0.5em;
	width: 100%;
	/*height: 80vh;*/
    min-height: 80vh;
	display: block;
	position: relative;
}

.content h1{
	font-size: 120%;
	color:#2385c3;
	float: left;
	width: auto;
}

/*-------content layout-------------*/
.header-block{
	z-index: 2;
	position: relative;
	width: 90%;
	margin: auto;
}

.header-block .logo{
	position: absolute;
	top:0;
	left: 0;
}

.header-block .logo2 {
    position: absolute;
    top: 0;
    /*left: 400px;*/
    left: 35%;
    margin-top: 0px;
    font-size:2em;
    font-family:DFKai-sb;
    font-weight:bold;
    text-align:center;
    text-shadow:2px 2px #888888;
    color: #1c00ad;

}

.header-block button{
	padding-left:3em;
	padding-right:3em;
}

.header-block .info{
	text-align: right;
}

.header-block .logo img{
	width: auto;
	height: 3em;
}

.header-block p.userName{
	text-align: right;
	color: #085cb4;
	margin-top: 0.5em;
	font-size: 90%;
}

.content{
	padding: 1em;
	float: left;
	width: 100%;
}

.content2T{
	background-color: #ededed;
	border-radius: 0.5em;
	width: 100%;
	height: 39vh;
	display: block;
	position: relative;
	margin-bottom: 1vh;
}

.content2T:last-child{
	margin-bottom:0;
}

.has-search{
	padding-top: 10em;
}

.result{
	float: left;
}




/*-------grid-list-------------*/

.grid_list{
	width: 100%;
	/*line-height: 1.4;*/
	margin-top: 0.5em;
	float: left;
}

.grid_list th{
	color:#21a989;
	font-weight: normal;
	border-bottom: 2px solid #9e9e9e;
	text-align: center;
	white-space: nowrap;
}

.grid_list td{
	border-bottom: 1px solid #9e9e9e;
	vertical-align: middle;
	border-right: 1px dotted #e5e5e5;
	padding-left:0.3em;
	padding-right:0.3em;
	background-color: #fff;
}

.grid_list td:last-child{
	border-right:0;
}

.grid_list span.prodImg{
	/*width: 2em;
	height: 2em;*/
    width: 2.5em;
	height: 1.8em;
	overflow: hidden;
	margin: 0.3em;
	float: left;
}

.grid_list .prodImg img{
	width: 100%;
	height: 100%;
	vertical-align: middle;;
}

.grid_list td.addCart{
	cursor: pointer;
	font-size: 130%;
}

.grid_list a:link,
.grid_list a:visited{
	color:#21a989;
	vertical-align: middle;
}

.grid_list a:hover,
.grid_list a:active{
	color:#21a989;
}

.selected{
	color:#46bba0;
}


/*------ hot & news -----------*/
.scrollImg{
	height: 13em;
	overflow: hidden;
}
.scrollImg .item{
	margin: 0.5em auto;
	cursor: pointer;
}
.scrollImg .prodImg{
	width: 80%;
	height: 4.5em;
	overflow: hidden;
	margin: 3% 10%;
	float: left;
}

.scrollImg .prodImg img{
	width: 100%;
	height: 100%;
}

.scrollImg p{
	font-size: 90%;
}


/*-------func-bar-------------*/

.func-bar td{
	padding-right: 2em;
	color:#2385c3;
}

.func-bar td:last-child{
	padding-right: 0.5em;
}

.func-bar select{
	margin-left:0.5em;
	margin-right:0.5em;
	border:1px solid #2385c3;
	height: 24px;
}

/*-------pager-------------*/
.pager{
	display: block;
	/*width: 100%;*/
	float:left;
	margin: 0.3em;
}


.pager input[type=text]{
	width: 3em;
	text-align: center;
	background-color: #46bba0;
	color: #fff;
	height: 24px;
}

.pager,
.pager i{
	color:#999;
}

.pager i:hover{
	color:#46bba0;
}

.pager button{
	background: none !important;
	border:0;
	margin-left:0.5em;
	margin-righy:0.5em;
	line-height: 1.5;
	width: 2em;
}

.pager .fa-caret-left,
.pager .fa-caret-right{
	font-size: 130%;
}


.right-content-prod{
	text-align: center;
	color:#46bba0;
	font-size: 90%;
}

.right-content-prod i{
	color:#999;
}

.right-content-prod i:hover,
.right-content-prod i:active{
	color:#21a989;
	cursor: pointer;
}



 /* pop-up dialog
---------------------------------------------------------------------*/
/*.dialog {  
    background:rgba(0,0,0,0.7);
	width:100%;
	height:100%;
	z-index:999;
	position:fixed;
	display:none;
	top:0;
	left: 0;	
}

.dialog .content{
	position: fixed;
  	top: 50%;
  	left: 50%;
  
  	transform: translate(-50%, -50%);
	width:auto;
	height:auto;
	background:#fff;
	padding:0;
	border-radius: 0.5em;
}*/

.dialog .content .detail{
	height: 100%;
}

.dialog .alert,
.dialog .warning{
	width:100%;
	position:relative;
}

.dialog header{
	height:3rem;
	color:#fff;
	padding:0.3rem 0.5rem;
	width:100%;
	position:relative;
	line-height:1;
	border-top-left-radius: 0.3em;
	border-top-right-radius: 0.3em;
	background: none;
}

.dialog .alert header{
	background-color:#CC952F;
}

.dialog .warning header{
	background-color:#50a265;
}

.dialog .error header{
	background-color:#e63e3e;
}

.dialog .detail header{
	background-color: #459ad0;
}

.dialog header i{
	font-size:200%;
	margin-right:0.5rem;
	line-height:1.5;
}

.dialog header i.icon-delete{
	float:right;
	font-size:90%;
	cursor:pointer;
	line-height:2.2;
	color:rgba(255,255,255,0.6)
}

.dialog header h1{
	line-height: 2;
	color:#fff;
}

.dialog section{
	max-width:100%;
	margin:2rem;
	height: 80%;
}

.dialog section p{
	line-height:2;
	text-align:left;
}

.dialog .btnAlignC{
	padding:1rem;
	background-color:#d2d2d2;
	margin-bottom:0;
}


.dialog button i{
	font-size: 80%;
}

.dialog .content{
	
	position: relative;
}

.dialog .col2{
	width: 49%;
	display: inline-block;
	position: relative;
	height: 100%;
}

.dialog .prodImgB{
	width: 100%;
	/*height: 16em;*/
	margin-bottom:1em;
	overflow:hidden;
}

.dialog .prodImgS span{
	width: 27%;
	/*height: 4em;*/
	overflow:hidden;
	display: inline-block;
	margin-right: 1%;
	cursor: pointer;
}

.dialog img{
	width: 100%;
	height: 100%;
}

.dialog .grid_detail{
	width: 100%;
	margin:auto;
	line-height: 1.5;
}

.grid_detail tr{
	border-bottom: 1px solid #dcdcdc;
}

.grid_detail th{
	color:#085cb4;
}

.grid_detail th:after{
	content:':';
}

.grid_detail th,
.grid_detail td{
	/*padding:0.5em;*/
}



.positionB{
	position: absolute;
	bottom:0;
}

.btn-group {
	width: 100%;
	margin-top: 1.5em;
}

.btn-group button{
	margin-right: 1%;
	width: 49%;
	background-color: #a0a0a0;
}

.btn-group button:last-child{
	margin-right: 0;
}

.btn-group button input{
	margin-right: 1em;
}

button i{
	margin-left: 0.3em;
	margin-right:0.3em;
}
   /* pop-up window end
 ---------------------------------------------------------------------*/

 /*----width------*/
 .w100{
	width: 100%;
	display: block;
}

.w80{
	width: 80%;
	display: block;
	margin:auto;
}

.w70{
	width: 70%;
	display: block;
	margin:auto;
}

.w60{
	width: 60%;
	display: block;
	margin:auto;
}


