@charset "utf-8";
/* CSS Document */

/*----------------- 共用區 -----------------*/
a{
	text-decoration: none;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* 防止捲動條影響全螢幕效果 */
}

body {
    background: url("../images/IMG_0227.jpg") no-repeat center center fixed;
    background-size: cover;
}

#mainBox{
	background: #FFFFFF99;
	border-radius: 16px;
	width: 83vw;
	height: 90vh;
	max-width: 1600px;
	max-height: 960px;
	margin: auto;
	margin-top: 5vh;
	display: flex;
	position: relative;
}

.form-check-input:checked{
	background-color:#94C4D3;
	border-color: #94C4D3;
}

.fs-0875{font-size: 0.875rem;}

.text-light-blue{color: #94C4D3;}

.text-orange{color: #D18748;}

.text-red{color: #BB5555;}


/*----------------- 左側filter -----------------*/

#leftForm{
	width: 20%;
	height: 100%;
	background: #FFF;
	border-radius: 16px 0 0 16px;
	padding: 40px 20px;
}

#logo{
	margin-top: -70px;
	margin-left: 60px;
}

#logo img{
	width: 100px;
	height: 120px;
}

#filterList{
	color: #303233;
	font-size: .875rem;
	height: calc(100% - 50px);
	overflow-y: scroll;
}

.showBTN{
	width: 24px;
	height: 24px;
}

.showBTN img{
	width: 100%;
	transition: transform 0.3s;
}

.showBTN.reverse img {
    transform: rotate(180deg); /* 讓箭頭翻轉 */
    transition: transform 0.3s;
}

#leftForm .form-check{
	padding: .45rem .8rem .25rem .8rem;
    border-radius: 5px;
	cursor: pointer; 
    transition: background-color 0.2s;
	display: inline-flex;
	width: 100%;
}

#leftForm .form-check:hover{
	background-color: #d1e7dd; /* 淡綠色背景 */
}

#leftForm .form-check .form-check-input{
	margin-left: 0;
	margin-right: .5rem;
}

#leftForm .form-check input[type="checkbox"] {
    width: 20px; /* 調整大小 */
    height: 20px;
    margin-right: 10px; /* 增加與標籤的距離 */
    cursor: pointer;
}

#leftForm .form-check-label {
    width: 100%;
    cursor: pointer; /* 讓 label 也能點擊 */
    padding: 5px 0;
	margin-top: -4px;
}

/* 讓整個 div 可點擊並切換 checkbox 狀態 */
#leftForm .form-check input[type="checkbox"] + .form-check-label {
    display: flex;
    align-items: center;
    width: 100%;
}

#leftForm .form-check:has(.form-check-input:checked) {
    background-color: #d1e7dd; /* 淡綠色背景 */
    
}

#leftForm ::-webkit-scrollbar, .tableArea::-webkit-scrollbar{
      width: 0;
    }

#leftForm ::-webkit-scrollbar-button, .tableArea::-webkit-scrollbar{
      background: transparent;
      border-radius: 4px;
    }

#leftForm ::-webkit-scrollbar-track-piece, .tableArea::-webkit-scrollbar {
      background: transparent;
    }

#leftForm ::-webkit-scrollbar-thumb, .tableArea::-webkit-scrollbar{
      border-radius: 4px;
      background-color: rgba(0, 0, 0, 0.4);
      border: 1px solid slategrey;

    }

#leftForm ::-webkit-scrollbar-track, .tableArea::-webkit-scrollbar{
      box-shadow: transparent;
    }


/*----------------- 右側內容 -----------------*/
#rightForm{
	width: 80%;
	height: 100%;
	background: #FFFFFF95;
	border-radius: 0 16px 16px 0;
	padding: 40px 40px 40px 20px;
	position: relative;
}

.topArea{
	display: flex;
	justify-content: space-between;
	margin-bottom: 1.2rem;
}

#mainBox h1{
	color: #477FA8;
	font-size: 2.6rem;
	font-weight: 700;
	margin-top: -10px;
}

.searchBlock{
	display: flex;
	margin-top: -10px;
	position: relative;
}

.searchBlock input {
	height: 48px;
	width: calc(100% - 42px);
	border-radius: 50px;
	margin-left: .5rem;
	box-shadow: 0px 0px 12px #A7A7A759;
}

.searchBlock button {
	border: 0;
	border-radius: 0 50px 50px 0;
	position: absolute;
	right: 0px;
	bottom: 20px;
	z-index: 10;
	background: 0;
}

.tableArea{
	width: 100%;
	max-height: calc(100vh - 250px);
	overflow-y: scroll;
	overflow-x: hidden;
	box-shadow: 0px 0px 12px #00000029;
	border-radius: 16px;
}

.tHead{
	height: 48px;
	background: #D2E6EC;
	border-bottom: 1px solid #5297AC;
	border-radius: 16px 16px 0 0;
	text-align: center;
}

.tHead div{
	line-height: 48px;
}

a.tContent{
	background: #FFF;
	border-bottom: 1px solid #C2C2C2;
	height: 64px;
	text-align: center;
	font-size: .925rem;
	display: flex;
    align-items: center; 
	color: #000;
	transition-duration: .3s;
}

a.tContent:hover{
	background: #D2E6EC;
	transition-duration: .3s;
}

a.tContent > div:nth-of-type(2){
	text-align: left;
	font-weight: 700;
	padding: 0;
}

a.tContent:nth-last-of-type(1){
	border-radius: 0 0 16px 16px;
}


#paginationBlock{
	position: absolute;
	bottom: 0;
	width: 88%;
}

#paginationBlock{
	display: flex;
	justify-content: center;
}

#paginationBlock .page-link{color: #477FA8;}

#paginationBlock .page-item.active .page-link{
	background: #D2E6EC;
	border-color: #D2E6EC;
	color: #477FA8;
}

#rss {
    position: absolute;
    right: 40px;
    bottom: 12px;
    padding: 10px 16px;
    border-radius: 16px;
    background: #94C4D3;
    font-size: .875rem;
    color: #FFF;
    box-shadow: 0px 0px 12px #00000029;
    transition: right 0.2s, bottom 0.2s, box-shadow 0.2s, background 0.2s;
}

#rss:hover {
    background: #477FA8;
}

#rss:active {
    right: 38px;
    bottom: 10px;
    box-shadow: 0px 0px 3px #00000075;
}


/*----------------- 所有不同螢幕尺寸設定 -----------------*/
@media screen and (max-width:1695px) { 
	#mainBox{
		width: 90vw;
	}
}

@media screen and (max-width:1024px) { 
	#mainBox{
		width: 90vw;
	}
}


@media screen and (max-width:994px) { 
	body{
		background: #717E87;
		overflow: scroll;
	}
	
	.tableArea{
		max-height: calc(100% - 120px);
	}

	#leftForm{
		width: 100%;
		height: initial;
		border-radius: 16px 16px 0 0 ;
		padding: 16px 20px 8px 20px;
	}
	
	
	#filterList{
		display: none;
	}
	
	#leftForm .form-check{
		width: 48%;
		height: 48px;
	}
	
	#leftForm .form-check:nth-of-type(even){
		margin-left: 1%;
	}
	
	#leftForm .form-check:nth-of-type(odd){
		margin-right: 1%;
	}
	
	#leftForm .form-check input[type="checkbox"]{
		margin-top: 6px;
	}
	
	#rightForm{
		width: 100%;
		padding: 16px 20px;
		border-radius: 0 0 16px 16px;
	}
	
	
	#mainBox{
		width: 94vw;
		max-height: none;
		margin-bottom: 2rem;
		display: inherit;
		height: initial;
	}
	
	#mainBox h1{
		font-size: 1.6rem;
		margin-top: 28px;
	}
	
	.logo{
		margin-top: -30px;
	}
	
	.logo img{
		width: 50px;
		height: 60px;
	}
	
	.topArea{
		margin-top: 12px;
		justify-content: flex-end;
	}
	
	.search{
		justify-content: space-between;
	}
	
	.search .form-check{
		margin-top: 3px;
	}
	
	.searchBlock{
		width: calc(100% - 110px);
	}
	
	.searchBlock button{
		bottom: 13px;
	}
	
	.tableArea{
		max-height:inherit ;
		margin-bottom: 124px;
	}
	
	.tableArea .row>*{
		padding-left: 0!important;
		padding-right: 0!important;
	}
	
	a.tContent{
		height: inherit;
	}
	
	.row.tContent{
		padding: 1rem 2rem;
	}
	
	.row.tContent > div{
		text-align: left;
	}
	
	a.tContent > div:nth-of-type(2){
		margin-bottom: 6px;
		font-size: 1.1rem;
        line-height: 24px;
	}
	
	.row.tContent > div:nth-last-of-type(1){
		text-align: right;
	}
	
	#paginationBlock{
		margin-bottom: 3rem;
	}
	
	#rss {
		right: calc(50% - 66px);
	}
}

/*loading css-begin*/
.Div_Loading {
	display: none;
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background: rgba( 255, 255, 255, .8 ) url('https://ap1.pccu.edu.tw/webPublic/images/icons/reload.gif') 50% 50% no-repeat;
}

body.loading {
	overflow: hidden;
}

body.loading .Div_Loading {
	display: block;
}
/*loading css-end*/




