body {
	font-family: 'Inter', sans-serif;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Footer推到底部的CSS */
main {
	flex: 1;
}

/* 載入期間的體驗改善 */
.loading-active {
	overflow: hidden;
	height: 100vh;
}

.loading-active footer {
	display: none;
}

/* 載入期間隱藏主要內容 */
.loading-active main {
	display: none;
}

.logo {
	font-size: 1.5rem;
	font-weight: bold;
	letter-spacing: 0.05em;
	display: flex;
	align-items: center;
}

.navbar {
	background: linear-gradient(to right, #f97316, #fbbf24);
	color: #fff;
	padding: 1rem;
	border-radius: 0 0 1rem 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	z-index: 10;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-links {
	display: flex;
	gap: 2rem;
}

.nav-links a {
	color: #fff;
	font-weight: 500;
	font-size: 1.125rem;
	transition: color 0.2s;
	text-decoration: none;
}

.nav-links a:hover {
	color: #fef3c7;
}

/* 手機menu toggle */
.nav-toggle {
	display: none;
}

.hamburger {
	display: none;
	flex-direction: column;
	cursor: pointer;
	gap: 0.4rem;
	width: 2rem;
	height: 2rem;
	justify-content: center;
	padding: 0.5rem;
	border-radius: 0.375rem;
	transition: background-color 0.2s;
}

.hamburger:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.hamburger span {
	display: block;
	height: 3px;
	width: 2rem;
	background: #fff;
	border-radius: 2px;
	transition: all 0.3s;
}

/* 手機menu */
.mobile-menu {
	display: none;
	flex-direction: column;
	background: #ea580c;
	position: absolute;
	top: 100%;
	right: 1rem;
	width: 12rem;
	border-radius: 0.75rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	overflow: hidden;
	z-index: 20;
}

.mobile-menu.show {
	display: flex;
}

.mobile-menu a {
	color: #fff;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid #fb923c;
	text-decoration: none;
	font-size: 1rem;
	transition: background 0.2s;
}

.mobile-menu a:last-child {
	border-bottom: none;
}

.mobile-menu a:hover {
	background: #fb923c;
}

.mobile-menu-close {
	background: transparent;
	border: none;
	cursor: pointer;
	z-index: 10;
	right: 0.5rem;
	top: 0.5rem;
}

.mobile-menu-close svg {
	width: 1.5rem;
	height: 1.5rem;
	pointer-events: none;
}

@keyframes fade-in-down {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 768px) {
	.logo {
		font-size: 1.25rem;
	}
	/* Hide desktop navigation */
	.nav-links {
		display: none;
	}

	/* Show hamburger menu */
	.hamburger {
		display: flex;
	}

	/* Mobile menu toggle states */
	#nav-toggle:checked ~ .mobile-menu {
		display: flex;
		animation: fade-in-down 0.3s;
	}

	/* Hamburger animation when active */
	#nav-toggle:checked + .hamburger span:nth-child(1) {
		transform: translateY(9px) rotate(45deg);
	}

	#nav-toggle:checked + .hamburger span:nth-child(2) {
		opacity: 0;
	}

	#nav-toggle:checked + .hamburger span:nth-child(3) {
		transform: translateY(-9px) rotate(-45deg);
	}
}