/* ==========================================================================
   极乐授权系统 · 设计系统 v2
   深色科技感 · 玻璃拟态 · 渐变光感
   ========================================================================== */

:root {
	/* 底色层 */
	--bg-base: #06080f;
	--bg-deep: #0a0d1c;
	--bg-raise: #111530;

	/* 玻璃层 */
	--glass: rgba(255, 255, 255, .05);
	--glass-strong: rgba(255, 255, 255, .085);
	--glass-line: rgba(255, 255, 255, .09);
	--glass-line-hi: rgba(255, 255, 255, .17);

	/* 主色 */
	--brand: #6d5bff;
	--brand-2: #9b6bff;
	--brand-3: #3ea9ff;
	--brand-soft: rgba(109, 91, 255, .16);
	--brand-glow: rgba(109, 91, 255, .5);

	/* 语义色 */
	--ok: #2fd39a;
	--ok-soft: rgba(47, 211, 154, .14);
	--warn: #ffb43d;
	--warn-soft: rgba(255, 180, 61, .14);
	--danger: #ff5f7e;
	--danger-soft: rgba(255, 95, 126, .14);
	--info: #3ea9ff;
	--info-soft: rgba(62, 169, 255, .14);
	--muted: #8f9ac4;
	--muted-2: #69739c;

	/* 文字 */
	--text: #eef0ff;
	--text-2: #b9c0e6;
	--text-3: #8a95bf;

	/* 尺寸 */
	--r-sm: 9px;
	--r: 13px;
	--r-lg: 18px;
	--r-xl: 24px;
	--sidebar: 248px;

	--font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "SFMono-Regular", "JetBrains Mono", "Roboto Mono", Consolas, "Liberation Mono", Menlo, monospace;

	--shadow: 0 24px 60px -22px rgba(0, 0, 0, .8);
	--shadow-sm: 0 12px 30px -14px rgba(0, 0, 0, .62);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; min-height: 100%; }

body {
	background: var(--bg-base);
	color: var(--text);
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.62;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* 背景光晕 */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(820px 560px at 10% -10%, rgba(109, 91, 255, .34), transparent 60%),
		radial-gradient(720px 520px at 94% 2%, rgba(62, 169, 255, .22), transparent 58%),
		radial-gradient(980px 760px at 60% 115%, rgba(155, 107, 255, .2), transparent 60%),
		var(--bg-base);
}

/* 细网格 */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(circle at 50% -5%, #000 0%, transparent 75%);
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, .13);
	border-radius: 8px;
	border: 2px solid transparent;
	background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .24); background-clip: content-box; }

/* 渐变文字 */
.grad {
	background: linear-gradient(120deg, #a99bff, #6fc6ff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   布局骨架
   ========================================================================== */

.shell { display: flex; min-height: 100vh; }

.sidebar {
	position: fixed;
	inset: 0 auto 0 0;
	width: var(--sidebar);
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 20px 14px;
	background: linear-gradient(180deg, rgba(22, 26, 56, .74), rgba(10, 13, 28, .86));
	border-right: 1px solid var(--glass-line);
	backdrop-filter: blur(26px);
	z-index: 20;
	overflow-y: auto;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 10px 18px;
}

.brand__mark {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	font-size: 20px;
	background: linear-gradient(135deg, var(--brand), var(--brand-3));
	box-shadow: 0 10px 24px -6px var(--brand-glow);
	flex: none;
}

.brand__text b { display: block; font-size: 15px; letter-spacing: .3px; }
.brand__text span {
	display: block;
	font-size: 10.5px;
	color: var(--muted-2);
	letter-spacing: 1.6px;
	text-transform: uppercase;
}

.nav-group {
	margin-top: 14px;
	padding: 0 12px 6px;
	font-size: 10px;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--muted-2);
	font-weight: 700;
}

.nav-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 11px;
	color: var(--text-2);
	font-size: 13.5px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: .18s;
	position: relative;
}

.nav-item i {
	font-style: normal;
	font-size: 17px;
	opacity: .92;
	flex: none;
	display: inline-flex;
}

.nav-item:hover { background: var(--glass); color: var(--text); }
.nav-item.is-active {
	background: linear-gradient(90deg, var(--brand-soft), rgba(109, 91, 255, .03));
	border-color: rgba(109, 91, 255, .32);
	color: #fff;
}
.nav-item.is-active i { opacity: 1; }

.nav-item.is-active::before {
	content: "";
	position: absolute;
	left: -14px;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 22px;
	border-radius: 0 3px 3px 0;
	background: linear-gradient(180deg, var(--brand), var(--brand-3));
	box-shadow: 0 0 12px var(--brand-glow);
}

.nav-item__badge {
	margin-left: auto;
	min-width: 20px;
	height: 19px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--danger);
	color: #fff;
	font-size: 11px;
	line-height: 19px;
	text-align: center;
	font-weight: 600;
}
.nav-item__badge--soft { background: var(--brand); }

.sidebar__foot {
	margin-top: auto;
	padding: 14px 12px 4px;
	border-top: 1px solid var(--glass-line);
	font-size: 11.5px;
	color: var(--muted-2);
	line-height: 1.7;
}

.main {
	flex: 1;
	margin-left: var(--sidebar);
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 15;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 15px 30px;
	background: rgba(6, 8, 15, .7);
	border-bottom: 1px solid var(--glass-line);
	backdrop-filter: blur(20px);
}

.topbar__title { font-size: 17px; font-weight: 600; }
.topbar__crumb { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.topbar__spacer { flex: 1; }

.content { padding: 26px 30px 64px; max-width: 1500px; width: 100%; }

/* ==========================================================================
   玻璃卡片
   ========================================================================== */

.card {
	position: relative;
	background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .018)), var(--bg-raise);
	border: 1px solid var(--glass-line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .05);
	backdrop-filter: blur(18px);
	animation: fadeUp .45s both;
}

.card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 1px;
	border-radius: var(--r-lg) var(--r-lg) 0 0;
	background: linear-gradient(90deg, transparent, rgba(155, 107, 255, .55), transparent);
	opacity: .7;
	pointer-events: none;
}

.card--pad { padding: 22px; }

.card__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--glass-line);
}
.card__head h3 { font-size: 15px; font-weight: 600; }
.card__head .sub { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.card__head .sp { flex: 1; }
.card__body { padding: 20px; }
.card__body--flush { padding: 0; }

/* 统计卡 */
.stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 14px;
	margin-bottom: 20px;
}

.stat {
	position: relative;
	overflow: hidden;
	padding: 19px 20px;
	border-radius: var(--r-lg);
	background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)), var(--bg-raise);
	border: 1px solid var(--glass-line);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
	animation: fadeUp .45s both;
}
.stats .stat:nth-child(2) { animation-delay: .05s; }
.stats .stat:nth-child(3) { animation-delay: .1s; }
.stats .stat:nth-child(4) { animation-delay: .15s; }
.stats .stat:nth-child(5) { animation-delay: .2s; }

.stat::after {
	content: "";
	position: absolute;
	right: -34px;
	top: -34px;
	width: 110px;
	height: 110px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--brand-glow), transparent 68%);
	opacity: .55;
	transition: .3s;
}
.stat:hover::after { opacity: .8; }

.stat__label {
	font-size: 12.5px;
	color: var(--text-3);
	display: flex;
	align-items: center;
	gap: 7px;
}
.stat__value {
	font-size: 30px;
	font-weight: 680;
	line-height: 1.25;
	margin-top: 7px;
	letter-spacing: -.6px;
	font-variant-numeric: tabular-nums;
}
.stat__foot {
	font-size: 12px;
	color: var(--muted-2);
	margin-top: 5px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.trend-up { color: var(--ok); }
.trend-down { color: var(--danger); }

/* ==========================================================================
   按钮
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 9px 16px;
	border-radius: 11px;
	border: 1px solid var(--glass-line-hi);
	background: var(--glass-strong);
	color: var(--text);
	font-size: 13.5px;
	font-weight: 550;
	cursor: pointer;
	transition: .18s;
	white-space: nowrap;
	line-height: 1.4;
}
.btn .ico { font-size: 1.05em; }

.btn:hover { background: rgba(255, 255, 255, .13); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	border-color: transparent;
	box-shadow: 0 10px 26px -10px var(--brand-glow);
	color: #fff;
}
.btn--primary::after {
	content: "";
	position: absolute;
	top: 0;
	left: -130%;
	width: 55%;
	height: 100%;
	background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .4), transparent);
	transform: skewX(-18deg);
	transition: left .6s ease;
}
.btn--primary:hover { background: linear-gradient(135deg, #7b6aff, #a97bff); box-shadow: 0 14px 32px -10px var(--brand-glow); }
.btn--primary:hover::after { left: 130%; }

.btn--ghost { background: transparent; border-color: var(--glass-line); }
.btn--ghost:hover { background: var(--glass); }
.btn--danger { color: var(--danger); border-color: rgba(255, 95, 126, .36); background: var(--danger-soft); }
.btn--danger:hover { background: rgba(255, 95, 126, .22); }
.btn--sm { padding: 6px 12px; font-size: 12.5px; border-radius: 9px; }
.btn--block { width: 100%; }
.btn--lg { padding: 12px 22px; font-size: 15px; border-radius: 13px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.btn-link { background: none; border: 0; color: var(--brand-3); cursor: pointer; padding: 0; font-size: inherit; }
.btn-link:hover { text-decoration: underline; }

/* ==========================================================================
   表单
   ========================================================================== */

.field { margin-bottom: 16px; }
.field__label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 7px; font-weight: 550; }
.field__label .req { color: var(--danger); margin-left: 3px; }

.input, .select, .textarea {
	width: 100%;
	padding: 11px 13px;
	border-radius: 11px;
	background: rgba(5, 7, 17, .65);
	border: 1px solid var(--glass-line);
	color: var(--text);
	transition: .18s;
	outline: none;
}
.input::placeholder, .textarea::placeholder { color: #5a638c; }
.input:focus, .select:focus, .textarea:focus {
	border-color: rgba(109, 91, 255, .7);
	box-shadow: 0 0 0 3px rgba(109, 91, 255, .18);
	background: rgba(5, 7, 17, .9);
}
.textarea { resize: vertical; min-height: 88px; line-height: 1.65; }

.select {
	appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238f9ac4' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 34px;
	cursor: pointer;
}
.select option { background: var(--bg-deep); color: var(--text); }

.field__hint { font-size: 11.5px; color: var(--muted-2); margin-top: 6px; line-height: 1.6; }
.field__error { font-size: 11.5px; color: var(--danger); margin-top: 6px; display: none; }
.field.is-error .input, .field.is-error .select, .field.is-error .textarea { border-color: rgba(255, 95, 126, .6); }
.field.is-error .field__error { display: block; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }

/* 复选 / 单选卡 */
.check {
	display: flex;
	gap: 11px;
	padding: 13px 15px;
	border-radius: var(--r);
	border: 1px solid var(--glass-line);
	background: rgba(255, 255, 255, .025);
	cursor: pointer;
	transition: .18s;
	align-items: flex-start;
}
.check:hover { border-color: var(--glass-line-hi); background: var(--glass); }
.check input { margin: 4px 0 0; accent-color: var(--brand); width: 15px; height: 15px; flex: none; }
.check b { display: block; font-size: 13.5px; font-weight: 560; }
.check span { font-size: 12px; color: var(--muted-2); line-height: 1.6; }
.check.is-checked { border-color: rgba(109, 91, 255, .5); background: linear-gradient(135deg, var(--brand-soft), rgba(109, 91, 255, .02)); }

/* 选择卡（套餐） */
.pick {
	position: relative;
	padding: 18px;
	border-radius: var(--r-lg);
	border: 1px solid var(--glass-line);
	background: rgba(255, 255, 255, .025);
	cursor: pointer;
	transition: .2s;
}
.pick:hover { border-color: var(--glass-line-hi); transform: translateY(-2px); }
.pick.is-checked {
	border-color: rgba(109, 91, 255, .64);
	background: linear-gradient(150deg, rgba(109, 91, 255, .18), rgba(62, 169, 255, .05));
	box-shadow: 0 16px 38px -16px var(--brand-glow);
}
.pick__tick {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 1.5px solid var(--glass-line-hi);
	display: grid;
	place-items: center;
	font-size: 11px;
	color: transparent;
}
.pick.is-checked .pick__tick { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; }
.pick__name { font-size: 15px; font-weight: 600; }
.pick__meta { font-size: 12.5px; color: var(--muted-2); margin-top: 3px; }
.pick__price { font-size: 24px; font-weight: 680; margin: 12px 0 4px; }
.pick__price small { font-size: 12px; color: var(--muted-2); font-weight: 400; }
.pick__list { margin: 12px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--text-2); }
.pick__list li { padding: 4px 0 4px 20px; position: relative; }
.pick__list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-size: 12px; }

/* ==========================================================================
   表格
   ========================================================================== */

.table-wrap { overflow-x: auto; }
table.tb { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
table.tb th {
	text-align: left;
	padding: 13px 16px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .7px;
	text-transform: uppercase;
	color: var(--muted-2);
	background: rgba(255, 255, 255, .03);
	border-bottom: 1px solid var(--glass-line);
	white-space: nowrap;
}
table.tb td {
	padding: 14px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, .06);
	color: var(--text-2);
	vertical-align: middle;
}
table.tb tbody tr { transition: .15s; }
table.tb tbody tr:hover { background: rgba(255, 255, 255, .035); }
table.tb tbody tr:last-child td { border-bottom: 0; }
table.tb .strong { color: var(--text); font-weight: 560; }
table.tb .num { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   徽章
   ========================================================================== */

.badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 600;
	border: 1px solid transparent;
	white-space: nowrap;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge--ok { color: var(--ok); background: var(--ok-soft); border-color: rgba(47, 211, 154, .3); }
.badge--warn { color: var(--warn); background: var(--warn-soft); border-color: rgba(255, 180, 61, .3); }
.badge--danger { color: var(--danger); background: var(--danger-soft); border-color: rgba(255, 95, 126, .3); }
.badge--info { color: var(--info); background: var(--info-soft); border-color: rgba(62, 169, 255, .3); }
.badge--brand { color: #b6a9ff; background: var(--brand-soft); border-color: rgba(109, 91, 255, .34); }
.badge--muted { color: var(--muted); background: rgba(255, 255, 255, .06); border-color: var(--glass-line); }

.tag {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 7px;
	font-size: 11px;
	background: rgba(255, 255, 255, .06);
	border: 1px solid var(--glass-line);
	color: var(--text-3);
	font-family: var(--mono);
}

/* 授权码 / 密钥展示 */
.code-cell {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--mono);
	font-size: 12.5px;
	color: #cbd2f7;
	background: rgba(5, 7, 17, .72);
	border: 1px solid var(--glass-line);
	border-radius: 9px;
	padding: 5px 8px 5px 11px;
}
.copy-btn {
	border: 0;
	background: rgba(255, 255, 255, .07);
	color: var(--text-3);
	cursor: pointer;
	border-radius: 6px;
	padding: 3px 7px;
	font-size: 11px;
	transition: .15s;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.copy-btn:hover { background: var(--brand-soft); color: #c3b9ff; }
.copy-btn.is-done { background: var(--ok-soft); color: var(--ok); }

/* ==========================================================================
   其他组件
   ========================================================================== */

/* 步骤条 */
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 26px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 10px; }
.step__dot {
	width: 30px; height: 30px; border-radius: 50%;
	display: grid; place-items: center; font-size: 12.5px; font-weight: 600;
	background: rgba(255, 255, 255, .06);
	border: 1px solid var(--glass-line);
	color: var(--muted);
	flex: none;
}
.step__txt { font-size: 13px; color: var(--muted); }
.step__txt small { display: block; font-size: 11px; color: var(--muted-2); }
.step.is-done .step__dot { background: var(--ok-soft); border-color: rgba(47, 211, 154, .5); color: var(--ok); }
.step.is-done .step__txt { color: var(--text-2); }
.step.is-active .step__dot {
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	border-color: transparent; color: #fff;
	box-shadow: 0 0 0 4px var(--brand-soft);
}
.step.is-active .step__txt { color: var(--text); font-weight: 560; }
.step__line { width: 40px; height: 1px; background: var(--glass-line-hi); margin: 0 12px; flex: none; }

/* 进度时间轴 */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
	content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
	background: linear-gradient(180deg, var(--brand), rgba(109, 91, 255, .05));
}
.tl-item { position: relative; padding-bottom: 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
	content: ""; position: absolute; left: -26px; top: 5px; width: 12px; height: 12px;
	border-radius: 50%; background: var(--bg-deep); border: 2px solid var(--brand);
}
.tl-item.is-done::before { background: var(--ok); border-color: var(--ok); }
.tl-item.is-now::before { box-shadow: 0 0 0 4px var(--brand-soft); }
.tl-item b { font-size: 13.5px; font-weight: 560; display: block; }
.tl-item span { font-size: 12px; color: var(--muted-2); }
.tl-item p { font-size: 12.5px; color: var(--text-3); margin-top: 5px; }

/* 空状态 */
.empty { text-align: center; padding: 56px 20px; color: var(--muted-2); }
.empty__ico { font-size: 40px; opacity: .5; margin-bottom: 12px; }
.empty p { font-size: 13px; margin-bottom: 16px; }

/* 提示条 */
.alert {
	display: flex;
	gap: 11px;
	padding: 13px 15px;
	border-radius: var(--r);
	border: 1px solid var(--glass-line);
	background: var(--glass);
	font-size: 12.8px;
	line-height: 1.7;
	color: var(--text-2);
	margin-bottom: 16px;
}
.alert b { color: var(--text); }
.alert--info { border-color: rgba(62, 169, 255, .32); background: var(--info-soft); }
.alert--warn { border-color: rgba(255, 180, 61, .32); background: var(--warn-soft); }
.alert--danger { border-color: rgba(255, 95, 126, .32); background: var(--danger-soft); }
.alert--ok { border-color: rgba(47, 211, 154, .32); background: var(--ok-soft); }
.alert__ico { flex: none; font-size: 15px; line-height: 1.5; }

/* 分段控件 */
.seg {
	display: inline-flex;
	gap: 3px;
	padding: 3px;
	border-radius: 12px;
	background: rgba(5, 7, 17, .6);
	border: 1px solid var(--glass-line);
}
.seg button {
	border: 0;
	background: transparent;
	color: var(--text-3);
	padding: 7px 15px;
	border-radius: 9px;
	cursor: pointer;
	font-size: 12.8px;
	transition: .16s;
}
.seg button:hover { color: var(--text); }
.seg button.is-on { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 6px 16px -8px var(--brand-glow); }

/* 工具条 */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .sp { flex: 1; }
.toolbar .select, .toolbar .input { width: auto; min-width: 150px; padding: 8px 12px; }
.toolbar .select { padding-right: 32px; }

/* 分页 */
.pager {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 14px 20px; border-top: 1px solid var(--glass-line);
	font-size: 12.5px; color: var(--muted-2); flex-wrap: wrap;
}
.pager__nums { display: flex; gap: 5px; }
.pager__nums button {
	min-width: 31px; height: 31px; border-radius: 8px;
	border: 1px solid var(--glass-line); background: transparent;
	color: var(--text-3); cursor: pointer; transition: .15s;
}
.pager__nums button:hover { background: var(--glass); color: var(--text); }
.pager__nums button.is-on { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; }

/* 弹窗 */
.modal-mask {
	position: fixed; inset: 0; z-index: 90;
	background: rgba(4, 5, 14, .74);
	backdrop-filter: blur(6px);
	display: none; align-items: center; justify-content: center;
	padding: 24px; overflow-y: auto;
}
.modal-mask.is-open { display: flex; }
.modal {
	width: 100%; max-width: 560px;
	background: linear-gradient(160deg, rgba(26, 30, 58, .97), rgba(11, 14, 31, .99));
	border: 1px solid var(--glass-line-hi);
	border-radius: var(--r-xl);
	box-shadow: var(--shadow);
	animation: pop .22s ease;
	margin: auto;
	position: relative;
}
.modal::before {
	content: ""; position: absolute; inset: 0; border-radius: var(--r-xl);
	padding: 1px; pointer-events: none;
	background: linear-gradient(160deg, rgba(155, 107, 255, .5), rgba(62, 169, 255, .12));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
	opacity: .6;
}
.modal--wide { max-width: 780px; }

@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.modal__head { display: flex; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--glass-line); }
.modal__head h3 { font-size: 16px; font-weight: 600; }
.modal__head .sp { flex: 1; }
.modal__close {
	border: 0; background: rgba(255, 255, 255, .07); color: var(--text-3);
	width: 30px; height: 30px; border-radius: 9px; cursor: pointer; font-size: 15px; line-height: 1;
}
.modal__close:hover { background: var(--danger-soft); color: var(--danger); }
.modal__body { padding: 22px; }
.modal__foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 22px; border-top: 1px solid var(--glass-line); }

/* Toast：固定在左上角、距顶部约 1cm（38px）处，自上而下堆叠 */
.toasts { position: fixed; left: 22px; right: auto; top: 38px; bottom: auto; z-index: 120; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 44px)); }
.toast {
	display: flex; align-items: center; gap: 10px;
	min-width: 240px; padding: 13px 16px; border-radius: var(--r);
	background: linear-gradient(150deg, rgba(26, 30, 62, .97), rgba(13, 16, 35, .99));
	border: 1px solid var(--glass-line-hi);
	box-shadow: var(--shadow); font-size: 13px;
	animation: slideIn .24s ease;
}
.toast--ok { border-left: 3px solid var(--ok); }
.toast--err { border-left: 3px solid var(--danger); }
.toast--info { border-left: 3px solid var(--info); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* 页面自带 #toasts 锚点（如登录页）时，改为绝对定位对齐该锚点左上角，
   即「通知出现在卡片左上角」而非贴屏幕边缘；无锚点的页面仍走上面的 fixed 规则。 */
#toasts.toasts { position: absolute; top: 0; left: 0; right: auto; bottom: auto; z-index: 120; }
#toasts { position: relative; }

/* 顶栏元素 */
.user-chip {
	display: flex; align-items: center; gap: 10px;
	padding: 5px 12px 5px 5px; border-radius: 999px;
	background: var(--glass); border: 1px solid var(--glass-line); cursor: pointer; transition: .18s;
}
.user-chip:hover { border-color: var(--glass-line-hi); background: var(--glass-strong); }
.avatar {
	width: 30px; height: 30px; border-radius: 50%;
	display: grid; place-items: center; font-size: 12.5px; font-weight: 600;
	background: linear-gradient(135deg, var(--brand), var(--brand-3)); color: #fff; flex: none;
}
.user-chip b { font-size: 12.8px; font-weight: 560; }
.user-chip small { display: block; font-size: 10.5px; color: var(--muted-2); }

.icon-btn {
	width: 36px; height: 36px; border-radius: 10px;
	border: 1px solid var(--glass-line); background: var(--glass);
	color: var(--text-2); cursor: pointer;
	display: grid; place-items: center; font-size: 15px; transition: .18s; position: relative;
}
.icon-btn:hover { background: var(--glass-strong); color: #fff; }
.icon-btn__dot {
	position: absolute; top: 7px; right: 8px; width: 7px; height: 7px;
	border-radius: 50%; background: var(--danger); border: 1.5px solid var(--bg-base);
}

/* 下拉菜单 */
.menu {
	position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px;
	padding: 6px; border-radius: var(--r);
	background: linear-gradient(160deg, rgba(26, 30, 62, .98), rgba(13, 16, 35, .99));
	border: 1px solid var(--glass-line-hi); box-shadow: var(--shadow);
	display: none; z-index: 40;
}
.menu.is-open { display: block; }
.menu a, .menu button {
	display: flex; align-items: center; gap: 9px; width: 100%;
	padding: 9px 11px; border-radius: 8px; border: 0; background: transparent;
	color: var(--text-2); font-size: 13px; text-align: left; cursor: pointer;
}
.menu a:hover, .menu button:hover { background: var(--glass); color: var(--text); }
.menu hr { border: 0; border-top: 1px solid var(--glass-line); margin: 5px 3px; }
.menu .danger { color: var(--danger); }

.pos-rel { position: relative; }

/* 详情行 */
.kv { display: grid; grid-template-columns: 132px 1fr; gap: 10px 14px; font-size: 13px; }
.kv dt { color: var(--muted-2); }
.kv dd { margin: 0; color: var(--text); word-break: break-all; }

/* 进度条 */
.bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .09); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-3)); box-shadow: 0 0 10px -1px var(--brand-glow); }

/* 图表（纯 CSS 柱状） */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 200px; padding: 10px 4px 0; }
.chart__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; height: 100%; }
.chart__bar {
	width: 100%; max-width: 34px; border-radius: 7px 7px 3px 3px;
	background: linear-gradient(180deg, var(--brand-2), rgba(109, 91, 255, .22));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
	transition: .3s; position: relative;
}
.chart__col:hover .chart__bar { background: linear-gradient(180deg, var(--brand-3), var(--brand)); box-shadow: 0 0 22px -3px var(--brand-glow); }
.chart__lbl { font-size: 11px; color: var(--muted-2); }

/* 进度环 */
.ring { position: relative; width: 108px; height: 108px; }
.ring svg { transform: rotate(-90deg); }
.ring__txt { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring__txt b { font-size: 22px; font-weight: 680; display: block; }
.ring__txt small { font-size: 11px; color: var(--muted-2); }

/* 页脚说明 */
.note { font-size: 12px; color: var(--muted-2); line-height: 1.8; }

/* 两栏 */
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }
.cols-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

/* 区块标题 */
.sec-head { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.sec-head h2 { font-size: 18px; font-weight: 640; }
.sec-head .ln { flex: 1; height: 1px; background: var(--glass-line); }
.sec-head .cnt { font-size: 12.5px; color: var(--muted-2); }

@media (max-width: 1080px) { .cols { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
	:root { --sidebar: 0px; }
	.sidebar { transform: translateX(-100%); transition: .25s; width: 248px; }
	.sidebar.is-open { transform: none; box-shadow: var(--shadow); }
	.main { margin-left: 0; }
	.content { padding: 18px 16px 50px; }
	.topbar { padding: 12px 16px; }
	.grid-2, .grid-3 { grid-template-columns: 1fr; }
	.menu-toggle { display: grid !important; }
}
.menu-toggle { display: none; }

/* 线性图标系统 · CSS mask · 单色随 currentColor 变色 */
:root {
	--i-grid: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Crect x%3D'3' y%3D'3' width%3D'7.5' height%3D'7.5' rx%3D'1.6'/%3E%3Crect x%3D'13.5' y%3D'3' width%3D'7.5' height%3D'7.5' rx%3D'1.6'/%3E%3Crect x%3D'3' y%3D'13.5' width%3D'7.5' height%3D'7.5' rx%3D'1.6'/%3E%3Crect x%3D'13.5' y%3D'13.5' width%3D'7.5' height%3D'7.5' rx%3D'1.6'/%3E%3C/svg%3E");
	--i-cube: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Cpath d%3D'M12 2.5l8.5 4.8v9.4L12 21.5 3.5 16.7V7.3z'/%3E%3Cpath d%3D'M3.6 7.3L12 12l8.4-4.7M12 12v9.5'/%3E%3C/svg%3E");
	--i-key: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Ccircle cx%3D'8' cy%3D'8' r%3D'4.2'/%3E%3Cpath d%3D'M11.3 11.3L20 20M16.5 16.5l2.2-2.2M14.7 18.3l2.2-2.2'/%3E%3C/svg%3E");
	--i-gear: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Ccircle cx%3D'12' cy%3D'12' r%3D'3.2'/%3E%3Cpath d%3D'M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M19.1 4.9L17 7M7 17l-2.1 2.1'/%3E%3C/svg%3E");
	--i-clock: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Ccircle cx%3D'12' cy%3D'12' r%3D'8.5'/%3E%3Cpath d%3D'M12 7.5V12l3 2'/%3E%3C/svg%3E");
	--i-plus: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.9' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Cpath d%3D'M12 5v14M5 12h14'/%3E%3C/svg%3E");
	--i-book: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Cpath d%3D'M4 5.2A2.2 2.2 0 016.2 3H19v15H6.2A2.2 2.2 0 004 20.2z'/%3E%3Cpath d%3D'M4 5.2v15'/%3E%3C/svg%3E");
	--i-globe: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Ccircle cx%3D'12' cy%3D'12' r%3D'8.5'/%3E%3Cpath d%3D'M3.5 12h17M12 3.5c2.4 2.3 3.6 5.4 3.6 8.5S14.4 18.2 12 20.5C9.6 18.2 8.4 15.1 8.4 12S9.6 5.8 12 3.5z'/%3E%3C/svg%3E");
	--i-link: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Cpath d%3D'M9.5 14.5l5-5'/%3E%3Cpath d%3D'M13.5 8.5l1.8-1.8a3.5 3.5 0 015 5L18.5 13.5'/%3E%3Cpath d%3D'M10.5 15.5l-1.8 1.8a3.5 3.5 0 01-5-5L5.5 10.5'/%3E%3C/svg%3E");
	--i-clipboard: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Crect x%3D'5' y%3D'4' width%3D'14' height%3D'17' rx%3D'2'/%3E%3Cpath d%3D'M9 4a2 2 2 0 014 0M9 9h6M9 13h6M9 17h4'/%3E%3C/svg%3E");
	--i-shield: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Cpath d%3D'M12 2.5l8 3v6c0 5-3.5 8.5-8 10-4.5-1.5-8-5-8-10V5.5z'/%3E%3Cpath d%3D'M9 12l2 2 4-4'/%3E%3C/svg%3E");
	--i-puzzle: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Cpath d%3D'M10 3.5h4a1.6 1.6 0 010 3.2 1.6 1.6 0 001.6 1.6v3.2h3.2a1.6 1.6 0 001.6-1.6 1.6 1.6 0 013.2 0v4a1.6 1.6 0 01-3.2 0 1.6 1.6 0 00-1.6-1.6H10v3.2a1.6 1.6 0 01-3.2 0V14a1.6 1.6 0 010-3.2 1.6 1.6 0 001.6-1.6H10z'/%3E%3C/svg%3E");
	--i-bolt: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Cpath d%3D'M13 2.5L4.5 13.5H11l-1 8 8.5-11H12z'/%3E%3C/svg%3E");
	--i-chart: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Cpath d%3D'M4 19.5V16M9 19.5V11M14 19.5V7M19 19.5V4'/%3E%3Cpath d%3D'M3.5 20.5h17'/%3E%3C/svg%3E");
	--i-lock: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Crect x%3D'4.5' y%3D'10' width%3D'15' height%3D'10.5' rx%3D'2'/%3E%3Cpath d%3D'M8 10V7.5a4 4 0 018 0V10'/%3E%3C/svg%3E");
	--i-check: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'2' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Cpath d%3D'M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
	--i-user: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Ccircle cx%3D'12' cy%3D'8' r%3D'3.6'/%3E%3Cpath d%3D'M5 20a7 7 0 0114 0'/%3E%3C/svg%3E");
	--i-bell: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Cpath d%3D'M6 9a6 6 0 0112 0c0 5 2 6 2 6H4s2-1 2-6z'/%3E%3Cpath d%3D'M10 19a2 2 2 0 004 0'/%3E%3C/svg%3E");
	--i-copy: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Crect x%3D'9' y%3D'9' width%3D'11' height%3D'11' rx%3D'2'/%3E%3Cpath d%3D'M5 15V5a2 2 0 012-2h10'/%3E%3C/svg%3E");
	--i-search: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Ccircle cx%3D'11' cy%3D'11' r%3D'6'/%3E%3Cpath d%3D'M20 20l-3.8-3.8'/%3E%3C/svg%3E");
	--i-x: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'2' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Cpath d%3D'M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
	--i-arrow: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.9' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Cpath d%3D'M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

.ico {
	-webkit-mask: var(--svg) center / contain no-repeat;
	mask: var(--svg) center / contain no-repeat;
	background: currentColor;
	display: inline-block;
	width: 1em; height: 1em;
	flex: none; vertical-align: -0.135em;
}
.ico-grid { --svg: var(--i-grid); }
.ico-cube { --svg: var(--i-cube); }
.ico-key { --svg: var(--i-key); }
.ico-gear { --svg: var(--i-gear); }
.ico-clock { --svg: var(--i-clock); }
.ico-plus { --svg: var(--i-plus); }
.ico-book { --svg: var(--i-book); }
.ico-globe { --svg: var(--i-globe); }
.ico-link { --svg: var(--i-link); }
.ico-clipboard { --svg: var(--i-clipboard); }
.ico-shield { --svg: var(--i-shield); }
.ico-puzzle { --svg: var(--i-puzzle); }
.ico-bolt { --svg: var(--i-bolt); }
.ico-chart { --svg: var(--i-chart); }
.ico-lock { --svg: var(--i-lock); }
.ico-check { --svg: var(--i-check); }
.ico-user { --svg: var(--i-user); }
.ico-bell { --svg: var(--i-bell); }
.ico-copy { --svg: var(--i-copy); }
.ico-search { --svg: var(--i-search); }
.ico-x { --svg: var(--i-x); }
.ico-arrow { --svg: var(--i-arrow); }

/* 追加图标 */
:root {
	--i-crown: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Cpath d%3D'M5 17.5h14M5 17.5L3.8 9l4.7 3L12 6.5l3.5 5.5 4.7-3L19 17.5z'/%3E%3C/svg%3E");
	--i-bag: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Cpath d%3D'M6 8h12l-1 12H7L6 8z'/%3E%3Cpath d%3D'M9 10V6.5a3 3 0 016 0V10'/%3E%3C/svg%3E");
	--i-flag: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Cpath d%3D'M5 21V4'/%3E%3Cpath d%3D'M5 4.5h12.5L15 8l2.5 3.5H5'/%3E%3C/svg%3E");
	--i-coin: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Ccircle cx%3D'12' cy%3D'12' r%3D'8.2'/%3E%3Cpath d%3D'M9.3 9.5h5.4M9.3 12.2h5.4M12 9.5V17'/%3E%3C/svg%3E");
	--i-gift: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Crect x%3D'4' y%3D'11' width%3D'16' height%3D'9' rx%3D'1.5'/%3E%3Cpath d%3D'M4 8h16v3H4zM12 8v12'/%3E%3Cpath d%3D'M12 8c-1.5 0-4-.7-4-2.5C8 4.2 9 3.6 10 3.6c1.5 0 2 2.2 2 4.4 0-2.2.5-4.4 2-4.4 1 0 2 .6 2 1.9C16 7.3 13.5 8 12 8z'/%3E%3C/svg%3E");
	--i-ticket: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Cpath d%3D'M3.5 9V7a2 2 0 012-2h13a2 2 0 012 2v2a3 3 0 000 6v2a2 2 0 01-2 2h-13a2 2 0 01-2-2v-2a3 3 0 000-6z'/%3E%3Cpath d%3D'M14 5v2.5M14 11v2M14 16.5V19'/%3E%3C/svg%3E");
	--i-mail: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Crect x%3D'3.5' y%3D'5.5' width%3D'17' height%3D'13' rx%3D'2'/%3E%3Cpath d%3D'M4.5 7.5l7.5 5.5 7.5-5.5'/%3E%3C/svg%3E");
	--i-warn: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Cpath d%3D'M12 3.8L21.3 19.5H2.7z'/%3E%3Cpath d%3D'M12 9.5v4.3M12 16.9v.2'/%3E%3C/svg%3E");
}
.ico-crown { --svg: var(--i-crown); }
.ico-bag { --svg: var(--i-bag); }
.ico-flag { --svg: var(--i-flag); }
.ico-coin { --svg: var(--i-coin); }
.ico-gift { --svg: var(--i-gift); }
.ico-ticket { --svg: var(--i-ticket); }
.ico-mail { --svg: var(--i-mail); }
.ico-warn { --svg: var(--i-warn); }
:root {
	--i-info: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Ccircle cx%3D'12' cy%3D'12' r%3D'8.5'/%3E%3Cpath d%3D'M12 11v5M12 7.8v.2'/%3E%3C/svg%3E");
}
.ico-info { --svg: var(--i-info); }
/* 追加：消息图标 */
:root {
	--i-msg: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Cpath d%3D'M4 5.5h16a1.5 1.5 0 011.5 1.5v8a1.5 1.5 0 01-1.5 1.5H9l-4 4v-4H4A1.5 1.5 0 012.5 15V7A1.5 1.5 0 014 5.5z'/%3E%3C/svg%3E");
}
.ico-msg { --svg: var(--i-msg); }
/* 追加：眼睛图标 */
:root {
	--i-eye: url("data:image/svg+xml,%3Csvg xmlns%3D'http://www.w3.org/2000/svg' viewBox%3D'0 0 24 24' fill%3D'none' stroke%3D'black' stroke-width%3D'1.8' stroke-linecap%3D'round' stroke-linejoin%3D'round'%3E%3Cpath d%3D'M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12z'/%3E%3Ccircle cx%3D'12' cy%3D'12' r%3D'3'/%3E%3C/svg%3E");
}
.ico-eye { --svg: var(--i-eye); }

/* 渐变文字工具类 */
.text-grad{background:linear-gradient(120deg,var(--brand-3),var(--brand) 55%,var(--brand-2));-webkit-background-clip:text;background-clip:text;color:transparent}

/* ============================================================
   公告滚动条（工作台顶部） — 纯 CSS 无缝滚动，零 JS 动画
   结构：.annbar > .annbar__tag + .annbar__viewport > .annbar__track > 两段 .annbar__item
   ============================================================ */
.annbar {
	display: none;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	padding: 10px 12px 10px 14px;
	border: 1px solid var(--glass-line);
	border-radius: 14px;
	background: linear-gradient(135deg, var(--glass), rgba(109, 91, 255, .05));
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}
.annbar.is-open { display: flex; }
.annbar--warn   { border-color: rgba(255, 180, 61, .34); background: linear-gradient(135deg, var(--warn-soft), rgba(255, 180, 61, .04)); }
.annbar--danger { border-color: rgba(255, 95, 126, .36); background: linear-gradient(135deg, var(--danger-soft), rgba(255, 95, 126, .05)); }
.annbar--success{ border-color: rgba(47, 211, 154, .32); background: linear-gradient(135deg, var(--ok-soft), rgba(47, 211, 154, .04)); }

.annbar__tag {
	flex: none;
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 12px; font-weight: 600; letter-spacing: .2px;
	padding: 3px 9px; border-radius: 999px;
	color: var(--info); background: var(--info-soft); border: 1px solid rgba(62, 169, 255, .3);
}
.annbar--warn    .annbar__tag { color: var(--warn);   background: var(--warn-soft);   border-color: rgba(255, 180, 61, .3); }
.annbar--danger  .annbar__tag { color: var(--danger); background: var(--danger-soft); border-color: rgba(255, 95, 126, .3); }
.annbar--success .annbar__tag { color: var(--ok);     background: var(--ok-soft);     border-color: rgba(47, 211, 154, .3); }

.annbar__viewport { flex: 1; min-width: 0; overflow: hidden; height: 22px; position: relative; }
.annbar__track {
	display: inline-flex; white-space: nowrap; align-items: center; height: 100%;
	will-change: transform;
	animation: annbar-scroll var(--annbar-dur, 30s) linear infinite;
}
.annbar__viewport:hover .annbar__track,
.annbar__viewport:focus-within .annbar__track { animation-play-state: paused; }
.annbar__item { display: inline-block; padding-right: 72px; font-size: 13.5px; line-height: 22px; color: var(--text-2); }
.annbar__item b { color: var(--text); font-weight: 600; }
@keyframes annbar-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.annbar__track { animation: none; }
	.annbar__viewport { overflow-x: auto; }
}

.annbar__close {
	flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1px solid transparent;
	background: transparent; color: var(--muted-2); cursor: pointer; font-size: 15px; line-height: 1;
	display: inline-flex; align-items: center; justify-content: center;
}
.annbar__close:hover { background: var(--danger-soft); color: var(--danger); }

/* 表单字段：label.fld（后台设置页沿用） */
.fld { display: block; margin-bottom: 12px; }
.fld > span { display: block; font-size: 12px; color: var(--muted-2); margin-bottom: 6px; }
.fld > .input, .fld > .select, .fld > .textarea { width: 100%; }
.check.fld { margin-bottom: 10px; }

/* 配置卡片分栏 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
@media (max-width: 720px) { .card-grid { grid-template-columns: 1fr; } }
.card__hint { font-size: 12px; color: var(--muted-2); line-height: 1.7; margin-top: 8px; }

/* ============================================================
   移动端响应式加固（v3.3.1 热修）
   ============================================================ */

/* 表格横向滚动 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; display: block; }
.table-wrap table.tb { display: table; width: 100%; }

@media (max-width: 768px) {
	/* 后台顶栏：标题独占一行，操作区换行 */
	.topbar { flex-wrap: wrap; gap: 8px 12px; padding: 12px 16px; }
	.topbar > * { flex: 0 0 auto; max-width: 100%; }
	.topbar > div:first-of-type { width: 100%; min-width: 0; order: 1; }
	.topbar__title, .topbar__crumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
	.topbar__spacer { display: none; }
	.topbar .menu-toggle { order: 0; }
	.topbar .lang-switch { order: 2; margin-left: auto; }
	.topbar .pos-rel { order: 3; margin-left: 0; }

	/* user-chip 隐藏角色小字 */
	.user-chip small.role-label { display: none; }
	.user-chip { padding: 5px 8px 5px 5px; }

	/* 工具栏换行 */
	.toolbar { gap: 8px; }
	.toolbar .sp { display: none; }
	.toolbar .input, .toolbar .select { min-width: 0; flex: 1 1 140px; }

	/* 通用分栏 */
	.cols { grid-template-columns: 1fr; }
	.cols-3 { grid-template-columns: 1fr; }
	.sec-head { flex-wrap: wrap; gap: 6px 10px; }

	/* 统计卡 */
	.stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	/* 弹窗底部抽屉化 */
	.modal-mask { padding: 0; align-items: flex-end; }
	.modal, .modal--wide {
		width: 100%; max-width: 100%; min-width: 0;
		border-radius: 16px 16px 0 0; max-height: 92vh; overflow-y: auto;
	}
	.modal__head, .modal__body, .modal__foot { padding: 16px; }
	.modal .grid-2, .modal .grid-3 { grid-template-columns: 1fr; }
	.modal__foot { flex-wrap: wrap; }
	.modal__foot .btn { flex: 1 1 auto; }

	/* 步骤条 */
	.steps { gap: 8px; }
	.step__line { width: 20px; margin: 0 6px; }
	.step__txt { font-size: 12px; }
	.step__txt small { display: none; }

	/* 统计卡单列 */
	.stats { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.topbar { padding: 10px 12px; gap: 6px 8px; }
	.topbar__title { font-size: 15px; }
	.topbar__crumb { font-size: 11px; }

	/* user-chip 仅保留头像 */
	.user-chip > div { display: none; }
	.user-chip > span { display: none; }
	.user-chip { padding: 3px; }

	/* 语言切换器收缩 */
	.lang-switch {
		padding: 6px 22px 6px 8px; font-size: 12px;
		max-width: 110px; min-width: 0;
		background-position: right 7px center;
	}

	.content { padding: 14px 12px 40px; }

	/* 表单 */
	.field__label { font-size: 12px; }
	.input, .select, .textarea { padding: 10px 11px; }

	/* 卡片 */
	.card--pad { padding: 16px; }
	.card__head { padding: 14px 16px; }
	.card__body { padding: 16px; }

	/* 分页 */
	.pager { justify-content: center; }
	.pager__info { display: none; }
}
