/*
Theme Name: Minimag
Theme URI: https://example.com/minimag
Author: WorkBuddy
Author URI: https://example.com
Description: 极致简约的纯白色博客主题。首页展示最新文章与时间线目录，文章页展示头图与相关文章。
Version: 2.9.1
Requires at least: 5.4
Tested up to: 6.6
Requires PHP: 7.2
License: GPLv2 or later
Text Domain: minimag
*/

/* ========================================
   Minimag — 极简纯白
   ======================================== */

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
	--mm-text: #1a1a1a;
	--mm-text-muted: #6b6b6b;
	--mm-text-light: #9a9a9a;
	--mm-text-faint: #c4c4c4;
	--mm-bg: #ffffff;
	--mm-border: #ececec;
	--mm-border-strong: #e0e0e0;
	--mm-radius: 6px;
	--mm-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	--mm-transition-fast: 0.15s ease;
	--mm-shadow: 0 1px 2px rgba(0,0,0,0.03);
	--mm-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
	color: var(--mm-text);
	background: var(--mm-bg);
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* ---------- 排版 ---------- */
h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	line-height: 1.4;
	color: var(--mm-text);
	letter-spacing: -0.01em;
}

a {
	color: var(--mm-text);
	text-decoration: none;
	transition: color var(--mm-transition-fast);
}
a:hover { color: var(--mm-text-muted); }

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

p { margin-bottom: 1.3em; }
p:last-child { margin-bottom: 0; }

blockquote {
	margin: 1.8em 0;
	padding: 0.2em 0 0.2em 1.2em;
	border-left: 2px solid var(--mm-border-strong);
	color: var(--mm-text-muted);
	font-style: italic;
	font-size: 1.02em;
}

ul, ol { padding-left: 1.5em; margin-bottom: 1.3em; }
li { margin-bottom: 0.4em; }

code, pre {
	font-family: "SF Mono", "JetBrains Mono", Menlo, Monaco, "Courier New", monospace;
	font-size: 0.85rem;
}

pre {
	background: #fafafa;
	padding: 1em 1.2em;
	border-radius: var(--mm-radius);
	overflow-x: auto;
	margin-bottom: 1.3em;
	line-height: 1.65;
	border: 1px solid var(--mm-border);
}

code { background: #f6f6f6; padding: 0.15em 0.4em; border-radius: 3px; }
pre code { background: none; padding: 0; border: none; }

hr {
	border: none;
	border-top: 1px solid var(--mm-border);
	margin: 2.8em 0;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.3em;
	font-size: 0.95rem;
}

th, td {
	padding: 0.65em 0.9em;
	border-bottom: 1px solid var(--mm-border);
	text-align: left;
}

th { font-weight: 600; background: #fafafa; }

/* ---------- 容器 ---------- */
.mm-container {
	max-width: 660px;
	margin: 0 auto;
	padding: 0 28px;
}

/* ---------- 头部 + Logo ---------- */
.mm-header {
	text-align: center;
	padding: 64px 0 24px;
}

.mm-header__logo {
	display: inline-block;
	line-height: 0;
	transition: transform var(--mm-transition);
}
.mm-header__logo:hover { transform: scale(1.04); }
.mm-header__logo:hover .mm-header__logo-img { opacity: 0.92; }

.mm-header__logo-img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 1px var(--mm-border);
	transition: var(--mm-transition);
}

.mm-header__logo-text {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.mm-header__name {
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.4;
	margin-top: 18px;
	letter-spacing: -0.02em;
}

.mm-header__tagline {
	font-size: 0.88rem;
	color: var(--mm-text-light);
	margin-top: 6px;
	letter-spacing: 0.01em;
}

/* 头部操作按钮（主页 + 搜索，左右对称） */
.mm-header__actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 28px;
}

.mm-action-btn {
	--btn-size: 38px;
	width: var(--btn-size);
	height: var(--btn-size);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #1a1a1a;
	border: 1px solid #1a1a1a;
	color: #fff;
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	padding: 0;
	text-decoration: none;
}

.mm-action-btn:hover,
.mm-action-btn:focus-visible {
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
	border-color: #000;
	outline: none;
}

.mm-action-btn__icon {
	display: block;
}

/* 页脚社交按钮（搜索 / 微信 / 微博） */
.mm-footer__social {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.mm-social {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.mm-social-btn {
	--btn-size: 38px;
	width: var(--btn-size);
	height: var(--btn-size);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	overflow: hidden;
	background: var(--mm-bg);
	border: 1px solid var(--mm-border-strong);
	color: var(--mm-text-muted);
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	cursor: pointer;
}

.mm-social-btn__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mm-social-btn__text {
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1;
}

.mm-social-btn:hover,
.mm-social-btn:focus-visible {
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
	border-color: var(--mm-text-muted);
	outline: none;
}

/* 头部与内容之间的分隔线（全站统一，确保首页与文章页位置完全一致） */
.mm-header-divider {
	height: 0;
	border-top: 1px dashed #e0b0b0;
	margin: 0 0 44px;
}

/* 搜索覆盖层 */
.mm-search-overlay {
	position: fixed;
	inset: 0;
	background: rgba(255,255,255,0.96);
	z-index: 100;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 22vh;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.mm-search-overlay__inner {
	width: 90%;
	max-width: 560px;
	position: relative;
}

.mm-search-overlay__close {
	position: absolute;
	top: -56px;
	right: 0;
	background: none;
	border: none;
	font-size: 2.2rem;
	color: var(--mm-text-muted);
	cursor: pointer;
	line-height: 1;
	padding: 4px;
	transition: color var(--mm-transition-fast);
}

.mm-search-overlay__close:hover { color: var(--mm-text); }

.mm-search-form { display: flex; gap: 10px; align-items: stretch; }

.mm-search-form__input {
	flex: 1;
	padding: 14px 0;
	border: none;
	border-bottom: 2px solid var(--mm-border);
	font-size: 1.5rem;
	font-family: inherit;
	color: var(--mm-text);
	background: transparent;
	outline: none;
	transition: border-color var(--mm-transition-fast);
}

.mm-search-form__input:focus { border-color: var(--mm-text); }

.mm-search-form__input::placeholder { color: var(--mm-text-faint); }

.mm-search-form__submit {
	padding: 10px 22px;
	border: 1px solid var(--mm-text);
	background: var(--mm-text);
	color: var(--mm-bg);
	font-size: 0.85rem;
	font-family: inherit;
	border-radius: 999px;
	cursor: pointer;
	transition: opacity var(--mm-transition-fast);
	flex-shrink: 0;
}

.mm-search-form__submit:hover { opacity: 0.85; }

/* 搜索页 */
.mm-page-header {
	text-align: center;
	padding: 8px 0 36px;
	border-bottom: 1px solid var(--mm-border);
	margin-bottom: 36px;
}

.mm-page-header__title {
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.mm-page-header__count {
	font-size: 0.82rem;
	color: var(--mm-text-light);
	margin-top: 8px;
}

.mm-search-keyword { color: var(--mm-text-muted); }

.mm-search-results { margin-bottom: 40px; }

.mm-search-item {
	padding-bottom: 26px;
	margin-bottom: 26px;
	border-bottom: 1px solid var(--mm-border);
}

.mm-search-item:last-child { border-bottom: none; }

.mm-search-item__title {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 6px;
	letter-spacing: -0.01em;
}

.mm-search-item__title a { color: var(--mm-text); text-decoration: none; }
.mm-search-item__title a:hover { color: var(--mm-text-muted); }

.mm-search-item__meta {
	font-size: 0.78rem;
	color: var(--mm-text-light);
	margin-bottom: 10px;
}

.mm-search-item__excerpt {
	font-size: 0.9rem;
	color: var(--mm-text-muted);
	line-height: 1.7;
}

.mm-no-results {
	text-align: center;
	padding: 40px 0;
	color: var(--mm-text-muted);
}

.mm-button {
	display: inline-block;
	margin-top: 18px;
	padding: 9px 22px;
	border: 1px solid var(--mm-text);
	border-radius: 999px;
	color: var(--mm-text);
	font-size: 0.84rem;
	text-decoration: none;
	transition: var(--mm-transition-fast);
}

.mm-button:hover { background: var(--mm-text); color: var(--mm-bg); }

/* 头部在所有页面保持统一布局（Logo + 站点名 + tagline + 社交按钮） */

/* ---------- 首页：最新文章（细框卡片） ---------- */
.mm-latest {
	margin-bottom: 56px;
	padding: 40px 44px 44px;
	border: 1px solid var(--mm-border);
	border-radius: var(--mm-radius);
	background: var(--mm-bg);
}

.mm-latest__label {
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--mm-text-light);
	font-weight: 600;
	margin-bottom: 28px;
}

.mm-latest__item {
	padding: 28px 0;
	border-bottom: 1px solid var(--mm-border);
}

.mm-latest__item:first-child { padding-top: 4px; }
.mm-latest__item:last-child { border-bottom: none; padding-bottom: 4px; }

.mm-latest__thumb {
	display: block;
	width: 100%;
	margin-bottom: 18px;
	overflow: hidden;
	border-radius: var(--mm-radius);
	background: var(--mm-surface);
	aspect-ratio: 16 / 9;
}
.mm-latest__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s var(--mm-ease);
}
.mm-latest__item:hover .mm-latest__thumb img { transform: scale(1.03); }

.mm-latest__meta {
	margin-bottom: 8px;
}

.mm-latest__date {
	font-size: 0.78rem;
	color: var(--mm-text-light);
	letter-spacing: 0.02em;
	font-variant-numeric: tabular-nums;
}

.mm-latest__title {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: -0.01em;
	margin-bottom: 10px;
}

.mm-latest__title a { color: var(--mm-text); text-decoration: none; transition: var(--mm-transition-fast); display: inline-block; }
.mm-latest__title a:hover { color: var(--mm-text-muted); transform: translateX(3px); }

.mm-latest__more {
	display: inline-block;
	font-size: 0.82rem;
	color: var(--mm-text-light);
	letter-spacing: 0.02em;
	transition: var(--mm-transition-fast);
}
.mm-latest__more:hover { color: var(--mm-text); transform: translateX(3px); }
.mm-latest__more span { display: inline-block; transition: transform var(--mm-transition-fast); }
.mm-latest__more:hover span { transform: translateX(2px); }

/* ---------- 时间线文章目录 ---------- */
.mm-timeline {
	margin-top: 8px;
	position: relative;
}

.mm-timeline__heading {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--mm-text-light);
	font-weight: 600;
	margin-bottom: 28px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--mm-border);
}

.mm-timeline__year {
	position: relative;
	padding-left: 20px;
	margin-bottom: 4px;
	border-left: 1px solid var(--mm-border);
}

.mm-timeline__year-label {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--mm-text);
	letter-spacing: 0.03em;
	margin: 18px 0 10px;
	position: relative;
}
.mm-timeline__year-label::before {
	content: '';
	position: absolute;
	left: -25px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--mm-bg);
	border: 1.5px solid var(--mm-text-faint);
	transform: translateY(-50%);
	transition: var(--mm-transition);
}
.mm-timeline__year:hover .mm-timeline__year-label::before {
	border-color: var(--mm-text-muted);
}

.mm-timeline__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mm-timeline__item {
	position: relative;
}
.mm-timeline__item a {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 8px 6px;
	border-radius: var(--mm-radius);
	color: var(--mm-text);
	text-decoration: none;
	transition: var(--mm-transition-fast);
}
.mm-timeline__item a:hover {
	background: #fafafa;
}
.mm-timeline__item a:hover .mm-timeline__title {
	transform: translateX(3px);
}

.mm-timeline__date {
	font-size: 0.78rem;
	color: var(--mm-text-light);
	font-variant-numeric: tabular-nums;
	flex-shrink: 0;
	width: 42px;
	letter-spacing: 0.02em;
}

.mm-timeline__title {
	font-size: 0.95rem;
	color: var(--mm-text);
	line-height: 1.5;
	transition: transform var(--mm-transition-fast);
}

/* ---------- 分页 ---------- */
.mm-pagination {
	margin-top: 36px;
}

.mm-pagination .page-numbers {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-evenly;
	list-style: none;
	padding: 0;
	margin: 0;
}

.mm-pagination .page-numbers li {
	margin: 0;
	padding: 0;
}

.mm-pagination .page-numbers a,
.mm-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
	font-size: 0.85rem;
	color: var(--mm-text-muted);
	background: var(--mm-bg);
	border: 1px solid var(--mm-border-strong);
	text-decoration: none;
	transition: var(--mm-transition-fast);
	flex-shrink: 0;
}

.mm-pagination .page-numbers a:hover {
	color: var(--mm-text);
	background: #f5f5f5;
	border-color: var(--mm-text-muted);
}

.mm-pagination .page-numbers .current {
	color: #fff;
	background: #1a1a1a;
	border-color: #1a1a1a;
	font-weight: 600;
}

.mm-pagination .page-numbers .dots {
	width: 40px;
	height: 40px;
	padding: 0;
	border-color: transparent;
	background: transparent;
	cursor: default;
	font-size: 0.75rem;
	letter-spacing: 0.05em;
}

.mm-pagination .page-numbers .prev,
.mm-pagination .page-numbers .next {
	/* 与数字按钮保持完全一致的 40px 正圆 */
	width: 40px;
	height: 40px;
	padding: 0;
}

/* ---------- 文章页 ---------- */
.mm-article {
	padding: 8px 0 56px;
}

/* 文章主体框：与首页三篇文章卡片同宽同风格 */
.mm-article__body {
	padding: 40px 44px 44px;
	border: 1px solid var(--mm-border);
	border-radius: var(--mm-radius);
	background: var(--mm-bg);
	margin-bottom: 40px;
}

.mm-article__title {
	font-size: 1.7rem;
	font-weight: 700;
	margin-bottom: 12px;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.mm-article__meta {
	font-size: 0.82rem;
	color: var(--mm-text-light);
	margin-bottom: 40px;
	letter-spacing: 0.02em;
}

.mm-article__thumbnail {
	margin: 0 0 44px;
	width: 100%;
	overflow: hidden;
	border-radius: var(--mm-radius);
	background: var(--mm-surface);
	aspect-ratio: 16 / 9;
}

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

.mm-article__content {
	font-size: 0.9rem;
	line-height: 1.88;
	color: var(--mm-text);
}

.mm-article__content > *:first-child { margin-top: 0; }
.mm-article__content p {
	margin: 1.2em 0;
	text-align: justify;
}
.mm-article__content a { text-decoration: underline; text-decoration-color: var(--mm-border-strong); text-underline-offset: 3px; }
.mm-article__content a:hover { text-decoration-color: var(--mm-text-muted); }

.mm-article__content h2,
.mm-article__content h3 {
	font-size: 1.4rem;
	margin: 1.56em 0;
	letter-spacing: -0.01em;
}

.mm-article__content img { border-radius: var(--mm-radius); margin: 1.5em 0; }

.mm-article__footer {
	margin-top: 52px;
	padding-top: 28px;
	border-top: 1px solid var(--mm-border);
}

/* ---------- 文章页底部分类 ---------- */
.mm-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 0.8rem;
	color: var(--mm-text-light);
	margin-bottom: 28px;
}

.mm-cats a {
	color: var(--mm-text-muted);
	padding: 3px 10px;
	border: 1px solid var(--mm-border);
	border-radius: 999px;
	transition: var(--mm-transition-fast);
}
.mm-cats a:hover { color: var(--mm-text); border-color: var(--mm-border-strong); }

/* ---------- 相关文章 ---------- */
.mm-related {
	margin-top: 52px;
	padding-top: 32px;
	border-top: 1px solid var(--mm-border);
}

.mm-related__heading {
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--mm-text-light);
	font-weight: 600;
	margin-bottom: 22px;
}

.mm-related__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mm-related__item {
	padding: 14px 0;
	border-bottom: 1px solid var(--mm-border);
}

.mm-related__item:first-child { padding-top: 0; }
.mm-related__item:last-child { border-bottom: none; padding-bottom: 0; }

.mm-related__item a {
	display: flex;
	align-items: baseline;
	gap: 16px;
	text-decoration: none;
	color: var(--mm-text);
	transition: var(--mm-transition-fast);
}

.mm-related__item a:hover { transform: translateX(3px); }

.mm-related__date {
	flex-shrink: 0;
	width: 92px;
	font-size: 0.78rem;
	color: var(--mm-text-light);
	letter-spacing: 0.02em;
	font-variant-numeric: tabular-nums;
}

.mm-related__title {
	flex: 1;
	min-width: 0;
	font-size: 0.98rem;
	font-weight: 500;
	line-height: 1.5;
	color: var(--mm-text);
	transition: var(--mm-transition-fast);
}

.mm-related__item:hover .mm-related__title { color: var(--mm-text-muted); }

@media (max-width: 600px) {
	.mm-related__item a { flex-direction: column; gap: 4px; }
	.mm-related__date { width: auto; }
}

.mm-comments .comment-meta {
	font-size: 0.78rem;
	color: var(--mm-text-light);
	margin-bottom: 8px;
}

.mm-comments .comment-meta a { color: var(--mm-text-light); }

.mm-comments .comment-content { font-size: 0.92rem; line-height: 1.7; }

/* ---------- 评论表单 ---------- */
.mm-comment-form { margin-top: 32px; }

.mm-comment-form label {
	display: block;
	font-size: 0.85rem;
	color: var(--mm-text-muted);
	margin-bottom: 4px;
}

.mm-comment-form input[type="text"],
.mm-comment-form input[type="email"],
.mm-comment-form input[type="url"],
.mm-comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--mm-border-strong);
	border-radius: var(--mm-radius);
	font-size: 0.9rem;
	font-family: inherit;
	margin-bottom: 14px;
	transition: var(--mm-transition-fast);
	background: var(--mm-bg);
	color: var(--mm-text);
}

.mm-comment-form input:focus,
.mm-comment-form textarea:focus {
	outline: none;
	border-color: var(--mm-text-muted);
}

.mm-comment-form textarea { min-height: 120px; resize: vertical; }

.mm-comment-form input[type="submit"] {
	padding: 10px 26px;
	border: 1px solid var(--mm-text);
	background: var(--mm-text);
	color: var(--mm-bg);
	font-size: 0.86rem;
	font-family: inherit;
	cursor: pointer;
	border-radius: 999px;
	transition: var(--mm-transition-fast);
	letter-spacing: 0.02em;
}

.mm-comment-form input[type="submit"]:hover { opacity: 0.85; }

/* ---------- 归档页 ---------- */
.mm-archive-header { padding: 8px 0 32px; }
.mm-archive-desc { font-size: 0.9rem; color: var(--mm-text-muted); margin-top: 8px; }
.mm-archive-empty { color: var(--mm-text-muted); padding: 40px 0; text-align: center; }

/* 分页 */
.pagination,
.nav-links {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 36px;
	flex-wrap: wrap;
}
.pagination .page-numbers,
.nav-links .page-numbers,
.nav-links a {
	display: inline-block;
	padding: 6px 12px;
	font-size: 0.85rem;
	color: var(--mm-text-muted);
	border: 1px solid var(--mm-border);
	border-radius: var(--mm-radius);
	transition: var(--mm-transition-fast);
	text-decoration: none;
}
.pagination .page-numbers:hover,
.nav-links a:hover { color: var(--mm-text); border-color: var(--mm-border-strong); }
.pagination .current,
.nav-links .current {
	background: var(--mm-text);
	color: var(--mm-bg);
	border-color: var(--mm-text);
}

/* ---------- 页脚 ---------- */
.mm-footer {
	text-align: center;
	padding: 44px 0;
	border-top: 1px solid var(--mm-border);
	margin-top: 40px;
}

.mm-footer__text {
	font-size: 0.78rem;
	color: var(--mm-text-light);
	letter-spacing: 0.02em;
}
.mm-footer__text a { color: var(--mm-text-light); }
.mm-footer__text a:hover { color: var(--mm-text-muted); }

/* 页脚自定义文字（备案信息等） */
.mm-footer__extra {
	margin-top: 12px;
	font-size: 0.76rem;
	color: var(--mm-text-light);
	letter-spacing: 0.02em;
	line-height: 1.7;
	word-break: break-all;
}
.mm-footer__extra a { color: var(--mm-text-light); transition: color var(--mm-transition-fast); }
.mm-footer__extra a:hover { color: var(--mm-text-muted); }
.mm-footer__extra:empty { display: none; }

/* ---------- 404 ---------- */
.mm-404 {
	text-align: center;
	padding: 90px 0;
}

.mm-404__code {
	font-size: 5.5rem;
	font-weight: 700;
	color: var(--mm-border);
	line-height: 1;
	margin-bottom: 16px;
	letter-spacing: -0.03em;
}

.mm-404__text {
	color: var(--mm-text-muted);
	margin-bottom: 26px;
	font-size: 0.95rem;
}

.mm-404__home { font-size: 0.88rem; }

/* ---------- 辅助 ---------- */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0.5em 1.5em 1em 0; }
.alignright { float: right; margin: 0.5em 0 1em 1.5em; }

.wp-caption { max-width: 100%; margin-bottom: 1.3em; }
.wp-caption-text {
	font-size: 0.8rem;
	color: var(--mm-text-light);
	text-align: center;
	margin-top: 8px;
	letter-spacing: 0.02em;
}

.gallery { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.3em; }
.gallery-item { flex: 1 1 auto; }

.sticky { }
.bypostauthor { }

/* 页面加载淡入 */
body { animation: mmBodyIn 0.4s var(--mm-ease) both; }
@keyframes mmBodyIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 600px) {
	html { font-size: 16px; }
	.mm-container { padding: 0 22px; }
	.mm-header { padding: 44px 0 20px; }
	.mm-header__logo-img { width: 60px; height: 60px; }
	.mm-header__name { font-size: 1.3rem; }
	.mm-action-btn { --btn-size: 34px; }
	.mm-header__actions { margin-top: 22px; }
	.mm-social-btn { --btn-size: 34px; }
	.mm-social-btn__text { font-size: 0.68rem; }
	.mm-search-form__input { font-size: 1.15rem; }
	.mm-search-form { flex-direction: column; }
	.mm-search-form__submit { width: 100%; }
	.mm-search-overlay { padding-top: 16vh; }
	.mm-search-overlay__close { top: -48px; }
	.mm-latest { padding: 26px 20px 28px; }
	.mm-latest__label { margin-bottom: 20px; }
	.mm-latest__item { padding: 20px 0; }
	.mm-latest__thumb { margin-bottom: 14px; }
	.mm-latest__title { font-size: 1.05rem; }
	.mm-article { padding: 4px 0 48px; }
	.mm-article__body { padding: 26px 20px 28px; }
	.mm-article__title { font-size: 1.35rem; }
	.mm-timeline__item a { gap: 10px; padding: 9px 4px; }
	.mm-timeline__date { width: 38px; font-size: 0.74rem; }
	.mm-timeline__title { font-size: 0.9rem; }
	.mm-pagination { margin-top: 28px; }
	.mm-pagination .page-numbers a,
	.mm-pagination .page-numbers span,
	.mm-pagination .page-numbers .prev,
	.mm-pagination .page-numbers .next,
	.mm-pagination .page-numbers .dots { width: 36px; height: 36px; font-size: 0.8rem; }
	.mm-404__code { font-size: 3.2rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
