/* ========== 通用 ========== */
html,
body {
	font-size: 11px;
	font-family: "Helvetica", "Arial", "Verdana", "NotoSansTC", "sans-serif", "roboto", "微軟正黑體";
	background-attachment: fixed;
	background-repeat: no-repeat;
	background-size: cover;
	margin-top:10rem;
}

a {
	color: #333;
}

a:hover {
	color: #333;
	text-decoration: none;
}

h1 {
	font-size: 4.2rem;
}

h2 {
	font-size: 3.2rem;
}

h3 {
	font-size: 2.6rem;
}

h4 {
	font-size: 2rem;
}

h5 {
	font-size: 1.8rem;
}

p {
	font-size: 2rem;
	line-height: 33px;
	margin: 0;
	padding: 0;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	color: #333;
}

ul,
ol {
	margin-left: 0rem;
}

ul,
ol,
li {
	padding: 0;
	font-size: 2rem;
	line-height: 33px;
}

img {
	width: 100%;
}

.container-l {
	width: 1440px;
	max-width: 1440px;
	margin: 0 auto;
}

.container-m {
	width: 1400px;
	max-width: 1400px;
	margin: 0 auto;
}

.container-s {
	width: 1200px;
	max-width: 1200px;
	margin: 0 auto;
}

.container-xs {
	width: 800px;
	max-width: 800px;
	margin: 0 auto;
}

/* ========== Display ========== */
.display-1400 {
	display: none;
}

.display-1200 {
	display: none;
}

.display-992 {
	display: none;
}

.display-768 {
	display: none;
}

.display-576 {
	display: none;
}

.display-480 {
	display: none;
}

/* ========== Color ========== */
:root {
	--primary-color: #222222;
	--secondary-color: #D93924;
	--three-color: #243F6B;
	--four-color: #ddd;
	--five-color: #fff;
	--six-color: #;
	--seven-color: #;
	--eight-color: #;
	--nine-color: #;
	--ten-color: #;
	--font-color: #222222;
	--border-color: #d0d0d0;
}

/* ========== Button ========== */
.btn-groups {
	text-align: center;
}

.btn {
	transition: 0.3s ease;
	font-size: 1.6rem;
	margin: 0;
	padding: 0;
	background: var(--primary-color);
	color: #fff;
	border-radius: 1rem;
}

.btn:hover {
	background: var(--primary-color);
	color: #fff;
}

.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active {
	color: #ffffff;
	background-color: var(--primary-color);
	border-color: transparent;
}

.btn-one {
	background-color: var(--primary-color);
}

.btn-two {
	background-color: var(--secondary-color);
}

.btn-100 {
	width: 100%;
	line-height: 4.5rem;
}

.btn-l {
	width: 18rem;
	height: 6rem;
}

.btn-s {
	padding: 0.25rem 1rem;
}

/* ========== header ========== */
.bg-light {
	background-color: #fff !important;
}

.navbar {
	padding: 0;
	border-radius: 0 0 1rem 1rem;
}

nav {
	margin: 0;
}

.navbar-brand img {
	height: 4.5rem;
}

.nav-login {
	background: var(--primary-color);
	height: 9rem;
	width: 16rem;
	border-radius: 0 0 1rem 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.nav-login a {
	font-size: 1.6rem;
	color: #fff;
	display: block;
	width: 100%;
	height: 100%;
	line-height: 10rem;
	text-align: center;
}

a.nav-link {
	transition: all 0.3s ease;
	position: relative;
}

a.nav-link {
	position: relative;
}

a.nav-link::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 50%;
	width: 0;
	height: 2px;
	background-color: var(--secondary-color);
	transition: all 0.3s ease;
	transform: translateX(-50%);
}

a.nav-link:hover {
	color: var(--secondary-color) !important;
	transform: translateY(-2px);
}

a.nav-link:hover::after {
	width: 100%;
}

input::placeholder {
	font-weight: bold;
	font-size: 1.4rem;
	font-weight: 400;
	opacity: 0.3;
}

/* ========== Footer ========== */
.footer-block {
	background-color: #222222;
	color: #fff;
	padding: 8rem 0 2rem;
	position: relative;
}

.footer-logo img {
	width: 20rem;
	margin-bottom: 2.5rem;
	display: block;
}

.footer-group {
	display: flex;
	align-items: baseline;
}

.footer-item {
	width: 20%;
}

.footer-item h4 {
	color: #fff;
	font-size: 2.4rem;
	margin-bottom: 2rem;
	font-weight: 700;
}

.footer-block ul {
	list-style-type: none;
}

.footer-block ul li a {
	color: #fff;
	transition: all 0.3s ease;
	display: inline-block;
}

.footer-block ul li a:hover {
	color: #dc3545;
	transform: translateX(5px);
}

.footer-block ul li .museum-link img {
	max-height: 5rem;
	max-width: 100%;
	transition: all 0.3s ease;
	opacity: 0.9;
}

.footer-block ul li .museum-link:hover img {
	opacity: 1;
	transform: scale(1.05) translateX(5px);
}

.footer-btm {
	margin-top: 2.5rem;
	border-top: 1px solid #d0d0d0;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 2rem 0 0 0;
	font-size: 1.4rem;
}

.footer-btm img {
	width: 14rem;
}

/* ===== Table ===== */
.t-5 {
	width: 5%;
}

.t-10 {
	width: 10%;
}

.t-15 {
	width: 15%;
}

.t-20 {
	width: 20%;
}

.t-25 {
	width: 25%;
}

.t-30 {
	width: 30%;
}

.t-35 {
	width: 35%;
}

.t-40 {
	width: 40%;
}

.t-45 {
	width: 45%;
}

.t-50 {
	width: 50%;
}

.t-55 {
	width: 55%;
}

.t-60 {
	width: 60%;
}

.t-65 {
	width: 65%;
}

.t-70 {
	width: 70%;
}

.t-75 {
	width: 75%;
}

.t-80 {
	width: 80%;
}

.t-85 {
	width: 85%;
}

.t-90 {
	width: 90%;
}

.t-95 {
	width: 95%;
}

.t-100 {
	width: 100%;
}

.table {
	font-size: 1.6rem;
}

.table .tr.th-header {
	background: var(--first-color);
	display: flex;
	justify-content: flex-start;
	align-items: center;
	border: 0;
	line-height: initial;
	margin-bottom: 2px;
	padding: 1rem;
	font-size: 2rem;
	font-weight: bold;
}

.tr {
	border: 1px solid #ddd;
	border-top: transparent;
	display: flex;
	align-items: center;
	width: 100%;
	padding: 1rem;
}

.td {
	font-size: 1.6rem;
}

.table>:not(caption)>*>* {
	padding: 0rem;
	color: #333333;
	background-color: transparent;
	border-bottom-width: initial;
	box-shadow: none;
}

.table-mob .table>:not(caption)>*>* {
	padding: 0;
	color: #333333;
	background-color: #ffffff;
	border-bottom-width: initial;
	box-shadow: none;
}

.form-control {
	margin-bottom: 2.5rem;
	padding: 0 1rem;
	font-size: 1.6rem;
	border: 1px solid #ddd;
	border-radius: 5px;
	height: 4.5rem;
}

.form-select {
	width: 100%;
	height: 4.5rem;
	font-size: 1.6rem;
	margin-bottom: 2.5rem;
}

.form-check-input {
	width: 1.6rem;
	height: 1.6rem;
}

label {
	font-size: 1.6rem;
	margin-bottom: 0rem;
	font-weight: 900;
}

.input-group-text {
	transition: 0.3s ease;
	padding: 1rem 1.5rem;
	font-size: 1.6rem;
	line-height: 1.5;
	color: #fff;
	text-align: center;
	white-space: nowrap;
	background-color: var(--primary-color);
	border: transparent;
	border-radius: 0 5px 5px 0;
}

.input-group-text:hover {
	background: var(--secondary-color);
}

/* ========== Modal ========== */
.modal-header {
	padding: 1.5rem 1.75rem;
}

.modal-body {
	padding: 1rem 1.75rem;
}

.modal-body p {
	margin-bottom: 0.5rem;
}

.modal-footer {
	justify-content: center;
	padding: 1.5rem 0;
}

.modal-footer button {
	margin: 0 0.5rem;
}

.modal-open .modal {
	background: #00000080;
}

.close {
	font-size: 3rem;
}

/* ========== Top ========== */
.floating-button {
	position: fixed;
	z-index: 999;
	right: 60px;
	bottom: 22%;
	z-index: 998;
}

.f-search a,
.f-top a {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: #fff;
	border-radius: 99px;
	width: 60px;
	height: 60px;
	color: var(--fifth-color);
	box-shadow: #00000030 1px 1px 5px;
}

.f-top {
	margin-top: 2rem;
}

/* ========== Content ========== */

header {
	border-bottom: 1px solid #d0d0d0;
}

.site-header{
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1100;
	background-color: #fff;
}

.top-header-block {
	background: var(--primary-color);
}

.top-header-block p {
	line-height: 2rem;
	font-size: 1.4rem;
}

.top-header-group {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.top-header-block i,
.top-header-block p {
	color: #fff;
	font-size: 1.6rem;
	padding: 1rem 0;
}

.social-group a {
	margin: 0 0 0 2rem;
	color: #fff;
}

.navbar {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 2rem 0;
}

.header-item-1 {
	width: 20%;
}

.header-item-2 {
	width: calc(55% - 120px);
    padding-bottom: 1rem;
}

.header-item-3 {
	width: 25%;
}

.nav-fun-group {
	display: flex;
	justify-content: end;
}

.nav-fun-group {
	font-size: 1.6rem;
}

.nav-fun-item {
	margin-left: 3rem;
}

.nav-fun-item a {
	transition: 0.3s ease;
}

.nav-fun-item a:hover {
	color: var(--secondary-color);
}

ul.navbar-nav {
	margin: 0;
}

ul.navbar-nav {
	display: flex;
	flex-direction: row;
}

li.nav-item {
	margin-right: 4rem;
}

.collapse:not(.show) {
	display: block;
}


.content {
	margin-top: 4rem;

}

.title {
	border-bottom: 1px solid #d0d0d0;
	position: relative;
	margin-bottom: 2rem;
	padding-bottom: 0.4rem;
}

.title h3 {
	line-height: 47px;
	letter-spacing: 1px;
	position: relative;
	display: inline-block;
}

.title h3::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -5px;
	background: var(--secondary-color);
	width: 100%;
	height: 3px;
}

.product-block {
	margin: 8rem 0 0;
	position: relative;
}

.product-group {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 0rem;
	margin-bottom: 2rem;
}

/* 只為不含 row 類的 product-group 添加間距（首頁使用） */
.product-group:not(.row) {
	gap: 2.5rem;
}

.product-item {
	width: 18.5%;
}

.product-item a {
	border: 1px solid var(--border-color);
	display: inline-block;
	width: 100%;
	transition: all 0.3s ease;
}

.product-item a:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* .product-item-img {
	aspect-ratio: 1 / 1;
	width: 100%;
	overflow: hidden;
	position: relative;
}

.product-item-img::before {
	content: '';
	position: absolute;
	top: -5%;
	left: -5%;
	width: 110%;
	height: 110%;
	background-image: inherit;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.5s ease;
	transform-origin: center center;
}

.product-item a:hover .product-item-img::before {
	transform: scale(1.05) rotate(1deg);
} */

.product-item-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.product-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.product-item-img:hover img {
    transform: scale(2) rotate(10deg);
}

.product-item-info {
    padding: 1.75rem 1.25rem;
    border-top: 1px solid #ddd;
}

.product-item-info-main h5 {
	min-height: 5.4rem;
	line-height: 2.7rem;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.product-item-info-sub {
	display: flex;
	justify-content: space-between;
	font-size: 1.6rem;
	margin-top: 1rem;
}

.news-block {
	margin-bottom: 8rem;
}

.news-group {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.news-item {
	width: 30.5%;
}

.news-item a {
	border: 1px solid var(--border-color);
	display: inline-block;
	width: 100%;
	transition: all 0.3s ease;
}

.news-item a:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.news-item-img {
	aspect-ratio: 4 / 3;
	width: 100%;
	object-fit: cover;
	object-position: center;
	border-bottom: 1px solid #d0d0d0;
	overflow: hidden;
}

.news-item-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.5s ease;
}

.news-item a:hover .news-item-img img {
	transform: scale(1.08) rotate(1deg);
}

.news-item-info {
	padding: 1.75rem 2rem;
}

.badge {
	font-size: 1.4rem;
	border-radius: 0;
}

.news-item-info-main h5 {
	margin: 1rem 0 0.5rem;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	box-sizing: border-box;
}

.news-item-info-sub p {
	line-height: 2.6rem;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	box-sizing: border-box;
}

.link-block {
	background: url(../images/link-bk.jpg);
	background-position: center center;
	background-size: initial;
	padding: 4rem 0;
}

.link-item {
	margin-bottom: 2rem;
}

.link-item a {
	display: block;
	overflow: hidden;
	border-radius: 4px;
}

.link-item img {
	width: 100%;
	height: auto;
	display: block;
	transition: all 0.5s ease;
}

.link-item a:hover img {
	transform: scale(1.1) rotate(2deg);
}


.htmleaf-container ul {
	margin: 0;
}

/* ========== SP ========== */
.sp-1 {
	margin: 1.5rem 0;
	font-size: 1.5rem;
}

/*================================================== RWD ==================================================*/
@media(max-width:1600px) {

	/*====================================================================================================1600px*/
	/* ========== 通用 ========== */
	.container-l {
		width: 95%;
	}

	/* ========== Display ========== */
	/* ========== Button ========== */
	/* ========== header ========== */
	/* ========== Footer ========== */
	/* ========== Table ========== */
	/* ========== Modal ========== */
	/* ========== Top ========== */
	/* ========== Content ========== */
	/* ========== SP ========== */
}

@media(max-width:1400px) {

	/*====================================================================================================1400px*/
	/* ========== 通用 ========== */
	/* ========== Display ========== */
	.displaynone-1400 {
		display: none;
	}

	/* ========== Button ========== */
	/* ========== header ========== */
	/* ========== Footer ========== */
	/* ========== Table ========== */
	/* ========== Modal ========== */
	/* ========== Top ========== */
	/* ========== Content ========== */
	/* ========== SP ========== */
}

@media(max-width:1280px) {

	/*====================================================================================================1280px*/

	/* ========== 通用 ========== */
	.display-1280 {
		display: block;
	}

	.displaynone-1280 {
		display: none;
	}

	/* ========== Display ========== */
	/* ========== Button ========== */
	/* ========== header ========== */
	/* ========== Footer ========== */
	/* ========== Table ========== */
	/* ========== Modal ========== */
	/* ========== Top ========== */
	/* ========== Content ========== */
	/* ========== SP ========== */
}

@media(max-width:1200px) {

	/*====================================================================================================1200px*/
	/* ========== 通用 ========== */
	.container-s {
		width: 90%;
	}

	/* ========== Display ========== */
	.display-1200 {
		display: block;
	}

	.displaynone-1200 {
		display: none;
	}

	/* ========== Button ========== */
	/* ========== header ========== */

	/* ========== Footer ========== */
	/* ========== Table ========== */
	/* ========== Modal ========== */
	/* ========== Top ========== */
	/* ========== Content ========== */
	.header-item-2 {
		width: calc(50% - 120px);
	}

	.header-item-3 {
		width: 35%;
	}

	.nav-fun-item {
		margin-left: 3rem;
	}

	.product-block {
		margin: 6rem 0 0;
	}

	.product-group {
		margin-bottom: 2rem;
	}

	.news-block {
		margin-bottom: 2rem;
	}

	/* ========== SP ========== */
}

@media(max-width:1200px) {

	/*====================================================================================================1200px*/
	/* ========== 通用 ========== */
	/* ========== Content ========== */
	.product-item {
		width: 32%;
	}

	/* ========== SP ========== */
}

@media(max-width:992px) {

	/*====================================================================================================992px*/
	/* ========== 通用 ========== */
	.container-xs {
		width: 90%;
	}

	html,
	body {
		margin-top: 7.2rem;
	}

	/* ========== Display ========== */
	.display-992 {
		display: block;
	}

	.displaynone-992 {
		display: none;
	}

	/* ========== Button ========== */
	/* ========== header ========== */
	.social-group {
		display: none;
	}


	/* ========== Footer ========== */
	/* ========== Table ========== */
	/* ========== Modal ========== */
	/* ========== Top ========== */
	/* ========== Content ========== */
	.navbar {
		justify-content: flex-start;
		padding: 0;
	}

	.mobile-menu-overlay {
		display: none;
		position: fixed;
		top: 0;
		right: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.5);
		z-index: 999;
		opacity: 0;
		transition: opacity 0.3s ease;
	}

	.mobile-menu-overlay.active {
		display: block;
		opacity: 1;
	}

	.mobile-menu-sidebar {
		position: fixed;
		top: 0;
		right: -280px;
		width: 280px;
		height: 100%;
		background: #fff;
		z-index: 1000;
		transition: right 0.3s ease;
		overflow-y: auto;
	}

	.mobile-menu-sidebar.active {
		right: 0;
	}

	.mobile-menu-header {
		padding: 2rem;
		border-bottom: 1px solid #eee;
		text-align: right;
	}

	.close-menu {
		background: none;
		border: none;
		font-size: 2.4rem;
		cursor: pointer;
		color: #333;
	}

	.mobile-nav-list {
		list-style: none;
		padding: 0;
		margin: 0;
	}

	.mobile-nav-list li {
		border-bottom: 1px solid #eee;
	}

	.mobile-nav-list a {
		display: block;
		padding: 1.5rem 2rem;
		color: #333;
		text-decoration: none;
		font-size: 1.6rem;
	}

	.mobile-nav-list a:hover {
		background: #f5f5f5;
	}

	.collapse:not(.show) {
		display: none;
	}

	.top-header-block i,
	.top-header-block p {
		padding: 1.25rem 0;
	}

	.header-item-1 {
		width: auto;
	}

	.header-item-1 img {
		width: 14rem;
	}

	.header-item-2 {
		width: 100%;
		order: 2
	}

	.header-item-3 {
		width: 50%;
		margin-right: 2.5rem;
	}


	.product-block {
		margin: 2rem 0 0;
	}

	.product-group .product-item:last-child {
		display: block;
	}

	.product-item {
		width: 24.5%;
	}

	.news-item {
		width: 32.5%;
	}

	.news-item-info {
		padding: 1.25rem;
	}

	/* ========== SP ========== */
}

@media(max-width:768px) {

	/*====================================================================================================768px*/
	/* ========== 通用 ========== */
	h1 {
		font-size: 3.2rem;
	}

	h2 {
		font-size: 2.6rem;
	}

	h3 {
		font-size: 2rem;
	}

	h4 {
		font-size: 1.6rem;
	}

	h5 {
		font-size: 1.4rem;
	}

	p {
		font-size: 1.5rem;
	}

	/* ========== Display ========== */
	.display-768 {
		display: block;
	}

	.displaynone-768 {
		display: none;
	}

	/* ========== Button ========== */
	/* ========== header ========== */
	/* ========== Footer ========== */
	.footer-item {
		width: 30%;
	}

	/* ========== Table ========== */
	/* ========== Modal ========== */

	/* ===== Top =====*/
	.floating-button {
		right: 30px;
		bottom: 5%;
	}

	.footer-group {
		flex-wrap: wrap;
		gap: 2rem 0;
	}

	.footer-item {
		width: 50%;
		text-align: center;
	}

	/* ========== Content ========== */
	.header-item-3 {
		width: auto;
		margin-right: 2rem;
	}

	.product-group {
		flex-wrap: wrap;
		gap: 0rem;
	}

	/* 移動版不含 row 類的 product-group 添加間距 */
	.product-group:not(.row) {
		gap: 2rem;
	}

	.product-item {
		width: 48%;
	}

	.news-group {
		flex-wrap: wrap;
		gap: 2rem 0;
	}

	.news-item {
		width: 100%;
	}

	.link-group {
		gap: 2rem 0;
	}

	/* ========== SP ========== */
}

@media(max-width:576px) {

	/*====================================================================================================576px*/
	/* ========== 通用 ========== */

	/* ========== Display ========== */
	.display-576 {
		display: block;
	}

	.displaynone-576 {
		display: none;
	}

	/* ========== Button ========== */
	/* ========== header ========== */
	/* ========== Footer ========== */
	/* ========== Table ========== */
	/* ========== Modal ========== */
	/* ========== Top ========== */
	.floating-button {
		position: fixed;
		bottom: 0;
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		width: 100%;
		right: 0;
		left: 0;
	}

	.f-top {
		width: 100%;
		border-radius: 0;
		margin-top: 0rem;
	}

	.f-top a {
		width: 100%;
		border-radius: 0;
		background: var(--fifth-color);
		color: #fff;
	}

	/* ========== Content ========== */
	.nav-fun-item {
		margin-left: 1.5rem;
	}

	.product-item {
		width: 100%;
	}

	/* ========== SP ========== */
}

@media(max-width:480px) {

	/*====================================================================================================480px*/
	/* ========== 通用 ========== */
	/* ========== Display ========== */
	.display-480 {
		display: block;
	}

	.displaynone-480 {
		display: none;
	}

	/* ========== Button ========== */
	.btn-groups .btn {
		margin-bottom: 2rem;
	}

	.btn-l {
		width: 100%;
	}

	/* ========== header ========== */
	/* ========== Footer ========== */
	/* ========== Table ========== */
	/* ========== Modal ========== */
	.modal-footer .btn-groups {
		width: 90%;
	}

	/* ========== Top ========== */
	/* ========== Content ========== */
	/* ========== SP ========== */

}

@media(max-width:420px) {
	/*====================================================================================================420px*/
	/* ========== 通用 ========== */
	/* ========== Display ========== */
	/* ========== Button ========== */
	/* ========== header ========== */
	/* ========== Footer ========== */
	/* ========== Table ========== */
	/* ========== Modal ========== */
	/* ========== Top ========== */
	/* ========== Content ========== */
	/* ========== SP ========== */
}
