/* 博客归档 / 文章页 / 404，数值取自 acemicaudio.com 线上实测。 */

/* ---- 博客归档（/news）---- */
.gm-news__title {
	margin: 0 0 40px;
	font-family: var(--gm-title-font);
	font-size: 32px;
	font-weight: 500;
	line-height: 48px;
	text-align: center;
	color: var(--gm-ink);
}

.gm-news__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gm-news__card {
	margin: 0;
	padding: 0;
	text-align: center;
}

.gm-news__pic {
	display: block;
	margin-bottom: 30px;
}

.gm-news__pic img {
	display: block;
	width: 100%;
	height: auto;
}

.gm-news__name {
	display: block;
	margin-bottom: 10px;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	color: var(--gm-ink);
}

.gm-news__more {
	font-size: 16px;
	line-height: 24px;
}

.gm-news__more a {
	color: var(--gm-ink);
}

/* ---- 分页 ---- */
.gm-pager {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 40px 0;
	font-size: 14px;
}

.gm-pager a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0 5px;
	border: 1px solid transparent;
	font-size: 14px;
	line-height: 21px;
	color: var(--gm-ink);
}

.gm-pager .is-current {
	border-color: #1d1f21;
	color: #1d1f21;
}

.gm-pager svg {
	width: 20px;
	height: 20px;
}

.gm-pager__arrow:first-child svg {
	transform: rotate(90deg);
}

.gm-pager__arrow:last-child svg {
	transform: rotate(-90deg);
}

/* ---- 返回条 ---- */
.gm-back {
	display: flex;
	justify-content: center;
	padding: 30px 0;
	margin-bottom: 80px;
}

.gm-back a {
	display: inline-flex;
	align-items: center;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: var(--gm-ink);
}

.gm-back svg {
	width: 24px;
	height: 24px;
}

.gm-back span {
	margin-left: 10px;
}

/* ---- 文章页 ---- */
.gm-post__title {
	margin: 60px 0;
	font-family: var(--gm-title-font);
	font-size: 32px;
	font-weight: 500;
	line-height: 48px;
	text-align: center;
	color: var(--gm-ink);
}

.gm-post__body {
	margin-bottom: 80px;
}

/* ---- 404 ---- */
.gm-404 {
	padding: 100px 0;
	margin-bottom: 80px;
}

.gm-404__box {
	width: max-content;
	max-width: 100%;
	margin: 0 auto;
}

.gm-404__code {
	margin: 60px 0;
	font-family: var(--gm-title-font);
	font-size: 32px;
	font-weight: 500;
	line-height: 48px;
	text-align: center;
	color: var(--gm-ink);
}

.gm-404__text {
	margin: 0 0 40px;
	font-size: 16px;
	line-height: 24px;
	text-align: center;
	color: var(--gm-ink);
}

.gm-404__text b {
	font-size: 18px;
	font-weight: 700;
	color: var(--gm-red);
}

.gm-404__btn {
	display: block;
	width: 100%;
	padding: 10px 20px;
	border: 1px solid #fff;
	border-radius: var(--gm-radius);
	background: var(--gm-steel);
	font-size: 16px;
	line-height: 26px;
	text-align: center;
	color: #fff;
}

@media (max-width: 900px) {
	.gm-news__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.gm-news__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.gm-post__title {
		margin-top: 36px;
		line-height: 38px;
	}

	.gm-404 {
		padding: 60px 0;
	}
}
