:root {
	--navy-950: #091426;
	--navy-900: #10203a;
	--navy-800: #183152;
	--navy-700: #24456d;
	--gold-500: #c5a45d;
	--gold-300: #ead08e;
	--cream: #f8f4ea;
	--surface: #ffffff;
	--canvas: #f2f5f9;
	--text: #17233a;
	--muted: #68758a;
	--line: #dfe5ed;
	--danger: #b13b46;
	--success: #25765a;
	--radius: 12px;
	--shadow: 0 12px 36px rgba(9, 20, 38, .09);
}

* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
}

body {
	background: var(--canvas);
	color: var(--text);
	font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
	margin: 0;
	min-height: 100vh;
}

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

button,
input,
select,
textarea {
	font: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

.button {
	align-items: center;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--navy-800);
	cursor: pointer;
	display: inline-flex;
	font-weight: 700;
	gap: 6px;
	justify-content: center;
	min-height: 38px;
	padding: 8px 14px;
	transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.button:hover {
	border-color: var(--gold-500);
	transform: translateY(-1px);
}

.button-primary {
	background: var(--navy-900);
	border-color: var(--navy-900);
	color: #fff;
}

.button-primary:hover {
	background: var(--navy-800);
}

.button-ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, .35);
	color: #fff;
}

.button-danger {
	border-color: #efc5c9;
	color: var(--danger);
}

.button-block {
	width: 100%;
}

.button-row,
.form-actions,
.filter-bar {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

input,
select,
textarea {
	background: #fff;
	border: 1px solid #ccd5e0;
	border-radius: 8px;
	color: var(--text);
	min-height: 40px;
	padding: 8px 10px;
	width: 100%;
}

textarea {
	resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--gold-500);
	box-shadow: 0 0 0 3px rgba(197, 164, 93, .18);
	outline: 0;
}

label {
	display: grid;
	font-size: 13px;
	font-weight: 700;
	gap: 7px;
}

[hidden] {
	display: none !important;
}

.loading-overlay {
	align-items: center;
	background: rgba(9, 20, 38, .78);
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 12px;
	inset: 0;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	transition: opacity .16s ease;
	z-index: 9999;
}

.loading-overlay.is-active {
	opacity: 1;
	pointer-events: auto;
}

.loading-spinner {
	animation: spin .8s linear infinite;
	border: 3px solid rgba(255, 255, 255, .25);
	border-radius: 50%;
	border-top-color: var(--gold-300);
	height: 42px;
	width: 42px;
}

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

.toast-region {
	bottom: 24px;
	display: grid;
	gap: 10px;
	position: fixed;
	right: 24px;
	z-index: 10000;
}

.toast {
	background: var(--navy-900);
	border-left: 4px solid var(--gold-500);
	border-radius: 8px;
	box-shadow: var(--shadow);
	color: #fff;
	max-width: 420px;
	padding: 12px 16px;
}

.toast.is-error {
	border-left-color: #ef6b76;
}

.form-error {
	color: var(--danger);
	font-size: 13px;
	min-height: 20px;
}
