@charset "utf-8";
/* CSS Document */
body{
	/* min-width:1290px; */
	margin:0 auto;}
body.custom-font-enabled {
font-family: '微軟正黑體', Arial, Sans Serif;
}
div.itemelse ul li.spotlist img {/**Ruby**/
    display: none;
}

div.height{
	height: 110px;
	overflow: hidden;
	
	background-color: #FFFFFF;
	width: 100%;
	text-align:center;
}
div.height img{
	vertical-align:middle;
	width:450px;
	height:auto;
	max-width: 100%; /*20220711-Ruby-讓[後台]首篇文章縮圖可以等比縮小(因為[後台]沒讀取到style.css所以會跟[前台]的結果不一樣，於是需要新增此設定)*/
}
div.topblack ul.screen li div.img {
height: auto;
overflow: hidden;

}
div.topblack ul.screen li div.img div.sum_title {
	border-bottom: 1px solid #B4B4B4;
	padding: 10px 0 5px 0;
	color: rgb(7, 120, 209);

}
div.topblack ul.screen li div.img div.sum_title h3{
	font-size:15px;
	margin: 0; /*20220711-Ruby-讓[後台]首篇文章標題的間距不會過大而導致破版看不到其他3篇子文章標題(因為[後台]沒讀取到flexslider.css所以會跟[前台]的結果不一樣，於是需要新增此設定)*/
}
div.topblack ul.screen li div.img:hover div.sum_title{
	color:#636363;
	text-decoration:underline;
}
div.itemelse {

line-height: 20px;
font-size: 13px;
height: 150px;
overflow: hidden;
}
div.itemelse ul {
	margin:0;
	padding:0;
	list-style-type:disc;
	
}
div.itemelse ul li{
	font-size:13px;
	
	overflow:hidden;
	list-style-type:disc;
	margin-bottom:2px;
}

div.topblack {
width:934px;
padding-bottom: 25px;
padding-top: 12px;
}

div.topblack ul.screen {
overflow: visible;
list-style-type: none;
margin: 0 auto;
/*padding-left: 35px;*/
}

div.topblack ul.screen li {
float: left;
display: block;
margin-right: 5px;
position: relative;
margin-bottom: 6px;
max-width:220px;
font-size:15px;
line-height :1.3em;
}
div.topblack ul.screen li.block2014 {
	border-top:4px solid rgba(111, 2, 2, 0.9);
	height:340px;

}
div.topblack ul.screen li.spotlist {
	border-bottom: 1px solid #B4B4B4;
	display: block;
	float: none;
	width: 100%;
	max-width:100%;
	margin: 0;
	padding: 4px 0;
	font-size:14px;
}
.topblack a {
outline: none;
color: #484849;
text-decoration: none;
}
.topblack a:hover {
	color: #FF1BA1;
}
img {
border: 0;
-ms-interpolation-mode: bicubic;
}
.cat01{
	background: rgba(111, 2, 2, 0.8) ;
	color: #FFF;
	float: left;
	padding: 0px 10px 2px;
	font-size: 16px;
	font-family: Oswald,arial,Georgia,serif;
	text-transform: uppercase;
	position: absolute;
	left: 0;F
	top: 0;
	z-index: 6;

}

/******* 後台八宮格預設功能與上面文章間隔開來 20160929 *****************/
#wpbody-content .topblack:after {
    display: block;
    content: '';
    clear: both;
}




@media screen and (max-width: 1024px){
	.site-content {
	float: left;
	width: 934px;
	margin-right: 10px;
	}
	
}


@media screen and (max-width: 1289px) {
	div.topblack ul.screen li {
		float: left;
		display: block;
		margin-right: 5px;
		position: relative;
		margin-bottom: 6px;
		min-width: 24%;
		font-size: 15px;
		line-height: 1.5em;
	}
	
}
@media screen and (max-width: 955px) {
	div.topblack ul.screen li {
		float: left;
		display: block;
		margin-right: 5px;
		position: relative;
		margin-bottom: 6px;
		min-width: 48%;
		font-size: 15px;
		line-height: 1.5em;
	}
	
}	

/*  八宮格儲存按鈕調整 20170913 Stacey */

#customLink{ float:left; margin-right:20px;}
.album_save_btn{ display:block; padding:10px 30px; margin-top:100px;}	
	


/**[TN-148](3)[後台]八宮格功能的UI優化-Yaru-20220728**/
.e-title{
	color: #A91515;
	font-size: 15px;
	position: relative;
	padding-left: 15px;
	margin-bottom: 15px;
}
.e-title::before{
	content: "";
	display: block;
	width: 5px;
	height: 100%;
	background: #A91515;
	position: absolute;
	left: 0;
	top: 0;
}

.eight-step1,
.eight-step2{
	padding-right: 15px;
	width: 100%;
	max-width: 915px;
}
.topblack.eight-step1 ul.screen{
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	float: none;
}
.topblack.eight-step1 ul.screen li.block2014{
	cursor: pointer;
	box-sizing: border-box;
	position: relative;
	height: auto;
}
.eight-step1 .block2014:hover::after,
.eight-step1 .block2014.active::after{
	content: "";
	display: block;
	border: 3px solid #A91515;
	position: absolute;
	width: 100%;
	height: calc( 100% + 4px);
	top: -4px;
	bottom: 0;
	right: 0;
	left: 0;
	pointer-events: none;
}
.eight-step1 .block2014:hover::after{
	border-color: #23282d;
}
.eight-step1 .block2014:hover::before,
.eight-step1 .block2014.active::before{
	content: "";
	display: block;
	position: absolute;
	background-color: #A91515;
	opacity: .2;
	height: calc( 100% + 4px);
	top: -2px;
	bottom: 0;
	left: 0;
	right: 0;
	pointer-events: none;
}
.eight-step1 .block2014:hover::before{
	background-color: #23282d;
}
.eight-step1 .block2014.active{
	pointer-events: none;
}

.eight-step2{
	font-size: 13px;
	margin-top:30px;
	clear:both;
}
.eight-step2 #customLink{
	float: none;
	clear: both;
	margin: 0;
}
.eight-step2 input:checked:before{
	background-color: #A91515;
}
.eight-step2 input:focus,
.eight-step2 select:focus{
	border-color: #A91515;
    -webkit-box-shadow: 0 0 2px rgb(169,21,21, 80%);
    box-shadow: 0 0 2px rgb(169,21,21, 80%);
}

.eight-form{
	display: flex;
	justify-content: stretch;
	align-items: flex-start;
	margin-bottom: 10px;
}
.eight-form label{
	position: relative;
	top: 5px;
	cursor: default;
}
.eight-step2 #defaultLink label{
	width: 95px;
}
.eight-step2 #customLink label{
	width: 125px;
}
.eight-form .eight-form-content,
.eight-form select,
.eight-form input{
	width: 100%;
}
.eight-form select{
	cursor: pointer;
}
.eight-form .note{
	font-size: 13px;
	color: #7B7B7B;
	display: block;
	margin-top: 5px;
	margin-left: 5px;
}

.eight-table{
	width: 100%;
	margin-top: 30px;
}
.eight-table tr td:first-child{
	width: 4%;
}
.eight-table tr td:nth-of-type(2){
	width: 38%;
}
.eight-table tr td:nth-of-type(3){
	width: 58%;
}
.eight-table input{
	width: 100%;
}

.eight-btn{
	text-align: center;
	margin-top: 50px;
}
.eight-btn input{
	font-size: 13px;
	font-weight: 700;
	color: #FFF;
	background-color: #A91515;
	border: none;
	border-radius: 5px;
	display: block;
	width: 100%;
	padding: 10px 15px;
	margin-bottom: 5px;
	cursor: pointer;
	opacity: 1;
	transition: all .2s;
}
.eight-btn input:hover{
	opacity: 0.8;
}
.eight-btn p{
	font-size: 13px;
	color: #000;
	margin: 0;
}
.eight-btn.eight-clear-cache{
	text-align: left;
	background-color: #CCEBCB;
	padding: 15px 25px;
	display: flex;
	align-content: flex-start;
	margin-bottom: 30px;
}
.eight-btn.eight-clear-cache input{
	background-color: #6DA543;
	width: auto;
	margin-right: 20px;
	margin-bottom: 0;
}

@media(max-width:1310px){
	.topblack.eight-step1,
	.eight-step2{
		width: 100%;
		max-width: 100%;
	}
	.topblack.eight-step1 ul.screen li.block2014{		
		min-width: 24%;
		line-height: 1.3em;
	}
}
@media(max-width:1100px){
	.topblack.eight-step1 ul.screen li.block2014{	
		max-width: 150px;
	}
}
@media(max-width:782px){
	.eight-form label{
		top: 10px;
	}
}
@media(max-width:676px){	
	.e-title{
		margin-bottom: 30px;
	}
	.topblack.eight-step1 ul.screen li.block2014{		
		min-width: 48%;		
	}	
	.eight-step2 #defaultLink,
	.eight-step2 #customLink{
		margin-top: 20px;
	}
	.eight-btn.eight-clear-cache{
		text-align: center;
		flex-wrap: wrap;		
	}
	.eight-btn.eight-clear-cache input{
		width: 100%;
		margin: 0;
		margin-bottom: 10px;
	}
}
@media(max-width:550px){
	.eight-form{
		flex-wrap: wrap;
	}
	.eight-form label{
		width: 100% !important;
		top: 0;
		left: 5px;
		margin-bottom: 5px;
	}
}


/* [TN-206](3)後台-8宮格與12宮格的介面優化& 頁面間距優化-Yaru-20221206 */
/* 八宮格類別選擇設定 */
div.itemelse{
	height: auto;
}
/*後台顯示*/
div.topblack ul.screen li:nth-child(9) div.img div.sum_title,
div.topblack ul.screen li:nth-child(10) div.img div.sum_title,
div.topblack ul.screen li:nth-child(11) div.img div.sum_title,
div.topblack ul.screen li:nth-child(12) div.img div.sum_title{
	border: none;
}

/* 八宮格版面選擇 */
/* general */
#wpbody-content .topblack.eight-twelve-change {
	padding-top: 40px;
	padding-bottom: 40px;
    padding-right: 15px;
    width: 100%;
    max-width: 915px;
	border-bottom: 1px solid #444;
}
#wpbody-content .topblack.eight-twelve-change:nth-of-type(2){
	padding-top: 12px;
}
#wpbody-content .topblack.eight-twelve-change:nth-of-type(3){
	padding-bottom: 12px;
	border: none;
}
.eight-twelve-change .warning-text{
	/* background-color: #A91515; */
	color: #A91515;
	font-weight: 700;
}
.eight-twelve-change input:checked:before{
	background-color: #A91515;
}
div.topblack ul.screen li.spotlist:last-child{
	border: 0;
}
@media (max-width: 1310px){
	.eight-twelve-change {
		width: 100%;
		max-width: 100%;
	}
}

/* 模組啟動 */
form[name = form_sl_type] .form-group{
	font-weight: 700;
	display: flex;
	justify-content: flex-start;
	align-items: center;
}
form[name = form_sl_type] .form-group  .form-group-list{
	display: flex;
	flex-direction: column;
	align-content: flex-start;
    justify-content: flex-start;
	margin: 0;
	padding-right: 20px;
	position: relative;
}
form[name = form_sl_type] .form-group  .form-group-list:last-child{
	padding: 0;
}
form[name = form_sl_type] .form-group span,
form[name = form_sl_type] .form-group img{
	display: block;
	width: 100% !important;
	margin-bottom: 10px;
}
form[name = form_sl_type] .form-group img{
	padding: 10px;
	border: 3px solid #ddd;
	width: 100% !important;
	height: auto !important;
	max-width: 450px;
}
@media(max-width:676px){
	form[name = form_sl_type] .form-group{
		flex-wrap: wrap;
	}
	form[name = form_sl_type] .form-group  .form-group-list{
		width: 100%;
		margin: 0;
		margin-bottom: 15px;
	}
}

/* btn */
.eight-twelve-change .eight-btn{
	margin-top: 10px;
	margin-bottom: 15px;
	width: 100%;
}
.eight-btn.eight-check-btn input {
    background-color: #A91515;
    width: auto;
    margin-right: 20px;
    margin-bottom: 0;
}

