/* ═══════════════════════════════════
   Infinite Article Scroll  v2.0
   ═══════════════════════════════════ */

#ias-container {
	width: 100%;
}

/* ── 分隔線 ── */
.ias-separator {
	position: relative;
	text-align: center;
	padding: 52px 0 36px;
}

.ias-separator::before,
.ias-separator::after {
	content: '';
	position: absolute;
	top: 50%;
	width: 44%;
	height: 1px;
	background: #e8e8e8;
}

.ias-separator::before { left: 0; }
.ias-separator::after  { right: 0; }

.ias-separator span {
	position: relative;
	display: inline-block;
	background: #fff;
	padding: 0 18px;
	color: #aaa;
	font-size: 11px;
	letter-spacing: 2.5px;
	text-transform: uppercase;
}

/* ── 載入的文章包裝 ── */
.ias-article {
	border-top: 2px solid #f0f0f0;
	padding-top: 4px;
	animation: ias-fade-in 0.4s ease both;
}

@keyframes ias-fade-in {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── 載入動畫 ── */
#ias-loader {
	display: none;
	justify-content: center;
	align-items: center;
	padding: 40px 0;
}

.ias-spinner {
	width: 34px;
	height: 34px;
	border: 3px solid #ececec;
	border-top-color: #444;
	border-radius: 50%;
	animation: ias-spin 0.7s linear infinite;
}

@keyframes ias-spin {
	to { transform: rotate(360deg); }
}

/* ── 觸發器（隱形） ── */
#ias-sentinel {
	height: 1px;
	pointer-events: none;
	visibility: hidden;
}

/* ── 取代模式：全頁遮罩 ── */
#ias-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(255, 255, 255, 0.88);
	justify-content: center;
	align-items: center;
	backdrop-filter: blur(3px);
}

#ias-overlay .ias-spinner {
	width: 44px;
	height: 44px;
	border-width: 4px;
}
