/* TWSR 文章卡片列表 — 卡片網格 */
.twsr-ac-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

/* ── 單張卡片 ── */
.twsr-ac-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	transition: box-shadow 0.3s ease;
}
.twsr-ac-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ── 縮圖區 ── */
.twsr-ac-card__media {
	display: block;
	aspect-ratio: 100 / 60;
	overflow: hidden;
}
.twsr-ac-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.twsr-ac-card__media:hover img {
	transform: scale(1.04);
}

/* ── 內容區 ── */
.twsr-ac-card__body {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* ── 分類標籤 ── */
.twsr-ac-card__category {
	display: inline-block;
	font-size: 12px;
	color: #1677c8;
	margin-bottom: 8px;
	font-weight: 500;
	text-transform: none;
}

/* ── 標題 ── */
.twsr-ac-card__title {
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
}
.twsr-ac-card__title a {
	color: #222;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.twsr-ac-card__title a:hover {
	color: #1677c8;
}

/* ── 摘要 ── */
.twsr-ac-card__excerpt {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.7;
	color: #666;
	flex: 1;
}

/* ── 閱讀更多按鈕 ── */
.twsr-ac-card__btn {
	display: inline-block;
	padding: 10px 24px;
	background: #313131;
	color: #fff;
	text-align: center;
	border-radius: 4px;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.4;
	transition: background 0.3s ease;
	align-self: flex-start;
}
.twsr-ac-card__btn:hover {
	color: #fff;
	background: #1677c8;
}

/* ── 空狀態 ── */
.twsr-ac-empty {
	padding: 40px;
	text-align: center;
	color: #999;
}

/* ── 分頁 ── */
.twsr-ac-pagination {
	margin-top: 32px;
}
.twsr-ac-pagination .page-numbers {
	display: flex;
	justify-content: center;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.twsr-ac-pagination .page-numbers li {
	margin: 0;
}
.twsr-ac-pagination .page-numbers a,
.twsr-ac-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 8px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	transition: all 0.2s ease;
}
.twsr-ac-pagination .page-numbers a:hover {
	background: #1677c8;
	color: #fff;
	border-color: #1677c8;
}
.twsr-ac-pagination .page-numbers .current {
	background: #1677c8;
	color: #fff;
	border-color: #1677c8;
	font-weight: 600;
}

/* ── RWD ── */
@media (max-width: 768px) {
	.twsr-ac-grid {
		grid-template-columns: 1fr !important;
	}
	.twsr-ac-card__body {
		padding: 16px;
	}
}
