/* tailwind-fallback.css — CDN 离线回退样式（关键布局 utility 类） */
/* 用于 CDN 不可用时保持基本布局，生产环境建议本地构建 Tailwind */

/* ========== Layout ========== */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.block { display: block; }
.inline { display: inline; }
.hidden { display: none; }
.shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.content-center { align-content: center; }
.self-center { align-self: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-10 { gap: 2.5rem; }
.gap-20 { gap: 5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-20 > * + * { margin-top: 5rem; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* ========== 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)); }

/* ========== Sizing ========== */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-3 { width: 0.75rem; }
.w-6 { width: 1.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-72 { width: 18rem; }
.h-full { height: 100%; }
.h-3 { height: 0.75rem; }
.h-7 { height: 1.75rem; }
.h-16 { height: 4rem; }
.h-72 { height: 18rem; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }
.object-cover { object-fit: cover; }

/* ========== Spacing ========== */
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.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; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.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; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-6 { padding-top: 1.5rem; }

/* ========== Typography ========== */
.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-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; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.text-8xl { font-size: 6rem; line-height: 1; }
.text-9xl { font-size: 8rem; line-height: 1; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-light { font-weight: 300; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.whitespace-nowrap { white-space: nowrap; }
.break-all { word-break: break-all; }

/* ========== Colors (dark theme) ========== */
.text-white { color: #fff; }
.text-gray-200 { color: #e5e5e5; }
.text-gray-300 { color: #d1d1d1; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gold-400 { color: #c9a84c; }
.text-gold-400\/60 { color: rgba(201,168,76,0.6); }
.text-gold-400\/70 { color: rgba(201,168,76,0.7); }
.text-gold-400\/80 { color: rgba(201,168,76,0.8); }
.text-green-400 { color: #4ade80; }
.text-blue-400 { color: #60a5fa; }
.text-red-400 { color: #f87171; }
.text-dark-900 { color: #0a0a0a; }
.text-transparent { color: transparent; }

.bg-dark-900 { background-color: #0a0a0a; }
.bg-dark-800 { background-color: #141414; }
.bg-dark-800\/30 { background-color: rgba(20,20,20,0.3); }
.bg-dark-800\/50 { background-color: rgba(20,20,20,0.5); }
.bg-dark-800\/90 { background-color: rgba(20,20,20,0.9); }
.bg-dark-700 { background-color: #1a1a1a; }
.bg-dark-700\/30 { background-color: rgba(26,26,26,0.3); }
.bg-black\/60 { background-color: rgba(0,0,0,0.6); }
.bg-red-900\/30 { background-color: rgba(127,29,29,0.3); }
.bg-green-900\/30 { background-color: rgba(20,83,45,0.3); }
.bg-blue-900\/30 { background-color: rgba(30,58,138,0.3); }
.bg-gold-400 { background-color: #c9a84c; }
.bg-gold-400\/20 { background-color: rgba(201,168,76,0.2); }
.bg-red-600 { background-color: #dc2626; }
.bg-transparent { background-color: transparent; }
.bg-gray-800 { background-color: #1f2937; }

.border { border: 1px solid; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-dashed { border-style: dashed; }
.border-transparent { border-color: transparent; }
.border-\[\#222\] { border-color: #222; }
.border-\[\#222\]\/50 { border-color: rgba(34,34,34,0.5); }
.border-\[\#333\] { border-color: #333; }
.border-\[\#444\] { border-color: #444; }
.border-gold-400\/30 { border-color: rgba(201,168,76,0.3); }
.border-gold-400\/50 { border-color: rgba(201,168,76,0.5); }
.border-gold-400\/20 { border-color: rgba(201,168,76,0.2); }
.border-red-800 { border-color: #991b1b; }
.border-red-900\/50 { border-color: rgba(127,29,29,0.5); }
.border-t-transparent { border-top-color: transparent; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* ========== Effects ========== */
.opacity-0 { opacity: 0; }
.opacity-60 { opacity: 0.6; }
.opacity-100 { opacity: 1; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }

/* ========== Transitions ========== */
.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.duration-500 { transition-duration: 500ms; }
.duration-1000 { transition-duration: 1000ms; }
.scale-105 { --tw-scale-x: 1.05; --tw-scale-y: 1.05; transform: scale(1.05); }
.group:hover .group-hover\:scale-105 { --tw-scale-x: 1.05; --tw-scale-y: 1.05; transform: scale(1.05); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:text-gold-400 { color: #c9a84c; }
.group:hover .group-hover\:border-gold-400\/30 { border-color: rgba(201,168,76,0.3); }
.hover\:text-gold-300:hover { color: #d4b85c; }
.hover\:text-gold-400:hover { color: #c9a84c; }
.hover\:text-gold-500:hover { color: #b8942e; }
.hover\:text-white:hover { color: #fff; }
.hover\:text-red-300:hover { color: #fca5a5; }
.hover\:text-red-400:hover { color: #f87171; }
.hover\:border-gold-400\/50:hover { border-color: rgba(201,168,76,0.5); }
.hover\:border-gold-400\/30:hover { border-color: rgba(201,168,76,0.3); }
.hover\:bg-dark-700:hover { background-color: #1a1a1a; }
.hover\:bg-dark-700\/30:hover { background-color: rgba(26,26,26,0.3); }
.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:bg-red-900\/20:hover { background-color: rgba(127,29,29,0.2); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.hover\:shadow-gold-400\/20:hover { box-shadow: 0 10px 15px -3px rgba(201,168,76,0.2); }
.focus\:border-gold-400\/50:focus { border-color: rgba(201,168,76,0.5); }
.focus-within\:border-gold-400\/50:focus-within { border-color: rgba(201,168,76,0.5); }

/* ========== Misc ========== */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.resize-none { resize: none; }
.no-underline { text-decoration: none; }
.list-none { list-style: none; }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.loading-lazy {  }
.object-cover { object-fit: cover; }
.overflow-hidden { overflow: hidden; }
.shrink-0 { flex-shrink: 0; }
.accent-gold-400 { accent-color: #c9a84c; }

/* ========== Responsive ========== */
@media (min-width: 640px) {
  .sm\:inline { display: inline; }
  .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\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
  .sm\:text-8xl { font-size: 6rem; line-height: 1; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 768px) {
  .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\:flex-row { flex-direction: row; }
  .md\:flex-row-reverse { flex-direction: row-reverse; }
  .md\:text-9xl { font-size: 8rem; line-height: 1; }
}

/* ========== Animations ========== */
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

/* Toast 系统 */
.toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
.toast { pointer-events: auto; padding: 0.75rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; box-shadow: 0 4px 12px rgba(0,0,0,0.3); animation: toast-in 0.3s ease-out; max-width: 24rem; word-break: break-word; }
.toast-info { background: #1e3a5f; border: 1px solid #2d5a8a; color: #93c5fd; }
.toast-success { background: #14532d; border: 1px solid #22c55e; color: #86efac; }
.toast-error { background: #7f1d1d; border: 1px solid #ef4444; color: #fca5a5; }
.toast-warning { background: #713f12; border: 1px solid #eab308; color: #fde68a; }
@keyframes toast-in { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100%); } }
