/* ==========================================================================
   Yuu — 设计系统
   1. 变量  2. 基础  3. 布局  4. 按钮/图标  5. 页头  6. 首页
   7. 卡片  8. 文章页  9. 归档/搜索/404  10. 个人主页  11. 我的文章
   12. 发布页  13. 弹窗登录  14. 页脚  15. 组件  16. 响应式
   ========================================================================== */

/* 1. 变量 ---------------------------------------------------------------- */
:root {
	--wrap: 1180px;
	--wrap-narrow: 748px;

	--paper: #fbfaf7;
	--paper-2: #f4f1ea;
	--surface: #ffffff;
	--ink: #17161b;
	--ink-2: #3f3d47;
	--muted: #8a848f;
	--line: #e7e2d9;
	--line-2: #f0ece4;

	--accent: #e8482a;
	--accent-2: #f2a03d;
	--blue: #5b7cfa;
	--ok: #1a9e6b;
	--warn: #b7791f;
	--danger: #d64545;
	--accent-soft: rgba(232, 72, 42, 0.09);

	--radius-sm: 12px;
	--radius: 18px;
	--radius-lg: 26px;

	--shadow-sm: 0 1px 2px rgba(23, 22, 27, 0.05);
	--shadow: 0 22px 50px -30px rgba(23, 22, 27, 0.4);

	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--sans: "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
	--serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
	--paper: #0e0e11;
	--paper-2: #131318;
	--surface: #16161a;
	--ink: #f3f0ea;
	--ink-2: #cbc6be;
	--muted: #8f8982;
	--line: #28282e;
	--line-2: #1d1d22;

	--accent: #ff6b45;
	--accent-2: #ffb057;
	--blue: #7d95ff;
	--ok: #3ddc97;
	--warn: #e5b567;
	--danger: #ff7a7a;
	--accent-soft: rgba(255, 107, 69, 0.14);

	--shadow: 0 22px 50px -30px rgba(0, 0, 0, 0.8);
}

/* 2. 基础 ---------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(48% 38% at 10% -6%, var(--accent-soft), transparent 72%),
		radial-gradient(38% 34% at 92% 0%, rgba(91, 124, 250, 0.09), transparent 72%);
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol {
	margin: 0;
}

a {
	color: inherit;
	text-decoration: none;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}

button {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

::selection {
	background: var(--accent);
	color: #fff;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

[hidden] {
	display: none !important;
}

.skip-link {
	position: fixed;
	top: 8px;
	left: 50%;
	transform: translate(-50%, -180%);
	z-index: 200;
	background: var(--ink);
	color: var(--paper);
	padding: 9px 18px;
	border-radius: 999px;
	font-size: 13px;
	transition: transform 0.3s var(--ease);
}

.skip-link:focus {
	transform: translate(-50%, 0);
}

/* 3. 布局 ---------------------------------------------------------------- */
.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: clamp(18px, 4vw, 32px);
	position: relative;
	z-index: 1;
}

.wrap--narrow {
	max-width: calc(var(--wrap-narrow) + clamp(36px, 8vw, 64px));
}

main {
	display: block;
	min-height: 40vh;
}

/* 4. 按钮与图标 ---------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 42px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.3s;
	white-space: nowrap;
}

.btn .i {
	flex: none;
}

.btn--primary {
	background: var(--accent);
	color: #fff;
	box-shadow: 0 10px 24px -14px rgba(232, 72, 42, 0.9);
}

.btn--primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 16px 30px -14px rgba(232, 72, 42, 0.9);
	background: color-mix(in srgb, var(--accent) 88%, #000);
}

.btn--ghost {
	border-color: var(--line);
	color: var(--ink);
	background: transparent;
}

.btn--ghost:hover {
	border-color: var(--ink);
	background: var(--surface);
}

.btn--sm {
	height: 36px;
	padding: 0 15px;
	font-size: 13px;
}

.btn--block {
	width: 100%;
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	color: var(--ink-2);
	transition: background 0.25s, color 0.25s, transform 0.25s var(--ease);
}

.icon-btn:hover {
	background: var(--line-2);
	color: var(--ink);
}

.icon-btn:active {
	transform: scale(0.94);
}

.i {
	display: inline-block;
	vertical-align: -0.15em;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--ink-2);
	font-weight: 500;
	border-bottom: 1px solid transparent;
	transition: color 0.2s, border-color 0.2s;
}

.text-link:hover {
	color: var(--accent);
	border-bottom-color: currentColor;
}

.text-link--sm {
	font-size: 12.5px;
	color: var(--muted);
}

.text-link--danger:hover {
	color: var(--danger);
}

.dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.5;
	flex: none;
}

.kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}

.kicker__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 0 var(--accent);
	animation: pulse 2.6s infinite;
}

@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(232, 72, 42, 0.45); }
	70% { box-shadow: 0 0 0 7px rgba(232, 72, 42, 0); }
	100% { box-shadow: 0 0 0 0 rgba(232, 72, 42, 0); }
}

/* 5. 页头 ---------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: color-mix(in srgb, var(--paper) 78%, transparent);
	backdrop-filter: saturate(160%) blur(16px);
	-webkit-backdrop-filter: saturate(160%) blur(16px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s, background 0.3s;
}

.site-header.is-scrolled {
	border-bottom-color: var(--line);
	background: color-mix(in srgb, var(--paper) 92%, transparent);
}

/* 登录后顶部有管理工具条，粘性头部要跟着让位 */
body.admin-bar .site-header {
	top: 32px;
}

body.admin-bar .read-progress {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header,
	body.admin-bar .read-progress {
		top: 46px;
	}

	body.admin-bar .nav {
		top: 114px;
	}
}

@media screen and (min-width: 783px) {
	body.admin-bar .nav {
		top: 100px;
	}
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 22px;
	height: 68px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 19px;
	letter-spacing: -0.03em;
	color: var(--ink);
	flex: none;
}

.brand__mark {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 10px;
	background: linear-gradient(140deg, var(--accent), var(--accent-2));
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	line-height: 1;
	padding-bottom: 2px;
	transform: rotate(-7deg);
	box-shadow: 0 6px 14px -8px rgba(232, 72, 42, 0.9);
}

.brand__mark--lg {
	width: 44px;
	height: 44px;
	font-size: 26px;
	border-radius: 14px;
	margin-bottom: 14px;
}

.brand__text {
	line-height: 1;
}

.custom-logo {
	max-height: 32px;
	width: auto;
}

.nav {
	margin-right: auto;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 24px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.nav__list a {
	position: relative;
	font-size: 14px;
	color: var(--ink-2);
	padding-block: 6px;
	transition: color 0.2s;
}

.nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1.5px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s var(--ease);
}

.nav__list a:hover,
.nav__list a.is-active {
	color: var(--ink);
}

.nav__list a:hover::after,
.nav__list a.is-active::after {
	transform: scaleX(1);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}

.theme-toggle__dark {
	display: none;
}

[data-theme="dark"] .theme-toggle__light {
	display: none;
}

[data-theme="dark"] .theme-toggle__dark {
	display: inline-flex;
}

.nav-toggle {
	display: none;
}

/* 用户菜单 */
.user-menu {
	position: relative;
}

.user-menu__trigger {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	transition: box-shadow 0.25s;
}

.user-menu__trigger img,
.user-menu__avatar {
	border-radius: 50%;
	width: 32px;
	height: 32px;
}

.user-menu__trigger:hover {
	box-shadow: 0 0 0 2px var(--line);
}

.user-menu__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 12px);
	width: 232px;
	padding: 8px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px) scale(0.98);
	transform-origin: top right;
	transition: all 0.24s var(--ease);
	z-index: 70;
}

.user-menu.is-open .user-menu__panel {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.user-menu__head {
	padding: 8px 10px 10px;
	border-bottom: 1px solid var(--line-2);
	margin-bottom: 6px;
}

.user-menu__head strong {
	display: block;
	font-size: 13.5px;
}

.user-menu__head span {
	display: block;
	font-size: 11.5px;
	color: var(--muted);
	overflow: hidden;
	text-overflow: ellipsis;
}

.user-menu__panel a {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 9px 10px;
	border-radius: 10px;
	font-size: 13.5px;
	color: var(--ink-2);
	transition: background 0.2s, color 0.2s;
}

.user-menu__panel a:hover {
	background: var(--line-2);
	color: var(--ink);
}

.user-menu__panel .user-menu__out {
	color: var(--danger);
	margin-top: 4px;
	border-top: 1px solid var(--line-2);
	border-radius: 0 0 10px 10px;
	padding-top: 10px;
}

/* 搜索浮层 */
.search-overlay {
	position: fixed;
	inset: 0;
	z-index: 110;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 18vh 20px 40px;
	background: color-mix(in srgb, var(--paper) 72%, transparent);
	backdrop-filter: blur(14px) saturate(130%);
	-webkit-backdrop-filter: blur(14px) saturate(130%);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
}

.search-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.search-overlay__inner {
	position: relative;
	width: min(680px, 100%);
}

.search-overlay__form {
	display: flex;
	gap: 10px;
	width: 100%;
	transform: translateY(-10px);
	transition: transform 0.4s var(--ease);
}

.search-overlay.is-open .search-overlay__form {
	transform: none;
}

.search-overlay__form input {
	flex: 1;
	height: 58px;
	padding: 0 24px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	font-size: 16px;
	box-shadow: var(--shadow-sm);
}

.search-overlay__form input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}

.search-overlay__hint {
	position: absolute;
	top: calc(100% + 16px);
	font-size: 12px;
	color: var(--muted);
}

.search-overlay__hint kbd {
	font-family: var(--mono);
	font-size: 11px;
	padding: 2px 6px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface);
}

/* 6. 首页 ---------------------------------------------------------------- */
.masthead {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) auto;
	gap: clamp(28px, 5vw, 64px);
	align-items: end;
	padding-block: clamp(40px, 6.5vw, 84px) clamp(30px, 4vw, 52px);
}

.masthead__title {
	font-family: var(--serif);
	font-size: clamp(30px, 4.3vw, 56px);
	line-height: 1.16;
	letter-spacing: -0.02em;
	font-weight: 600;
	margin: 16px 0 14px;
	text-wrap: balance;
}

.masthead__lede {
	font-size: 15px;
	color: var(--muted);
	max-width: 46ch;
	line-height: 1.8;
}

.masthead__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 26px;
}

.masthead__side {
	display: flex;
	gap: clamp(20px, 3vw, 40px);
	padding-bottom: 6px;
}

.stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.stat strong {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.stat span {
	font-size: 11.5px;
	color: var(--muted);
	letter-spacing: 0.06em;
}

.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	padding-top: 18px;
	margin-bottom: 24px;
	border-top: 1px solid var(--line);
}

.section-title {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.section-title__sub {
	font-size: 12px;
	font-weight: 400;
	color: var(--muted);
	letter-spacing: 0.02em;
}

.section-head__hint {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12.5px;
	color: var(--muted);
}

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

.pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 13px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 12.5px;
	color: var(--ink-2);
	transition: all 0.22s var(--ease);
}

.pill:hover {
	border-color: var(--accent);
	color: var(--accent);
	transform: translateY(-1px);
}

.pill--sm {
	height: 28px;
	padding: 0 12px;
	font-size: 12px;
}

.pill.is-active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.pill__count {
	font-size: 10.5px;
	opacity: 0.6;
}

/* 精选 */
.featured {
	padding-bottom: 12px;
}

.featured-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	grid-auto-rows: 1fr;
	gap: 16px;
}

.feature {
	position: relative;
	display: block;
	border-radius: var(--radius-lg);
	overflow: hidden;
	min-height: 218px;
	background: var(--paper-2);
	isolation: isolate;
}

.feature--lead {
	grid-row: span 2;
	min-height: 460px;
}

.feature .thumb {
	position: absolute;
	inset: 0;
}

.feature .thumb__img,
.feature .thumb__blank {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s var(--ease);
}

.feature::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(12, 11, 14, 0) 6%, rgba(12, 11, 14, 0.5) 56%, rgba(12, 11, 14, 0.88) 100%);
}

.feature:hover .thumb__img {
	transform: scale(1.05);
}

.feature__body {
	position: absolute;
	inset: auto 0 0 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
	color: #f7f4ef;
}

.feature--lead .feature__body {
	padding: clamp(24px, 3vw, 38px);
	max-width: 640px;
}

.feature__kicker {
	align-self: flex-start;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	backdrop-filter: blur(6px);
}

.feature__title {
	font-size: 19px;
	line-height: 1.4;
	font-weight: 650;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.feature--lead .feature__title {
	font-family: var(--serif);
	font-size: clamp(23px, 2.6vw, 33px);
	line-height: 1.32;
	font-weight: 600;
}

.feature__excerpt {
	font-size: 13.5px;
	line-height: 1.7;
	color: rgba(247, 244, 239, 0.72);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.feature:not(.feature--lead) .feature__title {
	font-size: 17.5px;
	line-height: 1.45;
}

.feature:not(.feature--lead) .feature__excerpt {
	display: none;
}

.feature:not(.feature--lead) .feature__kicker {
	font-size: 10px;
}

.feature__more {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12.5px;
	color: rgba(247, 244, 239, 0.9);
	opacity: 0;
	transform: translateY(6px);
	transition: all 0.4s var(--ease);
}

.feature:hover .feature__more {
	opacity: 1;
	transform: none;
}

/* 7. 卡片 ---------------------------------------------------------------- */
.latest {
	padding-top: clamp(34px, 5vw, 56px);
}

.grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 2.6vw, 30px);
	row-gap: clamp(28px, 3.4vw, 42px);
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 13px;
}

.card__media {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--line-2);
}

.card__media .thumb {
	position: absolute;
	inset: 0;
}

.thumb__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--ease);
}

.card:hover .thumb__img {
	transform: scale(1.045);
}

.thumb__blank {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, hsl(var(--h, 12) 62% 58%), hsl(calc(var(--h, 12) + 42) 58% 42%));
}

.thumb__blank span {
	font-family: var(--serif);
	font-size: 40px;
	color: rgba(255, 255, 255, 0.72);
}

.card__badge {
	position: absolute;
	left: 12px;
	top: 12px;
	z-index: 2;
	font-size: 11px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #17161b;
	backdrop-filter: blur(6px);
	letter-spacing: 0.02em;
}

.card__body {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.card__title {
	font-size: 18.5px;
	line-height: 1.45;
	font-weight: 650;
	letter-spacing: -0.012em;
	text-wrap: pretty;
}

.card__title a {
	color: var(--ink);
	transition: color 0.2s;
}

.card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--radius);
}

.card:hover .card__title a {
	color: var(--accent);
}

.card__excerpt {
	font-size: 13.5px;
	line-height: 1.72;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.meta-line {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 12px;
	color: var(--muted);
	letter-spacing: 0.01em;
}

.meta-line__cat {
	color: var(--accent);
	font-weight: 500;
}

.meta-line__dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.45;
}

.meta-line__read {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
}

.card--compact {
	height: 100%;
}

.card--compact .card__title {
	font-size: 15.5px;
}

.card--compact .card__body {
	flex: 1;
}

.card--compact .meta-line {
	margin-top: auto;
}

/* 分页 */
.pager {
	display: flex;
	justify-content: center;
	margin-block: clamp(36px, 5vw, 56px);
}

.pager__inner {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
}

.pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--line);
	border-radius: 12px;
	font-size: 13px;
	color: var(--ink-2);
	transition: all 0.22s var(--ease);
}

.pager .page-numbers:hover {
	border-color: var(--ink);
	color: var(--ink);
}

.pager .page-numbers.current {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
}

.pager .prev svg {
	transform: rotate(180deg);
}

/* 8. 文章页 -------------------------------------------------------------- */
.read-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 100;
	background: transparent;
	pointer-events: none;
}

.read-progress span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	border-radius: 0 3px 3px 0;
}

.single__head {
	padding-block: clamp(26px, 4.6vw, 54px) 22px;
}

.single__title {
	font-family: var(--serif);
	font-size: clamp(28px, 4vw, 46px);
	line-height: 1.24;
	letter-spacing: -0.02em;
	font-weight: 600;
	margin: 14px 0 0;
	text-wrap: balance;
}

.single__lede {
	font-size: 16.5px;
	line-height: 1.78;
	color: var(--muted);
	margin-top: 14px;
	max-width: 58ch;
}

.single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 11px;
	margin-top: 22px;
	font-size: 12.5px;
	color: var(--muted);
}

.byline {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
}

.byline__avatar {
	border-radius: 50%;
	width: 30px;
	height: 30px;
}

.byline:hover .byline__name {
	color: var(--accent);
}

.single__cover {
	margin: 0 0 clamp(26px, 4vw, 40px);
	border-radius: var(--radius-lg);
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--line-2);
}

.single__cover .thumb {
	width: 100%;
	height: 100%;
}

.notice {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	font-size: 13.5px;
	margin-bottom: 20px;
	border: 1px solid transparent;
}

.notice--ok {
	background: color-mix(in srgb, var(--ok) 12%, transparent);
	border-color: color-mix(in srgb, var(--ok) 30%, transparent);
	color: var(--ok);
}

.notice--error {
	background: color-mix(in srgb, var(--danger) 10%, transparent);
	border-color: color-mix(in srgb, var(--danger) 28%, transparent);
	color: var(--danger);
}

/* 正文排版 */
.entry {
	font-family: var(--serif);
	font-size: 17.5px;
	line-height: 1.95;
	color: var(--ink-2);
	letter-spacing: 0.002em;
}

.entry > * + * {
	margin-top: 1.15em;
}

.entry h2,
.entry h3,
.entry h4 {
	font-family: var(--sans);
	color: var(--ink);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.4;
	margin-top: 2em;
	margin-bottom: 0.7em;
	scroll-margin-top: 90px;
}

.entry h2 { font-size: 1.42em; }
.entry h3 { font-size: 1.2em; }
.entry h4 { font-size: 1.05em; }

.entry a {
	color: var(--accent);
	border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
	transition: border-color 0.2s, color 0.2s;
}

.entry a:hover {
	border-bottom-color: var(--accent);
}

.entry strong {
	color: var(--ink);
	font-weight: 700;
}

.entry ul,
.entry ol {
	padding-left: 1.3em;
}

.entry li + li {
	margin-top: 0.4em;
}

.entry li::marker {
	color: var(--accent);
}

.entry blockquote {
	margin: 1.8em 0;
	padding: 18px 22px 18px 22px;
	border-left: 3px solid var(--accent);
	background: var(--paper-2);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-size: 1.02em;
	color: var(--ink-2);
}

.entry blockquote p {
	margin: 0;
}

.entry img {
	border-radius: var(--radius-sm);
	margin-inline: auto;
}

.entry figure {
	margin: 1.9em 0;
}

.entry figcaption {
	font-family: var(--sans);
	font-size: 12px;
	color: var(--muted);
	text-align: center;
	margin-top: 10px;
}

.entry code {
	font-family: var(--mono);
	font-size: 0.86em;
	background: var(--paper-2);
	border: 1px solid var(--line-2);
	padding: 2px 6px;
	border-radius: 6px;
	color: var(--accent);
}

.entry pre {
	background: #16161a;
	color: #e9e5dd;
	padding: 20px 22px;
	border-radius: var(--radius);
	overflow-x: auto;
	font-size: 13.5px;
	line-height: 1.7;
	border: 1px solid #24242a;
}

.entry pre code {
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
	font-size: inherit;
}

.entry hr {
	border: 0;
	height: 1px;
	background: var(--line);
	margin: 2.4em 0;
}

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

.entry th,
.entry td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.entry th {
	color: var(--ink);
	font-weight: 600;
}

.entry .wp-block-image img,
.entry .alignwide {
	border-radius: var(--radius);
}

.entry__pages {
	display: flex;
	gap: 6px;
	margin-top: 1.6em;
	font-family: var(--sans);
}

.entry__pages .post-page-numbers {
	padding: 4px 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	font-size: 13px;
}

.single__foot {
	margin-top: 34px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.taglist {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.taglist__label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: var(--muted);
	margin-right: 2px;
}

.single__tools {
	font-size: 12.5px;
	color: var(--muted);
}

/* 作者名片 */
.author-card {
	display: flex;
	gap: 18px;
	padding: 24px;
	margin-top: 34px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.author-card__avatar {
	border-radius: 50%;
	width: 56px;
	height: 56px;
	flex: none;
}

.author-card__label {
	font-size: 10.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent);
	font-weight: 600;
}

.author-card__name {
	font-size: 17px;
	font-weight: 700;
	margin: 3px 0 6px;
	letter-spacing: -0.01em;
}

.author-card__name a:hover {
	color: var(--accent);
}

.author-card__bio {
	font-size: 13.5px;
	line-height: 1.75;
	color: var(--muted);
}

.author-card__meta {
	font-size: 12px;
	color: var(--muted);
	margin-top: 8px;
}

.author-card__meta a {
	color: var(--accent);
}

/* 相关阅读、上下篇 */
.related {
	margin-top: clamp(40px, 6vw, 60px);
}

.postnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: clamp(34px, 5vw, 52px);
}

.postnav__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: all 0.28s var(--ease);
}

.postnav__item:hover {
	border-color: var(--ink);
	transform: translateY(-2px);
}

.postnav__item--next {
	text-align: right;
	align-items: flex-end;
}

.postnav__label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11.5px;
	color: var(--muted);
	letter-spacing: 0.04em;
}

.postnav__item--prev .postnav__label svg {
	transform: rotate(180deg);
}

.postnav__title {
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* 评论 */
.comments-area {
	margin-top: clamp(40px, 6vw, 60px);
	padding-top: 30px;
	border-top: 1px solid var(--line);
}

.comments-title,
.comment-reply-title {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.02em;
	margin-bottom: 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.comment-list {
	list-style: none;
	padding: 0;
	margin: 0 0 30px;
}

.no-comments {
	font-size: 13px;
	color: var(--muted);
	margin-bottom: 16px;
}

.comment-list + .comment-respond,
.comment-list + .pager + .comment-respond {
	margin-top: 26px;
	padding-top: 24px;
	border-top: 1px solid var(--line-2);
}

.comment-list .children {
	list-style: none;
	padding-left: 22px;
	margin-top: 4px;
	border-left: 1px solid var(--line-2);
}

.comment-body {
	padding: 16px 0;
	border-bottom: 1px solid var(--line-2);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 13px;
	font-weight: 600;
}

.comment-author .avatar {
	border-radius: 50%;
	width: 28px;
	height: 28px;
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	font-size: 11.5px;
	color: var(--muted);
	margin-top: 4px;
}

.comment-content {
	font-family: var(--serif);
	font-size: 15px;
	line-height: 1.8;
	color: var(--ink-2);
	margin-top: 8px;
}

.reply a {
	font-size: 12px;
	color: var(--accent);
}

.comment-form p {
	margin-bottom: 12px;
}

.comment-form label {
	display: block;
	font-size: 12.5px;
	color: var(--muted);
	margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	font-size: 14px;
	font-family: var(--sans);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.comment-form .submit {
	background: var(--accent);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 11px 24px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
}

.comment-form .submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 24px -14px rgba(232, 72, 42, 0.9);
}

/* 9. 归档 / 搜索 / 404 --------------------------------------------------- */
.page-head {
	padding-block: clamp(32px, 5vw, 56px) clamp(24px, 3vw, 34px);
}

.page-head--tight {
	padding-bottom: 18px;
}

.page-head__title {
	font-family: var(--serif);
	font-size: clamp(28px, 4.2vw, 48px);
	line-height: 1.2;
	letter-spacing: -0.02em;
	font-weight: 600;
	margin-top: 12px;
	text-wrap: balance;
}

.page-head__title em {
	font-style: normal;
	color: var(--accent);
}

.page-head__desc {
	margin-top: 14px;
	max-width: 62ch;
	font-size: 14.5px;
	line-height: 1.8;
	color: var(--muted);
}

.page-head__meta {
	margin-top: 14px;
	display: flex;
	align-items: center;
	gap: 9px;
	flex-wrap: wrap;
	font-size: 12.5px;
	color: var(--muted);
}

.page-head .cats {
	margin-top: 18px;
}

.search-form {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 460px;
	margin-top: 22px;
}

.search-form input {
	flex: 1;
	height: 42px;
	padding: 0 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	font-size: 14px;
}

.search-form input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-form--lg {
	max-width: 680px;
	gap: 10px;
	margin-top: 24px;
}

.search-form--lg .i {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--muted);
	pointer-events: none;
}

.search-form--lg input {
	height: 50px;
	padding-left: 46px;
	font-size: 15px;
}

.tag-cloud {
	margin-top: clamp(40px, 6vw, 64px);
	padding-top: 22px;
	border-top: 1px solid var(--line);
}

.tag-cloud__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

/* 404 */
.lost {
	padding-block: clamp(40px, 7vw, 90px);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.lost__art {
	display: flex;
	gap: 4px;
	margin-bottom: 8px;
	user-select: none;
}

.lost__ghost {
	font-family: var(--serif);
	font-size: clamp(72px, 15vw, 150px);
	font-weight: 700;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--line);
	transition: transform 0.5s var(--ease), color 0.4s, -webkit-text-stroke-color 0.4s;
}

.lost__ghost:nth-child(2) {
	color: var(--accent);
	-webkit-text-stroke-color: var(--accent);
	transform: translateY(-10px);
}

.lost__art:hover .lost__ghost:nth-child(1) {
	transform: translateY(-8px) rotate(-6deg);
}

.lost__art:hover .lost__ghost:nth-child(3) {
	transform: translateY(-8px) rotate(6deg);
}

.lost__title {
	font-family: var(--serif);
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 600;
	margin-top: 6px;
}

.lost__desc {
	color: var(--muted);
	font-size: 14.5px;
	margin-top: 10px;
	max-width: 40ch;
	line-height: 1.8;
}

.lost .search-form {
	justify-content: center;
}

.lost__actions {
	display: flex;
	gap: 10px;
	margin-top: 22px;
	flex-wrap: wrap;
	justify-content: center;
}

.lost__latest {
	margin-top: 46px;
	width: min(520px, 100%);
	text-align: left;
	border-top: 1px solid var(--line);
	padding-top: 20px;
}

.lost__latest-title {
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 12px;
}

.lost__list {
	list-style: none;
	padding: 0;
}

.lost__list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 11px 0;
	border-bottom: 1px solid var(--line-2);
	font-size: 14px;
}

.lost__list a:hover {
	color: var(--accent);
}

.lost__list span {
	font-size: 12px;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

/* 空状态 */
.empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-block: clamp(40px, 7vw, 80px);
}

.empty__art {
	display: flex;
	gap: 8px;
	margin-bottom: 22px;
}

.empty__art span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--line);
}

.empty__art span:nth-child(2) {
	background: var(--accent);
	transform: translateY(-8px);
}

.empty__title {
	font-size: 17px;
	font-weight: 650;
}

.empty__desc {
	font-size: 13.5px;
	color: var(--muted);
	margin-top: 6px;
}

.empty .search-form {
	margin-top: 20px;
}

.empty .text-link {
	margin-top: 18px;
}

/* 10. 个人主页 ----------------------------------------------------------- */
.profile {
	position: relative;
	overflow: hidden;
	margin-block: clamp(26px, 4vw, 44px) clamp(28px, 4vw, 40px);
	padding: clamp(24px, 4vw, 46px);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.profile__glow {
	position: absolute;
	inset: -50% -20%;
	background:
		radial-gradient(40% 45% at 18% 22%, var(--accent-soft), transparent 62%),
		radial-gradient(38% 42% at 86% 72%, rgba(91, 124, 250, 0.14), transparent 62%);
	filter: blur(14px);
	pointer-events: none;
}

.profile__main {
	position: relative;
	display: flex;
	gap: clamp(18px, 3vw, 30px);
	align-items: flex-start;
}

.profile__avatar {
	border-radius: 50%;
	width: 96px;
	height: 96px;
	flex: none;
	box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line);
}

.profile__name {
	font-family: var(--serif);
	font-size: clamp(26px, 3.6vw, 40px);
	font-weight: 600;
	letter-spacing: -0.02em;
	margin: 6px 0 10px;
	line-height: 1.2;
}

.profile__bio {
	font-size: 14.5px;
	line-height: 1.85;
	color: var(--ink-2);
	max-width: 60ch;
}

.profile__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin-top: 16px;
	font-size: 12.5px;
	color: var(--muted);
}

.profile__meta span,
.profile__meta a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.profile__meta a:hover {
	color: var(--accent);
}

.profile__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 20px;
}

/* 11. 我的文章 ----------------------------------------------------------- */
.mystats {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px;
	margin-top: 18px;
	font-size: 12.5px;
	color: var(--muted);
}

.mystats__item {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
}

.mystats__item strong {
	font-size: 19px;
	color: var(--ink);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.mystats__cta {
	margin-left: auto;
}

.mylist {
	list-style: none;
	padding: 0;
	margin-top: 10px;
	border-top: 1px solid var(--line);
}

.mylist__item {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 18px;
	padding-block: 18px;
	border-bottom: 1px solid var(--line);
	align-items: center;
	transition: opacity 0.3s, transform 0.3s;
}

.mylist__item.is-removing {
	opacity: 0;
	transform: translateX(-12px);
}

.mylist__thumb {
	border-radius: var(--radius-sm);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--line-2);
}

.mylist__thumb .thumb {
	height: 100%;
}

.mylist__top {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 11.5px;
	color: var(--muted);
}

.status {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.status--publish {
	background: color-mix(in srgb, var(--ok) 14%, transparent);
	color: var(--ok);
}

.status--pending {
	background: color-mix(in srgb, var(--warn) 16%, transparent);
	color: var(--warn);
}

.status--draft,
.status--private {
	background: var(--line-2);
	color: var(--muted);
}

.mylist__title {
	font-size: 16.5px;
	font-weight: 650;
	line-height: 1.45;
	margin: 7px 0 8px;
	letter-spacing: -0.012em;
}

.mylist__title a:hover {
	color: var(--accent);
}

.mylist__actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.mylist__actions button {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* 12. 发布页 ------------------------------------------------------------- */
.publish__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(20px, 3vw, 34px);
	align-items: start;
	padding-bottom: 20px;
}

.publish__title {
	width: 100%;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	background: transparent;
	font-family: var(--serif);
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 600;
	letter-spacing: -0.02em;
	padding: 6px 2px 14px;
	color: var(--ink);
	transition: border-color 0.3s;
}

.publish__title::placeholder {
	color: color-mix(in srgb, var(--muted) 60%, transparent);
}

.publish__title:focus {
	outline: none;
	border-bottom-color: var(--accent);
}

.publish__editor {
	margin-top: 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--surface);
}

.publish__side .panel {
	margin-bottom: 14px;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.panel__title {
	font-size: 11.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	font-weight: 600;
	margin-bottom: 12px;
}

.panel__hint {
	font-size: 11.5px;
	color: var(--muted);
	margin-top: 8px;
}

.tips {
	list-style: none;
	padding: 0;
	font-size: 12.5px;
	line-height: 1.9;
	color: var(--muted);
}

.tips li {
	position: relative;
	padding-left: 14px;
}

.tips li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.85em;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--accent);
	opacity: 0.6;
}

.panel--tips {
	background: var(--paper-2);
}

.dropzone {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	border: 1px dashed var(--line);
	border-radius: var(--radius-sm);
	background: var(--paper-2);
	cursor: pointer;
	overflow: hidden;
	text-align: center;
	transition: border-color 0.25s, background 0.25s;
}

.dropzone:hover,
.dropzone.is-drag {
	border-color: var(--accent);
	background: var(--accent-soft);
}

.dropzone input[type="file"] {
	position: absolute;
	opacity: 0;
	inset: 0;
	cursor: pointer;
}

.dropzone__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	color: var(--muted);
	padding: 12px;
}

.dropzone__empty strong {
	font-size: 12.5px;
	color: var(--ink-2);
	font-weight: 600;
}

.dropzone__preview {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dropzone__clear {
	position: absolute;
	right: 8px;
	top: 8px;
	z-index: 3;
	width: 26px;
	height: 26px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
}

.checklist {
	display: flex;
	flex-wrap: wrap;
	gap: 0 6px;
}

.pillcheck {
	position: relative;
	display: inline-flex;
	margin-bottom: 8px;
}

.pillcheck input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.pillcheck span {
	display: inline-flex;
	align-items: center;
	height: 30px;
	padding: 0 13px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 12.5px;
	color: var(--ink-2);
	transition: all 0.22s var(--ease);
}

.pillcheck:hover span {
	border-color: var(--muted);
}

.pillcheck input:checked + span {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.pillcheck input:focus-visible + span {
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.input {
	width: 100%;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--paper);
	font-size: 14px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.publish__bar {
	position: sticky;
	bottom: 16px;
	z-index: 40;
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 6px;
	padding: 10px 12px 10px 22px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	backdrop-filter: blur(14px);
	box-shadow: var(--shadow);
}

.publish__status {
	font-size: 12.5px;
	color: var(--muted);
	margin-right: auto;
}

.publish__actions {
	display: flex;
	gap: 8px;
}

.hp {
	position: absolute !important;
	left: -9999px;
	height: 1px;
	width: 1px;
	opacity: 0;
}

/* TinyMCE 前台皮肤 */
.publish__editor .wp-editor-tools {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding: 8px 10px 0;
	background: var(--paper-2);
	border-bottom: 1px solid var(--line);
}

.publish__editor .wp-editor-container {
	border: 0;
}

.publish__editor .wp-switch-editor {
	float: none;
	background: var(--paper);
	border: 1px solid var(--line);
	border-bottom: 0;
	color: var(--muted);
	font-size: 12px;
	padding: 6px 12px;
	border-radius: 8px 8px 0 0;
	margin: 0 0 0 4px;
}

.publish__editor .wp-switch-editor.switch-tmce {
	color: var(--ink);
}

.publish__editor div.mce-toolbar-grp {
	background: var(--paper-2);
	border-bottom: 1px solid var(--line);
	padding: 4px 6px;
}

.publish__editor .mce-toolbar .mce-btn-group .mce-btn {
	border-radius: 6px;
}

.publish__editor .mce-toolbar .mce-btn button {
	padding: 3px 5px;
}

.publish__editor .mce-panel,
.publish__editor .mce-toolbar-grp {
	border-color: var(--line);
}

.publish__editor iframe,
#yuu_content_ifr {
	background: #fff;
}

.publish__editor .mce-statusbar {
	border-top: 1px solid var(--line);
	background: var(--paper-2);
}

/* 登录关卡 */
.gate {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: clamp(40px, 7vw, 80px) 24px;
	margin-top: clamp(26px, 4vw, 44px);
	border: 1px dashed var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.gate__art {
	display: flex;
	gap: 7px;
	margin-bottom: 20px;
}

.gate__art span {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--line);
}

.gate__art span:nth-child(2) {
	background: var(--accent);
	transform: translateY(-7px);
}

.gate__title {
	font-family: var(--serif);
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 600;
	letter-spacing: -0.02em;
}

.gate__desc {
	font-size: 13.5px;
	color: var(--muted);
	margin: 10px 0 22px;
}

/* 13. 弹窗登录 ----------------------------------------------------------- */
.modal {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: grid;
	place-items: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
}

.modal.is-open {
	opacity: 1;
	visibility: visible;
}

.modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(14, 13, 17, 0.55);
	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);
}

.modal__card {
	position: relative;
	width: min(408px, 100%);
	padding: 34px 30px 26px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 26px;
	box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.65);
	transform: translateY(14px) scale(0.98);
	transition: transform 0.4s var(--ease);
}

.modal.is-open .modal__card {
	transform: none;
}

.modal__close {
	position: absolute;
	right: 14px;
	top: 14px;
	width: 32px;
	height: 32px;
}

.modal__head {
	margin-bottom: 22px;
}

.modal__title {
	font-family: var(--serif);
	font-size: 25px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.modal__sub {
	font-size: 12.5px;
	color: var(--muted);
	margin-top: 7px;
}

.field {
	margin-bottom: 15px;
}

.field > label {
	display: block;
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 7px;
	letter-spacing: 0.03em;
}

.field input {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--paper);
	font-size: 14.5px;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field input:focus {
	outline: none;
	border-color: var(--accent);
	background: var(--surface);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.field__with-action {
	position: relative;
}

.field__with-action input {
	padding-right: 56px;
}

.field__peek {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 11.5px;
	color: var(--muted);
	padding: 6px 8px;
	border-radius: 8px;
}

.field__peek:hover {
	background: var(--line-2);
	color: var(--ink);
}

.login-form__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 4px 0 14px;
}

.check {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12.5px;
	color: var(--muted);
	cursor: pointer;
}

.check input {
	width: 15px;
	height: 15px;
	accent-color: var(--accent);
}

.form-msg {
	min-height: 18px;
	font-size: 12.5px;
	color: var(--danger);
	margin-bottom: 10px;
}

.form-msg:empty {
	margin-bottom: 4px;
}

.modal__card.is-error {
	animation: shake 0.42s var(--ease);
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-7px); }
	40% { transform: translateX(6px); }
	60% { transform: translateX(-4px); }
	80% { transform: translateX(3px); }
}

.modal__foot {
	text-align: center;
	font-size: 12.5px;
	color: var(--muted);
	margin-top: 18px;
}

.btn.is-loading {
	pointer-events: none;
	opacity: 0.72;
}

/* 14. 页脚 --------------------------------------------------------------- */
.site-footer {
	position: relative;
	margin-top: clamp(56px, 8vw, 110px);
	border-top: 1px solid var(--line);
	padding-block: clamp(34px, 5vw, 54px) 22px;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr auto;
	gap: 36px;
	align-items: start;
}

.brand--footer {
	margin-bottom: 12px;
}

.site-footer__desc {
	font-size: 13.5px;
	color: var(--muted);
	max-width: 34ch;
	line-height: 1.8;
}

.footer-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 13.5px;
}

.footer-nav__list a {
	color: var(--ink-2);
	transition: color 0.2s;
}

.footer-nav__list a:hover {
	color: var(--accent);
}

.site-footer__stats {
	display: flex;
	gap: 24px;
}

.site-footer__stats div {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.site-footer__stats strong {
	font-size: 17px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.site-footer__stats span {
	font-size: 11px;
	color: var(--muted);
	letter-spacing: 0.06em;
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: clamp(28px, 4vw, 44px);
	padding-top: 18px;
	border-top: 1px solid var(--line-2);
	font-size: 12px;
	color: var(--muted);
}

.site-footer__meta {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

.totop {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--ink-2);
	margin-left: 6px;
	transition: color 0.2s, transform 0.2s;
}

.totop:hover {
	color: var(--accent);
	transform: translateY(-2px);
}

/* 15. 组件 --------------------------------------------------------------- */
.toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 150;
	transform: translate(-50%, 14px);
	padding: 11px 20px;
	border-radius: 999px;
	background: var(--ink);
	color: var(--paper);
	font-size: 13px;
	opacity: 0;
	pointer-events: none;
	transition: all 0.35s var(--ease);
	white-space: nowrap;
	box-shadow: var(--shadow);
}

.toast.is-show {
	opacity: 1;
	transform: translate(-50%, 0);
}

body.is-locked {
	overflow: hidden;
}

/* 入场动效 */
.js .reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
	transition-delay: var(--d, 0ms);
}

.js .reveal.is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
	}
}

/* 16. 响应式 ------------------------------------------------------------- */
@media (max-width: 1024px) {
	.featured-grid {
		grid-template-columns: 1fr;
	}

	.feature--lead {
		grid-row: auto;
		min-height: 380px;
	}

	.feature {
		min-height: 240px;
	}

	.grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.publish__layout {
		grid-template-columns: 1fr;
	}

	.publish__side {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 14px;
	}

	.publish__side .panel {
		margin-bottom: 0;
	}
}

@media (max-width: 860px) {
	.nav-toggle {
		display: inline-flex;
	}

	.nav {
		position: fixed;
		left: 0;
		right: 0;
		top: 68px;
		display: none;
		padding: 10px clamp(18px, 4vw, 32px) 18px;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 20px 40px -30px rgba(0, 0, 0, 0.4);
	}

	.site-header.nav-open .nav {
		display: block;
	}

	.nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.nav__list a {
		display: block;
		padding: 11px 4px;
		font-size: 15px;
		border-bottom: 1px solid var(--line-2);
	}

	.nav__list a::after {
		display: none;
	}

	.masthead {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.masthead__side {
		gap: 30px;
	}

	.profile__main {
		flex-direction: column;
	}

	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.site-footer__stats {
		grid-column: span 2;
	}

	.postnav {
		grid-template-columns: 1fr;
	}

	.postnav__item--next {
		text-align: left;
		align-items: flex-start;
	}
}

@media (max-width: 640px) {
	.grid {
		grid-template-columns: 1fr;
		row-gap: 30px;
	}

	.hide-sm {
		display: none !important;
	}

	.section-head {
		align-items: flex-start;
	}

	.card__title {
		font-size: 17.5px;
	}

	.mylist__item {
		grid-template-columns: 1fr;
	}

	.mylist__thumb {
		display: none;
	}

	.publish__side {
		grid-template-columns: 1fr;
	}

	.publish__bar {
		flex-direction: column;
		align-items: stretch;
		border-radius: 20px;
		padding: 12px;
	}

	.publish__status {
		text-align: center;
	}

	.publish__actions .btn {
		flex: 1;
	}

	.mystats__cta {
		margin-left: 0;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.site-footer__stats {
		grid-column: auto;
	}

	.search-form--lg .i {
		display: none;
	}

	.search-form--lg input {
		padding-left: 16px;
	}

	.author-card {
		flex-direction: column;
	}

	.modal__card {
		padding: 30px 22px 22px;
	}

	.lost__latest {
		text-align: left;
	}
}
