/* ============================================================
   文章详情 · 专属样式
   ============================================================ */

.as-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 236px;
	gap: 70px;
	align-items: start;
}
.as-main {
	min-width: 0;
	max-width: 820px;
}
/* ---------- 标题 ---------- */
.as-head {
	margin-bottom: 34px;
}
.as-head__cat {
	display: inline-block;
	margin-bottom: 16px;
	padding: 5px 12px;
	background: var(--paper-2);
	font-size: 11px;
	letter-spacing: .14em;
	color: var(--blue);
}
.as-head__title {
	margin: 0 0 18px;
	font-family: var(--f-serif);
	font-size: clamp(28px, 3.6vw, 42px);
	font-weight: 700;
	line-height: 1.34;
}
.as-head__sub {
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.9;
	color: var(--ink-3);
}
.as-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	font-size: 12px;
	color: var(--ink-3);
}
.as-meta b {
	font-weight: 500;
	color: var(--ink-2);
}
.as-meta i {
	width: 18px;
	height: 1px;
	background: var(--line-2);
}
.as-share {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 10px;
}
.as-share span {
	font-size: 11px;
	letter-spacing: .1em;
	color: var(--ink-3);
}
.as-share button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--line-2);
	background: transparent;
	color: var(--ink-2);
	cursor: pointer;
	transition: .3s var(--ease);
}
.as-share button:hover {
	border-color: var(--blue);
	color: var(--blue);
}
.as-share button svg {
	width: 15px;
	height: 15px;
}
/* ---------- 封面 ---------- */
.as-cover {
	margin: 0 0 44px;
}
.as-cover img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.as-cover figcaption {
	margin-top: 12px;
	padding-left: 14px;
	border-left: 2px solid var(--blue);
	font-size: 12px;
	line-height: 1.7;
	color: var(--ink-3);
}
/* ---------- 正文排版 ---------- */
.as-content {
	font-size: 14.5px;
	line-height: 2;
	color: var(--ink-2);
}
.as-content p {
	margin: 0 0 22px;
}
.as-content p:first-of-type::first-letter {
	float: left;
	margin: 6px 10px 0 0;
	font-family: var(--f-serif);
	font-size: 52px;
	font-weight: 700;
	line-height: .8;
	color: var(--blue);
}
.as-content h2 {
	position: relative;
	margin: 54px 0 22px;
	padding-left: 18px;
	font-family: var(--f-serif);
	font-size: clamp(22px, 2.4vw, 27px);
	font-weight: 700;
	line-height: 1.45;
	color: var(--ink);
	scroll-margin-top: 130px;
}
.as-content h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: .2em;
	bottom: .2em;
	width: 3px;
	background: var(--blue);
}
.as-content h3 {
	margin: 34px 0 14px;
	font-family: var(--f-serif);
	font-size: 18px;
	font-weight: 600;
	color: var(--ink);
}
.as-content strong {
	font-weight: 600;
	color: var(--ink);
}
.as-content ul, .as-content ol {
	margin: 0 0 24px;
	padding-left: 20px;
}
.as-content li {
	margin-bottom: 10px;
	line-height: 1.95;
}
.as-content ul li::marker {
 color: var(--blue);
}
.as-content ol li::marker {
 color: var(--blue);
 font-family: var(--f-serif);
 font-weight: 600;
}
.as-content blockquote {
	margin: 36px 0;
	padding: 28px 32px;
	background: var(--paper-2);
	border-left: 3px solid var(--blue);
	font-family: var(--f-serif);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.8;
	color: var(--ink);
}
.as-content blockquote p {
	margin: 0;
}
.as-content blockquote p::first-letter {
	float: none;
	margin: 0;
	font-family: var(--f-serif);
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	color: inherit;
}
.as-content figure {
	margin: 34px 0;
}
.as-content figure img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}
.as-content figcaption {
	margin-top: 12px;
	padding-left: 14px;
	border-left: 2px solid var(--blue);
	font-size: 12px;
	line-height: 1.7;
	color: var(--ink-3);
}
.as-content table {
	width: 100%;
	margin: 28px 0;
	border-collapse: collapse;
	font-size: 13px;
}
.as-content th, .as-content td {
	padding: 13px 16px;
	border: 1px solid var(--line);
	text-align: left;
}
.as-content th {
	background: var(--paper-2);
	font-weight: 500;
	color: var(--ink);
}
.as-tip {
	margin: 32px 0;
	padding: 22px 26px;
	background: rgba(210, 146, 37, .07);
	border-left: 2px solid var(--blue);
	font-size: 13px;
	line-height: 1.9;
	color: var(--ink-2);
}
.as-tip b {
	display: block;
	margin-bottom: 4px;
	font-family: var(--f-serif);
	font-size: 15px;
	color: var(--ink);
}
/* ---------- 标签 & 作者 ---------- */
.as-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 46px 0 0;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}
.as-tags a {
	padding: 5px 12px;
	border: 1px solid var(--line-2);
	font-size: 11.5px;
	color: var(--ink-3);
}
.as-tags a:hover {
	border-color: var(--blue);
	color: var(--blue);
}
.as-author {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 30px;
	padding: 26px 28px;
	background: var(--white);
	border: 1px solid var(--line);
}
.as-author__avatar {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--blue);
	color: #fff;
	font-family: var(--f-serif);
	font-size: 18px;
	font-weight: 700;
}
.as-author__body b {
	display: block;
	margin-bottom: 5px;
	font-size: 14px;
	font-weight: 600;
}
.as-author__body p {
	margin: 0;
	font-size: 12px;
	line-height: 1.75;
	color: var(--ink-3);
}
/* ---------- 上/下篇 ---------- */
.as-pager {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 34px;
}
.as-pager a {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 22px 24px;
	border: 1px solid var(--line);
	background: var(--white);
	transition: .35s var(--ease);
}
.as-pager a:hover {
	border-color: var(--line-2);
	transform: translateY(-2px);
}
.as-pager span {
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink-3);
}
.as-pager b {
	font-family: var(--f-serif);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.55;
	color: var(--ink);
}
.as-pager a:hover b {
	color: var(--blue);
}
.as-pager--next {
	text-align: right;
}
/* ---------- 侧栏目录 ---------- */
.as-toc {
	padding: 24px;
	background: var(--white);
	border: 1px solid var(--line);
}
.as-toc h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-family: var(--f-serif);
	font-size: 14.5px;
	font-weight: 600;
}
.as-toc h3::before {
	content: "";
	width: 3px;
	height: 14px;
	background: var(--blue);
}
.as-toc ol {
	list-style: none;
	counter-reset: toc;
	margin: 0;
	padding: 0;
}
.as-toc li {
	counter-increment: toc;
	margin-bottom: 3px;
}
.as-toc a {
	display: block;
	padding: 8px 0 8px 22px;
	position: relative;
	font-size: 12px;
	line-height: 1.6;
	color: var(--ink-3);
	border-left: 1px solid var(--line);
	transition: .3s var(--ease);
}
.as-toc a::before {
	content: "0" counter(toc);
	position: absolute;
	left: 8px;
	top: 8px;
	font-family: var(--f-serif);
	font-size: 10.5px;
	color: var(--line-2);
	transition: .3s var(--ease);
}
.as-toc a:hover {
	color: var(--ink);
}
.as-toc a.is-active {
	color: var(--blue);
	border-left-color: var(--blue);
	padding-left: 26px;
}
.as-toc a.is-active::before {
	color: var(--blue);
}
/* ---------- 相关文章 ---------- */
.as-related {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
 @media (max-width: 1180px) {
.as-layout {
	gap: 46px;
}
}
 @media (max-width: 1024px) {
.as-layout {
	grid-template-columns: 1fr;
}
.as-toc {
	position: static;
	order: 2;
	margin: 8px 0 0;
}
.as-toc ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.as-toc li {
	width: calc(50% - 3px);
	margin: 0;
}
.as-related {
	grid-template-columns: 1fr;
}
}
 @media (max-width: 780px) {
.as-content {
	font-size: 14px;
}
.as-pager {
	grid-template-columns: 1fr;
}
.as-pager--next {
	text-align: left;
}
.as-share {
	width: 100%;
	margin-left: 0;
	padding-top: 4px;
}
.as-author {
	padding: 22px;
}
}
 @media (max-width: 560px) {
.as-toc li {
	width: 100%;
}
.as-content blockquote {
	padding: 22px 22px;
	font-size: 15.5px;
}
}
