/*
 * 应用壳：左侧导航 + 右侧主区。
 */

:root {
	--app-sidebar-width: 250px;
	--app-sidebar-collapsed-width: 80px;
	--app-sidebar-collapsed-tile: 2.35rem;
	--app-sidebar-collapsed-icon-box: 1.125rem;
	--app-sidebar-collapsed-icon-size: 1.0625rem;
	--ui-surface-0: #f3f5fb;
	--ui-surface-1: #ffffff;
	--ui-surface-2: #eef2fb;
	--ui-border-soft: #dde4f6;
	--ui-border-strong: #d1dbf2;
	--ui-text-main: #0f172a;
	--ui-text-muted: #7082aa;
	--ui-brand: #5c72ea;
	--ui-brand-strong: #4d63dd;
	--ui-radius-sm: 0.7rem;
	--ui-radius-md: 0.9rem;
	--ui-radius-lg: 1rem;
	--ui-shadow-sm: 0 8px 22px rgba(76, 99, 167, 0.08);
	--ui-shadow-md: 0 14px 32px rgba(51, 71, 130, 0.12);
	--ui-focus-ring: 0 0 0 3px rgba(92, 114, 234, 0.18);
}

.app-shell {
	margin: 0;
	min-height: 100vh;
	background: var(--ui-surface-0);
	color: var(--ui-text-main);
	overflow-x: hidden;
	max-width: 100%;
}

.app-layout {
	min-height: 100vh;
	min-width: 0;
	max-width: 100%;
}

.app-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 30;
	width: var(--app-sidebar-width);
	height: 100vh;
	height: 100dvh;
	background: linear-gradient(180deg, #0f1a35 0%, #0a1228 100%);
	color: #dbe3fb;
	padding: 0;
	overflow: visible;
	box-shadow: 10px 0 30px rgba(6, 12, 30, 0.16);
	min-width: 0;
	transition: width 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

html.app-sidebar-collapsed .app-sidebar {
	width: var(--app-sidebar-collapsed-width);
}

.app-sidebar-inner {
	height: 100%;
	overflow: hidden;
}

.app-sidebar-panel {
	width: 100%;
	height: 100%;
	padding: 1.1rem 0.9rem;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-sizing: border-box;
}

.app-sidebar-collapse-toggle {
	position: absolute;
	top: 50%;
	right: -13px;
	z-index: 41;
	width: 26px;
	height: 26px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(186, 202, 255, 0.55);
	border-radius: 50%;
	background: #162447;
	color: #c8d8ff;
	box-shadow: 0 2px 10px rgba(4, 10, 28, 0.35);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transform: translateY(-50%);
	transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.app-sidebar-collapse-toggle:hover {
	color: #ffffff;
	border-color: rgba(210, 220, 255, 0.85);
	background: #243566;
	transform: translateY(-50%) scale(1.06);
}

.app-sidebar-collapse-toggle:focus-visible {
	outline: none;
	box-shadow: 0 2px 10px rgba(4, 10, 28, 0.35), var(--ui-focus-ring);
}

.app-sidebar-collapse-toggle i {
	font-size: 0.9rem;
	line-height: 1;
	pointer-events: none;
}

html.app-sidebar-collapsed .app-sidebar-collapse-icon-expand {
	display: none;
}

html:not(.app-sidebar-collapsed) .app-sidebar-collapse-icon-collapse {
	display: none;
}

.app-sidebar-top {
	flex-shrink: 0;
	min-width: 0;
}

.app-brand {
	display: flex;
	align-items: center;
	width: 100%;
	color: #f8fbff;
	text-decoration: none;
	padding: 0 0.1rem;
}

.app-brand-full {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.28));
}

.app-brand-mark {
	display: none;
	width: 2.35rem;
	margin-inline: auto;
	filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.28));
}

html.app-sidebar-collapsed .app-sidebar-panel {
	padding: 0.8rem 0.5rem 0.7rem;
	align-items: center;
}

html.app-sidebar-collapsed .app-brand-full {
	display: none;
}

html.app-sidebar-collapsed .app-brand {
	width: var(--app-sidebar-collapsed-tile);
	height: var(--app-sidebar-collapsed-tile);
	justify-content: center;
	padding: 0;
}

html.app-sidebar-collapsed .app-brand-mark {
	display: block;
	width: var(--app-sidebar-collapsed-icon-box);
	height: var(--app-sidebar-collapsed-icon-box);
	object-fit: contain;
	padding: 0;
	border-radius: 0.28rem;
	box-sizing: border-box;
}

html.app-sidebar-collapsed .app-nav {
	flex: 1 1 auto;
	min-height: 0;
	align-items: center;
	margin-top: 0.75rem;
	gap: 0.32rem;
	width: 100%;
	padding: 0;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

html.app-sidebar-collapsed .app-nav::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

html.app-sidebar-collapsed .app-nav-group {
	align-items: center;
	width: auto;
	max-width: 100%;
	gap: 0.32rem;
}

/* 紧缩态：有子菜单的分组只显示子项图标，隐藏父级入口 */
html.app-sidebar-collapsed .app-nav-group > .app-nav-item:not(.app-nav-item-subtle-child) {
	display: none !important;
}

html.app-sidebar-collapsed .app-sidebar-panel .app-nav-item > i.bi,
html.app-sidebar-collapsed .app-sidebar-panel .app-nav-item > .app-nav-item-icon,
html.app-sidebar-collapsed .app-sidebar-panel .app-nav-item-subtle-child > i.bi,
html.app-sidebar-collapsed .app-sidebar-panel .app-sidebar-rail-btn > i.bi,
html.app-sidebar-collapsed .app-sidebar-panel .site-theme-btn > i.bi {
	box-sizing: border-box;
	width: var(--app-sidebar-collapsed-icon-box) !important;
	height: var(--app-sidebar-collapsed-icon-box) !important;
	min-width: var(--app-sidebar-collapsed-icon-box);
	min-height: var(--app-sidebar-collapsed-icon-box);
	font-size: var(--app-sidebar-collapsed-icon-size) !important;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	opacity: 1;
}

html.app-sidebar-collapsed .app-sidebar-panel .app-nav-item > .app-nav-item-icon {
	object-fit: contain;
	mix-blend-mode: screen;
	opacity: 0.82;
	padding: 0;
}

html.app-sidebar-collapsed .app-sidebar-panel .app-nav-item.active > .app-nav-item-icon,
html.app-sidebar-collapsed .app-sidebar-panel .app-nav-item:hover > .app-nav-item-icon {
	opacity: 1;
}

html.app-sidebar-collapsed .app-sidebar-panel i.bi::before {
	display: block;
	width: 1em;
	height: 1em;
	line-height: 1;
	text-align: center;
	vertical-align: 0;
}

html.app-sidebar-collapsed .app-nav-item,
html.app-sidebar-collapsed .app-nav-item-subtle-child {
	flex: 0 0 auto;
	width: var(--app-sidebar-collapsed-tile);
	height: var(--app-sidebar-collapsed-tile);
	min-width: var(--app-sidebar-collapsed-tile);
	max-width: var(--app-sidebar-collapsed-tile);
	margin-left: 0;
	padding: 0;
	gap: 0;
	justify-content: center;
	align-items: center;
	border: 0;
	border-radius: 0.58rem;
	background: transparent;
	box-shadow: none !important;
	transform: none !important;
}

html.app-sidebar-collapsed .app-nav-item span {
	display: none;
}

html.app-sidebar-collapsed .app-nav-item:hover,
html.app-sidebar-collapsed .app-nav-item.active,
html.app-sidebar-collapsed .app-nav-item-subtle-child:hover,
html.app-sidebar-collapsed .app-nav-item-subtle-child.active {
	background: rgba(110, 131, 230, 0.38);
	box-shadow: none !important;
}

html.app-sidebar-collapsed .app-sidebar-bottom {
	width: 100%;
	padding-top: 0.55rem;
	align-items: center;
}

html.app-sidebar-collapsed .app-sidebar-bottom-full {
	display: none;
}

html.app-sidebar-collapsed .app-sidebar-bottom-rail {
	display: block;
}

.app-sidebar-bottom-rail {
	display: none;
	width: 100%;
}

.app-sidebar-rail-grid {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.38rem;
	width: 100%;
}

.app-sidebar-rail-form {
	margin: 0;
	display: flex;
	min-width: 0;
}

.app-sidebar-rail-btn {
	width: var(--app-sidebar-collapsed-tile);
	height: var(--app-sidebar-collapsed-tile);
	min-height: var(--app-sidebar-collapsed-tile);
	padding: 0;
	border-radius: 0.62rem;
	border: 0;
	background: transparent;
	color: #e8efff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.16s ease, color 0.16s ease;
}

.app-sidebar-rail-btn:hover {
	color: #ffffff;
	background: rgba(110, 131, 230, 0.38);
}

.app-sidebar-rail-btn--danger:hover {
	background: rgba(185, 62, 88, 0.58);
	color: #ffffff;
}

.app-nav {
	margin-top: 1.1rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	flex: 1 1 auto;
	min-height: 0;
	min-width: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: rgba(138, 160, 255, 0.22) transparent;
}

.app-nav::-webkit-scrollbar {
	width: 3px;
}

.app-nav::-webkit-scrollbar-track {
	background: transparent;
}

.app-nav::-webkit-scrollbar-thumb {
	background: rgba(138, 160, 255, 0.22);
	border-radius: 999px;
}

.app-nav-item {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 0.66rem;
	padding: 0.56rem 0.75rem;
	border-radius: var(--ui-radius-sm);
	text-decoration: none;
	color: #beccf8;
	font-size: 0.92rem;
	border: 0;
	background: transparent;
	transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.app-nav-item span {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.app-nav-item i {
	flex: 0 0 auto;
	width: 1.1rem;
	text-align: center;
}

.app-nav-item-icon {
	flex: 0 0 auto;
	width: 1.1rem;
	height: 1.1rem;
	object-fit: contain;
	display: block;
	mix-blend-mode: screen;
	opacity: 0.82;
	transition: opacity 0.18s ease;
}

.app-nav-item:hover .app-nav-item-icon,
.app-nav-item.active .app-nav-item-icon,
.app-nav-item.active-parent .app-nav-item-icon {
	opacity: 1;
}

.app-nav-item.is-locked {
	color: #a8b8e8;
}

.app-nav-item-lock {
	flex-shrink: 0;
	margin-left: auto;
	font-size: 0.62rem;
	line-height: 1;
	color: #93a8e6;
	opacity: 0.92;
}

.app-nav-item.is-locked:hover,
.app-nav-item.is-locked.active {
	color: #dce6ff;
}

.app-nav-item.is-locked:hover .app-nav-item-lock,
.app-nav-item.is-locked.active .app-nav-item-lock {
	color: #c8d6ff;
}

html.app-sidebar-collapsed .app-nav-item-lock {
	display: none;
}

.app-nav-item:hover:not(.active-parent):not(.app-nav-item-subtle-child) {
	color: #ffffff;
	background: rgba(110, 131, 230, 0.26);
	box-shadow: inset 2px 0 0 rgba(164, 184, 255, 0.85);
	transform: translateX(5px);
}

.app-nav-item.active-parent:hover {
	color: #ffffff;
	background: rgba(110, 131, 230, 0.16);
	transform: translateX(3px);
}

.app-nav-item.active {
	color: #ffffff;
	background: rgba(110, 131, 230, 0.26);
	box-shadow: inset 2px 0 0 rgba(164, 184, 255, 0.85);
}

.app-nav-group {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.app-nav-item.active-parent {
	color: #e2e8ff;
	background: rgba(110, 131, 230, 0.1);
	box-shadow: none;
	font-weight: 600;
}

.app-nav-item.active-parent i {
	color: #c4d2ff;
}

.app-nav-group:has(> .app-nav-item-subtle-child.active) > .app-nav-item:not(.app-nav-item-subtle-child) {
	color: #e2e8ff;
	background: rgba(110, 131, 230, 0.1);
	box-shadow: none;
	font-weight: 600;
}

.app-nav-group:has(> .app-nav-item-subtle-child.active) > .app-nav-item:not(.app-nav-item-subtle-child).active {
	background: rgba(110, 131, 230, 0.1);
	box-shadow: none;
}

.app-nav-item-subtle {
	font-size: 0.84rem;
	padding-left: calc(0.75rem + 5px);
	opacity: 0.94;
}

.app-nav-item-subtle-child {
	margin-left: 0.9rem;
	width: calc(100% - 0.9rem);
	max-width: calc(100% - 0.9rem);
	padding: 0.48rem 0.65rem;
	font-size: 0.82rem;
	color: #afc0f3;
}

.app-nav-item-subtle-child i {
	width: 0.95rem;
	font-size: 0.78rem;
	opacity: 0.92;
}

.app-nav-item-subtle-child:hover {
	color: #ffffff;
	background: rgba(110, 131, 230, 0.18);
	box-shadow: none;
	transform: translateX(4px);
}

.app-nav-item-subtle-child.active {
	color: #ffffff;
	background: rgba(110, 131, 230, 0.34);
	box-shadow: inset 3px 0 0 rgba(164, 184, 255, 0.95);
	font-weight: 600;
}

.app-nav-item-subtle-child.active i {
	opacity: 1;
}

.app-sidebar-bottom {
	margin-top: auto;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.65rem;
	width: 100%;
	min-width: 0;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

.app-sidebar-bottom-full {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	width: 100%;
	min-width: 0;
}

.app-sidebar-bottom-actions {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 0.55rem;
	width: 100%;
	min-width: 0;
}

.app-sidebar-auth-form {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
}

.site-theme-btn,
.app-logout-btn,
.app-login-btn {
	border-radius: var(--ui-radius-sm);
	border: 1px solid rgba(138, 160, 255, 0.34);
	background: rgba(54, 71, 138, 0.4);
	color: #e6eeff;
	height: 2.15rem;
	padding: 0 0.7rem;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.site-theme-btn {
	width: 2.15rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.app-logout-btn,
.app-login-btn {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	max-width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	writing-mode: horizontal-tb;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* 收缩态底部：竖排、统一 2.5rem，覆盖 .site-theme-btn 默认尺寸 */
html.app-sidebar-collapsed .app-sidebar-rail-form {
	width: var(--app-sidebar-collapsed-tile);
	flex: 0 0 auto;
}

html.app-sidebar-collapsed .app-sidebar-bottom-rail .app-sidebar-rail-btn,
html.app-sidebar-collapsed .app-sidebar-bottom-rail .site-theme-btn {
	width: var(--app-sidebar-collapsed-tile);
	height: var(--app-sidebar-collapsed-tile);
	min-width: var(--app-sidebar-collapsed-tile);
	min-height: var(--app-sidebar-collapsed-tile);
	max-width: var(--app-sidebar-collapsed-tile);
	padding: 0;
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	box-shadow: none;
}

html.app-sidebar-collapsed .app-sidebar-bottom-rail .app-sidebar-rail-btn:hover,
html.app-sidebar-collapsed .app-sidebar-bottom-rail .site-theme-btn:hover {
	background: rgba(110, 131, 230, 0.38);
	color: #ffffff;
}

html.app-sidebar-collapsed .app-sidebar-bottom-rail .app-sidebar-rail-btn--danger:hover {
	background: rgba(185, 62, 88, 0.58);
	color: #ffffff;
}

html.app-sidebar-collapsed .app-sidebar-rail-form .app-sidebar-rail-btn {
	width: 100%;
}

@media (prefers-reduced-motion: reduce) {
	.app-sidebar,
	.app-main {
		transition: none;
	}

	.app-sidebar-collapse-toggle {
		transition: none;
	}
}

.app-main {
	margin-left: var(--app-sidebar-width);
	min-width: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	position: relative;
	z-index: 1;
	transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

html.app-sidebar-collapsed .app-main {
	margin-left: var(--app-sidebar-collapsed-width);
}

.app-topbar {
	height: 72px;
	padding: 0 1.5rem;
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 1rem;
	min-width: 0;
	position: sticky;
	top: 0;
	z-index: 20;
	background: linear-gradient(to bottom, rgba(243, 245, 251, 0.96), rgba(243, 245, 251, 0.82));
	backdrop-filter: blur(8px);
}

.app-mobile-nav-btn {
	width: 2.15rem;
	height: 2.15rem;
	border: 1px solid #d7dced;
	background: #fff;
	padding: 0;
}

.app-topbar-leading {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.app-topbar-search {
	flex: 0 1 320px;
	min-width: 0;
	max-width: 360px;
	height: 2.35rem;
	background: var(--ui-surface-2);
	border: 1px solid var(--ui-border-soft);
	border-radius: var(--ui-radius-md);
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 0.45rem;
	padding: 0 0.65rem;
	position: relative;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.app-topbar-search i {
	color: #8f9fc4;
}

.app-topbar-search input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	outline: none;
	font-size: 0.9rem;
	color: #33415f;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.app-topbar-search kbd,
.app-topbar-search-kbd {
	flex: 0 0 auto;
	white-space: nowrap;
	writing-mode: horizontal-tb;
	font-size: 0.72rem;
	background: #fff;
	color: #8091b8;
	border: 1px solid #d9e1f5;
	border-radius: 0.4rem;
	padding: 0.06rem 0.35rem;
	line-height: 1.2;
}

.global-search-dropdown {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 8px);
	z-index: 40;
	background: var(--ui-surface-1);
	border: 1px solid #dbe4f6;
	border-radius: var(--ui-radius-md);
	box-shadow: var(--ui-shadow-md);
	max-height: 320px;
	overflow-y: auto;
	padding: 0.35rem;
}

.global-search-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.7rem;
	padding: 0.5rem 0.55rem;
	border-radius: 0.62rem;
	text-decoration: none;
	transition: background-color 0.16s ease;
}

.global-search-item:hover,
.global-search-item.active {
	background: #eef4ff;
}

.global-search-item-title {
	color: #1f2a44;
	font-size: 0.86rem;
	font-weight: 600;
}

.global-search-item-subtitle {
	color: #6b7ea8;
	font-size: 0.78rem;
}

.app-topbar-search:focus-within {
	border-color: var(--ui-border-strong);
	background: var(--ui-surface-1);
	box-shadow: var(--ui-focus-ring);
}

.app-topbar-quote-slot {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.app-topbar-quote-slot:has(.app-topbar-quote.is-empty) {
	display: none;
}

.app-topbar-quote {
	--quote-accent-1: #2563eb;
	--quote-accent-2: #3b82f6;
	--quote-accent-3: #60a5fa;
	--quote-accent-4: #1d4ed8;
	position: relative;
	flex: 0 1 auto;
	width: min(30rem, 100%);
	max-width: 30rem;
	height: 2.45rem;
	border-radius: 999px;
	padding: 1px;
	overflow: hidden;
	isolation: isolate;
	box-shadow:
		0 10px 28px rgba(37, 99, 235, 0.12),
		0 0 0 1px rgba(59, 130, 246, 0.1);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.app-topbar-quote::before {
	content: "";
	position: absolute;
	inset: -120%;
	background: conic-gradient(
		from 0deg,
		var(--quote-accent-1),
		var(--quote-accent-3),
		var(--quote-accent-2),
		var(--quote-accent-4),
		var(--quote-accent-1)
	);
	animation: appTopbarQuoteSpin 7s linear infinite;
	z-index: 0;
}

.app-topbar-quote-aurora {
	position: absolute;
	inset: 1px;
	border-radius: inherit;
	background:
		radial-gradient(circle at 18% 50%, rgba(37, 99, 235, 0.18), transparent 52%),
		radial-gradient(circle at 82% 50%, rgba(96, 165, 250, 0.16), transparent 48%);
	opacity: 0.85;
	z-index: 1;
	pointer-events: none;
	animation: appTopbarQuoteAurora 5.5s ease-in-out infinite alternate;
}

.app-topbar-quote-ring {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
	z-index: 2;
	pointer-events: none;
}

.app-topbar-quote-inner {
	position: absolute;
	inset: 1px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 0.9rem;
	border-radius: inherit;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 247, 255, 0.9));
	backdrop-filter: blur(14px) saturate(1.2);
	overflow: hidden;
}

.app-topbar-quote-text {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: center;
	font-size: 0.84rem;
	font-weight: 650;
	letter-spacing: 0.015em;
	background: linear-gradient(
		90deg,
		#1e40af 0%,
		#2563eb 28%,
		#3b82f6 52%,
		#60a5fa 78%,
		#1e40af 100%
	);
	background-size: 220% auto;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: appTopbarQuoteTextShift 8s linear infinite;
	transition: opacity 0.34s ease, transform 0.34s ease, filter 0.34s ease;
}

.app-topbar-quote-glint {
	position: absolute;
	top: 0;
	bottom: 0;
	left: -40%;
	width: 38%;
	background: linear-gradient(
		105deg,
		transparent 0%,
		rgba(255, 255, 255, 0.08) 35%,
		rgba(255, 255, 255, 0.72) 50%,
		rgba(255, 255, 255, 0.08) 65%,
		transparent 100%
	);
	transform: skewX(-18deg);
	animation: appTopbarQuoteGlint 4.8s ease-in-out infinite;
	pointer-events: none;
}

.app-topbar-quote:hover {
	transform: translateY(-1px);
	box-shadow:
		0 14px 34px rgba(37, 99, 235, 0.18),
		0 0 0 1px rgba(59, 130, 246, 0.16);
}

.app-topbar-quote.is-visible .app-topbar-quote-inner {
	animation: appTopbarQuoteEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-topbar-quote.is-switching .app-topbar-quote-text {
	opacity: 0;
	transform: translateY(7px);
	filter: blur(5px);
}

.app-topbar-quote.is-empty {
	display: none !important;
}

@keyframes appTopbarQuoteSpin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes appTopbarQuoteAurora {
	from {
		opacity: 0.62;
		transform: translateX(-2%);
	}
	to {
		opacity: 0.95;
		transform: translateX(2%);
	}
}

@keyframes appTopbarQuoteTextShift {
	to {
		background-position: 220% center;
	}
}

@keyframes appTopbarQuoteGlint {
	0%,
	100% {
		left: -45%;
		opacity: 0;
	}
	18% {
		opacity: 0;
	}
	42% {
		left: 120%;
		opacity: 1;
	}
	58% {
		opacity: 0;
	}
}

@keyframes appTopbarQuoteEnter {
	from {
		opacity: 0;
		transform: scale(0.985);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.app-topbar-quote::before,
	.app-topbar-quote-aurora,
	.app-topbar-quote-text,
	.app-topbar-quote-glint,
	.app-topbar-quote.is-visible .app-topbar-quote-inner {
		animation: none;
	}

	.app-topbar-quote.is-switching .app-topbar-quote-text {
		filter: none;
	}
}

.app-topbar-right {
	margin-left: auto;
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 0.7rem;
	min-width: 0;
}

.app-topbar-username {
	max-width: 6.5rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.app-topbar-visitor {
	flex: 0 1 auto;
	align-items: center;
	min-width: 0;
	max-width: min(18rem, 36vw);
}

.app-topbar-visitor-box {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	max-width: 100%;
	min-height: 2rem;
	padding: 0 0.65rem;
	border-radius: var(--ui-radius-sm);
	border: 1px solid var(--ui-border-soft);
	background: var(--ui-surface-1);
	color: var(--ui-text-muted);
	min-width: 0;
}

.app-topbar-visitor-part {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-width: 0;
	flex: 0 1 auto;
}

.app-topbar-visitor-part--city {
	flex: 1 1 auto;
	max-width: 8rem;
}

.app-topbar-visitor-sep {
	flex: 0 0 auto;
	width: 3px;
	height: 3px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--ui-text-muted) 55%, transparent);
}

.app-topbar-visitor-part > i {
	flex: 0 0 auto;
	width: 1rem;
	font-size: 0.82rem;
	text-align: center;
	color: color-mix(in srgb, var(--ui-text-muted) 88%, var(--ui-brand));
}

.app-topbar-visitor-ip,
.app-topbar-visitor-city {
	min-width: 0;
	font-size: 0.78rem;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.app-topbar-visitor-ip {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-variant-numeric: tabular-nums;
	color: var(--ui-text-main);
	max-width: 7.5rem;
}

.app-topbar-visitor-city {
	color: var(--ui-text-muted);
}

.app-topbar-icon-link {
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: #eef2fb;
	color: #526087;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #dce2f3;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.app-topbar-icon-link:hover {
	background: #e5edff;
	box-shadow: var(--ui-shadow-sm);
	transform: translateY(-1px);
}

.app-topbar-user {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	color: #28344f;
	font-size: 0.88rem;
	font-weight: 600;
	min-width: 0;
	flex-shrink: 0;
	transition: color 0.18s ease;
}

.app-topbar-user:hover {
	color: #1e293b;
}

.app-avatar {
	--avatar-accent: #6366f1;
	--avatar-accent-soft: #8b5cf6;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.38), transparent 52%),
		linear-gradient(145deg, var(--avatar-accent) 0%, var(--avatar-accent-soft) 52%, #3b82f6 100%);
	color: #fff;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1;
	text-transform: uppercase;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.34),
		0 0 0 1px rgba(99, 102, 241, 0.14),
		0 6px 16px rgba(79, 70, 229, 0.22);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.app-topbar-user:hover .app-avatar {
	transform: translateY(-1px);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.38),
		0 0 0 1px rgba(99, 102, 241, 0.22),
		0 8px 18px rgba(79, 70, 229, 0.28);
}

.app-topbar-user-static {
	cursor: default;
}

.app-topbar-user-static:hover {
	color: #28344f;
}

.app-topbar-user-static:hover .app-avatar {
	transform: none;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.34),
		0 0 0 1px rgba(99, 102, 241, 0.14),
		0 6px 16px rgba(79, 70, 229, 0.22);
}

.app-main-body {
	flex: 1 1 auto;
	padding: 0.8rem 1.5rem 1.4rem;
	min-width: 0;
}

[data-bs-theme="light"] .site-theme-btn .theme-toggle-icon-dark {
	display: none !important;
}

[data-bs-theme="dark"] .site-theme-btn .theme-toggle-icon-light {
	display: none !important;
}

[data-bs-theme="dark"] .app-shell {
	background: #121724;
	color: #d8e0f7;
}

[data-bs-theme="dark"] .app-topbar {
	background: linear-gradient(to bottom, rgba(18, 23, 36, 0.96), rgba(18, 23, 36, 0.82));
}

[data-bs-theme="dark"] .app-topbar-search {
	background: #1f2738;
	border-color: #33405a;
}

[data-bs-theme="dark"] .app-topbar-search input {
	color: #d3defa;
}

[data-bs-theme="dark"] .app-topbar-search kbd {
	background: #2a344d;
	color: #9fb1df;
	border-color: #40507a;
}

[data-bs-theme="dark"] .app-topbar-search:focus-within {
	border-color: #556892;
	background: #242f44;
	box-shadow: 0 0 0 3px rgba(117, 142, 219, 0.22);
}

[data-bs-theme="dark"] .app-topbar-quote {
	box-shadow:
		0 12px 30px rgba(15, 23, 42, 0.42),
		0 0 0 1px rgba(59, 130, 246, 0.18);
}

[data-bs-theme="dark"] .app-topbar-quote-inner {
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(12, 20, 38, 0.9));
}

[data-bs-theme="dark"] .app-topbar-quote-ring {
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .app-topbar-quote-text {
	background: linear-gradient(
		90deg,
		#93c5fd 0%,
		#60a5fa 28%,
		#3b82f6 52%,
		#bfdbfe 78%,
		#93c5fd 100%
	);
	background-size: 220% auto;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

[data-bs-theme="dark"] .app-topbar-quote:hover {
	box-shadow:
		0 16px 36px rgba(15, 23, 42, 0.55),
		0 0 0 1px rgba(96, 165, 250, 0.24);
}

[data-bs-theme="dark"] .global-search-dropdown {
	background: #1d273b;
	border-color: #33415f;
	box-shadow: 0 12px 28px rgba(2, 6, 23, 0.45);
}

[data-bs-theme="dark"] .app-topbar-icon-link {
	background: #232e43;
	border-color: #334463;
	color: #b8c8ef;
}

[data-bs-theme="dark"] .app-topbar-user {
	color: #dbe4fb;
}

[data-bs-theme="dark"] .app-topbar-user:hover {
	color: #f8fafc;
}

[data-bs-theme="dark"] .app-avatar {
	--avatar-accent: #6366f1;
	--avatar-accent-soft: #7c3aed;
	background:
		radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 52%),
		linear-gradient(145deg, #4f46e5 0%, #7c3aed 52%, #2563eb 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.16),
		0 0 0 1px rgba(129, 140, 248, 0.28),
		0 6px 16px rgba(30, 27, 75, 0.45);
}

[data-bs-theme="dark"] .app-topbar-user:hover .app-avatar {
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.2),
		0 0 0 1px rgba(165, 180, 252, 0.34),
		0 8px 18px rgba(30, 27, 75, 0.55);
}

[data-bs-theme="dark"] .app-topbar-user-static:hover {
	color: #dbe4fb;
}

[data-bs-theme="dark"] .app-topbar-user-static:hover .app-avatar {
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.16),
		0 0 0 1px rgba(129, 140, 248, 0.28),
		0 6px 16px rgba(30, 27, 75, 0.45);
}

[data-bs-theme="dark"] .app-topbar-visitor-box {
	background: #1f2738;
	border-color: #33405a;
	color: #9fb1df;
}

[data-bs-theme="dark"] .app-topbar-visitor-ip {
	color: #d3defa;
}

[data-bs-theme="dark"] .app-topbar-visitor-city {
	color: #9fb1df;
}

[data-bs-theme="dark"] .global-search-item:hover,
[data-bs-theme="dark"] .global-search-item.active {
	background: #2a3a56;
}

[data-bs-theme="dark"] .global-search-item-title {
	color: #d9e4ff;
}

[data-bs-theme="dark"] .global-search-item-subtitle {
	color: #9db2df;
}

[data-bs-theme="dark"] .app-mobile-nav-btn {
	background: #243352;
	border-color: #40507a;
	color: #e8efff;
}

[data-bs-theme="dark"] .app-mobile-nav-btn:hover,
[data-bs-theme="dark"] .app-mobile-nav-btn:focus {
	background: #2d3f61;
	border-color: #556892;
	color: #fff;
}

@media (max-width: 991.98px) {
	.app-sidebar {
		display: none;
	}

	.app-main {
		margin-left: 0;
	}

	.app-topbar {
		height: auto;
		min-height: 3.25rem;
		padding: 0.5rem 0.75rem;
		gap: 0.45rem;
	}

	.app-mobile-nav-btn {
		flex: 0 0 auto;
	}

	.app-topbar-leading {
		flex: 1 1 auto;
		min-width: 0;
	}

	.app-topbar-search {
		flex: 1 1 auto;
		max-width: none;
		height: 2.15rem;
		padding: 0 0.5rem;
	}

	.app-topbar-search input {
		font-size: 16px;
	}

	.app-topbar-right {
		gap: 0.35rem;
	}

	.app-main-body {
		padding: 0.7rem 0.75rem 1.2rem;
	}
}

@media (max-width: 575.98px) {
	.app-topbar-username {
		display: none !important;
	}
}

.app-mobile-nav {
	width: min(280px, 90vw);
	--bs-offcanvas-bg: transparent;
	--bs-offcanvas-color: #dce5ff;
	background: linear-gradient(180deg, #0f1a35 0%, #0a1228 100%) !important;
	color: #dce5ff !important;
	border-right: 1px solid rgba(255, 255, 255, 0.06);
	box-shadow: 12px 0 36px rgba(6, 12, 30, 0.28);
}

html[data-bs-theme="dark"] .app-mobile-nav.offcanvas,
html[data-bs-theme="light"] .app-mobile-nav.offcanvas {
	background: linear-gradient(180deg, #0f1a35 0%, #0a1228 100%) !important;
	color: #dce5ff !important;
	border-color: rgba(255, 255, 255, 0.06) !important;
}

.app-mobile-nav .offcanvas-header {
	padding: 1rem 1rem 0.85rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: transparent !important;
}

html[data-bs-theme="dark"] .app-mobile-nav .offcanvas-header {
	background: transparent !important;
	border-bottom-color: rgba(255, 255, 255, 0.08) !important;
	color: #f8fbff !important;
}

.app-mobile-nav .offcanvas-body {
	background: transparent !important;
	padding: 0;
	color: inherit;
}

html[data-bs-theme="dark"] .app-mobile-nav .offcanvas-body {
	background: transparent !important;
	color: #dce5ff !important;
}

.app-mobile-nav .offcanvas-title {
	color: #f8fbff;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.app-mobile-nav-close {
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	padding: 0;
	margin: 0;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.1);
	opacity: 0.95;
	transition: background-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.app-mobile-nav-close:hover,
.app-mobile-nav-close:focus {
	opacity: 1;
	background-color: rgba(255, 255, 255, 0.18);
	transform: scale(1.04);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16);
}

.app-mobile-nav-close:active {
	transform: scale(0.96);
}

.app-mobile-nav-inner {
	padding: 0.8rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
}

.app-mobile-nav-inner .app-nav-group {
	gap: 0.1rem;
}

.app-mobile-nav-body {
	display: flex;
	flex-direction: column;
	min-height: 0;
	height: 100%;
}

.app-mobile-nav-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: rgba(138, 160, 255, 0.35) transparent;
}

.app-mobile-nav-scroll::-webkit-scrollbar {
	width: 5px;
}

.app-mobile-nav-scroll::-webkit-scrollbar-thumb {
	background: rgba(138, 160, 255, 0.35);
	border-radius: 999px;
}

.app-mobile-nav-bottom {
	flex-shrink: 0;
	margin-top: 0;
	padding: 0.75rem 0.8rem 0.9rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(8, 14, 32, 0.35);
}

.app-site-footer {
	flex-shrink: 0;
	padding: 0.85rem 1.25rem 1.1rem;
	text-align: center;
	font-size: 0.75rem;
	color: #94a3b8;
	border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.app-site-footer a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.app-site-footer a:hover {
	color: #64748b;
}

.site-beian-row {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
}

.site-beian-sep {
	opacity: 0.55;
	user-select: none;
}

.site-beian-psb {
	display: inline-flex;
	align-items: center;
	gap: 0.28rem;
}

.site-beian-psb-icon {
	display: block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

[data-bs-theme="dark"] .app-site-footer {
	color: #7f93bc;
	border-top-color: rgba(148, 163, 184, 0.12);
}

[data-bs-theme="dark"] .app-site-footer a:hover {
	color: #b8c9ea;
}
