/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500&family=Noto+Serif+TC:wght@600&display=swap');

/* --- 全局樣式 --- */
:root {
	--primary-bg: #FDFCF7;
	--text-color: #333333;
	--accent-color: #A9907E;
	--light-gray: #f4f4f4;
}

* { 
	box-sizing: border-box;
	margin: 0; 
	padding: 0;
}
html { 
scroll-behavior: smooth;
}

body {
	font-family: 'Noto Sans TC', sans-serif;
	line-height: 1.8;
	background-color: var(--primary-bg);
	color: var(--text-color);
	padding-top: 80px; /* 為固定頂部導覽列預留空間 */
}

h1, h2, h3 {
	font-family: 'Noto Serif TC', serif;
	font-weight: 600;
	margin-bottom: 20px;
	color: var(--accent-color);
}

.container {
	max-width: 800px;
	margin: 0 auto;
	padding: 40px 20px;
	text-align: center;
}

.cta-button {
	display: inline-block;
	background: var(--accent-color);
	color: white;
	padding: 12px 30px;
	border-radius: 5px;
	text-decoration: none;
	font-size: 1em;
	font-weight: 500;
	border: none;
	cursor: pointer;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- 頁面頂部導覽列 --- */
.page-header {
	background: rgba(253, 252, 247, 0.9);
	backdrop-filter: blur(10px);
	padding: 15px 30px;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid rgba(0,0,0,0.05);
}

.back-link {
	color: var(--text-color);
	text-decoration: none;
	font-size: 1em;
	transition: color 0.3s ease;
}
.back-link:hover {
	color: var(--accent-color);
}

.page-title {
	font-size: 1.5em;
	margin: 0;
	color: var(--accent-color);
}

/* --- 占卜功能區塊 --- */
.divination-box {
	background: white;
	padding: 40px;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.05);
	margin-bottom: 40px;
}

/* --- 結果顯示卡片 --- */
.result-card {
	background: white;
	padding: 30px 40px;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.05);
	text-align: center;
	min-height: 200px;
	line-height: 2;
}

.result-card h3 {
	text-align: center;
	font-size: 1.8em;
	margin-bottom: 25px;
}

/* --- 頁腳 --- */
.footer {
	padding: 40px 20px;
	font-size: 0.9em;
	color: #888;
	text-align: center;
}
.headerResult {
	margin-left: auto;
	margin-right: auto;
	td {
		height:50;
		width:100;
	}
	h2 {
		font-size: 30px;
		font-weight: bold;
	}
}

.center {
	margin-left: 150px;
	margin-right: auto;
}

.period {    
	vertical-align: top;
	font-size: 20px;
	right: 60%;
}

@media (max-width: 768px) {
	.center {
		margin-left: -50px;
		margin-right: auto;
	}
}