/* 2026-11-26 前台分頁（comm/pageList.php、mobile/comm/pageList.php）
   用 #page.pg2-list 提高權重，蓋過 mall.css／inside.css／member.css 原本的 #page 樣式。 */
#page.pg2-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	clear: both;
	width: auto;
	height: auto;
	margin: 0;
	padding: 22px 16px 26px;
	border-top: 1px solid #e3e8ee;
	list-style: none;
	text-align: center;
	color: #52606d;
	font-size: 14px;
	line-height: 1.4;
}
#page.pg2-list li {
	display: block;
	margin: 0;
	line-height: inherit;
	color: inherit;
}
#page.pg2-list li:hover { color: inherit; }
#page.pg2-list .pg2-total { margin-right: 10px; color: #8a96a3; }
#page.pg2-list .pg2-total b { color: #1f2933; font-weight: 700; }

#page.pg2-list .pg2-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	box-sizing: border-box;
	border: 1px solid #d5dde5;
	border-radius: 8px;
	background: #fff;
	color: #17668f;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
#page.pg2-list a.pg2-btn:hover { background: #eef6fb; border-color: #1f7fb5; }
#page.pg2-list a.pg2-btn:focus-visible { outline: 2px solid #1f7fb5; outline-offset: 2px; }
#page.pg2-list .pg2-num { padding: 0 6px; font-variant-numeric: tabular-nums; }
#page.pg2-list .pg2-btn.is-current {
	background: #1f7fb5;
	border-color: #1f7fb5;
	color: #fff;
	cursor: default;
}
#page.pg2-list .pg2-btn.is-disabled {
	border-color: #e3e8ee;
	background: #f5f7f9;
	color: #b8c1ca;
	cursor: not-allowed;
}
#page.pg2-list .pg2-gap { min-width: 20px; color: #8a96a3; }

#page.pg2-list .pg2-jump {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: 10px;
	color: #8a96a3;
}
#page.pg2-list .pg2-jump select {
	height: 40px;
	padding: 0 8px;
	border: 1px solid #d5dde5;
	border-radius: 8px;
	background: #fff;
	color: #1f2933;
	font-size: 14px;
}
#page.pg2-list .pg2-jump select:focus { outline: 0; border-color: #1f7fb5; box-shadow: 0 0 0 3px rgba(31, 127, 181, .18); }

/* 窄螢幕（手機版）：第一頁／上一頁…只留箭頭，總筆數與跳頁各自一行 */
@media (max-width: 640px) {
	#page.pg2-list { gap: 4px; padding: 16px 6px 20px; }
	#page.pg2-list .pg2-txt { display: none; }
	#page.pg2-list .pg2-far { display: none; }
	#page.pg2-list .pg2-edge-li { display: none; }	/* 第一頁／最後一頁：數字列已有 1 和最後一頁 */
	#page.pg2-list .pg2-btn { min-width: 36px; height: 40px; padding: 0 6px; }
	#page.pg2-list .pg2-total { flex-basis: 100%; margin: 0 0 4px; }
	#page.pg2-list .pg2-jump { flex-basis: 100%; justify-content: center; margin: 6px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
	#page.pg2-list .pg2-btn { transition: none; }
}
