/* ================================================================
   UserCenter 全局样式表 — 原生 CSS
   ================================================================ */

/* ========== 1. CSS 变量（设计令牌） ========== */
:root {
  /* Indigo 色阶 */
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-300: #a5b4fc;
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;

  /* Gray 色阶 */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Red 色阶 */
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-200: #fecaca;
  --red-300: #fca5a5;
  --red-400: #f87171;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-800: #991b1b;

  /* Green 色阶 */
  --green-100: #dcfce7;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-800: #166534;

  /* Blue 色阶 */
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;

  /* Yellow 色阶 */
  --yellow-500: #eab308;

  /* 间距基准 (1 unit = 0.25rem = 4px) */
  --spacing-px: 1px;
  --spacing-0-5: 0.125rem;
  --spacing-1: 0.25rem;
  --spacing-1-5: 0.375rem;
  --spacing-2: 0.5rem;
  --spacing-2-5: 0.625rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  --spacing-14: 3.5rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;
  --spacing-48: 12rem;

  /* 圆角 */
  --radius-sm: 0.125rem;
  --radius: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* 字号 */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-9xl: 8rem;

  /* 行高 */
  --leading-xs: 1rem;
  --leading-sm: 1.25rem;
  --leading-base: 1.5rem;
  --leading-lg: 1.75rem;
  --leading-2xl: 2rem;
  --leading-3xl: 2.25rem;
  --leading-9xl: 1;
}

/* ========== 2. 重置 & 基础样式 ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  color: var(--gray-900);
}

img, svg {
  display: block;
  max-width: 100%;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #c7d2fe;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a5b4fc;
}

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

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-1 { flex: 1 1 0%; }
.flex-none { flex: none; }
.flex-shrink-0 { flex-shrink: 0; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-4 { top: 1rem; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.right-3 { right: 0.75rem; }
.right-4 { right: 1rem; }
.top-1\/2 { top: 50%; }

.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

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

.text-center { text-align: center; }
.text-left { text-align: left; }

/* ========== 4. 尺寸工具类 ========== */
.w-1 { width: 0.25rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-32 { width: 8rem; }
.w-48 { width: 12rem; }
.w-full { width: 100%; }

.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-48 { height: 12rem; }

.min-h-screen { min-height: 100vh; }

.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-\[200px\] { max-width: 200px; }

.mx-auto { margin-left: auto; margin-right: auto; }

/* ========== 5. 间距工具类 ========== */

/* padding */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.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; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pl-3 { padding-left: 0.75rem; }
.pr-10 { padding-right: 2.5rem; }

/* margin */
.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; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.-mb-px { margin-bottom: -1px; }

/* gap */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

/* space（子元素间距） */
.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }

/* ========== 6. 排版工具类 ========== */
.text-xs { font-size: var(--text-xs); line-height: var(--leading-xs); }
.text-sm { font-size: var(--text-sm); line-height: var(--leading-sm); }
.text-base { font-size: var(--text-base); line-height: var(--leading-base); }
.text-lg { font-size: var(--text-lg); line-height: var(--leading-lg); }
.text-xl { font-size: var(--text-xl); line-height: 1.75rem; }
.text-2xl { font-size: var(--text-2xl); line-height: var(--leading-2xl); }
.text-3xl { font-size: var(--text-3xl); line-height: var(--leading-3xl); }
.text-9xl { font-size: var(--text-9xl); line-height: var(--leading-9xl); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.whitespace-nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break-all { word-break: break-all; }
.line-through { text-decoration: line-through; }

/* ========== 7. 文字颜色工具类 ========== */
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-gray-300 { color: var(--gray-300); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }
.text-gray-900 { color: var(--gray-900); }
.text-indigo-500 { color: var(--indigo-500); }
.text-indigo-600 { color: var(--indigo-600); }
.text-indigo-700 { color: var(--indigo-700); }
.text-green-600 { color: var(--green-600); }
.text-green-800 { color: var(--green-800); }
.text-red-400 { color: var(--red-400); }
.text-red-500 { color: var(--red-500); }
.text-red-600 { color: var(--red-600); }
.text-red-700 { color: var(--red-700); }
.text-red-800 { color: var(--red-800); }
.text-blue-500 { color: var(--blue-500); }
.text-blue-600 { color: var(--blue-600); }
.text-blue-700 { color: var(--blue-700); }
.text-yellow-500 { color: var(--yellow-500); }

/* ========== 8. 背景颜色工具类 ========== */
.bg-white { background-color: #ffffff; }
.bg-black { background-color: #000000; }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-gray-200 { background-color: var(--gray-200); }
.bg-gray-300 { background-color: var(--gray-300); }
.bg-gray-400 { background-color: var(--gray-400); }
.bg-indigo-50 { background-color: var(--indigo-50); }
.bg-indigo-100 { background-color: var(--indigo-100); }
.bg-indigo-200 { background-color: var(--indigo-200); }
.bg-indigo-500 { background-color: var(--indigo-500); }
.bg-indigo-600 { background-color: var(--indigo-600); }
.bg-indigo-700 { background-color: var(--indigo-700); }
.bg-green-100 { background-color: var(--green-100); }
.bg-green-500 { background-color: var(--green-500); }
.bg-green-600 { background-color: var(--green-600); }
.bg-red-50 { background-color: var(--red-50); }
.bg-red-100 { background-color: var(--red-100); }
.bg-red-500 { background-color: var(--red-500); }
.bg-red-600 { background-color: var(--red-600); }
.bg-blue-500 { background-color: var(--blue-500); }
.bg-blue-600 { background-color: var(--blue-600); }
.bg-yellow-500 { background-color: var(--yellow-500); }
.bg-opacity-30 { --bg-opacity: 0.3; }
.bg-opacity-50 { --bg-opacity: 0.5; }
.bg-black.bg-opacity-30 { background-color: rgba(0, 0, 0, 0.3); }
.bg-black.bg-opacity-50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }

/* ========== 9. 边框工具类 ========== */
.border { border-width: 1px; border-style: solid; border-color: var(--gray-200); }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; border-style: solid; }
.border-4 { border-width: 4px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; border-top-color: var(--gray-200); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: var(--gray-200); }
.border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }
.border-b-4 { border-bottom-width: 4px; border-bottom-style: solid; }

.border-transparent { border-color: transparent; }
.border-gray-100 { border-color: var(--gray-100); }
.border-gray-200 { border-color: var(--gray-200); }
.border-gray-300 { border-color: var(--gray-300); }
.border-indigo-300 { border-color: var(--indigo-300); }
.border-indigo-500 { border-color: var(--indigo-500); }
.border-indigo-600 { border-color: var(--indigo-600); }
.border-blue-600 { border-color: var(--blue-600); }
.border-red-200 { border-color: var(--red-200); }
.border-red-300 { border-color: var(--red-300); }
.border-red-600 { border-color: var(--red-600); }
.border-t-transparent { border-top-color: transparent; }
.border-white { border-color: #ffffff; }

/* ========== 10. 圆角 & 阴影 ========== */
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }
.rounded-md { border-radius: 0.375rem; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ========== 11. Divide 工具类 ========== */
.divide-y > * + * { border-top-width: 1px; border-top-style: solid; border-top-color: var(--gray-200); }
.divide-gray-100 > * + * { border-top-color: var(--gray-100); }

/* ========== 12. 交互 & 状态工具类 ========== */
.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; }
.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, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

.transform { transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.translate-x-0 { transform: translateX(0); }
.-translate-y-1\/2 { transform: translateY(-50%); }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.select-none { user-select: none; -webkit-user-select: none; }

/* ========== 13. Hover 状态 ========== */
.hover\:bg-gray-50:hover { background-color: var(--gray-50); }
.hover\:bg-gray-100:hover { background-color: var(--gray-100); }
.hover\:bg-gray-300:hover { background-color: var(--gray-300); }
.hover\:bg-gray-400:hover { background-color: var(--gray-400); }
.hover\:bg-indigo-50:hover { background-color: var(--indigo-50); }
.hover\:bg-indigo-200:hover { background-color: var(--indigo-200); }
.hover\:bg-indigo-700:hover { background-color: var(--indigo-700); }
.hover\:bg-red-50:hover { background-color: var(--red-50); }
.hover\:bg-red-200:hover { background-color: var(--red-200); }
.hover\:bg-red-600:hover { background-color: var(--red-600); }
.hover\:bg-red-700:hover { background-color: var(--red-700); }
.hover\:text-gray-600:hover { color: var(--gray-600); }
.hover\:text-gray-700:hover { color: var(--gray-700); }
.hover\:text-gray-900:hover { color: var(--gray-900); }
.hover\:text-blue-500:hover { color: var(--blue-500); }
.hover\:text-indigo-600:hover { color: var(--indigo-600); }
.hover\:text-indigo-700:hover { color: var(--indigo-700); }
.hover\:text-red-600:hover { color: var(--red-600); }
.hover\:text-red-700:hover { color: var(--red-700); }
.hover\:border-indigo-300:hover { border-color: var(--indigo-300); }

/* ========== 14. Focus 状态 ========== */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--indigo-500); }
.focus\:ring-4:focus { box-shadow: 0 0 0 2px #ffffff, 0 0 0 6px var(--indigo-500); }
.focus\:ring-indigo-400:focus { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--indigo-400); }
.focus\:ring-indigo-500:focus { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--indigo-500); }
.focus\:ring-red-400:focus { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--red-400); }
.focus\:ring-red-500:focus { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--red-500); }
.focus\:ring-offset-2:focus { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--indigo-500); }
.focus\:border-indigo-500:focus { border-color: var(--indigo-500); }
.focus\:border-transparent:focus { border-color: transparent; }

/* focus + ring 组合覆盖 */
.focus\:outline-none.focus\:ring-2.focus\:ring-indigo-500:focus { outline: none; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--indigo-500); }
.focus\:outline-none.focus\:ring-2.focus\:ring-red-400:focus { outline: none; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--red-400); }
.focus\:outline-none.focus\:ring-2.focus\:ring-red-500:focus { outline: none; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--red-500); }
.focus\:outline-none.focus\:ring-2.focus\:ring-indigo-500.focus\:ring-offset-2:focus { outline: none; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--indigo-500); }
.focus\:outline-none.focus\:ring-2.focus\:ring-red-400.focus\:ring-offset-2:focus { outline: none; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--red-400); }
.focus\:outline-none.focus\:ring-2.focus\:ring-red-500.focus\:ring-offset-2:focus { outline: none; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--red-500); }
.focus\:outline-none.focus\:ring-2.focus\:ring-indigo-400:focus { outline: none; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--indigo-400); }

/* ========== 15. 响应式断点 ========== */

/* sm: 640px */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:mb-0 { margin-bottom: 0; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* md: 768px */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:inline-block { display: inline-block; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:max-w-md { max-width: 28rem; }
  .md\:p-8 { padding: 2rem; }
  .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\:space-x-1 > * + * { margin-left: 0.25rem; }
  .md\:space-x-4 > * + * { margin-left: 1rem; }
  .md\:border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }
}

/* lg: 1024px */
@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* ========== 16. SVG 工具类 ========== */
.stroke-currentColor { stroke: currentColor; }
.fill-none { fill: none; }

/* ========== 17. 动画 ========== */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-spin { animation: spin 1s linear infinite; }

.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid #e0e7ff;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

/* Toast 进入/退出动画 */
@keyframes toast-in {
  0% { opacity: 0; transform: translateY(-20px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-20px) scale(0.95); }
}

.toast-enter { animation: toast-in 0.3s ease-out forwards; }
.toast-exit { animation: toast-out 0.3s ease-in forwards; }

/* 淡入动画 */
@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.fade-in { animation: fade-in 0.3s ease-out forwards; }

/* 页面加载占位 */
.page-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}
.page-loading.hidden {
  display: none;
}

/* ring-2 独立使用（非 focus 组合） */
.ring-2 { box-shadow: 0 0 0 2px var(--indigo-500); }
