/* =====================================================================
   苹果风全局增强层（apple-ui.css）
   ---------------------------------------------------------------------
   定位：纯视觉增强，不改变任何功能逻辑，桌面 + 移动端都生效。
   原则：只「新增」属性（字体平滑 / 数字等宽 / 缓动 / 按压手感），
         不覆盖各页面内联样式里已有的颜色、布局。
   ===================================================================== */

/* 1. 字体平滑渲染 + 数字等宽（苹果质感的关键细节） */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  text-rendering: optimizeLegibility;
}

/* 2. 统一动效缓动曲线（替换默认生硬的直线缓动，颜色布局不变） */
button, .btn, .btn-primary, .btn-ghost, .btn-nav-ghost,
.mod-card, a.card, .chip, .stats-tab, .range-tabs button {
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
}

/* 3. 工作台模块卡片 hover 微抬升（苹果轻盈感） */
.mod-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

/* 4. 按钮按压手感 */
button:active, .btn:active, .btn-primary:active,
.btn-ghost:active, .btn-nav-ghost:active {
  transform: scale(.97);
}

/* 5. 无障碍：尊重系统「减弱动态效果」 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
