:root {
	--primary: #3459e6;
	--primary-dark: #2a47b8;
	--primary-soft: rgba(52, 89, 230, 0.1);
	--danger: #d92828;
	--text: #495057;
	--heading: #212529;
	--muted: #6c757d;
	--line: #dee2e6;
	--line-soft: rgba(0, 0, 0, 0.06);
	--panel-bg: rgba(255, 255, 255, var(--panel, 0.9));
	--radius: 0.5rem;
	--shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.16);
	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	--top-gap: var(--wp-admin--admin-bar--height, 0px);
	color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.sanv-body {
	min-height: 100vh;
	background-color: #5b6b7f;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	color: var(--text);
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.5;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }

.boot {
	margin: 20vh auto;
	text-align: center;
	color: #fff;
	font-size: 1.1rem;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* ---------- 容器 ---------- */
.desk {
	width: min(1680px, 92%);
	margin: 0 auto;
	padding: 0 0 24px;
}
body[data-frame="narrow"] .desk { width: min(1140px, 85%); }

/* ---------- 顶部 ---------- */
.top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 0 16px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-size: 1.05rem;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
	min-width: 0;
}
.brand:hover { color: #fff; }
.brand img {
	width: 40px;
	height: 40px;
	border-radius: 0.5rem;
	box-shadow: var(--shadow);
	flex: none;
}
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
.nav-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border: 0;
	border-radius: 0.375rem;
	background: transparent;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
	transition: background 0.15s ease;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.18); }
.nav-link span { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unread {
	display: inline-grid;
	place-items: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--danger);
	color: #fff;
	font-style: normal;
	font-size: 11px;
	text-shadow: none;
}

/* ---------- 广告与搜索 ---------- */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	margin-bottom: 16px;
}
.ads { display: flex; gap: 8px; min-width: 0; }
.ad {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	min-width: 0;
	padding: 0 12px;
	border-radius: 0.375rem;
	background: rgb(222 226 230 / 45%);
	color: var(--heading);
	text-shadow: 0 0 4px #fff;
	backdrop-filter: blur(6px);
	transition: background 0.15s ease;
}
.ad:hover { background: rgb(255 255 255 / 70%); color: var(--heading); }
.ad img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.ad span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.search {
	display: flex;
	align-items: stretch;
	height: 44px;
	border-radius: 0.375rem;
	background: #fff;
	box-shadow: var(--shadow);
	overflow: hidden;
}
.search select {
	flex: none;
	border: 0;
	border-right: 1px solid var(--line);
	background: #f8f9fa;
	padding: 0 10px;
	color: var(--heading);
	cursor: pointer;
}
.search input {
	flex: 1;
	min-width: 0;
	border: 0;
	padding: 0 12px;
	background: transparent;
	color: var(--heading);
}
.search input:focus { outline: none; }
.search:focus-within { box-shadow: 0 0 0 0.2rem rgba(52, 89, 230, 0.35); }
.search .btn-primary { border-radius: 0; padding: 0 18px; }

/* ---------- 按钮 ---------- */
.btn-primary, .btn-light, .btn-danger-text {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 1px solid transparent;
	border-radius: 0.375rem;
	padding: 7px 14px;
	white-space: nowrap;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-light { background: #f8f9fa; border-color: var(--line); color: var(--heading); }
.btn-light:hover { background: #e9ecef; }
.btn-danger-text { background: transparent; color: var(--danger); padding-left: 0; padding-right: 0; }
.btn-danger-text:hover { text-decoration: underline; }
.link-login {
	margin: 0 6px;
	padding: 0 2px 2px;
	border: 0;
	border-bottom: 1px solid var(--danger);
	background: transparent;
	color: var(--primary);
}

/* ---------- 面板 ---------- */
.panel {
	position: relative;
	margin-bottom: 16px;
	padding: 24px 24px 40px;
	border-radius: var(--radius);
	background: var(--panel-bg);
	box-shadow: var(--shadow);
	backdrop-filter: blur(8px);
}
.panel.mine { z-index: 2; }
.welcome {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 24px;
}
.welcome img { border-radius: 4px; border: 1px solid #fff; flex: none; }
.welcome p { margin: 0; color: var(--heading); }

/* 我的书签：横向目录标签 */
.tabs-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}
.tabs { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.tab-wrap { display: inline-flex; align-items: center; }
.tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border: 1px solid transparent;
	border-radius: 0.375rem;
	background: transparent;
	color: var(--heading);
	transition: background 0.15s ease, color 0.15s ease;
}
.tab small { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.tab:hover { background: var(--primary-soft); color: var(--primary); }
.tab.is-on { background: var(--primary); color: #fff; }
.tab.is-on small { color: rgba(255, 255, 255, 0.75); }
.tab-add { color: var(--muted); border-style: dashed; border-color: var(--line); }
.tab-move {
	border: 0;
	background: transparent;
	color: var(--primary);
	padding: 4px;
}
.folder-remark { margin: -6px 0 14px; color: var(--muted); }
.menu-wrap { position: relative; display: flex; align-items: center; gap: 8px; flex: none; }
.edit-flag {
	padding: 2px 8px;
	border-radius: 999px;
	background: #fff3cd;
	color: #8a6100;
	font-size: 12px;
}
.gear {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 0.375rem;
	background: #fff;
	color: var(--heading);
	font-size: 16px;
}
.gear:hover, .gear[aria-expanded="true"] { color: var(--primary); border-color: var(--primary); }
.menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 40;
	width: 256px;
	padding: 6px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-lg);
}
.menu-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px 10px;
	border: 0;
	border-radius: 0.375rem;
	background: transparent;
	color: var(--heading);
	text-align: left;
}
.menu-item > span:not(.switch) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item .bi { color: var(--muted); }
.menu-item:hover { background: var(--primary-soft); color: var(--primary); }
.menu-item:hover .bi { color: var(--primary); }
.menu-item.danger, .menu-item.danger .bi { color: var(--danger); }
.menu-item.danger:hover { background: rgba(217, 40, 40, 0.08); }
.switch {
	position: relative;
	flex: none;
	width: 30px;
	height: 16px;
	border-radius: 999px;
	background: #ced4da;
	transition: background 0.15s ease;
}
.switch::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.15s ease;
}
.switch.is-on { background: var(--primary); }
.switch.is-on::after { transform: translateX(14px); }
.menu-cols {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 10px;
	color: var(--heading);
}
.menu-cols span { flex: 1; white-space: nowrap; }
.menu-cols button {
	width: 26px;
	height: 26px;
	border: 1px solid var(--line);
	border-radius: 0.25rem;
	background: #fff;
	font-size: 12px;
}
.menu-cols button.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.fab {
	position: absolute;
	right: 18px;
	bottom: 14px;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--primary);
	color: #fff;
	font-size: 18px;
	box-shadow: 0 0.25rem 0.75rem rgba(52, 89, 230, 0.45);
	transition: transform 0.15s ease, background 0.15s ease;
}
.fab:hover { background: var(--primary-dark); transform: rotate(90deg); }

/* 公共导航：左侧分类 + 右侧内容 */
.pub {
	display: grid;
	grid-template-columns: 168px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	padding-bottom: 24px;
}
.pub-nav {
	position: sticky;
	top: calc(var(--top-gap) + 12px);
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - var(--top-gap) - 24px);
}
.pub-nav h3 {
	margin: 0 0 10px;
	padding: 0 12px 10px;
	border-bottom: 1px solid var(--line);
	color: var(--heading);
	font-size: 1.1rem;
	font-weight: 600;
}
.pub-nav nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}
.pub-link {
	padding: 9px 12px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--heading);
	text-align: left;
	transition: background 0.15s ease, color 0.15s ease;
}
.pub-link:hover, .pub-link.is-on { background: var(--primary); color: #fff; }
.pub-thanks { margin: 12px 0 0; padding: 10px 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.pub-main { min-width: 0; }
.pub-tools { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.sec { margin-bottom: 18px; }
.sec-title {
	margin: 0 0 8px;
	padding-left: 10px;
	border-left: 3px solid var(--primary);
	color: var(--heading);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
}
.hot-tiles {
	display: grid;
	grid-template-columns: repeat(9, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--line);
}
.hot-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 10px 4px;
	border-radius: var(--radius);
	color: var(--heading);
	text-align: center;
	transition: background 0.15s ease, transform 0.15s ease;
}
.hot-tile:hover { background: rgba(255, 255, 255, 0.7); color: var(--danger); transform: translateY(-2px); }
.hot-tile span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 网址条目 ---------- */
.grid {
	display: grid;
	grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr));
	gap: 2px 12px;
}
.card {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
	padding: 5px 6px;
	border-radius: 0.375rem;
	cursor: pointer;
	transition: background 0.12s ease;
}
.card:hover { background: rgba(52, 89, 230, 0.07); }
.card-name::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.card-edit {
	position: relative;
	z-index: 2;
	flex: none;
	width: 22px;
	height: 22px;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: #fff;
	color: var(--primary);
	font-size: 11px;
}
.card.can-edit { cursor: grab; outline: 1px dashed rgba(52, 89, 230, 0.35); outline-offset: -1px; }
.card.is-dragging { opacity: 0.4; }
.card.is-locked .card-name { color: var(--muted); }
.mark {
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 3px;
	display: grid;
	place-items: center;
	border-radius: 3px;
	background: var(--primary-soft);
	color: var(--primary);
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	overflow: hidden;
}
.mark:has(img) { background: transparent; }
.mark .favicon { width: 16px; height: 16px; object-fit: contain; }
.mark-lg { width: 48px; height: 48px; margin: 0; border-radius: 12px; font-size: 20px; }
.mark-lg .favicon { width: 48px; height: 48px; }
.card-body { flex: 1; min-width: 0; }
.card-name {
	display: block;
	width: 100%;
	overflow: hidden;
	white-space: nowrap;
	padding: 0;
	border: 0;
	background: none;
	color: var(--heading);
	line-height: 22px;
	text-align: left;
	text-decoration: none;
}
.card:hover .card-name { color: rgb(217, 40, 40); }
.card:hover .card-title-text { text-decoration: underline; text-underline-offset: 3px; }
.card-name.is-red { color: var(--danger); }
.card-name.is-bold { font-weight: 700; }
.card-title-text { display: inline-block; white-space: nowrap; vertical-align: top; }
.card-name.is-overflow:hover .card-title-text,
.card-name.is-overflow:focus-visible .card-title-text {
	animation: sanv-title-slide var(--dur, 3s) ease-in-out infinite alternate;
}
@keyframes sanv-title-slide {
	from { transform: translateX(0); }
	to { transform: translateX(var(--shift, 0)); }
}
.remark {
	margin: 0 0 2px;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.notes { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 2px; }
.note { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.badge {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--primary-soft);
	color: var(--primary);
	font-size: 11px;
	line-height: 18px;
}
.badge.warn { background: rgba(217, 40, 40, 0.1); color: var(--danger); }
.empty {
	margin: 0;
	padding: 18px 4px;
	color: var(--muted);
}

/* ---------- 分享页 ---------- */
.share-head { margin-bottom: 16px; }
.share-head h2 { margin: 0; color: var(--heading); font-size: 1.35rem; font-weight: 600; }
.share-head p { margin: 6px 0 0; color: var(--muted); white-space: pre-line; }
.gate { max-width: 460px; margin: 10vh auto; padding: 28px; }
.gate h2 { margin: 0 0 8px; color: var(--heading); font-size: 1.25rem; }

/* ---------- 页脚 ---------- */
.foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	padding: 8px 0 16px;
	color: rgba(255, 255, 255, 0.85);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}
.foot a {
	color: rgba(255, 255, 255, 0.8);
	padding: 4px 1px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
.foot a:hover { color: #fff; border-bottom-color: #fff; }
.foot a:last-child { margin-left: auto; }

/* ---------- 弹窗 / 右侧抽屉 ---------- */
.sheet {
	width: min(520px, calc(100vw - 24px));
	max-height: calc(100vh - 48px);
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	background: #fff;
	color: var(--text);
	box-shadow: var(--shadow-lg);
}
.sheet::backdrop { background: rgba(0, 0, 0, 0.4); }
.sheet.drawer {
	margin: 1.5rem 0 0 auto;
	width: min(520px, 100vw);
	height: calc(100vh - 1.5rem);
	max-height: none;
	border-radius: var(--radius) 0 0 0;
	animation: sanv-drawer 0.22s ease-out;
}
@keyframes sanv-drawer {
	from { transform: translateX(40px); opacity: 0; }
	to { transform: translateX(0); opacity: 1; }
}
.sheet-form { display: flex; flex-direction: column; max-height: inherit; height: 100%; }
.sheet-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--line);
}
.sheet-head h2 { margin: 0; color: var(--heading); font-size: 1.15rem; font-weight: 600; }
.sheet-close {
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 0.375rem;
	background: transparent;
	color: var(--muted);
}
.sheet-close:hover { background: #f1f3f5; color: var(--heading); }
.sheet-body { flex: 1; overflow-y: auto; padding: 8px 20px 12px; }
.sheet-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	padding: 12px 20px;
	border-top: 1px solid var(--line);
}
.field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.field > span { color: var(--heading); font-weight: 500; }
.field input, .field textarea, .field select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ced4da;
	border-radius: 0.375rem;
	background: #fff;
	color: var(--heading);
}
.field input:focus, .field textarea:focus, .field select:focus,
.memo-editor:focus {
	outline: none;
	border-color: #9aacf3;
	box-shadow: 0 0 0 0.2rem rgba(52, 89, 230, 0.25);
}
.checks {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	max-height: 240px;
	overflow: auto;
	padding: 8px 10px;
	border: 1px solid var(--line);
	border-radius: 0.375rem;
}
.checks.inline { border: 0; padding: 0; margin: 12px 0; }
.check { display: inline-flex; align-items: center; gap: 6px; color: var(--heading); }
.check input { accent-color: var(--primary); }
.check-label { flex: 0 0 100%; margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-2 .field { margin: 12px 0 0; }
.form-error { min-height: 1em; margin: 6px 0; color: var(--danger); }
.form-error:empty { margin: 0; }
.meta { color: var(--muted); }

.notice {
	margin: 12px 0;
	padding: 10px 12px;
	border-radius: 0.375rem;
	background: #f1f4fe;
	color: var(--heading);
}
.notice .bi { color: var(--primary); }
.msg { padding: 10px 0; border-bottom: 1px solid var(--line); }
.msg p { margin: 0 0 4px; color: var(--heading); }
.msg.is-new p { font-weight: 600; }
.msg.is-new p::before { content: "● "; color: var(--danger); }
.msg small { color: var(--muted); }
.sheet-body > .btn-light { margin-top: 12px; }

.memo-list { display: flex; flex-direction: column; gap: 4px; max-height: 32vh; overflow-y: auto; margin: 8px 0 12px; }
.memo-item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 10px;
	border: 1px solid var(--line);
	border-radius: 0.375rem;
	background: #fff;
	color: var(--heading);
	text-align: left;
}
.memo-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.memo-item small { flex: none; color: var(--muted); font-size: 11px; }
.memo-item:hover { border-color: var(--primary); }
.memo-item.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.memo-item.is-on small { color: rgba(255, 255, 255, 0.75); }
.memo-new { justify-content: flex-start; color: var(--primary); border-style: dashed; }
.memo-editor {
	width: 100%;
	min-height: 260px;
	padding: 12px;
	border: 1px solid #ced4da;
	border-radius: 0.375rem;
	resize: vertical;
	line-height: 1.7;
	color: var(--heading);
}
.memo-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }

.skin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.skin {
	position: relative;
	height: 84px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: var(--radius);
	background: #ced4da center / cover no-repeat;
	overflow: hidden;
}
.skin span {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 4px 6px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
	color: #fff;
	font-size: 12px;
	text-align: left;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.skin:hover { border-color: rgba(52, 89, 230, 0.5); }
.skin.is-on { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(52, 89, 230, 0.3); }
.skin-label { margin: 16px 0 4px; color: var(--heading); }
#skin-trans { width: 100%; accent-color: var(--primary); }
.sheet .menu-cols { padding: 8px 0; }

.me-list { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.hello { margin: 8px 0 12px; color: var(--heading); font-size: 1rem; }

.toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 0.375rem;
	background: rgba(33, 37, 41, 0.92);
	color: #fff;
	opacity: 0;
	pointer-events: none;
	transform: translateX(-50%) translateY(10px);
	transition: 0.16s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 普通页面 ---------- */
.plain-page {
	max-width: 760px;
	margin: 8vh auto;
	padding: 28px 32px;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
}
.plain-page h1 { color: var(--heading); }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; }
.prose { font-size: 15px; line-height: 1.8; }

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) {
	.hot-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
	.desk, body[data-frame="narrow"] .desk { width: calc(100% - 24px); }
	.hero { grid-template-columns: 1fr; }
	.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.pub { grid-template-columns: 1fr; gap: 12px; }
	.pub-nav { position: static; max-height: none; }
	.pub-nav h3 { padding: 0 0 8px; }
	.pub-nav nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
	.pub-link { flex: none; }
	.pub-thanks { display: none; }
}
@media (max-width: 767px) {
	.top { flex-direction: column; align-items: flex-start; padding-top: 16px; }
	.top-nav { justify-content: flex-start; margin-left: -12px; }
	.nav-link span { display: none; }
	.nav-link .unread { display: inline-grid; }
	.ads { flex-direction: column; }
	.ad { flex: none; }
	.panel { padding: 16px 14px 56px; }
	.pub { padding-bottom: 16px; }
	.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hot-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.tab { padding: 6px 10px; }
	.edit-flag { display: none; }
	.search .btn-primary span { display: none; }
	.row-2 { grid-template-columns: 1fr; }
	.skin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sheet.drawer { margin-top: 0; height: 100vh; border-radius: 0; }
	.foot a:last-child { margin-left: 0; }
}
@media (max-width: 479px) {
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.toast, .sheet.drawer, .fab, .hot-tile { transition: none; animation: none; }
	.card-title-text { animation: none !important; }
}
