/* Tailwind 优化版 - 只包含页面实际使用的类 */

/* GPU 加速优化 */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Flex & Grid */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* Gap */
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-4 { gap: 1rem; }
.gap-10 { gap: 2.5rem; }

/* Padding */
.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-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.pt-6 { padding-top: 1.5rem; }

/* Margin */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }

/* Width & Height */
.w-full { width: 100%; }
.w-2 { width: 0.5rem; }
.w-9 { width: 2.25rem; }
.h-2 { height: 0.5rem; }
.h-9 { height: 2.25rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }

/* Text */
.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-\[15px\] { font-size: 15px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-\[0\.18em\] { letter-spacing: 0.18em; }
.leading-6 { line-height: 1.5rem; }
.leading-7 { line-height: 1.75rem; }
.leading-8 { line-height: 2rem; }

/* Colors */
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-900 { color: #0f172a; }

.bg-white { background-color: #ffffff; }
.bg-rose-500 { background-color: #f43f5e; }
.bg-emerald-500 { background-color: #10b981; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-300 { background-color: #cbd5e1; }
.bg-slate-500 { background-color: #64748b; }

/* Border */
.border { border-width: 1px; }
.border-slate-200 { border-color: #e2e8f0; }

/* Border Radius */
.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 0.75rem; }

/* Responsive */
@media (min-width: 1280px) {
  .xl\:grid-cols-\[1\.02fr_\.98fr\] {
    grid-template-columns: 1.02fr 0.98fr;
  }
}

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:justify-between { justify-content: space-between; }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
}

@media (min-width: 1024px) {
  .lg\:text-\[88px\] { font-size: 88px; }
}

/* Hover */
.hover\:bg-slate-50:hover { background-color: #f8fafc; }

/* 动画性能优化 */
.orb, .ticker, .head-swing, .blink-eye, .mouth-frame-1, .mouth-frame-2, 
.mouth-frame-3, .mouth-frame-4, .swear-a, .swear-b, .swear-c, .swear-d,
.badge-float-a, .badge-float-b, .badge-float-c, .badge-float-d,
.pulse-ring, .eq-bar, .chip, .hero-art, .popup, .click-burst,
.title-glitch::before, .title-glitch::after {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* 减少 SVG 重绘 */
#memeSvg {
  will-change: transform;
  transform: translateZ(0);
}

/* 优化口型动画 - 使用 transform 替代 opacity */
.mouth-frame-1, .mouth-frame-2, .mouth-frame-3, .mouth-frame-4 {
  will-change: opacity;
}

/* 优化眨眼动画 */
.blink-eye {
  will-change: transform;
}

/* 优化背景元素 */
.page-bg, .grid-bg {
  will-change: auto;
  pointer-events: none;
}

/* 启用 GPU 合成层 */
.orb {
  transform: translateZ(0) translate(0, 0) scale(1);
}
