@charset "UTF-8";
/* ==========================================================================
   花粉同城 · 公共层（base.css）
   安阳同城花粉俱乐部线上据点 ｜ 墨泓斋 huafans 子站
   设计令牌 + 基础组件。字体只走站内自持子集（font/font.css）与系统字体栈，
   不引任何外部字体服务；字重只用 400 / 700 两档（261016-01）。
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
	/* 原生控件（滚动条、表单、日期选择器等）跟随外观档位 */
	color-scheme: light;

	/* 双声部配色：花粉红＝品牌信号，安阳青铜金＝地方性标记 */
	--red: #C8102E;
	--red-deep: #9B0A22;
	--red-soft: rgba(200, 16, 46, .1);
	--bronze: #A9823F;
	--bronze-soft: rgba(169, 130, 63, .12);

	--bg: #FFFFFF;
	--surface: var(--mz-surface-card);
	--surface-2: var(--mz-surface-comp);
	--line: #E3E6EB;
	--line-strong: #CDD3DB;

	--text: #15181D;
	--text-2: #4A5260;
	--text-3: #79828F;

	--ok: #167A4C;
	--warn: #A2691A;

	--radius: 14px;
	--radius-sm: 9px;
	--shadow: 0 1px 2px rgba(16, 20, 28, .05), 0 8px 24px rgba(16, 20, 28, .06);
	--shadow-lg: 0 2px 4px rgba(16, 20, 28, .06), 0 18px 48px rgba(16, 20, 28, .12);

	/* 字体族令牌（261016-01）：三条族名一律以 HarmonyOS Sans SC 打头，指向站内自持子集
	   （见 font/font.css：只有覆盖最全的 Regular 400 参与排版，加粗由浏览器合成）。
	   字重只有 400 / 700 两档——子集缺号的字按正常回退落到后面的系统字体栈；
	   --mono 也走 Harmony，保证全站没有一处漏换；真等宽只留给代码块，走 --code。 */
	--sans: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
	--serif: "HarmonyOS Sans SC", "Songti SC", "Noto Serif SC", "SimSun", serif;
	--mono: "HarmonyOS Sans SC", "PingFang SC", ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
	--code: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

	--wrap: 1120px;
	--header-h: 64px;
}

[data-theme="dark"] {
	color-scheme: dark;

	--red: #F2495F;
	--red-deep: #FF6C7E;
	--red-soft: rgba(242, 73, 95, .16);
	--bronze: #C9A465;
	--bronze-soft: rgba(201, 164, 101, .16);

	--bg: #0E1116;
	--surface: var(--mz-surface-card);
	--surface-2: var(--mz-surface-comp);
	--line: #262C35;
	--line-strong: #333A45;

	--text: #EDF0F5;
	--text-2: #B7C0CC;
	--text-3: #848E9C;

	--ok: #4CC38A;
	--warn: #D9A445;

	--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
	--shadow-lg: 0 2px 6px rgba(0, 0, 0, .45), 0 22px 56px rgba(0, 0, 0, .5);
}

/* 主站沉默模式：全站灰白 */
html.mz-silence {
	filter: grayscale(1);
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	/* 可读性基线（261016-01）：正文 16px、行高 1.8、字距 .012em、数字等宽 */
	font-size: 16px;
	line-height: 1.8;
	letter-spacing: .012em;
	font-variant-numeric: tabular-nums;
	/* 只允许字重合成：站内只有一个 400 字形，700 全由浏览器加粗笔画而来，
	     字形来源唯一；字形倾斜（italic/oblique）一律不合成，全站 0 处斜体声明。 */
	font-synthesis: weight;
	-webkit-font-smoothing: antialiased;
}

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

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

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

button {
	cursor: pointer;
}

h1, h2, h3, h4 {
	margin: 0;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -.01em;
	text-wrap: balance;
}

p {
	margin: 0;
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

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

::selection {
	background: var(--red-soft);
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 20px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 99;
	background: var(--surface);
	padding: 10px 16px;
	border-radius: 0 0 var(--radius-sm) 0;
}

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

/* ---------- 3. 文字工具 ---------- */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--text-3);
}

.eyebrow::before {
	content: "";
	width: 16px;
	height: 1px;
	background: var(--line-strong);
}

.display {
	font-size: clamp(2.1rem, 6.2vw, 3.5rem);
	/* 字重上限 700：站内只让 Regular 参与排版，加粗由浏览器合成，禁 800/900（261016-01） */
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.1;
	text-wrap: balance;
}

.display em {
	font-style: normal;
	color: var(--red);
}

.lede {
	color: var(--text-2);
	font-size: 1.02rem;
	max-width: 44ch;
}

.muted {
	color: var(--text-3);
}

.mono {
	font-family: var(--code);
	font-size: .82em;
	letter-spacing: .02em;
}

/* ---------- 4. 区块与分隔 ---------- */
.section {
	padding: 64px 0;
}

.section + .section {
	border-top: 1px solid var(--line);
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 28px;
}

.section-head h2 {
	font-size: 1.5rem;
}

.section-head .section-note {
	color: var(--text-3);
	font-size: .88rem;
}

.section-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .9rem;
	color: var(--red);
	font-weight: 700;
}

.section-more:hover {
	color: var(--red-deep);
}

.band {
	background: var(--surface-2);
}

/* ---------- 5. 按钮 ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: .95rem;
	font-weight: 700;
	line-height: 1;
	transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn:active {
	transform: translateY(0);
}

.btn[disabled],
.btn[aria-disabled="true"] {
	opacity: .55;
	cursor: not-allowed;
	transform: none;
}

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

.btn-primary:hover {
	background: var(--red-deep);
}

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

.btn-ghost:hover {
	border-color: var(--red);
	color: var(--red);
}

.btn-quiet {
	background: var(--surface-2);
	color: var(--text-2);
}

.btn-quiet:hover {
	color: var(--text);
}

.btn-sm {
	padding: 8px 14px;
	font-size: .85rem;
}

.btn-block {
	width: 100%;
}

/* ---------- 6. 站点头部 ----------
	页头外壳、品牌位、主导航、动作区的形状与配色统一由
	/common/css/mz_theme.css 提供（四站同一枚悬浮胶囊），这里不再重复定义。
	本文件只保留本站独有的部件：外观三档切换、用户胶囊、抽屉分组。 */


.mz-nav a[aria-current="page"] {
	color: var(--red);
	font-weight: 700;
}

.mz-nav a[aria-current="page"]::after {
	content: "";
	position: absolute;
	left: 13px;
	right: 13px;
	bottom: 2px;
	height: 2px;
	border-radius: 2px;
	background: var(--red);
}

.mz-nav .nav-out::after {
	content: "↗";
	font-size: .72em;
	margin-left: 4px;
	color: var(--text-3);
}

.mz-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.mz-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--surface);
	color: var(--text-2);
	transition: border-color .16s ease, color .16s ease;
}

.mz-iconbtn:hover {
	border-color: var(--red);
	color: var(--red);
}

/* 外观三档切换：浅色 / 深色 / 跟随系统 */
.mz-theme {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 2px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
}

.mz-theme-opt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--text-3);
	transition: background-color .16s ease, color .16s ease;
}

.mz-theme-opt:hover {
	background: var(--surface-2);
	color: var(--text);
}

.mz-theme-opt[aria-pressed="true"] {
	background: var(--red);
	color: #FFF;
}

.mz-theme-opt[aria-pressed="true"]:hover {
	background: var(--red-deep);
	color: #FFF;
}

.mz-theme-opt:focus-visible {
	outline: 2px solid var(--red);
	outline-offset: 1px;
}

/* 抽屉内的带文字版：三档平铺一行 */
.mz-theme-labeled {
	display: flex;
	width: 100%;
	padding: 3px;
}

.mz-theme-labeled .mz-theme-opt {
	flex: 1 1 0;
	width: auto;
	height: 34px;
	font-size: .84rem;
	color: var(--text-2);
}

.mz-user {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px 6px 6px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	font-size: .88rem;
	max-width: 180px;
}

.mz-user:hover {
	border-color: var(--line-strong);
}

.mz-avatar {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--surface-2);
	flex: 0 0 auto;
}

.mz-avatar-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.mz-user span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mz-burger {
	display: none;
}

/* 二级导航条（.mz-subbar / .mz-subnav）已随页头统一而取消：
   本站导航现在直接放在页头胶囊里，这两组样式没有任何元素引用了，
   一并删除，避免以后再被误用。 */


.badge-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	margin-left: 6px;
	border-radius: 999px;
	background: var(--red);
	color: #fff;
	font-family: var(--mono);
	font-size: 10px;
	line-height: 1;
	vertical-align: 2px;
}

.badge-dot[hidden] {
	display: none;
}

/* ---------- 7. 移动抽屉 ---------- */
/* 261101：抽屉是菜单浮层，取浮层档（mz_surface.css），不再跟着卡片浓度走 */
.mz-drawer {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 60;
	width: min(340px, 88vw);
	height: 100%;
	overflow-y: auto;
	background: var(--mz-surface-float, var(--surface));
	-webkit-backdrop-filter: blur(var(--mz-blur-float, 48px)) saturate(var(--mz-blur-float-sat, 180%));
	backdrop-filter: blur(var(--mz-blur-float, 48px)) saturate(var(--mz-blur-float-sat, 180%));
	border-left: 1px solid var(--line);
	box-shadow: var(--shadow-lg);
	padding: 20px;
	transform: translateX(102%);
	transition: transform .24s ease;
}

.mz-drawer[data-open="true"] {
	transform: none;
}

.mz-scrim {
	position: fixed;
	inset: 0;
	z-index: 55;
	background: rgba(10, 13, 18, .5);
	opacity: 0;
	pointer-events: none;
	transition: opacity .24s ease;
}

.mz-scrim[data-open="true"] {
	opacity: 1;
	pointer-events: auto;
}

.mz-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.mz-drawer-group + .mz-drawer-group {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.mz-drawer-group h3 {
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--text-3);
	margin-bottom: 8px;
}

.mz-drawer-group a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px 2px;
	border-bottom: 1px dashed var(--line);
	font-size: .95rem;
	color: var(--text-2);
}

.mz-drawer-group a:last-child {
	border-bottom: 0;
}

.mz-drawer-group a[aria-current="page"] {
	color: var(--red);
	font-weight: 700;
}

.mz-drawer-group a .nav-out::after {
	content: " ↗";
	font-size: .8em;
	color: var(--text-3);
}

/* ---------- 8. 卡片 ---------- */
/* 底色 / 描边 / 圆角 / 模糊取全站卡片档（mz_theme.css 第五节），这里只留内边距 */
.card {
	padding: 22px;
}

.card-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.08rem;
	font-weight: 700;
}

.card-text {
	color: var(--text-2);
	font-size: .93rem;
}

.card-rule {
	height: 1px;
	background: var(--line);
	margin: 16px 0;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 11px;
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 700;
	line-height: 1.5;
}

.badge-bronze {
	background: var(--bronze-soft);
	color: var(--bronze);
	border: 1px solid color-mix(in srgb, var(--bronze) 34%, transparent);
}

.badge-red {
	background: var(--red-soft);
	color: var(--red);
}

.badge-plain {
	background: var(--surface-2);
	color: var(--text-3);
}

/* ---------- 10. 推送线（feed） ---------- */
.feed {
	display: flex;
	flex-direction: column;
}

.feed-item {
	border-bottom: 1px solid var(--line);
}

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

.feed-head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	width: 100%;
	padding: 18px 4px;
	color: inherit;
	text-decoration: none;
	transition: background-color .16s ease;
}

.feed-head:hover {
	background: var(--surface-2);
}

.feed-item:hover .feed-title {
	color: var(--red);
}

/* 列表缩略图：有封面出图；没有封面才退化成文字方块（兜底样式，不是常态） */
.feed-thumb {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: var(--radius-sm);
	object-fit: cover;
	background: var(--surface-2);
}

.feed-thumb.is-text {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	color: var(--text-3);
	font-size: 19px;
	font-weight: 700;
}

.feed-main {
	flex: 1 1 auto;
	min-width: 0;
}

.feed-title {
	display: block;
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.5;
}

.feed-item[data-pinned="true"] .feed-title {
	font-weight: 700;
}

.feed-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 7px;
	font-size: .78rem;
	color: var(--text-3);
}

.feed-meta .tag {
	display: inline-flex;
	align-items: center;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: .74rem;
	font-weight: 700;
	background: var(--surface-2);
	color: var(--text-2);
}

.feed-meta .tag-local {
	background: var(--red-soft);
	color: var(--red);
}

.feed-meta .tag-lit {
	background: var(--bronze-soft);
	color: var(--bronze);
}

.feed-meta .tag-pin {
	background: var(--red);
	color: #fff;
}

.feed-desc {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 8px;
	font-size: .9rem;
	color: var(--text-2);
}

.feed-cta {
	flex: 0 0 auto;
	align-self: center;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .08em;
	color: var(--text-3);
	white-space: nowrap;
}

.feed-item:hover .feed-cta {
	color: var(--red);
}

/* 卡片布局 */
.feed-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px;
}

.feed-card-item {
	display: flex;
	flex-direction: column;
	background: var(--mz-surface-card);
	border: 1px solid var(--mz-line);
	border-radius: var(--mz-radius-l);
	box-shadow: var(--mz-shadow);
	-webkit-backdrop-filter: blur(var(--mz-blur)) saturate(var(--mz-blur-sat));
	backdrop-filter: blur(var(--mz-blur)) saturate(var(--mz-blur-sat));
	overflow: hidden;
}

.feed-card-item:hover {
	border-color: color-mix(in srgb, var(--red) 38%, var(--line));
}

.feed-card {
	display: flex;
	flex-direction: column;
	background: none;
	border: 0;
	border-radius: 0;
	overflow: hidden;
	text-align: left;
	padding: 0;
	color: inherit;
	text-decoration: none;
}

.feed-card:hover .feed-card-title {
	color: var(--red);
}

.feed-card-cover {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: var(--surface-2);
}

/* 无封面时的卡片兜底：同一块位置放频道名的文字方块，卡片高度不会跳 */
.feed-card-cover.is-text {
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: 1px solid var(--line);
	color: var(--text-3);
	font-size: .95rem;
	font-weight: 700;
	letter-spacing: .1em;
}

.feed-card-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 18px 20px;
}

.feed-card-title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5;
}

/* ---------- 11. 空态 ---------- */
.empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 46px 20px;
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius);
	text-align: center;
	color: var(--text-3);
}

.empty strong {
	color: var(--text);
	font-size: 1rem;
}

.empty p {
	font-size: .88rem;
	max-width: 46ch;
}

.empty .empty-key {
	width: 42px;
	height: 42px;
	stroke: var(--text-3);
	fill: none;
	stroke-width: 1.6;
}

/* ---------- 12. 表单 ---------- */
.field {
	display: block;
	margin-bottom: 18px;
}

.field-label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 7px;
	font-size: .88rem;
	font-weight: 700;
}

.field-label .req {
	color: var(--red);
}

.field-label .count {
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 400;
	color: var(--text-3);
}

.field-label .count[data-over="true"] {
	color: var(--red);
}

.input,
.textarea {
	display: block;
	width: 100%;
	padding: 12px 14px;
	background: var(--bg);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	font-size: .95rem;
	transition: border-color .16s ease, box-shadow .16s ease;
}

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

.textarea {
	min-height: 150px;
	resize: vertical;
	line-height: 1.75;
}

.field-hint {
	margin-top: 6px;
	font-size: .8rem;
	color: var(--text-3);
}

.field-error {
	margin-top: 6px;
	font-size: .82rem;
	color: var(--red);
}

.field-error[hidden] {
	display: none;
}

.field[data-invalid="true"] .input,
.field[data-invalid="true"] .textarea {
	border-color: var(--red);
}

.form-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 22px;
}

/* 结果卡 */
.result {
	border: 1px solid var(--line);
	border-left: 3px solid var(--ok);
	border-radius: var(--radius);
	padding: 20px 22px;
	background: var(--surface);
}

.result[data-kind="error"] {
	border-left-color: var(--red);
}

.result h3 {
	font-size: 1.05rem;
	margin-bottom: 6px;
}

.result .result-id {
	font-family: var(--mono);
	font-size: .8rem;
	color: var(--text-3);
	word-break: break-all;
}

/* ---------- 13. 通知列表 ---------- */
.notice-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.notice {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px 22px;
}

.notice[data-unread="true"] {
	border-color: color-mix(in srgb, var(--red) 40%, var(--line));
	box-shadow: var(--shadow);
}

.notice[data-unread="true"]::before {
	content: "";
	position: absolute;
	left: 0;
	top: 18px;
	bottom: 18px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--red);
}

.notice-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.notice-title {
	font-size: 1.02rem;
	font-weight: 700;
}

.notice-body {
	color: var(--text-2);
	font-size: .93rem;
	white-space: pre-wrap;
	word-break: break-word;
}

.notice-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 14px;
	font-size: .8rem;
	color: var(--text-3);
}

.notice-foot a {
	color: var(--red);
	font-weight: 700;
}

/* ---------- 14. 页脚 ----------
   页脚（.mz-footer / -grid / -col / -bottom）已收进公共层 /common/css/mz_theme.css，
   由 /common/js/mz-shell.js 统一渲染。站级样式不再重写这几条 ——
   原先本站这一份带了 margin-top:40px / padding 48px 等口径，套在公共模板上
   会让底部的备案行与协议行之间空出很大一段，故整段删除。 */

/* ---------- 15. 提示条 ---------- */
.mz-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 80;
	transform: translate(-50%, 20px);
	max-width: min(560px, 90vw);
	padding: 12px 20px;
	border-radius: 999px;
	background: var(--text);
	color: var(--bg);
	font-size: .9rem;
	box-shadow: var(--shadow-lg);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}

.mz-toast[data-show="true"] {
	opacity: 1;
	transform: translate(-50%, 0);
}

.mz-toast[data-kind="error"] {
	background: var(--red);
	color: #fff;
}

/* ---------- 16. 正文排版（文章/文献/协议共用） ---------- */
.prose {
	color: var(--text-2);
	/* 长文基线（261016-01）：行高 2.0、字距 .015em、段距 20px、断行 pretty */
	line-height: 2.0;
	letter-spacing: .015em;
	text-wrap: pretty;
	word-break: break-word;
}

.prose > * + * {
	margin-top: 20px;
}

.prose h2 {
	margin-top: 30px;
	font-size: 1.22rem;
	color: var(--text);
}

.prose h3 {
	margin-top: 24px;
	font-size: 1.05rem;
	color: var(--text);
}

.prose h4 {
	margin-top: 22px;
	font-size: .98rem;
	color: var(--text);
}

.prose p + img,
.prose img + blockquote {
	margin-top: 12px;
}

.prose blockquote + h4 {
	margin-top: 20px;
}

.prose img {
	border-radius: var(--radius-sm);
	max-width: 100%;
	height: auto;
}

/* 源站图片取不到时的降级提示，避免留下破图 */
.img-missing {
	display: inline-block;
	margin: 8px 0;
	padding: 10px 14px;
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius-sm);
	font-size: .82rem;
	color: var(--text-3);
	background: var(--surface-2);
}

.prose a {
	color: var(--red);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.prose ul {
	list-style: none;
}

.prose ul li {
	position: relative;
	padding-left: 20px;
}

.prose ul li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .72em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--bronze);
}

.prose ol {
	list-style: decimal;
	padding-left: 22px;
}

.prose blockquote {
	margin-left: 0;
	padding: 4px 0 4px 16px;
	border-left: 2px solid var(--line-strong);
	color: var(--text-3);
}

.prose code {
	font-family: var(--code);
	font-size: .88em;
	background: var(--surface-2);
	padding: 2px 6px;
	border-radius: 5px;
}

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

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

.prose th {
	background: var(--surface-2);
	color: var(--text);
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 900px) {
	.mz-nav {
		display: none;
	}

	.mz-burger {
		display: inline-flex;
	}

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

@media (max-width: 640px) {
	.section {
		padding: 44px 0;
	}

	.mz-subbar-note {
		display: none;
	}

	.mz-user span {
		display: none;
	}

	.mz-user {
		padding: 6px;
	}

	/* 窄屏头部空间有限：外观三档收进抽屉里的「外观」分组 */
	.mz-actions .mz-theme {
		display: none;
	}

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

/* ---------- 18. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
}

/* ═══════════════════════════════════════════════════════════
   261023-05：并入主站主题（墨色纸底 · 朱砂强调）
   —— 只换令牌（配色 + 圆角），不动版式、类名与脚本钩子。
   ═══════════════════════════════════════════════════════════ */
:root {
	--red: #9B0A22;
	--red-deep: #7D0819;
	--red-soft: rgba(155, 10, 34, .10);
	--bronze: #8A6A3B;
	--bronze-soft: rgba(138, 106, 59, .12);

	--bg: #FBFAF7;
	--surface: var(--mz-surface-card);
	--surface-2: var(--mz-surface-comp);
	--line: #E3E6EB;
	--line-strong: #CFD3D9;

	--text: #15181D;
	--text-2: #4A5260;
	--text-3: #79828F;

	--radius: 16px;
	--radius-sm: 10px;
}

[data-theme="dark"] {
	--red: #E8A0A8;
	--red-deep: #F2BCC2;
	--red-soft: rgba(232, 160, 168, .16);
	--bronze: #C9A465;
	--bronze-soft: rgba(201, 164, 101, .16);

	--bg: #16161A;
	--surface: var(--mz-surface-card);
	--surface-2: var(--mz-surface-comp);
	--line: #2C2B30;
	--line-strong: #383740;

	--text: #E9E6E0;
	--text-2: #B9B4AC;
	--text-3: #8B867E;
}