/* 全局重置 */
* {
	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;
}

/* 菜單樣式 */
@media (max-width: 1200px) {
	.menu-toggle {
		display: block;
		margin-left: auto;
		z-index: 1000;
		background: none;
		border: none;
		font-size: 32px;
		color: #FFE083;
	}

	.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.show {
		transform: translateY(0);
		opacity: 1;
	}
}

/* 返回頂部按鈕 */
.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:1280px) {
	.frame_all {
		width: 85%;
		padding: 1% 0;
	}
}

@media (max-width: 768px) {
	.frame_all {
		width: 95%;
	}

	.frameBG {
		flex-direction: column;
		align-items: center;
	}
}

@media (max-width: 480px) {
	.frame_all {
		width: 95%;
	}
}

.container {
	max-width: 4xl;
	margin: auto;
	padding: 2rem;
}

h1 {
	font-size: 2.5rem;
	font-weight: bold;
	color: #3B3E68;
	text-align: center;
}

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;
}

@media (max-width: 480px) {
	h1 {
		font-size: 1.5rem;
	}
}

/* 上一頁 */
.backbtn-content {
	display: flex;
	justify-content: center;
	width: 100%;
	margin-bottom: 1%;
}

.backbtn {
	width: 30%;
	max-width: 180px;
	padding: 5px 0;
	font-size: 14pt;
	color: white !important;
	border: 5px solid #a10042;
	background-color: #ff5e6c;
	border-radius: 15px;
	cursor: pointer;
	transition: box-shadow 0.3s ease, background-color 0.3s ease;
	display: block;
	/* 讓 <a> 像按鈕一樣佔滿空間 */
	text-align: center;
	/* 讓文字置中 */
	text-decoration: none !important;
	/* 移除下劃線 */
	box-sizing: border-box;
	/* 確保 padding 不會撐大寬度 */
}

.backbtn:hover {
	border: 5px solid #a10042;
	background-color: #df0059;
	text-shadow: 0 0 10px rgba(255, 199, 169, 0.8);
}

.backbtnstrok {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	color: transparent;
	-webkit-text-stroke: 5px #a10042;
	width: 100%;
	white-space: pre-wrap;
}

/*標題文字*/
.title-text {
	margin-left: 0;
	position: relative;
	display: inline-block;
	white-space: normal;
	word-break: break-word;
	font-size: 1.5rem;
	font-weight: bold;
	min-width: 0;
	z-index: 0;
}

.title-text .fill {
	position: relative;
	z-index: 2;
	color: #93FF5E;
}

.title-text .strok {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	color: transparent;
	-webkit-text-stroke: 5px #134C69;
	width: 100%;
	white-space: pre-wrap;
}

/* 標題背景 */
.accordion {
	width: 100%;
	max-width: 1178px;

	margin: 0 auto 5px auto;
	border: none;
	box-sizing: border-box;
	padding: 0 1vw;
	/* 增加左右留白，避免貼邊 */
}

.accordion img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.accordion-header {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	/*justify-content: space-between;*/
	width: 100%;
	height: 100px;
	padding: 0 10px;
	/*padding: 12px 48px 12px 24px;*/

	background-image: url('/img/downloadtiltleBG.webp');
	background-size: 100% 100%;
	background-repeat: no-repeat;
	background-position: center;

	cursor: pointer;
	color: #FFFCEF;
	box-sizing: border-box;
}

.titlestype1 {
	background-image: url('/img/newstitle1.webp');
}

.titlestype2 {
	background-image: url('/img/newstitle2.webp');
}

.titlestype1,
.titlestype2 {
	width: 136px;
	height: 102px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

/* 手機版自適應 */
@media (max-width: 1280px) {
	.accordion-header .title-text {
		font-size: 1.5rem;
		line-height: 1.5rem;
	}
}

@media (max-width: 768px) {
	.accordion-header {
		flex-direction: row;
		/* 不垂直排列，避免文字超過寬度時箭頭被擠下 */
		align-items: center;
		padding: 12px;
		font-size: 1rem;
	}

	.accordion-header .title-text {
		font-size: 1.5rem;
		line-height: 1.5rem;
	}
}

@media (max-width: 498px) {
	.accordion-header .title-text {
		font-size: 1rem;
		line-height: 1rem;
	}

	.accordion-header {
		height: 70px;
	}
}

.accordion-header .arrow {
	margin-left: auto;
	margin-right: 2%;
	line-height: 1;
	border-left: 15px solid transparent;
	border-right: 15px solid transparent;
	border-top: 20px solid white;
	transition: transform 0.3s ease;
	z-index: 1;
}

.accordion.active .arrow {
	transform: rotate(180deg);
}

.accordion-content {
	/* 🌟 移除這一行：
       display: none; 
    */

	padding: 0 1.5rem;
	/* 保持您的內邊距 */
	max-height: 0;
	/* 用 max-height 0 來隱藏內容 */
	overflow: hidden;
	transition: max-height 0.3s ease-out;
}

.accordion.active .accordion-content {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.AvectorLOGO {
	height: 100%;
	/* 或給固定尺寸 */
	max-height: 60px;
	/* 自訂，避免放大超出 menu */
	display: block;
	/* 移除底部空隙 */
	object-fit: contain;
	/* 保持比例 */
}

@media (max-width: 768px) {
	.AvectorLOGO {
		max-height: 50px;
	}
}