@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200;300;400;500;600;700;900&family=Noto+Serif+KR:wght@200;300;400;500;600;700;900&family=Noto+Serif+SC:wght@200;300;400;500;600;700;900&family=Noto+Serif+TC:wght@200;300;400;500;600;700;900&family=Noto+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');

* {
	font-family: 'Noto Serif', 'Noto Serif JP', 'Noto Serif KR', 'Noto Serif SC', 'Noto Serif TC', serif !important;
}

/* 底色 */
body {
	background-color: rgb(245, 245, 245);
}

/* 所有圖片設定 */
img {
	width: 100%;
	vertical-align: bottom;
}

/* 所有連結裝飾消失 */
a {
	text-decoration: none;
}

/* 所有按鈕樣式 */
.btn {
	width: 200px;
	line-height: 44px;
	text-align: center;
	display: block;
	color: rgb(237, 109, 0);
	border: 1px solid rgb(237, 109, 0);
	border-radius: 44px;
	transition: 0.25s linear;
}

.btn:hover {
	color: rgb(245, 245, 245);
	background-color: rgb(237, 109, 0);
}

/* wrap部分置中 */
.wrap {
	width: 76%;
	margin: auto;
}

/* logo區域 */
header .logo {
	display: flex;
	justify-content: center;
}

header .logo .pic {
	width: 60%;
	max-width: 280px;
	padding: 8px 0;
}

/* banner區域 */
/* BN-L隱藏 */
.banner-l {
	display: none;
}

/* 活動導讀 */
.guide{
	background-color: #fff;
}
.guide p {
	font-size: 32px;
	line-height: 150%;
	font-weight: 500;
	color: #171717;
	padding: 32px 0;
}

.intro {
	padding: 48px 0;
	background-color: #F6F2E9;
	margin-bottom: 48px;
}

.intro .content {
	width: 100%;
	padding: 24px;
	box-sizing: border-box;
	margin: auto;
	background-color: #fff;
	border-radius: 32px;
}
.intro .content .pic{
	width: 100%;
	max-width: 320px;
	margin-bottom: 8px;
}
.intro h2 {
	font-size: 20px;
	font-weight: 600;
	line-height: 150%;
	color: #171717;
}

.intro p {
	font-size: 18px;
	line-height: 150%;
	letter-spacing: 1px;
	color: rgb(35, 35, 35);
	margin-bottom: 20px;
}

.intro p:last-child {
	color: rgb(77, 77, 77);
}

/* 書展類別區域 */
.tab {
	margin-bottom: 5%;
}

/* 書展類別分類區域 */
.tab_area {
	border-bottom: 1px solid rgb(200, 200, 200);
	display: flex;
	overflow: auto;
}

/* 書展類別分類按鈕 */
.tab_area a {
	padding: 2.5% 3.5%;
	box-sizing: border-box;
	font-size: 1.2em;
	text-align: center;
	white-space: nowrap;
	color: rgb(100, 100, 100);
}

/* 書展類別分類按鈕點選效果 */
.tab_area>.books-tab-btn.active {
	color: rgb(237, 109, 0);
	position: relative;
	border-bottom: 2px solid rgb(237, 109, 0);
}

/* tab fix屬性 */
.tab-fixed {
	position: fixed;
	top: 0;
	right: 0;
	bottom: none;
	left: 0;
	z-index: 9999;
	background-color: rgb(245, 245, 245);
}

/* 書架區域 */
.bookall .wrap .bookall_area {
	display: flex;
	flex-wrap: wrap;
}

/* 書展類別 */
.bookall_title h2 {
	padding-top: 5%;
	box-sizing: border-box;
	font-size: 2.25em;
	line-height: 1.5;
	text-align: center;
	color: rgb(100, 100, 100);
}

/* 書展類別小標 */
.bookall_title p {
	font-size: 1.2em;
	line-height: 1.5;
	text-align: center;
	color: rgb(100, 100, 100);
}

/* 書架一行兩個 */
.bookall .wrap .bookall_area a {
	width: calc(100%/2);
	padding: 2%;
	box-sizing: border-box;
	transition: 0.25s linear;
}

/* 書架hover特效 */
.bookall .wrap .bookall_area a:hover {
	transform: translateY(-15px);
}

.bookall .wrap .bookall_area .pic {
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	aspect-ratio: 5/6;
	position: relative;
	width: 100%;
	overflow: hidden;
}

.bookall_area a .pic img {
	max-width: 100%;
	max-height: 100%;
	z-index: 2;
}

.bookall_area a .pic .bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
	opacity: 0.8;
	filter: brightness(105%) blur(10px);
	z-index: 1;
	transform: scale(2);
}

/* 書架書名 */
.bookall .wrap .bookall_area .txt p {
	font-size: 1em;
	line-height: 1.2;
	color: rgb(50, 50, 50);
	/* 書架書名兩行限制 */
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	/* 行數 */
	-webkit-box-orient: vertical;
	white-space: normal;
}

/* 閱讀更多按鈕 */
.read_more {
	display: flex;
	justify-content: center;
	margin: 5% auto 20%;
}

/* footer */
footer {
	padding: 10% 0;
	background-color: rgb(235, 235, 235);
	margin-top: 64px;
}

footer p {
	text-align: center;
	font-size: 1em;
	line-height: 1.2;
	color: rgb(100, 100, 100);
}

@media screen and (min-width:480px) {

	/* logo區域 */
	header .logo {
		display: flex;
		justify-content: left;
	}

	header .logo .pic {
		width: 35%;
	}

	/* banner區域 */
	/* BN-L打開 */
	.banner-l {
		display: block;
	}

	/* BN-M隱藏 */
	.banner-m {
		display: none;
	}

	.intro .content {
		width: 90%;
		padding:24px 48px;
	}

	.intro h2 {
		font-size: 28px;
	}

	.intro p {
		font-size: 20px;
	}

	/* 書展類別區域 */
	.tab_area {
		justify-content: space-between;
		padding: 0 5%;
	}

	/* 書展類別分類按鈕 */
	.tab_area a {
		font-size: 1.3em;
	}

	/* 書架一行四個 */
	.bookall .wrap .bookall_area a {
		width: calc(100%/5);
	}

	/* 閱讀更多按鈕 */
	.read_more {
		margin: 2% auto 5%;
	}

	/* footer */
	footer {
		padding: 2% 0;
	}
}

/* 外文書籍推薦 */
.foreignbookslink {
	position: fixed;
	right: 5%;
	bottom: 10%;
	padding: 16px 24px;
	background-color: #1864b0ab;
	color: #fff;
	font-size: 16px;
	border-radius: 8px;
	z-index: 999;
}

.foreignbookslink:hover {
	background-color: #1864b0;
}

/*<<<<<<<<<<< bookshelf >>>>>>>>>>>>*/
#foreignbookshelf h2 {
	padding-top: 5%;
	box-sizing: border-box;
	font-size: 24px;
	line-height: 1.5;
	text-align: center;
	color: rgb(100, 100, 100);
}

#foreignbookshelf .bookshelf.active {
	display: block;
	position: relative;
}

#foreignbookshelf .bookall.active {
	display: block;
}

/* 分頁控制 */
#foreignbookshelf .bookall .pagination {
	display: flex;
	justify-content: space-between;
	overflow-x: auto;
}

#foreignbookshelf .bookall .pagination button {
	font-size: 20px;
	border: transparent;
	background-color: transparent;
	cursor: pointer;
	margin: 0 4px;
	padding: 8px 16px;
	transition: 0.5s;
	color: #1864b0;
	border: 1px solid #1864b0;
	border-radius: 999px;
}

#foreignbookshelf .bookall .pagination button:hover {
	color: #fff;
	background-color: #1864b08c;
	border-radius: 999px;
}

#foreignbookshelf .bookall .pagination button.active {
	background-color: #1864b0;
	color: #fff;
	border-radius: 999px;
}

@media (min-width:768px) {

	/* 書展類別 */
	#foreignbookshelf h2 {
		font-size: 36px;
	}

	/* 分頁控制 */
	#foreignbookshelf .bookall .pagination {
		justify-content: center;
	}
}