@font-face {
	font-family: OPPOSans-B5-M;
	src: url(/fonts/OPPOSans-B5-M.ttf);
}

body {
	position: relative;
	font-family: OPPOSans-B5-M;
	margin: 0;
	/* 核心：禁止水平滾動 */
	overflow-x: hidden;
}

img {
	width: 100%;
}

.pc {
	display: block;
}

.mo {
	display: none;
}

a {
	cursor: pointer;
	text-decoration: none;
}

p {
	padding-left: 1em;
	/* 首行左边距 */
	text-indent: -1em;
	/* 首行负缩进 */
	word-wrap: break-word;
	/* 在單詞內部進行換行 */
}

.dev {
	
}

#pc_back_full {
	position: absolute;
	
}

#pc_back {
	
}

/* 書籤 */
#bookmark1 {
    
    position: absolute;
    top: 217.9vw;
    right: 35.8vw;
    width: 28.3vw;
	height: 1vw;
}

/* 按鈕 */
#button1 {
    
    position: absolute;
    top: 237.7vw;
    left: 40.1vw;
    width: 20vw;
}

#button2 {
    
    position: absolute;
    top: 252.6vw;
    left: 33.4vw;
    width: 33.3vw;
}

#button4 {
    
    position: absolute;
    top: 349.9vw;
    right: 35.8vw;
    width: 28.3vw;
}

/* 彈跳視窗 */
/* 彈跳視窗 - 遮罩層 (保持不動，只修改 pointer-events 確保不擋路) */
.modal-overlay {
	/* 💥 移除：display: none; 💥 */
	position: fixed;
	z-index: -999 !important;
	/* 💥 隱藏時的 z-index 💥 */
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;

	background-color: rgba(0, 0, 0, 0.7);

	display: flex;
	/* 保持 flex，但不影響 z-index 隱藏 */
	justify-content: center;
	align-items: center;

	opacity: 0;
	/* 💥 隱藏時的透明度 💥 */
	transition: opacity 0.3s ease-out, z-index 0s 0.3s;
	/* 💥 關鍵：延遲 z-index 切換 💥 */

	pointer-events: none !important;
	/* 隱藏時強制穿透點擊 */
}

/* 顯示狀態 (由 jQuery 添加) */
.modal-overlay.active {
	z-index: 100 !important;
	/* 💥 啟動時的 z-index 💥 */
	opacity: 1;
	pointer-events: auto !important;
	/* 啟動時強制接收點擊 */
	transition: opacity 0.3s ease-out;
	/* 💥 移除 z-index 延遲 💥 */
}

/* 彈跳視窗內容框 - 關鍵樣式修改區 */
.modal-content {
	background-color: #000000;
	max-width: 50vw;
	height: 85vh;
	position: relative;
	transition: all 0.3s ease-out;
}

/* 彈窗內部的文字容器 */
.notice-text {
	height: 40vw;
	border-color: #d9c199;
	border-style: solid;
	border-radius: 2vw;
	margin-top: 2vw;
	padding: 2vw 2vw;
	overflow-y: auto;
}

/* 關閉按鈕 - 樣式調整 */
.close-btn {
	display: flex;
	color: #d9c199;
	background-color: black;
	position: absolute;
	top: 1vw;
	right: 1vw;
	width: 3vw;
	height: 3vw;
	font-size: 3vw;
	cursor: pointer;
	z-index: 9999;
	border-style: solid;
	border-radius: 50%;
	text-align: center;
	align-items: center;
	white-space: nowrap;
	justify-content: center;
}

/* 移除 HTML 中額外的關閉按鈕，保持一個 X 即可 */
.modal-content button.close-btn {
	display: none;
}

body.modal-open {
	/* 鎖定背景，避免捲動，並保持彈窗位置不動 */
	overflow: hidden !important;
	position: fixed;
	/* 💥 關鍵：將 body 鎖定在視口中 💥 */
	width: 100%;
}

/*手機版*/
@media(max-width: 768px) {
	.mo {
		display: block;
	}

	.pc {
		display: none;
	}

	#mo_back_full {
		
		position: absolute;
	}

	#mo_back {
		
		position: relative;
	}

	/* 書籤 */
	#bookmark1 {
		
		position: absolute;
		top: 547.9vw;
		right: 35.8vw;
		width: 28.3vw;
		height: 1vw;
	}

	/* 動圖 */
	#button1 {
        
        position: absolute;
        top: 608.6vw;
        left: 26vw;
        width: 48vw;
	}
	
	#button2 {
        
        position: absolute;
        top: 635.4vw;
        left: 16.3vw;
        width: 67.4vw;
	}

	#button4 {
        
        position: absolute;
        top: 827.4vw;
        left: 22.2vw;
        width: 55.6vw;
	}

	/* 彈跳視窗 */
	/* 彈跳視窗 - 遮罩層 (保持不動，只修改 pointer-events 確保不擋路) */
	.modal-overlay {
		/* 💥 移除：display: none; 💥 */
		position: fixed;
		z-index: -999 !important;
		/* 💥 隱藏時的 z-index 💥 */
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;

		background-color: rgba(0, 0, 0, 0.7);

		display: flex;
		/* 保持 flex，但不影響 z-index 隱藏 */
		justify-content: center;
		align-items: center;

		opacity: 0;
		/* 💥 隱藏時的透明度 💥 */
		transition: opacity 0.3s ease-out, z-index 0s 0.3s;
		/* 💥 關鍵：延遲 z-index 切換 💥 */

		pointer-events: none !important;
		/* 隱藏時強制穿透點擊 */
	}

	/* 顯示狀態 (由 jQuery 添加) */
	.modal-overlay.active {
		z-index: 100 !important;
		/* 💥 啟動時的 z-index 💥 */
		opacity: 1;
		pointer-events: auto !important;
		/* 啟動時強制接收點擊 */
		transition: opacity 0.3s ease-out;
		/* 💥 移除 z-index 延遲 💥 */
	}

	/* 彈跳視窗內容框 - 關鍵樣式修改區 */
	.modal-content {
		background-color: #000000;
		max-width: 75vw;
		height: 85vh;
		position: relative;
		transition: all 0.3s ease-out;
	}

	/* 彈窗內部的文字容器 */
	.notice-text {
		height: 114vw;
		border-color: #d9c199;
		border-style: solid;
		border-radius: 2vw;
		margin-top: 2vw;
		padding: 2vw 2vw;
		color: #d9c199;
		overflow-y: auto;
	}

	/* 關閉按鈕 - 樣式調整 */
	.close-btn {
		display: flex;
		color: #d9c199;
		background-color: black;
		position: absolute;
		top: -2vw;
		right: -3vw;
		width: 8vw;
		height: 8vw;
		font-size: 7vw;
		cursor: pointer;
		z-index: 9999;
		border-style: solid;
		border-radius: 50%;
		text-align: center;
		align-items: center;
		white-space: nowrap;
		justify-content: center;
	}

	/* 移除 HTML 中額外的關閉按鈕，保持一個 X 即可 */
	.modal-content button.close-btn {
		display: none;
	}

	body.modal-open {
		/* 鎖定背景，避免捲動，並保持彈窗位置不動 */
		overflow: hidden !important;
		position: fixed;
		/* 💥 關鍵：將 body 鎖定在視口中 💥 */
		width: 100%;
	}
}