
body {
	font-family: 'Microsoft JhengHei', sans-serif;
	margin: 0;
	padding: 0;
}

nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f5f5f5;
	padding: 10px 20px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.logo {
	display: flex;
	align-items: center;
}

	.logo img {
		height: 60px;
		width: auto;
		margin-right: 10px;
	}

#datetime {
	font-size: 14px;
	color: #333;
}

.menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
}

	.menu > li {
		position: relative;
		margin-right: 12px;
	}

	.menu a {
		display: block;
		padding: 8px 12px;
		text-decoration: none;
		color: #111;
		border-radius: 6px;
		transition: background 0.2s;
		cursor: pointer;
		white-space: nowrap;
	}

		.menu a:hover {
			background: #e0eaff;
		}

/* 桌面端子選單 */
.submenu, .subsubmenu {
	position: absolute;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	min-width: 80px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	padding: 0;
	margin: 0;
	list-style: none;
	z-index: 1000;
	display: none;
}

.submenu {
	top: 100%;
	left: 0;
	margin-top: 0;
}

.subsubmenu {
	top: 0;
	left: 100%;
	margin-left: 2px;
}

/* 桌面端 hover 效果 */
@media (min-width: 601px) {
	.menu > .has-sub:hover > .submenu,
	.submenu > .has-sub:hover > .subsubmenu {
		display: block;
	}
}

/* 桌面端點擊效果 */
.has-sub.active > .submenu,
.has-sub.active > .subsubmenu {
	display: block;
}

/* 為下拉選單上方添加透明區域來連接主選單 */
.submenu::before {
	content: '';
	position: absolute;
	top: -10px;
	left: 0;
	width: 100%;
	height: 10px;
	background: transparent;
}

/* 箭頭 */
.has-sub > a::after {
	content: ' ▾';
	font-size: 12px;
	margin-left: 4px;
}

.submenu .has-sub > a::after {
	content: ' ▸';
	float: right;
}

/* 響應式設計 - 移動端 */
@media (max-width: 600px) {
	nav {
		flex-direction: column;
		align-items: flex-start;
	}

	.menu {
		flex-direction: column;
		width: 100%;
	}

		.menu > li {
			margin-right: 0;
			margin-bottom: 0;
			width: 100%;
			border-bottom: 1px solid #e0e0e0;
		}

			.menu > li:last-child {
				border-bottom: none;
			}

		.menu a {
			padding: 12px 15px;
			border-radius: 0;
		}

	/* 移動端子選單 */
	.submenu, .subsubmenu {
		position: static;
		display: none;
		box-shadow: none;
		border: none;
		border-left: 3px solid #007bff;
		margin: 0;
		padding: 0;
		min-width: auto;
		width: 100%;
		background: #f8f9fa;
	}

	.submenu {
		border-left-color: #007bff;
	}

	.subsubmenu {
		border-left-color: #28a745;
		background: #f1f8ff;
	}

		.submenu li, .subsubmenu li {
			border-bottom: 1px solid #e9ecef;
		}

			.submenu li:last-child, .subsubmenu li:last-child {
				border-bottom: none;
			}

		.submenu a, .subsubmenu a {
			padding-left: 30px;
			background: none;
		}

		.subsubmenu a {
			padding-left: 60px;
		}

	/* 移除桌面端的偽元素 */
	.submenu::before {
		display: none;
	}

	/* 移動端顯示 active 選單 */
	.has-sub.active > .submenu,
	.has-sub.active > .subsubmenu {
		display: block;
	}

	/* 移動端箭頭 */
	.has-sub > a::after {
		content: ' ▾';
		float: right;
	}

	.has-sub.active > a::after {
		content: ' ▴';
		float: right;
	}

	.submenu .has-sub > a::after {
		content: ' ▾';
		float: right;
	}

	.submenu .has-sub.active > a::after {
		content: ' ▴';
		float: right;
	}
}

#siteFooter {
	background-color: #333;
	color: #fff;
	text-align: center;
	padding: 12px 0;
	font-size: 14px;
	margin-top: 20px;
	box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
}

.main-content {
	min-height: 60vh;
	padding: 20px;
}

.hero-section {
	background: linear-gradient(135deg, rgba(106, 17, 203, 0.9) 0%, rgba(37, 117, 252, 0.9) 100%);
	color: white;
	padding: 5rem 0;
	margin-bottom: 3rem;
	border-radius: 0 0 30px 30px;
	position: relative;
	overflow: hidden;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 60vh;
	text-align: center !important;
}

	.hero-section::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background-image: url('https://images.unsplash.com/photo-1560066984-138dadb4c035?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
		background-size: cover;
		background-position: center;
		opacity: 0.2;
		z-index: 0;
	}
/* 確保查詢參數顯示置中 */
.alert.alert-info {
	text-align: center !important;
}

.hero-content {
	position: relative;
	z-index: 1;
	text-align: center !important;
}

/* 確保所有文字置中 */
.hero-section h1,
.hero-section p {
	text-align: center !important;
	width: 100% !important;
}

/* 確保 Bootstrap 網格正確工作 */
.hero-section .container {
	text-align: center !important;
	max-width: 800px; /* 限制最大寬度 */
}

.hero-section .row {
	justify-content: center !important;
	text-align: center !important;
}

.hero-section .col-lg-8 {
	text-align: center !important;
	float: none !important;
}

.selection-card {
	background-color: white;
	border-radius: 20px;
	padding: 3rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	margin-top: -100px;
	position: relative;
	z-index: 2;
}

/* 其他原有樣式保持不變 */
.selection-form .form-label {
	font-weight: 600;
	color: #333;
	margin-bottom: 0.5rem;
}

.selection-form .form-control,
.selection-form .form-select {
	padding: 0.75rem 1rem;
	border-radius: 10px;
	border: 2px solid #e0e0e0;
	transition: all 0.3s;
}

	.selection-form .form-control:focus,
	.selection-form .form-select:focus {
		border-color: #2575fc;
		box-shadow: 0 0 0 0.25rem rgba(37, 117, 252, 0.25);
	}

.btn-view {
	background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
	border: none;
	color: white;
	padding: 1rem 2rem;
	border-radius: 10px;
	font-weight: 600;
	font-size: 1.1rem;
	transition: all 0.3s;
	width: 100%;
	margin-top: 1.5rem;
}

	.btn-view:hover {
		transform: translateY(-3px);
		box-shadow: 0 10px 20px rgba(37, 117, 252, 0.3);
	}

.features-section {
	padding: 4rem 0;
}

.feature-card {
	background-color: white;
	border-radius: 15px;
	padding: 2rem;
	text-align: center;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transition: all 0.3s;
	height: 100%;
}

	.feature-card:hover {
		transform: translateY(-10px);
		box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
	}

.feature-icon {
	font-size: 3rem;
	color: #2575fc;
	margin-bottom: 1.5rem;
}

.recent-months {
	background-color: #f8f9fa;
	border-radius: 15px;
	padding: 2rem;
	margin-top: 3rem;
}

.month-btn {
	background-color: white;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	padding: 0.75rem 1.5rem;
	margin: 0.5rem;
	transition: all 0.3s;
	display: inline-block;
}

	.month-btn:hover {
		border-color: #2575fc;
		background-color: #f0f7ff;
		text-decoration: none;
	}

@media (max-width: 768px) {
	.hero-section {
		padding: 3rem 0;
	}

	.selection-card {
		padding: 2rem;
		margin-top: -50px;
	}

	.feature-card {
		margin-bottom: 1.5rem;
	}
}
/* 調整輪播控制按鈕的樣式 */
.carousel-control-prev,
.carousel-control-next {
	width: 50px; /* 按鈕寬度 */
	height: 50px; /* 按鈕高度 */
	background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
	border-radius: 50%; /* 圓形按鈕 */
	top: 50%; /* 垂直居中 */
	transform: translateY(-50%); /* 調整垂直位置 */
	opacity: 0.8;
}

.carousel-control-prev {
	left: 20px; /* 左側按鈕距離左邊緣的距離 */
}

.carousel-control-next {
	right: 20px; /* 右側按鈕距離右邊緣的距離 */
}

	/* 按鈕懸停效果 */
	.carousel-control-prev:hover,
	.carousel-control-next:hover {
		background-color: rgba(0, 0, 0, 0.8);
		opacity: 1;
	}

	/* 修改按鈕內的箭頭樣式 */
	.carousel-control-prev span,
	.carousel-control-next span {
		font-size: 30px; /* 箭頭字體大小 */
		color: white;
		font-weight: bold;
	}

/* 隱藏原本的圖標 */
.carousel-control-prev-icon,
.carousel-control-next-icon {
	display: none;
}


/* 輪播容器樣式 */
.carousel-container {
	max-width: 1200px;
	margin: 0 auto 3rem;
	padding: 0 15px;
	position: relative;
}

/* 輪播主容器 */
#imageCarousel {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 10px;
	background-color: #f5f5f5;
	min-height: 500px; /* 確保有足夠高度 */
}

/* 自定義輪播控制按鈕樣式 - 修正位置 */
.custom-carousel-control {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 50%;
	border: none;
	color: white;
	font-size: 24px;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000; /* 確保在最上層 */
	opacity: 0.7;
	transition: all 0.3s;
	cursor: pointer;
	text-decoration: none; /* 移除連結樣式 */
	user-select: none; /* 防止文字選擇 */
}

	/* 明確分開左右按鈕的定位 */
	.custom-carousel-control.prev {
		left: 20px;
		right: auto; /* 確保不會繼承其他樣式 */
	}

	.custom-carousel-control.next {
		right: 20px;
		left: auto; /* 確保不會繼承其他樣式 */
	}

/* 修正 Bootstrap 默認按鈕 - 確保隱藏 */
.carousel-control-prev,
.carousel-control-next {
	display: none !important;
	visibility: hidden !important;
	width: 0 !important;
	height: 0 !important;
}

/* 確保自定義按鈕不被其他樣式影響 */
button.custom-carousel-control.prev,
button.custom-carousel-control.next {
	position: absolute !important;
	margin: 0 !important;
	padding: 0 !important;
	background-color: rgba(0, 0, 0, 0.5) !important;
}

/* 按鈕懸停效果 */
.custom-carousel-control:hover {
	background-color: rgba(0, 0, 0, 0.8) !important;
	opacity: 1;
	transform: translateY(-50%) scale(1.1);
}

/* 確保按鈕在圖片上方 */
.custom-carousel-control {
	box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* 輪播內層容器 */
.carousel-inner {
	position: relative;
	width: 100%;
	overflow: hidden;
	min-height: 500px;
}

/* 確保輪播項目正確顯示 */
.carousel-item {
	display: none;
	opacity: 0;
	transition: opacity 0.6s ease;
}

	.carousel-item.active {
		display: block;
		opacity: 1;
	}

.carousel-fade .carousel-item {
	opacity: 0;
	transition: opacity 0.6s ease;
}

	.carousel-fade .carousel-item.active {
		opacity: 1;
	}

/* 確保控制按鈕正確顯示 */
.custom-carousel-control {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	cursor: pointer;
}

/* 圖片樣式 */
.carousel-image {
	width: 100%;
	height: 500px;
	object-fit: contain;
	background-color: #f5f5f5;
	border-radius: 10px;
	cursor: pointer;
	display: block;
}

/* 輪播指示器樣式 */
.carousel-indicators {
	position: absolute;
	right: 0;
	bottom: 20px;
	left: 0;
	z-index: 100;
	display: flex;
	justify-content: center;
	padding: 0;
	margin: 0;
	list-style: none;
}

	.carousel-indicators [data-bs-target] {
		width: 12px;
		height: 12px;
		margin: 0 5px;
		cursor: pointer;
		background-color: rgba(255, 255, 255, 0.5);
		border: 0;
		border-radius: 50%;
	}

	.carousel-indicators .active {
		background-color: #2575fc;
	}

/* 響應式設計 */
@media (max-width: 768px) {
	.carousel-image,
	#imageCarousel,
	.carousel-inner {
		min-height: 350px;
		height: 350px;
	}

	.custom-carousel-control {
		width: 40px;
		height: 40px;
		font-size: 20px;
	}

		.custom-carousel-control.prev {
			left: 10px;
		}

		.custom-carousel-control.next {
			right: 10px;
		}
}



/* 確保 hero-section 文字置中 */
.hero-section h1,
.hero-section p {
	text-align: center !important;
	width: 100% !important;
}

.hero-section .container {
	text-align: center !important;
}

.hero-section .row {
	justify-content: center !important;
	text-align: center !important;
}

.hero-section .col-lg-8 {
	text-align: center !important;
	float: none !important;
}

.selection-card {
	background-color: white;
	border-radius: 20px;
	padding: 3rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	margin-top: -100px;
	position: relative;
	z-index: 2;
}

/* 確保控制按鈕可點擊 */
.custom-carousel-control {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 50%;
	border: none;
	color: white;
	font-size: 24px;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100; /* 確保在圖片上方 */
	opacity: 0.7;
	transition: all 0.3s;
	cursor: pointer !important; /* 確保游標顯示為可點擊 */
}

	.custom-carousel-control:hover {
		background-color: rgba(0, 0, 0, 0.8);
		opacity: 1;
		transform: translateY(-50%) scale(1.1);
	}

	.custom-carousel-control.prev {
		left: 20px;
	}

	.custom-carousel-control.next {
		right: 20px;
	}

/* 確保輪播指示器可點擊 */
.carousel-indicators {
	position: absolute;
	right: 0;
	bottom: 20px;
	left: 0;
	z-index: 100;
	display: flex;
	justify-content: center;
	padding: 0;
	margin: 0;
	list-style: none;
	margin-bottom: 0;
}

	.carousel-indicators [data-bs-target] {
		box-sizing: content-box;
		flex: 0 1 auto;
		width: 12px;
		height: 12px;
		padding: 0;
		margin: 0 5px;
		text-indent: -999px;
		cursor: pointer !important; /* 確保游標顯示為可點擊 */
		background-color: rgba(255, 255, 255, 0.5);
		background-clip: padding-box;
		border: 0;
		border-radius: 50%;
		transition: all 0.3s;
	}

		.carousel-indicators [data-bs-target]:hover {
			background-color: rgba(255, 255, 255, 0.8);
		}

	.carousel-indicators .active {
		background-color: #2575fc;
		width: 14px;
		height: 14px;
	}

/* 確保圖片游標顯示為可點擊 */
.carousel-image {
	cursor: pointer !important;
	transition: transform 0.3s ease;
}

	.carousel-image:hover {
		transform: scale(1.02);
	}

	/* 添加點擊效果 */
	.carousel-image:active {
		transform: scale(0.98);
	}

/* 圖片標題區域 */
.image-title-area {
	margin-top: 5px;
	padding: 5px;
	background: linear-gradient(135deg, #6c757d 0%, #495057 80%);
	border-radius: 5px;
	color: white;
	text-align: center;
	min-height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

#currentImageTitle {
	font-size: 20px;
	font-weight: bold;
	margin: 0;
	padding: 5px 10px;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
     

.title-box {
	background-color: rgba(13, 110, 253, 0.1); /* 淡藍色背景 */
	border: 1px solid rgba(13, 110, 253, 0.3); /* 邊框 */
	border-radius: 50px; /* 圓角 */
	padding: 8px 25px;
	display: inline-block;
}

.title-box-primary {
	background-color: rgba(13, 110, 253, 0.1);
	border: 0px solid rgba(13, 110, 253, 0.3);
}

.title-box-secondary {
	background-color: rgba(108, 117, 125, 0.1);
	border: 0px solid rgba(108, 117, 125, 0.3);
}