/* ══ Player Selection Guide（digital-signage-products/player-selection-guide.html）══
   版型沿用 products-overview.css（.po-page / .po-robustie-page：Robustie 紫 hero、區塊標題、Contact、finalButton），
   本檔只放這頁新增的區塊：快速選擇器、應用情境、機種一覽、選購考量、FAQ。class 一律 psg- 前綴。 */

#MainWrap.psg-page {
	--psg-accent: #693ca5;
	--psg-accent-2: #8E5CD9;
	--psg-grad: linear-gradient(225deg, #8E5CD9 0%, #693ca5 100%);
	--psg-soft: #f3eefb;
	--psg-line: #e4e0ea;
	--psg-text: #595959;
}

.psg-page .psg-section {
	clear: both;
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 20px;
	box-sizing: border-box;
}
.psg-page .psg-band { background: #fff; }
.psg-page .psg-section > h2.f35 { margin: 0 0 8px; padding: 0; text-align: center; font-weight: 500; color: var(--psg-text); }
.psg-page .psg-section > .po-section__lead { margin-bottom: 40px; text-align: center; }
.psg-page .gt { font-family: good-times, 'Poppins', sans-serif; }

/* ── 1. 快速選擇器 ── */
.psg-finder {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}
.psg-finder__form { display: flex; flex-direction: column; gap: 14px; }

.psg-q {
	margin: 0;
	padding: 20px 22px;
	border: 1px solid var(--psg-line);
	border-radius: 12px;
	background: #fff;
	transition: opacity .25s, filter .25s;
}
.psg-q legend {
	float: left; /* 讓 legend 在 fieldset 內排版，不壓在框線上 */
	width: 100%;
	margin: 0 0 12px;
	padding: 0;
	font-size: 17px;
	font-weight: 500;
	color: #333;
}
.psg-q__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin-right: 10px;
	border-radius: 50%;
	background: var(--psg-grad);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	vertical-align: 1px;
}
/* 選項：卡片式＋左側圓形勾選（取代原本的 pill 按鈕） */
.psg-q__opts { clear: both; display: flex; gap: 8px; } /* 每題選項一律排成一列（Meg 2026-10-02） */
.psg-opt { position: relative; display: flex; flex: 1 1 0; min-width: 0; }
.psg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.psg-opt span {
	position: relative;
	flex: 1;
	display: block;
	padding: 40px 12px 12px; /* 勾選圈在上、文字在下，一列放 4 個也不擠 */
	border: 1.5px solid #e1dce8;
	border-radius: 10px;
	background: #fff;
	color: #333;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	overflow-wrap: anywhere;
	cursor: pointer;
	transition: background .2s, border-color .2s, box-shadow .2s;
}
/* 勾選圈 */
.psg-opt span::before {
	content: '';
	position: absolute;
	top: 12px;
	left: 12px;
	width: 20px;
	height: 20px;
	box-sizing: border-box;
	border: 1.5px solid #c9c1d6;
	border-radius: 50%;
	background: #fff;
	transition: background .2s, border-color .2s;
}
/* 勾勾 */
.psg-opt span::after {
	content: '';
	position: absolute;
	top: 17px;
	left: 19px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	transition: transform .2s;
}
.psg-opt span small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: #8a8a8a; }
.psg-opt span:hover { border-color: var(--psg-accent-2); }
.psg-opt input:checked + span { border-color: var(--psg-accent); background: var(--psg-soft); box-shadow: 0 2px 10px rgba(105, 60, 165, .12); }
.psg-opt input:checked + span::before { border-color: var(--psg-accent); background: var(--psg-accent); }
.psg-opt input:checked + span::after { transform: rotate(45deg) scale(1); }
.psg-opt input:focus-visible + span { outline: 2px solid var(--psg-accent-2); outline-offset: 2px; }
.psg-q.is-off { opacity: .4; filter: grayscale(1); pointer-events: none; }

/* 結果卡 */
.psg-result {
	position: sticky;
	top: 90px;
	overflow: hidden;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(105, 60, 165, .14);
}
.psg-result__head {
	padding: 14px 24px;
	background: var(--psg-grad);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.psg-result__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.psg-result__count { font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; opacity: .9; }

/* 推薦機種切換：上方機種 tab + 左右箭頭 + 可滑動的 scroll-snap 軌道 */
/* 機種切換：分頁標籤（tab page）。灰色標籤列接在紫色標題下，選中的分頁是白底、下緣紫線（Meg 要求線在名稱下方） */
.psg-result__tabs {
	display: flex;
	padding: 8px 8px 0;
	background: #f1edf7;
	border-bottom: 1px solid #e1dbea;
}
.psg-result__tabs[hidden] { display: none; }
.psg-tab {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	margin-bottom: -1px; /* 蓋住標籤列底線，讓選中的分頁與內容相連 */
	padding: 11px 6px 10px;
	border: 1px solid transparent;
	border-bottom: 3px solid transparent;
	border-radius: 8px 8px 0 0;
	background: transparent;
	color: #8a8496;
	font-size: 14px;
	white-space: nowrap;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.psg-tab:hover { color: var(--psg-accent); background: rgba(255, 255, 255, .55); }
.psg-tab.is-active {
	border-color: #e1dbea;
	border-bottom-color: var(--psg-accent);
	background: #fff;
	color: var(--psg-accent);
}
.psg-tab:focus-visible { outline: 2px solid var(--psg-accent-2); outline-offset: -2px; }

.psg-slider { position: relative; }
.psg-slider__track { touch-action: pan-y; }
.psg-slide { box-sizing: border-box; }
.psg-slide.is-active { animation: psgFade .3s ease; }
.psg-slider__nav {
	position: absolute;
	top: 105px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--psg-line);
	border-radius: 50%;
	background: #fff;
	color: var(--psg-accent);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
	cursor: pointer;
}
.psg-slider__nav--prev { left: 12px; }
.psg-slider__nav--next { right: 12px; }
.psg-slider__nav:disabled { opacity: .3; cursor: default; }
.psg-slider.is-single .psg-slider__nav { display: none; }

.psg-result__badge {
	display: inline-block;
	margin-bottom: 8px;
	padding: 3px 10px;
	border-radius: 999px;
	background: #eee;
	color: #666;
	font-size: 12px;
	font-weight: 500;
}
.psg-result__badge.is-best { background: var(--psg-soft); color: var(--psg-accent); }

.psg-result__body { padding: 24px; }
.psg-result__img { display: flex; align-items: center; justify-content: center; height: 170px; margin-bottom: 12px; }
.psg-result__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.psg-result__name { margin: 0 0 4px; font-size: 26px; font-weight: 500; color: #333; }
.psg-result__tag { margin: 0 0 16px; color: var(--psg-text); font-size: 15px; line-height: 1.6; }
.psg-result__why { margin: 0 0 16px; padding: 14px 16px; border-radius: 10px; background: var(--psg-soft); }
.psg-result__why h4 { margin: 0 0 6px; font-size: 14px; font-weight: 500; color: var(--psg-accent); }
.psg-result__why ul { margin: 0; padding-left: 18px; }
.psg-result__why li { margin: 4px 0; color: #444; font-size: 14px; line-height: 1.55; }
.psg-result__note { margin: 0 0 16px; color: #777; font-size: 13px; line-height: 1.6; }
.psg-result__note:empty { display: none; }
.psg-result__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.psg-result__fade { animation: psgFade .35s ease; }
@keyframes psgFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 共用按鈕 */
.psg-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 20px;
	border: 1px solid var(--psg-accent);
	border-radius: 999px;
	background: var(--psg-accent);
	color: #fff !important;
	font-size: 14px;
	text-decoration: none !important;
	transition: background .2s, color .2s;
}
.psg-btn:hover { background: #55308a; }
.psg-btn--ghost { background: #fff; color: var(--psg-accent) !important; }
.psg-btn--ghost:hover { background: var(--psg-soft); }

/* ── 2. 依應用情境 ── */
.psg-apps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.psg-app {
	display: flex;
	flex-direction: column;
	padding: 26px 24px;
	border: 1px solid var(--psg-line);
	border-radius: 14px;
	background: #fff;
}
.psg-app__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 16px;
	border-radius: 12px;
	background: var(--psg-soft);
	color: var(--psg-accent);
}
.psg-app__icon svg { width: 28px; height: 28px; }
.psg-app h3 { margin: 0 0 8px; font-size: 19px; font-weight: 500; color: #333; }
.psg-app p { flex: 1; margin: 0 0 16px; color: var(--psg-text); font-size: 15px; line-height: 1.65; }
/* 推薦機種：每張卡可放多台，第一台為主推 */
.psg-app__pick { padding-top: 14px; border-top: 1px solid var(--psg-line); }
.psg-app__label { display: block; margin-bottom: 8px; font-size: 13px; color: #888; }
.psg-app__models { display: flex; gap: 6px; } /* 推薦機種一律一排（Meg 要求） */
.psg-app__models a {
	flex: 0 1 auto;
	min-width: 0;
	white-space: nowrap;
	text-align: center;
	padding: 5px 10px;
	border: 1px solid #d9d1e6;
	border-radius: 6px;
	color: var(--psg-accent);
	font-size: 13px;
	text-decoration: none;
	transition: background .2s, border-color .2s;
}
.psg-app__models a:first-child { border-color: var(--psg-accent); background: var(--psg-soft); }
.psg-app__models a:hover { border-color: var(--psg-accent); background: var(--psg-soft); }

/* ── 3. 機種一覽 ── */
.psg-lineup {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}
/* 五台機種（加入 SMP-2210 後）：桌機排成一列 */
.psg-lineup--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.psg-model {
	display: flex;
	flex-direction: column;
	padding: 24px 22px;
	border: 1px solid var(--psg-line);
	border-radius: 14px;
	background: #fff;
}
.psg-model__level { align-self: flex-start; margin-bottom: 12px; padding: 3px 10px; border-radius: 999px; background: var(--psg-soft); color: var(--psg-accent); font-size: 12px; font-weight: 500; }
.psg-model__level--sw { background: #e6f3fb; color: #1b7fb8; }
.psg-model__img { display: flex; align-items: center; justify-content: center; height: 120px; margin-bottom: 14px; }
.psg-model__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.psg-model h3 { margin: 0 0 6px; font-size: 21px; font-weight: 500; color: #333; }
.psg-model__best { min-height: 3.2em; margin: 0 0 14px; color: var(--psg-text); font-size: 14px; line-height: 1.6; }
.psg-model dl { flex: 1; margin: 0 0 18px; }
.psg-model dt { margin-top: 10px; color: #999; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.psg-model dd { margin: 2px 0 0; color: #333; font-size: 14px; line-height: 1.5; }
.psg-model__link { color: var(--psg-accent); font-size: 14px; font-weight: 500; text-decoration: none; }
.psg-model__link:hover { text-decoration: underline; }
.psg-lineup__foot { margin: 28px 0 0; text-align: center; color: var(--psg-text); font-size: 15px; line-height: 1.7; }
.psg-lineup__foot .psg-btn { margin-top: 16px; }

/* ── 4. 選購前考量 ── */
.psg-tips {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 40px;
	max-width: 1000px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
	counter-reset: psgtip;
}
.psg-tips li { position: relative; padding-left: 58px; counter-increment: psgtip; }
.psg-tips li::before {
	content: counter(psgtip, decimal-leading-zero);
	position: absolute;
	top: 0;
	left: 0;
	font-family: good-times, 'Poppins', sans-serif;
	font-size: 26px;
	line-height: 1;
	color: var(--psg-accent-2);
}
.psg-tips h3 { margin: 0 0 6px; font-size: 18px; font-weight: 500; color: #333; }
.psg-tips p { margin: 0; color: var(--psg-text); font-size: 15px; line-height: 1.7; }

/* ── 5. FAQ ── */
.psg-faq { max-width: 900px; margin: 0 auto; }
.psg-faq details { border-bottom: 1px solid var(--psg-line); }
.psg-faq summary {
	position: relative;
	padding: 20px 40px 20px 0;
	list-style: none;
	color: #333;
	font-size: 17px;
	font-weight: 500;
	cursor: pointer;
}
.psg-faq summary::-webkit-details-marker { display: none; }
.psg-faq summary::after {
	content: '+';
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	color: var(--psg-accent);
	font-size: 24px;
	font-weight: 300;
}
.psg-faq details[open] summary::after { content: '\2212'; }
.psg-faq details p { margin: 0 0 20px; color: var(--psg-text); font-size: 15px; line-height: 1.75; }
.psg-faq a { color: var(--psg-accent); }

/* Contact：上一區 FAQ 是灰底，Contact 包在白色 .psg-band 裡，上下各 60px */
#MainWrap.psg-page .psg-band .po-contact { padding-top: 60px; }

/* ── RWD ── */
@media only screen and (max-width: 1100px) {
	.psg-lineup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.psg-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* 三欄時卡片太窄，推薦機種會擠成兩排 */
}
@media only screen and (max-width: 900px) {
	.psg-finder { grid-template-columns: 1fr; }
	.psg-result { position: static; }
	.psg-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.psg-tips { grid-template-columns: 1fr; }
}
@media only screen and (max-width: 600px) {
	.psg-page .psg-section { padding: 48px 16px; }
	.psg-apps, .psg-lineup { grid-template-columns: 1fr; }
	.psg-q { padding: 16px; }
	/* 手機也維持一列：勾選圈移到文字上方，省下左側空間 */
	.psg-q__opts { gap: 6px; }
	.psg-opt span { padding: 36px 8px 10px; font-size: 13px; }
	.psg-opt span::before { top: 10px; left: 8px; }
	.psg-opt span::after { top: 15px; left: 15px; }
	.psg-opt span small { font-size: 11px; }
	.psg-model__best { min-height: 0; }
}

/* Hero 圖往上 50px（Meg 2026-10-02）：圖本身沒有多餘高度，直接改 object-position 會在底部露出 50px 紫底，
   所以把圖加高 50px 再往上推 50px，並用 clip-path 剪掉上緣超出的部分，斜切框位置不變；手機版上下堆疊不套用 */
@media screen and (min-width: 601px) {
	.psg-page .smpBanner-section--slant .smpBanner-media img {
		height: calc(100% + 50px);
		min-height: calc(var(--smp-hero-h) + 50px);
		transform: translateY(-50px);
		clip-path: polygon(0 50px,
				100% 50px,
				calc(100% - var(--smp-img-slant-offset)) 100%,
				0 100%);
	}
}

/* ══ Server Comparison Guide（server-comparison-guide.html）沿用本檔樣式，只補差異 ══ */
.psg-lineup.scg-lineup { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1000px; margin: 0 auto; }
.psg-q__hint { margin-left: 6px; font-size: 13px; font-weight: 400; color: #8a8a8a; }
@media only screen and (max-width: 900px) {
	.psg-lineup.scg-lineup { grid-template-columns: 1fr; max-width: 420px; }
}

/* Server Comparison Guide 主色 #a08959（Meg 2026-10-02）：MainWrap 加 .scg-page、body 用 .po-server、hero 用 .po-hero--server */
#MainWrap.psg-page.scg-page {
	--psg-accent: #a08959;
	--psg-accent-2: #c4ad7d;
	--psg-grad: linear-gradient(225deg, #c4ad7d 0%, #a08959 100%);
	--psg-soft: #f7f2e9;
	--psg-line: #e8e2d6;
}
.scg-page .psg-opt span { border-color: #e6dfd1; }
.scg-page .psg-opt span::before { border-color: #cfc3aa; }
.scg-page .psg-opt input:checked + span { box-shadow: 0 2px 10px rgba(160, 137, 89, .16); }
.scg-page .psg-result { box-shadow: 0 10px 30px rgba(160, 137, 89, .18); }
.scg-page .psg-result__tabs { background: #f5f0e6; border-bottom-color: #e6dfd1; }
.scg-page .psg-tab { color: #938a7a; }
.scg-page .psg-tab.is-active { border-color: #e6dfd1; border-bottom-color: var(--psg-accent); }
.scg-page .psg-btn:hover { background: #85703f; }
.scg-page .psg-btn--ghost:hover { background: var(--psg-soft); }
.scg-page .psg-app__models a { border-color: #ddd3c0; }
.scg-page .menubackground.device-seeker-sol { background: linear-gradient(225deg, #c4ad7d 0%, #a08959 100%); }
.smpBanner-section.smpBanner-section--slant.device-seeker-sol.po-hero--server {
	--smp-right-bg: linear-gradient(225deg, #c4ad7d 0%, #a08959 100%);
	--smp-purple: linear-gradient(225deg, #c4ad7d 0%, #a08959 100%);
	--smp-stripe: rgba(160, 137, 89, 0.7);
	background: linear-gradient(225deg, #c4ad7d 0%, #a08959 100%);
}
.smpBanner-section--slant.device-seeker-sol.po-hero--server .smpBanner-stripe--primary {
	background: linear-gradient(180deg, rgba(196, 173, 125, 0.7) 0%, rgba(160, 137, 89, 0.7) 100%);
}
.po-video-btn--server { background: #a08959; }
@media screen and (max-width: 600px) {
	.smpBanner-section--slant.device-seeker-sol.po-hero--server { background: linear-gradient(135deg, #c4ad7d 0%, #a08959 100%); }
}
@media only screen and (max-width: 762px) {
	.po-server .whiteSelector,
	.po-server .subButtonAll { background-color: #a08959; }
}

/* 推薦機種有 4 台時（Restaurant Menu Boards，加入 SMP-2210 後；Meg 2026-10-08）：縮小字與間距，維持一排且不超出卡片 */
.psg-app__models:has(a:nth-child(4)) { gap: 4px; }
.psg-app__models a:first-child:nth-last-child(n+4),
.psg-app__models a:first-child:nth-last-child(n+4) ~ a { padding: 5px; font-size: 10.5px; }
/* 1101–1240px 三欄時卡片太窄放不下 4 台，提早改兩欄 */
@media only screen and (min-width: 1101px) and (max-width: 1240px) {
	.psg-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 卡片很窄時一排放不下，才允許換行 */
@media only screen and (min-width: 601px) and (max-width: 800px), only screen and (max-width: 380px) {
	.psg-app__models:has(a:nth-child(4)) { flex-wrap: wrap; }
}
