/* 修復語法錯誤 */
body.js-enabled header,
body.js-enabled footer,
body.js-enabled .brand-intro,
body.js-enabled .section-card,
body.js-enabled .main-sections,
body.js-enabled .navbar {
	background: transparent !important;
	box-shadow: none !important;
	color: inherit !important;
}

/* noscript內容在JS啟動時隱藏 */
body.js-enabled noscript, body.js-enabled noscript * {
	display: none !important;
}

/* 主內容區塊樣式 */
.main-sections {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 2rem;
	justify-content: center;
	margin: 2rem auto;
	max-width: 1200px;
	padding: 0 1rem;
}

.section-card {
	background: #fffbe6;
	border-radius: 16px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
	padding: 1.5rem;
	text-align: center;
	transition: transform 0.2s, box-shadow 0.2s;
	margin-bottom: 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 320px;
}

.section-card img {
	width: 160px;
	height: 160px;
	object-fit: contain;
	border-radius: 12px;
	margin-bottom: 1rem;
	background: #f3c16b;
	padding: 0.5rem;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section-card h2 {
	font-size: 1.3rem;
	color: #b97a2a;
	margin: 0.5rem 0;
	font-weight: bold;
}

.section-card p {
	color: #7a5c2e;
	font-size: 1rem;
	margin: 0.5rem 0 0 0;
	word-break: break-word;
}

/* noscript header 只在 JS 未啟動時顯示 */
noscript {
	display: block;
}
body.js-enabled noscript {
	display: none !important;
}

/* JS header 專用樣式，獨立於全域 */
.js-header {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	background: #1a1423;
	padding: 0.5rem 0;
	position: relative;
	z-index: 100;
}

.js-header-left, .js-header-right {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.js-header-center {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

.js-header-logo {
	max-width: 120px;
	height: auto;
	display: block;
}

.js-header-btn {
	background: #f36b6b;
	color: #fff;
	font-size: 1.1rem;
	font-weight: 600;
	padding: 0.5rem 1.5rem;
	border-radius: 24px;
	text-decoration: none;
	margin: 0 0.5rem;
	transition: background 0.2s, color 0.2s;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	display: inline-block;
}

.js-header-btn:hover {
	background: #ff8c5a;
	color: #fffbe6;
}

/* 修復結構問題 */
body {
	font-family: 'Segoe UI', 'Tahoma', 'Geneva', 'Verdana', sans-serif;
	background: transparent;
	margin: 0;
	color: #333;
}

header {
	background: #f3c16b;
	padding: 2rem 0 1rem 0;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

header h1 {
	font-size: 2.5rem;
	margin: 0;
	color: #b97a2a;
	letter-spacing: 2px;
}

header p {
	font-size: 1.2rem;
	color: #7a5c2e;
}

main {
	max-width: 900px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.games {
	display: flex;
	gap: 2rem;
	flex-wrap: wrap;
	justify-content: center;
}

.game-card {
	background: #fffbe6;
	border-radius: 16px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
	padding: 1.5rem;
	width: 320px;
	text-align: center;
	transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
	transform: translateY(-8px) scale(1.03);
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.game-card img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: 1rem;
}

.game-card h3 {
	font-size: 1.3rem;
	color: #b97a2a;
	margin: 0.5rem 0;
}

.game-card p {
	color: #7a5c2e;
	font-size: 1rem;
}

footer {
	background: #f3c16b; /* 調整背景色 */
	margin: 0; /* 移除多餘的 margin */
	padding: 2rem; /* 確保內部間距正常 */
	box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
	display: flex;
	flex-direction: row;
	justify-content: center; /* 將左右內容往中間靠 */
	gap: 2rem; /* 增加左右區塊間距 */
	height: auto; /* 確保頁尾高度自適應內容 */
	min-height: 100px; /* 設定最小高度避免過小 */
}

.footer-content {
	text-align: left;
	padding: 2rem 1rem 1rem 1rem;
	color: #7a5c2e;
	font-size: 1rem;
	flex: 1;
	max-width: 400px; /* 限制內容長度 */
}

.footer-logo {
	max-width: 100px;
	height: auto;
	margin-bottom: 1rem;
	display: block;
	margin: 0 auto; /* 確保 logo 置中 */
	flex: 1;
	text-align: center;
}

.footer-right {
	display: flex;
	flex-direction: column;
	align-items: center; /* 調整內容置中 */
	gap: 1rem;
	flex: 1;
	max-width: 400px; /* 限制內容長度 */
}

.footer-buttons {
	display: flex;
	gap: 1rem;
	justify-content: center; /* 按鈕置中 */
}

.footer-apps {
	display: flex;
	gap: 1rem;
	justify-content: center; /* APP 下載置中 */
}

body {
	/* ...existing code... */
	background-image: url('/img/10099.webp');
	background-size: 100% 100%; /* 確保背景圖片完全覆蓋 */
	background-position: center;
	background-repeat: no-repeat;
	height: auto; /* 確保背景圖片覆蓋整個內容 */
}

.image-container {
	width: 100%;
	display: flex;
	justify-content: center;
	margin: 20px 0;
}

.image-container img {
	width: 100%; /* 圖片寬度填滿容器 */
	height: auto; /* 保持圖片比例 */
	object-fit: cover; /* 確保圖片內容填滿容器 */
}

.intro-image {
	width: 80%; /* 圖片寬度 */
	height: auto; /* 保持比例 */
	border-radius: 8px; /* 圓角 */
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* 陰影 */
}

.contact-logo {
	width: 150px;
	height: auto;
	margin: 20px auto;
	display: block;
}

.line-button-container {
	text-align: center;
	margin: 20px 0;
}

.line-button {
	display: inline-block;
	padding: 10px 20px;
	background-color: #00c300;
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: bold;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	transition: background-color 0.3s ease;
}

.line-button:hover {
	background-color: #009a00;
}

.contact-form table {
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	border-collapse: collapse;
}

.contact-form td {
	padding: 10px;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.submit-button {
	padding: 10px 20px;
	background-color: transparent; /* 暫時設置為透明 */
	color: transparent; /* 暫時隱藏文字 */
	border: 1px dashed #ccc; /* 添加虛線邊框作為占位 */
	cursor: not-allowed; /* 禁用按鈕的鼠標樣式 */
}

.submit-button {
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.submit-button:hover {
	background-color: #e04e2a;
}

.enhanced-navbar {
	display: flex;
	justify-content: center;
	align-items: center;
	background: #edb149;
	padding: 0.5em 0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.navbar-list {
	display: flex;
	gap: 2em;
	list-style: none;
	margin: 0;
	padding: 0;
}

.navbar-item {
	display: flex;
	align-items: center;
}

.navbar-link {
	display: flex;
	align-items: center;
	gap: 0.5em;
	text-decoration: none;
	color: #222;
	font-size: 1.1em;
	padding: 0.5em 1em;
	border-radius: 8px;
	transition: background 0.2s, color 0.2s;
}

.navbar-link:hover,
.navbar-link:focus {
	background: #f5f5f5;
	color: #007bff;
}

.nav-icon {
	font-size: 1.2em;
}

/* 單篇文章頁面樣式 */
.single-post {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #fff; /* 白底確保文字清晰 */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.single-post .entry-header {
  text-align: center;
  margin-bottom: 30px;
}

.single-post .entry-title {
  font-size: 2em;
  margin: 20px 0;
  color: #222;
}

.single-post .post-thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.single-post .entry-excerpt {
  font-size: 1.2em;
  font-weight: 500;
  color: #555;
  margin-top: 15px;
}
