/* =========================================================
   StudyBoost 学习效率 —— 主样式
   概念:方格笔记本 + 荧光笔划重点
   墨蓝 = 钢笔字 · 荧光黄 = 重点 · 红 = 教师红笔(极少量)
   ========================================================= */

/* ---------- 1. 设计变量 ---------- */
:root {
	--paper: #f8f9f4;          /* 冷调纸白(非奶油色) */
	--paper-2: #ffffff;        /* 卡片纸 */
	--ink: #1e2b45;            /* 钢笔墨蓝 */
	--ink-70: rgba(30, 43, 69, 0.72);
	--ink-45: rgba(30, 43, 69, 0.45);
	--ink-14: rgba(30, 43, 69, 0.14);
	--grid-line: rgba(30, 43, 69, 0.055);
	--hl: #ffe45c;             /* 荧光黄 */
	--hl-soft: #fff3a6;
	--red: #e0484e;            /* 红笔 */
	--radius: 10px;
	--radius-lg: 14px;

	--font-display: "Bricolage Grotesque", "PingFang SC", "Hiragino Sans GB",
		"Microsoft YaHei", "Noto Sans SC", sans-serif;
	--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
		"Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	--font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono",
		"Courier New", monospace;

	--container: 1180px;
	--header-h: 72px;
}

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

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16.5px;
	line-height: 1.75;
	color: var(--ink);
	background-color: var(--paper);
	/* 方格笔记本底纹 */
	background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 28px 28px;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--ink);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

a:hover {
	text-decoration-color: var(--red);
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	line-height: 1.22;
	margin: 0 0 0.5em;
	font-weight: 800;
	letter-spacing: 0.01em;
	overflow-wrap: break-word;
}

p {
	margin: 0 0 1em;
}

button {
	font: inherit;
	cursor: pointer;
}

.mono {
	font-family: var(--font-mono);
	letter-spacing: 0.04em;
}

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.container-narrow {
	max-width: 780px;
}

/* 无障碍 */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -48px;
	z-index: 200;
	background: var(--ink);
	color: #fff;
	padding: 10px 16px;
	border-radius: 0 0 8px 8px;
	transition: top 0.2s;
}

.skip-link:focus {
	top: 0;
}

:focus-visible {
	outline: 2.5px solid var(--red); /* 红笔圈出焦点 */
	outline-offset: 3px;
	border-radius: 4px;
}

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

/* ---------- 3. 荧光笔高亮 ---------- */
mark.hl {
	color: inherit;
	background-color: transparent;
	background-image: linear-gradient(100deg,
		rgba(255, 228, 92, 0) 0.6%,
		var(--hl) 3.2%,
		var(--hl-soft) 96%,
		rgba(255, 228, 92, 0) 99%);
	background-repeat: no-repeat;
	background-position: 0 62%;
	background-size: 0% 0.62em;
	padding: 0.08em 0.12em;
	margin: -0.08em -0.06em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	transition: background-size 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

mark.hl.is-inked {
	background-size: 100% 0.62em;
}

/* 深色区块里的高亮改为亮黄文字 */
.cta-band mark.hl {
	background-image: none;
	color: var(--hl);
}

/* ---------- 4. 按钮 ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.72em 1.25em;
	border: 2px solid var(--ink);
	border-radius: 9px;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.2;
	text-decoration: none;
	background: var(--paper-2);
	color: var(--ink);
	transition: transform 0.15s ease, box-shadow 0.15s ease,
		background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(30, 43, 69, 0.14);
}

.btn:active {
	transform: translateY(0);
	box-shadow: none;
}

.btn-ink {
	background: var(--ink);
	color: #fff;
}

.btn-hl {
	background: var(--hl);
	border-color: var(--ink);
	color: var(--ink);
}

.btn-ghost {
	background: transparent;
}

.btn-lg {
	padding: 0.95em 1.7em;
	font-size: 1.05rem;
}

.btn-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--red);
	flex: none;
}

/* ---------- 5. 页头 ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(248, 249, 244, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 2px solid var(--ink);
}

.admin-bar .site-header {
	top: 32px;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--header-h);
}

.brand-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

/* 品牌标:墨蓝方块 + 折角书签(荧光黄) */
.brand-mark {
	width: 32px;
	height: 32px;
	background: var(--ink);
	border-radius: 7px;
	position: relative;
	overflow: hidden;
	flex: none;
}

.brand-mark::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	border-top: 13px solid var(--hl);
	border-left: 13px solid transparent;
}

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

.brand-name {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.12rem;
}

.brand-tagline {
	font-size: 0.68rem;
	color: var(--ink-70);
	margin-top: 2px;
}

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

/* 导航 */
.site-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.site-nav .menu {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 26px;
	margin: 0;
	padding: 0;
}

.site-nav .menu li {
	position: relative;
}

.site-nav .menu > li > a {
	text-decoration: none;
	font-weight: 600;
	font-size: 0.97rem;
	padding: 6px 2px;
	border-bottom: 3px solid transparent;
}

.site-nav .menu > li > a:hover,
.site-nav .menu > li.current-menu-item > a {
	border-bottom-color: var(--hl);
}

/* 二级菜单 */
.site-nav .menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px;
	position: absolute;
	top: calc(100% + 8px);
	left: -8px;
	min-width: 180px;
	background: var(--paper-2);
	border: 2px solid var(--ink);
	border-radius: var(--radius);
	box-shadow: 0 12px 24px rgba(30, 43, 69, 0.12);
	display: none;
}

.site-nav .menu li:hover > .sub-menu,
.site-nav .menu li:focus-within > .sub-menu {
	display: block;
}

.site-nav .menu .sub-menu a {
	display: block;
	padding: 8px 10px;
	text-decoration: none;
	border-radius: 6px;
	font-size: 0.92rem;
}

.site-nav .menu .sub-menu a:hover {
	background: var(--hl-soft);
}

.nav-cta {
	padding: 0.55em 1.05em;
	font-size: 0.9rem;
}

/* 移动端折叠按钮 */
.nav-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	background: none;
	border: 2px solid var(--ink);
	border-radius: 8px;
	padding: 8px 12px;
	font-weight: 700;
}

.nav-toggle-bar {
	position: relative;
	width: 18px;
	height: 2px;
	background: var(--ink);
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	background: var(--ink);
	transition: transform 0.2s;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
	transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
	transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 6. 首屏 ---------- */
.hero {
	padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 88px);
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

.hero-center .hero-grid {
	grid-template-columns: minmax(0, 1fr);
	text-align: center;
	justify-items: center;
	max-width: 820px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--ink-70);
	margin: 0 0 18px;
}

.eyebrow-dash {
	width: 26px;
	height: 9px;
	background: var(--hl);
	border-radius: 2px;
	transform: skewX(-12deg);
	flex: none;
}

.hero-title {
	font-size: clamp(2.1rem, 5.2vw, 3.7rem);
	margin-bottom: 0.55em;
}

.hero-sub {
	font-size: clamp(1.02rem, 1.6vw, 1.16rem);
	color: var(--ink-70);
	max-width: 34em;
	margin-bottom: 1.6em;
}

.hero-center .hero-sub {
	margin-left: auto;
	margin-right: auto;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 20px;
}

.hero-hint {
	font-size: 0.76rem;
	color: var(--ink-45);
	margin: 0;
}

/* ---------- 7. 番茄钟卡片 ---------- */
.hero-timer {
	display: flex;
	justify-content: center;
}

.timer-card {
	width: min(400px, 100%);
	background: var(--paper-2);
	border: 2px solid var(--ink);
	border-radius: var(--radius-lg);
	padding: 26px 26px 22px;
	position: relative;
	box-shadow: 6px 8px 0 rgba(30, 43, 69, 0.08);
}

/* 和纸胶带,把卡片"贴"在页面上 */
.tape::before {
	content: "";
	position: absolute;
	top: -15px;
	left: 50%;
	width: 116px;
	height: 30px;
	transform: translateX(-50%) rotate(-3deg);
	background: rgba(255, 228, 92, 0.82);
	border-left: 2px dashed rgba(30, 43, 69, 0.22);
	border-right: 2px dashed rgba(30, 43, 69, 0.22);
	box-shadow: 0 2px 5px rgba(30, 43, 69, 0.1);
}

.timer-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.timer-flag {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--red);
	flex: none;
}

.timer-card.is-running .timer-flag {
	animation: sb-blink 1.2s ease-in-out infinite;
}

@keyframes sb-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.25; }
}

.timer-label {
	font-size: 0.74rem;
	color: var(--ink-70);
	font-weight: 600;
}

.timer-modes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	background: var(--paper);
	border: 1.5px solid var(--ink-14);
	border-radius: 10px;
	padding: 5px;
	margin-bottom: 20px;
}

.timer-mode {
	border: 0;
	background: transparent;
	border-radius: 7px;
	padding: 8px 4px;
	font-weight: 700;
	font-size: 0.86rem;
	color: var(--ink-70);
	transition: background-color 0.15s, color 0.15s;
}

.timer-mode:hover {
	color: var(--ink);
}

.timer-mode.is-active {
	background: var(--ink);
	color: #fff;
}

.timer-face {
	position: relative;
	width: 220px;
	margin: 0 auto 20px;
}

.timer-ring {
	display: block;
	width: 100%;
	height: auto;
}

.timer-ring-track,
.timer-ring-progress {
	fill: none;
	stroke-width: 10;
	stroke-linecap: round;
}

.timer-ring-track {
	stroke: var(--ink-14);
}

.timer-ring-progress {
	stroke: var(--ink);
	transition: stroke-dashoffset 0.4s linear, stroke 0.3s;
}

.timer-card.is-break .timer-ring-progress {
	stroke: var(--red);
}

.timer-time {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}

.timer-actions {
	display: flex;
	gap: 10px;
	margin-bottom: 16px;
}

.timer-start {
	flex: 1.6;
}

.timer-reset {
	flex: 1;
}

.timer-today {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 0.76rem;
	color: var(--ink-70);
	border-top: 1.5px dashed var(--ink-14);
	padding-top: 14px;
}

.timer-dots {
	display: inline-flex;
	gap: 4px;
}

.timer-dots i {
	width: 9px;
	height: 9px;
	border-radius: 2px;
	background: var(--hl);
	border: 1.5px solid var(--ink);
}

.timer-count-num {
	font-size: 0.95rem;
}

/* ---------- 8. 关键词滚动条 ---------- */
.ticker {
	border-top: 2px solid var(--ink);
	border-bottom: 2px solid var(--ink);
	background: var(--paper-2);
	overflow: hidden;
	padding: 12px 0;
}

.ticker-track {
	display: flex;
	width: max-content;
	animation: sb-ticker 32s linear infinite;
}

.ticker:hover .ticker-track {
	animation-play-state: paused;
}

.ticker-group {
	display: flex;
	align-items: center;
	flex: none;
}

.ticker-item {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.98rem;
	white-space: nowrap;
	padding: 0 8px;
}

.ticker-sep {
	color: var(--red);
	padding: 0 14px;
}

@keyframes sb-ticker {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* ---------- 9. 区块通用 ---------- */
.section {
	padding: clamp(64px, 8vw, 104px) 0;
}

.section-alt {
	background: var(--paper-2);
	border-top: 2px solid var(--ink);
	border-bottom: 2px solid var(--ink);
}

.section-head {
	max-width: 640px;
	margin-bottom: clamp(36px, 5vw, 56px);
}

.section-title {
	font-size: clamp(1.6rem, 3.4vw, 2.35rem);
	margin-bottom: 0.4em;
}

.section-sub {
	color: var(--ink-70);
	margin: 0;
}

.section-more {
	margin: 40px 0 0;
}

.empty-note {
	color: var(--ink-70);
	border: 2px dashed var(--ink-14);
	border-radius: var(--radius);
	padding: 28px;
	background: var(--paper-2);
}

/* ---------- 10. 工具卡片(索引卡) ---------- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 22px;
}

.tool-card {
	background: var(--paper-2);
	border: 2px solid var(--ink);
	border-radius: var(--radius-lg);
	padding: 22px;
	display: flex;
	flex-direction: column;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tool-card:hover {
	transform: translateY(-4px);
	box-shadow: 6px 8px 0 rgba(30, 43, 69, 0.1);
}

.tool-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.tool-tab {
	font-size: 0.7rem;
	font-weight: 600;
	background: var(--hl);
	border: 1.5px solid var(--ink);
	border-radius: 5px;
	padding: 3px 9px;
	transform: rotate(-1.5deg);
}

.tool-icon {
	width: 46px;
	height: 46px;
	color: var(--ink);
	flex: none;
}

.tool-icon svg {
	width: 100%;
	height: 100%;
}

.tool-icon img {
	width: 46px;
	height: 46px;
	object-fit: cover;
	border-radius: 8px;
	border: 1.5px solid var(--ink-14);
}

.tool-title {
	font-size: 1.16rem;
	margin-bottom: 0.35em;
}

.tool-title a {
	text-decoration: none;
}

.tool-title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--hl);
	text-decoration-thickness: 4px;
}

.tool-desc {
	color: var(--ink-70);
	font-size: 0.93rem;
	flex: 1;
	margin-bottom: 16px;
}

.tool-more {
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--ink);
	align-self: flex-start;
	border-bottom: 2px solid var(--hl);
	padding-bottom: 2px;
}

a.tool-more:hover {
	border-bottom-color: var(--red);
}

/* ---------- 11. 学习方法(笔记本红边线) ---------- */
.method-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px 42px;
}

.method {
	position: relative;
	padding-left: 26px;
}

/* 笔记本页边的红色竖线 */
.method::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	bottom: 4px;
	width: 2px;
	background: var(--red);
	opacity: 0.85;
}

.method-tag {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 600;
	color: var(--ink-70);
	border: 1.5px solid var(--ink-14);
	border-radius: 999px;
	padding: 2px 10px;
	margin-bottom: 10px;
	background: var(--paper);
}

.method-title {
	font-size: 1.22rem;
	margin-bottom: 0.35em;
}

.method-why {
	color: var(--ink-70);
	font-size: 0.95rem;
	margin: 0;
}

/* ---------- 12. 文章卡片 ---------- */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 22px;
}

.post-card {
	background: var(--paper-2);
	border: 2px solid var(--ink);
	border-radius: var(--radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover {
	transform: translateY(-4px);
	box-shadow: 6px 8px 0 rgba(30, 43, 69, 0.1);
}

.post-thumb {
	display: block;
	border-bottom: 2px solid var(--ink);
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

.post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

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

.post-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.76rem;
	color: var(--ink-70);
	margin-bottom: 10px;
}

.post-meta time {
	font-family: var(--font-mono);
	letter-spacing: 0.04em;
}

.post-cat {
	text-decoration: none;
	background: var(--hl-soft);
	border-radius: 4px;
	padding: 1px 8px;
	font-weight: 600;
}

.post-cat:hover {
	background: var(--hl);
}

.post-card-title {
	font-size: 1.14rem;
	margin-bottom: 0.4em;
}

.post-card-title a {
	text-decoration: none;
}

.post-card-title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--hl);
	text-decoration-thickness: 4px;
}

.post-card-excerpt {
	color: var(--ink-70);
	font-size: 0.92rem;
	flex: 1;
	margin-bottom: 16px;
}

.post-card-more {
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none;
	align-self: flex-start;
	border-bottom: 2px solid var(--hl);
	padding-bottom: 2px;
}

.post-card-more:hover {
	border-bottom-color: var(--red);
}

/* ---------- 13. 底部号召 ---------- */
.cta-band {
	background: var(--ink);
	color: #fff;
	background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 28px 28px;
	padding: clamp(64px, 8vw, 96px) 0;
}

.cta-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}

.cta-title {
	font-size: clamp(1.5rem, 3.4vw, 2.3rem);
	margin: 0;
	max-width: 15em;
}

.cta-band .btn-hl:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
	border-top: 2px solid var(--ink);
	background: var(--paper);
	padding: 56px 0 28px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(auto-fit, minmax(150px, 1fr));
	gap: 36px;
	margin-bottom: 40px;
}

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

.footer-note {
	color: var(--ink-70);
	font-size: 0.92rem;
	max-width: 26em;
	margin: 10px 0 0;
}

.footer-title {
	font-size: 0.82rem;
	font-family: var(--font-mono);
	letter-spacing: 0.08em;
	color: var(--ink-70);
	margin-bottom: 14px;
	font-weight: 600;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

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

.footer-menu a {
	text-decoration: none;
	font-size: 0.95rem;
}

.footer-menu a:hover {
	text-decoration: underline;
	text-decoration-color: var(--hl);
	text-decoration-thickness: 3px;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-top: 1.5px dashed var(--ink-14);
	padding-top: 20px;
	font-size: 0.76rem;
	color: var(--ink-70);
}

.footer-bottom p {
	margin: 0;
}

.back-top {
	text-decoration: none;
	border-bottom: 2px solid var(--hl);
	padding-bottom: 1px;
	color: var(--ink);
	font-size: 0.76rem;
}

/* ---------- 15. 内页外壳 ---------- */
.page-shell {
	padding: clamp(48px, 7vw, 80px) 0 clamp(64px, 8vw, 100px);
}

.page-head {
	margin-bottom: clamp(32px, 5vw, 52px);
	max-width: 720px;
}

.page-title {
	font-size: clamp(1.8rem, 4vw, 2.7rem);
	margin-bottom: 0.3em;
}

.page-desc {
	color: var(--ink-70);
}

/* ---------- 16. 文章详情 ---------- */
.entry {
	background: var(--paper-2);
	border: 2px solid var(--ink);
	border-radius: var(--radius-lg);
	padding: clamp(28px, 5vw, 56px);
}

.entry-head {
	margin-bottom: 28px;
}

.entry-title {
	font-size: clamp(1.7rem, 3.8vw, 2.5rem);
	margin: 0.3em 0;
}

.entry-lead {
	color: var(--ink-70);
	font-size: 1.05rem;
	border-left: 3px solid var(--hl);
	padding-left: 16px;
}

.entry-thumb {
	margin: 0 0 28px;
}

.entry-thumb img {
	border-radius: var(--radius);
	border: 1.5px solid var(--ink-14);
}

/* 正文排版 */
.prose {
	font-size: 1.02rem;
}

.prose > * {
	margin-top: 0;
	margin-bottom: 1.15em;
}

.prose h2 {
	font-size: 1.5rem;
	margin-top: 1.8em;
	padding-bottom: 0.3em;
	border-bottom: 2px solid var(--ink-14);
}

.prose h3 {
	font-size: 1.22rem;
	margin-top: 1.5em;
}

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

.prose li {
	margin-bottom: 0.4em;
}

.prose blockquote {
	margin: 1.4em 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--red);
	color: var(--ink-70);
	font-style: normal;
}

.prose code {
	font-family: var(--font-mono);
	font-size: 0.88em;
	background: var(--paper);
	border: 1px solid var(--ink-14);
	border-radius: 5px;
	padding: 1px 6px;
}

.prose pre {
	background: var(--ink);
	color: #eef1f8;
	border-radius: var(--radius);
	padding: 20px;
	overflow-x: auto;
	font-size: 0.88rem;
	line-height: 1.65;
}

.prose pre code {
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
}

.prose img {
	border-radius: var(--radius);
}

.prose a {
	text-decoration-color: var(--hl);
	text-decoration-thickness: 2.5px;
}

.prose a:hover {
	text-decoration-color: var(--red);
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.94rem;
}

.prose th,
.prose td {
	border: 1.5px solid var(--ink-14);
	padding: 9px 12px;
	text-align: left;
}

.prose th {
	background: var(--paper);
	font-family: var(--font-mono);
	font-size: 0.8rem;
	letter-spacing: 0.05em;
}

.entry-foot {
	margin-top: 32px;
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 0.85rem;
}

.entry-tags a {
	text-decoration: none;
	background: var(--paper);
	border: 1.5px solid var(--ink-14);
	border-radius: 999px;
	padding: 3px 12px;
}

.entry-tags a:hover {
	background: var(--hl-soft);
	border-color: var(--ink);
}

/* 上一篇 / 下一篇 */
.post-navigation {
	margin-top: 32px;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.post-navigation a {
	display: block;
	background: var(--paper-2);
	border: 2px solid var(--ink);
	border-radius: var(--radius);
	padding: 16px 18px;
	text-decoration: none;
	transition: transform 0.15s, box-shadow 0.15s;
}

.post-navigation a:hover {
	transform: translateY(-3px);
	box-shadow: 5px 6px 0 rgba(30, 43, 69, 0.1);
}

.post-navigation .nav-next {
	text-align: right;
}

.nav-label {
	display: block;
	font-size: 0.72rem;
	color: var(--ink-70);
	margin-bottom: 4px;
}

.nav-title {
	font-weight: 700;
	font-size: 0.95rem;
}

/* ---------- 17. 评论 ---------- */
.comments-area {
	margin-top: 48px;
	background: var(--paper-2);
	border: 2px solid var(--ink);
	border-radius: var(--radius-lg);
	padding: clamp(24px, 4vw, 40px);
}

.comments-title,
.comment-reply-title {
	font-size: 1.3rem;
}

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

.comment-list .comment {
	border-bottom: 1.5px dashed var(--ink-14);
	padding: 18px 0;
}

.comment-list .children {
	list-style: none;
	margin: 0;
	padding-left: 28px;
	border-left: 2px solid var(--ink-14);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
}

.comment-author .avatar {
	border-radius: 50%;
	border: 1.5px solid var(--ink-14);
}

.comment-metadata {
	font-size: 0.76rem;
	font-family: var(--font-mono);
	margin: 4px 0 8px;
}

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

.comment-content {
	font-size: 0.96rem;
}

.reply a {
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
	border-bottom: 2px solid var(--hl);
}

/* ---------- 18. 表单 ---------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
	width: 100%;
	font: inherit;
	color: var(--ink);
	background: var(--paper-2);
	border: 2px solid var(--ink);
	border-radius: 9px;
	padding: 10px 14px;
}

input:focus,
textarea:focus {
	outline: 2.5px solid var(--red);
	outline-offset: 2px;
}

.comment-form label {
	display: block;
	font-weight: 700;
	font-size: 0.88rem;
	margin-bottom: 6px;
}

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

.comment-form .submit {
	border: 2px solid var(--ink);
	background: var(--ink);
	color: #fff;
	border-radius: 9px;
	padding: 0.72em 1.4em;
	font-weight: 700;
	transition: transform 0.15s, box-shadow 0.15s;
}

.comment-form .submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(30, 43, 69, 0.16);
}

.search-form {
	display: flex;
	gap: 10px;
	max-width: 460px;
}

.search-form .search-field {
	flex: 1;
}

/* ---------- 19. 分页 ---------- */
.pagination {
	margin-top: 44px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.pagination .page-numbers {
	font-family: var(--font-mono);
	font-size: 0.86rem;
	text-decoration: none;
	border: 2px solid var(--ink);
	border-radius: 8px;
	padding: 7px 13px;
	background: var(--paper-2);
}

.pagination .page-numbers.current {
	background: var(--ink);
	color: #fff;
}

.pagination .page-numbers.dots {
	border: 0;
	background: none;
}

.pagination a.page-numbers:hover {
	background: var(--hl-soft);
}

/* ---------- 20. 404 ---------- */
.error-404 {
	text-align: center;
	padding: 24px 0;
}

.error-code {
	font-size: clamp(4.5rem, 14vw, 8rem);
	font-weight: 600;
	line-height: 1;
	margin: 0 0 8px;
	color: var(--ink);
	text-shadow: 5px 5px 0 var(--hl);
}

.error-404 .search-form {
	margin: 24px auto 0;
	justify-content: center;
}

.error-404 .page-head,
.error-404 .page-desc {
	max-width: none;
}

/* ---------- 21. 滚动浮现 ---------- */
.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- 22. WordPress 常用类 ---------- */
.alignleft {
	float: left;
	margin: 4px 24px 16px 0;
}

.alignright {
	float: right;
	margin: 4px 0 16px 24px;
}

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

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-size: 0.8rem;
	color: var(--ink-70);
	text-align: center;
	padding-top: 6px;
}

.sticky {
	/* 置顶文章加荧光角标 */
	position: relative;
}

.sticky::after {
	content: "置顶";
	position: absolute;
	top: 12px;
	right: 12px;
	background: var(--hl);
	border: 1.5px solid var(--ink);
	border-radius: 5px;
	font-size: 0.68rem;
	font-weight: 700;
	padding: 2px 8px;
}

.page-links {
	margin-top: 20px;
	font-size: 0.9rem;
}

/* ---------- 23. 响应式 ---------- */
@media (max-width: 960px) {
	.hero-grid {
		grid-template-columns: 1fr;
	}

	.hero-timer {
		justify-content: flex-start;
	}

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

@media (max-width: 760px) {
	body {
		font-size: 16px;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--paper);
		border-bottom: 2px solid var(--ink);
		padding: 20px 24px 24px;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		box-shadow: 0 16px 28px rgba(30, 43, 69, 0.12);
	}

	.site-nav.open {
		display: flex;
	}

	.site-nav .menu {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}

	.site-nav .menu > li > a {
		display: block;
		padding: 10px 4px;
		border-bottom: 1.5px dashed var(--ink-14);
	}

	.site-nav .menu .sub-menu {
		display: block;
		position: static;
		border: 0;
		box-shadow: none;
		background: transparent;
		padding: 0 0 0 16px;
	}

	.nav-cta {
		justify-content: center;
	}

	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.cta-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.timer-face {
		width: 190px;
	}

	.timer-time {
		font-size: 2.6rem;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

/* ---------- 24. 动效偏好 ---------- */
@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;
	}

	.ticker-track {
		animation: none;
		flex-wrap: wrap;
	}

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

	mark.hl {
		background-size: 100% 0.62em;
	}
}
