@media (min-width: 992px) {

	#mainNav,
	#mainNav.collapse,
	.navbar-collapse,
	.navbar-collapse.collapse {
		display: flex !important;
		visibility: visible !important;
		flex-basis: auto;
	}

	.navbar-nav {
		display: flex !important;
		visibility: visible !important;
		flex-direction: row;
	}

	.nav-item {
		visibility: visible !important;
	}
}

/* 隱藏捲動條但保留功能 */
.no-scrollbar::-webkit-scrollbar {
	display: none;
}

.no-scrollbar {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

body {
	scroll-behavior: smooth;
}

/* 先進滑順動畫效果 */
.card-hover {
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
	transform: translateY(-8px);
}

/* 價格數字光暈效果 */
.price-glow {
	text-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
}

/* 卡片底部進度條 */
.progress-bar {
	transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero 文字漸層 - 明亮版 */
.hero-text-gradient {
	background: linear-gradient(135deg, #374151 0%, #c5a059 50%, #374151 100%);
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* 明亮風格卡片陰影 */
.card-shadow {
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.card-shadow:hover {
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

/* === Charter Services 樣式 (來自 charter-nagoya.php) === */
:root {
	--primary-color: #2E5266;
	--accent-color: #c5a059;
	--accent-light: #F9F4E8;
	--text-primary: #333333;
	--text-secondary: #6c757d;
	--background-primary: #FFFFFF;
	--background-secondary: #F7F9FC;
	--border-light: #EAECEF;
	--gradient-primary: linear-gradient(135deg, #2E5266 0%, #1a3a5f 100%);
	--gradient-accent: linear-gradient(135deg, #c5a059 0%, #b48f45 100%);
	--shadow-soft: 0 4px 8px rgba(0, 0, 0, 0.05);
	--shadow-medium: 0 8px 16px rgba(0, 0, 0, 0.1);
	--shadow-large: 0 12px 24px rgba(0, 0, 0, 0.15);
	--border-radius-md: 8px;
	--border-radius-lg: 12px;
	--transition-fast: all 0.2s ease-in-out;
	--transition-medium: all 0.3s ease-in-out;
}

.airline-section {
	padding: 3rem 0;
	border-bottom: none;
}

.airline-section .container {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

.section-header {
	text-align: center;
	margin-bottom: 2rem;
}

.airline-title {
	margin-bottom: 1rem;
	color: var(--text-primary);
	font-size: 2.2rem;
	font-weight: 700;
}

.airline-subtitle {
	font-size: 1.15rem;
	color: var(--text-secondary);
	max-width: 700px;
	margin: 0 auto;
	font-weight: 400;
}

.product-card {
	background-color: var(--background-primary);
	border: 2px solid var(--border-light);
	border-radius: var(--border-radius-lg);
	transition: var(--transition-medium);
	cursor: pointer;
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	margin-bottom: 1rem;
	position: relative;
	max-width: 100%;
}

.product-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: var(--gradient-accent);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.product-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-large);
	border-color: var(--accent-color);
}

.product-card:hover::before {
	opacity: 1;
}

.product-card .row {
	margin-left: 0;
	margin-right: 0;
}

.product-card .card-body {
	padding: 1.5rem 1.75rem;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.product-card .title-price-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.product-card .title-section {
	flex: 1;
	padding-right: 1rem;
}

.product-card .card-title {
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--text-primary);
	margin-bottom: 0.75rem;
	line-height: 1.5;
}

.product-card .airline-prefix {
	font-weight: 600;
	margin-right: 8px;
}

.product-card .description {
	font-size: 0.95rem;
	color: var(--text-secondary);
	line-height: 1.7;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 0.75rem;
	margin-bottom: 0.5rem;
}

.product-card .price-section {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	flex-shrink: 0;
}

.product-card .price-tag {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--accent-color);
	margin-bottom: 0.75rem;
	line-height: 1.8;
}

.product-card .price-tag .price-item {
	display: flex;
	justify-content: flex-end;
	align-items: baseline;
	gap: 0.5rem;
}

.product-card .price-tag del {
	font-weight: 400;
	font-size: 0.9rem;
	color: var(--text-secondary);
}

.product-card .price-tag .car-type {
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--text-secondary);
}

.product-card .badges-section {
	text-align: right;
}

.product-card .promo-badge {
	background: var(--gradient-accent);
	color: white;
	padding: 5px 14px;
	font-size: 0.8rem;
	border-radius: 20px;
	font-weight: 600;
	display: inline-block;
	margin-top: 6px;
	margin-left: 6px;
	box-shadow: 0 2px 6px rgba(197, 160, 89, 0.3);
	transition: all 0.3s ease;
}

.product-card:hover .promo-badge {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(197, 160, 89, 0.4);
}

.nagoya-card .airline-prefix {
	color: #E63946;
}

.nagoya-card .promo-badge {
	background: linear-gradient(135deg, #E63946 0%, #c42c3a 100%);
	color: white;
}

/* 手機版優化 */
@media (max-width: 768px) {
	.product-card .title-price-row {
		flex-direction: column;
	}

	.product-card .title-section {
		padding-right: 0;
		margin-bottom: 1rem;
	}

	.product-card .price-section {
		align-items: flex-start;
		width: 100%;
	}

	.product-card .badges-section {
		text-align: left;
	}

	.product-card .price-tag .price-item {
		justify-content: flex-start;
	}
}

/* Distance Section - 地圖區塊樣式（網頁版：左圖右字） */
#distance-section {
	background-color: #F0EFEA;
	padding: 5rem 0;
	overflow: hidden;
}

.distance-container {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	/* 左圖右字佈局 */
	gap: 3rem;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

/* 標題改為橫向顯示在右側文字區塊上方 */
.distance-title-vertical {
	writing-mode: horizontal-tb;
	/* 網頁版改為橫向 */
	text-orientation: mixed;
	font-family: var(--font-serif, 'Noto Serif TC', serif);
	font-size: 2rem;
	letter-spacing: 0.1rem;
	color: var(--primary-color);
	position: relative;
	padding-bottom: 1rem;
	border-bottom: 3px solid var(--accent-color);
	margin-bottom: 2rem;
}

/* 文字內容區塊（右側） */
.distance-content-horizontal {
	order: 2;
	/* 確保在右側 */
}

.distance-content-horizontal ul {
	list-style: none;
	padding-left: 0;
}

.distance-content-horizontal li {
	margin-bottom: 0.75rem;
	font-size: 1.05rem;
	color: #555;
	padding-left: 1.5rem;
	position: relative;
}

.distance-content-horizontal li::before {
	content: '→';
	position: absolute;
	left: 0;
	color: var(--accent-color);
	font-weight: bold;
}

.distance-content-horizontal p {
	margin-top: 1.5rem;
	font-weight: bold;
	color: var(--primary-color);
	font-size: 1.1rem;
}

/* 圖片區塊（左側） */
.distance-image-container {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	height: 450px;
	order: 1;
	/* 確保在左側 */
}

.distance-image-frame {
	width: 100%;
	height: 100%;
	background-color: #fff;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
	overflow: hidden;
	border-radius: 12px;
	border: 2px solid rgba(197, 160, 89, 0.2);
}

.distance-image-frame img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.distance-caption-vertical {
	writing-mode: vertical-rl;
	text-orientation: mixed;
	font-size: 1rem;
	letter-spacing: 0.2rem;
	color: #888;
}

/* ========================================
         * 导航按钮优化 - 网页版
         * ======================================== */
#sticky-nav {
	position: -webkit-sticky;
	position: sticky;
	top: 80px;
	/* 桌面版：在主导航栏（约80px）下方 */
	z-index: 999;
	/* 略低于主导航栏的 z-index */
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	padding: 0.3rem 0;
	/* 进一步缩小上下间距 */
}

#sticky-nav .nav-btn {
	white-space: nowrap;
	position: relative;
	overflow: hidden;
	border: 2px solid #c5a059;
	/* 金色外框 */
}

/* 按鈕 hover 效果優化 */
#sticky-nav .nav-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.1), transparent);
	transition: left 0.5s ease;
}

#sticky-nav .nav-btn:hover::before {
	left: 100%;
}

/* Active 狀態增強 */
#sticky-nav .nav-btn.active {
	box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
	transform: translateY(-1px);
	border-color: #a8853d;
	/* Active 時用深金色 */
}

/* 非 Active 按鈕樣式 */
#sticky-nav .nav-btn:not(.active) {
	background: transparent;
	border-color: #c5a059;
	color: #374151;
}

/* Hover 效果 */
#sticky-nav .nav-btn:not(.active):hover {
	background: rgba(197, 160, 89, 0.05);
	border-color: #a8853d;
}

/* 點擊效果（網頁版） */
#sticky-nav .nav-btn:not(.active):active {
	background: rgba(197, 160, 89, 0.15);
	border-color: #a8853d;
	transform: scale(0.98);
	box-shadow: 0 2px 6px rgba(197, 160, 89, 0.2) inset;
}

/* Active 按鈕點擊效果 */
#sticky-nav .nav-btn.active:active {
	transform: scale(0.98);
	box-shadow: 0 2px 6px rgba(168, 133, 61, 0.4) inset;
}

/* ========================================
         * 平板版本優化 (768px - 991px)
         * ======================================== */
@media (max-width: 991.98px) and (min-width: 769px) {
	#sticky-nav {
		padding: 0.4rem 0;
	}

	#sticky-nav .nav-btn {
		font-size: 0.85rem;
		padding: 0.6rem 1.2rem;
		letter-spacing: 0.05em;
		border: 2px solid #c5a059;
	}

	/* 平板版改為上下排列 */
	.distance-container {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.distance-title-vertical {
		writing-mode: horizontal-tb;
		border-right: none;
		border-bottom: 2px solid var(--accent-color);
		padding-bottom: 0.5rem;
		margin-right: 0;
		font-size: 1.8rem;
		order: 0;
	}

	.distance-image-container {
		flex-direction: column;
		height: auto;
		order: 1;
	}

	.distance-content-horizontal {
		order: 2;
	}

	.distance-image-frame {
		height: 300px;
	}

	.distance-caption-vertical {
		writing-mode: horizontal-tb;
		margin-top: 1rem;
	}
}

/* ========================================
         * 手机版优化 (最重要) - 让四个按钮完美并排并固定在顶部
         * ======================================== */
@media (max-width: 768px) {

	/* 导航容器优化 - 确保固定在顶部 */
	#sticky-nav {
		position: -webkit-sticky !important;
		position: sticky !important;
		top: 70px !important;
		/* 手机版：主导航栏约70px高度 */
		z-index: 999 !important;
		/* 略低于主导航栏 */
		padding: 0.4rem 0;
	}

	#sticky-nav .max-w-7xl {
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}

	/* 按鈕容器 - 確保四個按鈕在同一排 */
	#sticky-nav>div>div {
		padding: 0.75rem 0.25rem !important;
		gap: 0.35rem !important;
		min-width: auto !important;
		justify-content: space-between !important;
		flex-wrap: nowrap !important;
	}

	/* 按鈕樣式 - 精簡設計 */
	#sticky-nav .nav-btn {
		font-size: 0.75rem !important;
		padding: 0.55rem 0.5rem !important;
		letter-spacing: 0.02em !important;
		border-radius: 20px !important;
		flex: 1 1 0 !important;
		min-width: 0 !important;
		max-width: none !important;
		text-align: center;
		display: flex;
		align-items: center;
		justify-content: center;
		line-height: 1.3;
	}

	/* Active 按鈕在手機版的優化 */
	#sticky-nav .nav-btn.active {
		background: linear-gradient(135deg, #c5a059 0%, #a8853d 100%);
		box-shadow: 0 2px 8px rgba(197, 160, 89, 0.4);
	}

	/* 非 Active 按鈕 - 保留金色外框 */
	#sticky-nav .nav-btn:not(.active) {
		background: transparent;
		border: 1.5px solid #c5a059;
		color: #374151;
	}

	/* 點擊效果在手機版增強 */
	#sticky-nav .nav-btn:not(.active):active {
		background: rgba(197, 160, 89, 0.2) !important;
		border-color: #a8853d !important;
		transform: scale(0.96);
		transition: all 0.1s ease;
	}

	/* Active 按鈕點擊效果（手機版） */
	#sticky-nav .nav-btn.active:active {
		transform: scale(0.96);
		box-shadow: 0 1px 4px rgba(168, 133, 61, 0.5) inset;
		transition: all 0.1s ease;
	}

	/* 手機版保持原有上下排列 */
	.distance-container {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding: 0 1rem;
	}

	.distance-title-vertical {
		writing-mode: horizontal-tb;
		border-right: none;
		border-bottom: 2px solid var(--accent-color);
		padding-bottom: 0.5rem;
		margin-bottom: 1.5rem;
		font-size: 1.5rem;
		order: 0;
	}

	.distance-image-container {
		flex-direction: column;
		height: auto;
		order: 1;
	}

	.distance-content-horizontal {
		order: 2;
		margin-top: 1rem;
	}

	.distance-image-frame {
		height: 300px;
	}

	.distance-caption-vertical {
		writing-mode: horizontal-tb;
		margin-top: 1rem;
	}
}

/* ========================================
         * 極小螢幕優化 (< 375px)
         * ======================================== */
@media (max-width: 374px) {
	#sticky-nav .nav-btn {
		font-size: 0.7rem !important;
		padding: 0.5rem 0.3rem !important;
		letter-spacing: 0 !important;
	}
}

.tour-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

.tour-card:hover .card-img-box img {
	transform: scale(1.1);
}

.tour-card:hover .btn-arrow {
	background: #1A1A1A !important;
	color: #C5A065 !important;
}
