/* ==========================================================================
   文章：文章卡片、最新动态区块、文章列表页、单篇文章、法律页、404
   ========================================================================== */

/* ── 最新动态区块 ── */
.rx-latest__top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(36px, 5vw, 56px);
}

.rx-latest__top .rx-head {
	margin-bottom: 0;
}

@media (max-width: 760px) {
	.rx-latest__top {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ── 文章卡片 ── */
.rx-post-card {
	display: flex;
	flex-direction: column;
}

.rx-post-card__image {
	display: block;
	aspect-ratio: 16 / 10;
	margin: 1px 1px 0;
	overflow: hidden;
	background: var(--rx-carbon-2);
}

.rx-post-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--rx-ease);
}

.rx-post-card:hover .rx-post-card__image img {
	transform: scale(1.06);
}

.rx-post-card__body {
	display: grid;
	gap: 10px;
	flex: 1;
	padding: 22px 24px 26px;
}

.rx-post-card__date {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	color: var(--rx-dim);
	font-size: 13px;
}

.rx-post-card__date em {
	color: var(--rx-ember);
	font-style: normal;
	font-weight: 600;
}

.rx-post-card__title {
	font-family: var(--rx-display);
	font-size: 21px;
	font-weight: 600;
	line-height: 1.2;
}

.rx-post-card__excerpt {
	color: var(--rx-steel);
	font-size: 15px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rx-post-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: end;
	margin-top: 6px;
	color: var(--rx-cyan);
	font-family: var(--rx-display);
	font-size: 15px;
	font-weight: 600;
}

.rx-post-card__more .rx-icon {
	width: 16px;
	height: 16px;
	transition: transform 0.35s var(--rx-ease);
}

.rx-post-card:hover .rx-post-card__more .rx-icon {
	transform: translateX(4px);
}

/* ── 文章列表页 / 分类页 / 404 ── */
.rx-listing,
.rx-lost {
	padding-top: calc(var(--rx-space) * 0.7);
}

.rx-listing .rx-page-title {
	margin-bottom: 0;
}

.rx-listing .rx-cards {
	margin-top: clamp(40px, 6vw, 64px);
}

.rx-pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 48px;
}

.rx-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--rx-line-strong);
	font-family: var(--rx-display);
	font-weight: 600;
}

.rx-pagination .page-numbers.current,
.rx-pagination a.page-numbers:hover {
	background: var(--rx-signal);
	border-color: transparent;
	color: #00131a;
}

.rx-lost .rx-wrap {
	display: grid;
	justify-items: start;
	gap: 20px;
}

/* ── 单篇文章 ── */
.rx-article {
	padding-top: calc(var(--rx-space) * 0.6);
}

.rx-article__inner {
	max-width: 820px;
}

.rx-article__back {
	display: inline-flex;
	margin-bottom: 28px;
	color: var(--rx-cyan);
	font-weight: 500;
}

.rx-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-bottom: 18px;
	color: var(--rx-dim);
	font-size: 14px;
}

.rx-article__meta em {
	color: var(--rx-ember);
	font-style: normal;
	font-weight: 600;
}

.rx-article__title {
	font-size: clamp(36px, 5.4vw, 68px);
	font-weight: 700;
}

.rx-article__clock {
	max-width: 420px;
	margin-top: 24px;
}

.rx-article__image {
	margin: 40px 0;
	overflow: hidden;
	clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.rx-article__image img {
	width: 100%;
}

.rx-article__content {
	margin-top: 32px;
	color: #d0dae6;
	font-size: 18px;
	line-height: 1.75;
}

.rx-article__content > * + * {
	margin-top: 1.1em;
}

.rx-article__content h2,
.rx-article__content h3 {
	margin-top: 1.6em;
	color: var(--rx-frost);
}

.rx-article__content a {
	color: var(--rx-cyan);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rx-article__content img {
	margin-block: 1.5em;
}

.rx-article__actions {
	margin-top: 48px;
}

/* ── Elementor 编辑的页面（Privacy / Terms）：留出页首的位置 ── */
.rx-main--editor {
	padding-top: 24px;
}
