/* ==========================================================================
   Sub2API 主题微调（通过 nginx 注入，不修改主程序，升级不受影响）
   作用范围：全站登录后的主面板
   回滚：删除 nginx 里 location / 中的 sub_filter 三行即可
   ========================================================================== */

/* 1. 左侧菜单选中态
   原始：#f0fdfa 底 / #0d9488 字（青绿偏重）
   现在：底色去掉彩度、只留一丝灰绿；文字略降饱和 */
.sidebar-link-active {
  background-color: #f4f8f6 !important;
  color: #0f9384 !important;
}
.sidebar-link-active:hover {
  background-color: #edf4f1 !important;
  color: #0b8478 !important;
}

/* 暗色模式：同步降低底色浓度，文字略微收敛 */
.dark .sidebar-link-active,
.sidebar-link-active:is(.dark *) {
  background-color: rgba(19, 78, 74, 0.18) !important;
  color: #5eead4 !important;
}
.dark .sidebar-link-active:hover,
.sidebar-link-active:is(.dark *):hover {
  background-color: rgba(19, 78, 74, 0.26) !important;
}

/* 2. 右侧整页背景
   原始：三段青色径向渐变（.12 / .08 / .08），整片泛绿
   现在：去掉渐变，纯色 #FAFCFB；暗色模式用深色底，保持可读性 */
.bg-mesh-gradient {
  background-image: none !important;
  background-color: #fafcfb !important;
}
.dark .bg-mesh-gradient,
.bg-mesh-gradient:is(.dark *) {
  background-image: none !important;
  background-color: #0f172a !important;
}
