/* ==========================================================================
   Sanv 2026 — 现代化前端 UI 设计系统
   设计理念：大气通透（Frosted Glass & Atmospheric）、层次分明、高效易用
   ========================================================================== */

:root {
	--sanv-panel: 0.94;
	--sanv-cols: 6;
	--sanv-radius-xl: 20px;
	--sanv-radius-lg: 14px;
	--sanv-radius-md: 10px;
	--sanv-radius-sm: 8px;
	--sanv-brand-primary: #2563eb;
	--sanv-brand-primary-rgb: 37, 99, 235;
	--sanv-brand-hover: #1d4ed8;
	--sanv-hot: #e11d48;
	--sanv-transition: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-bs-theme="light"] {
	--sanv-bg-fallback: #eef2f6;
	--sanv-surface-rgb: 255, 255, 255;
	--sanv-surface-border: rgba(255, 255, 255, 0.68);
	--sanv-inner-border: rgba(15, 23, 42, 0.07);
	--sanv-card-rgb: 248, 250, 252;
	--sanv-card-hover-rgb: 255, 255, 255;
	--sanv-card-bg: rgba(var(--sanv-card-rgb), calc(0.22 + var(--sanv-panel) * 0.5));
	--sanv-card-hover-bg: rgba(var(--sanv-card-hover-rgb), calc(0.50 + var(--sanv-panel) * 0.42));
	--sanv-card-border: rgba(15, 23, 42, 0.06);
	--sanv-card-hover-border: rgba(37, 99, 235, 0.3);
	--sanv-card-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
	--sanv-card-hover-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.13), 0 2px 6px -1px rgba(15, 23, 42, 0.05);
	--sanv-panel-shadow: 0 12px 36px -8px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.04);
	--sanv-text-main: #0f172a;
	--sanv-text-secondary: #475569;
	--sanv-text-muted: #94a3b8;
	--sanv-nav-bg: rgba(241, 245, 249, 0.78);
	--sanv-icon-box-bg: #f1f5f9;
	--sanv-remark-color: #475569;
	--sanv-remark-bg: 241, 245, 249;
	--sanv-ad-bg: rgba(255, 255, 255, 0.82);
	--sanv-chip-bg: rgba(15, 23, 42, 0.44);
	--sanv-chip-border: rgba(255, 255, 255, 0.18);
	--sanv-scrollbar: rgba(15, 23, 42, 0.28);
	--sanv-scrollbar-hover: rgba(15, 23, 42, 0.45);
}

[data-bs-theme="dark"] {
	--sanv-bg-fallback: #0b0f19;
	--sanv-surface-rgb: 17, 24, 39;
	--sanv-surface-border: rgba(255, 255, 255, 0.09);
	--sanv-inner-border: rgba(255, 255, 255, 0.07);
	--sanv-card-rgb: 30, 41, 59;
	--sanv-card-hover-rgb: 51, 65, 85;
	--sanv-card-bg: rgba(var(--sanv-card-rgb), calc(0.28 + var(--sanv-panel) * 0.55));
	--sanv-card-hover-bg: rgba(var(--sanv-card-hover-rgb), calc(0.42 + var(--sanv-panel) * 0.52));
	--sanv-card-border: rgba(255, 255, 255, 0.06);
	--sanv-card-hover-border: rgba(96, 165, 250, 0.4);
	--sanv-card-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
	--sanv-card-hover-shadow: 0 8px 22px -4px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(96, 165, 250, 0.2);
	--sanv-panel-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3);
	--sanv-text-main: #f1f5f9;
	--sanv-text-secondary: #94a3b8;
	--sanv-text-muted: #64748b;
	--sanv-nav-bg: rgba(15, 23, 42, 0.65);
	--sanv-icon-box-bg: rgba(15, 23, 42, 0.78);
	--sanv-remark-color: #cbd5e1;
	--sanv-remark-bg: 15, 23, 42;
	--sanv-ad-bg: rgba(17, 24, 39, 0.8);
	--sanv-chip-bg: rgba(15, 23, 42, 0.6);
	--sanv-chip-border: rgba(255, 255, 255, 0.12);
	--sanv-hot: #fb7185;
	--sanv-scrollbar: rgba(241, 245, 249, 0.32);
	--sanv-scrollbar-hover: rgba(241, 245, 249, 0.5);
}

/* ---------- 全局基础 ---------- */

body.sanv-body {
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: var(--sanv-text-main);
	min-height: 100vh;
	background-color: var(--sanv-bg-fallback);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center top;
	background-attachment: fixed;
	position: relative;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	scrollbar-width: thin;
	scrollbar-color: var(--sanv-scrollbar) transparent;
}

/* 细滚动条，轨道无底色 */
* {
	scrollbar-width: thin;
	scrollbar-color: var(--sanv-scrollbar) transparent;
}

*::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

*::-webkit-scrollbar-track,
*::-webkit-scrollbar-corner {
	background: transparent;
}

*::-webkit-scrollbar-thumb {
	background-color: var(--sanv-scrollbar);
	border-radius: 999px;
	border: 1px solid transparent;
	background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
	background-color: var(--sanv-scrollbar-hover);
}

/* 背景氛围暗角遮罩，保证任何壁纸下顶部与卡片都清晰可读 */
body.sanv-body::before {
	content: "";
	position: fixed;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(10, 15, 28, 0.4) 0%,
		rgba(10, 15, 28, 0.16) 280px,
		rgba(10, 15, 28, 0.24) 100%
	);
	pointer-events: none;
	z-index: 0;
}

#sanv-app {
	position: relative;
	z-index: 1;
	min-height: 100vh;
}

.bi {
	display: inline-block;
	width: 1em;
	height: 1em;
	line-height: 1;
	text-align: center;
	vertical-align: -0.125em;
	flex: none;
}

#sanv-app .boot {
	padding: 6rem 2rem;
	text-align: center;
	color: #fff;
	font-size: 15px;
	letter-spacing: 0.04em;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.min-w-0 {
	min-width: 0;
}

/* ---------- 宽窄屏容器 ---------- */

.sanv-wrap {
	width: 94%;
	max-width: 1480px;
	margin-left: auto;
	margin-right: auto;
	transition: max-width 0.25s ease, width 0.25s ease;
}

@media (min-width: 1200px) {
	.sanv-wrap {
		width: 94%;
		max-width: 1480px;
	}

	body[data-frame="narrow"] .sanv-wrap {
		width: 88%;
		max-width: 1220px;
	}
}

@media (max-width: 767.98px) {
	.sanv-wrap {
		width: 100%!important;
		max-width: 100%!important;
		padding: 5px !important;
	}
}

/* ---------- 玻璃拟态面板 ---------- */

.bg-body.sanv-panel,
.search-box.bg-body {
	background-color: rgba(var(--sanv-surface-rgb), var(--sanv-panel)) !important;
	border: 1px solid var(--sanv-surface-border);
	box-shadow: var(--sanv-panel-shadow);
}

.sanv-panel {
	border-radius: var(--sanv-radius-xl) !important;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* 层叠上下文顺序，确保搜索联想框和下拉菜单不被后续面板遮挡 */
.sanv-head {
	position: relative;
	z-index: 10;
}

.sanv-hero,
.sanv-tools {
	position: relative;
	z-index: 8;
}

#mine-host {
	position: relative;
	z-index: 4;
}

#pub-host,
#share-host {
	position: relative;
	z-index: 2;
}

/* ---------- 顶部导航栏 ---------- */

.sanv-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	column-gap: 0.75rem;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	background: var(--sanv-chip-bg);
	border: 1px solid var(--sanv-chip-border);
	-webkit-backdrop-filter: blur(16px) saturate(1.4);
	backdrop-filter: blur(16px) saturate(1.4);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

@media (max-width: 767.98px) {
	.sanv-head {
		border-radius: var(--sanv-radius-lg);
		padding: 0.55rem 0.75rem;
	}
}

.sanv-brand {
	color: #fff;
	padding: 0.2rem 0.4rem;
	border-radius: 999px;
	flex-shrink: 0;
	transition: opacity var(--sanv-transition), transform var(--sanv-transition);
}

.sanv-brand:hover {
	color: #fff;
	opacity: 0.92;
}

.sanv-brand img {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.sanv-brand-title {
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.02em;
	color: #fff;
	line-height: 1.2;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.sanv-brand-sub {
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.75);
	line-height: 1.2;
	letter-spacing: 0.01em;
}

.sanv-head-start {
	justify-self: start;
	min-width: 0;
}

.sanv-head-center {
	justify-self: center;
	min-width: 0;
}

.sanv-head-end {
	justify-self: end;
	min-width: 0;
}

/* 顶部正中的搜索药丸栏：左右两列等宽，药丸始终落在 Header 几何中心 */
.sanv-head .search-engine-tabs {
	margin: 0;
	flex-shrink: 0;
}

/* 小屏幕隐藏搜索药丸栏 */
@media (max-width: 991.98px) {
	.sanv-head .search-engine-tabs {
		display: none !important;
	}
}

.search-engine-tabs {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.2rem 0.25rem;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.12);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.engine-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.8rem;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	transition: all var(--sanv-transition);
	white-space: nowrap;
}

.engine-pill:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.15);
}

.engine-pill.active {
	color: #fff;
	background: var(--sanv-brand-primary);
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.engine-pill img,
.engine-pill svg {
	width: 15px;
	height: 15px;
	border-radius: 3px;
	flex-shrink: 0;
}

.head-menu {
	display: contents;
}

.head-menu-toggle {
	display: none;
	position: relative;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	line-height: 1;
}

.head-menu-dot {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #e11d48;
}

@media (max-width: 767.98px) {
	.head-nav {
		position: relative;
	}

	.head-menu-toggle {
		display: inline-flex;
	}

	.head-menu {
		display: none;
		position: absolute;
		top: calc(100% + 0.55rem);
		right: 0;
		z-index: 30;
		min-width: 11.5rem;
		padding: 0.4rem;
		border-radius: 14px;
		background: rgba(15, 23, 42, 0.94);
		border: 1px solid rgba(255, 255, 255, 0.12);
		box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
		flex-direction: column;
		align-items: stretch;
		gap: 0.25rem;
	}

	.head-nav.is-open .head-menu {
		display: flex;
	}

	.head-link-frame {
		display: none !important;
	}

	.head-menu .head-link {
		width: 100%;
		justify-content: flex-start;
		padding: 0.55rem 0.75rem !important;
	}

	.head-menu .head-link .link-label {
		display: inline-block !important;
		max-width: none !important;
		opacity: 1 !important;
		margin-left: 0.45rem !important;
	}
}

.head-link {
	display: inline-flex;
	align-items: center;
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.83rem;
	font-weight: 500;
	padding: 0.38rem 0.62rem !important;
	border-radius: 999px !important;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: all var(--sanv-transition);
	white-space: nowrap;
	line-height: 1;
}

.head-link:hover,
.head-link:focus-visible {
	color: #fff;
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.28);
	transform: translateY(-1px);
}

.head-link.head-link-primary {
	background: var(--sanv-brand-primary);
	border-color: rgba(255, 255, 255, 0.22);
	color: #fff;
	box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

.head-link.head-link-primary:hover {
	background: var(--sanv-brand-hover);
}

.head-link .badge {
	font-size: 0.65rem;
	padding: 0.22em 0.45em;
	margin-left: 0.25rem;
}

.head-link .link-icon {
	font-size: 0.95rem;
	line-height: 1;
	display: inline-block;
}

/* 顶部右侧前两个图标：正常宽屏显示文字 */
.head-link-primary-text .link-label {
	display: inline-block;
	margin-left: 0.32rem;
	font-size: 0.82rem;
}

/* 后面的图标：平时仅显示图标，hover 显隐文字节省空间 */
.head-link-compact .link-label {
	display: inline-block;
	max-width: 0;
	opacity: 0;
	margin-left: 0;
	overflow: hidden;
	white-space: nowrap;
	font-size: 0.82rem;
	transition: max-width 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, margin-left 0.2s ease;
}

.head-link-compact:hover .link-label,
.head-link-compact:focus-visible .link-label,
.head-link-compact.is-label-on .link-label {
	max-width: 76px;
	opacity: 1;
	margin-left: 0.32rem;
}

/* 窄屏模式或较窄视口：全部仅显示图标 */
@media (max-width: 991.98px) {
	.sanv-head .head-link .link-label {
		display: none !important;
	}
	.sanv-head .head-link {
		padding: 0.38rem 0.5rem !important;
	}
}

body[data-frame="narrow"] .sanv-head .head-link .link-label {
	display: none !important;
}

body[data-frame="narrow"] .sanv-head .head-link {
	padding: 0.38rem 0.5rem !important;
}

@media (max-width: 767.98px) {
	.sanv-head .head-menu .head-link .link-label,
	body[data-frame="narrow"] .sanv-head .head-menu .head-link .link-label {
		display: inline !important;
		max-width: none !important;
		opacity: 1 !important;
		margin-left: 0.45rem !important;
		overflow: visible !important;
	}
}

.head-link.theme-toggle-btn i {
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.head-link.theme-toggle-btn:hover i {
	transform: rotate(25deg) scale(1.15);
}

/* ---------- 搜索 Hero 区 ---------- */

.sanv-hero {
	max-width: 820px;
	margin: 1.25rem auto 1.35rem;
}

.search-box {
	position: relative;
	border-radius: 16px !important;
	transition: box-shadow var(--sanv-transition), border-color var(--sanv-transition), transform var(--sanv-transition);
}

.search-box:focus-within {
	border-color: rgba(var(--sanv-brand-primary-rgb), 0.55) !important;
	box-shadow: 0 14px 36px -6px rgba(37, 99, 235, 0.22), 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

#smodal {
	z-index: 3;
	position: absolute;
	top: 50%;
	left: 8px;
	transform: translateY(-50%);
}

.engine-trigger-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0.35rem 0.55rem !important;
	border-radius: 10px !important;
	background: transparent;
	border: 0;
	color: var(--sanv-text-main);
	transition: background-color var(--sanv-transition);
}

.engine-trigger-btn:hover,
.engine-trigger-btn[aria-expanded="true"] {
	background-color: var(--sanv-inner-border);
}

.engine-trigger-btn::after {
	display: none !important;
}

.engine-caret {
	font-size: 8px;
	opacity: 0.5;
	margin-left: 2px;
	color: var(--sanv-text-secondary);
	transition: transform var(--sanv-transition);
}

.engine-trigger-btn[aria-expanded="true"] .engine-caret {
	transform: rotate(180deg);
}

.current-engine-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
}

.current-engine-icon img {
	width: 22px;
	height: 22px;
	border-radius: 5px;
	object-fit: cover;
}

/* 下拉菜单：严格从按钮左边缘垂直向下左对齐弹出（图1优化） */
#smodal .dropdown-menu {
	position: absolute;
	top: calc(100% + 8px) !important;
	left: 0 !important;
	right: auto !important;
	transform: none !important;
	min-width: 172px;
	padding: 0.45rem;
	border-radius: 14px;
	border: 1px solid var(--sanv-surface-border);
	background: rgba(var(--sanv-surface-rgb), 0.98);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	box-shadow: 0 14px 38px -6px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.06);
	z-index: 1050;
}

#smodal .dropdown-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0.5rem 0.75rem;
	border-radius: 8px;
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--sanv-text-main);
	transition: all var(--sanv-transition);
	text-align: left;
}

#smodal .dropdown-item:hover {
	background-color: rgba(var(--sanv-brand-primary-rgb), 0.08);
	color: var(--sanv-brand-primary);
}

#smodal .dropdown-item.active {
	background-color: var(--sanv-brand-primary);
	color: #fff;
	font-weight: 600;
}

#smodal .engine-menu-icon {
	width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

#smodal .engine-menu-name {
	flex: 1;
	text-align: left;
}

#stext {
	display: block;
	background: transparent;
	padding: 0.85rem 138px 0.85rem 68px;
	min-height: 52px;
	max-height: 260px;
	font-size: 0.96rem;
	line-height: 1.45;
	resize: none;
	overflow-y: auto;
	overflow-x: hidden;
	color: var(--sanv-text-main);
	transition: height 0.18s ease;
}

#stext::placeholder {
	color: var(--sanv-text-muted);
}

#ssubmit {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	z-index: 3;
	gap: 0.35rem;
}

.search-kbd {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 22px;
	padding: 0 6px;
	font-size: 11px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color: var(--sanv-text-muted);
	background: var(--sanv-icon-box-bg);
	border: 1px solid var(--sanv-inner-border);
	border-radius: 5px;
	pointer-events: none;
	user-select: none;
}

#searchform:focus-within .search-kbd {
	display: none;
}

#ssubmit .btn-primary {
	padding: 0.48rem 1.05rem;
	font-weight: 600;
	font-size: 0.86rem;
	border-radius: 11px !important;
	background: var(--sanv-brand-primary);
	border-color: var(--sanv-brand-primary);
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
	transition: all var(--sanv-transition);
}

#ssubmit .btn-primary:hover {
	background: var(--sanv-brand-hover);
	transform: translateY(-1px);
}

.input-clear-a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	cursor: pointer;
	text-decoration: none;
	color: var(--sanv-text-secondary) !important;
	transition: background-color var(--sanv-transition);
}

.input-clear-a:hover {
	background-color: var(--sanv-inner-border);
	color: var(--sanv-text-main) !important;
}

#suggest {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 1040;
	max-height: 400px;
	overflow-y: auto;
	border-radius: var(--sanv-radius-lg);
	border: 1px solid var(--sanv-surface-border);
	box-shadow: var(--sanv-panel-shadow);
	padding: 0.4rem;
	background-color: rgba(var(--sanv-surface-rgb), 0.98);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
}

#suggest .list-group-item {
	border: 0;
	border-radius: var(--sanv-radius-sm);
	padding: 0.55rem 0.75rem;
	font-size: 0.88rem;
	transition: background-color 0.12s ease;
}

#suggest .list-group-item.active,
#suggest .list-group-item:hover {
	background-color: rgba(var(--sanv-brand-primary-rgb), 0.1);
	color: var(--sanv-text-main);
}

#suggest img {
	flex: none;
	border-radius: 4px;
}

.suggest-host {
	font-size: 0.75rem;
	color: var(--sanv-text-muted);
}

@media (max-width: 767.98px) {
	.sanv-hero {
		margin: 1rem auto;
	}

	#stext {
		padding: 0.75rem 88px 0.75rem 56px;
		min-height: 46px;
		font-size: 0.92rem;
	}

	.search-kbd {
		display: none;
	}
}

/* ---------- 顶部推广 / 公告条 ---------- */

.top-ads {
	display: flex;
	justify-content: center;
	border-radius: var(--sanv-radius-md);
}

.ads-seq {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.ads-seq-clone {
	display: none;
}

@media (max-width: 767.98px) {
	#ads-host {
		overflow: hidden;
	}

	.top-ads {
		justify-content: flex-start;
		width: max-content;
		animation: sanv-ads-loop 18s linear infinite;
	}

	.ads-seq {
		flex-wrap: nowrap;
		flex: none;
		padding-right: 0.5rem;
	}

	.ads-seq-clone {
		display: flex;
	}

	.body-top-ad,
	.body-top-ad span {
		flex: none;
		max-width: none;
	}
}

@keyframes sanv-ads-loop {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.top-ads {
		animation: none;
	}

	.ads-seq-clone {
		display: none;
	}
}

.body-top-ad {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	height: 36px;
	max-width: 100%;
	padding: 0 0.9rem;
	line-height: 1;
	font-size: 0.82rem;
	font-weight: 500;
	border-radius: 999px;
	background: var(--sanv-ad-bg) !important;
	border: 1px solid var(--sanv-surface-border);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	text-decoration: none !important;
	transition: all var(--sanv-transition);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.body-top-ad:hover {
	transform: translateY(-1px);
	background: rgba(var(--sanv-surface-rgb), 0.96) !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.body-top-ad img {
	display: block;
	width: 18px;
	height: 18px;
	max-width: 18px;
	max-height: 18px;
	flex: 0 0 18px;
	object-fit: contain;
	border-radius: 4px;
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: middle;
}

.section-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1.1rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var(--sanv-inner-border);
}

.leftnav_u .nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem;
	background: var(--sanv-nav-bg);
	border: 1px solid var(--sanv-inner-border);
	border-radius: 12px !important;
}

.leftnav .nav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	color: var(--sanv-text-secondary);
	font-weight: 500;
	font-size: 0.88rem;
	text-align: center;
	padding: 0.44rem 0.92rem;
	margin: 0;
	line-height: 1.25;
	border-radius: 9px !important;
	background: transparent;
	border: 0;
	transition: all var(--sanv-transition);
	cursor: pointer;
}

.leftnav .nav-link:hover {
	color: var(--sanv-text-main);
	background: rgba(var(--sanv-brand-primary-rgb), 0.08);
}

.leftnav .nav-link.active,
.leftnav li.show > .nav-link {
	background: var(--sanv-brand-primary);
	color: #fff !important;
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}

.folder-count {
	font-size: 0.72rem;
	padding: 0.08rem 0.42rem;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.07);
	color: var(--sanv-text-secondary);
	font-weight: 500;
}

[data-bs-theme="dark"] .folder-count {
	background: rgba(255, 255, 255, 0.1);
}

.leftnav .nav-link.active .folder-count {
	background: rgba(255, 255, 255, 0.24);
	color: #fff;
}

.folder-edit {
	opacity: 0.8;
	display: inline-flex;
	align-items: center;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.folder-edit:hover {
	opacity: 1;
	transform: scale(1.12);
}

/* 个人面板快捷工具栏 */
.mine-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.42rem;
}

.btn-soft {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.42rem 0.78rem;
	font-size: 0.84rem;
	font-weight: 500;
	border-radius: 9px;
	color: var(--sanv-text-secondary);
	background: var(--sanv-nav-bg);
	border: 1px solid var(--sanv-inner-border);
	transition: all var(--sanv-transition);
	text-decoration: none;
	cursor: pointer;
}

.btn-soft:hover {
	color: var(--sanv-text-main);
	background: var(--sanv-card-hover-bg);
	border-color: var(--sanv-card-hover-border);
}

.btn-soft.is-active {
	color: #fff;
	background: var(--sanv-brand-primary);
	border-color: var(--sanv-brand-primary);
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}

.btn-soft-primary {
	color: var(--sanv-brand-primary);
	background: rgba(var(--sanv-brand-primary-rgb), 0.1);
	border-color: rgba(var(--sanv-brand-primary-rgb), 0.22);
}

[data-bs-theme="dark"] .btn-soft-primary {
	color: #60a5fa;
	background: rgba(59, 130, 246, 0.15);
	border-color: rgba(59, 130, 246, 0.3);
}

.btn-soft-primary:hover {
	color: #fff;
	background: var(--sanv-brand-primary);
	border-color: var(--sanv-brand-primary);
}

/* 公共导航左侧分类栏 */
.leftnav_pub {
	min-width: 176px;
}

.leftnav_pub .nav {
	top: 1rem;
	background: var(--sanv-nav-bg);
	border: 1px solid var(--sanv-inner-border) !important;
	border-radius: var(--sanv-radius-lg) !important;
	padding: 0.5rem !important;
	gap: 0.2rem;
}

.leftnav_pub .pub-nav-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--sanv-text-main);
	padding: 0.65rem 0.5rem 0.75rem;
	margin-bottom: 0.35rem;
	border-bottom: 1px solid var(--sanv-inner-border);
	width: 100%;
}

.leftnav_pub .pub-nav-footer {
	font-size: 0.76rem;
	text-align: center;
	color: var(--sanv-text-muted);
	padding: 0.65rem 0.5rem 0.25rem;
	margin-top: 0.35rem;
	border-top: 1px solid var(--sanv-inner-border);
	width: 100%;
}

.btn-xs {
	padding: 0.2rem 0.55rem !important;
	font-size: 0.75rem !important;
	border-radius: var(--sanv-radius-sm) !important;
	line-height: 1.25 !important;
}

.cursor-pointer {
	cursor: pointer;
}

.leftnav_pub .nav-link {
	width: 100%;
	justify-content: center;
	padding: 0.5rem 0.85rem;
	font-size: 0.88rem;
	border-radius: 9px !important;
}

.leftnav_pub .nav-link i {
	font-size: 0.95rem;
	opacity: 0.75;
	width: 20px;
	text-align: center;
}

.leftnav_pub .nav-link.active i {
	opacity: 1;
}

@media (max-width: 767.98px) {
	.leftnav_pub .nav {
		flex-direction: row;
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		padding: 0.35rem !important;
	}

	.leftnav_pub .nav::-webkit-scrollbar {
		display: none;
	}

	.leftnav_pub .pub-nav-header,
	.leftnav_pub .pub-nav-footer {
		display: none !important;
	}

	.leftnav_pub li {
		flex: 0 0 auto;
	}

	.leftnav_pub .nav-link {
		white-space: nowrap;
		padding: 0.42rem 0.75rem;
	}
}

@media (min-width: 768px) {
	.leftnav_pub {
		flex: 0 0 232px;
		width: 232px;
		max-width: 232px;
	}

	.leftnav_pub .nav {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-content: start;
		gap: 0.35rem;
		max-height: calc(100vh - 2rem);
		overflow-y: auto;
		scrollbar-width: thin;
		scrollbar-color: transparent transparent;
	}

	.leftnav_pub .pub-nav-header,
	.leftnav_pub .pub-nav-footer {
		grid-column: 1 / -1;
	}

	.leftnav_pub .nav::-webkit-scrollbar-thumb {
		background-color: transparent;
	}

	.leftnav_pub:hover .nav {
		scrollbar-color: var(--sanv-scrollbar) transparent;
	}

	.leftnav_pub:hover .nav::-webkit-scrollbar-thumb {
		background-color: var(--sanv-scrollbar);
	}

	.leftnav_pub:hover .nav::-webkit-scrollbar-thumb:hover {
		background-color: var(--sanv-scrollbar-hover);
	}

	.leftnav_pub li {
		flex: none;
		width: auto;
		min-width: 0;
	}

	.leftnav_pub .nav-link {
		padding: 0.46rem 0.55rem;
		font-size: 0.84rem;
	}

	.leftnav_pub .nav-link span {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

/* 公共导航子分类锚点快捷条 */
.subcat-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	padding-bottom: 0.85rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid var(--sanv-inner-border);
}

.subcat-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.28rem 0.75rem;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--sanv-text-secondary);
	background: var(--sanv-nav-bg);
	border: 1px solid var(--sanv-inner-border);
	border-radius: 999px;
	text-decoration: none;
	transition: all var(--sanv-transition);
}

.subcat-chip:hover {
	color: var(--sanv-brand-primary);
	border-color: var(--sanv-card-hover-border);
	background: var(--sanv-card-hover-bg);
	transform: translateY(-1px);
}

/* 子分类标题 */
.pub-block {
	margin-bottom: 1.75rem;
	scroll-margin-top: 1.25rem;
}

.pub-block:last-child {
	margin-bottom: 0.5rem;
}

.pub-block-head {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 0.85rem;
	font-size: 0.98rem;
	font-weight: 700;
	color: var(--sanv-text-main);
}

.pub-block-head::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 16px;
	border-radius: 999px;
	background: var(--sanv-brand-primary);
}

.pub-block-count {
	font-size: 0.74rem;
	font-weight: 500;
	color: var(--sanv-text-muted);
	background: var(--sanv-nav-bg);
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
}

#market_ulist_div {
	min-height: 480px;
}

.user-setting {
	min-width: 260px;
	border-radius: var(--sanv-radius-lg);
	border: 1px solid var(--sanv-surface-border);
	box-shadow: var(--sanv-panel-shadow);
}

.user-setting .dropdown-item {
	border-radius: var(--sanv-radius-sm);
	padding: 0.45rem 0.75rem;
	font-size: 0.86rem;
}

.show-option {
	border-radius: 7px !important;
	font-weight: 600;
}

.show-option.active {
	background: var(--sanv-brand-primary) !important;
	border-color: var(--sanv-brand-primary) !important;
	color: #fff !important;
}

/* ---------- 网址卡片网格 ---------- */

.url-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.55rem;
}

@media (min-width: 576px) {
	.url-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.url-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.url-grid {
		grid-template-columns: repeat(var(--sanv-cols), minmax(0, 1fr));
	}
}

.divurl {
	position: relative;
	min-height: 42px;
	min-width: 0;
	padding: 0.35rem 0.65rem;
	border-radius: var(--sanv-radius-md);
	background: var(--sanv-card-bg);
	border: 1px solid var(--sanv-card-border);
	box-shadow: var(--sanv-card-shadow);
	transition: transform var(--sanv-transition), background-color var(--sanv-transition), border-color var(--sanv-transition), box-shadow var(--sanv-transition);
}

.divurl:hover {
	background: var(--sanv-card-hover-bg);
	border-color: var(--sanv-card-hover-border);
	box-shadow: var(--sanv-card-hover-shadow);
	transform: translateY(-1.5px);
	z-index: 2;
}

.divurl .url-limg {
	position: absolute;
	top: 8px;
	left: 8px;
	width: 24px;
	height: 24px;
	border-radius: 6px;
	background: var(--sanv-icon-box-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	pointer-events: none;
	z-index: 1;
	transition: transform var(--sanv-transition);
}

.divurl:hover .url-limg {
	transform: scale(1.06);
}

.divurl .url-limg img {
	width: 16px;
	height: 16px;
	object-fit: contain;
	border-radius: 3px;
}

.url-title {
	display: flex;
	align-items: center;
	position: static;
	padding-left: 28px;
	height: 28px;
	line-height: 28px;
	overflow: hidden;
	white-space: nowrap;
	color: var(--sanv-text-main);
	font-weight: 500;
	font-size: 0.875rem;
	text-decoration: none;
	transition: color var(--sanv-transition);
}

/* 整个卡片区域可点击 */
.url-title::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: inherit;
}

.url-title .t {
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.divurl:hover .url-title.is-overflow .t,
.url-title.is-overflow:focus-visible .t {
	max-width: none;
	overflow: visible;
	animation: sanv-slide var(--dur, 4s) ease-in-out 0.25s infinite alternate;
}

@keyframes sanv-slide {
	0%, 12% { transform: translateX(0); }
	88%, 100% { transform: translateX(var(--shift, 0)); }
}

.divurl:hover .url-title {
	color: var(--sanv-brand-primary);
}

[data-bs-theme="dark"] .divurl:hover .url-title {
	color: #60a5fa;
}

.url-title.is-red,
.divurl:hover .url-title.is-red {
	color: var(--sanv-hot) !important;
}

.url-title.is-bold {
	font-weight: 700;
}

.divurl.is-locked .url-title {
	opacity: 0.82;
}

.lock-hint {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 1px 5px;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.12);
	color: var(--sanv-brand-primary);
	font-size: 10px;
	font-weight: 600;
	line-height: 1.3;
}

.lock-hint.is-upgrade {
	background: rgba(217, 119, 6, 0.14);
	color: #b45309;
}

[data-bs-theme="dark"] .lock-hint.is-upgrade {
	color: #fbbf24;
}

.divurl .flags {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	margin-left: auto;
	padding-left: 6px;
	font-size: 11px;
	line-height: 1;
}

.divurl:hover .url-title.is-overflow .flags {
	visibility: hidden;
}

.divurl .flags .badge {
	font-size: 10px;
	padding: 2px 5px;
	line-height: 1.1;
	border-radius: 4px;
}

.divurl .flags .bi {
	color: var(--sanv-brand-primary);
	opacity: 0.7;
}

/* 个人书签卡片悬停快捷编辑按钮 */
.url-quick-edit {
	position: absolute;
	top: 8px;
	right: 6px;
	z-index: 2;
	width: 24px;
	height: 24px;
	border-radius: 6px;
	border: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: var(--sanv-text-secondary);
	background: var(--sanv-card-hover-bg);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.divurl[data-kind="mine"]:hover .url-quick-edit {
	opacity: 1;
	pointer-events: auto;
}

.url-quick-edit:hover {
	color: #fff;
	background: var(--sanv-brand-primary);
}

body.is-editing-mine .url-quick-edit {
	display: none !important;
}

.divurl .urlremark {
	display: none;
	position: relative;
	z-index: 1;
	padding: 0.45rem 0.6rem;
	margin: 0.35rem 0 0.15rem;
	border-top: 1px dashed var(--sanv-inner-border);
	border-radius: 6px;
	font-size: 0.78rem;
	line-height: 1.45;
	word-wrap: break-word;
	max-height: 140px;
	overflow: auto;
	color: var(--sanv-remark-color);
	background-color: rgba(var(--sanv-remark-bg), 0.65);
}

body.show-remark .divurl .urlremark {
	display: block;
}

.user_ulist {
	min-height: 52px;
}

/* ---------- 欢迎横幅与空状态 ---------- */

.welcome-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem 1.2rem;
	border-radius: var(--sanv-radius-lg);
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.09) 0%, rgba(99, 102, 241, 0.05) 100%);
	border: 1px solid rgba(37, 99, 235, 0.18);
}

.emptynotice {
	text-align: center;
	padding: 2.5rem 1rem;
	border-radius: var(--sanv-radius-lg);
	border: 1px dashed var(--sanv-inner-border);
	background: var(--sanv-nav-bg);
}

/* ---------- 编辑排序模式 ---------- */

body.is-editing-mine #user-grid .divurl,
body.is-editing-pub #pub-host .pub-grid[data-child] .divurl {
	border-style: dashed;
	border-color: rgba(var(--sanv-brand-primary-rgb), 0.48);
	cursor: grab;
}

body.is-editing-mine #user-grid .divurl::before,
body.is-editing-pub #pub-host .pub-grid[data-child] .divurl::before {
	content: "\F479";
	font-family: "bootstrap-icons";
	position: absolute;
	right: 7px;
	top: 11px;
	font-size: 11px;
	color: var(--sanv-brand-primary);
	opacity: 0.65;
	pointer-events: none;
	z-index: 2;
}

.setting-alert {
	transform: translateX(-50%);
	z-index: 1040;
	margin-bottom: 1.25rem;
	max-width: calc(100vw - 2rem);
	border-radius: 999px !important;
	padding: 0.55rem 1.25rem !important;
	background: rgba(15, 23, 42, 0.92) !important;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.15) !important;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3) !important;
}

.sort-ghost {
	opacity: 0.45;
	background: rgba(var(--sanv-brand-primary-rgb), 0.15) !important;
	border: 1px dashed var(--sanv-brand-primary) !important;
}

#user-grid .divurl,
.pub-grid[data-child] .divurl {
	touch-action: manipulation;
}

#user-grid:has(.sort-ghost) .divurl,
.pub-grid:has(.sort-ghost) .divurl {
	cursor: grabbing;
}

/* ---------- 公共导航默认页签：精选大图标 ---------- */

.hot-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.65rem;
}

@media (min-width: 576px) {
	.hot-row {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.hot-row {
		grid-template-columns: repeat(9, minmax(0, 1fr));
	}
}

.hot-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--sanv-text-main);
	background: var(--sanv-card-bg);
	border: 1px solid var(--sanv-card-border);
	border-radius: var(--sanv-radius-lg);
	padding: 0.75rem 0.4rem 0.45rem;
	box-shadow: var(--sanv-card-shadow);
	transition: all var(--sanv-transition);
}

.hot-item img {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	object-fit: cover;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	transition: transform var(--sanv-transition);
}

.hot-item span {
	font-size: 0.82rem;
	font-weight: 500;
	width: 100%;
}

.hot-item:hover {
	color: var(--sanv-brand-primary);
	background: var(--sanv-card-hover-bg);
	border-color: var(--sanv-card-hover-border);
	box-shadow: var(--sanv-card-hover-shadow);
	transform: translateY(-2px);
}

.hot-item:hover img {
	transform: scale(1.06);
}

/* ---------- 分享页 ---------- */

.share-gate {
	max-width: 420px;
	padding: 2rem 1.5rem;
	border-radius: var(--sanv-radius-lg);
	background: var(--sanv-card-bg);
	border: 1px solid var(--sanv-inner-border);
}

.share-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--sanv-inner-border);
}

.share-avatar {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: linear-gradient(135deg, #2563eb, #4f46e5);
	color: #fff;
	font-size: 1.2rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.share-note {
	white-space: pre-line;
	color: var(--sanv-text-secondary);
	background: var(--sanv-nav-bg);
	padding: 0.75rem 1rem;
	border-radius: var(--sanv-radius-md);
	border-left: 3px solid var(--sanv-brand-primary);
	font-size: 0.88rem;
}

/* ---------- 侧滑面板与弹窗 ---------- */

.offcanvas-backdrop {
	z-index: 1040 !important;
}

.offcanvas {
	z-index: 1045 !important;
}

.modal-backdrop {
	z-index: 1050 !important;
}

.modal {
	z-index: 1055 !important;
}

#sanv-modal {
	z-index: 1055 !important;
}

.offcanvas.header-offcanvas {
	--bs-offcanvas-width: 480px;
	border-top-left-radius: var(--sanv-radius-xl);
	border-bottom-left-radius: var(--sanv-radius-xl);
	margin: 0.75rem 0.75rem 0.75rem 0;
	height: calc(100vh - 1.5rem);
	border: 1px solid var(--sanv-surface-border);
	box-shadow: -12px 0 40px rgba(0, 0, 0, 0.22);
	background-color: rgba(var(--sanv-surface-rgb), 0.96) !important;
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
}

@media (max-width: 575.98px) {
	.offcanvas.header-offcanvas {
		--bs-offcanvas-width: 100vw;
		margin: 0;
		height: 100vh;
		border-radius: 0;
	}
}

.offcanvas-header {
	padding: 1.15rem 1.35rem;
	border-bottom: 1px solid var(--sanv-inner-border);
}

.offcanvas-body {
	padding: 1.25rem 1.35rem;
}

#sanv-modal .modal-content {
	border-radius: var(--sanv-radius-xl);
	border: 1px solid var(--sanv-surface-border);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
	background-color: rgba(var(--sanv-surface-rgb), 0.98);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
}

#sanv-modal .modal-header {
	border-bottom-color: var(--sanv-inner-border);
	padding: 1.1rem 1.35rem;
}

#sanv-modal .modal-body {
	padding: 1.25rem 1.35rem;
}

#sanv-modal .modal-footer {
	border-top-color: var(--sanv-inner-border);
	padding: 0.85rem 1.35rem;
}

.auth-switch .btn {
	font-weight: 600;
}

.auth-switch .btn.active {
	color: #fff;
	background: var(--sanv-brand-primary);
	border-color: var(--sanv-brand-primary);
}

.auth-note {
	margin-bottom: 1rem;
	padding: 0.75rem 0.9rem;
	border-radius: 12px;
	background: rgba(var(--sanv-brand-primary-rgb), 0.06);
	border: 1px solid rgba(var(--sanv-brand-primary-rgb), 0.14);
	color: var(--sanv-text-secondary);
	font-size: 0.84rem;
	line-height: 1.55;
}

.auth-note ul {
	margin: 0.2rem 0 0;
	padding-left: 1.15rem;
}

.auth-note li + li {
	margin-top: 0.15rem;
}

.bd-mode-toggle .dropdown-item.active {
	background: var(--sanv-brand-primary);
	color: #fff;
}

/* 换肤卡片 */
.skin-card {
	position: relative;
	display: block;
	background: var(--bs-tertiary-bg);
	border-radius: var(--sanv-radius-sm) !important;
	outline: 2px solid transparent;
	outline-offset: -2px;
	transition: all var(--sanv-transition);
}

.skin-card img,
.skin-card .skin-blank {
	display: block;
	width: 100%;
	height: 82px;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.skin-card:hover img {
	transform: scale(1.05);
}

.skin-card .skin-name {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 4px 6px;
	font-size: 11px;
	font-weight: 500;
	color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

.skin-card:hover,
.skin-card.is-on {
	outline-color: var(--sanv-brand-primary);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.skin-card.is-on .skin-name {
	background: rgba(var(--sanv-brand-primary-rgb), 0.92);
}

.mx-n1 {
	margin-left: -0.25rem;
	margin-right: -0.25rem;
}

/* 备忘录列表 */
.memoa {
	border-radius: var(--sanv-radius-md) !important;
	margin-bottom: 0.5rem;
	border: 1px solid var(--sanv-card-border) !important;
	background: var(--sanv-card-bg);
	transition: all var(--sanv-transition);
}

.memoa:hover {
	background: var(--sanv-card-hover-bg);
	border-color: var(--sanv-card-hover-border) !important;
	transform: translateY(-1px);
}

.memoi {
	font-size: 20px;
	color: var(--sanv-brand-primary);
}

.memoh6 {
	font-weight: 600;
	color: var(--sanv-text-main);
}

.msg-text {
	white-space: pre-line;
	word-break: break-word;
}

.modal-body select[multiple] {
	min-height: 320px;
}

/* 个人中心卡片 */
.user-profile-card {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 1rem;
	border-radius: var(--sanv-radius-lg);
	background: var(--sanv-nav-bg);
	border: 1px solid var(--sanv-inner-border);
	margin-bottom: 1.25rem;
}

.user-avatar {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: linear-gradient(135deg, #2563eb, #6366f1);
	color: #fff;
	font-size: 1.25rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}

/* ---------- 独立文章页 / 404页 (.plain-page) ---------- */

.plain-page {
	position: relative;
	z-index: 1;
	max-width: 820px;
	margin: 3rem auto;
	padding: 2.5rem 2.75rem;
	border-radius: var(--sanv-radius-xl);
	background-color: rgba(var(--sanv-surface-rgb), var(--sanv-panel));
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	border: 1px solid var(--sanv-surface-border);
	box-shadow: var(--sanv-panel-shadow);
}

.plain-page .eyebrow {
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--sanv-brand-primary);
	margin-bottom: 0.75rem;
}

.plain-page .eyebrow a {
	color: inherit;
	text-decoration: none;
}

.plain-page h1 {
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: 1.25rem;
}

.plain-page .prose {
	font-size: 0.98rem;
	line-height: 1.75;
	color: var(--sanv-text-secondary);
}

/* ---------- 页脚、回到顶部 ---------- */

.sanv-foot {
	background: var(--sanv-chip-bg);
	border: 1px solid var(--sanv-chip-border);
	border-radius: var(--sanv-radius-lg) !important;
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
	font-size: 0.84rem;
}

.foot-link {
	color: rgba(255, 255, 255, 0.88);
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.35);
	padding: 0 0.2rem 0.1rem;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.foot-link:hover {
	color: #fff;
	border-bottom-color: #fff;
}

.foot-stats {
	color: rgba(255, 255, 255, 0.78);
	letter-spacing: 0.01em;
}

#back-top {
	position: fixed;
	right: 2.5%;
	bottom: 28px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sanv-brand-primary);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.2s ease;
	z-index: 1020;
}

#back-top:hover {
	background: var(--sanv-brand-hover);
	transform: translateY(-2px);
}

#back-top.is-shown {
	opacity: 0.96;
	visibility: visible;
	transform: none;
}

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