/* refined.css v2 — 彻底收敛"AI 味"
   用宽泛选择器 + !important 全局压制 text-shadow 发光与无限动画，
   回归专业克制暗色质感（Linear/Vercel/Arc 风格）。 */

/* 1. 全局移除所有彩色发光 text-shadow（霓虹文字 → 干净） */
html body:has(.brand-lockup) *,
html:has(.login-page) * {
  text-shadow: none !important;
}

/* 2. 停掉无限循环装饰动画（脉冲/呼吸/流光/漂移）——
      排除 antd 组件的一次性 motion（弹窗/遮罩/下拉/提示等），避免误伤其入场动画 */
html body:has(.brand-lockup) *:not([class*="ant-zoom"]):not([class*="ant-fade"]):not([class*="ant-slide"]):not([class*="ant-move"]):not([class*="ant-collapse"]):not([class*="ant-motion"]),
html:has(.login-page) *:not([class*="ant-zoom"]):not([class*="ant-fade"]):not([class*="ant-slide"]):not([class*="ant-move"]):not([class*="ant-collapse"]):not([class*="ant-motion"]) {
  animation: none !important;
}

/* 3. 卡片/面板：纯净深色 + 中性边框 + 真实短投影（去多彩渐变/光晕） */
html body:has(.brand-lockup) .ant-card,
html body:has(.brand-lockup) [class*="card"],
html body:has(.brand-lockup) [class*="panel"],
html body:has(.brand-lockup) .dashboard-hero {
  background: #131317 !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, .07) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3) !important;
}

/* 4. 玻璃拟态移除（避免过度模糊） */
html body:has(.brand-lockup) *,
html:has(.login-page) * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 5. 品牌区发光 → 无 */
html body:has(.brand-lockup) .brand-lockup,
html body:has(.brand-lockup) .brand-lockup * {
  text-shadow: none !important;
  box-shadow: none !important;
}

/* 6. 强调色：主按钮单一靛蓝，不用渐变 */
html body:has(.brand-lockup) .ant-btn-primary {
  background: #4f46e5 !important;
  background-image: none !important;
  box-shadow: 0 1px 3px rgba(79, 70, 229, .35) !important;
}

/* 7. 过渡克制：150ms 颜色类 */
html body:has(.brand-lockup) .ant-btn,
html body:has(.brand-lockup) .ant-menu-item,
html:has(.login-page) .login-button,
html:has(.login-page) .ant-input-affix-wrapper {
  transition: background-color .15s ease, border-color .15s ease, color .15s ease !important;
}

/* 8. reduced-motion 兜底 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}