
.annotationTip {
	text-decoration: none;
	position: relative;
}

.annotationTip span {
	display: none;
}

.annotationTip:hover .popbox {
	display: block;
	position: absolute;
	top: 85px;
	left: 90px;
	width: 140px;
	background-color: #A85600;
	color: #ffffff;
	padding: 10px;
	text-align: center;
}

/* 無障礙焦點樣式 - 適用於所有可聚焦元素 - 加強版（符合成功準則2.4.7：焦點可視） */
.focusframe:focus, .imageAnchor:focus img {
	border-width: 4px !important;
	border-style: solid !important;
	border-color: #005fcc !important;
	box-shadow: 0 0 0 4px rgba(0, 95, 204, 0.3), 0 0 8px 4px rgba(0, 95, 204, 0.5) !important;
	outline: 4px solid #005fcc !important;
	outline-offset: 3px !important;
	background-color: rgba(0, 95, 204, 0.1) !important;
}

/* 超連結焦點樣式 - 加強版 */
a:focus, a.focusframe:focus {
	outline: 4px solid #005fcc !important;
	outline-offset: 3px !important;
	border: 4px solid #005fcc !important;
	box-shadow: 0 0 0 4px rgba(0, 95, 204, 0.3), 0 0 8px 4px rgba(0, 95, 204, 0.5) !important;
	background-color: rgba(0, 95, 204, 0.1) !important;
}

/* 按鈕焦點樣式 - 加強版 */
button:focus, input[type="button"]:focus, input[type="submit"]:focus, .btn:focus {
	outline: 4px solid #005fcc !important;
	outline-offset: 3px !important;
	border: 4px solid #005fcc !important;
	box-shadow: 0 0 0 4px rgba(0, 95, 204, 0.3), 0 0 8px 4px rgba(0, 95, 204, 0.5) !important;
	background-color: rgba(37, 128, 116, 0.2) !important; /* 淡綠色背景，基於 #258074 */
}

/* 主選單按鈕焦點樣式 - 淡綠色 */
.header-btn-collapse-nav:focus {
	background-color: rgba(37, 128, 116, 0.4) !important; /* 淡綠色背景，比一般按鈕更深一點 */
	color: #fff !important; /* 保持白色文字 */
	outline: 4px solid #005fcc !important;
	outline-offset: 3px !important;
	border: 4px solid #005fcc !important;
	box-shadow: 0 0 0 4px rgba(0, 95, 204, 0.3), 0 0 8px 4px rgba(0, 95, 204, 0.5) !important;
}

/* 關閉選單按鈕焦點樣式 - 淡色 */
.menu-close-btn:focus {
	background-color: rgba(242, 133, 0, 0.15) !important; /* 淡橙色背景，基於 #f28500 */
	color: #000000 !important;
	outline: 4px solid #005fcc !important;
	outline-offset: 3px !important;
	border: 4px solid #005fcc !important;
	box-shadow: 0 0 0 4px rgba(0, 95, 204, 0.3), 0 0 8px 4px rgba(0, 95, 204, 0.5) !important;
}

/* 表單元素焦點樣式 - 加強版（高對比度，不反白） */
input:focus, select:focus, textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
.form-control:focus {
	outline: 4px solid #005fcc !important;
	outline-offset: 3px !important;
	border: 4px solid #005fcc !important;
	box-shadow: 0 0 0 4px rgba(0, 95, 204, 0.3), 0 0 8px 4px rgba(0, 95, 204, 0.5) !important;
	background-color: #ffffff !important; /* 保持白色背景，不反白 */
	color: #000000 !important; /* 保持黑色文字，確保高對比度 */
}

/* 表格行焦點樣式 - 加強版 */
tr:focus, tr[tabindex]:focus, td:focus {
	outline: 4px solid #005fcc !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 4px rgba(0, 95, 204, 0.3), 0 0 8px 4px rgba(0, 95, 204, 0.5) !important;
	border: 4px solid #005fcc !important;
	background-color: rgba(0, 95, 204, 0.1) !important;
}

/* 卡片焦點樣式 - 加強版 */
.card:focus, .vendor-card:focus, .swiper-slide:focus {
	outline: 4px solid #005fcc !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 4px rgba(0, 95, 204, 0.3), 0 0 8px 4px rgba(0, 95, 204, 0.5) !important;
	background-color: rgba(0, 95, 204, 0.1) !important;
}

/* 圖片連結焦點樣式 - 加強版 */
.imageAnchor:focus, .imageAnchor:focus img {
	outline: 4px solid #005fcc !important;
	outline-offset: 3px !important;
	border: 4px solid #005fcc !important;
	box-shadow: 0 0 0 4px rgba(0, 95, 204, 0.3), 0 0 8px 4px rgba(0, 95, 204, 0.5) !important;
	background-color: rgba(0, 95, 204, 0.1) !important;
}

/* 導航連結焦點樣式 - 加強版 */
.nav-link:focus, .nav-tabs .nav-link:focus, .nav-pills .nav-link:focus {
	outline: 4px solid #005fcc !important;
	outline-offset: 3px !important;
	border: 4px solid #005fcc !important;
	box-shadow: 0 0 0 4px rgba(0, 95, 204, 0.3), 0 0 8px 4px rgba(0, 95, 204, 0.5) !important;
	background-color: rgba(0, 95, 204, 0.1) !important;
}

/* 自訂按鈕焦點樣式 - 加強版 */
.new-btn:focus, .youth-btn-hover:focus, .youth-btn-rounded:focus {
	outline: 4px solid #005fcc !important;
	outline-offset: 3px !important;
	border: 4px solid #005fcc !important;
	box-shadow: 0 0 0 4px rgba(0, 95, 204, 0.3), 0 0 8px 4px rgba(0, 95, 204, 0.5) !important;
	background-color: rgba(37, 128, 116, 0.2) !important; /* 淡綠色背景 */
	opacity: 0.9 !important; /* 稍微變淡 */
}

/* 其他 Bootstrap 按鈕焦點樣式 - 淡色處理 */
.btn-primary:focus,
.btn-secondary:focus,
.btn-success:focus,
.btn-info:focus,
.btn-warning:focus,
.btn-danger:focus,
.btn-light:focus,
.btn-dark:focus {
	background-color: rgba(37, 128, 116, 0.2) !important; /* 淡綠色背景 */
	opacity: 0.9 !important; /* 稍微變淡 */
}

.btn-primary:focus,
.btn-secondary:focus,
.btn-success:focus,
.btn-info:focus,
.btn-warning:focus,
.btn-danger:focus,
.btn-light:focus,
.btn-dark:focus,
.btn.focusframe:focus,
a.btn:focus,
button.btn:focus {
	background-color: #ffffff !important;
	color: #000000 !important;
	outline: 4px solid #005fcc !important;
	outline-offset: 3px !important;
	border: 4px solid #005fcc !important;
	box-shadow: 0 0 0 4px rgba(0, 95, 204, 0.35), 0 0 8px 4px rgba(0, 95, 204, 0.55) !important;
	opacity: 1 !important;
	text-decoration: none !important;
}

.btn:focus *,
.btn.focusframe:focus *,
a.btn:focus *,
button.btn:focus * {
	color: #000000 !important;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sr-only-focusable:focus {
	position: static;
	width: auto;
	height: auto;
	margin: 0;
	clip: auto;
	white-space: normal;
	border-width: 3px;
	border-style: dashed;
	border-color: #FFAC55;
	box-shadow: 3px 3px 5px 6px #cccccc;
	background-color: #000 !important;
	color: #fff !important;
	padding: 8px 16px;
	display: inline-block;
	z-index: 9999; /* 確保在最上層 */
}

.nav-divider {
	display: flex;
	align-items: center;
	padding: 0 10px;
	color: #A85600;
	font-weight: normal;
	background: transparent !important;
	background-color: transparent !important;
}

/* 導航欄文字樣式 */
#mainNav .dropdown a {
	color: #000000 !important;
	text-decoration: none !important;
	transition: all 0.3s ease;
	background-color: transparent !important;
}

#mainNav .dropdown a:hover {
	color: #A85600 !important;
	text-decoration: underline !important;
	background-color: transparent !important;
}

#mainNav .dropdown .nav-action-btn {
	display: block;
	margin: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
	color: #000000 !important;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	line-height: 20px;
	padding: 10px 15px;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	vertical-align: baseline;
}

#mainNav .dropdown .nav-action-btn:hover {
	color: #A85600 !important;
	text-decoration: underline !important;
	background-color: transparent !important;
}

#mainNav .dropdown .nav-action-btn:focus {
	border: 0 !important;
	outline: 4px solid #005fcc !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 4px rgba(0, 95, 204, 0.3), 0 0 8px 4px rgba(0, 95, 204, 0.5) !important;
	background-color: rgba(0, 95, 204, 0.1) !important;
	color: #000000 !important;
}

/* 移除首頁的綠色背景 */
#mainNav .dropdown a,
#mainNav .nav-pills .dropdown a {
	background: none !important;
	background-color: transparent !important;
}

/* 無障礙：關閉選單按鈕樣式 */
.menu-close-item {
	border-bottom: 1px solid #e2e2e2;
	margin-bottom: 5px;
	padding-bottom: 5px;
}

.menu-close-btn {
	color: #000000 !important;
	text-decoration: none !important;
	padding: 10px 15px;
	width: 100%;
	text-align: left;
	border: none;
	background: transparent;
	cursor: pointer;
}

.menu-close-btn:hover,
.menu-close-btn:focus {
	color: #A85600 !important;
	text-decoration: underline !important;
	background-color: rgba(242, 133, 0, 0.1) !important;
}

/* 當選單展開時顯示關閉按鈕 */
.header-nav-main nav.show .menu-close-item {
	display: block !important;
}

/* 當選單收合時隱藏關閉按鈕 */
.header-nav-main nav:not(.show) .menu-close-item {
	display: none !important;
}

/* 禁用連結樣式 - 灰色且無法點擊 */
#mainNav .dropdown a.disabled {
	color: #999999 !important;
	cursor: not-allowed !important;
	pointer-events: none !important;
	opacity: 0.6 !important;
	text-decoration: none !important;
}

#mainNav .dropdown a.disabled:hover {
	color: #999999 !important;
	text-decoration: none !important;
	background-color: transparent !important;
}

#mainNav .dropdown a.disabled:focus {
	color: #999999 !important;
	outline: 4px solid #005fcc !important;
	outline-offset: 3px !important;
	border: 4px solid #005fcc !important;
	box-shadow: 0 0 0 4px rgba(0, 95, 204, 0.3), 0 0 8px 4px rgba(0, 95, 204, 0.5) !important;
	background-color: transparent !important;
}

/* 合作店家收券按鈕樣式 - 灰色（未選中） */
#mainNav .dropdown a.vendor-tab-inactive {
	color: #999999 !important;
	text-decoration: none !important;
	background-color: transparent !important;
	cursor: pointer !important;
	pointer-events: auto !important;
}

#mainNav .dropdown a.vendor-tab-inactive:hover {
	color: #A85600 !important;
	text-decoration: underline !important;
	background-color: transparent !important;
	cursor: pointer !important;
}

#mainNav .dropdown a.vendor-tab-inactive:focus {
	color: #999999 !important;
	outline: 4px solid #005fcc !important;
	outline-offset: 3px !important;
	border: 4px solid #005fcc !important;
	box-shadow: 0 0 0 4px rgba(0, 95, 204, 0.3), 0 0 8px 4px rgba(0, 95, 204, 0.5) !important;
	background-color: rgba(0, 95, 204, 0.1) !important;
	cursor: pointer !important;
}

#mainNav .dropdown a.vendor-tab-active:hover {
	color: #003366 !important;
	text-decoration: none !important;
	background-color: transparent !important;
}

#mainNav .dropdown a.vendor-tab-active:focus {
	color: #003366 !important;
	outline: 4px solid #005fcc !important;
	outline-offset: 3px !important;
	border: 4px solid #005fcc !important;
	box-shadow: 0 0 0 4px rgba(0, 95, 204, 0.3), 0 0 8px 4px rgba(0, 95, 204, 0.5) !important;
	background-color: rgba(0, 95, 204, 0.1) !important;
}

/* 防止導航欄項目換行 */
#mainNav {
	flex-wrap: nowrap !important;
	white-space: nowrap !important;
}

#mainNav .dropdown {
	white-space: nowrap !important;
	flex-shrink: 0 !important;
}

#mainNav .dropdown a {
	white-space: nowrap !important;
}

#mainNav .dropdown .nav-action-btn {
	white-space: nowrap !important;
}
