.searchBg {
	position: fixed;
	width: 100%;
	height: calc(100% - 42px);
	top: 42px;
	left: 0;
	z-index: 1000;
	background: rgba(0, 0, 0, 0.85);
	display: none;
}

.searchMain {
	width: 100%;
	height: auto;
	overflow: hidden;
	background: #fff;
	text-align: center;
}

.searchMain > .container {
	float: none;
	left: auto;
	box-sizing: border-box;
	margin: 0 auto;
	padding: 15px;
}

.searchMain form {
	position: relative;
	display: inline-block;
	width: 50%;	
}

.searchMain input {
	width: 100%;
	padding: 15px;
	outline: 0;
	border: none;
	border-radius: 25px;
	background: #d9d9d6;
	color: #000;
	font-size: 1.2em;
	font-family: 'Roboto', '微軟正黑體', 'Microsoft JhengHei', sans-serif;
}

.searchMain input::placeholder {
    color: #75787b;
}

.searchMain input:-ms-input-placeholder {
    color: #75787b;
}

.searchMain input::-ms-input-placeholder {
    color: #75787b;
}

.searchMain .searchBtn {
	position: absolute;
	color: #75787b;
	font-size: 1.8em;
	top: 45%;
	right: 15px;
	transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	cursor: pointer;
	text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
}

.searchMain .searchBtn:hover,
.searchMain .searchBtn.active {
	color: #000;
}

.searchMain .closeSearch {
	position: absolute;
	display: block;
	padding: 5px 7px;
	color: #d9d9d6;
	font-size: 1.3em;
	border-radius: 50%;
	border: #d9d9d6 solid 1px;
	top: 50%;
	right: 15px;
	transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	cursor: pointer;
}

.searchMain .closeSearch:hover,
.searchMain .closeSearch.active {
	background: #d9d9d6;
	color: #fff;
}

.searchMain .searchBtn i,
.searchMain .closeSearch i {
	display: block;
}

.searchContent {
	display: none;
	width: 100%;
	max-height: calc(100% - 80px);
	height: auto;
	overflow: hidden;
	background: #fff;
	overflow-y: auto;
}

.searchContent > .container {
	float: none;
	left: auto;
	box-sizing: border-box;
	margin: 0 auto;
	padding: 15px 15px 30px;
}

.searchContent .searchAuto {
	display: none;
	width: 50%;
	box-sizing: border-box;
	margin: 0 auto;
	padding: 0 15px;
}

.searchContent .searchAuto h4 {
	margin: 0 0 5px;
	font-size: 1em;
	font-weight: 400;
	color: #bbbcbc;
}

.searchContent .searchAuto ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.searchContent .searchAuto li {
	padding: 10px 0;
}

.searchContent .searchAuto li a {
	color: #000;
	font-size: 1.2em;
	text-decoration: none;
	cursor: pointer;
}

.searchContent .searchAuto li a:hover {
	color: #d50032;
}

.searchResult {
	display: none;
	text-align: center;
}

.searchResult .imgWrapper {
	width: 150px;
	height: 150px;
	margin: 0 auto;
}

.searchResult img {
	max-width: 100%;
	height: auto;
	position: relative;
	top: 50%;
	transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
}

.searchResult h4 {
	margin: 5px 0 0;
	font-size: 1.5em;
}

.searchResult h5 {
	margin: 2px 0 30px;
	font-size: 1em;
	font-weight: 400;
	color: #bbbcbc;
}

.searchResult ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: block;
	width: 100%;
}

.searchResult ul li {
	display: inline-block;
	box-sizing: border-box;
	width: 12.5%;
	margin: 0 -2px 0 -1px;
	padding: 15px;
	vertical-align: top;
}

.searchResult ul li a {
	color: #000;
}

.searchResult ul li a:hover {
	color: #d50032;
}

.searchResult ul li i {
	display: block;
	font-size: 4em;
	color: #bbbcbc;
	margin: 0 0 5px;
}

.searchResult ul li a:hover i {
	color: #d50032;
}


/* ==============================
ipad portrait
==============================*/
@media screen and (max-width: 960px) {
	#small_Nav .mobileSearch {
		float: right;
		width: 40px;
		height: 40px;
		background: url(../images/nav/nav_icon_search@2x.png) no-repeat center center;
		background-size: 50% auto;
	}

	.searchBg {
		height: calc(100% - 40px);
		top: 40px;
	}

	.searchMain form {
		width: 75%;	
	}

	.searchContent .searchAuto {
		width: 75%;
	}

	.searchResult ul {
		display: block;
	}

	.searchResult ul li {
		width: 16.66%;
	}

	.searchResult ul li i {
		font-size: 3.5em;
	}
}


/* ==============================
mobile landscape
==============================*/
@media screen and (max-width: 767px) {
	.searchMain form {
		width: calc(100% - 40px);
		margin-right: 40px;	
	}

	.searchContent > .container {
		padding: 15px;
	}

	.searchContent .searchAuto {
		width: 100%;
	}
}


/* ==============================
mobile portrait
==============================*/
@media screen and (max-width: 640px) {
	.searchResult .searchModel {
		display: block;
		width: 100%;
		margin: 0;
	}

	.searchResult h4 {
		font-size: 1.5em;
	}

	.searchResult ul {
		display: block;
		width: 100%;
		margin: 0;
	}

	.searchResult ul li {
		width: 33.33%;
	}
}