/* 修復語法錯誤 */
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 {
	max-width: 160px;
	max-height: 160px;
	width: auto; /* 允許圖片保持原始寬度比例 */
	height: auto; /* 允許圖片保持原始高度比例 */
	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: #111; /* 改為深黑色 */
	margin: 0.5rem 0;
	font-weight: bold;
}

.section-card p {
	color: #111; /* 改為深黑色 */
	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: #111; /* 改為深黑色 */
}

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: #111; /* 改為深黑色 */
	letter-spacing: 2px;
}

header p {
	font-size: 1.2rem;
	color: #111; /* 改為深黑色 */
}

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%;
	max-height: 180px; /* 改為最大高度，避免過度拉伸 */
	object-fit: contain; /* 保持原圖比例 */
	border-radius: 12px;
	margin-bottom: 1rem;
}

.game-card h3 {
	font-size: 1.3rem;
	color: #111; /* 改為深黑色 */
	margin: 0.5rem 0;
}

.game-card p {
	color: #111; /* 改為深黑色 */
	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: #111; /* 改為深黑色 */
	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: cover; /* 保持比例，覆蓋整個背景但不變形 */
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed; /* 固定背景，內容滑動時背景不動 */
	height: auto; /* 確保背景圖片覆蓋整個內容 */
}

.image-container {
	width: 100%;
	display: flex;
	justify-content: center;
	margin: 20px 0;
}

.image-container img {
	max-width: 100%; /* 最大寬度不超過容器 */
	height: auto; /* 保持圖片比例 */
	object-fit: contain; /* 保持原圖比例，不裁切 */
}

.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;
}

/* egames.html 專用卡片樣式，避免影響全站 */
.egames-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 2rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}
.egames-card {
  background: #fffbe6;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 220px;
  max-width: 260px;
  width: 100%;
}
.egames-card img {
  display: block;
  margin: 0 auto 1rem auto;
  max-width: 200px;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #f3c16b;
}
.egames-card h3 {
  font-size: 1.2rem;
  color: #111; /* 改為深黑色 */
  margin: 0.5rem 0;
  font-weight: bold;
}
.egames-card a {
  background: #f36b6b;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 24px;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: inline-block;
}
.egames-card a:hover {
  background: #ff8c5a;
  color: #fffbe6;
}
@media (max-width: 700px) {
  .egames-cards {
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
  }
  .egames-card {
    max-width: 95vw;
    min-width: 0;
    padding: 1rem;
  }
  .egames-card img {
    max-width: 90vw;
    max-height: 140px;
  }
}

/* 營業時間表格樣式 */
.operating-hours {
	background: #fffbe6;
	border-radius: 16px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
	padding: 2rem;
	margin: 2rem 0;
	text-align: center;
}

.operating-hours h2 {
	font-size: 1.5rem;
	color: #111;
	margin-bottom: 1.5rem;
	font-weight: bold;
}

.hours-table-container {
	overflow-x: auto;
	margin: 1.5rem 0;
}

.hours-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hours-table th {
	background: #f3c16b;
	color: #111;
	padding: 1rem;
	text-align: center;
	font-weight: bold;
	font-size: 1rem;
}

.hours-table td {
	padding: 0.8rem 1rem;
	text-align: center;
	border-bottom: 1px solid #eee;
	color: #111;
}

.hours-table tbody tr:hover {
	background: #f9f9f9;
}

.maintenance-row {
	background: #fff3cd;
}

.maintenance-row:hover {
	background: #ffeaa7 !important;
}

.maintenance-notice {
	background: #e3f2fd;
	border: 1px solid #bbdefb;
	border-radius: 8px;
	padding: 1rem;
	margin-top: 1.5rem;
	text-align: left;
}

.maintenance-notice p {
	margin: 0.5rem 0;
	color: #111;
	font-size: 0.9rem;
}

.maintenance-notice strong {
	color: #1976d2;
}

/* 響應式設計 */
@media (max-width: 700px) {
	.hours-table th,
	.hours-table td {
		padding: 0.5rem;
		font-size: 0.9rem;
	}
	
	.maintenance-notice {
		padding: 0.8rem;
	}
	
	.maintenance-notice p {
		font-size: 0.8rem;
	}
}

/* 平台聲明區塊樣式 */
.platform-declaration {
	background: #fff8e1;
	border: 2px solid #ffc107;
	border-radius: 16px;
	padding: 2rem;
	margin: 2rem 0;
	box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.platform-declaration h2 {
	font-size: 1.5rem;
	color: #111;
	margin-bottom: 1.5rem;
	text-align: center;
	font-weight: bold;
}

.platform-declaration h3 {
	font-size: 1.3rem;
	color: #d84315;
	margin-bottom: 1rem;
	font-weight: bold;
	text-align: center;
}

.declaration-content {
	background: #ffffff;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.declaration-text p {
	color: #111;
	font-size: 1rem;
	line-height: 1.6;
	margin-bottom: 1rem;
}

.declaration-text ul {
	color: #111;
	font-size: 1rem;
	line-height: 1.6;
	margin: 1rem 0;
	padding-left: 1.5rem;
}

.declaration-text li {
	margin-bottom: 0.5rem;
}

.important-note {
	background: #ffebee;
	border: 1px solid #ffcdd2;
	border-radius: 8px;
	padding: 1rem;
	margin-top: 1.5rem;
}

.important-note p {
	color: #c62828;
	font-size: 0.95rem;
	margin: 0;
	font-weight: 500;
}

/* 聲明區塊響應式設計 */
@media (max-width: 700px) {
	.platform-declaration {
		padding: 1.5rem;
		margin: 1.5rem 0;
	}
	
	.platform-declaration h2 {
		font-size: 1.3rem;
	}
	
	.platform-declaration h3 {
		font-size: 1.1rem;
	}
	
	.declaration-text p,
	.declaration-text ul {
		font-size: 0.9rem;
	}
}

/* FAQ區塊樣式 */
.faq-section {
    background-color: #f9f9f9; /* 設定背景顏色 */
    padding: 20px; /* 添加內距 */
    border-radius: 10px; /* 添加圓角 */
    margin-top: 20px; /* 添加上方間距 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 添加陰影效果 */
}
.faq-section h2 {
    font-size: 24px; /* 設定標題字體大小 */
    color: #333; /* 設定標題文字顏色 */
    margin-bottom: 15px; /* 添加下方間距 */
}
.faq-section dl {
    margin: 0; /* 移除預設外距 */
    padding: 0; /* 移除預設內距 */
}
.faq-section dt {
    font-weight: bold; /* 設定問題文字加粗 */
    color: #007bff; /* 設定問題文字顏色 */
    margin-top: 10px; /* 添加上方間距 */
}
.faq-section dd {
    margin-left: 20px; /* 添加左側間距 */
    color: #555; /* 設定答案文字顏色 */
    line-height: 1.6; /* 設定行距 */
}

/* 更多優惠內容介紹按鈕樣式 */
.more-promotions {
    text-align: center; /* 置中按鈕 */
    margin-top: 20px; /* 添加上方間距 */
}
.more-promotions-button {
    display: inline-block; /* 設定按鈕為行內塊 */
    padding: 10px 20px; /* 添加內距 */
    background-color: #007bff; /* 設定背景顏色 */
    color: #fff; /* 設定文字顏色 */
    text-decoration: none; /* 移除文字裝飾 */
    border-radius: 5px; /* 添加圓角 */
    font-size: 16px; /* 設定字體大小 */
    cursor: pointer; /* 設定鼠標樣式 */
}
.more-promotions-button:hover {
    background-color: #0056b3; /* 設定 hover 效果 */
}

/* 註冊引導按鈕樣式 */
.guide-link {
    display: inline-block; /* 設定按鈕為行內塊 */
    padding: 10px 20px; /* 添加內距 */
    background-color: #28a745; /* 設定背景顏色 */
    color: #fff; /* 設定文字顏色 */
    text-decoration: none; /* 移除文字裝飾 */
    border-radius: 5px; /* 添加圓角 */
    font-size: 16px; /* 設定字體大小 */
    cursor: pointer; /* 設定鼠標樣式 */
    margin-top: 10px; /* 添加上方間距 */
}
.guide-link:hover {
    background-color: #218838; /* 設定 hover 效果 */
}

/* 活動優惠按鈕樣式 */
.promotion-link {
    display: inline-block; /* 設定按鈕為行內塊 */
    padding: 10px 20px; /* 添加內距 */
    background-color: #ffc107; /* 設定背景顏色 */
    color: #000; /* 設定文字顏色 */
    text-decoration: none; /* 移除文字裝飾 */
    border-radius: 5px; /* 添加圓角 */
    font-size: 16px; /* 設定字體大小 */
    cursor: pointer; /* 設定鼠標樣式 */
    margin-top: 10px; /* 添加上方間距 */
}
.promotion-link:hover {
    background-color: #e0a800; /* 設定 hover 效果 */
}
