/* =========================================================================
   Tailwind CSS v4.3 — 生产环境静态构建
   基于 index.html 中使用的 class 按需提取，替代 CDN Play 版本。
   构建命令: npx @tailwindcss/cli -i ./static/css/input.css -o ./static/css/tailwind.css
   ========================================================================= */

/*! tailwindcss v4 | MIT License | https://tailwindcss.com */

/* ===== 基础重置 ===== */
*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; font-family: ui-sans-serif, system-ui, sans-serif; }
body { margin: 0; line-height: inherit; }

/* ===== 布局 ===== */
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1 1 0%; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.bottom-2 { bottom: 0.5rem; }
.right-2 { right: 0.5rem; }
.bottom-5 { bottom: 1.25rem; }
.right-5 { right: 1.25rem; }
.z-50 { z-index: 50; }

/* ===== Grid ===== */
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.col-span-12 { grid-column: span 12 / span 12; }
.gap-4 { gap: 1rem; }
.gap-3 { gap: 0.75rem; }

/* ===== 尺寸 ===== */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.max-w-\[1920px\] { max-width: 1920px; }
.max-w-md { max-width: 28rem; }
.max-h-\[440px\] { max-height: 440px; }
.max-h-\[70px\] { max-height: 70px; }
.min-h-screen { min-height: 100vh; }
.min-h-\[90px\] { min-height: 90px; }
.min-h-\[300px\] { min-height: 300px; }
.min-w-\[1100px\] { min-width: 1100px; }

/* ===== 间距 ===== */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.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; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.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; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-3 { margin-top: 0.75rem; }
.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-1\.5 > * + * { margin-left: 0.375rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }

/* ===== 排版 ===== */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[9px\] { font-size: 9px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-mono { font-family: ui-monospace, monospace; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.leading-tight { line-height: 1.25; }

/* ===== 圆角 ===== */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.rounded-tl { border-top-left-radius: 0.25rem; }
.rounded-bl { border-bottom-left-radius: 0.25rem; }

/* ===== 边框 ===== */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-dashed { border-style: dashed; }
.border-slate-700 { border-color: #334155; }
.border-slate-800 { border-color: #1e293b; }
.border-sky-400 { border-color: #38bdf8; }
.border-rose-500 { border-color: #f43f5e; }
.border-indigo-500 { border-color: #6366f1; }
.border-sky-500 { border-color: #0ea5e9; }
.hover\:border-sky-500:hover { border-color: #0ea5e9; }
.hover\:border-slate-500:hover { border-color: #64748b; }

/* ===== 背景 ===== */
.bg-slate-700 { background-color: #334155; }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-900 { background-color: #0f172a; }
.bg-slate-950 { background-color: #020617; }
.bg-rose-600 { background-color: #e11d48; }
.bg-rose-950 { background-color: #4c0519; }
.bg-emerald-500 { background-color: #10b981; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-sky-950 { background-color: #082f49; }
.bg-rose-500 { background-color: #f43f5e; }

/* 带透明度背景 */
.bg-slate-900\/40 { background-color: rgba(15, 23, 42, 0.4); }
.bg-slate-900\/60 { background-color: rgba(15, 23, 42, 0.6); }
.bg-slate-900\/80 { background-color: rgba(15, 23, 42, 0.8); }
.bg-slate-900\/90 { background-color: rgba(15, 23, 42, 0.9); }
.bg-slate-950\/40 { background-color: rgba(2, 6, 23, 0.4); }
.bg-slate-950\/80 { background-color: rgba(2, 6, 23, 0.8); }
.bg-indigo-600\/30 { background-color: rgba(79, 70, 229, 0.3); }
.bg-rose-600\/20 { background-color: rgba(225, 29, 72, 0.2); }
.bg-rose-950\/80 { background-color: rgba(76, 5, 25, 0.8); }
.bg-indigo-500\/10 { background-color: rgba(99, 102, 241, 0.1); }
.bg-sky-500\/20 { background-color: rgba(14, 165, 233, 0.2); }
.bg-amber-500\/10 { background-color: rgba(245, 158, 11, 0.1); }
.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.1); }
.bg-rose-500\/20 { background-color: rgba(244, 63, 94, 0.2); }
.bg-sky-950\/70 { background-color: rgba(8, 47, 73, 0.7); }

/* hover 背景 */
.hover\:bg-slate-800\/40:hover { background-color: rgba(30, 41, 59, 0.4); }
.hover\:bg-indigo-600\/50:hover { background-color: rgba(79, 70, 229, 0.5); }
.hover\:bg-rose-600:hover { background-color: #e11d48; }
.hover\:bg-rose-600\/40:hover { background-color: rgba(225, 29, 72, 0.4); }

/* ===== 文字颜色 ===== */
.text-white { color: #fff; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-600 { color: #475569; }
.text-sky-400 { color: #38bdf8; }
.text-indigo-300 { color: #a5b4fc; }
.text-indigo-400 { color: #818cf8; }
.text-rose-200 { color: #fecdd3; }
.text-rose-300 { color: #fda4af; }
.text-rose-400 { color: #fb7185; }
.text-amber-300 { color: #fcd34d; }
.text-amber-400 { color: #fbbf24; }
.text-emerald-400 { color: #34d399; }

/* hover 文字 */
.hover\:text-white:hover { color: #fff; }
.hover\:text-sky-400:hover { color: #38bdf8; }
.hover\:text-rose-300:hover { color: #fda4af; }

/* ===== 渐变 ===== */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--gradient-from), var(--gradient-to)); }
.from-sky-500 { --gradient-from: #0ea5e9; }
.to-indigo-600 { --gradient-to: #4f46e5; }
.hover\:from-sky-400:hover { --gradient-from: #38bdf8; }
.hover\:to-indigo-500:hover { --gradient-to: #6366f1; }

/* ===== 阴影 ===== */
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.shadow-sky-500\/20 { --shadow-color: rgba(14, 165, 233, 0.2); }
.shadow-indigo-500\/20 { --shadow-color: rgba(99, 102, 241, 0.2); }

/* ===== 过渡 ===== */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

/* ===== 变换 ===== */
.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.scale-100 { --tw-scale-x: 1; --tw-scale-y: 1; }

/* ===== 溢出 ===== */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }

/* ===== 其他 ===== */
.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; }
.opacity-0 { opacity: 0; }
.opacity-40 { opacity: 0.4; }
.opacity-80 { opacity: 0.8; }
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.pointer-events-none { pointer-events: none; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.flex-shrink-0 { flex-shrink: 0; }
.break-words { overflow-wrap: break-word; }
.ring-2 { box-shadow: 0 0 0 2px var(--ring-color); }
.ring-sky-400\/40 { --ring-color: rgba(56, 189, 248, 0.4); }
.backdrop-blur { backdrop-filter: blur(8px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }

/* ===== 动画 ===== */
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* ===== 响应式 lg ===== */
@media (min-width: 1024px) {
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:col-span-9 { grid-column: span 9 / span 9; }
}
@media (min-width: 768px) {
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ===== 分隔线 ===== */
.divide-y > * + * { border-top-width: 1px; }
.divide-slate-800\/60 > * + * { border-color: rgba(30, 41, 59, 0.6); }

/* ===== Peer checked (盖章开关) ===== */
.peer:checked ~ .peer-checked\:bg-rose-600 { background-color: #e11d48; }
.peer:checked ~ .peer-checked\:after\:translate-x-full::after { --tw-translate-x: 100%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.peer:checked ~ .peer-checked\:after\:border-white::after { border-color: #fff; }
.peer:focus ~ .peer-focus\:outline-none { outline: 2px solid transparent; outline-offset: 2px; }

/* ===== After 伪元素 (开关滑块) ===== */
.after\:content-\[\'\'\]::after { content: ''; }
.after\:absolute::after { position: absolute; }
.after\:top-\[2px\]::after { top: 2px; }
.after\:left-\[2px\]::after { left: 2px; }
.after\:bg-white::after { background-color: #fff; }
.after\:border::after { border-width: 1px; }
.after\:border-slate-300::after { border-color: #cbd5e1; }
.after\:rounded-full::after { border-radius: 9999px; }
.after\:h-3::after { height: 0.75rem; }
.after\:w-3::after { width: 0.75rem; }
.after\:transition-all::after { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
