/**
 * 全站低特效模式：html[data-rich-fx="off"] 时生效（默认）。
 * 保留配色令牌、布局与交互；剥离 blur / glow / 动画 / 多层阴影等高开销绘制。
 */

html[data-rich-fx='off'] {
  --glass-blur-sm: 0px;
  --glass-blur-md: 0px;
  --glass-blur-lg: 0px;
  --glass-blur-nav: 0px;
  --glass-shadow-sm: none;
  --glass-shadow-md: none;
  --glass-shadow-lg: none;
  --glass-shadow-modal: none;
  --glass-shadow-nav: none;
  --glass-accent-shadow-soft: none;
  --glass-accent-shadow-strong: none;
  --shadow-card: none;
  --shadow-card-hover: none;
  --shadow-glass: none;
  scroll-behavior: auto !important;
}

html[data-rich-fx='off'],
html[data-rich-fx='off'] :where(*) {
  scroll-behavior: auto !important;
}

html[data-rich-fx='off'] :where(
  .glass-nav,
  .glass-surface,
  .glass-surface-elevated,
  .glass-surface-modal,
  .glass-surface-nav,
  .glass-surface-soft,
  .glass-overlay,
  .glass-overlay-soft,
  .glass-overlay-strong,
  [class*='backdrop-blur'],
  [class*='backdrop-filter']
) {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-rich-fx='off'] :where(
  [class*='drop-shadow'],
  [class*='text-shadow'],
  [style*='text-shadow'],
  [style*='drop-shadow']
) {
  filter: none !important;
  -webkit-filter: none !important;
  text-shadow: none !important;
}

html[data-rich-fx='off'] :where(
  [class*='blur-'],
  [class*='filter '],
  [class*=' filter'],
  [style*='filter:'],
  [style*='-webkit-filter']
) {
  filter: none !important;
  -webkit-filter: none !important;
}

html[data-rich-fx='off'] :where(
  [class*='shadow'],
  [style*='box-shadow']
) {
  box-shadow: none !important;
}

html[data-rich-fx='off'] :where(
  .glass-btn-primary:hover,
  .glass-btn-soft:hover,
  .glass-btn-primary,
  .glass-btn-soft,
  [class*='hover:scale'],
  [class*='group-hover:scale'],
  [class*='hover:-translate'],
  [class*='hover:translate'],
  [class*='group-hover:translate']
) {
  transform: none !important;
}

html[data-rich-fx='off'] :where(
  .animate-float,
  .animate-float-delayed,
  .animate-float-slow,
  .animate-float-1,
  .animate-float-2,
  .animate-float-3,
  .animate-gradient-x,
  .animate-pulse-slow,
  .animate-pulse,
  .animate-bounce,
  .animate-spin,
  .animate-fade-in,
  .animate-scale-in,
  .animate-slide-up,
  .animate-progress,
  .assistant-streaming-response,
  [class*='animate-']
) {
  animation: none !important;
  background-image: none !important;
  background-size: auto !important;
  -webkit-text-fill-color: currentColor !important;
  color: inherit !important;
}

html[data-rich-fx='off'] :where(
  [style*='box-reflect'],
  [class*='mix-blend'],
  [style*='mix-blend-mode']
) {
  -webkit-box-reflect: none !important;
  mix-blend-mode: normal !important;
}

html[data-rich-fx='off'] :where(
  [class*='will-change'],
  [style*='will-change']
) {
  will-change: auto !important;
}

html[data-rich-fx='off'] :where(
  [class*='perspective'],
  [style*='perspective']
) {
  perspective: none !important;
}

html[data-rich-fx='off'] :where(
  .glass-input-base,
  .glass-textarea-base,
  .glass-select-base,
  .glass-btn-base,
  .glass-list-row,
  .glass-segmented-item,
  .glass-icon-btn-sm,
  .card-base,
  *
) {
  transition-property: color, background-color, border-color, opacity, visibility !important;
  transition-duration: 0.01ms !important;
  transition-delay: 0ms !important;
  animation-duration: 0.01ms !important;
  animation-delay: 0ms !important;
  animation-iteration-count: 1 !important;
}

html[data-rich-fx='off'] :where(
  [class*='bg-clip-text'],
  [class*='background-clip']
) {
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  color: inherit !important;
}
