/* ============================================================
   Tailwind Mini - 手写版
   精确覆盖 header.php 用到的所有类 + 常用通用类
   无需编译、无需 CDN
   ============================================================ */

/* ---------- 1. Preflight 重置 ---------- */
*, ::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%;
    -webkit-tap-highlight-color: transparent;
}
body { margin: 0; line-height: inherit; }
h1,h2,h3,h4,h5,h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
b,strong { font-weight: bolder; }
small { font-size: 80%; }
sub,sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -.25em; }
sup { top: -.5em; }
table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
button,input,optgroup,select,textarea {
    font-family: inherit; font-size: 100%; font-weight: inherit;
    line-height: inherit; color: inherit; margin: 0; padding: 0;
}
button,select { text-transform: none; }
button,[type="button"],[type="reset"],[type="submit"] {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}
::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; }
input::placeholder,textarea::placeholder { opacity: 1; color: #9ca3af; }
img,svg,video,canvas,audio,iframe,embed,object { display: block; vertical-align: middle; }
img,video { max-width: 100%; height: auto; }
[hidden]:not([hidden="until-found"]) { display: none; }

/* ---------- 2. body ---------- */
.bg-gray-100 { background-color: #f3f4f6; }
.min-h-screen { min-height: 100vh; }
.pb-24 { padding-bottom: 6rem; }
.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- 3. 布局 ---------- */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-self-start { justify-self: start; }
.justify-self-end { justify-self: end; }

.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.fixed { position: fixed; }

.top-0 { top: 0; }
.top-full { top: 100%; }
.top-1\/2 { top: 50%; }
.left-2 { left: .5rem; }
.left-3 { left: .75rem; }
.right-0 { right: 0; }
.right-1 { right: .25rem; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.overflow-x-auto { overflow-x: auto; }
.min-w-0 { min-width: 0; }

.-translate-y-1\/2 {
    --tw-translate-y: -50%;
    transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y));
}

/* ---------- 4. 尺寸 ---------- */
.w-full { width: 100%; }
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-36 { width: 9rem; }
.w-52 { width: 13rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.max-w-\[1440px\] { max-width: 1440px; }
.max-w-\[1800px\] { max-width: 1800px; }
.max-w-\[80px\] { max-width: 80px; }

/* ---------- 5. 间距 ---------- */
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: 1rem; }
.my-1 { margin-top: .25rem; margin-bottom: .25rem; }

.p-2 { padding: .5rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-1\.5 { padding-top: .375rem; padding-bottom: .375rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pt-2 { padding-top: .5rem; }
.pl-9 { padding-left: 2.25rem; }
.pr-16 { padding-right: 4rem; }

.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }

/* ---------- 6. 颜色 / 背景 ---------- */
.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-red-50 { background-color: #fef2f2; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-primary { background-color: #1677ff; }

.from-amber-400 { --tw-gradient-from: #fbbf24; }
.to-orange-500 { --tw-gradient-to: #f97316; }
.bg-gradient-to-r {
    background-image: linear-gradient(to right,
        var(--tw-gradient-from, transparent),
        var(--tw-gradient-to, transparent));
}

/* ---------- 7. 文字 ---------- */
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.whitespace-nowrap { white-space: nowrap; }
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.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-primary { color: #1677ff; }
.text-red-500 { color: #ef4444; }
.text-red-700 { color: #b91c1c; }
.text-green-700 { color: #15803d; }
.text-blue-700 { color: #1d4ed8; }
.text-amber-700 { color: #b45309; }

/* ---------- 8. 边框 / 圆角 / 阴影 ---------- */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-gray-100 { border-color: #f3f4f6; }
.border-red-200 { border-color: #fecaca; }
.border-green-200 { border-color: #bbf7d0; }
.border-blue-200 { border-color: #bfdbfe; }
.border-amber-100 { border-color: #fef3c7; }

.rounded-lg { border-radius: .5rem; }
.rounded-xl { border-radius: .75rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05); }
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1),
                0 4px 6px -4px rgba(0, 0, 0, .1);
}

/* ---------- 9. 其它 ---------- */
.object-cover { object-fit: cover; }
.flex-shrink-0 { flex-shrink: 0; }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.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(.4, 0, .2, 1);
    transition-duration: .15s;
}
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .15s;
}
.scroll-hide::-webkit-scrollbar { display: none; }
.scroll-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------- 10. grid 自定义模板（任意值） ---------- */
.grid-cols-\[auto_minmax\(0\,1fr\)_auto\] {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

/* ---------- 11. sr-only / focus 跳转 ---------- */
.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;
}
.focus\:not-sr-only:focus {
    position: static;
    width: auto; height: auto;
    padding: 0; margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}
.focus\:absolute:focus { position: absolute; }
.focus\:top-2:focus { top: .5rem; }
.focus\:left-2:focus { left: .5rem; }
.focus\:z-50:focus { z-index: 50; }
.focus\:px-4:focus { padding-left: 1rem; padding-right: 1rem; }
.focus\:py-2:focus { padding-top: .5rem; padding-bottom: .5rem; }
.focus\:bg-primary:focus { background-color: #1677ff; }
.focus\:text-white:focus { color: #fff; }
.focus\:rounded-lg:focus { border-radius: .5rem; }
.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px var(--tw-ring-color, rgba(59, 130, 246, .5));
}
.focus\:ring-primary\/40:focus { --tw-ring-color: rgba(22, 119, 255, .4); }
.focus\:bg-white:focus { background-color: #fff; }

/* ---------- 12. hover ---------- */
.hover\:opacity-90:hover { opacity: .9; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-red-50:hover { background-color: #fef2f2; }
.hover\:bg-blue-50:hover { background-color: #eff6ff; }
.hover\:text-primary:hover { color: #1677ff; }

/* ---------- 13. 响应式：sm ≥640px ---------- */
@media (min-width: 640px) {
    .sm\:block { display: block; }
    .sm\:inline-block { display: inline-block; }
    .sm\:gap-5 { gap: 1.25rem; }
}

/* ---------- 14. 响应式：md ≥768px ---------- */
@media (min-width: 768px) {
    .md\:block { display: block; }
    .md\:hidden { display: none; }
    .md\:pb-0 { padding-bottom: 0; }
}

/* ---------- 15. 响应式：lg ≥1024px ---------- */
@media (min-width: 1024px) {
    .lg\:grid-cols-\[minmax\(0\,1fr\)_28rem_minmax\(0\,1fr\)\] {
        grid-template-columns: minmax(0, 1fr) 28rem minmax(0, 1fr);
    }
}
/* ============================================================
   Tailwind Mini - 首页/列表页通用扩展
   追加到 tailwind-mini.css 末尾
   ============================================================ */

/* ---------- 显示 ---------- */
.inline { display: inline; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.block { display: block; }
.hidden { display: none; }

/* ---------- Flex ---------- */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-none { flex: none; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }

/* ---------- Grid ---------- */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 间距 ---------- */
.m-0 { margin: 0; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.ml-1 { margin-left: .25rem; }
.ml-2 { margin-left: .5rem; }
.ml-auto { margin-left: auto; }
.mr-1 { margin-right: .25rem; }
.mr-2 { margin-right: .5rem; }
.mr-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }

.p-1 { padding: .25rem; }
.p-2 { padding: .5rem; }
.p-3 { padding: .75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.pt-2 { padding-top: .5rem; }
.pt-3 { padding-top: .75rem; }
.pt-4 { padding-top: 1rem; }
.pb-2 { padding-bottom: .5rem; }
.pb-3 { padding-bottom: .75rem; }
.pb-4 { padding-bottom: 1rem; }

.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: .25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: .5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: .75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: .5rem; }
.space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: .75rem; }

/* ---------- 尺寸 ---------- */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.min-w-0 { min-width: 0; }
.max-w-full { max-width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }

/* ---------- 文字 ---------- */
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.whitespace-nowrap { white-space: nowrap; }
.break-all { word-break: break-all; }
.break-words { overflow-wrap: break-word; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uppercase { text-transform: uppercase; }
.underline { text-decoration-line: underline; }
.no-underline { text-decoration-line: none; }
.line-through { text-decoration-line: line-through; }
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 颜色：文字 ---------- */
.text-white { color: #fff; }
.text-black { color: #000; }
.text-gray-300 { color: #d1d5db; }
.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-gray-900 { color: #111827; }
.text-primary { color: #1677ff; }
.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: #2563eb; }
.text-red-400 { color: #f87171; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-green-500 { color: #22c55e; }
.text-green-600 { color: #16a34a; }
.text-orange-500 { color: #f97316; }
.text-orange-600 { color: #ea580c; }
.text-amber-500 { color: #f59e0b; }

/* ---------- 颜色：背景 ---------- */
.bg-white { background-color: #fff; }
.bg-transparent { background-color: transparent; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-blue-600 { background-color: #2563eb; }
.bg-red-50 { background-color: #fef2f2; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-orange-50 { background-color: #fff7ed; }
.bg-primary { background-color: #1677ff; }

/* ---------- 边框 ---------- */
.border { border-width: 1px; }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-l { border-left-width: 1px; }
.border-r { border-right-width: 1px; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-blue-200 { border-color: #bfdbfe; }
.border-primary { border-color: #1677ff; }
.border-transparent { border-color: transparent; }

/* ---------- 圆角 ---------- */
.rounded { border-radius: .25rem; }
.rounded-md { border-radius: .375rem; }
.rounded-lg { border-radius: .5rem; }
.rounded-xl { border-radius: .75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* ---------- 阴影 ---------- */
.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1); }

/* ---------- 定位 ---------- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.top-1\/2 { top: 50%; }
.left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ---------- 其它 ---------- */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.pointer-events-none { pointer-events: none; }
.select-none { user-select: none; }
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: .5; }
.opacity-100 { opacity: 1; }
.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(.4, 0, .2, 1); transition-duration: .15s; }
.transition-all { transition: all .15s cubic-bezier(.4, 0, .2, 1); }
.duration-200 { transition-duration: .2s; }
.duration-300 { transition-duration: .3s; }

/* ---------- hover ---------- */
.hover\:text-primary:hover { color: #1677ff; }
.hover\:text-blue-600:hover { color: #2563eb; }
.hover\:text-red-500:hover { color: #ef4444; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-blue-50:hover { background-color: #eff6ff; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1); }
.hover\:underline:hover { text-decoration-line: underline; }
.hover\:opacity-90:hover { opacity: .9; }
.hover\:opacity-100:hover { opacity: 1; }

/* ---------- 响应式：sm ≥640px ---------- */
@media (min-width: 640px) {
    .sm\:block { display: block; }
    .sm\:hidden { display: none; }
    .sm\:flex { display: flex; }
    .sm\:inline-block { display: inline-block; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:gap-3 { gap: .75rem; }
    .sm\:gap-4 { gap: 1rem; }
    .sm\:gap-5 { gap: 1.25rem; }
    .sm\:text-sm { font-size: .875rem; line-height: 1.25rem; }
    .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
    .sm\:py-3 { padding-top: .75rem; padding-bottom: .75rem; }
}

/* ---------- 响应式：md ≥768px ---------- */
@media (min-width: 768px) {
    .md\:block { display: block; }
    .md\:hidden { display: none; }
    .md\:flex { display: flex; }
    .md\:inline-block { display: inline-block; }
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:gap-4 { gap: 1rem; }
    .md\:gap-5 { gap: 1.25rem; }
    .md\:gap-6 { gap: 1.5rem; }
    .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .md\:py-4 { padding-top: 1rem; padding-bottom: 1rem; }
    .md\:pb-0 { padding-bottom: 0; }
}

/* ---------- 响应式：lg ≥1024px ---------- */
@media (min-width: 1024px) {
    .lg\:block { display: block; }
    .lg\:hidden { display: none; }
    .lg\:flex { display: flex; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .lg\:gap-6 { gap: 1.5rem; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}
/* ============================================================
   颜色补全 - 覆盖 price_badge 等组件常用色阶
   ============================================================ */

/* ---- 背景色 ---- */
.bg-orange-400 { background-color: #fb923c; }
.bg-orange-500 { background-color: #f97316; }
.bg-orange-600 { background-color: #ea580c; }
.bg-red-400    { background-color: #f87171; }
.bg-red-500    { background-color: #ef4444; }
.bg-red-600    { background-color: #dc2626; }
.bg-amber-400  { background-color: #fbbf24; }
.bg-amber-500  { background-color: #f59e0b; }
.bg-yellow-400 { background-color: #facc15; }
.bg-yellow-500 { background-color: #eab308; }
.bg-green-400  { background-color: #4ade80; }
.bg-green-500  { background-color: #22c55e; }
.bg-green-600  { background-color: #16a34a; }
.bg-blue-400   { background-color: #60a5fa; }
.bg-blue-700   { background-color: #1d4ed8; }

/* ---- 文字色 ---- */
.text-orange-400 { color: #fb923c; }
.text-orange-500 { color: #f97316; }
.text-orange-600 { color: #ea580c; }
.text-red-400    { color: #f87171; }
.text-red-500    { color: #ef4444; }
.text-red-600    { color: #dc2626; }
.text-amber-400  { color: #fbbf24; }
.text-amber-500  { color: #f59e0b; }
.text-yellow-400 { color: #facc15; }
.text-yellow-500 { color: #eab308; }
.text-green-400  { color: #4ade80; }
.text-green-500  { color: #22c55e; }
.text-green-600  { color: #16a34a; }
.text-blue-400   { color: #60a5fa; }
.text-blue-700   { color: #1d4ed8; }
.text-transparent { color: transparent; }

/* ---- 渐变文字（bg-clip-text 方案） ---- */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}
.from-orange-400 { --tw-gradient-from: #fb923c; }
.from-orange-500 { --tw-gradient-from: #f97316; }
.to-red-500      { --tw-gradient-to: #ef4444; }
.to-orange-500   { --tw-gradient-to: #f97316; }
.bg-gradient-to-r {
    background-image: linear-gradient(to right,
        var(--tw-gradient-from, transparent),
        var(--tw-gradient-to, transparent));
}

/* ---- 边框 ---- */
.border-orange-200 { border-color: #fed7aa; }
.border-orange-300 { border-color: #fdba74; }
.border-red-200    { border-color: #fecaca; }
.border-red-300    { border-color: #fca5a5; }
.border-amber-200  { border-color: #fde68a; }
.border-green-200  { border-color: #bbf7d0; }
.border-blue-200   { border-color: #bfdbfe; }
.border-blue-300   { border-color: #93c5fd; }

/* 筛选卡片：三行之间加分隔线 */
.filter-card > div + div {
    padding-top: 14px;
    border-top: 1px dashed #eef2f8;
}
/* ============================================================
   个人中心补充（user/index.php）
   ============================================================ */

/* ---------- Flex / Grid 响应式 ---------- */
.flex-col { flex-direction: column; }
@media (min-width: 1024px) {
    .lg\:flex-row { flex-direction: row; }
    .lg\:w-56 { width: 14rem; }
}
@media (min-width: 640px) {
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 尺寸 ---------- */
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.h-full { height: 100%; }
.max-w-xl { max-width: 36rem; }
.max-w-md { max-width: 28rem; }

/* ---------- 间距 ---------- */
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; }
.mt-3 { margin-top: .75rem; }
.mb-5 { margin-bottom: 1.25rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: .75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }

/* ---------- 圆角 ---------- */
.rounded-2xl { border-radius: 1rem; }

/* ---------- 边框 ---------- */
.border-l-2 { border-left-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-primary { border-color: #1677ff; }
.border-transparent { border-color: transparent; }

/* ---------- 文字 ---------- */
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.font-medium { font-weight: 500; }
.text-pink-500 { color: #ec4899; }
.text-green-500 { color: #22c55e; }
.text-green-600 { color: #16a34a; }
.text-orange-500 { color: #f97316; }
.text-amber-600 { color: #d97706; }
.text-red-400 { color: #f87171; }
.text-red-500 { color: #ef4444; }

/* ---------- 背景 ---------- */
.bg-gray-100 { background-color: #f3f4f6; }
.bg-orange-100 { background-color: #ffedd5; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-pink-50 { background-color: #fdf2f8; }

/* ---------- 交互 ---------- */
.hover\:bg-orange-100:hover { background-color: #ffedd5; }
.hover\:text-orange-500:hover { color: #f97316; }
.hover\:underline:hover { text-decoration-line: underline; }
.hover\:text-primary:hover { color: #1677ff; }
.focus\:border-primary:focus { border-color: #1677ff; }
.focus\:outline-none:focus { outline: none; }

/* ---------- 其它 ---------- */
.object-cover { object-fit: cover; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
/* ============================================================
   登录/注册页补充
   ============================================================ */
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-8 { padding: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-1 { margin-top: .25rem; }
.mb-1 { margin-bottom: .25rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-center { text-align: center; }
.text-gray-800 { color: #1f2937; }
.text-gray-600 { color: #4b5563; }
.text-gray-500 { color: #6b7280; }
.text-gray-400 { color: #9ca3af; }
.text-primary { color: #1677ff; }
.text-green-700 { color: #15803d; }
.text-red-600 { color: #dc2626; }
.font-bold { font-weight: 700; }
.rounded-lg { border-radius: .5rem; }
.rounded-2xl { border-radius: 1rem; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); }
.border { border-width: 1px; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-300 { border-color: #d1d5db; }
.border-green-200 { border-color: #bbf7d0; }
.border-red-200 { border-color: #fecaca; }
.bg-white { background-color: #fff; }
.bg-primary { background-color: #1677ff; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-red-50 { background-color: #fef2f2; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; }
.w-full { width: 100%; }
.block { display: block; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:border-primary:focus { border-color: #1677ff; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--tw-ring-color, rgba(22,119,255,.5)); }
.focus\:ring-primary\/20:focus { --tw-ring-color: rgba(22,119,255,.2); }
.hover\:opacity-90:hover { opacity: .9; }
.transition { transition: all .15s cubic-bezier(.4,0,.2,1); }
/* ============================================================
   footer 补充
   ============================================================ */
.max-w-\[1440px\] { max-width: 1440px; }
.mt-10 { margin-top: 2.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.gap-x-6 { column-gap: 1.5rem; }
.gap-y-2 { row-gap: .5rem; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.leading-6 { line-height: 1.5rem; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-center { text-align: center; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.bg-white { background-color: #fff; }
.border-t { border-top-width: 1px; }
.hover\:text-primary:hover { color: #1677ff; }

@media (min-width: 768px) {
    .md\:hidden { display: none; }
}
/* ============================================================
   排行榜页补充（rank.php）
   ============================================================ */

/* 表格基础 */
.table-fixed { table-layout: fixed; }
.align-middle { vertical-align: middle; }
.min-w-\[860px\] { min-width: 860px; }

/* 列宽（任意值，每个百分比都要有） */
.w-\[7\%\]  { width: 7%; }
.w-\[45\%\] { width: 45%; }
.w-\[8\%\]  { width: 8%; }
.w-\[10\%\] { width: 10%; }
.w-\[9\%\]  { width: 9%; }
.w-\[12\%\] { width: 12%; }

/* 表格单元格内边距 */
.py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; }
.py-3    { padding-top: .75rem; padding-bottom: .75rem; }
.px-2    { padding-left: .5rem; padding-right: .5rem; }
.px-3    { padding-left: .75rem; padding-right: .75rem; }

/* 边框 */
.border-r { border-right-width: 1px; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-dashed { border-style: dashed; }
.border-b { border-bottom-width: 1px; }
.last\:border-r-0:last-child { border-right-width: 0; }
.last\:border-b-0:last-child { border-bottom-width: 0; }

/* 字号 */
.text-sm   { font-size: .875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem;    line-height: 1.5rem; }
.text-xs   { font-size: .75rem;  line-height: 1rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }

/* 空状态 */
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.mb-3  { margin-bottom: .75rem; }

/* Tab 切换栏 */
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: .5rem; }
.px-4  { padding-left: 1rem; padding-right: 1rem; }
.py-3  { padding-top: .75rem; padding-bottom: .75rem; }