/* 本地后台样式（替代 Tailwind CDN） */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }

.font-sans { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.uppercase { text-transform: uppercase; }
.leading-normal { line-height: 1.5; }
.leading-tight { line-height: 1.25; }
.tracking-normal { letter-spacing: 0; }
.tracking-wider { letter-spacing: 0.05em; }
.whitespace-nowrap { white-space: nowrap; }
.transition { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }

.min-h-screen { min-height: 100vh; }
.min-w-full { min-width: 100%; }
.w-full { width: 100%; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-fit { width: fit-content; }
.max-w-md { max-width: 28rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }
.opacity-50 { opacity: 0.5; }
.overflow-x-auto { overflow-x: auto; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.no-underline { text-decoration: none; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }

.text-white { color: #fff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-800 { color: #1e293b; }
.text-indigo-600 { color: #4f46e5; }
.text-green-400 { color: #4ade80; }
.text-green-700 { color: #15803d; }
.text-green-800 { color: #166534; }
.text-green-900 { color: #14532d; }
.text-orange-900 { color: #7c2d12; }
.text-red-800 { color: #991b1b; }
.text-red-900 { color: #7f1d1d; }
.text-amber-900 { color: #78350f; }

.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-500 { background-color: #6b7280; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-500 { background-color: #64748b; }
.bg-indigo-500 { background-color: #6366f1; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-green-200 { background-color: #bbf7d0; }
.bg-green-600 { background-color: #16a34a; }
.bg-green-100 { background-color: #dcfce7; }
.bg-orange-200 { background-color: #fed7aa; }
.bg-orange-500 { background-color: #f97316; }
.bg-teal-500 { background-color: #14b8a6; }
.bg-teal-600 { background-color: #0d9488; }
.bg-teal-700 { background-color: #0f766e; }
.bg-red-200 { background-color: #fecaca; }
.bg-red-500 { background-color: #ef4444; }
.bg-red-100 { background-color: #fee2e2; }
.bg-emerald-500 { background-color: #10b981; }
.bg-amber-100 { background-color: #fef3c7; }

.hover\:bg-indigo-600:hover { background-color: #4f46e5; }
.hover\:bg-indigo-700:hover { background-color: #4338ca; }
.hover\:bg-green-700:hover { background-color: #15803d; }
.hover\:bg-orange-600:hover { background-color: #ea580c; }
.hover\:bg-teal-600:hover { background-color: #0d9488; }
.hover\:bg-red-600:hover { background-color: #dc2626; }
.hover\:bg-emerald-600:hover { background-color: #059669; }
.hover\:bg-gray-600:hover { background-color: #4b5563; }
.hover\:bg-slate-600:hover { background-color: #475569; }

.border { border: 1px solid #d1d5db; }
.border-b { border-bottom: 1px solid #e5e7eb; }
.border-b-2 { border-bottom: 2px solid #e5e7eb; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-slate-300 { border-color: #cbd5e1; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.shadow { box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06); }
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05); }

input, button, select, textarea { font: inherit; }
button { cursor: pointer; border: none; }
input[type="text"], input[type="password"], input[type="number"] {
  appearance: none;
}
.focus\:outline-none:focus { outline: none; }
.focus\:outline-indigo-500:focus { outline: 2px solid #6366f1; outline-offset: 1px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(99,102,241,.45); }
.focus\:ring-indigo-500:focus { box-shadow: 0 0 0 2px rgba(99,102,241,.45); }

@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

table { border-collapse: collapse; }
