﻿/* CSS Document */

a { 
    text-decoration: none;
}
a:hover { 
    text-decoration: underline;
}

html, body {
	display: block;
	width: 100%;
	height: 100%;
}

body {
    background-image: url(../img/background.svg);
    background-size: cover;
    background-attachment: fixed;
    background-position: 50%;
}

/*--------sys_web--------*/
.sys_web {
	display: block;
	margin: 0 auto;
	padding: 0;
	width: 100%;
	max-width: 1680px;
	height: 100%;
	font-family: "Microsoft JhengHei",Verdana, Arial;
	text-shadow: none;
}

/*------header------*/
.web_top {
	display: block;
	margin: 0;
	padding: 6vh 0;
	width: 100%;
	position: relative;
}

/*------ad_pic------*/
.ad_camera {
	display: inline-block;
	margin: 0;
	padding: 0;
	position: absolute;
	width: 15%;
	max-width: 240px;
	right: 2%;
	top: 10%;
}
.ad_camera img {
	display: inline-block;
	margin: 0;
	padding: 0;
	width: 100%;
	height: auto;
}

/*--web_logo--*/
.sys_title {
	display: block;
	margin: 0;
	padding: 1em 0;
	width: 100%;
	text-align: center;
}

.sys_title img {
	display: inline-block;
	margin: 0;
	padding: 0;
}

.sys_title .sys_logo {
    width: 40%;
}

.sys_title .oca_logo {
    width: 8%;
	margin: 1% 2%;
}

/*----上選單----*/
.top_box {
	display: block;
	margin: 0;
	padding: 0;
	text-align: center;
}

.top_menu_box {
	display: inline-block;
	position: relative;
}

.top_menu {
	display: inline-block;
	margin: 0 auto;
	padding: 0;
	z-index: 3;
}

.top_menu li {
	list-style: none;
	display: inline-block;
	margin: 0;
	padding: 0.5em;
	border-right: 2px solid #2b8099;
}

.top_menu li:last-child {
    border-right: 0
}

.top_menu li a {
	margin: 0;
	padding: 0.5em;
	color: #814794;
	font-weight: bold;
}

.top_menu li a:hover {
	font-size: 120%;
	text-decoration: none;
}

.lang_menu {
	display: inline-block;
}

.dropdown-menu .act a, .dropdown-menu .act a:hover {
    color: #fff;
    background-color: #5856c5;
}

.btn-purplelg {
	background: #814794;
	color: #fff;
}

.btn-purplelg:hover {
	background: #6e3281;
	color: #fff;
}

/*----跑馬燈----*/
.msg_box {
	display: block;
	width: 100%;
	color: #1a629a;
	margin: 0;
	padding: 0.5em;
}

.msg_box a {
	color: #1a629a;
}

.msg_inline {
	display: inline-block;
	width: auto;
	min-width: 100%;
}

.msg_block {
	display: inline-block;
	width: 100%;
	min-width: 100%;
}

.alert_box {
	display: none;
	margin: 0.5em 0;
	text-align: center;
}

#top_s_btn {
	display: none;
}

/*----main_menu----*/
.con_box {
	padding-bottom: 3em;
}

.block_box {
	border-radius: 2em;
}
.block_box .block_header {
	border-radius: 2em 2em 0 0;
	padding: 1em 0.7em 0.3em 0.7em;
	color: #fff;
	font-weight: bold;
}
.block_blue {
	background-color: rgba( 0,126,255,0.3);
}
.block_green {
	background-color: rgba( 0,185,18,0.3);
}
.block_blue .block_header {
	background: #004d80;
	border-bottom: 1px solid #002b4f;
}
.block_green .block_header {
	background: #12970a;
	border-bottom: 1px solid #005508;
}
.main_menu {
	display: block;
	margin: 0;
	padding: 2vh 0.5em;
	width: 100%;
	text-align: center;
}
.main_menu div {
	display: inline-block;
	width: 20%;
	min-width: 180px;
}
.main_menu a {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column;
    flex-flow: column;
    text-decoration: none;
}
.main_menu a span {
    -webkit-transition: .3s;
    transition: .3s;
	margin: 0.5em 0;
    padding: 1rem 1rem;
    background-color: #f0f8ff;
    border-radius: 50%;
}
.main_menu a span .m_btn_icon {
    width: 5rem;
    height: 5rem;
}

.main_menu a:hover span {
    -webkit-box-shadow: inset 0 0 0 1rem #8e4794;
    box-shadow: inset 0 0 0 1rem #8e4794;
}

.main_menu a:hover button {
    background-color: #8e4794;
    color: #f8f9fa;
}

.main_menu a .btn {
	font-weight: bold;
	font-size: 1.2rem;
	color: #fff;
}

.block_blue a .btn, .block_green a .btn  {
	height: 3em;
	line-height: 1.2em;
}

.wrapper-middle {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
	flex-grow: 1;
}

.gl_box {
	padding: 0.5em;
}

/*--彈出區塊樣式--*/
.modal-content {
    background-color: #f5f7fa;
}

.bg-img {
	background-image: url(../img/watercolor-background.jpg);
	background-repeat: no-repeat;
	background-size: cover;
}

a.list_link {
	display: block;
	width: -webkit-fit-content;
	width: -moz-fit-content;
	width: fit-content;
	margin: auto 0;
}

.rssbtn {
	color: #ff8f00;
	padding: 0.2em;
	
}

.rssbtn:hover {
	color: #ff6600;
	
}

.item4-icon {
    width: 6rem;
    height: 6rem;
    margin: 1rem auto;
}

.dbox_list .list-group-item {
	padding: 0.3em 0.5em;
	font-size: large;
	background: #edfaff;
	color: #00698c;
}/*--20230714新增--*/

/*--20250717新增_多媒體專區--*/
.media_top {
	padding-bottom: 3vh;
}

.post_box {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 1em 0.8em;
	background: rgba( 255,255,255,0.8);
	border-radius: 0.5em;
}

.post_pic_box {
	display: flex;
	width: 100%;
	height: 240px;
	border: solid 1px #aaa;
	margin: 0 0 1em 0;
	padding: 0;
	justify-content: center;/* 水平置中 */
	align-items: center;/* 垂直置中 */
	overflow: hidden;/* 圖片寬度超過時裁切 */
	background: #000;
}

.post_pic {
	display: block;
	height: 100%;
	width: auto;
	object-fit: contain;
}

.post_con h5, .post_box h5 {
	font-weight: bold;
}

.post_box p {
	display: -webkit-box;
	-webkit-line-clamp: 2;       /* 限制顯示 3 行 */
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.post_con_pic {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 1em 0;
	padding: 0;
	border: solid 1px #000;
}

.post_con_pic img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
}

/*----gotop----*/
#gotop {
    display: none;
    position: fixed;
    z-index: 90;
    right: 5%;
    bottom: 31px;
    width: 50px;
    height: 50px;
    color: #fff;
    background: #33b5e5;
    line-height: 50px;
    border-radius: 50%;
    transition: all 0.5s;
    text-align: center;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}

#gotop:hover {
	background: #0099CC;
}

/*----web_footer style----*/
.web_footer {
    background-color: rgba(248,249,250,.68);
	border-radius: 0.5em 0.5em 0 0;
	width: 100%;
	max-width: 1680px;
	margin: 0 auto;
    position: fixed;
    bottom: 0;
    z-index: 1030;
}

.web_footer h6 {
	font-size: medium;
	margin: 0;
	padding: 0.4em;
	text-align: center;
}

/*--rwd_table style--*/
.rwd-table td:before {
	display: none;
}

.rwd-table th, .rwd-table td {
	display: table-cell;
	padding: 0.25em 0.5em;
}

.rwd-table th:first-child, .rwd-table td:first-child {
	padding-left: 0;
	padding-right: 0;
}

.rwd-table th, .rwd-table td {
	padding: 0.5em !important;
}

/*--tableScroll_box style--*/
.tableScroll_box { 
    display: block;
    width: 100%;
	height: 100%;
    margin: 0;
    padding: 0;
}/*----外層元件要設定固定高度----*/

.tableScroll thead th {
	position: sticky;
	width: auto;
	top: 0; /* 列首永遠固定於上 */
	z-index: 7;
}

/*------web_style------*/
.pull-right {
    float: right!important;
}

.pull-left {
    float: left!important;
}

.modal-xxl {
	max-width: 95%;	
}

/*------折疊table------*/

.table_dp_c {
	display: none;
}

/*-----------------900_web-------------------*/

/*Styles for screen 900 and lower*/
@media screen and (max-width: 900px) {
	
	.web_top {
		padding: 2vh 0;
	}
	
	.sys_title .sys_logo {
		width: 60%;
	}

	.sys_title .oca_logo {
		width: 12%;
	}
	
	.top_menu {
		display: none;
		position: absolute;
		border-radius: 0.5em;
		top: 2em;
		left: -3em;
		margin: 0;
		padding: 0.5em 0.2em;
		background: #fff;
	}
	
	.top_menu li {
		display: block;
		margin: 0 0.1em;
		padding: 0.1em 0.2em;
		border-right: 0;
		white-space: nowrap;
		font-size: small;
	}
	
	.top_menu li a {
		display: block;
		color: #5856c5;
	}
	
	.top_menu li a:hover {
		font-size: 100%;
		background: #5856c5;
		color: #fff;
	}
	
	.top_menu_box #top_s_btn {
		display: inline-block;
	}
	
	.main_menu {
		padding: 2vh 0.2em;
	}
	
	.con_box {
		padding-bottom: 1em;
	}
	
	.web_footer {
		position: static;
		border-radius: 0;
		padding-top: 1em;
		padding-bottom: 1em;
	}
}

/*-----------------640_web-------------------*/

/*Styles for screen 640 and lower*/
@media screen and (max-width: 640px) {
	
	.rwd-table {
		background: #fff;
		min-width: 100%;
	}

	.rwd-table th {
		display: none;
	}

	.rwd-table td {
		display: block;
	}

	.rwd-table td:before {
		content: attr(data-th) " : ";
		font-weight: bold;
		display: inline-block;
		margin-right: 0.5em;
	}

	.rwd-table th, .rwd-table td {
		margin: 0.2em 0.5em;
		text-align: left;
	}

	.rwd-table th, .rwd-table td:before {
		font-weight: bold;
	}
	
}

/*-----------------420_web-------------------*/

/*Styles for screen 420 and lower*/
@media screen and (max-width: 420px) {
	
	.main_menu div {
		min-width: 140px;
	}
	
	.main_menu a .btn {
		font-size: 1rem;
	}
	
	.block_blue a .btn, .block_green a .btn  {
		height: 3.5em;
	}
	
}