/* ==========================================================================
   onpaperclub — main.css
   站点主体样式：头部导航 / 首页 / 列表页 / 详情页 / 搜索页 / 页脚
   设计目标：像一本有人翻过的杂志，而非冷冰冰的内容农场
   ========================================================================== */

/* ==========================================================================
   一、头部导航
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 800;
	background: rgba(250, 247, 240, 0.94);
	backdrop-filter: saturate(150%) blur(12px);
	-webkit-backdrop-filter: saturate(150%) blur(12px);
	border-bottom: 1px solid var(--line-soft);
	transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
	box-shadow: 0 2px 18px rgba(60, 48, 30, 0.07);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	height: 72px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	cursor: pointer;
}

.brand-mark {
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: linear-gradient(135deg, var(--accent-600), var(--accent-500));
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-serif);
	font-size: 19px;
	font-weight: 700;
	color: var(--paper-50);
	box-shadow: 0 2px 8px rgba(58, 113, 97, 0.32);
	flex-shrink: 0;
}

.brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.brand-name {
	font-family: var(--font-serif);
	font-size: 19px;
	font-weight: 700;
	color: var(--ink-900);
	letter-spacing: 0.01em;
}

.brand-sub {
	font-family: var(--font-sans);
	font-size: 10.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink-400);
}

/* 导航 */
.main-nav {
	flex: 1;
	display: flex;
	align-items: center;
	min-width: 0;
}

.main-nav ul {
	display: flex;
	align-items: center;
	gap: 4px;
}

.main-nav li a {
	position: relative;
	display: block;
	padding: 8px 13px;
	border-radius: var(--r-sm);
	font-family: var(--font-sans);
	font-size: 14.5px;
	font-weight: 500;
	color: var(--ink-700);
	white-space: nowrap;
	transition: color 0.2s ease, background 0.2s ease;
}

.main-nav li a:hover {
	color: var(--accent-700);
	background: var(--accent-100);
}

.main-nav li a.active {
	color: var(--accent-700);
	font-weight: 600;
}

.main-nav li a.active::after {
	content: "";
	position: absolute;
	left: 13px;
	right: 13px;
	bottom: 2px;
	height: 2px;
	border-radius: 2px;
	background: var(--clay-500);
}

/* 搜索 */
.header-search {
	position: relative;
	flex-shrink: 0;
}

.header-search input {
	width: 200px;
	height: 38px;
	padding: 0 38px 0 14px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--paper-100);
	font-family: var(--font-sans);
	font-size: 13.5px;
	color: var(--ink-800);
	transition: width 0.25s ease, border-color 0.2s ease, background 0.2s ease;
}

.header-search input::placeholder {
	color: var(--ink-400);
}

.header-search input:focus {
	width: 250px;
	background: var(--paper-50);
	border-color: var(--accent-500);
	outline: none;
}

.header-search button {
	position: absolute;
	right: 5px;
	top: 5px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ink-400);
	transition: color 0.2s ease, background 0.2s ease;
}

.header-search button:hover {
	color: var(--accent-600);
	background: var(--accent-100);
}

.header-search button svg {
	width: 15px;
	height: 15px;
}

/* 汉堡 */
.menu-toggle {
	display: none;
	width: 38px;
	height: 38px;
	border-radius: var(--r-sm);
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4.5px;
	flex-shrink: 0;
}

.menu-toggle span {
	display: block;
	width: 19px;
	height: 1.8px;
	border-radius: 2px;
	background: var(--ink-700);
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle.active span:nth-child(1) {
	transform: translateY(6.3px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
	opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
	transform: translateY(-6.3px) rotate(-45deg);
}

/* 移动端抽屉 */
.mobile-drawer {
	position: fixed;
	inset: 72px 0 0 0;
	background: var(--paper-50);
	padding: 26px 24px 40px;
	overflow-y: auto;
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	z-index: 790;
}

.mobile-drawer.open {
	transform: translateX(0);
}

.mobile-drawer ul {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mobile-drawer li a {
	padding: 13px 4px;
	font-family: var(--font-sans);
	font-size: 16px;
	font-weight: 500;
	color: var(--ink-800);
	border-bottom: 1px solid var(--line-soft);
}

.mobile-drawer li a:hover {
	color: var(--accent-700);
	padding-left: 10px;
}

@media screen and (max-width: 1000px) {
	.main-nav {
		display: none;
	}

	.menu-toggle {
		display: flex;
		margin-left: auto;
	}

	.header-search input {
		width: 150px;
	}

	.header-search input:focus {
		width: 170px;
	}
}

@media screen and (max-width: 640px) {
	.header-inner {
		height: 64px;
		gap: 12px;
	}

	.brand-sub {
		display: none;
	}

	.header-search input {
		width: 120px;
		height: 34px;
	}

	.mobile-drawer {
		inset: 64px 0 0 0;
	}
}

/* ==========================================================================
   二、首页
   ========================================================================== */

/* ---- 报头 ---- */
.masthead {
	padding: 58px 0 34px;
	border-bottom: 1px solid var(--line-soft);
}

.masthead-inner {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
}

.masthead-left {
	max-width: 660px;
}

.masthead-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-hand);
	font-size: 17px;
	color: var(--clay-600);
	margin-bottom: 10px;
}

.masthead-kicker::before {
	content: "";
	width: 26px;
	height: 1.5px;
	background: var(--clay-400, var(--clay-500));
	transform: rotate(-2deg);
}

.masthead h1 {
	font-family: var(--font-serif);
	font-size: 46px;
	line-height: 1.14;
	font-weight: 700;
	color: var(--ink-900);
	letter-spacing: -0.01em;
}

.masthead h1 em {
	font-style: italic;
	color: var(--accent-600);
}

.masthead-desc {
	margin-top: 16px;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.75;
	color: var(--ink-500);
	max-width: 540px;
}

.masthead-right {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-bottom: 4px;
}

.masthead-note {
	max-width: 300px;
	padding: 16px 20px;
	border-radius: var(--r-md);
	background: var(--paper-100);
	border: 1px solid var(--line-soft);
	border-left: 3px solid var(--accent-500);
	font-family: var(--font-sans);
	font-size: 13.5px;
	line-height: 1.7;
	color: var(--ink-600);
}

.masthead-note strong {
	color: var(--ink-800);
}

.masthead-stats {
	display: flex;
	gap: 26px;
}

.stat-item .num {
	font-family: var(--font-serif);
	font-size: 26px;
	font-weight: 700;
	color: var(--accent-600);
	line-height: 1.1;
}

.stat-item .lbl {
	font-family: var(--font-sans);
	font-size: 11.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-400);
	margin-top: 2px;
}

@media screen and (max-width: 900px) {
	.masthead {
		padding: 38px 0 26px;
	}

	.masthead-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.masthead h1 {
		font-size: 34px;
	}

	.masthead-right {
		width: 100%;
	}

	.masthead-note {
		max-width: 100%;
	}
}

/* ---- 通用区块标题 ---- */
.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 26px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}

.section-head .sh-left {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
}

.section-head h2 {
	font-family: var(--font-serif);
	font-size: 27px;
	font-weight: 700;
	color: var(--ink-900);
	letter-spacing: -0.005em;
}

.section-head h2 span {
	color: var(--ink-300);
	font-weight: 400;
}

.section-head .sh-sub {
	font-family: var(--font-sans);
	font-size: 13.5px;
	color: var(--ink-400);
	font-style: italic;
	font-family: var(--font-serif);
}

.section-head .sh-more {
	font-family: var(--font-sans);
	font-size: 13.5px;
	font-weight: 500;
	color: var(--accent-600);
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.section-head .sh-more:hover {
	color: var(--clay-600);
	gap: 8px;
}

.section-head .sh-more::after {
	content: "→";
	transition: transform 0.2s ease;
}

.section-head .sh-more:hover::after {
	transform: translateX(2px);
}

/* ---- 头条区 ---- */
.hero {
	padding: 44px 0 10px;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 40px;
	align-items: stretch;
}

.hero-story {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 34px 36px;
	border-radius: var(--r-lg);
	background:
		linear-gradient(135deg, rgba(58, 113, 97, 0.055), rgba(196, 116, 40, 0.045)),
		var(--paper-100);
	border: 1px solid var(--line-soft);
	overflow: hidden;
}

.hero-story::after {
	content: "";
	position: absolute;
	right: -60px;
	top: -60px;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	border: 1px solid rgba(74, 138, 118, 0.16);
	pointer-events: none;
}

.hero-story .hero-cat {
	margin-bottom: 14px;
}

.hero-story h3 {
	font-family: var(--font-serif);
	font-size: 30px;
	line-height: 1.28;
	font-weight: 700;
	color: var(--ink-900);
	margin-bottom: 14px;
	letter-spacing: -0.008em;
}

.hero-story h3:hover {
	color: var(--accent-700);
}

.hero-story .hero-desc {
	font-family: var(--font-sans);
	font-size: 15px;
	line-height: 1.78;
	color: var(--ink-600);
	margin-bottom: 20px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hero-meta {
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: var(--font-sans);
	font-size: 12.5px;
	color: var(--ink-400);
}

.hero-meta .dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--ink-300);
}

.read-more {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--font-sans);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--accent-600);
	margin-top: 20px;
}

.read-more::after {
	content: "";
	width: 22px;
	height: 1px;
	background: currentColor;
	transition: width 0.25s ease;
}

.read-more:hover::after {
	width: 34px;
}

/* 头条图片 */
.hero-visual {
	position: relative;
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--paper-200);
	min-height: 340px;
}

.hero-visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease;
}

.hero-visual:hover img {
	transform: scale(1.04);
}

.hero-visual::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(28, 26, 22, 0.32), transparent 52%);
	pointer-events: none;
}

.hero-badge {
	position: absolute;
	left: 18px;
	bottom: 18px;
	z-index: 2;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(250, 247, 240, 0.94);
	font-family: var(--font-sans);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--accent-700);
}

@media screen and (max-width: 900px) {
	.hero-grid {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.hero-story {
		padding: 26px 24px;
	}

	.hero-story h3 {
		font-size: 24px;
	}

	.hero-visual {
		min-height: 220px;
		order: -1;
	}
}

/* ---- 精选文章网格 ---- */
.featured {
	padding: 46px 0 10px;
}

.article-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.article-card {
	display: flex;
	flex-direction: column;
	background: var(--paper-50);
	border: 1px solid var(--line-soft);
	border-radius: var(--r-md);
	overflow: hidden;
	transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.article-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: var(--paper-300);
}

.card-thumb {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--paper-200);
}

.card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.55s ease;
}

.article-card:hover .card-thumb img {
	transform: scale(1.06);
}

.card-cat {
	position: absolute;
	left: 12px;
	top: 12px;
	padding: 4px 11px;
	border-radius: 999px;
	background: rgba(250, 247, 240, 0.95);
	font-family: var(--font-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--accent-700);
}

.card-body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.card-body h3 {
	font-family: var(--font-serif);
	font-size: 19px;
	line-height: 1.42;
	font-weight: 700;
	color: var(--ink-900);
	margin-bottom: 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s ease;
}

.article-card:hover .card-body h3 {
	color: var(--accent-700);
}

.card-body p {
	font-family: var(--font-sans);
	font-size: 13.5px;
	line-height: 1.72;
	color: var(--ink-500);
	margin-bottom: 14px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card-foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: var(--font-sans);
	font-size: 12px;
	color: var(--ink-400);
	padding-top: 12px;
	border-top: 1px dashed var(--line);
}

.card-foot .go {
	color: var(--accent-600);
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	opacity: 0;
	transform: translateX(-4px);
	transition: all 0.25s ease;
}

.article-card:hover .card-foot .go {
	opacity: 1;
	transform: translateX(0);
}

@media screen and (max-width: 1000px) {
	.article-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 22px;
	}
}

@media screen and (max-width: 640px) {
	.article-grid {
		grid-template-columns: 1fr;
	}
}

/* ---- 边栏：手记 / 话题 ---- */
.section-split {
	padding: 50px 0 10px;
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 40px;
	align-items: start;
}

.notes-list {
	display: flex;
	flex-direction: column;
}

.note-item {
	display: grid;
	grid-template-columns: 68px 1fr auto;
	gap: 20px;
	align-items: baseline;
	padding: 20px 4px;
	border-bottom: 1px dashed var(--line);
	cursor: pointer;
	transition: background 0.2s ease, padding-left 0.2s ease;
}

.note-item:first-child {
	border-top: 1px dashed var(--line);
}

.note-item:hover {
	background: var(--paper-100);
	padding-left: 12px;
}

.note-item .n-idx {
	font-family: var(--font-serif);
	font-size: 22px;
	font-weight: 700;
	color: var(--paper-300);
	line-height: 1;
	transition: color 0.2s ease;
}

.note-item:hover .n-idx {
	color: var(--clay-500);
}

.note-item h4 {
	font-family: var(--font-serif);
	font-size: 17.5px;
	line-height: 1.5;
	font-weight: 700;
	color: var(--ink-900);
	margin-bottom: 5px;
}

.note-item:hover h4 {
	color: var(--accent-700);
}

.note-item .n-preview {
	font-family: var(--font-sans);
	font-size: 13.5px;
	line-height: 1.7;
	color: var(--ink-500);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.note-item .n-time {
	font-family: var(--font-sans);
	font-size: 12px;
	color: var(--ink-400);
	white-space: nowrap;
}

@media screen and (max-width: 1000px) {
	.section-split {
		grid-template-columns: 1fr;
		gap: 34px;
	}
}

@media screen and (max-width: 640px) {
	.note-item {
		grid-template-columns: 44px 1fr;
		gap: 14px;
	}

	.note-item .n-time {
		display: none;
	}
}

/* 侧栏卡片 */
.side-card {
	border-radius: var(--r-md);
	border: 1px solid var(--line-soft);
	background: var(--paper-100);
	padding: 22px 24px;
	margin-bottom: 24px;
}

.side-card h3 {
	font-family: var(--font-serif);
	font-size: 18px;
	font-weight: 700;
	color: var(--ink-900);
	margin-bottom: 4px;
}

.side-card .sc-sub {
	font-family: var(--font-sans);
	font-size: 12.5px;
	color: var(--ink-400);
	margin-bottom: 16px;
}

.topic-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.topic-list a {
	display: inline-block;
	padding: 6px 13px;
	border-radius: 999px;
	border: 1px solid var(--paper-300);
	background: var(--paper-50);
	font-family: var(--font-sans);
	font-size: 12.5px;
	color: var(--ink-600);
	transition: all 0.2s ease;
}

.topic-list a:hover {
	background: var(--accent-600);
	border-color: var(--accent-600);
	color: var(--paper-50);
}

.side-card.plain {
	background: transparent;
	border-style: dashed;
}

.editor-note {
	font-family: var(--font-serif);
	font-size: 14.5px;
	line-height: 1.85;
	color: var(--ink-600);
	font-style: italic;
}

.editor-note .sig {
	display: block;
	margin-top: 14px;
	font-family: var(--font-hand);
	font-size: 20px;
	font-style: normal;
	color: var(--clay-600);
}

/* ---- 底部 CTA ---- */
.join-band {
	margin: 56px 0 0;
	padding: 46px 44px;
	border-radius: var(--r-xl);
	background:
		radial-gradient(circle at 12% 20%, rgba(74, 138, 118, 0.14), transparent 46%),
		radial-gradient(circle at 88% 78%, rgba(196, 116, 40, 0.13), transparent 44%),
		var(--paper-100);
	border: 1px solid var(--line);
	text-align: center;
}

.join-band h2 {
	font-family: var(--font-serif);
	font-size: 30px;
	font-weight: 700;
	color: var(--ink-900);
	margin-bottom: 12px;
}

.join-band p {
	font-family: var(--font-sans);
	font-size: 15px;
	color: var(--ink-500);
	max-width: 560px;
	margin: 0 auto 24px;
	line-height: 1.8;
}

.join-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 26px;
	border-radius: 999px;
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 600;
	transition: all 0.22s ease;
}

.btn-primary {
	background: var(--accent-600);
	color: var(--paper-50);
	box-shadow: 0 3px 12px rgba(58, 113, 97, 0.28);
}

.btn-primary:hover {
	background: var(--accent-700);
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(58, 113, 97, 0.34);
}

.btn-ghost {
	border: 1px solid var(--paper-400);
	color: var(--ink-700);
	background: var(--paper-50);
}

.btn-ghost:hover {
	border-color: var(--accent-500);
	color: var(--accent-700);
	transform: translateY(-2px);
}

/* ==========================================================================
   三、列表页（分类）
   ========================================================================== */
.page-banner {
	padding: 40px 0 28px;
	border-bottom: 1px solid var(--line-soft);
	background:
		linear-gradient(180deg, rgba(227, 237, 232, 0.5), transparent);
}

.page-banner .pb-kicker {
	font-family: var(--font-hand);
	font-size: 16px;
	color: var(--clay-600);
	margin-bottom: 6px;
}

.page-banner h1 {
	font-family: var(--font-serif);
	font-size: 34px;
	font-weight: 700;
	color: var(--ink-900);
	letter-spacing: -0.01em;
}

.page-banner p {
	font-family: var(--font-sans);
	font-size: 14.5px;
	color: var(--ink-500);
	margin-top: 8px;
	max-width: 620px;
	line-height: 1.75;
}

.list-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 40px;
	padding: 40px 0 20px;
	align-items: start;
}

.list-main {
	min-width: 0;
}

.list-item {
	display: grid;
	grid-template-columns: 210px 1fr;
	gap: 22px;
	padding: 24px 0;
	border-bottom: 1px dashed var(--line);
	cursor: pointer;
}

.list-item:first-child {
	padding-top: 0;
}

.list-item .li-thumb {
	border-radius: var(--r-sm);
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--paper-200);
}

.list-item .li-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.list-item:hover .li-thumb img {
	transform: scale(1.05);
}

.list-item .li-body {
	display: flex;
	flex-direction: column;
}

.list-item h3 {
	font-family: var(--font-serif);
	font-size: 20px;
	line-height: 1.42;
	font-weight: 700;
	color: var(--ink-900);
	margin: 6px 0 9px;
	transition: color 0.2s ease;
}

.list-item:hover h3 {
	color: var(--accent-700);
}

.list-item p {
	font-family: var(--font-sans);
	font-size: 13.5px;
	line-height: 1.72;
	color: var(--ink-500);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.li-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 10px;
	font-family: var(--font-sans);
	font-size: 12px;
	color: var(--ink-400);
}

.list-side {
	position: sticky;
	top: 96px;
}

@media screen and (max-width: 1000px) {
	.list-layout {
		grid-template-columns: 1fr;
	}

	.list-side {
		position: static;
	}
}

@media screen and (max-width: 640px) {
	.list-item {
		grid-template-columns: 1fr;
		gap: 14px;
	}
}

/* 加载更多 */
.load-more-wrap {
	display: flex;
	justify-content: center;
	padding: 36px 0 10px;
}

.btn-load {
	padding: 11px 34px;
	border-radius: 999px;
	border: 1px solid var(--paper-400);
	background: var(--paper-50);
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 600;
	color: var(--ink-600);
	transition: all 0.22s ease;
}

.btn-load:hover {
	border-color: var(--accent-500);
	color: var(--accent-700);
	background: var(--accent-100);
}

.btn-load[disabled] {
	opacity: 0.5;
	cursor: default;
}

.empty-state {
	text-align: center;
	padding: 60px 20px;
	color: var(--ink-400);
	font-family: var(--font-sans);
	font-size: 14.5px;
}

.empty-state .es-icon {
	font-family: var(--font-hand);
	font-size: 34px;
	color: var(--paper-300);
	margin-bottom: 10px;
}

/* ==========================================================================
   四、详情页
   ========================================================================== */
.detail-wrap {
	padding: 40px 0 20px;
}

.detail-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 48px;
	align-items: start;
}

.article-main {
	min-width: 0;
}

.article-head {
	margin-bottom: 30px;
	padding-bottom: 26px;
	border-bottom: 1px solid var(--line);
}

.article-head .ah-cat {
	margin-bottom: 14px;
}

.article-head h1 {
	font-family: var(--font-serif);
	font-size: 38px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--ink-900);
	letter-spacing: -0.015em;
	margin-bottom: 16px;
}

.article-head .ah-preview {
	font-family: var(--font-serif);
	font-size: 18px;
	line-height: 1.75;
	color: var(--ink-500);
	font-style: italic;
	margin-bottom: 20px;
}

.article-meta {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	font-family: var(--font-sans);
	font-size: 13px;
	color: var(--ink-400);
}

.meta-author {
	display: flex;
	align-items: center;
	gap: 9px;
	color: var(--ink-600);
	font-weight: 500;
}

.meta-author img {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--paper-200);
}

.meta-dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--ink-300);
}

@media screen and (max-width: 900px) {
	.article-head h1 {
		font-size: 28px;
	}

	.article-head .ah-preview {
		font-size: 16px;
	}
}

/* 正文 */
.news-content {
	font-family: var(--font-serif);
	font-size: 17.5px;
	line-height: 1.92;
	color: var(--ink-800);
	word-break: break-word;
	overflow-wrap: break-word;
}

.news-content p {
	margin: 0 0 22px;
}

.news-content h1,
.news-content h2,
.news-content h3,
.news-content h4 {
	font-family: var(--font-serif);
	color: var(--ink-900);
	font-weight: 700;
	line-height: 1.4;
	margin: 36px 0 16px;
}

.news-content h1 { font-size: 28px; }
.news-content h2 { font-size: 24px; }
.news-content h3 { font-size: 21px; }
.news-content h4 { font-size: 18px; }

.news-content h2 {
	padding-left: 14px;
	border-left: 3px solid var(--accent-500);
}

.news-content ul,
.news-content ol {
	margin: 0 0 22px;
	padding-left: 26px;
	line-height: 1.9;
}

.news-content ul { list-style: disc outside; }
.news-content ol { list-style: decimal outside; }

.news-content li {
	list-style: inherit;
	display: list-item;
	margin-bottom: 8px;
}

.news-content a {
	color: var(--accent-600);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.news-content a:hover {
	color: var(--clay-600);
}

.news-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--r-sm);
	display: block;
	margin: 26px auto;
	background: var(--paper-200);
}

.news-content blockquote {
	margin: 0 0 24px;
	padding: 18px 24px;
	background: var(--paper-100);
	border-left: 3px solid var(--clay-500);
	border-radius: 0 var(--r-sm) var(--r-sm) 0;
	color: var(--ink-600);
	font-style: italic;
}

.news-content blockquote p:last-child {
	margin-bottom: 0;
}

.news-content code {
	font-family: Consolas, Menlo, Monaco, "Courier New", monospace;
	font-size: 0.9em;
}

.news-content code.rt-inline-code {
	background: var(--paper-200);
	color: var(--clay-600);
	border-radius: 4px;
	padding: 2px 6px;
	word-break: break-word;
}

.news-content .rt-code-wrap {
	position: relative;
	margin: 0 0 24px;
}

.news-content pre {
	margin: 0;
	padding: 18px 20px;
	background: #f6f3ec;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	overflow-x: auto;
	font-size: 14px;
	line-height: 1.7;
	tab-size: 4;
}

.news-content pre code {
	background: none;
	padding: 0;
	color: var(--ink-800);
}

.news-content .rt-copy-btn {
	position: absolute;
	top: 9px;
	right: 9px;
	padding: 4px 11px;
	font-size: 11.5px;
	border-radius: var(--r-sm);
	color: var(--ink-500);
	background: var(--paper-50);
	border: 1px solid var(--line);
	opacity: 0;
	transition: opacity 0.2s ease;
	cursor: pointer;
}

.news-content .rt-code-wrap:hover .rt-copy-btn,
.news-content .rt-copy-btn:focus {
	opacity: 1;
}

.news-content .rt-copy-btn.copied {
	color: var(--accent-700);
	border-color: var(--accent-500);
}

.news-content .rt-table-wrap {
	overflow-x: auto;
	margin: 0 0 24px;
	border-radius: var(--r-sm);
}

.news-content table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--font-sans);
	font-size: 14.5px;
}

.news-content th,
.news-content td {
	border: 1px solid var(--line);
	padding: 11px 13px;
	text-align: left;
}

.news-content th {
	background: var(--paper-100);
	font-weight: 600;
	color: var(--ink-800);
}

.news-content tbody tr:nth-child(even) td {
	background: rgba(245, 240, 229, 0.55);
}

.news-content .rt-responsive {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	margin: 0 0 24px;
	border-radius: var(--r-sm);
}

.news-content .rt-responsive iframe,
.news-content .rt-responsive video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.news-content hr {
	border: none;
	border-top: 1px solid var(--line);
	margin: 32px 0;
}

.news-content strong,
.news-content b {
	font-weight: 700;
	color: var(--ink-900);
}

/* 文末作者卡 */
.author-card {
	display: flex;
	gap: 18px;
	align-items: center;
	margin: 42px 0 0;
	padding: 22px 24px;
	border-radius: var(--r-md);
	background: var(--paper-100);
	border: 1px solid var(--line-soft);
}

.author-card img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--paper-200);
}

.author-card .ac-name {
	font-family: var(--font-serif);
	font-size: 16.5px;
	font-weight: 700;
	color: var(--ink-900);
	margin-bottom: 3px;
}

.author-card .ac-desc {
	font-family: var(--font-sans);
	font-size: 13.5px;
	color: var(--ink-500);
	line-height: 1.65;
}

/* 上下篇导航 */
.prevnext {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin: 34px 0 0;
}

.pn-item {
	padding: 16px 20px;
	border-radius: var(--r-md);
	border: 1px solid var(--line-soft);
	background: var(--paper-50);
	transition: all 0.22s ease;
}

.pn-item:hover {
	border-color: var(--accent-500);
	background: var(--accent-100);
}

.pn-item .pn-label {
	font-family: var(--font-sans);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-400);
	margin-bottom: 6px;
}

.pn-item .pn-title {
	font-family: var(--font-serif);
	font-size: 15px;
	font-weight: 700;
	color: var(--ink-800);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pn-item.next {
	text-align: right;
}

@media screen and (max-width: 640px) {
	.prevnext {
		grid-template-columns: 1fr;
	}

	.pn-item.next {
		text-align: left;
	}

	.news-content {
		font-size: 16.5px;
		line-height: 1.85;
	}
}

/* 详情侧栏 */
.detail-side {
	position: sticky;
	top: 96px;
}

/* 目录 */
.toc {
	border-radius: var(--r-md);
	border: 1px solid var(--line-soft);
	background: var(--paper-100);
	padding: 20px 22px;
	margin-bottom: 22px;
}

.toc h4 {
	font-family: var(--font-serif);
	font-size: 15px;
	font-weight: 700;
	color: var(--ink-900);
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
}

.toc ol {
	list-style: none;
	padding: 0;
	margin: 0;
	counter-reset: toc;
}

.toc li {
	counter-increment: toc;
	margin-bottom: 9px;
	font-family: var(--font-sans);
	font-size: 13px;
	line-height: 1.6;
}

.toc li a {
	color: var(--ink-600);
	display: flex;
	gap: 8px;
}

.toc li a::before {
	content: counter(toc, decimal-leading-zero);
	color: var(--paper-400);
	font-weight: 600;
	flex-shrink: 0;
}

.toc li a:hover {
	color: var(--accent-700);
}

@media screen and (max-width: 1000px) {
	.detail-layout {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.detail-side {
		position: static;
	}
}

/* ==========================================================================
   五、搜索页
   ========================================================================== */
.search-head {
	padding: 40px 0 24px;
	text-align: center;
}

.search-head h1 {
	font-family: var(--font-serif);
	font-size: 30px;
	font-weight: 700;
	color: var(--ink-900);
	margin-bottom: 12px;
}

.search-head h1 em {
	font-style: italic;
	color: var(--accent-600);
}

.search-head p {
	font-family: var(--font-sans);
	font-size: 14px;
	color: var(--ink-400);
}

.search-bar {
	max-width: 560px;
	margin: 22px auto 0;
	position: relative;
}

.search-bar input {
	width: 100%;
	height: 48px;
	padding: 0 122px 0 22px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--paper-50);
	font-family: var(--font-sans);
	font-size: 15px;
	color: var(--ink-800);
}

.search-bar input:focus {
	border-color: var(--accent-500);
	outline: none;
	box-shadow: 0 0 0 3px rgba(74, 138, 118, 0.12);
}

.search-bar button {
	position: absolute;
	right: 5px;
	top: 5px;
	height: 38px;
	padding: 0 24px;
	border-radius: 999px;
	background: var(--accent-600);
	color: var(--paper-50);
	font-family: var(--font-sans);
	font-size: 13.5px;
	font-weight: 600;
	transition: background 0.2s ease;
}

.search-bar button:hover {
	background: var(--accent-700);
}

.result-list {
	padding: 12px 0 20px;
	max-width: 780px;
	margin: 0 auto;
}

.result-item {
	padding: 22px 0;
	border-bottom: 1px dashed var(--line);
	cursor: pointer;
}

.result-item .ri-cat {
	font-family: var(--font-sans);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--accent-600);
	margin-bottom: 8px;
}

.result-item h3 {
	font-family: var(--font-serif);
	font-size: 20px;
	line-height: 1.45;
	font-weight: 700;
	color: var(--ink-900);
	margin-bottom: 8px;
	transition: color 0.2s ease;
}

.result-item:hover h3 {
	color: var(--accent-700);
}

.result-item p {
	font-family: var(--font-sans);
	font-size: 14px;
	line-height: 1.75;
	color: var(--ink-500);
}

/* ==========================================================================
   六、静态页（关于 / 版权）
   ========================================================================== */
.static-main {
	padding: 48px 0 20px;
}

.static-card {
	max-width: 820px;
	margin: 0 auto;
	background: var(--paper-50);
	border: 1px solid var(--line-soft);
	border-radius: var(--r-lg);
	padding: 46px 52px;
	box-shadow: var(--shadow-sm);
}

.static-card h1 {
	font-family: var(--font-serif);
	font-size: 34px;
	font-weight: 700;
	color: var(--ink-900);
	margin-bottom: 8px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--line);
}

.static-card h2 {
	font-family: var(--font-serif);
	font-size: 22px;
	font-weight: 700;
	color: var(--ink-900);
	margin: 32px 0 12px;
	padding-left: 13px;
	border-left: 3px solid var(--accent-500);
}

.static-card h3 {
	font-family: var(--font-serif);
	font-size: 17.5px;
	font-weight: 700;
	color: var(--ink-800);
	margin: 22px 0 8px;
}

.static-card p {
	font-family: var(--font-serif);
	font-size: 16px;
	line-height: 1.88;
	color: var(--ink-700);
	margin-bottom: 15px;
}

.static-card ul {
	margin: 0 0 16px;
	padding-left: 22px;
	list-style: disc outside;
}

.static-card li {
	list-style: disc;
	font-family: var(--font-serif);
	font-size: 16px;
	line-height: 1.85;
	color: var(--ink-700);
	margin-bottom: 7px;
}

.static-card a {
	color: var(--accent-600);
	text-decoration: underline;
}

@media screen and (max-width: 768px) {
	.static-card {
		padding: 30px 24px;
	}

	.static-card h1 {
		font-size: 26px;
	}
}

/* ==========================================================================
   七、页脚
   ========================================================================== */
.site-footer {
	margin-top: 70px;
	border-top: 1px solid var(--line);
	background: var(--paper-100);
}

.footer-inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 44px;
	padding: 48px 0 36px;
}

.footer-brand .fb-mark {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.footer-brand .fb-name {
	font-family: var(--font-serif);
	font-size: 18px;
	font-weight: 700;
	color: var(--ink-900);
}

.footer-brand p {
	font-family: var(--font-sans);
	font-size: 13.5px;
	line-height: 1.78;
	color: var(--ink-500);
	max-width: 420px;
}

.footer-col h4 {
	font-family: var(--font-sans);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--ink-400);
	margin-bottom: 14px;
}

.footer-col li {
	margin-bottom: 9px;
}

.footer-col a {
	font-family: var(--font-sans);
	font-size: 13.5px;
	color: var(--ink-600);
	transition: color 0.2s ease, padding-left 0.2s ease;
	display: inline-block;
}

.footer-col a:hover {
	color: var(--accent-700);
	padding-left: 4px;
}

.footer-bottom {
	border-top: 1px solid var(--line);
	padding: 18px 0;
	text-align: center;
}

.footer-bottom p {
	font-family: var(--font-sans);
	font-size: 12.5px;
	color: var(--ink-400);
}

.footer-bottom .fb-links {
	display: flex;
	gap: 18px;
	justify-content: center;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

.footer-bottom .fb-links a {
	font-family: var(--font-sans);
	font-size: 12.5px;
	color: var(--ink-500);
}

.footer-bottom .fb-links a:hover {
	color: var(--accent-700);
}

@media screen and (max-width: 900px) {
	.footer-inner {
		grid-template-columns: 1fr 1fr;
		gap: 30px;
		padding: 36px 0 28px;
	}

	.footer-brand {
		grid-column: 1 / -1;
	}
}

@media screen and (max-width: 560px) {
	.footer-inner {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   八、骨架屏 / 加载态
   ========================================================================== */
.skeleton {
	background: linear-gradient(90deg, var(--paper-100) 25%, var(--paper-200) 50%, var(--paper-100) 75%);
	background-size: 200% 100%;
	animation: sk-shimmer 1.4s infinite;
	border-radius: var(--r-sm);
}

@keyframes sk-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.sk-card {
	border: 1px solid var(--line-soft);
	border-radius: var(--r-md);
	overflow: hidden;
}

.sk-thumb {
	height: 168px;
	border-radius: 0;
}

.sk-body {
	padding: 18px 20px;
}

.sk-line {
	height: 13px;
	margin-bottom: 10px;
}

/* ==========================================================================
   九、入场动画
   ========================================================================== */
.fade-up {
	opacity: 0;
	transform: translateY(14px);
	animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 打字机光标（手记感） */
.blink {
	display: inline-block;
	width: 2px;
	height: 1em;
	background: var(--clay-500);
	vertical-align: text-bottom;
	animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
	to { visibility: hidden; }
}
