/* =====================================================================
   MIG-01 · 用户端主题令牌
   来自 apps/user-web 视觉设计：MasterGo 暗黑美学（青/粉色调）
   通过 .ui-v2 命名空间隔离，不影响现有 admin/base 样式。
   ===================================================================== */

.ui-v2 {
  /* ---- 颜色调色板（源项目 MasterGo 暗黑美学） ---- */
  --uw-primary: #00f0ff;
  --uw-primary-hover: #33f3ff;
  --uw-primary-light: rgba(0, 240, 255, 0.15);
  --uw-secondary: #ff007a;
  --uw-bg: #000000;
  --uw-surface: #0a0a0d;
  --uw-surface-hover: #12131a;
  --uw-text: #ffffff;
  --uw-text-muted: #94a3b8;
  --uw-text-light: #64748b;
  --uw-border: rgba(255, 255, 255, 0.1);
  --uw-border-hover: rgba(0, 240, 255, 0.4);

  /* ---- 渐变与光晕 ---- */
  --uw-gradient-accent: linear-gradient(135deg, #00f0ff 0%, #ff007a 100%);
  --uw-glow: 0 0 20px rgba(0, 240, 255, 0.25);
  --uw-glow-pink: 0 0 20px rgba(255, 0, 122, 0.25);

  /* ---- 字体 ---- */
  --uw-font-base: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

  /* ---- 触摸目标 ---- */
  --uw-touch-min: 44px;
}

/* 全局重置增强（在 ui-v2 页面上生效） */
.ui-v2 {
  font-family: var(--uw-font-base);
  color: var(--uw-text);
  background-color: var(--uw-bg);
  -webkit-font-smoothing: antialiased;
}

.ui-v2 a {
  color: inherit;
  text-decoration: none;
}

.ui-v2 button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.ui-v2 :focus-visible {
  outline: 2px solid var(--uw-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .ui-v2 *, .ui-v2 *::before, .ui-v2 *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
