/* ==========================================================================
   INDmoney 运营后台 · 原型样式
   ========================================================================== */

:root {
	--brand: #0e65d7;
	--brand-dark: #0a4fae;
	--brand-soft: #e8f1fd;
	--navy: #0b1526;
	--navy-2: #101f37;
	--navy-3: #1a2c4a;
	--bg: #f4f6fa;
	--surface: #ffffff;
	--text: #0f172a;
	--text-2: #334155;
	--muted: #64748b;
	--muted-2: #94a3b8;
	--border: #e5eaf2;
	--border-2: #d7dfeb;
	--success: #0f9f6e;
	--success-soft: #e6f7f0;
	--danger: #e5484d;
	--danger-soft: #fdecec;
	--warning: #c2740a;
	--warning-soft: #fdf3e2;
	--info: #0e65d7;
	--info-soft: #e8f1fd;
	--violet: #6d5bd0;
	--violet-soft: #efecfb;
	--radius: 14px;
	--radius-sm: 9px;
	--shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -18px rgba(15, 23, 42, 0.35);
	--shadow-lg: 0 24px 60px -24px rgba(15, 23, 42, 0.4);
	--font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
	box-sizing: border-box;
}

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

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

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

a {
	color: var(--brand);
	text-decoration: none;
}

::-webkit-scrollbar {
	width: 9px;
	height: 9px;
}

::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 6px;
	border: 2px solid transparent;
	background-clip: content-box;
}

/* --------------------------------------------------------------------------
   登录
   -------------------------------------------------------------------------- */

.login {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr);
	min-height: 100vh;
}

.login__brand {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(900px 500px at 10% 0%, rgba(40, 120, 230, 0.55), transparent 60%),
		radial-gradient(700px 500px at 90% 100%, rgba(28, 78, 160, 0.6), transparent 55%),
		linear-gradient(150deg, #0a2a5e 0%, #0b1526 55%, #060c17 100%);
	color: #fff;
	padding: 54px 60px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.login__brand::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 46px 46px;
	mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 72%);
	pointer-events: none;
}

.login__logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 800;
	font-size: 18px;
	letter-spacing: 0.4px;
	position: relative;
	z-index: 1;
}

.login__mark {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: linear-gradient(140deg, #2f8bff, #0e65d7);
	display: grid;
	place-items: center;
	font-size: 15px;
	font-weight: 800;
	box-shadow: 0 8px 20px -8px rgba(47, 139, 255, 0.9);
}

.login__headline {
	position: relative;
	z-index: 1;
	max-width: 480px;
}

.login__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: #9dc4ff;
	font-weight: 700;
	margin-bottom: 18px;
}

.login__eyebrow::before {
	content: "";
	width: 26px;
	height: 2px;
	background: #2f8bff;
}

.login__title {
	font-size: 42px;
	line-height: 1.18;
	margin: 0 0 18px;
	font-weight: 800;
	letter-spacing: -1px;
}

.login__desc {
	color: #b9c9e2;
	font-size: 15px;
	line-height: 1.8;
	margin: 0;
}

.login__points {
	margin-top: 34px;
	display: grid;
	gap: 12px;
}

.login__point {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #d7e3f5;
	font-size: 13.5px;
}

.login__point svg {
	color: #58a6ff;
	flex-shrink: 0;
}

.login__foot {
	position: relative;
	z-index: 1;
	color: #7890b3;
	font-size: 12px;
}

.login__panel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background: #fff;
}

.login__form {
	width: 100%;
	max-width: 380px;
}

.login__form h1 {
	font-size: 26px;
	margin: 0 0 8px;
	letter-spacing: -0.5px;
}

.login__sub {
	color: var(--muted);
	margin: 0 0 30px;
	font-size: 13.5px;
}

.login__demo {
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px dashed var(--border-2);
}

.login__demo-title {
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 10px;
}

.login__demo-chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.demo-chip {
	border: 1px solid var(--border-2);
	background: #fbfcfe;
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 12px;
	color: var(--text-2);
	cursor: pointer;
	transition: 0.16s ease;
}

.demo-chip:hover {
	border-color: var(--brand);
	color: var(--brand);
	background: var(--brand-soft);
}

/* --------------------------------------------------------------------------
   布局
   -------------------------------------------------------------------------- */

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

.sidebar {
	width: 236px;
	flex-shrink: 0;
	background: linear-gradient(180deg, var(--navy) 0%, #0a1322 100%);
	color: #c7d3e6;
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 0;
	height: 100vh;
	z-index: 20;
}

.sidebar__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 20px 20px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar__mark {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: linear-gradient(140deg, #2f8bff, #0e65d7);
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 13px;
	color: #fff;
}

.sidebar__name {
	font-weight: 700;
	color: #fff;
	font-size: 14.5px;
	line-height: 1.2;
}

.sidebar__name small {
	display: block;
	font-weight: 500;
	font-size: 10.5px;
	color: #7d91b0;
	letter-spacing: 0.8px;
	margin-top: 3px;
}

.sidebar__scroll {
	flex: 1;
	overflow-y: auto;
	padding: 14px 12px 20px;
}

.nav-group {
	margin-bottom: 18px;
}

.nav-group__title {
	font-size: 10.5px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #607390;
	padding: 0 10px 8px;
	font-weight: 700;
}

.nav-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 9px;
	color: #b9c7dc;
	font-size: 13.5px;
	cursor: pointer;
	transition: 0.15s ease;
	margin-bottom: 2px;
	border: 1px solid transparent;
}

.nav-item:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.nav-item.is-active {
	background: linear-gradient(90deg, rgba(47, 139, 255, 0.22), rgba(47, 139, 255, 0.06));
	border-color: rgba(47, 139, 255, 0.24);
	color: #fff;
}

.nav-item.is-active .nav-item__icon {
	color: #6cb2ff;
}

.nav-item__icon {
	width: 18px;
	height: 18px;
	display: grid;
	place-items: center;
	color: #8195b3;
	flex-shrink: 0;
}

.nav-item__badge {
	margin-left: auto;
	background: #e5484d;
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	display: grid;
	place-items: center;
}

.sidebar__user {
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: linear-gradient(140deg, #2f8bff, #6d5bd0);
	color: #fff;
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 13px;
	flex-shrink: 0;
}

.sidebar__user-name {
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.sidebar__user-role {
	font-size: 11px;
	color: #7d91b0;
}

.sidebar__logout {
	margin-left: auto;
	background: transparent;
	border: 0;
	color: #8195b3;
	cursor: pointer;
	padding: 6px;
	border-radius: 7px;
}

.sidebar__logout:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.topbar {
	height: 62px;
	background: rgba(255, 255, 255, 0.86);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 0 28px;
	position: sticky;
	top: 0;
	z-index: 15;
}

.topbar__crumbs {
	display: flex;
	align-items: center;
	gap: 7px;
	color: var(--muted);
	font-size: 13px;
}

.topbar__crumbs strong {
	color: var(--text);
	font-weight: 600;
}

.topbar__right {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 12px;
}

.topbar__role {
	background: var(--brand-soft);
	color: var(--brand);
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 11.5px;
	font-weight: 600;
}

.page {
	padding: 26px 28px 48px;
	max-width: 1440px;
	width: 100%;
	margin: 0 auto;
}

.page-head {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 22px;
	flex-wrap: wrap;
}

.page-head__main {
	flex: 1;
	min-width: 260px;
}

.page-title {
	font-size: 23px;
	font-weight: 800;
	letter-spacing: -0.4px;
	margin: 0 0 6px;
}

.page-desc {
	color: var(--muted);
	font-size: 13px;
	margin: 0;
	max-width: 780px;
}

.page-head__actions {
	display: flex;
	gap: 9px;
	align-items: center;
	margin-left: auto;
}

/* --------------------------------------------------------------------------
   基础组件
   -------------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 36px;
	padding: 0 15px;
	border-radius: 9px;
	border: 1px solid transparent;
	background: #fff;
	color: var(--text-2);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: 0.15s ease;
	white-space: nowrap;
}

.btn:hover {
	border-color: var(--border-2);
	background: #f8fafc;
}

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

.btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

.btn-primary {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
	box-shadow: 0 6px 14px -8px rgba(14, 101, 215, 0.8);
}

.btn-primary:hover {
	background: var(--brand-dark);
	border-color: var(--brand-dark);
}

.btn-danger {
	background: var(--danger);
	border-color: var(--danger);
	color: #fff;
}

.btn-danger:hover {
	background: #cf3a40;
	border-color: #cf3a40;
}

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

.btn-sm {
	height: 30px;
	padding: 0 10px;
	font-size: 12.5px;
	border-radius: 7px;
}

.btn-link {
	background: none;
	border: 0;
	color: var(--brand);
	padding: 0;
	height: auto;
	font-weight: 600;
	cursor: pointer;
}

.btn-link:hover {
	text-decoration: underline;
}

.btn-link.is-danger {
	color: var(--danger);
}

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.input,
.select,
.textarea {
	width: 100%;
	height: 38px;
	border: 1px solid var(--border-2);
	border-radius: 9px;
	background: #fff;
	padding: 0 11px;
	outline: none;
	transition: 0.15s ease;
	color: var(--text);
}

.textarea {
	height: auto;
	min-height: 92px;
	padding: 9px 11px;
	resize: vertical;
	line-height: 1.6;
}

.input:focus,
.select:focus,
.textarea:focus {
	border-color: var(--brand);
	box-shadow: 0 0 0 3px rgba(14, 101, 215, 0.12);
}

.input::placeholder,
.textarea::placeholder {
	color: var(--muted-2);
}

.field {
	margin-bottom: 16px;
}

.field__label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--text-2);
	margin-bottom: 6px;
}

.field__label em {
	color: var(--danger);
	font-style: normal;
	margin-left: 3px;
}

.field__help {
	font-size: 11.5px;
	color: var(--muted);
	margin-top: 5px;
	line-height: 1.5;
}

.field__error {
	font-size: 11.5px;
	color: var(--danger);
	margin-top: 5px;
}

.field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}

.field-span-2 {
	grid-column: 1 / -1;
}

.switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	cursor: pointer;
	user-select: none;
	height: 38px;
}

.switch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.switch__track {
	width: 40px;
	height: 22px;
	border-radius: 999px;
	background: #cbd5e1;
	transition: 0.18s ease;
	position: relative;
	flex-shrink: 0;
}

.switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
	transition: 0.18s ease;
}

.switch input:checked + .switch__track {
	background: var(--brand);
}

.switch input:checked + .switch__track::after {
	transform: translateX(18px);
}

.switch__text {
	font-size: 13px;
	color: var(--text-2);
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	border-radius: 999px;
	padding: 3px 9px;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

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

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

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

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

.badge--muted {
	background: #eef2f7;
	color: var(--muted);
}

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

.badge__dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
}

/* --------------------------------------------------------------------------
   工作台
   -------------------------------------------------------------------------- */

.hero {
	background:
		radial-gradient(700px 260px at 100% 0%, rgba(47, 139, 255, 0.18), transparent 65%),
		linear-gradient(120deg, #0f2d5c 0%, #0b1526 100%);
	border-radius: var(--radius);
	color: #fff;
	padding: 24px 26px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 20px;
	position: relative;
	overflow: hidden;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 40px 40px;
	mask-image: radial-gradient(circle at 85% 20%, #000, transparent 65%);
	pointer-events: none;
}

.hero__text {
	flex: 1;
	position: relative;
	z-index: 1;
}

.hero__eyebrow {
	font-size: 11.5px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #8fb8f0;
	font-weight: 700;
	margin-bottom: 8px;
}

.hero__title {
	font-size: 25px;
	font-weight: 800;
	margin: 0 0 6px;
	letter-spacing: -0.4px;
}

.hero__desc {
	color: #b7c8e2;
	font-size: 13px;
	margin: 0;
}

.hero__actions {
	position: relative;
	z-index: 1;
	display: flex;
	gap: 9px;
}

.hero__actions .btn-ghost {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.hero__actions .btn-ghost:hover {
	background: rgba(255, 255, 255, 0.14);
}

.stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 20px;
}

.stat {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 17px 18px;
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
}

.stat__label {
	color: var(--muted);
	font-size: 12.5px;
	display: flex;
	align-items: center;
	gap: 7px;
}

.stat__icon {
	width: 26px;
	height: 26px;
	border-radius: 8px;
	display: grid;
	place-items: center;
	background: var(--brand-soft);
	color: var(--brand);
}

.stat__value {
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -1px;
	margin-top: 10px;
	line-height: 1.1;
}

.stat__foot {
	color: var(--muted);
	font-size: 11.5px;
	margin-top: 6px;
}

.stat--warning .stat__icon {
	background: var(--warning-soft);
	color: var(--warning);
}

.stat--success .stat__icon {
	background: var(--success-soft);
	color: var(--success);
}

.stat--danger .stat__icon {
	background: var(--danger-soft);
	color: var(--danger);
}

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

.panel {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.panel__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px 18px;
	border-bottom: 1px solid var(--border);
}

.panel__title {
	font-size: 14.5px;
	font-weight: 700;
	margin: 0;
}

.panel__desc {
	color: var(--muted);
	font-size: 12px;
	margin: 2px 0 0;
}

.panel__link {
	margin-left: auto;
	font-size: 12.5px;
	color: var(--brand);
	cursor: pointer;
	font-weight: 600;
}

.panel__body {
	padding: 6px 0;
}

.coverage-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	padding: 14px 16px;
}

.coverage {
	border: 1px solid var(--border);
	border-radius: 11px;
	padding: 12px 13px;
	display: flex;
	align-items: center;
	gap: 11px;
	cursor: pointer;
	transition: 0.15s ease;
}

.coverage:hover {
	border-color: #bcd6f7;
	background: #f8fbff;
}

.coverage__icon {
	width: 32px;
	height: 32px;
	border-radius: 9px;
	display: grid;
	place-items: center;
	background: #f1f5fb;
	color: var(--brand);
	flex-shrink: 0;
}

.coverage__name {
	font-size: 12.5px;
	color: var(--muted);
}

.coverage__count {
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
}

.mini-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 18px;
	border-bottom: 1px solid #f1f5f9;
}

.mini-row:last-child {
	border-bottom: 0;
}

.mini-row__main {
	flex: 1;
	min-width: 0;
}

.mini-row__title {
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mini-row__sub {
	font-size: 11.5px;
	color: var(--muted);
	margin-top: 2px;
}

.mini-row__right {
	text-align: right;
	flex-shrink: 0;
}

.timeline {
	padding: 6px 18px 14px;
}

.timeline__item {
	position: relative;
	padding: 10px 0 10px 20px;
	border-left: 1px solid #e6edf7;
}

.timeline__item::before {
	content: "";
	position: absolute;
	left: -4px;
	top: 16px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #94a3b8;
}

.timeline__item:first-child::before {
	background: var(--brand);
	box-shadow: 0 0 0 3px rgba(14, 101, 215, 0.15);
}

.timeline__text {
	font-size: 12.5px;
	color: var(--text-2);
}

.timeline__time {
	font-size: 11px;
	color: var(--muted-2);
	margin-top: 2px;
}

/* --------------------------------------------------------------------------
   列表 / 表格
   -------------------------------------------------------------------------- */

.toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 16px;
	border-bottom: 1px solid var(--border);
	flex-wrap: wrap;
}

.toolbar__search {
	position: relative;
	width: 250px;
	max-width: 100%;
}

.toolbar__search .input {
	padding-left: 34px;
}

.toolbar__search svg {
	position: absolute;
	left: 11px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--muted-2);
}

.toolbar__spacer {
	flex: 1;
}

.seg {
	display: inline-flex;
	background: #f1f5f9;
	border-radius: 8px;
	padding: 3px;
	gap: 2px;
}

.seg__item {
	border: 0;
	background: transparent;
	padding: 5px 10px;
	border-radius: 6px;
	font-size: 12px;
	color: var(--muted);
	cursor: pointer;
	font-weight: 600;
}

.seg__item.is-active {
	background: #fff;
	color: var(--text);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.table-wrap {
	overflow-x: auto;
}

.table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.table th {
	text-align: left;
	padding: 10px 14px;
	background: #f8fafc;
	border-bottom: 1px solid var(--border);
	color: var(--muted);
	font-size: 11.5px;
	font-weight: 600;
	white-space: nowrap;
}

.table td {
	padding: 12px 14px;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
}

.table th:first-child,
.table td:first-child {
	white-space: nowrap;
}

.table tbody tr:last-child td {
	border-bottom: 0;
}

.table tbody tr:hover {
	background: #fbfcfe;
}

.table__num {
	font-variant-numeric: tabular-nums;
}

.table__actions {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: flex-end;
}

.table__empty {
	padding: 46px 20px;
	text-align: center;
	color: var(--muted);
}

.empty__icon {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #f1f5fb;
	color: #94a3b8;
	display: grid;
	place-items: center;
	margin: 0 auto 12px;
}

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

.cell-sub {
	font-size: 11.5px;
	color: var(--muted);
	margin-top: 2px;
}

.change-up {
	color: var(--success);
	font-weight: 600;
}

.change-down {
	color: var(--danger);
	font-weight: 600;
}

.pagination {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 13px 16px;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 12.5px;
}

.pagination__pages {
	margin-left: auto;
	display: flex;
	gap: 5px;
}

.page-btn {
	min-width: 30px;
	height: 30px;
	border-radius: 7px;
	border: 1px solid var(--border);
	background: #fff;
	color: var(--text-2);
	cursor: pointer;
	font-size: 12.5px;
}

.page-btn.is-active {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

.page-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   审核中心
   -------------------------------------------------------------------------- */

.entry-list {
	display: flex;
	flex-direction: column;
}

.entry-card {
	padding: 16px 18px;
	border-bottom: 1px solid #f1f5f9;
	display: flex;
	gap: 14px;
	cursor: pointer;
	transition: 0.14s ease;
}

.entry-card:last-child {
	border-bottom: 0;
}

.entry-card:hover {
	background: #fbfcfe;
}

.entry-card__icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: #f1f5fb;
	color: var(--brand);
	flex-shrink: 0;
}

.entry-card__icon.is-create {
	background: var(--success-soft);
	color: var(--success);
}

.entry-card__icon.is-delete {
	background: var(--danger-soft);
	color: var(--danger);
}

.entry-card__main {
	flex: 1;
	min-width: 0;
}

.entry-card__title {
	font-size: 13.5px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.entry-card__meta {
	font-size: 12px;
	color: var(--muted);
	margin-top: 4px;
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.entry-card__right {
	flex-shrink: 0;
	text-align: right;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 7px;
}

/* 对比 */
.diff {
	border: 1px solid var(--border);
	border-radius: 11px;
	overflow: hidden;
}

.diff__row {
	display: grid;
	grid-template-columns: 150px 1fr 1fr;
	border-bottom: 1px solid #eef2f7;
	font-size: 12.5px;
}

.diff__row:last-child {
	border-bottom: 0;
}

.diff__row--head {
	background: #f8fafc;
	color: var(--muted);
	font-size: 11.5px;
	font-weight: 600;
}

.diff__cell {
	padding: 9px 12px;
	min-height: 38px;
	word-break: break-word;
}

.diff__cell--label {
	color: var(--muted);
	background: #fcfdff;
	font-weight: 500;
}

.diff__cell--before {
	color: #9f1d22;
	background: #fff7f7;
	text-decoration: line-through;
	text-decoration-color: rgba(159, 29, 34, 0.35);
}

.diff__cell--after {
	color: #0b6b4a;
	background: #f5fdf9;
	font-weight: 600;
}

.diff__empty {
	color: var(--muted-2);
	font-style: italic;
	font-weight: 400;
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   抽屉 / 弹窗
   -------------------------------------------------------------------------- */

.overlay {
	position: fixed;
	inset: 0;
	background: rgba(9, 17, 32, 0.42);
	backdrop-filter: blur(2px);
	z-index: 60;
	display: flex;
	align-items: stretch;
	justify-content: flex-end;
	animation: fade-in 0.18s ease;
}

.overlay--center {
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.drawer {
	width: min(620px, 100%);
	height: 100%;
	background: #fff;
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow-lg);
	animation: slide-in 0.22s cubic-bezier(0.3, 0.8, 0.3, 1);
}

.drawer--wide {
	width: min(760px, 100%);
}

.drawer__head {
	padding: 18px 22px;
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.drawer__title {
	font-size: 17px;
	font-weight: 700;
	margin: 0;
}

.drawer__sub {
	font-size: 12px;
	color: var(--muted);
	margin-top: 3px;
}

.drawer__close {
	margin-left: auto;
	background: #f1f5f9;
	border: 0;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	display: grid;
	place-items: center;
	cursor: pointer;
	color: var(--muted);
	flex-shrink: 0;
}

.drawer__close:hover {
	background: #e2e8f0;
	color: var(--text);
}

.drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 20px 22px;
}

.drawer__foot {
	padding: 14px 22px;
	border-top: 1px solid var(--border);
	display: flex;
	align-items: center;
	gap: 9px;
	background: #fcfdff;
}

.drawer__foot .btn-ghost:first-child {
	margin-right: auto;
}

.modal {
	width: min(520px, 100%);
	background: #fff;
	border-radius: 16px;
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	animation: pop-in 0.2s ease;
}

.modal--wide {
	width: min(760px, 100%);
}

.modal__head {
	padding: 18px 22px;
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	gap: 10px;
}

.modal__title {
	font-size: 16px;
	font-weight: 700;
	margin: 0;
}

.modal__body {
	padding: 20px 22px;
	max-height: 64vh;
	overflow-y: auto;
}

.modal__foot {
	padding: 14px 22px;
	border-top: 1px solid var(--border);
	display: flex;
	justify-content: flex-end;
	gap: 9px;
	background: #fcfdff;
}

.meta-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}

.meta-item {
	background: #f8fafc;
	border: 1px solid var(--border);
	border-radius: 9px;
	padding: 10px 12px;
}

.meta-item__label {
	font-size: 11px;
	color: var(--muted);
	margin-bottom: 3px;
}

.meta-item__value {
	font-size: 13px;
	font-weight: 600;
	word-break: break-word;
}

.alert {
	border-radius: 10px;
	padding: 11px 13px;
	font-size: 12.5px;
	line-height: 1.6;
	margin-bottom: 16px;
}

.alert--warning {
	background: var(--warning-soft);
	color: #7a4a06;
	border: 1px solid #f3dfb6;
}

.alert--danger {
	background: var(--danger-soft);
	color: #8d1f24;
	border: 1px solid #f7c9cb;
}

.alert--info {
	background: var(--info-soft);
	color: #0a4fae;
	border: 1px solid #cfe2fb;
}

.alert strong {
	font-weight: 700;
}

/* --------------------------------------------------------------------------
   前台数据预览
   -------------------------------------------------------------------------- */

.preview {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px;
}

.preview-phone {
	background: #0b1526;
	border-radius: 26px;
	padding: 10px;
	box-shadow: var(--shadow-lg);
}

.preview-phone__screen {
	background: #f4f6fa;
	border-radius: 20px;
	overflow: hidden;
	max-height: 720px;
	overflow-y: auto;
}

.preview-hero {
	background: linear-gradient(150deg, #0e65d7, #0b3f8f);
	color: #fff;
	padding: 20px 18px 22px;
}

.preview-hero__brand {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
	font-size: 13px;
}

.preview-hero__mark {
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.18);
	display: grid;
	place-items: center;
	font-size: 10px;
}

.preview-hero__title {
	font-size: 20px;
	font-weight: 800;
	margin-top: 16px;
}

.preview-hero__sub {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.75);
	margin-top: 3px;
}

.preview-section {
	padding: 14px 14px 2px;
}

.preview-section__title {
	font-size: 12.5px;
	font-weight: 700;
	color: #334155;
	margin-bottom: 8px;
	display: flex;
	justify-content: space-between;
}

.preview-section__title span {
	color: #64748b;
	font-weight: 500;
	font-size: 11px;
}

.preview-indices {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 4px;
}

.preview-index {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 11px;
	padding: 10px 12px;
	min-width: 128px;
	flex-shrink: 0;
}

.preview-index__name {
	font-size: 10.5px;
	color: var(--muted);
}

.preview-index__value {
	font-size: 15px;
	font-weight: 800;
	margin-top: 2px;
}

.preview-index__change {
	font-size: 10.5px;
	font-weight: 700;
	margin-top: 1px;
}

.preview-list {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
}

.preview-stock {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-bottom: 1px solid #f1f5f9;
}

.preview-stock:last-child {
	border-bottom: 0;
}

.preview-stock__avatar {
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: #eef4fd;
	color: var(--brand);
	display: grid;
	place-items: center;
	font-size: 10.5px;
	font-weight: 800;
	flex-shrink: 0;
}

.preview-stock__name {
	font-size: 12px;
	font-weight: 600;
}

.preview-stock__sub {
	font-size: 10px;
	color: var(--muted);
}

.preview-stock__right {
	margin-left: auto;
	text-align: right;
}

.preview-stock__price {
	font-size: 12.5px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.preview-stock__change {
	font-size: 10.5px;
	font-weight: 600;
}

.code-block {
	background: #0b1526;
	color: #cbd5e1;
	border-radius: 12px;
	padding: 14px 16px;
	font-family: "Cascadia Code", Consolas, monospace;
	font-size: 11.5px;
	line-height: 1.7;
	overflow: auto;
	max-height: 360px;
	white-space: pre-wrap;
	word-break: break-word;
}

.code-block .k {
	color: #7dd3fc;
}

.code-block .s {
	color: #86efac;
}

.code-block .n {
	color: #fca5a5;
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toasts {
	position: fixed;
	right: 22px;
	bottom: 22px;
	display: flex;
	flex-direction: column;
	gap: 9px;
	z-index: 100;
}

.toast {
	background: #0f172a;
	color: #fff;
	border-radius: 10px;
	padding: 11px 15px;
	font-size: 12.5px;
	box-shadow: var(--shadow-lg);
	display: flex;
	align-items: center;
	gap: 9px;
	animation: toast-in 0.22s ease;
	max-width: 380px;
}

.toast--success {
	background: #0b6b4a;
}

.toast--error {
	background: #a32328;
}

.toast--warning {
	background: #8a5a08;
}

/* --------------------------------------------------------------------------
   工具类 / 动画
   -------------------------------------------------------------------------- */

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

.small {
	font-size: 12px;
}

.mono {
	font-family: "Cascadia Code", Consolas, monospace;
}

.nowrap {
	white-space: nowrap;
}

.flex {
	display: flex;
	align-items: center;
	gap: 8px;
}

.spacer {
	flex: 1;
}

.mt-2 {
	margin-top: 8px;
}

.mt-4 {
	margin-top: 16px;
}

.hidden {
	display: none !important;
}

@keyframes fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes slide-in {
	from { transform: translateX(30px); opacity: 0.5; }
	to { transform: translateX(0); opacity: 1; }
}

@keyframes pop-in {
	from { transform: scale(0.97); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

@keyframes toast-in {
	from { transform: translateY(8px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 1180px) {
	.grid-2 {
		grid-template-columns: 1fr;
	}
	.stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.preview {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 860px) {
	.sidebar {
		width: 66px;
	}
	.sidebar__name,
	.sidebar__user-name,
	.sidebar__user-role,
	.nav-group__title,
	.nav-item span:not(.nav-item__badge) {
		display: none;
	}
	.sidebar__brand {
		justify-content: center;
		padding: 18px 8px;
	}
	.nav-item {
		justify-content: center;
	}
	.nav-item__badge {
		position: absolute;
		transform: translate(14px, -12px);
	}
	.page {
		padding: 18px 16px 40px;
	}
	.login {
		grid-template-columns: 1fr;
	}
	.login__brand {
		display: none;
	}
	.meta-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.diff__row {
		grid-template-columns: 110px 1fr 1fr;
	}
}
