/* 全局重置 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: sans-serif;
}

.main-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	min-height: 100vh;
}

/* 菜單樣式 */
.menu-links a {
	position: relative;
	color: #FFE083;
	text-decoration: none;
	font-weight: 500;
	font-size: 21px;
	overflow: hidden;
	padding: 5px 12px;
	transition: color 0.3s ease;
	z-index: 1;
}

.menu-links a::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #FFBA19;
	/* 背景滑入的顏色 */
	transform: translateX(-100%);
	transition: transform 0.4s ease;
	border-radius: 3px;
	z-index: -1;
}

.menu-links a:hover::before {
	width: -1%;
	transform: translateX(95%);
}

.menu-links a:hover {
	color: #FF6619;
	font-weight: bold;
}

/* TOP手機板樣式 */
@media (max-width: 768px) {
	.menu-toggle {
		color: #FFE083;
		display: block;
		position: relative;
		margin-left: auto;
		z-index: 1000;
	}

	.menu-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 50px 0;
        gap: 12px;
        background-color: rgba(28, 29, 41, 0.8);
        backdrop-filter: blur(8px);
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 998;
    }

	.menu-links a {
		color: white;
		font-size: 18px;
	}

	.menu-links.show {
		display: flex;
	}
}

/* 返回頂部按鈕 */
.backtop {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 104px;
	height: 104px;
	background-image: url("img/backtop.png");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	border: none;
	cursor: pointer;
	z-index: 999;
	opacity: 0;
	pointer-events: none;
	transition: transform 0.3s ease, opacity 0.3s ease;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}

.backtop.show {
	opacity: 1;
	pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
	.backtop:hover {
		transform: scale(0.95);
	}
}

@media (hover: none),
(max-width: 768px) {
	.backtop {
		width: 56px;
		height: 56px;
	}

	.backtop:active {
		transform: scale(0.85);
	}
}

/* 黃色框框 */
.frame_all {
	width: 80%;
	padding: 1% 5%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	border: 5px solid #D9CAC5;
	border-radius: 15px;
	background-color: #FFFDF0;
}

@media (max-width: 768px) {
	.frame_all {
        width: 100%;
        border: none;
    }
	.frameBG {
		flex-direction: column;
		align-items: center;
	}
}

.container {
	max-width: 4xl;
	margin: auto;
	padding: 2rem;
}

h1 {
	font-size: 2.5rem;
	font-weight: bold;
	color: #3B3E68;
	text-align: center;
	margin-bottom: 2rem;
}

h2 {
	font-size: 1.75rem;
	font-weight: bold;
	color: #5F739C;
	margin-top: 2rem;
	margin-bottom: 1rem;
}

strong {
	font-weight: bold;
}

ul,
ol {
	padding-left: 2rem;
}

li {
	margin-bottom: 0.5rem;
}

.AvectorLOGO {
	height: 100%;
	/* 或給固定尺寸 */
	max-height: 60px;
	/* 自訂，避免放大超出 menu */
	display: block;
	/* 移除底部空隙 */
	object-fit: contain;
	/* 保持比例 */
}

@media (max-width: 768px) {
	.AvectorLOGO {
		max-height: 40px;
	}
}