﻿
.floor-guide {
	padding: 5rem 0 4rem;
/*	background-color: #faf8f5;*/
}

/* ========== 標題 ========== */
.floor-guide-header {
	margin-bottom: 2rem;
}

.floor-guide-label {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.25em;
	color: #c0392b;
	font-family: 'Noto Serif TC', sans-serif;
	margin-bottom: 0.6rem;
	text-transform: uppercase;
}

.floor-guide-title {
	font-family: 'Noto Serif TC', serif;
	font-size: 2rem;
	font-weight: 700;
	color: #2c1810;
	margin: 0 0 1rem;
}
	.floor-guide-title span {
		font-weight: 300;
		color: #888;
		font-size: 1.5rem;
	}
.floor-guide-line {
	width: 48px;
	height: 3px;
	background-color: #c0392b;
}

/* ========== 館別切換 ========== */
.building-tabs {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 2.5rem;
}

.building-tab {
	flex: 1;
	min-width: 140px;
	max-width: 200px;
	padding: 0.75rem 1rem;
	border: 1px solid #ddd;
	background: #fff;
	cursor: pointer;
	text-align: center;
	transition: all 0.3s ease;
	font-family: 'Noto Serif TC', serif;
	color: #2c1810;
}

	.building-tab:hover {
		border-color: #FF8C42;
		color: #FF8C42;
	}

	.building-tab.active {
		background: #c0392b;
		border-color: #c0392b;
		color: #fff;
	}

.building-tab-name {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;

}

.building-tab-eng {
	display: block;
	font-size: 0.65rem;
	letter-spacing: 0.15em;
	opacity: 0.6;
	margin-top: 0.2rem;
	font-family: 'Noto Serif TC', sans-serif;
}

/* ========== 主體 ========== */
.floor-guide-body {
	display: flex;
	gap: 3rem;
	align-items: flex-start;
}

/* ========== 左側樓層列表 ========== */
.floor-list {
	flex: 0 0 240px;
	display: flex;
	flex-direction: column;
}

.floor-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.2rem;
	cursor: pointer;
	border-left: 3px solid transparent;
	border-bottom: 1px solid #f0ece6;
	transition: all 0.25s ease;
}

	.floor-item:hover {
		background: #fff;
		border-left-color: #e8c4a0;
	}

	.floor-item.active {
		background: #fff;
		border-left-color: #c0392b;
	}

.floor-num {
	font-family: 'Noto Serif TC', serif;
	font-size: 1.1rem;
	font-weight: 700;
	color: #c0392b;
	min-width: 50px;
}

.floor-item:not(.active) .floor-num {
	color: #bbb;
}

.floor-item.active .floor-num {
	color: #c0392b;
}

.floor-info .floor-name {
	font-size: 0.95rem;
	font-weight: 600;
	color: #2c1810;
	font-family: 'Noto Serif TC', serif;
	margin-bottom: 0.15rem;
}

.floor-info .floor-sub {
	font-size: 0.7rem;
	color: #aaa;
	font-family: 'Noto Serif TC', sans-serif;
	letter-spacing: 0.05em;
}

/* ========== 右側詳細 ========== */
.floor-detail {
	flex: 1;
	min-width: 0;
}

/* 圖片輪播 */
.floor-detail-carousel {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 4px;
	margin-bottom: 1.5rem;
	background: #e0ddd8;
}

.floor-carousel-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1s ease;
}

	.floor-carousel-img.active {
		opacity: 1;
	}

/* 圖片左上角標籤 */
.floor-highlight-tag {
	position: absolute;
	top: 1rem;
	left: 1rem;
	background: #c0392b;
	color: #fff;
	font-size: 0.7rem;
	letter-spacing: 0.15em;
	padding: 0.35rem 0.8rem;
	font-family: 'Noto Serif TC', sans-serif;
	z-index: 2;
}

/* 輪播指示器 */
.floor-carousel-dots {
	position: absolute;
	bottom: 1rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 0.5rem;
	z-index: 2;
}

.floor-carousel-dot {
	height: 3px;
	border-radius: 2px;
	background: rgba(255,255,255,0.35);
	transition: all 0.5s ease;
	cursor: pointer;
	width: 20px;
}

	.floor-carousel-dot.active {
		width: 48px;
		background: #fff;
	}

/* 詳細內容 */
.floor-detail-content h3 {
	font-family: 'Noto Serif TC', serif;
	font-size: 1.4rem;
	font-weight: 700;
	color: #2c1810;
	margin-bottom: 0.8rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.floor-detail-num {
	color: #c0392b;
}

.floor-detail-content p {
	font-size: 0.95rem;
	color: #666;
	line-height: 1.8;
	border-left: 3px solid #e8c4a0;
	padding-left: 1rem;
	margin-bottom: 1.5rem;
	font-family: 'Noto Serif TC', sans-serif;
}
.floor-desc-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 1.2rem;
}

	.floor-desc-row p {
		margin-bottom: 0;
		flex: 1;
	}

	.floor-desc-row .floor-facilities {
		margin: 0;
		flex-shrink: 0;
	}


/* 底部資訊列 */
.floor-detail-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.floor-detail-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 2.5rem;
	border: 1px solid #c0392b;
	color: #c0392b;
	background: transparent;
	font-size: 0.8rem;
	font-weight: 400;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	text-decoration: none;
	font-family: 'Noto Serif TC', sans-serif;
	transition: background 0.3s, color 0.3s;
	border-radius: 4px;
}

	.floor-detail-link:hover {
		background: #c0392b;
		color: #fff;
	}

	.floor-detail-link i {
		transition: transform 0.3s ease;
	}

	.floor-detail-link:hover i {
		transform: translateX(4px);
	}

/* ========== 響應式 ========== */
@media (max-width:767px) {
	.floor-guide-body {
		flex-direction: column;
		gap: 1.5rem;
	}
	/*館別切換*/
	.building-tabs {
		justify-content: flex-start;
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 0rem;
	}
	.building-tab {
		flex-shrink: 0;
		min-width: unset;
		max-width: unset;
		width: calc((100% - 0.75rem * 2) / 2.5);
	}
	.floor-list {
		flex: none;
		width: 100%;
		display: flex;
		flex-direction: row;
		overflow-x: auto;
		gap: 0;
		padding-bottom: 0.5rem;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

		.floor-list::-webkit-scrollbar {
			display: none;
		}

	.floor-item {
		flex-direction: column;
		align-items: center;
		text-align: center;
		min-width: 90px;
		padding: 0.8rem 0.6rem;
		border-left: none;
		border-bottom: 3px solid transparent;
		flex-shrink: 0;
		gap: 0.3rem;
	}

		.floor-item:hover {
			border-left: none;
			border-bottom-color: #e8c4a0;
		}

		.floor-item.active {
			border-left: none;
			border-bottom-color: #c0392b;
		}

	.floor-detail-footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.floor-detail-link {
		justify-content: center;
	}

		.building-tabs::-webkit-scrollbar {
			display: none;
		}

}
@media (max-width: 767px) {
	.floor-guide-body {
		flex-direction: column;
		gap: 1.5rem;
	}

	.building-tabs {
		justify-content: flex-start;
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 0rem;
	}

		.building-tabs::-webkit-scrollbar {
			display: none;
		}

	.building-tab {
		flex-shrink: 0;
		min-width: unset;
		max-width: unset;
		width: calc((100% - 0.75rem * 2) / 2.5);
	}

	.floor-list {
		flex: none;
		width: 100%;
		display: flex;
		flex-direction: row;
		overflow-x: auto;
		gap: 0;
		padding-bottom: 0.5rem;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

		.floor-list::-webkit-scrollbar {
			display: none;
		}

	.floor-item {
		flex-direction: column;
		align-items: center;
		text-align: center;
		min-width: 90px;
		padding: 0.8rem 0.6rem;
		border-left: none;
		border-bottom: 3px solid transparent;
		flex-shrink: 0;
		gap: 0.3rem;
	}

		.floor-item:hover {
			border-left: none;
			border-bottom-color: #e8c4a0;
		}

		.floor-item.active {
			border-left: none;
			border-bottom-color: #c0392b;
		}

	.floor-desc-row {
		flex-direction: column;
		gap: 0.8rem;
	}

	.floor-detail-footer {
		align-items: center;
	}

	.floor-detail {
		width: 100%;
	}
}

@media (max-width: 640px) {
	.building-tabs {
		gap: 0.5rem;
		margin-bottom: 0rem;
	}

	.building-tab {
		flex-shrink: 0;
		min-width: unset;
		max-width: unset;
		flex: none;
		width: calc((100% - 0.5rem * 2) / 2.7);
	}

	.floor-guide-title {
		font-size: 1.5rem;
	}

	.floor-detail-content h3 {
		font-size: 1.2rem;
	}

	.floor-detail-meta {
		gap: 1rem;
	}
}

.building-tab.active .building-tab-name,
.building-tab.active .building-tab-eng {
	color: #ffffff;
}

.floor-guide-header {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

	.floor-guide-header.visible {
		opacity: 1;
		transform: translateY(0);
	}

.building-tabs,
.floor-guide-body {
	opacity: 1;
	transform: none;
}
/* ========== 樓層設施 ========== */
.floor-facilities {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 1rem 0 1.2rem;
}

.floor-fac-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	width: 64px;
}

.floor-fac-icon {
	width: 48px;
	height: 48px;
	background: #c0392b;
	color: #fff;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	transition: background 0.2s ease;
}

.floor-fac-item:hover .floor-fac-icon {
	background: #a93226;
}

.floor-fac-label {
	font-size: 0.62rem;
	color: #666;
	text-align: center;
	font-family: 'Noto Serif TC', sans-serif;
	line-height: 1.3;
}

.floor-fac-icon i {
	font-size: 1rem;
	line-height: 1;
}
/* floor-guide.css */
#floor-detail {
	transition: opacity 0.6s ease, transform 1s ease; /* ← 0.35s 改 0.6s */
}
/* 動畫初始隱藏狀態 */
.building-tab {
	opacity: 0;
	transform: translateX(60px);
}

.floor-item {
	opacity: 0;
	transform: translateX(-60px);
}

#floor-detail {
	opacity: 0;
	transform: translateY(50px);
}