/* ===================================================================
   玻璃擬態（Glassmorphism）前台全站樣式（layouts/site.blade.php 載入）
   說明：原生 CSS 為主，僅借用 Bootstrap 的 grid / utility class 排版
=================================================================== */

/* 色彩、圓角、模糊等共用變數 */
:root {
	--glass_bg_1: #140e2e;
	--glass_bg_2: #2a1a5e;
	--glass_bg_3: #123a52;
	--glass_bg_4: #0c1f33;
	--glass_white: rgba(255, 255, 255, 0.14);
	--glass_white_strong: rgba(255, 255, 255, 0.24);
	--glass_white_soft: rgba(255, 255, 255, 0.08);
	--glass_border: rgba(255, 255, 255, 0.32);
	--glass_shadow: 0 8px 32px rgba(8, 10, 24, 0.38);
	--accent: #ffb822;
	--accent_strong: #ff9d00;
	--text_light: #f5f7fb;
	--text_muted: rgba(245, 247, 251, 0.72);
	--text_dark: #1f2637;
	--text_dark_muted: #5b6373;
	--radius_lg: 24px;
	--radius_md: 16px;
	--radius_sm: 10px;
	--blur_lg: 22px;
	--blur_md: 14px;
}

/* ===================================================================
   1. 全站底色：固定漸層背景 + 模糊光暈色塊
=================================================================== */
html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--glass_bg_1);
	background-image: linear-gradient(135deg, var(--glass_bg_1) 0%, var(--glass_bg_2) 45%, var(--glass_bg_3) 78%, var(--glass_bg_4) 100%);
	background-attachment: fixed;
	background-size: cover;
	color: var(--text_light);
	font-family: 'Noto Sans TC', 'Poppins', sans-serif;
	position: relative;
	min-height: 100vh;
	overflow-x: hidden;
}

/* 背景光暈色塊（純 CSS，不使用任何圖片） */
body::before,
body::after {
	content: '';
	position: fixed;
	border-radius: 50%;
	filter: blur(90px);
	z-index: 0;
	pointer-events: none;
}

body::before {
	width: 620px;
	height: 620px;
	top: -160px;
	left: -140px;
	background: radial-gradient(circle, rgba(255, 184, 34, 0.35), transparent 70%);
}

body::after {
	width: 720px;
	height: 720px;
	bottom: -220px;
	right: -180px;
	background: radial-gradient(circle, rgba(64, 200, 255, 0.28), transparent 70%);
}
@media (max-width: 768px) {
	body::before {
		width: 380px;
		height: 380px;
	}
	body::after {
		width: 420px;
		height: 420px;
	}
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Poppins', 'Noto Sans TC', sans-serif;
	font-weight: 700;
}

.home_page {
	position: relative;
	z-index: 1;
	padding-top: 96px;
}

/* 版心容器：加大左右留白，避免內容在小螢幕直接貼齊螢幕邊緣 */
.container {
	padding-left: 24px;
	padding-right: 24px;
}
@media (max-width: 575px) {
	.container {
		padding-left: 20px;
		padding-right: 20px;
	}
}

/* ===================================================================
   2. 玻璃共用元件：面板、按鈕
=================================================================== */
.glass_panel {
	background: var(--glass_white);
	backdrop-filter: blur(var(--blur_lg));
	-webkit-backdrop-filter: blur(var(--blur_lg));
	border: 1px solid var(--glass_border);
	border-radius: var(--radius_lg);
	box-shadow: var(--glass_shadow);
}

.glass_btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--accent), var(--accent_strong));
	color: var(--text_dark);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(0, 130, 200, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass_btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(0, 130, 200, 0.45);
	color: var(--text_dark);
}

.section_head {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 44px;
}

.section_head span.section_eyebrow {
	display: inline-block;
	color: var(--accent);
	font-weight: 700;
	letter-spacing: 2px;
	font-size: 13px;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.section_head h2 {
	font-size: 32px;
	margin: 0 0 12px;
}
@media (max-width: 575px) {
	.section_head h2 {
		font-size: 24px;
	}
}

.section_head p {
	color: var(--text_muted);
	font-size: 15px;
	line-height: 1.8;
	margin: 0;
}

section.glass_section {
	padding: 70px 0;
}
@media (max-width: 768px) {
	section.glass_section {
		padding: 46px 0;
	}
}

/* ===================================================================
   3. Header 導覽列（固定式毛玻璃）
=================================================================== */
.site_header_glass {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: rgba(20, 14, 46, 0.42);
	backdrop-filter: blur(var(--blur_md));
	-webkit-backdrop-filter: blur(var(--blur_md));
	border-bottom: 1px solid var(--glass_border);
}

.site_header_inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 16px;
	padding-bottom: 16px;
}

.site_logo {
	color: var(--text_light);
	font-size: 20px;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: 0.5px;
}

.site_logo:hover {
	color: var(--accent);
}

.site_nav_list {
	display: flex;
	align-items: center;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site_nav_list a {
	color: var(--text_muted);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: color 0.2s ease;
}

.site_nav_list a:hover {
	color: var(--text_light);
}

/* 目前所在頁的選單項目：強調色文字 + 底線 */
.site_nav_list a.active {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 8px;
}

/* 第二層子選單（桌機）：滑過或鍵盤聚焦第一層項目時，在下方顯示下拉面板 */
.site_nav_list > li.has_sub_nav {
	position: relative;
	display: flex;
	align-items: center;
	gap: 4px;
	/* 上下延伸可滑過範圍，滑鼠從選單移到下拉面板時不會中斷 */
	padding: 12px 0;
	margin: -12px 0;
}

.sub_nav_toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	padding: 0;
	border: none;
	background: none;
	color: var(--text_muted);
	font-size: 10px;
	cursor: pointer;
	transition: transform 0.2s ease, color 0.2s ease;
}

.sub_nav_list {
	position: absolute;
	top: 100%;
	left: 50%;
	z-index: 20;
	min-width: 180px;
	list-style: none;
	margin: 0;
	padding: 8px;
	background: rgba(20, 14, 46, 0.92);
	backdrop-filter: blur(var(--blur_md));
	-webkit-backdrop-filter: blur(var(--blur_md));
	border-radius: var(--radius_sm);
	border: 1px solid var(--glass_border);
	box-shadow: var(--glass_shadow);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.sub_nav_list a {
	display: block;
	padding: 10px 14px;
	border-radius: 8px;
	white-space: nowrap;
}

.sub_nav_list a:hover,
.sub_nav_list a.active {
	background: var(--glass_white_soft);
	color: var(--accent);
	text-decoration: none;
}

.site_nav_list > li.has_sub_nav:hover .sub_nav_list,
.site_nav_list > li.has_sub_nav:focus-within .sub_nav_list,
.site_nav_list > li.is_sub_open .sub_nav_list {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.site_nav_list > li.has_sub_nav:hover .sub_nav_toggle,
.site_nav_list > li.is_sub_open .sub_nav_toggle {
	color: var(--accent);
	transform: rotate(180deg);
}

.site_header_extra {
	display: flex;
	align-items: center;
	gap: 18px;
}

.language_switch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.language_switch a {
	color: var(--text_muted);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
}

.language_switch a.active {
	color: var(--accent);
}

.site_social_icon {
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (max-width: 575px) {
	/* 小螢幕寬度不足，隱藏 header 社群圖示，避免漢堡按鈕被擠出畫面 */
	.site_social_icon {
		display: none;
	}
}

.site_social_icon a {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--glass_white_soft);
	border: 1px solid var(--glass_border);
	color: var(--text_light);
	font-size: 13px;
	text-decoration: none;
	transition: background 0.2s ease;
}

.site_social_icon a:hover {
	background: var(--accent);
	color: var(--text_dark);
}

.member_nav_link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--text_light);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.member_nav_link:hover {
	color: var(--accent);
}

.nav_toggle_btn {
	display: none;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--glass_white_soft);
	border: 1px solid var(--glass_border);
	color: var(--text_light);
	align-items: center;
	justify-content: center;
	font-size: 18px;
}

/* 漢堡選單模式（header 加上 nav_collapsed）：螢幕 ≤ 991px 或分類數超過上限時由 JS 切換 */
/* 漢堡按鈕排到最右邊，右側功能區靠右緊貼在它左邊 */
.nav_collapsed .nav_toggle_btn {
	display: inline-flex;
	order: 3;
	margin-left: 12px;
	flex-shrink: 0;
}
.nav_collapsed .site_header_extra {
	margin-left: auto;
}
/* 漢堡按鈕展開時改為強調色，提示選單已開啟 */
.nav_collapsed .nav_toggle_btn[aria-expanded="true"] {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--text_dark);
}
/* 下拉選單：與版心左右留白對齊，以淡入 + 下滑動畫開合 */
.nav_collapsed .site_nav_list {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	flex-direction: column;
	align-items: stretch;
	gap: 2px;
	padding: 8px;
	margin: 8px 24px 0;
	max-height: calc(100vh - 100px);
	overflow-y: auto;
	background: rgba(20, 14, 46, 0.92);
	backdrop-filter: blur(var(--blur_md));
	-webkit-backdrop-filter: blur(var(--blur_md));
	border-radius: var(--radius_md);
	border: 1px solid var(--glass_border);
	box-shadow: var(--glass_shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
@media (min-width: 992px) {
	/* 桌機寬度：下拉選單改為貼齊版心右側的固定寬度面板，不橫跨整個螢幕 */
	.nav_collapsed .site_header_inner {
		position: relative;
	}
	.nav_collapsed .site_nav_list {
		left: auto;
		right: 24px;
		width: 300px;
		margin: 8px 0 0;
	}
}
@media (max-width: 575px) {
	.nav_collapsed .site_nav_list {
		margin: 8px 20px 0;
	}
}
.nav_collapsed .site_nav_list.is_open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.nav_collapsed .site_nav_list li + li {
	border-top: 1px solid var(--glass_border);
}
.nav_collapsed .site_nav_list a {
	display: block;
	padding: 12px 16px;
	border-radius: var(--radius_sm);
	font-size: 15px;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}
.nav_collapsed .site_nav_list a:hover,
.nav_collapsed .site_nav_list a:active,
.nav_collapsed .site_nav_list a.active {
	background: var(--glass_white_soft);
	color: var(--accent);
}
/* 漢堡選單模式的子選單：箭頭在項目右側，點擊後在下方展開縮排的子項目 */
.nav_collapsed .site_nav_list > li.has_sub_nav {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	padding: 0;
	margin: 0;
}
.nav_collapsed .sub_nav_toggle {
	width: 40px;
	height: 40px;
	font-size: 12px;
	transform: none;
}
.nav_collapsed .site_nav_list > li.has_sub_nav:hover .sub_nav_toggle {
	color: var(--text_muted);
	transform: none;
}
.nav_collapsed .site_nav_list > li.is_sub_open .sub_nav_toggle {
	color: var(--accent);
	transform: rotate(180deg);
}
.nav_collapsed .sub_nav_list {
	position: static;
	grid-column: 1 / -1;
	display: none;
	min-width: 0;
	padding: 0 0 6px 16px;
	background: none;
	border: none;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: none;
}
.nav_collapsed .site_nav_list > li.is_sub_open .sub_nav_list {
	display: block;
	transform: none;
}
.nav_collapsed .sub_nav_list li + li {
	border-top: none;
}
.nav_collapsed .sub_nav_list a {
	padding: 10px 16px;
	font-size: 14px;
	white-space: normal;
}

@media (max-width: 575px) {
	.site_header_extra {
		gap: 12px;
	}
	.site_logo {
		flex-shrink: 0;
	}
}

/* ===================================================================
   4. Hero 主視覺
=================================================================== */
.home_hero {
	padding: 60px 0 30px;
}

.home_hero_panel {
	padding: 56px 48px;
	max-width: 720px;
}
@media (max-width: 575px) {
	.home_hero_panel {
		padding: 34px 24px;
	}
}

.home_hero_panel span.section_eyebrow {
	display: inline-block;
	color: var(--accent);
	font-weight: 700;
	letter-spacing: 2px;
	font-size: 13px;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.home_hero_panel h1 {
	font-size: 44px;
	line-height: 1.25;
	margin: 0 0 16px;
}
@media (max-width: 575px) {
	.home_hero_panel h1 {
		font-size: 30px;
	}
}

.home_hero_panel p {
	color: var(--text_muted);
	font-size: 16px;
	line-height: 1.8;
	margin: 0 0 28px;
}

/* 第二張以後的 Banner 標題（h2，樣式同 h1） */
.home_hero_panel .home_hero_title {
	font-size: 44px;
	line-height: 1.25;
	margin: 0 0 16px;
}
@media (max-width: 575px) {
	.home_hero_panel .home_hero_title {
		font-size: 30px;
	}
}

/* Banner 輪播：外框、每一張（有圖片時圖片鋪滿、文字面板疊在左側） */
.home_hero_slider {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
}

.home_hero_slide {
	display: none;
	align-items: center;
	min-height: 460px;
	padding: 48px;
	background-size: cover;
	background-position: center;
}
@media (max-width: 575px) {
	.home_hero_slide {
		min-height: 360px;
		padding: 24px 16px 56px;
	}
}

.home_hero_slide.is_active {
	display: flex;
	animation: home_hero_fade 0.6s ease;
}

/* 有背景圖時文字面板改用深色半透明底，亮色圖片上的白字才看得清楚 */
.home_hero_slide.has_image .home_hero_panel {
	background: rgba(20, 14, 46, 0.68);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

@keyframes home_hero_fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* 左右箭頭 */
.home_hero_arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.75);
	color: #333;
	cursor: pointer;
	z-index: 2;
}
@media (max-width: 575px) {
	.home_hero_arrow {
		display: none;
	}
}

.home_hero_arrow.is_prev {
	left: 16px;
}

.home_hero_arrow.is_next {
	right: 16px;
}

/* 下方圓點 */
.home_hero_dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 18px;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 2;
}

.home_hero_dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
	cursor: pointer;
}

.home_hero_dot.is_active {
	width: 26px;
	border-radius: 5px;
	background: var(--accent);
}

/* 區塊底部的「查看全部」按鈕 */
.home_section_more {
	text-align: center;
	margin-top: 28px;
}

/* ===================================================================
   5. 品牌故事區塊
=================================================================== */
.home_about_panel {
	padding: 48px;
	display: flex;
	align-items: center;
	gap: 40px;
}
@media (max-width: 768px) {
	.home_about_panel {
		flex-direction: column;
		padding: 30px;
		gap: 24px;
	}
}

.home_about_text {
	flex: 1 1 55%;
}

.home_about_text span.section_eyebrow {
	color: var(--accent);
	font-weight: 700;
	letter-spacing: 2px;
	font-size: 13px;
	text-transform: uppercase;
}

.home_about_text h2 {
	font-size: 28px;
	margin: 10px 0 6px;
}

.home_about_text h4 {
	font-size: 18px;
	color: var(--accent);
	margin: 0 0 14px;
}

.home_about_text p {
	color: var(--text_muted);
	line-height: 1.9;
	margin-bottom: 22px;
}

.home_about_media {
	flex: 1 1 45%;
}

.home_about_media img {
	width: 100%;
	border-radius: var(--radius_md);
	display: block;
	border: 1px solid var(--glass_border);
}

/* ===================================================================
   6. 服務項目 / 作品展示 / 客戶見證：共用卡片網格
=================================================================== */
.home_card_grid {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -14px;
}

.home_card_col {
	padding: 0 14px;
	margin-bottom: 28px;
}

.glass_card {
	padding: 28px;
	height: 100%;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glass_card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(8, 10, 24, 0.45);
}

.glass_card_media {
	border-radius: var(--radius_sm);
	overflow: hidden;
	margin-bottom: 18px;
}

.glass_card_media img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.glass_card h3,
.glass_card h4 {
	font-size: 18px;
	margin: 0 0 8px;
}

.glass_card p {
	color: var(--text_muted);
	font-size: 14px;
	line-height: 1.7;
	margin: 0;
}

/* 專業團隊卡片：置中人像樣式 */
.home_team_card {
	text-align: center;
}

.home_team_card .glass_card_media img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	margin: 0 auto;
	border: 2px solid var(--glass_border);
}

.home_team_card .team_position {
	display: block;
	color: var(--accent);
	font-size: 13px;
	margin-top: 4px;
}

/* 最新文章卡片：日期標籤 */
.home_blog_card .blog_date {
	display: inline-block;
	color: var(--accent);
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 10px;
}

.home_blog_card h4 a,
.home_gallery_card h3 a {
	color: var(--text_light);
	text-decoration: none;
}

/* 客戶見證卡片 */
.home_client_card {
	text-align: center;
}

.home_client_card .glass_card_media img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	margin: 0 auto 16px;
	object-fit: cover;
}

.home_client_card strong {
	display: block;
	margin-top: 12px;
}

.home_client_card .client_position {
	color: var(--text_muted);
	font-size: 13px;
}

.home_card_col.col_lg_3 {
	flex: 0 0 25%;
	max-width: 25%;
}

.home_card_col.col_lg_4 {
	flex: 0 0 33.3333%;
	max-width: 33.3333%;
}

.home_card_col.col_lg_6 {
	flex: 0 0 50%;
	max-width: 50%;
}
@media (max-width: 991px) {
	.home_card_col.col_lg_3,
	.home_card_col.col_lg_4,
	.home_card_col.col_lg_6 {
		flex: 0 0 50%;
		max-width: 50%;
	}
}
@media (max-width: 575px) {
	.home_card_col.col_lg_3,
	.home_card_col.col_lg_4,
	.home_card_col.col_lg_6 {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

/* ===================================================================
   7. Footer 玻璃面板
=================================================================== */
.site_footer_glass {
	width: calc(100% - 48px);
	max-width: 1140px;
	margin: 60px auto 24px;
	padding: 40px 40px 20px;
}
@media (max-width: 575px) {
	.site_footer_glass {
		width: calc(100% - 40px);
		margin: 40px auto 16px;
		padding: 28px 22px 16px;
	}
}

/* 後台上傳的 Logo 圖片（高度固定，寬度依比例） */
.site_logo_img {
	display: block;
	height: 44px;
	width: auto;
	max-width: 200px;
	object-fit: contain;
}
@media (max-width: 575px) {
	.site_logo_img {
		height: 36px;
	}
}

/* 頁尾社群連結 */
.footer_social {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

.footer_social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
	color: inherit;
}

.footer_contact {
	margin-bottom: 28px;
}

.footer_contact h5 {
	font-size: 17px;
	margin-bottom: 18px;
}

.footer_contact ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer_contact li {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--text_muted);
	font-size: 14px;
	margin-bottom: 10px;
}

.footer_contact li i {
	color: var(--accent);
	width: 18px;
	text-align: center;
}

.footer_contact li a {
	color: var(--text_muted);
	text-decoration: none;
}

.site_footer_glass .row {
	justify-content: center;
}
@media (min-width: 768px) {
	.footer_contact {
		margin-bottom: 0;
	}
}

.footer_bottom {
	border-top: 1px solid var(--glass_border);
	margin-top: 24px;
	padding-top: 18px;
	text-align: center;
	color: var(--text_muted);
	font-size: 13px;
}

/* 頁尾網站製作署名 */
.footer_credit {
	margin-left: 14px;
}
.footer_credit a {
	color: inherit;
	text-decoration: none;
}
.footer_credit a:hover {
	color: var(--accent);
}
@media (max-width: 768px) {
	.footer_credit {
		display: block;
		margin: 6px 0 0;
	}
}

/* 回到頂部按鈕 */
.scroll_top_btn {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--glass_white_strong);
	backdrop-filter: blur(var(--blur_md));
	-webkit-backdrop-filter: blur(var(--blur_md));
	border: 1px solid var(--glass_border);
	color: var(--text_light);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 40;
	text-decoration: none;
}

.scroll_top_btn.is_visible {
	display: inline-flex;
}

/* ===================================================================
   8. 產品列表頁
=================================================================== */
.page_head {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 36px;
}

.page_head h1 {
	font-size: 34px;
	margin: 0 0 12px;
}
@media (max-width: 575px) {
	.page_head h1 {
		font-size: 26px;
	}
}

.page_head p {
	color: var(--text_muted);
	font-size: 15px;
	line-height: 1.8;
	margin: 0;
}

/* 分類籤 */
.category_tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-bottom: 40px;
}

.category_tab {
	padding: 10px 24px;
	border-radius: 999px;
	background: var(--glass_white_soft);
	border: 1px solid var(--glass_border);
	color: var(--text_muted);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.category_tab:hover {
	background: var(--glass_white);
	color: var(--text_light);
}

.category_tab.is_active {
	background: linear-gradient(135deg, var(--accent), var(--accent_strong));
	border-color: transparent;
	color: var(--text_dark);
}

/* 商品卡片 */
.product_card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.product_card .product_category_tag {
	display: inline-block;
	color: var(--accent);
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 8px;
}

.product_card h3 {
	color: var(--text_light);
}

.product_price {
	display: block;
	color: var(--accent);
	font-size: 18px;
	font-weight: 800;
	margin-top: 10px;
}

.product_stock_badge {
	display: inline-block;
	margin-top: 6px;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.product_stock_badge.is_out {
	background: rgba(220, 53, 69, 0.15);
	color: #dc3545;
}

.product_stock_badge.is_low {
	background: rgba(255, 152, 0, 0.15);
	color: #d17b00;
}

.product_empty_state {
	text-align: center;
	padding: 70px 20px;
	color: var(--text_muted);
	font-size: 15px;
}

/* 分頁 */
.glass_pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 30px;
}

.glass_pagination .page_btn {
	padding: 10px 22px;
	border-radius: 999px;
	background: var(--glass_white_soft);
	border: 1px solid var(--glass_border);
	color: var(--text_light);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.2s ease;
}

.glass_pagination .page_btn:hover {
	background: var(--glass_white);
}

.glass_pagination .page_btn.is_disabled {
	opacity: 0.35;
	pointer-events: none;
}

.glass_pagination .page_status {
	color: var(--text_muted);
	font-size: 14px;
}

/* ===================================================================
   9. 產品內頁
=================================================================== */
.product_detail_panel {
	display: flex;
	gap: 44px;
	padding: 48px;
	align-items: flex-start;
}
@media (max-width: 768px) {
	.product_detail_panel {
		flex-direction: column;
		padding: 28px;
		gap: 26px;
	}
}

.product_detail_gallery {
	flex: 1 1 45%;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.product_detail_main_image {
	border-radius: var(--radius_md);
	overflow: hidden;
	border: 1px solid var(--glass_border);
	aspect-ratio: 1 / 1;
	background: var(--glass_white_soft);
}

.product_detail_main_image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.product_detail_thumb_list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.product_detail_thumb_list button {
	width: 72px;
	height: 72px;
	padding: 0;
	border-radius: 10px;
	overflow: hidden;
	border: 2px solid transparent;
	cursor: pointer;
	background: none;
}

.product_detail_thumb_list button.is_active {
	border-color: var(--accent);
}

.product_detail_thumb_list img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.product_detail_info {
	flex: 1 1 55%;
	min-width: 0;
}

.product_detail_breadcrumb {
	color: var(--text_muted);
	font-size: 13px;
	margin-bottom: 14px;
}

.product_detail_breadcrumb a {
	color: var(--text_muted);
	text-decoration: none;
}

.product_detail_breadcrumb a:hover {
	color: var(--text_light);
}

.product_detail_info h1 {
	font-size: 28px;
	margin: 0 0 12px;
}
@media (max-width: 575px) {
	.product_detail_info h1 {
		font-size: 22px;
	}
}

.product_detail_price {
	display: block;
	color: var(--accent);
	font-size: 26px;
	font-weight: 800;
	margin-bottom: 24px;
}

.add_to_cart_row {
	display: flex;
	gap: 12px;
	margin-bottom: 20px;
}

.add_to_cart_quantity_input {
	width: 80px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--glass_white_soft);
	border: 1px solid var(--glass_border);
	color: var(--text_light);
	text-align: center;
}

.product_detail_content {
	color: var(--text_muted);
	line-height: 1.9;
	font-size: 15px;
}

.product_detail_content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius_sm);
}

.product_back_link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 30px;
	color: var(--text_muted);
	text-decoration: none;
	font-size: 14px;
}

.product_back_link:hover {
	color: var(--text_light);
}

/* ===================================================================
   10. 會員頁面（登入／註冊／忘記密碼／會員中心）
=================================================================== */
.auth_page {
	display: flex;
	justify-content: center;
}

.auth_card {
	max-width: 440px;
	width: 100%;
	padding: 48px;
}
@media (max-width: 575px) {
	.auth_card {
		padding: 30px 24px;
	}
}

.auth_card h1 {
	text-align: center;
	font-size: 26px;
	margin: 0 0 8px;
}

.auth_card .auth_subtitle {
	text-align: center;
	color: var(--text_muted);
	font-size: 14px;
	margin-bottom: 28px;
}

.auth_alert {
	padding: 12px 16px;
	border-radius: var(--radius_sm);
	font-size: 14px;
	margin-bottom: 20px;
}

.auth_alert.is_error {
	background: rgba(255, 99, 99, 0.15);
	color: #ffb3b3;
	border: 1px solid rgba(255, 99, 99, 0.35);
}

.auth_alert.is_success {
	background: rgba(94, 234, 163, 0.15);
	color: #8ff0bb;
	border: 1px solid rgba(94, 234, 163, 0.35);
}

.glass_form_group {
	margin-bottom: 18px;
}

.glass_form_group label {
	display: block;
	color: var(--text_muted);
	font-size: 13px;
	margin-bottom: 6px;
}

.glass_form_group input {
	width: 100%;
	padding: 12px 16px;
	border-radius: var(--radius_sm);
	background: var(--glass_white_soft);
	border: 1px solid var(--glass_border);
	color: var(--text_light);
	font-size: 14px;
}

.glass_form_group input:focus {
	outline: none;
	border-color: var(--accent);
	background: var(--glass_white_soft);
}

.glass_form_group input::placeholder {
	color: rgba(245, 247, 251, 0.4);
}

.auth_submit_btn {
	width: 100%;
	justify-content: center;
	border: none;
	cursor: pointer;
}

.auth_links {
	display: flex;
	justify-content: space-between;
	margin-top: 16px;
	font-size: 13px;
}

.auth_links a {
	color: var(--text_muted);
	text-decoration: none;
}

.auth_links a:hover {
	color: var(--text_light);
}

.auth_divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 24px 0;
	color: var(--text_muted);
	font-size: 12px;
}

.auth_divider::before,
.auth_divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--glass_white_soft);
}

.google_login_btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #3c4043;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}

.google_login_btn:hover {
	background: #fff;
}

/* LINE 登入按鈕（採用 LINE 官方品牌色 #06C755） */
.line_login_btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px;
	border-radius: 999px;
	background: #06c755;
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}

.line_login_btn:hover {
	background: #05a948;
	color: #fff;
}


.member_center_panel {
	padding: 48px;
	text-align: center;
}
@media (max-width: 575px) {
	.member_center_panel {
		padding: 30px 22px;
	}
}

.member_center_panel h1 {
	font-size: 26px;
	margin: 0 0 6px;
}

/* 會員中心的 LINE 綁定狀態 */
.member_line_status {
	margin: 0 0 20px;
	font-size: 14px;
	color: var(--text_muted);
}

.member_line_status .line_bind_link {
	color: #06c755;
	font-weight: 600;
	text-decoration: none;
}

.member_line_status .line_bind_link:hover {
	text-decoration: underline;
}

.member_center_panel .member_email_text {
	color: var(--text_muted);
	margin-bottom: 32px;
}

.member_nav_grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

.member_nav_grid a {
	padding: 14px 28px;
	border-radius: 999px;
	background: var(--glass_white_soft);
	border: 1px solid var(--glass_border);
	color: var(--text_light);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}

.member_nav_grid a:hover {
	background: var(--glass_white);
}

.member_nav_grid a.is_logout,
.member_nav_grid .member_logout_form .is_logout {
	color: #ffb3b3;
}

/* 會員中心的登出改為帶 CSRF 的表單送出，按鈕外觀沿用上方的選單項目樣式 */
.member_nav_grid .member_logout_form {
	margin: 0;
}

.member_nav_grid .member_logout_form .is_logout {
	padding: 14px 28px;
	border-radius: 999px;
	background: var(--glass_white_soft);
	border: 1px solid var(--glass_border);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.member_nav_grid .member_logout_form .is_logout:hover {
	background: var(--glass_white);
}

/* ===================================================================
   11. 購物車 / 訂單
=================================================================== */
.cart_panel {
	padding: 32px;
	margin-bottom: 32px;
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
}
@media (max-width: 575px) {
	.cart_panel {
		padding: 22px;
	}
}

.cart_item_row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--glass_border);
}

.cart_item_row:last-child {
	border-bottom: none;
}
@media (max-width: 575px) {
	.cart_item_row {
		flex-wrap: wrap;
	}
}

.cart_item_image {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: var(--radius_sm);
	flex-shrink: 0;
}

.cart_item_info {
	flex: 1;
	min-width: 0;
}

.cart_item_info h4 {
	margin: 0 0 4px;
	font-size: 15px;
}

.cart_item_unit_price {
	color: var(--text_muted);
	font-size: 13px;
}

.cart_item_quantity input {
	width: 70px;
	padding: 8px;
	border-radius: var(--radius_sm);
	background: var(--glass_white_soft);
	border: 1px solid var(--glass_border);
	color: var(--text_light);
	text-align: center;
}

.cart_item_subtotal {
	min-width: 100px;
	text-align: right;
	font-weight: 700;
	color: var(--accent);
}

.cart_remove_btn {
	background: none;
	border: none;
	color: #ffb3b3;
	cursor: pointer;
	font-size: 16px;
	padding: 8px;
}

.cart_coupon_row {
	padding-top: 20px;
	margin-top: 10px;
	border-top: 1px solid var(--glass_border);
}

.cart_coupon_input_group {
	display: flex;
	gap: 10px;
}

.cart_coupon_input_group input {
	flex: 1;
	padding: 10px 14px;
	border-radius: 8px;
	border: 1px solid var(--glass_border);
	background: var(--glass_white_soft);
	color: var(--text_light);
}
@media (max-width: 576px) {
	.cart_coupon_input_group {
		flex-direction: column;
	}
}

.cart_summary_row {
	display: flex;
	justify-content: space-between;
	padding-top: 10px;
	font-size: 14px;
	color: var(--text_muted);
}

.cart_total_row {
	display: flex;
	justify-content: space-between;
	padding-top: 20px;
	margin-top: 10px;
	border-top: 1px solid var(--glass_border);
	font-size: 18px;
	font-weight: 700;
}

.checkout_card {
	max-width: 520px;
	margin: 0 auto;
}

.cart_nav_link {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: var(--text_light);
	font-size: 15px;
	text-decoration: none;
}

.cart_nav_link:hover {
	color: var(--accent);
}

.cart_badge {
	position: absolute;
	top: -8px;
	right: -12px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--text_dark);
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}

.order_table_wrap {
	overflow-x: auto;
}

.order_table {
	width: 100%;
	border-collapse: collapse;
}

.order_table th,
.order_table td {
	padding: 14px 12px;
	text-align: left;
	border-bottom: 1px solid var(--glass_border);
	color: var(--text_muted);
	font-size: 14px;
	white-space: nowrap;
}

.order_table th {
	color: var(--text_light);
	font-weight: 700;
}

.order_table a {
	color: var(--accent);
	text-decoration: none;
}

.order_cancel_btn {
	margin-left: 10px;
	padding: 0;
	border: none;
	background: none;
	color: #ff6b6b;
	font-size: 14px;
	cursor: pointer;
}

.order_cancel_btn:hover {
	text-decoration: underline;
}

.order_status_tag {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.order_status_tag.status_pending {
	background: rgba(0, 130, 200, 0.12);
	color: var(--accent);
}

.order_status_tag.status_confirmed,
.order_status_tag.status_completed {
	background: rgba(94, 234, 163, 0.18);
	color: #8ff0bb;
}

.order_status_tag.status_cancelled {
	background: rgba(255, 99, 99, 0.18);
	color: #ffb3b3;
}

.order_result_panel {
	max-width: 520px;
	margin: 0 auto;
	padding: 48px;
	text-align: center;
}
@media (max-width: 575px) {
	.order_result_panel {
		padding: 30px 22px;
	}
}

.order_result_panel h1 {
	font-size: 26px;
	margin: 0 0 16px;
}

.order_result_panel p {
	color: var(--text_muted);
	margin-bottom: 8px;
}

/* ===================================================================
   12. 前台分類頁（後台分類管理的分類）
=================================================================== */
.category_panel {
	padding: 44px 48px;
}
@media (max-width: 575px) {
	.category_panel {
		padding: 28px 22px;
	}
}

.category_title {
	font-size: 32px;
	margin: 0 0 24px;
}
@media (max-width: 575px) {
	.category_title {
		font-size: 24px;
		margin-bottom: 18px;
	}
}

.category_cover {
	margin-bottom: 24px;
	border-radius: var(--radius_md);
	overflow: hidden;
}

.category_cover img {
	display: block;
	width: 100%;
	height: auto;
}

.category_content {
	color: var(--text_muted);
	font-size: 15px;
	line-height: 1.9;
}

.category_content img {
	max-width: 100%;
	height: auto;
}

/* 子分類卡片：桌機三欄、平板兩欄、手機一欄 */
.category_child_grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-top: 28px;
}
@media (max-width: 991px) {
	.category_child_grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 575px) {
	.category_child_grid {
		grid-template-columns: 1fr;
	}
}

.category_child_card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--radius_md);
	background: var(--glass_white_soft);
	border: 1px solid var(--glass_border);
	color: var(--text_light);
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.category_child_card:hover {
	transform: translateY(-3px);
	border-color: var(--accent);
	color: var(--accent);
}

.category_child_card img {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 1;
	object-fit: cover;
}

.category_child_card span {
	padding: 16px 18px;
	font-weight: 700;
}

.category_empty_text {
	color: var(--text_muted);
	margin: 0;
}

/* 卡片列表分類的內容卡片：桌機三欄、平板兩欄、手機一欄 */
.category_card_grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 8px;
}
@media (max-width: 991px) {
	.category_card_grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 575px) {
	.category_card_grid {
		grid-template-columns: 1fr;
	}
}

.category_card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--radius_md);
	background: var(--glass_white_soft);
	border: 1px solid var(--glass_border);
	color: var(--text_light);
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.category_card:hover {
	transform: translateY(-3px);
	border-color: var(--accent);
	color: var(--text_light);
}

.category_card img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.category_card_body {
	padding: 16px 18px 20px;
}

.category_card_date {
	display: block;
	color: var(--text_muted);
	font-size: 13px;
	margin-bottom: 6px;
}

.category_card_title {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 8px;
}

.category_card:hover .category_card_title {
	color: var(--accent);
}

.category_card_summary {
	color: var(--text_muted);
	font-size: 14px;
	line-height: 1.7;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* 文字列表版面：一列一則，日期在左、標題與摘要在右 */
.category_text_list {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	border-top: 1px solid var(--glass_border);
}

.category_text_list li {
	border-bottom: 1px solid var(--glass_border);
}

.category_text_item {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 20px 8px;
	color: var(--text_light);
	text-decoration: none;
	transition: background 0.2s ease;
}
@media (max-width: 575px) {
	.category_text_item {
		flex-wrap: wrap;
		gap: 6px 12px;
		padding: 16px 4px;
	}
}

.category_text_item:hover {
	background: var(--glass_white_soft);
	color: var(--text_light);
}

.category_text_date {
	flex-shrink: 0;
	width: 100px;
	color: var(--text_muted);
	font-size: 14px;
}
@media (max-width: 575px) {
	.category_text_date {
		width: 100%;
		font-size: 13px;
	}
}

.category_text_body {
	flex: 1;
	min-width: 0;
}

.category_text_title {
	font-size: 17px;
	font-weight: 700;
	margin: 0;
	transition: color 0.2s ease;
}

.category_text_item:hover .category_text_title {
	color: var(--accent);
}

.category_text_summary {
	color: var(--text_muted);
	font-size: 14px;
	line-height: 1.7;
	margin: 6px 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.category_text_arrow {
	flex-shrink: 0;
	color: var(--text_muted);
	font-size: 12px;
	transition: transform 0.2s ease, color 0.2s ease;
}
@media (max-width: 575px) {
	.category_text_arrow {
		display: none;
	}
}

.category_text_item:hover .category_text_arrow {
	color: var(--accent);
	transform: translateX(4px);
}

/* 問答摺疊版面：點問題展開答案 */
.category_faq_list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 8px;
}

.category_faq_item {
	border-radius: var(--radius_sm);
	background: var(--glass_white_soft);
	border: 1px solid var(--glass_border);
	transition: border-color 0.2s ease;
}

.category_faq_item[open] {
	border-color: var(--accent);
}

.category_faq_question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
@media (max-width: 575px) {
	.category_faq_question {
		padding: 16px;
		font-size: 15px;
	}
}

/* 隱藏瀏覽器預設的三角形，改用右側的加號圖示 */
.category_faq_question::-webkit-details-marker {
	display: none;
}

.category_faq_question:hover,
.category_faq_item[open] .category_faq_question {
	color: var(--accent);
}

.category_faq_icon {
	flex-shrink: 0;
	font-size: 13px;
	transition: transform 0.2s ease;
}

.category_faq_item[open] .category_faq_icon {
	transform: rotate(45deg);
}

.category_faq_answer {
	padding: 0 22px 20px;
}
@media (max-width: 575px) {
	.category_faq_answer {
		padding: 0 16px 16px;
	}
}

.category_faq_answer > :last-child {
	margin-bottom: 0;
}

/* 圖片牆版面：桌機四欄、平板三欄、手機兩欄的正方形圖片 */
.category_gallery_grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-top: 8px;
}
@media (max-width: 991px) {
	.category_gallery_grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 575px) {
	.category_gallery_grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
}

.category_gallery_item {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	padding: 0;
	overflow: hidden;
	border: none;
	border-radius: var(--radius_sm);
	background: var(--glass_white_soft);
	cursor: zoom-in;
}

.category_gallery_item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.category_gallery_item:hover img,
.category_gallery_item:focus-visible img {
	transform: scale(1.06);
}

/* 圖片標題：滑過時從底部淡入 */
.category_gallery_caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 24px 12px 10px;
	background: linear-gradient(to top, rgba(8, 10, 24, 0.85), transparent);
	color: var(--text_light);
	font-size: 13px;
	font-weight: 600;
	text-align: left;
	opacity: 0;
	transition: opacity 0.2s ease;
}
@media (max-width: 575px) {
	/* 手機沒有滑過效果，標題直接顯示 */
	.category_gallery_caption {
		opacity: 1;
		padding: 18px 8px 8px;
		font-size: 12px;
	}
}

.category_gallery_item:hover .category_gallery_caption,
.category_gallery_item:focus-visible .category_gallery_caption {
	opacity: 1;
}

/* 圖片放大檢視視窗 */
.gallery_lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 24px;
	background: rgba(8, 10, 24, 0.92);
}
@media (max-width: 575px) {
	.gallery_lightbox {
		padding: 16px;
	}
}

/* display: flex 會蓋過 hidden 屬性，需明確指定隱藏 */
.gallery_lightbox[hidden] {
	display: none;
}

/* 視窗開啟時鎖住背景捲動 */
body.gallery_lightbox_open {
	overflow: hidden;
}

.gallery_lightbox_figure {
	margin: 0;
	max-width: min(1100px, 100%);
	text-align: center;
}

.gallery_lightbox_figure img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 160px);
	margin: 0 auto;
	border-radius: var(--radius_sm);
	object-fit: contain;
}

.gallery_lightbox_figure figcaption {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 14px;
	color: var(--text_light);
	font-size: 15px;
}

.gallery_lightbox_figure figcaption span {
	color: var(--text_muted);
	font-size: 14px;
}

.gallery_lightbox_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--glass_border);
	background: var(--glass_white_soft);
	color: var(--text_light);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.gallery_lightbox_btn:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--text_dark);
}

.gallery_lightbox_close {
	position: absolute;
	top: 20px;
	right: 20px;
}

/* 手機：左右切換按鈕改為浮在圖片兩側 */
@media (max-width: 575px) {
	.gallery_lightbox_prev,
	.gallery_lightbox_next {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		z-index: 1;
	}
	.gallery_lightbox_prev {
		left: 8px;
	}
	.gallery_lightbox_next {
		right: 8px;
	}
}

/* 分類頁與內容內頁的麵包屑 */
.site_breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	color: var(--text_muted);
	font-size: 13px;
}

.site_breadcrumb li + li::before {
	content: "/";
	margin: 0 8px;
	opacity: 0.6;
}

.site_breadcrumb a {
	color: var(--text_muted);
	text-decoration: none;
}

.site_breadcrumb a:hover {
	color: var(--accent);
}

.site_breadcrumb span {
	color: var(--text_light);
}

/* 後台預覽模式提示列（只有登入後台、從「前台預覽」開啟時出現） */
.preview_mode_bar {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2000;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: calc(100% - 32px);
	padding: 10px 16px;
	border: 1px solid var(--glass_border);
	border-radius: 12px;
	background: rgba(20, 14, 46, 0.92);
	color: var(--text_light);
	font-size: 14px;
	box-shadow: var(--glass_shadow);
}

.preview_mode_bar i {
	color: var(--accent);
}

/* ===================================================================
   13. 聯絡我們（/contact）
=================================================================== */
/* 聯絡我們頁的外框 */
.contact_card {
	max-width: 1000px;
	width: 100%;
	padding: 48px;
}
@media (max-width: 767px) {
	.contact_card {
		padding: 30px 24px;
	}
}

/* 左側聯絡資訊、右側留言表單 */
.contact_layout {
	display: grid;
	grid-template-columns: 1fr 1.6fr;
	gap: 48px;
}
@media (max-width: 767px) {
	.contact_layout {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

.contact_intro h1 {
	font-size: 26px;
	margin: 0 0 12px;
}

.contact_intro p {
	color: var(--text_muted);
	font-size: 14px;
	line-height: 1.8;
}

.contact_info_list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.contact_intro p + .contact_info_list {
	margin-top: 24px;
}

.contact_info_list li {
	display: flex;
	gap: 12px;
	margin-bottom: 14px;
	color: var(--text_light);
	font-size: 14px;
	word-break: break-word;
}

.contact_info_list i {
	width: 16px;
	margin-top: 4px;
	color: var(--accent);
}

.contact_info_list a {
	color: inherit;
}

.contact_form_row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}
@media (max-width: 575px) {
	.contact_form_row {
		grid-template-columns: 1fr;
	}
}

.glass_form_group textarea {
	width: 100%;
	min-height: 140px;
	padding: 12px 16px;
	border-radius: var(--radius_sm);
	background: var(--glass_white_soft);
	border: 1px solid var(--glass_border);
	color: var(--text_light);
	font-size: 14px;
	resize: vertical;
}

.glass_form_group textarea:focus {
	outline: none;
	border-color: var(--accent);
	background: var(--glass_white_soft);
}

.glass_form_group .is_invalid {
	border-color: rgba(255, 99, 99, 0.7);
}

.contact_required_mark {
	color: #ffb3b3;
	margin-left: 2px;
}

.contact_field_error {
	margin-top: 6px;
	color: #ffb3b3;
	font-size: 13px;
}

/* 防機器人欄位：移出畫面，真人看不到 */
.contact_trap_field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
