/* assets/css/tokens.css */
/* ==========================================================================
   Cute SS 2.0 设计 tokens
   概念：「我们的小世界」是一台装满回忆的像素小游戏机——
   像素 UI 外壳（阶梯缺角描边、逐帧动效、像素字）包住手绘与照片内容。
   规则：
   - 像素字 Fusion Pixel 10px 只在 10 的整数倍字号使用（20 / 30 / 40 / 60），保证像素锐利；
   - 所有描边、间距取 4 的倍数；
   - 交互动效一律 steps() 逐帧，不用平滑缓动、不用圆角、不用模糊。
   ========================================================================== */

@font-face {
	font-family: 'Fusion Pixel';
	src: url('//yijieshi.site/wp-content/themes/cute-ss/assets/fonts/fusion-pixel-10.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	/* ---- 色板：取自他们的蜡笔画（草莓牛奶粉 / 黄油 / 薄荷 / 丁香紫）+ 可可色描边 ---- */
	--ink: #4a3341;          /* 可可：描边与正文 */
	--ink-soft: #85697a;     /* 次要文字 */
	--ink-faint: #d8c6d0;    /* 分隔、占位 */
	--paper: #fffaf5;        /* 纸面 */
	--blush: #fff1f5;        /* 页面底色 */
	--pink-1: #ffe1ea;
	--pink-2: #ffc4d5;
	--cute-primary: #ff8fb0; /* 草莓（Customizer 可覆盖） */
	--cute-accent: #b5ead7;  /* 薄荷（Customizer 可覆盖） */
	--mint-deep: #3f9c7f;
	--butter: #ffe6a0;
	--butter-deep: #f2c14e;
	--lilac: #ddd3ff;
	--sky: #dcefff;
	--danger: #c93a63;

	/* 兼容旧变量名 */
	--cute-ink: var(--ink);
	--cute-ink-soft: var(--ink-soft);
	--cute-paper: var(--paper);
	--cute-white: #fff;
	--cute-primary-soft: var(--pink-1);

	/* ---- 像素尺寸 ---- */
	--px: 4px;

	/* 阶梯缺角描边（四向偏移，四角自然留出 1 像素缺口） */
	--px-outline:
		0 calc(var(--px) * -1) 0 0 var(--ink),
		0 var(--px) 0 0 var(--ink),
		calc(var(--px) * -1) 0 0 0 var(--ink),
		var(--px) 0 0 0 var(--ink);
	/* 纸面内高光/暗边：让方块有一点「实体感」 */
	--px-bevel:
		inset 0 var(--px) 0 0 rgba(255, 255, 255, 0.8),
		inset 0 calc(var(--px) * -1) 0 0 rgba(74, 51, 65, 0.06);
	/* 可点击元素：底部加厚，形成「按键」立体感 */
	--px-raised:
		0 calc(var(--px) * -1) 0 0 var(--ink),
		0 calc(var(--px) * 2) 0 0 var(--ink),
		calc(var(--px) * -1) 0 0 0 var(--ink),
		var(--px) 0 0 0 var(--ink),
		calc(var(--px) * -1) var(--px) 0 0 var(--ink),
		var(--px) var(--px) 0 0 var(--ink);

	/* ---- 字体 ---- */
	--font-pixel: 'Fusion Pixel', 'Zpix', 'PingFang SC', 'Microsoft YaHei', monospace;
	--font-body: 'HarmonyOS Sans SC', 'MiSans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Noto Sans SC', 'Source Han Sans SC', sans-serif;
	--font-hand: 'Muyao Softbrush', 'STXingkai', 'KaiTi', 'STKaiti', cursive;

	/* ---- 布局 ---- */
	--wrap: 1180px;
	--read: 700px;
	--header-h: 64px;
	--gap: 24px;

	/* ---- 动效：像素造型，丝滑运动（只动 transform / opacity） ---- */
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--dur-1: 160ms;
	--dur-2: 280ms;
	--dur-3: 480ms;
}

@media (max-width: 719px) {
	:root {
		--header-h: 56px;
		--gap: 16px;
	}
}

/* ==========================================================================
   原子组件
   ========================================================================== */

/* 像素方框：卡片、面板 */
.px-box,
.pixel-frame {
	position: relative;
	background: var(--paper);
	box-shadow: var(--px-outline), var(--px-bevel);
	margin: var(--px);
}

/* 像素字 */
.px-font {
	font-family: var(--font-pixel);
	font-weight: 400;
	font-synthesis: none;
	letter-spacing: 0;
}

/* 像素按钮 */
.px-btn,
.pixel-btn {
	--btn-bg: var(--cute-primary);
	--btn-fg: var(--ink);
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	margin: var(--px) var(--px) calc(var(--px) * 2);
	padding: 5px 16px;
	font-family: var(--font-pixel);
	font-size: 20px;
	line-height: 30px;
	font-weight: 400;
	font-synthesis: none;
	color: var(--btn-fg);
	background: var(--btn-bg);
	border: 0;
	border-radius: 0;
	box-shadow: var(--px-raised), inset 0 var(--px) 0 0 rgba(255, 255, 255, 0.45);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out), background-color var(--dur-2) ease;
}

.px-btn:hover,
.pixel-btn:hover {
	--btn-bg: var(--pink-2);
	color: var(--ink);
	transform: translateY(-2px);
}

.px-btn:active,
.pixel-btn:active,
.px-btn.is-pressed {
	transform: translateY(var(--px));
	box-shadow: var(--px-outline), inset 0 var(--px) 0 0 rgba(74, 51, 65, 0.12);
}

.px-btn[disabled],
.pixel-btn[disabled] {
	cursor: progress;
	filter: saturate(0.4);
}

.px-btn--ghost {
	--btn-bg: var(--paper);
}

.px-btn--ghost:hover {
	--btn-bg: var(--pink-1);
}

.px-btn--mint {
	--btn-bg: var(--cute-accent);
}

.px-btn--mint:hover {
	--btn-bg: #d3f4e8;
}

.px-btn--icon {
	width: 40px;
	padding: 0;
}

.px-btn svg {
	flex: none;
}

/* 像素图标（inline SVG，网格绘制） */
.px-icon {
	display: inline-block;
	width: 20px;
	height: 20px;
	shape-rendering: crispEdges;
	fill: currentColor;
	vertical-align: -3px;
	flex: none;
}

/* 小标签 */
.px-tag {
	display: inline-block;
	padding: 0 8px;
	font-size: 13px;
	line-height: 24px;
	color: var(--ink);
	background: var(--pink-1);
	box-shadow: 0 -2px 0 0 var(--ink), 0 2px 0 0 var(--ink), -2px 0 0 0 var(--ink), 2px 0 0 0 var(--ink);
	margin: 2px;
	text-decoration: none;
}

/* 键盘焦点：虚线像素框 */
:focus-visible {
	outline: var(--px) dashed var(--ink);
	outline-offset: 6px;
}

.px-btn:focus-visible,
.pixel-btn:focus-visible {
	outline-offset: 10px;
}

/* 可访问性 */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	padding: 8px 16px;
	clip: auto;
	z-index: 100000;
	background: var(--paper);
	color: var(--ink);
	box-shadow: var(--px-outline);
	font-family: var(--font-pixel);
	font-size: 20px;
}

/* 像素光标（仅精确指针设备） */
@media (pointer: fine) {
	html {
		cursor: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/px/cursor.svg') 1 1, auto;
	}

	a,
	button,
	[role="button"],
	label,
	summary,
	select,
	.album__item,
	.envelope {
		cursor: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/px/pointer.svg') 13 12, pointer;
	}

	input,
	textarea {
		cursor: text;
	}
}

/* 像素滚动条 */
html {
	scrollbar-color: var(--cute-primary) var(--paper);
}

::-webkit-scrollbar {
	width: 12px;
	height: 12px;
}

::-webkit-scrollbar-track {
	background: var(--paper);
	box-shadow: inset 4px 0 0 0 var(--ink-faint);
}

::-webkit-scrollbar-thumb {
	background: var(--cute-primary);
	box-shadow: inset 0 0 0 3px var(--ink);
}

::-webkit-scrollbar-thumb:hover {
	background: #ff6f98;
}

/* assets/css/main.css */
/* ==========================================================================
   Cute SS 2.0 全局样式：基础 / 头部 / 布局 / 日记列表 / 文章 / 评论 / 小工具 / 页脚 / 全局交互
   移动优先：默认手机，720px 起平板，1100px 起桌面。
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	background-color: var(--veil, var(--blush));
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.8;
	color: var(--ink);
	background: transparent;
	overflow-wrap: anywhere;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--ink);
	text-decoration-color: var(--cute-primary);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

a:hover {
	color: #c04a75;
}

h1, h2, h3, h4 {
	line-height: 1.4;
	margin: 0 0 0.75em;
}

::selection {
	background: var(--butter);
	color: var(--ink);
}

button {
	font: inherit;
	color: inherit;
}

/* ---------- 表单 ---------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="password"],
textarea,
select {
	width: 100%;
	min-height: 44px;
	margin: 4px 0;
	padding: 8px 12px;
	font: inherit;
	font-size: 16px; /* 防止 iOS 聚焦放大 */
	line-height: 1.6;
	color: var(--ink);
	background: #fff;
	border: 0;
	border-radius: 0;
	box-shadow: var(--px-outline), inset 0 4px 0 0 rgba(74, 51, 65, 0.06);
	-webkit-appearance: none;
	appearance: none;
	transition: background-color var(--dur-2) ease, box-shadow var(--dur-2) ease;
}

input::placeholder,
textarea::placeholder {
	color: #b39dab;
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	background: #fffbea;
	box-shadow: var(--px-outline), inset 0 0 0 4px var(--butter);
}

textarea {
	resize: vertical;
	min-height: 96px;
}

label {
	font-size: 14px;
	font-weight: 600;
	color: var(--ink-soft);
}

/* ---------- 区块标题 ---------- */
.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 24px;
	padding-bottom: 12px;
	background: linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 16px) 0 100% / 16px 4px repeat-x;
}

.section-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: 30px;
	line-height: 40px;
	color: var(--ink);
}

.section-title__icon {
	color: var(--cute-primary);
	filter: drop-shadow(2px 2px 0 var(--ink));
}

.section-head__meta {
	margin: 0;
	font-size: 14px;
	line-height: 40px;
	color: var(--ink-soft);
	white-space: nowrap;
}

@media (max-width: 719px) {
	.section-title {
		font-size: 20px;
		line-height: 30px;
	}

	.section-head__meta {
		line-height: 30px;
	}
}

/* ==========================================================================
   头部
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--header-h);
	background: var(--paper);
	box-shadow: 0 4px 0 0 var(--ink);
	transition: transform 420ms var(--ease-out);
	view-transition-name: site-header;
}

.site-header.is-hidden {
	transform: translateY(calc(-100% - 8px));
}

.site-header__inner {
	max-width: var(--wrap);
	height: 100%;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	text-decoration: none;
	color: var(--ink);
}

.site-brand:hover {
	color: var(--ink);
}

.site-brand__mark {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 4px;
	color: var(--cute-primary);
	background: var(--pink-1);
	box-shadow: var(--px-outline);
	flex: none;
}

.site-brand:hover .site-brand__mark {
	animation: px-hop 520ms var(--ease-spring);
}

.site-brand__logo {
	width: 40px;
	height: 40px;
	margin: 4px;
	object-fit: cover;
	box-shadow: var(--px-outline);
}

.site-brand__text {
	display: flex;
	align-items: baseline;
	gap: 12px;
	min-width: 0;
}

.site-brand__name {
	font-size: 20px;
	line-height: 30px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.site-brand__desc {
	font-size: 13px;
	color: var(--ink-soft);
	white-space: nowrap;
}

@media (max-width: 719px) {
	.site-brand__desc {
		display: none;
	}

	.site-brand__mark {
		width: 32px;
		height: 32px;
	}

	.site-brand__mark .px-icon {
		width: 21px;
		height: 18px;
	}
}

/* 导航 */
.site-nav__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 8px;
}

.site-nav__menu a {
	display: block;
	padding: 5px 12px;
	font-family: var(--font-pixel);
	font-size: 20px;
	line-height: 30px;
	color: var(--ink);
	text-decoration: none;
	white-space: nowrap;
}

.site-nav__menu a:hover {
	background: var(--pink-1);
	box-shadow: var(--px-outline);
}

.site-nav__menu .current-menu-item > a,
.site-nav__menu .current_page_item > a {
	background: var(--butter);
	box-shadow: var(--px-outline);
}

.site-nav__menu .sub-menu,
.site-nav__menu .children {
	display: none;
}

.site-nav__toggle {
	display: none;
	margin: 4px 4px 8px;
}

.site-nav__toggle-close {
	display: none;
}

.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-open {
	display: none;
}

.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-close {
	display: inline;
}

@media (max-width: 899px) {
	.js .site-nav__toggle {
		display: inline-flex;
	}

	.js .site-nav {
		position: absolute;
		top: calc(100% + 12px);
		right: 16px;
		left: 16px;
		display: none;
		padding: 12px;
		background: var(--paper);
		box-shadow: var(--px-outline), 8px 12px 0 0 rgba(74, 51, 65, 0.18);
	}

	.js .site-nav.is-open {
		display: block;
		animation: px-drop 320ms var(--ease-out);
	}

	.js .site-nav__menu {
		flex-direction: column;
		gap: 4px;
	}

	.js .site-nav__menu a {
		padding: 9px 16px;
	}

	.no-js .site-header {
		height: auto;
	}

	.no-js .site-header__inner {
		flex-wrap: wrap;
		padding-top: 8px;
		padding-bottom: 8px;
	}

	.no-js .site-nav__menu {
		flex-wrap: wrap;
	}
}

/* ==========================================================================
   主布局
   ========================================================================== */
.site-main {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 40px 20px 32px;
}

.site-content {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 48px;
}

.site-content--narrow {
	max-width: 720px;
	margin: 0 auto;
}

@media (min-width: 1100px) {
	.site-content {
		grid-template-columns: minmax(0, 1fr) 300px;
	}

	.site-content--narrow {
		grid-template-columns: minmax(0, 1fr);
	}
}

.content-area {
	min-width: 0;
}

.page-header {
	margin-bottom: 32px;
}

.page-title {
	font-family: var(--font-pixel);
	font-weight: 400;
	font-size: 30px;
	line-height: 40px;
}

.archive-description {
	color: var(--ink-soft);
}

@media (max-width: 719px) {
	.site-main {
		padding: 24px 16px 24px;
	}

	.page-title {
		font-size: 20px;
		line-height: 30px;
	}
}

/* ==========================================================================
   日记列表（时间线）
   ========================================================================== */
.diary {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 28px;
}

/* 时间线：像素虚线 */
.diary::before {
	content: "";
	position: absolute;
	top: 12px;
	bottom: 12px;
	left: 38px;
	width: 4px;
	background: linear-gradient(var(--ink-faint) 0 8px, transparent 8px 16px) 0 0 / 4px 16px repeat-y;
}

.diary__item {
	position: relative;
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}

.diary__item[hidden] {
	display: none;
}

.diary__item.is-revealed {
	animation: px-rise 520ms var(--ease-out) both;
}

/* 日期印章 */
.date-stamp {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 72px;
	margin: 8px 4px 4px;
	padding: 4px 0 6px;
	background: var(--butter);
	box-shadow: var(--px-outline), inset 0 -4px 0 0 rgba(242, 193, 78, 0.6);
}

.date-stamp__md {
	font-size: 20px;
	line-height: 30px;
}

.date-stamp__y {
	font-size: 12px;
	line-height: 16px;
	color: var(--ink-soft);
}

/* 日记卡片 */
.diary-card {
	display: grid;
	grid-template-columns: 168px minmax(0, 1fr);
	gap: 20px;
	padding: 16px;
	transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}

.diary-card__thumb--empty {
	display: grid;
	place-items: center;
	color: var(--ink-faint, #c9b3bf);
	background:
		radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.7) 0 3px, transparent 3.5px) 0 0 / 24px 24px,
		var(--pink-1);
}

/* 上锁的日记：照片照常显示，右下角挂一把小锁 */
.diary-card__lock {
	position: absolute;
	right: 6px;
	bottom: 6px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	color: var(--ink);
	background: var(--butter);
	box-shadow: 0 0 0 2px var(--ink), 2px 2px 0 0 rgba(74, 51, 65, 0.25);
}

.diary-card:hover,
.diary-card:focus-within {
	transform: translateY(-4px);
	box-shadow: var(--px-outline), var(--px-bevel), 0 12px 0 0 rgba(74, 51, 65, 0.14);
}

.diary-card:active {
	transform: translateY(0);
}

.diary-card__thumb {
	position: relative;
	align-self: start;
	aspect-ratio: 1;
	margin: 3px;
	overflow: hidden;
	background: var(--pink-1);
	box-shadow: 0 -3px 0 0 var(--ink), 0 3px 0 0 var(--ink), -3px 0 0 0 var(--ink), 3px 0 0 0 var(--ink);
}

.diary-card__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.diary-card__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.diary-card__title {
	margin: 0 0 8px;
	font-family: var(--font-pixel);
	font-weight: 400;
	font-size: 20px;
	line-height: 30px;
}

.diary-card__link {
	color: var(--ink);
	text-decoration: none;
}

.diary-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.diary-card__link:focus-visible {
	outline: none;
}

.diary-card:has(.diary-card__link:focus-visible) {
	outline: 4px dashed var(--ink);
	outline-offset: 8px;
}

.diary-card__excerpt {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.8;
	color: #6b5160;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.diary-card__meta {
	margin: auto 0 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--ink-soft);
}

.px-tag--pin {
	background: var(--butter);
}

.diary__more {
	margin: 32px 0 0;
	text-align: center;
}

@media (max-width: 719px) {
	.diary {
		gap: 20px;
	}

	.diary::before {
		left: 30px;
	}

	.diary__item {
		grid-template-columns: 64px minmax(0, 1fr);
		gap: 12px;
	}

	.date-stamp {
		width: 56px;
	}

	.date-stamp__md {
		font-size: 20px;
		letter-spacing: -1px;
	}

	.diary-card {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 12px;
		padding: 12px;
	}

	.diary-card__lock {
		right: 4px;
		bottom: 4px;
		width: 24px;
		height: 24px;
	}

	.diary-card__excerpt {
		font-size: 14px;
		-webkit-line-clamp: 2;
		margin-bottom: 8px;
	}

	.diary-card__title {
		margin-bottom: 4px;
	}
}

/* ==========================================================================
   单篇文章 / 页面
   ========================================================================== */
.entry {
	padding: 40px 48px 32px;
}

.entry__header {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 20px;
	align-items: center;
	margin-bottom: 28px;
}

.entry__header .date-stamp {
	grid-row: span 2;
	margin-top: 4px;
}

.page-stamp {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: 4px;
	color: var(--cute-primary);
	background: var(--pink-1);
	box-shadow: var(--px-outline), inset 0 -4px 0 0 rgba(255, 143, 176, 0.35);
}

.entry--short .entry__header {
	justify-content: center;
}

.entry__title {
	margin: 0;
	font-size: 30px;
	line-height: 40px;
}

.entry__meta {
	margin: 6px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	font-size: 14px;
	color: var(--ink-soft);
}

.entry__thumb {
	margin: 0 4px 32px;
	box-shadow: var(--px-outline);
	background: var(--pink-1);
}

.entry__thumb img {
	display: block;
	width: 100%;
	max-height: 72vh;
	object-fit: cover;
}

.entry__footer {
	margin-top: 32px;
	padding-top: 20px;
	background: linear-gradient(90deg, var(--ink-faint) 0 8px, transparent 8px 16px) 0 0 / 16px 4px repeat-x;
}

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

.entry-tags .px-tag:hover {
	background: var(--butter);
}

/* 正文排版 */
.entry-content {
	font-size: 17px;
	line-height: 1.9;
}

.entry-content > * {
	max-width: var(--read);
	margin-left: auto;
	margin-right: auto;
}

.entry-content > .alignwide,
.entry-content > .wp-block-gallery,
.entry-content > .wp-block-cover,
.entry-content > .wp-block-html,
.entry-content > .alignfull {
	max-width: none;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content p {
	margin: 0 0 1.2em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin: 1.8em 0 0.6em;
	font-family: var(--font-pixel);
	font-weight: 400;
	font-size: 20px;
	line-height: 30px;
}

.entry-content h2 {
	font-size: 30px;
	line-height: 40px;
}

.entry-content img,
.entry-content video {
	max-width: 100%;
	height: auto;
}

/* 单张图片：像素相框 */
.entry-content > p > img,
.entry-content > p > a > img,
.entry-content .wp-block-image img,
.entry-content > video,
.entry-content .wp-block-video video {
	display: block;
	margin: 8px 4px;
	box-shadow: var(--px-outline);
	background: var(--pink-1);
}

.entry-content .wp-block-image {
	margin: 1.6em 0;
}

.entry-content .wp-block-image.aligncenter img,
.entry-content .wp-block-image .aligncenter img {
	margin-left: auto;
	margin-right: auto;
}

.entry-content img.wp-smiley,
.entry-content img.emoji {
	display: inline;
	margin: 0;
	box-shadow: none;
	background: none;
}

/* 画廊：统一间距、每张一个相框，说明文字在图下方 */
.entry-content .wp-block-gallery.has-nested-images {
	display: grid;
	grid-template-columns: repeat(var(--gal-cols, 2), minmax(0, 1fr));
	gap: 16px;
	margin: 1.6em 4px;
}

.entry-content .wp-block-gallery.columns-1 { --gal-cols: 1; }
.entry-content .wp-block-gallery.columns-3 { --gal-cols: 3; }
.entry-content .wp-block-gallery.columns-4,
.entry-content .wp-block-gallery.columns-5,
.entry-content .wp-block-gallery.columns-6 { --gal-cols: 3; }

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image {
	width: auto !important;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	background: #fff;
	padding: 6px 6px 0;
	box-shadow: var(--px-outline);
}

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image img {
	width: 100%;
	height: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	margin: 0;
	box-shadow: none;
}

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	position: static;
	max-height: none;
	margin: 0;
	padding: 6px 2px 8px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ink-soft);
	background: none;
	text-align: center;
	text-shadow: none;
}

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(:has(figcaption)) {
	padding-bottom: 6px;
}

.entry-content .wp-block-gallery > .blocks-gallery-caption,
.entry-content .wp-block-gallery + figcaption {
	grid-column: 1 / -1;
}

@media (max-width: 719px) {
	.entry-content .wp-block-gallery.has-nested-images {
		gap: 12px;
		--gal-cols: 2;
	}
}

/* 封面区块 */
.entry-content .wp-block-cover {
	margin: 1.6em 4px;
	box-shadow: var(--px-outline);
	overflow: hidden;
}

.entry-content .wp-block-cover img.wp-block-cover__image-background {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	box-shadow: none;
}

.entry-content .wp-block-cover__inner-container {
	font-family: var(--font-pixel);
	font-size: 20px;
	line-height: 30px;
}

.entry-content .wp-block-cover__inner-container p {
	margin: 0;
	font-size: 20px !important;
	text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

/* 自定义 HTML 区块里的明信片等保持原样 */
.entry-content .wp-block-html img,
.entry-content [id^="cq-postcard"] img {
	box-shadow: none;
	margin: 0;
	background: none;
}

.entry-content figure {
	margin: 1.6em 0;
}

.entry-content figcaption,
.wp-caption-text,
.gallery-caption {
	margin-top: 8px;
	font-size: 13px;
	color: var(--ink-soft);
	text-align: center;
}

.entry-content blockquote {
	position: relative;
	margin: 1.6em 4px;
	padding: 16px 20px 16px 48px;
	background: var(--pink-1);
	box-shadow: var(--px-outline);
}

.entry-content blockquote::before {
	content: "";
	position: absolute;
	left: 16px;
	top: 22px;
	width: 14px;
	height: 12px;
	background: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/px/heart.svg') 0 0 / 14px 12px no-repeat;
}

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

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

.entry-content ul {
	list-style: square;
}

.entry-content li::marker {
	color: var(--cute-primary);
}

.entry-content hr {
	height: 4px;
	margin: 2em 0;
	border: 0;
	background: linear-gradient(90deg, var(--ink-faint) 0 8px, transparent 8px 16px) 0 0 / 16px 4px repeat-x;
}

.entry-content pre {
	overflow-x: auto;
	padding: 16px;
	font-size: 14px;
	background: var(--ink);
	color: var(--paper);
}

.entry-content table {
	border-collapse: collapse;
	width: 100%;
}

.entry-content th,
.entry-content td {
	padding: 6px 10px;
	border: 2px solid var(--ink-faint);
}

.entry-content .wp-block-gallery {
	gap: 12px;
}

.entry-content .wp-block-gallery img {
	margin: 0;
}

.alignleft {
	float: left;
	margin: 0.3em 1.2em 1em 4px;
}

.alignright {
	float: right;
	margin: 0.3em 4px 1em 1.2em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.entry-content [style*="text-align: right"] {
	color: var(--ink-soft);
}

@media (max-width: 719px) {
	.entry {
		padding: 24px 20px 20px;
	}

	.entry__header {
		column-gap: 12px;
	}

	.entry__title {
		font-size: 20px;
		line-height: 30px;
	}

	.entry-content {
		font-size: 16px;
		line-height: 1.85;
	}

	.entry-content h2 {
		font-size: 20px;
		line-height: 30px;
	}

	.alignleft,
	.alignright {
		float: none;
		margin: 1em 4px;
	}
}

/* 上一篇 / 下一篇 */
.entry-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin: 32px 0 0;
}

.entry-nav__link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 20px;
	text-decoration: none;
	transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2) ease;
}

.entry-nav__link:hover {
	transform: translateY(-4px);
	color: var(--ink);
	background: var(--pink-1);
}

.entry-nav__link--next {
	grid-column: 2;
	text-align: right;
	align-items: flex-end;
}

.entry-nav__label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 20px;
	line-height: 30px;
	color: var(--ink-soft);
}

.entry-nav__title {
	font-weight: 600;
}

@media (max-width: 719px) {
	.entry-nav {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.entry-nav__link--next {
		grid-column: 1;
	}
}

/* 分页 */
.pagination,
.comment-navigation {
	margin: 40px 0 0;
}

.pagination .nav-links,
.comment-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	margin: 4px;
	padding: 0 10px;
	font-family: var(--font-pixel);
	font-size: 20px;
	text-decoration: none;
	background: var(--paper);
	box-shadow: var(--px-outline);
}

.pagination a.page-numbers:hover {
	background: var(--pink-1);
}

.pagination .page-numbers.current {
	background: var(--cute-primary);
}

/* ==========================================================================
   评论
   ========================================================================== */
.comments-area {
	margin-top: 48px;
}

.comments-title {
	font-family: var(--font-pixel);
	font-weight: 400;
	font-size: 20px;
	line-height: 30px;
}

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

.comment-list .comment {
	margin-bottom: 20px;
}

.comment-list .children {
	list-style: none;
	padding-left: 32px;
	margin-top: 20px;
}

.comment-body {
	margin: 4px;
	padding: 16px 20px;
	background: var(--paper);
	box-shadow: var(--px-outline);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 15px;
}

.comment-author .avatar {
	margin: 3px;
	box-shadow: 0 -3px 0 0 var(--ink), 0 3px 0 0 var(--ink), -3px 0 0 0 var(--ink), 3px 0 0 0 var(--ink);
}

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

.comment-metadata {
	font-size: 12px;
}

.comment-metadata a {
	color: var(--ink-soft);
	text-decoration: none;
}

.comment-content {
	margin-top: 8px;
	font-size: 15px;
}

.reply {
	font-size: 13px;
}

.comment-respond {
	margin: 32px 4px 4px;
	padding: 24px;
	background: var(--paper);
	box-shadow: var(--px-outline);
}

.comment-reply-title {
	font-family: var(--font-pixel);
	font-weight: 400;
	font-size: 20px;
	line-height: 30px;
}

.comment-notes,
.logged-in-as {
	font-size: 13px;
	color: var(--ink-soft);
}

.comment-form label {
	display: block;
	margin-bottom: 4px;
}

.comment-form p {
	margin: 0 0 16px;
}

.comment-form-cookies-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 13px;
}

.comment-form-cookies-consent label {
	font-weight: 400;
}

/* ==========================================================================
   小工具 / 侧边栏
   ========================================================================== */
.widget-area {
	display: grid;
	gap: 28px;
	align-content: start;
	min-width: 0;
}

.widget {
	padding: 20px;
	font-size: 15px;
}

.widget-title,
.widget .wp-block-heading {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-family: var(--font-pixel);
	font-weight: 400;
	font-size: 20px;
	line-height: 30px;
}

.widget-title::before {
	content: "";
	width: 14px;
	height: 12px;
	background: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/px/heart.svg') 0 0 / 14px 12px no-repeat;
	flex: none;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget ul li {
	padding: 6px 0;
	background: linear-gradient(90deg, var(--ink-faint) 0 4px, transparent 4px 8px) 0 100% / 8px 2px repeat-x;
}

.widget ul li:last-child {
	background: none;
}

.widget a {
	text-decoration: none;
}

.widget a:hover {
	text-decoration: underline;
}

.widget img {
	max-width: 100%;
	height: auto;
}

.widget .wp-block-search__inside-wrapper {
	display: flex;
	gap: 12px;
}

.widget .wp-block-search__label {
	display: none;
}

.widget .wp-block-search__button {
	margin: 4px 4px 8px;
	padding: 0 14px;
	font-family: var(--font-pixel);
	font-size: 20px;
	color: var(--ink);
	background: var(--cute-primary);
	border: 0;
	border-radius: 0;
	box-shadow: var(--px-raised);
	cursor: pointer;
}

/* 搜索表单 */
.search-form {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.search-form__label {
	flex: 1;
	min-width: 0;
}

/* 空状态 / 404 */
.no-results,
.empty-card {
	padding: 28px;
	text-align: center;
	color: var(--ink-soft);
}

.empty-card p {
	margin: 0;
}

.error-404 {
	padding: 48px 32px 32px;
	text-align: center;
}

.error-404__code {
	margin: 0;
	font-size: 60px;
	line-height: 70px;
	color: var(--cute-primary);
	text-shadow: 4px 4px 0 var(--ink);
}

.error-404__title {
	font-size: 30px;
	line-height: 40px;
	margin: 12px 0;
}

.error-404 .search-form {
	max-width: 420px;
	margin: 24px auto;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
	position: relative;
	margin-top: 160px;
	background: var(--footer-bg, #d9f4e8);
	transition: background-color var(--dur-3) ease;
	view-transition-name: site-footer;
}

.site-footer__ground {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 20px;
	background: var(--ground-top, #7fd1ae);
	-webkit-mask: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/px/grass.svg') 0 100% / 64px 20px repeat-x;
	mask: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/px/grass.svg') 0 100% / 64px 20px repeat-x;
}

.site-footer__inner {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 36px 20px 40px;
	padding-bottom: calc(40px + env(safe-area-inset-bottom));
	display: flex;
	justify-content: center;
	text-align: center;
}

.site-footer__walk {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(100% + 2px);
	height: 112px;
	pointer-events: none;
	overflow: visible;
}

.site-footer__walk .pixel-sprite {
	pointer-events: auto;
	position: absolute;
	left: 0;
	bottom: 0;
	animation:
		sprite-play var(--duration, 800ms) steps(var(--frames, 4)) infinite,
		footer-walk 32s ease-in-out infinite alternate;
}

@keyframes footer-walk {
	from { transform: translate3d(4vw, 0, 0); }
	to { transform: translate3d(calc(96vw - 112px), 0, 0); }
}

.site-info {
	display: grid;
	justify-items: center;
	gap: 6px;
}

.site-info .scene-switch {
	margin: 8px 0;
}

.site-footer__widgets {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 32px 20px 0;
	display: grid;
	gap: 24px;
}

@media (min-width: 720px) {
	.site-footer__widgets {
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	}
}

.site-info {
	padding-bottom: 8px;
}

.site-info p {
	margin: 0;
}

.site-info__name {
	font-size: 20px;
	line-height: 30px;
}

.site-info__days {
	font-size: 14px;
	color: var(--ink);
}

.site-info__days .js-love-days {
	font-family: var(--font-pixel);
	font-size: 20px;
	color: #c04a75;
	padding: 0 2px;
}

.site-info__copy {
	font-size: 12px;
	color: var(--ink-soft);
}

/* ==========================================================================
   sprite 小人（CSS steps 逐帧；点击切换剧情，见 ui.js）
   ========================================================================== */
.pixel-sprite {
	--sw: 128px;
	position: relative;
	display: block;
	width: var(--sw);
	height: var(--sw);
	padding: 0;
	border: 0;
	background-color: transparent;
	background-repeat: no-repeat;
	background-size: calc(var(--frames, 4) * var(--sw)) var(--sw);
	background-position: 0 0;
	-webkit-tap-highlight-color: transparent;
	transition: scale var(--dur-1) var(--ease-out);
	animation: sprite-play var(--duration, 800ms) steps(var(--frames, 4)) infinite, sprite-bob 2.4s ease-in-out infinite;
	flex: none;
}

.pixel-sprite:active {
	scale: 0.96;
}

@keyframes sprite-play {
	to {
		background-position: calc(var(--frames, 4) * var(--sw) * -1) 0;
	}
}

.pixel-sprite.is-swapping {
	animation: sprite-play var(--duration, 800ms) steps(var(--frames, 4)) infinite, sprite-bob 2.4s ease-in-out infinite, px-squash 360ms var(--ease-spring);
}

.pixel-sprite__bubble {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	z-index: 2;
	padding: 5px 12px;
	font-size: 20px;
	line-height: 30px;
	white-space: nowrap;
	color: var(--ink);
	background: #fff;
	box-shadow: var(--px-outline);
	translate: -50% 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.pixel-sprite__bubble::after {
	content: "";
	position: absolute;
	left: calc(50% - 6px);
	top: calc(100% + 4px);
	width: 12px;
	height: 8px;
	background:
		linear-gradient(var(--ink), var(--ink)) 0 0 / 12px 4px no-repeat,
		linear-gradient(var(--ink), var(--ink)) 4px 4px / 4px 4px no-repeat;
}

.pixel-sprite.is-talking .pixel-sprite__bubble {
	opacity: 1;
	visibility: visible;
	animation: px-pop 360ms var(--ease-spring);
}

.pixel-sprite--footer {
	--sw: 112px;
}

@media (max-width: 719px) {
	.pixel-sprite--footer {
		--sw: 88px;
	}

	.site-footer__walk {
		height: 88px;
	}
}

/* ==========================================================================
   全局交互
   ========================================================================== */

/* 回到顶部 */
.to-top {
	position: fixed;
	right: 16px;
	right: max(16px, env(safe-area-inset-right));
	bottom: calc(16px + env(safe-area-inset-bottom));
	z-index: 45;
}

.to-top[hidden] {
	display: none;
}

.to-top.is-in {
	animation: px-rise 360ms var(--ease-out);
}

@media (min-width: 1100px) {
	.to-top {
		right: 28px;
		bottom: 28px;
	}
}

/* 点击冒出的小爱心 */
.click-heart {
	position: fixed;
	z-index: 9999;
	width: 14px;
	height: 12px;
	margin: -6px 0 0 -7px;
	background: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/px/heart.svg') 0 0 / 14px 12px no-repeat;
	pointer-events: none;
	animation: click-heart 720ms var(--ease-out) forwards;
}

.click-heart--b {
	width: 7px;
	height: 6px;
	background-size: 7px 6px;
	animation-duration: 480ms;
}

@keyframes click-heart {
	0% { transform: translate3d(0, 0, 0) scale(0.4); opacity: 0; }
	18% { transform: translate3d(calc(var(--dx, 0px) * 0.2), -6px, 0) scale(1.15); opacity: 1; }
	70% { opacity: 1; }
	100% { transform: translate3d(var(--dx, 0px), -40px, 0) scale(0.8); opacity: 0; }
}

/* 通用逐帧动效 */
@keyframes px-hop {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-4px); }
}

@keyframes px-drop {
	from { opacity: 0; transform: translateY(-8px) scale(0.98); }
	to { opacity: 1; transform: none; }
}

@keyframes px-rise {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes px-pop {
	0% { transform: scale(0.6); }
	60% { transform: scale(1.1); }
	100% { transform: scale(1); }
}

@keyframes sprite-bob {
	0%, 100% { translate: 0 0; }
	50% { translate: 0 -3px; }
}

@keyframes px-squash {
	0% { scale: 1 1; }
	40% { scale: 1.08 0.9; }
	100% { scale: 1 1; }
}

/* 页面之间的切换（支持的浏览器里像翻页一样淡入淡出） */
@view-transition {
	navigation: auto;
}

::view-transition-old(root) {
	animation: vt-out 180ms ease both;
}

::view-transition-new(root) {
	animation: vt-in 320ms var(--ease-out) both;
}

@keyframes vt-out {
	to { opacity: 0; }
}

@keyframes vt-in {
	from { opacity: 0; transform: translateY(8px); }
}

/* 减少动态效果 */
@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;
	}

	.pixel-sprite {
		animation: none !important;
	}

	.click-heart {
		display: none;
	}

	::view-transition-old(root),
	::view-transition-new(root) {
		animation: none !important;
	}
}

/* ==========================================================================
   场景背景（我们去过的地方）
   ========================================================================== */
.scene,
.scene-fx,
.scene-veil {
	position: fixed;
	inset: 0;
	pointer-events: none;
}

.scene {
	z-index: -3;
	overflow: hidden;
	background: var(--veil);
	transition: opacity var(--dur-3) ease;
}

.scene__layer {
	position: absolute;
	/* 留出视差位移余量 */
	inset: -3% -4% -14% -4%;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center bottom;
	image-rendering: pixelated;
	will-change: transform;
}

.scene__sky {
	inset: -3% -4% -3% -4%;
}

.scene__lights {
	animation: city-twinkle 3.6s ease-in-out infinite alternate;
}

@keyframes city-twinkle {
	from { opacity: 0.55; }
	to { opacity: 1; }
}

.scene__clouds span {
	position: absolute;
	left: 0;
	width: 16vh;
	height: 5vh;
	background: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/px/cloud.svg') 0 0 / 100% 100% no-repeat;
	image-rendering: pixelated;
	opacity: 0.9;
	will-change: transform;
	animation: cloud-drift 140s linear infinite;
}

.scene__clouds span:nth-child(1) { top: 8%; animation-delay: -40s; }
.scene__clouds span:nth-child(2) { top: 18%; width: 10vh; height: 3vh; animation-duration: 180s; animation-delay: -120s; opacity: 0.75; }
.scene__clouds span:nth-child(3) { top: 30%; width: 22vh; height: 7vh; animation-duration: 220s; animation-delay: -70s; opacity: 0.6; }

@keyframes cloud-drift {
	from { transform: translate3d(-30vh, 0, 0); }
	to { transform: translate3d(calc(100vw + 10vh), 0, 0); }
}

.scene-fx {
	z-index: -2;
	width: 100%;
	height: 100%;
}

/* 纸面遮罩：首页随滚动出现；其它页面常驻但留一点场景透出来 */
.scene-veil {
	z-index: -1;
	background-color: var(--veil);
	background-image: conic-gradient(at 2px 2px, transparent 75%, var(--veil-dot) 0);
	background-size: 16px 16px;
	opacity: 0.9;
	transition: background-color var(--dur-3) ease;
}

.home .scene-veil {
	opacity: 0;
	will-change: opacity;
}

/* 切换场景时的淡入 */
.scene.is-leaving {
	z-index: -3;
}

.scene-ghost {
	position: fixed;
	inset: 0;
	z-index: -3;
	pointer-events: none;
	animation: scene-out 700ms var(--ease-in-out) forwards;
}

@keyframes scene-out {
	to { opacity: 0; }
}

/* 场景切换器 */
.scene-switch {
	position: relative;
	z-index: 30;
}

.scene-switch__btn {
	--btn-bg: rgba(255, 250, 245, 0.92);
	gap: 8px;
	font-size: 20px;
}

.scene-switch__btn .px-icon {
	color: #e2577f;
}

.scene-switch__hint {
	font-family: var(--font-body);
	font-size: 13px;
	color: var(--ink-soft);
}

.scene-switch__panel {
	position: absolute;
	bottom: calc(100% + 16px);
	left: 0;
	width: min(560px, calc(100vw - 32px));
	padding: 16px;
	box-shadow: var(--px-outline), 10px 12px 0 0 rgba(74, 51, 65, 0.2);
	transform-origin: 24px 100%;
	animation: panel-in 320ms var(--ease-spring);
}

.scene-switch__panel[hidden] {
	display: none;
}

@keyframes panel-in {
	from { opacity: 0; transform: translateY(8px) scale(0.96); }
	to { opacity: 1; transform: none; }
}

.scene-switch__title {
	margin: 0 0 12px;
	font-size: 20px;
	line-height: 30px;
}

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

.scene-switch__opt {
	display: block;
	width: 100%;
	margin: 0;
	padding: 4px 4px 8px;
	text-align: left;
	background: #fff;
	border: 0;
	box-shadow: 0 0 0 3px var(--ink-faint);
	transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) ease;
}

.scene-switch__opt:hover {
	transform: translateY(-3px);
	box-shadow: 0 0 0 3px var(--ink);
}

.scene-switch__opt[aria-pressed="true"] {
	box-shadow: 0 0 0 3px var(--ink), 0 0 0 7px var(--cute-primary);
}

.scene-switch__opt img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	image-rendering: pixelated;
}

.scene-switch__name {
	display: block;
	margin-top: 6px;
	font-family: var(--font-pixel);
	font-size: 20px;
	line-height: 30px;
}

.scene-switch__note {
	display: block;
	font-size: 12px;
	line-height: 1.5;
	color: var(--ink-soft);
}

.scene-switch--footer .scene-switch__panel {
	left: 50%;
	margin-left: calc(min(560px, calc(100vw - 32px)) / -2);
	transform-origin: 50% 100%;
}

@media (max-width: 719px) {
	.scene-switch__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.scene-switch__note {
		display: none;
	}

	.scene-switch__hint {
		display: none;
	}
}

/* ==========================================================================
   文章阅读体验
   ========================================================================== */

/* 阅读进度条（头部下沿） */
.read-progress {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 4px;
	margin-top: 4px;
	pointer-events: none;
}

.read-progress__bar {
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(90deg, var(--cute-primary) 0 12px, #ffb3c9 12px 16px);
	transform-origin: 0 50%;
	transform: scaleX(0);
	will-change: transform;
}

.read-progress__heart {
	position: absolute;
	top: -4px;
	left: 0;
	width: 14px;
	height: 12px;
	margin-left: -7px;
	background: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/px/heart.svg') 0 0 / 14px 12px no-repeat;
	will-change: transform;
}

/* 面包屑 */
.crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin: 0 0 16px;
	font-size: 13px;
	color: var(--ink-soft);
}

.crumbs a {
	color: var(--ink-soft);
	text-decoration: none;
}

.crumbs a:hover {
	color: #c04a75;
}

.crumbs__sep {
	width: 4px;
	height: 4px;
	background: var(--ink-faint);
}

/* 目录（3 个以上小标题时出现） */
.entry-toc {
	margin: 0 4px 28px;
	padding: 12px 16px;
	background: var(--pink-1);
	box-shadow: var(--px-outline);
}

.entry-toc__title {
	margin: 0 0 6px;
	font-family: var(--font-pixel);
	font-size: 20px;
	line-height: 30px;
}

.entry-toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.entry-toc a {
	display: inline-block;
	padding: 2px 10px;
	font-size: 14px;
	text-decoration: none;
	background: #fff;
	box-shadow: 0 0 0 2px var(--ink);
	transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-2) ease;
}

.entry-toc a:hover {
	background: var(--butter);
	transform: translateY(-2px);
}

/* 正文里「2026.06.01 ……」开头的段落：日期小签 */
.moment-date {
	display: inline-block;
	margin-right: 8px;
	padding: 0 8px;
	font-family: var(--font-pixel);
	font-size: 20px;
	line-height: 30px;
	background: var(--butter);
	box-shadow: 0 0 0 2px var(--ink);
	vertical-align: 1px;
}

.entry-content p.has-moment {
	margin-top: 1.8em;
}

/* 图片渐显（加载中不闪白） */
.js .entry-content img.is-loading {
	opacity: 0;
}

.js .entry-content img {
	transition: opacity 500ms ease;
}

.entry-content img[data-zoom] {
	cursor: zoom-in;
}

/* 文末操作 */
.entry-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	margin-top: 28px;
}

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

.entry-nav__kbd {
	margin: 12px 0 0;
	font-size: 12px;
	color: var(--ink-soft);
	text-align: center;
}

.entry-nav__kbd kbd {
	display: inline-block;
	min-width: 22px;
	padding: 0 4px;
	font-family: var(--font-pixel);
	font-size: 12px;
	line-height: 20px;
	text-align: center;
	background: #fff;
	box-shadow: 0 0 0 2px var(--ink-faint);
}

@media (hover: none) {
	.entry-nav__kbd {
		display: none;
	}
}

/* 短页面（比如「小朋友爱吃」）：像一张手写卡片 */
.entry--short .entry-content {
	padding: 24px 0 8px;
	font-family: var(--font-hand);
	font-size: 28px;
	line-height: 1.8;
	text-align: center;
}

.entry--short .entry-content p {
	margin: 0 0 0.4em;
}

.entry--short .entry-content::after {
	content: "";
	display: block;
	width: 42px;
	height: 36px;
	margin: 20px auto 0;
	background: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/px/heart.svg') 0 0 / 42px 36px no-repeat;
	animation: px-hop 1600ms ease-in-out infinite;
}

/* 评论表单：名字/邮箱/网站并排 */
@media (min-width: 720px) {
	.comment-form {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 16px;
	}

	.comment-form > * {
		grid-column: 1 / -1;
	}

	.comment-form .comment-form-author,
	.comment-form .comment-form-email,
	.comment-form .comment-form-url {
		grid-column: auto;
	}
}

/* 提示条 */
.toast {
	position: fixed;
	left: 50%;
	bottom: calc(24px + env(safe-area-inset-bottom));
	z-index: 200;
	padding: 8px 18px;
	font-size: 15px;
	color: var(--ink);
	background: var(--paper);
	box-shadow: var(--px-outline), 6px 8px 0 0 rgba(74, 51, 65, 0.18);
	transform: translate3d(-50%, 16px, 0);
	opacity: 0;
	pointer-events: none;
	transition: transform 360ms var(--ease-spring), opacity 240ms ease;
}

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

/* ==========================================================================
   大图查看（相册与文章图片共用）
   ========================================================================== */
/* 普通 div 遮罩（不依赖 <dialog>，微信内置浏览器/旧 iOS 也能用） */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: grid;
	place-items: center;
	margin: 0;
	padding: 0;
	color: var(--ink);
	background: rgba(42, 28, 38, 0.82);
	overflow: hidden;
	opacity: 0;
	transition: opacity 220ms ease;
	-webkit-tap-highlight-color: transparent;
}

.lightbox[hidden] {
	display: none;
}

.lightbox.is-open {
	opacity: 1;
}

.lightbox.is-closing {
	opacity: 0;
}

html.lightbox-lock,
html.lightbox-lock body {
	overflow: hidden;
}

@keyframes fade-in {
	from { opacity: 0; }
}

.lightbox__stage {
	position: relative;
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	padding: 72px 96px 40px;
}

.lightbox__figure {
	margin: 0;
	padding: 12px;
	background: var(--paper);
	box-shadow: var(--px-outline), 12px 12px 0 0 rgba(0, 0, 0, 0.2);
	max-width: 100%;
	touch-action: pan-y;
	will-change: transform;
}

.lightbox.is-open .lightbox__figure {
	animation: lb-in 420ms var(--ease-spring);
}

@keyframes lb-in {
	from { opacity: 0; transform: translate3d(0, 16px, 0) scale(0.94); }
	to { opacity: 1; transform: none; }
}

.lightbox__frame {
	display: grid;
	place-items: center;
	background: var(--pink-1);
	overflow: hidden;
}

.lightbox__img {
	display: block;
	max-width: min(1000px, calc(100vw - 216px));
	max-height: calc(100dvh - 220px);
	width: auto;
	height: auto;
	object-fit: contain;
	transition: opacity 220ms ease, transform 320ms var(--ease-out);
	will-change: transform, opacity;
}

.lightbox.is-loading .lightbox__img {
	opacity: 0;
}

.lightbox.is-going-next .lightbox__img {
	transform: translate3d(-24px, 0, 0);
}

.lightbox.is-going-prev .lightbox__img {
	transform: translate3d(24px, 0, 0);
}

.lightbox__caption {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 4px 2px;
}

.lightbox__title {
	font-size: 15px;
	font-weight: 600;
	min-width: 0;
}

.lightbox__meta {
	display: flex;
	gap: 16px;
	font-size: 20px;
	line-height: 30px;
	color: var(--ink-soft);
	white-space: nowrap;
}

.lightbox__nav {
	position: absolute;
	top: 50%;
	margin-top: -24px;
}

.lightbox__nav[hidden] {
	display: none;
}

.lightbox__prev {
	left: 28px;
}

.lightbox__next {
	right: 28px;
}

.lightbox__close {
	position: absolute;
	top: 20px;
	right: 28px;
}

@media (max-width: 719px) {
	.lightbox__stage {
		padding: 72px 12px 96px;
	}

	.lightbox__figure {
		padding: 8px;
	}

	.lightbox__img {
		max-width: calc(100vw - 48px);
		max-height: calc(100dvh - 260px);
	}

	.lightbox__caption {
		flex-direction: column;
		gap: 0;
	}

	.lightbox__nav {
		top: auto;
		bottom: calc(28px + env(safe-area-inset-bottom));
		margin-top: 0;
	}

	.lightbox__prev {
		left: calc(50% - 72px);
	}

	.lightbox__next {
		right: calc(50% - 72px);
	}

	.lightbox__close {
		top: 16px;
		right: 16px;
	}
}

/* 开场「PRESS START」（每次打开网站只出现一次，可点击跳过） */
.boot {
	display: none;
}

.boot-pending .boot {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	align-content: center;
	gap: 20px;
	background: var(--veil);
	transition: opacity 520ms ease, visibility 0s linear 520ms;
}

.boot.is-done {
	opacity: 0;
	visibility: hidden;
}

.boot__title {
	margin: 0;
	font-family: var(--font-pixel);
	font-size: 40px;
	line-height: 50px;
	color: var(--ink);
	text-shadow: 4px 4px 0 var(--pink-2);
	animation: boot-title 700ms var(--ease-spring) both;
}

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

.boot__bar span {
	width: 21px;
	height: 18px;
	background: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/px/heart.svg') 0 0 / 21px 18px no-repeat;
	opacity: 0.18;
	animation: boot-heart 260ms ease forwards;
}

.boot__press {
	margin: 0;
	font-family: var(--font-pixel);
	font-size: 20px;
	color: var(--ink-soft);
	animation: blink 1s ease-in-out infinite;
}

@keyframes boot-title {
	from { opacity: 0; transform: translateY(12px) scale(0.92); }
}

@keyframes boot-heart {
	to { opacity: 1; transform: scale(1.15); }
}

@keyframes blink {
	50% { opacity: 0.35; }
}

/* 编辑器里设置的大字号标题，统一回像素字号 */
.entry-content h2[class*="font-size"],
.entry-content h3[class*="font-size"],
.entry-content h4[class*="font-size"] {
	font-size: 30px !important;
	line-height: 40px !important;
}

.entry-content h3[class*="font-size"],
.entry-content h4[class*="font-size"] {
	font-size: 20px !important;
	line-height: 30px !important;
}

@media (max-width: 719px) {
	.entry-content h2[class*="font-size"] {
		font-size: 20px !important;
		line-height: 30px !important;
	}

	/* 手机上场景面板做成底部抽屉 */
	.scene-switch__panel,
	.scene-switch--footer .scene-switch__panel {
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom));
		width: auto;
		margin: 0;
		z-index: 120;
		max-height: 80dvh;
		overflow-y: auto;
		transform-origin: 50% 100%;
	}
}

/* ==========================================================================
   举牌小人（欢迎语）+ 访问统计
   ========================================================================== */
.walker {
	position: fixed;
	left: 0;
	bottom: calc(10px + env(safe-area-inset-bottom));
	z-index: 150;
	display: flex;
	flex-direction: column;
	align-items: center;
	pointer-events: auto;
	cursor: pointer;
	will-change: transform;
	-webkit-tap-highlight-color: transparent;
}

.walker__sign {
	position: relative;
	max-width: min(360px, 88vw);
	padding: 8px 14px 6px;
	text-align: center;
	color: var(--ink);
	background: #fffaf0;
	box-shadow: var(--px-outline), inset 0 -4px 0 0 rgba(242, 193, 78, 0.35), 6px 8px 0 0 rgba(74, 51, 65, 0.2);
	margin-bottom: 4px;
	transform-origin: 50% 100%;
}

.walker__sign p {
	margin: 0;
}

.walker__title,
.walker__text {
	font-family: var(--font-pixel);
	font-size: 20px;
	line-height: 30px;
}

.walker__title {
	color: #c04a75;
}

.walker__sub {
	margin-top: 2px !important;
	font-size: 12px;
	line-height: 18px;
	color: var(--ink-soft);
}

.walker__boy {
	width: 72px;
	height: 108px;
	background: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/boy-sign.png') 0 0 / 432px 108px no-repeat;
	image-rendering: pixelated;
	transform: translateX(-19px);
	filter: drop-shadow(0 4px 0 rgba(74, 51, 65, 0.18));
}

.walker.is-walking .walker__boy {
	animation: boy-walk 0.56s steps(4) infinite;
}

.walker.is-hurry .walker__boy {
	animation-duration: 0.28s;
}

.walker.is-walking .walker__sign {
	animation: sign-bob 0.28s ease-in-out infinite alternate;
}

.walker.is-front .walker__boy {
	background-position: -288px 0;
	transform: translateX(-16px);
	animation: boy-blink 3s steps(1) infinite;
}

.walker.is-front .walker__sign {
	animation: sign-raise 520ms var(--ease-spring) both;
}

.walker--grumpy.is-front .walker__sign,
.walker--tired.is-front .walker__sign {
	animation: sign-raise 520ms var(--ease-spring) both, sign-shake 0.5s ease-in-out 0.5s 2;
}

.walker--tired .walker__boy {
	filter: drop-shadow(0 4px 0 rgba(74, 51, 65, 0.18)) saturate(0.6);
}

@keyframes boy-walk {
	to { background-position: -288px 0; }
}

@keyframes boy-blink {
	0%, 92% { background-position: -288px 0; }
	93%, 97% { background-position: -360px 0; }
	98% { background-position: -288px 0; }
}

@keyframes sign-bob {
	from { transform: translateY(0) rotate(-1deg); }
	to { transform: translateY(-3px) rotate(1deg); }
}

@keyframes sign-raise {
	0% { transform: translateY(0) scale(1); }
	50% { transform: translateY(-14px) scale(1.08); }
	100% { transform: translateY(-6px) scale(1.04); }
}

@keyframes sign-shake {
	0%, 100% { rotate: 0deg; }
	25% { rotate: -4deg; }
	75% { rotate: 4deg; }
}

@media (max-width: 719px) {
	.walker__title,
	.walker__text {
		font-size: 20px;
		line-height: 28px;
	}

	.walker__sign {
		max-width: min(300px, 86vw);
	}
}

.site-info__stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 14px;
	margin: 4px 0 !important;
	font-size: 13px;
	color: var(--ink-soft);
}

.site-info__stats[hidden] {
	display: none;
}

.site-info__stats b {
	font-family: var(--font-pixel);
	font-weight: 400;
	font-size: 20px;
	color: var(--ink);
	vertical-align: -2px;
	margin: 0 2px;
}

.site-info__stats i {
	font-style: normal;
	color: #c04a75;
}

/* ==========================================================================
   小游戏：金色爱心 / 成就 / NPC 对话
   ========================================================================== */
.gold-heart {
	position: fixed;
	top: 0;
	z-index: 140;
	width: 42px;
	height: 36px;
	margin: 0 0 0 -21px;
	padding: 0;
	border: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6' shape-rendering='crispEdges'%3E%3Cpath fill='%234a3341' d='M1 0h2v1H1zM4 0h2v1H4z'/%3E%3Cpath fill='%23f2c14e' d='M0 1h7v2H0zM1 3h5v1H1zM2 4h3v1H2zM3 5h1v1H3z'/%3E%3Cpath fill='%23ffe9a0' d='M1 1h1v1H1z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
	filter: drop-shadow(0 0 6px rgba(255, 214, 90, 0.9));
	cursor: pointer;
	animation: gold-glow 1s ease-in-out infinite alternate;
	-webkit-tap-highlight-color: transparent;
}

.gold-heart::after {
	content: "";
	position: absolute;
	inset: -14px;
}

.gold-heart.is-caught {
	animation: gold-caught 480ms var(--ease-out) forwards;
}

@keyframes gold-glow {
	to { filter: drop-shadow(0 0 12px rgba(255, 214, 90, 1)); }
}

@keyframes gold-caught {
	to { opacity: 0; scale: 2.2; }
}

.ach-open {
	gap: 6px;
	margin: 6px 0;
	font-size: 14px;
	font-family: var(--font-body);
	min-height: 34px;
	padding: 0 12px;
}

.ach-open b {
	font-family: var(--font-pixel);
	font-weight: 400;
	font-size: 20px;
}

.ach-open .px-icon {
	color: #f2c14e;
}

.ach-open.is-ping {
	animation: heart-pop 600ms var(--ease-spring);
}

.ach-toasts {
	position: fixed;
	top: calc(var(--header-h) + 14px);
	right: 16px;
	z-index: 400;
	display: grid;
	gap: 10px;
	pointer-events: none;
}

.ach-toast {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 220px;
	max-width: min(320px, calc(100vw - 32px));
	padding: 10px 14px;
	background: #fffaf0;
	box-shadow: var(--px-outline), 6px 8px 0 0 rgba(74, 51, 65, 0.2);
	animation: ach-in 520ms var(--ease-spring) both;
}

.ach-toast.is-out {
	animation: ach-out 400ms ease forwards;
}

@keyframes ach-in {
	from { opacity: 0; transform: translateX(60px) scale(0.9); }
	to { opacity: 1; transform: none; }
}

@keyframes ach-out {
	to { opacity: 0; transform: translateX(60px); }
}

.ach-toast p {
	margin: 0;
}

.ach-toast__k {
	font-size: 12px;
	line-height: 18px;
	color: #c04a75;
}

.ach-toast__n {
	font-weight: 700;
	font-size: 15px;
}

.ach-toast__d {
	font-size: 12px;
	color: var(--ink-soft);
}

.ach-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	color: #fff;
	box-shadow: var(--px-outline), inset -3px -3px 0 0 rgba(0, 0, 0, 0.15), inset 3px 3px 0 0 rgba(255, 255, 255, 0.35);
	margin: 4px;
}

.ach-panel {
	position: fixed;
	inset: 0;
	z-index: 320;
	display: grid;
	place-items: center;
	padding: 16px;
	background: rgba(42, 28, 38, 0.66);
	opacity: 0;
	transition: opacity 220ms ease;
}

.ach-panel[hidden] {
	display: none;
}

.ach-panel.is-open {
	opacity: 1;
}

.ach-panel__paper {
	position: relative;
	width: min(640px, 100%);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	padding: 22px 20px 20px;
	background: #fffaf5;
	transform: translateY(16px) scale(0.96);
	transition: transform 420ms var(--ease-spring);
}

.ach-panel.is-open .ach-panel__paper {
	transform: none;
}

.ach-panel__close {
	position: absolute;
	top: 10px;
	right: 10px;
}

.ach-panel__title {
	margin: 0;
	font-size: 30px;
	line-height: 40px;
}

.ach-panel__n {
	font-size: 20px;
	color: #c04a75;
}

.ach-panel__tip {
	margin: 0 0 14px;
	font-size: 12px;
	color: var(--ink-soft);
}

.ach-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 10px;
}

.ach-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 10px;
	background: rgba(255, 255, 255, 0.6);
	box-shadow: 0 0 0 2px var(--ink-faint);
}

.ach-item.is-on {
	background: #fff;
	box-shadow: 0 0 0 2px var(--ink);
}

.ach-item p {
	margin: 0;
}

.ach-item__n {
	font-weight: 700;
	font-size: 14px;
}

.ach-item:not(.is-on) .ach-item__n {
	color: var(--ink-faint);
	letter-spacing: 2px;
}

.ach-item__d {
	font-size: 12px;
	color: var(--ink-soft);
}

/* NPC 对话框（像 RPG 那样从下面升上来） */
.npc {
	position: fixed;
	left: 50%;
	bottom: calc(16px + env(safe-area-inset-bottom));
	z-index: 160;
	width: min(640px, calc(100vw - 24px));
	transform: translate(-50%, 30px);
	opacity: 0;
	transition: transform 420ms var(--ease-spring), opacity 220ms ease;
}

.npc[hidden] {
	display: none;
}

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

.npc__box {
	position: relative;
	display: flex;
	gap: 14px;
	padding: 14px 16px;
	background: #fffaf5;
	box-shadow: var(--px-outline), inset 0 0 0 4px #ffe1ea, 8px 10px 0 0 rgba(74, 51, 65, 0.25);
}

.npc__face {
	flex: none;
	width: 72px;
	height: 72px;
	background-color: var(--pink-1);
	background-repeat: no-repeat;
	background-size: 288px 72px;
	background-position: 0 0;
	box-shadow: 0 0 0 3px var(--ink);
	image-rendering: pixelated;
	margin: 3px;
}

.npc.is-talking .npc__face {
	animation: sprite-play 0.8s steps(4) infinite;
	--sw: 72px;
	--frames: 4;
}

.npc__main {
	flex: 1;
	min-width: 0;
}

.npc__name {
	margin: 0 0 4px;
	font-size: 12px;
	line-height: 18px;
	color: #c04a75;
}

.npc__text {
	min-height: 48px;
	margin: 0 0 8px;
	font-size: 15px;
	line-height: 1.7;
	cursor: pointer;
}

.npc.is-talking .npc__text::after {
	content: "▌";
	animation: blink 0.8s steps(1) infinite;
	color: var(--ink-soft);
}

.npc__choices {
	display: grid;
	gap: 4px;
}

.npc__choice {
	margin: 0;
	padding: 3px 8px;
	font-size: 14px;
	text-align: left;
	color: var(--ink);
	background: transparent;
	border: 0;
	transition: background-color var(--dur-1) ease, transform var(--dur-1) var(--ease-out);
}

.npc__choice:hover,
.npc__choice:focus-visible {
	background: var(--butter);
	transform: translateX(4px);
}

.npc__choice--bye {
	color: var(--ink-soft);
}

.npc__close {
	position: absolute;
	top: 6px;
	right: 10px;
	padding: 0 6px;
	font-size: 20px;
	line-height: 24px;
	color: var(--ink-soft);
	background: none;
	border: 0;
}

/* 第一次见面：小人头上的「！」 */
.pixel-sprite.has-hint::before {
	content: "!";
	position: absolute;
	left: 50%;
	top: -16px;
	width: 22px;
	height: 26px;
	margin-left: -11px;
	font-family: var(--font-pixel);
	font-size: 20px;
	line-height: 26px;
	text-align: center;
	color: var(--ink);
	background: #ffe48a;
	box-shadow: 0 0 0 2px var(--ink);
	animation: float-y 1s ease-in-out infinite;
}

@media (max-width: 719px) {
	.npc__face {
		width: 56px;
		height: 56px;
		background-size: 224px 56px;
	}

	.ach-toasts {
		left: 12px;
		right: 12px;
	}

	.ach-toast {
		max-width: none;
	}
}

@keyframes float-y {
	0%, 100% { transform: translate3d(0, 0, 0); }
	50% { transform: translate3d(0, 6px, 0); }
}

@keyframes heart-pop {
	0% { transform: scale(1); }
	50% { transform: scale(1.45); }
	100% { transform: scale(1); }
}

/* 加密日记 */
.post-password-form {
	max-width: 420px;
	margin: 12px auto;
	padding: 24px 20px;
	text-align: center;
}

.post-password-form__lock {
	margin: 0;
	color: #c04a75;
}

.post-password-form__title {
	margin: 6px 0 2px;
	font-size: 20px;
	line-height: 30px;
}

.post-password-form__tip {
	margin: 0 0 14px;
	font-size: 13px;
	color: var(--ink-soft);
}

.post-password-form__row {
	display: flex;
	gap: 12px;
	align-items: center;
	margin: 0;
}

.post-password-form__row input {
	flex: 1;
}

/* assets/css/scenes.css */
/* 自动生成：各场景的图层与配色（见 inc/scenes.php） */
/* 样式已加载的标记（head 里的兜底脚本会检查） */
:root { --cute-css-ok: 1; }
html[data-scene="sea"] { --veil: #f6f0fb; --veil-dot: #e9dcf6; --ground: #ffe6cf; --ground-top: #fff6ee; --ground-edge: #f3c7a6; --footer-bg: #ffeedd; }
html[data-scene="sea"] .scene__sky { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/sea/sky.png'); }
html[data-scene="sea"] .scene__far { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/sea/far.png'); }
html[data-scene="sea"] .scene__mid { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/sea/mid.png'); }
html[data-scene="sea"] .scene__near { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/sea/near.png'); }
html[data-scene="forest"] { --veil: #f0f9f2; --veil-dot: #d6eedd; --ground: #8fd1ac; --ground-top: #b7e6c9; --ground-edge: #6fb891; --footer-bg: #dcf3e5; }
html[data-scene="forest"] .scene__sky { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/forest/sky.png'); }
html[data-scene="forest"] .scene__far { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/forest/far.png'); }
html[data-scene="forest"] .scene__mid { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/forest/mid.png'); }
html[data-scene="forest"] .scene__near { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/forest/near.png'); }
html[data-scene="city"] { --veil: #f3f0fb; --veil-dot: #e2dbf5; --ground: #3a3470; --ground-top: #5b52a0; --ground-edge: #2a2550; --footer-bg: #e6e1f6; }
html[data-scene="city"] .scene__sky { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/city/sky.png'); }
html[data-scene="city"] .scene__far { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/city/far.png'); }
html[data-scene="city"] .scene__lights { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/city/lights.png'); }
html[data-scene="city"] .scene__mid { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/city/mid.png'); }
html[data-scene="city"] .scene__near { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/city/near.png'); }
html[data-scene="city"] .scene__clouds { display: none; }
html[data-scene="mount"] { --veil: #fff3f6; --veil-dot: #ffdbe5; --ground: #8fd1ac; --ground-top: #b7e6c9; --ground-edge: #7cc49d; --footer-bg: #e4f5ea; }
html[data-scene="mount"] .scene__sky { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/mount/sky.png'); }
html[data-scene="mount"] .scene__far { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/mount/far.png'); }
html[data-scene="mount"] .scene__mid { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/mount/mid.png'); }
html[data-scene="mount"] .scene__near { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/mount/near.png'); }
html[data-scene="cabin"] { --veil: #f0f2f8; --veil-dot: #dde1ef; --ground: #4f7468; --ground-top: #6b917f; --ground-edge: #46685d; --footer-bg: #e3ebe7; }
html[data-scene="cabin"] .scene__sky { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/cabin/sky.png'); }
html[data-scene="cabin"] .scene__far { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/cabin/far.png'); }
html[data-scene="cabin"] .scene__mid { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/cabin/mid.png'); }
html[data-scene="cabin"] .scene__near { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/cabin/near.png'); }
html[data-scene="cabin"] .scene__clouds { display: none; }
html[data-scene="stars"] { --veil: #f1f0fa; --veil-dot: #dedcf3; --ground: #2e2f62; --ground-top: #3c3a70; --ground-edge: #24264f; --footer-bg: #e5e4f5; }
html[data-scene="stars"] .scene__sky { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/stars/sky.png'); }
html[data-scene="stars"] .scene__far { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/stars/far.png'); }
html[data-scene="stars"] .scene__mid { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/stars/mid.png'); }
html[data-scene="stars"] .scene__near { background-image: url('//yijieshi.site/wp-content/themes/cute-ss/assets/img/scenes/stars/near.png'); }
html[data-scene="stars"] .scene__clouds { display: none; }

:root{--cute-css-ok:1}
