/****************************
 英文版樣式
****************************/
/*** 頂部導盲磚 ***/
#sr-top-en:focus {
	top: 0;
	left: 50%;
}

/**********************
 英文版 HEADER
**********************/
.banner_wrap.en {
	position: relative;
	padding: 0;
	z-index: 1000;
    box-shadow: 1px 2px 6px rgba(0,0,0,.5);
    -webkit-box-shadow: 1px 2px 6px rgba(0,0,0,.3);
    -o-box-shadow: 1px 2px 6px rgba(0,0,0,.3);
    -moz-box-shadow: 1px 2px 6px rgba(0,0,0,.3);
    -ms-box-shadow: 1px 2px 6px rgba(0,0,0,.3);
}

.eng_menu_wrap {
	text-align: center;
	border-style: solid;
	border-width: 1px 0 0 0;
	border-color: rgba(127,127,127,.3);
}

/*** 功能表置頂時的背景色 ***/
.scrollfix-top.eng_menu_wrap {
	background: rgba(255,255,255,.9);
    box-shadow: 1px 2px 6px rgba(0,0,0,.5);
    -webkit-box-shadow: 1px 2px 6px rgba(0,0,0,.3);
    -o-box-shadow: 1px 2px 6px rgba(0,0,0,.3);
    -moz-box-shadow: 1px 2px 6px rgba(0,0,0,.3);
    -ms-box-shadow: 1px 2px 6px rgba(0,0,0,.3);

}

/*** 英文版 LOGO + TITLE (有功能表) ***/
.en .logo_box {
	width: 100%;
	padding: .5em 0;
	text-align: center;
}

/*** LOGO ***/
.en .logo_box img {
	margin-right: .3em;
	width: 2em;
}

/*** 網站英文名稱 ***/
.en .logo_box .title {}
.en .logo_box.full .title {}


.mobile_logo .title {
	font-size: 1.2rem !important;
}

/*************************
 英文版功能表
*************************/
.eng_menu_box ul {
	margin: 0;
	padding: 0;
	font-family: Arial, Helvetica, sans-serif;
}

/*** 第一層功能表 ***/
.eng_menu_box ul li {
	position: relative;
	display: inline-block;
	padding-right: .3em;
	border: 0px solid green;
/*	line-height: 3em;  */
}

.eng_menu_box ul li > a {
	display: block;
	padding: .5em .9em;
}

.eng_menu_box ul li:hover > a,
.eng_menu_box ul li a:hover {
	background: rgba(127,127,127,.1);
/*	color: #FFFF00; */
}

/*** 下方的說明 ***/
.eng_menu_box li a span {
	display: block;
	line-height: 1;
	font-size: 85%;
	opacity: .7;
}

.eng_menu_box li:hover a span {}

/*** 第二層功能表 ***/
.eng_menu_box ul ul {
    position: absolute;
	display: block;
    z-index: 1000; 
    left: -9999px;
    margin: 0;
    padding: 0;
    min-width: 14em;
	text-align: left;
	background-color: rgba(255,255,255,.9);

    box-shadow: 1px 2px 6px rgba(0,0,0,.5);
    -webkit-box-shadow: 1px 2px 6px rgba(0,0,0,.5);
    -o-box-shadow: 1px 2px 6px rgba(0,0,0,.5);
    -moz-box-shadow: 1px 2px 6px rgba(0,0,0,.5);
    -ms-box-shadow: 1px 2px 6px rgba(0,0,0,.5);
}

.eng_menu_box ul li:hover > ul {
/*	display: block; */
	left: 0;
	top: 100%;
}

.eng_menu_box ul ul li {
	position: relative;	
	display: block;
	padding: 0;
	margin: 0;
}

/*** 子功能表選項畫底線 ***/
.eng_menu_box ul ul li:not(:last-of-type) {
	border-bottom: 1px dashed rgba(0, 0, 0, .3);
}

.eng_menu_box ul ul li a {
	padding-top: .5em;
	padding-bottom: .5em;
}

.eng_menu_box ul ul li:hover {
	background: rgba(127,127,127,.1);
}

.eng_menu_box ul ul li:hover > a {
/*
	background: rgba(255, 255, 255, .05);
	color: #FFFF00;
*/
}

/*** 第三層功能表 ***/
.eng_menu_box ul ul li:hover > ul {
	position: absolute;
	left: 100%;
	top: 0;
}

/*** 有子功能表加箭頭 ***/
.eng_menu_box ul > li.menu-item-has-children > a:after,
.eng_menu_box ul > li.page-item-has-children > a:after {
	position: absolute; 
	right: .3em;
	top: .5em;

	font-family: "Font Awesome 5 Free"; 
	font-weight: 900; 
	content: "\f107";
}

.eng_menu_box ul ul li.menu-item-has-children > a:after,
.eng_menu_box ul ul li.page-item-has-children > a:after {
	position: absolute;
	vertical-align: bottom;
	right: .7em;
	display: inline;

	font-family: "Font Awesome 5 Free"; 
	font-weight: 900; 
	content: "\f105";
}

/*** 目前選項 ***/
.eng_menu_box li.current-menu-item > a,
.eng_menu_box li.current-menu-parent > a,
.eng_menu_box li.current-menu-ancestor > a,
.eng_menu_box li.current-post-ancestor > a, 
.eng_menu_box li.current-category-parent > a,
.eng_menu_box li.current-category-ancestor > a  {
	color: #AC1616;
/*
    background: rgba(0,0,0,.15);
*/	
}

/*** 目前選項 (第二層以後不加框) ***/
.eng_menu_box ul ul li.current-menu-item a,
.eng_menu_box ul ul li.current-menu-parent > a,
.eng_menu_box ul ul li.current-menu-ancestor > a,
.eng_menu_box ul ul li.current-post-ancestor > a, 
.eng_menu_box ul ul li.current-category-parent > a,
.eng_menu_box ul ul li.current-category-ancestor > a  {
	color: #AC1616;
/*
	border-color: transparent;
*/
}

.eng_menu_box li.chinese a {
	background-color: #e42121;
	color: #FFF;
	border-radius: 3px;
	padding-top: .2em;
	padding-bottom: .2em;
}

.eng_menu_box li.chinese a:hover {
	background-color: #ac1616;
}

.eng_menu_box.scrollfix-top {
/*	background-color: #FFF; */
}

/*************************
 英文版 FOOTER
*************************/
body.english {
	background: none !important;
}

.english .footer_content {
	text-align: center;
	line-height: 1.8;
}

.english ul.eng_footer li {
	display: inline-block;
	margin-right: 2em;
}

.english ul.eng_footer li a {
	color: #FFF;
}

.english ul.eng_footer li a:hover {
	color: #FFFF00;
}

.english .eng_action {
	text-align: center;
	margin: 2em auto 0;
}

.english .eng_action a {
	display: inline-block;
	padding: .4em .8em .3em;
	border-radius: 4px;
	font-size: 110%;
	background: #AC1616;
	color: #FFF;
	word-spacing: .5em;
}

.english .eng_action a:hover {
	background: #175B96;
}

/*** 英文版文章標題 ***/

.page_title.english {
/*
	text-align: center;
	margin-bottom: 1em;
	font-size: 200%;
*/
}

/*** 英文版資料顯示區 ***/
.english #main-content {
	min-height: 20em;
}

@media only screen and ( min-width: 768px) and (max-width: 1199px) {
}

@media only screen and ( min-width: 768px) and (max-width: 1199px) {
	.en .banner_content,
	.en .banner_content .logo_box,
	.en .banner_content .eng_menu_box {
		display: block;
		width: 100%;
		margin: 0;
		padding: 0;
		text-align: center;
	}
}

/*********************
 英文版手機功能表
*********************/
/*** logo ***/
#mobile_wrap .mobile_logo.en img {
	width: 10%;
	margin-right: .5em;
}

/*** 網站名稱 ***/
#mobile_wrap .mobile_logo.en .title {
	display: inline-block;
	font-size: 1rem !important; 
	line-height: inherit;
}

/*********************
 英文版網站導覽
*********************/
/*** 頂部按鈕 ***/
p.sitemap_en {
	text-align: right;
	padding: .2em 0;
}

p.sitemap_en a {
	display: inline-block;
	padding: .1em .5em;
	border-radius: 3px;
	background-color: #175B96;
	color: #FFF;
	font-size: 80%;
}

/*** 文章內容的標題 ***/
.sitemap_en_title {
	position: relative;
	padding-bottom: 3px;
}
.sitemap_en_title .title {
	font-weight: 600;
	color: #661A00; 
}

.sitemap_en_title span:before {
	content: url(guide_icon.png);
	margin-right: .3em;
}

.sitemap_en_title:after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 100%;
	height: 1px;
    border: 0;
	background: rgba(244,110,39,.3);
}

/**************************************
	樹狀結構 ul.tree_en
**************************************/
ul.tree_en {
	margin-left: 2em;
}

ul.tree_en button {
	display: inline-block;
	padding: 0;
	margin: 0 .35em 0 .2em;
	line-height: 1;
	width: 1.5em;
	height: 1.5em;
	vertical-align: middle;
	text-align: center;
	opacity: .85;
}

/*** 整個樹狀結構第一個連結 ***/
ul.tree_en.level-1 > li:first-child > a {}

ul.tree_en li, 
ul.tree_en li ul li {
	position: relative;
	line-height: 1.7;
}

/*** 第二層以後 ***/
ul.tree_en ul {
	margin-left: 2em;
}

/*** 所有連結 ***/
ul.tree_en a {
	border: 0px solid red;
	padding-top: .2em;
	padding-bottom: .2em; 
}

ul.tree_en a,					/* 一般連結 */
ul.tree_en li.file a:before {	/* 頁面 */
	padding-left: .2em;
	padding-right: .2em;
}

/* 頁面 */
ul.tree_en li.file a {}
ul.tree_en li.file a:before {
	font-family: "Font Awesome 5 Free"; 
	content: '\f15b';	/* <i class="far fa-file"></i>*/
	font-weight: 400;
	display: inline;
	opacity: .7;
	padding-right: .4em;

}

/*** 可展開/收起的節點 ***/ 
ul.tree_en li.hasSubmenu > a {
	border: 0px solid green;
	line-height: 2.2;
}

/*** 目錄連結 ***/
ul.tree_en li:not(.file) > a,
ul.tree_en li.hasSubmenu > a {
	color: #175B96;
	font-weight: 600;
}

/*** 頁面連結 ***/
ul.tree_en li.file a {
	color: inherit;
	overflow: hidden;
}

/*** 橫線 ***/
ul.tree_en li:before {
    position: relative;
    content: "";
    display: inline-block;
    width: 1em;
    height: 0;
    left: 0;
    top: -.4em;
    border-top: 1px dashed;
}

/*** 最後一個連結選項 (上方直線) ***/
ul.tree_en li:last-child button:before {
    position: absolute;
    content: '';
    display: inline-block;
    width: 1px;
    height: .8em;
    left: 0;
    top: 0;
    border-left: 1px dashed;
}

/*** 蓋掉最後一個 li 太長的部份 ***/
ul.tree_en > li:last-child:after,
ul.tree_en li ul li:last-child:after {
    content: '';
    display: block;
    width: 1px;
    height: 51%;
    position: absolute; 
    bottom: 0;
    left: -1px;
	border: 2px solid #FFF;
} 

ul.tree_en li a:hover {
	box-shadow: 0 0 0 2px #FF9933 inset;
}

/**************************
 英文版公告列表
**************************/
ul.eng_news_list {
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.eng_news_list li {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;

	padding: .5em 1em;
	border-style: solid;
	border-color: rgba(127,127,127,.2);
	border-width: 1px 1px 0 1px;
}

/* 最後一列不畫底線 */
ul.eng_news_list li:last-child {
	border-width: 1px;
}

/* 奇數列上色 */
ul.eng_news_list li:nth-child(odd) {
	background-color: #f9f9f9;
}

ul.eng_news_list li:hover {
	outline: 2px solid #FF9933 !important;
	outline-offset: -2px !important;
}

/* 文章連結 */
ul.eng_news_list li a {
	display: block;
	padding: 0 .5em;
	width: 100%;
}

/* 每個項目 */
ul.eng_news_list li .line_item {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: flex-start;
	padding-right: .5em;
}

/* 發佈日期 */
ul.eng_news_list li .line_item.date {
	font-size: 85%;
}

/* 文章標題 */
ul.eng_news_list li .line_item.title {
	flex: 1;
}

/* 點閱次數 */
ul.eng_news_list li .line_item.page_view {
	display:flex;
	justify-content: center;
	align-items: stretch;

	padding-right: 0;
	font-size:70%;

	height: 25px;
	line-height: 25px;
	width: 75px;

	border: none;
	border-radius: 25px;

	background-color: #565656;
	color: #FFF;

	background-color: rgba(127,127,127,.3);
	color: #000;
}


/***************************
 側邊欄最新公告
**************************/
.sb_news_list_en ul li {
	display: block;
	padding: .4em .5em;
	border-bottom: 1px dashed rgba(127,127,127,.5);
	line-height: 1.3;
}

.sb_news_list_en ul li a,
.sb_news_list_en ul li .current {
	display: block;
}

.sb_news_list_en ul li:last-of-type {
	border-bottom: none;
}

.sb_news_list_en .news_attr {
	opacity: .8;
	font-size: 90%;
	margin-bottom: .1em;
}

/*** 日期 ***/
.sb_news_list_en .news_date {
	display: inline-block;
	color: #006100;
	margin-right: .5em;
}
