/* 精简版工具类 - 替代Tailwind CSS */

/* ===== Flexbox ===== */
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }

/* ===== Spacing ===== */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

.ml-2 { margin-left: 0.5rem; }
.mr-1 { margin-right: 0.25rem; }

.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }

.pr-2 { padding-right: 0.5rem; }
.pr-5 { padding-right: 1.25rem; }

.pl-10 { padding-left: 2.5rem; }

.pt-2 { padding-top: 0.5rem; }

.space-y-4 > * + * { margin-top: 1rem; }

/* ===== Typography ===== */
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xs { font-size: 0.75rem; }

.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }

.text-center { text-align: center; }

.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-blue-800 { color: #1e40af; }
.text-dark { color: #1f2937; }

/* ===== Background Colors ===== */
.bg-white { background-color: #ffffff; }
.bg-gray-300 { background-color: #d1d5db; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-green-500 { background-color: #22c55e; }

/* ===== Border & Radius ===== */
.border { border: 1px solid #e5e7eb; }
.rounded { border-radius: 0.375rem; }
.rounded-full { border-radius: 9999px; }

.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }

/* ===== Width ===== */
.w-11 { width: 2.75rem; }
.w-2\/3 { width: 66.666667%; }
.w-2\/5 { width: 40%; }
.w-3\/5 { width: 60%; }
.w-1\/3 { width: 33.333333%; }

/* ===== Height ===== */
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-\[600px\] { height: 600px; }

/* ===== Min/Max Height ===== */
.min-h-\[80px\] { min-height: 80px; }
.max-h-\[600px\] { max-height: 600px; }

/* ===== Position ===== */
.relative { position: relative; }
.absolute { position: absolute; }

.after\:absolute::after { position: absolute; }
.after\:content-\[\'\'\]::after { content: ''; }
.after\:top-\[2px\]::after { top: 2px; }
.after\:left-\[2px\]::after { left: 2px; }
.after\:h-5::after { height: 1.25rem; }
.after\:w-5::after { width: 1.25rem; }
.after\:rounded-full::after { border-radius: 9999px; }
.after\:border::after { border: 1px solid; }
.after\:border-gray-300::after { border-color: #d1d5db; }
.after\:bg-white::after { background-color: #ffffff; }
.after\:transition-all::after { transition: all; }

/* ===== Cursor ===== */
.cursor-pointer { cursor: pointer; }

/* ===== Inline ===== */
.inline-flex { display: inline-flex; }

/* ===== Peer (Toggle Switch) ===== */
.peer:focus { outline: none; }
.peer-checked\:bg-green-500:checked { background-color: #22c55e; }
.peer-checked\:after\:translate-x-full:checked::after { transform: translateX(100%); }
.peer-checked\:after\:border-white:checked::after { border-color: #ffffff; }

/* ===== Focus ===== */
.peer-focus\:outline-none:focus { outline: none; }

/* ===== Transition ===== */
.transition-all { transition: all; }

/* ===== Screen Reader Only ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
