/* ============================================================================
   Sub2API · 主题精修覆盖样式表 (theme-override.css)
   仅重定义 [data-ui-theme] 上的 --ui-* 设计变量与少量质感规则。
   选择器提权到 :root[data-ui-theme] (0,2,0)，稳压内置主题定义。
   最后加载，删除本文件即完整回滚。不改动应用二进制与任何 HTML 结构。
   ============================================================================ */

/* ============================================================================
   1) 粉 · anime-pink — 樱雪玫瑰
   去脏底色（原 #1a1420 偏红棕发闷 → 干净冷调深梅）；
   收敛高饱和荧光粉 → 高级樱花玫瑰；边框去粉调转中性紫灰，让粉只在该处突出。
   ============================================================================ */
:root[data-ui-theme=anime-pink],
body[data-ui-theme=anime-pink]{
  color-scheme:dark;
  --ui-page:            #16121c;
  --ui-sidebar:         #1d1726;
  --ui-sidebar-end:     #171120;
  --ui-surface:         rgba(41, 32, 51, .94);
  --ui-surface-solid:   #292033;
  --ui-surface-raised:  #332838;
  --ui-surface-muted:   #211a2a;
  --ui-surface-hover:   #3a2d46;
  --ui-border:          #443a52;
  --ui-border-strong:   #6d5a79;
  --ui-text:            #f4edf6;
  --ui-text-soft:       #d6cbdd;
  --ui-text-muted:      #a99bb2;
  --ui-accent:          #f28cb9;
  --ui-accent-strong:   #ffa7cf;
  --ui-accent-soft:     rgba(242, 140, 185, .15);
  --ui-accent-contrast: #2c1620;
  --ui-secondary:       #ab97f2;
  --ui-secondary-soft:  rgba(171, 151, 242, .14);
  --ui-success:         #6ed6a1;
  --ui-warning:         #f0c46e;
  --ui-danger:          #ff8098;
  --ui-info:            #74cfe2;
  --ui-focus:           rgba(242, 140, 185, .40);
  --ui-overlay:         rgba(12, 8, 16, .78);
  --ui-shadow-card:     0 8px 24px rgba(8, 4, 12, .28);
  --ui-shadow-popover:  0 14px 36px rgba(5, 3, 8, .48);
}

/* ============================================================================
   2) 黑 · hacker — 沉稳翡翠终端
   死黑 #060908 微提亮减少刺眼；荧光绿 #58e68b 收敛为沉稳翡翠，长时间浏览护眼；
   纯白文字略去纯度降高对比疲劳。保留极客/终端气质。
   ============================================================================ */
:root[data-ui-theme=hacker],
body[data-ui-theme=hacker]{
  color-scheme:dark;
  --ui-page:            #0a0f0d;
  --ui-sidebar:         #0c1210;
  --ui-sidebar-end:     #0a0f0d;
  --ui-surface:         rgba(17, 26, 22, .96);
  --ui-surface-solid:   #111a16;
  --ui-surface-raised:  #16221d;
  --ui-surface-muted:   #0d1512;
  --ui-surface-hover:   #1b2b24;
  --ui-border:          #24463a;
  --ui-border-strong:   #3d6b57;
  --ui-text:            #e6f2ec;
  --ui-text-soft:       #b9d0c5;
  --ui-text-muted:      #869e94;
  --ui-accent:          #43d17f;
  --ui-accent-strong:   #6ee6a0;
  --ui-accent-soft:     rgba(67, 209, 127, .13);
  --ui-accent-contrast: #04140b;
  --ui-secondary:       #35c2c9;
  --ui-secondary-soft:  rgba(53, 194, 201, .12);
  --ui-success:         #43d17f;
  --ui-warning:         #e8c069;
  --ui-danger:          #f56b7f;
  --ui-info:            #4bccd3;
  --ui-focus:           rgba(67, 209, 127, .34);
  --ui-overlay:         rgba(2, 6, 4, .82);
  --ui-shadow-card:     0 0 0 1px rgba(67, 209, 127, .04), 0 8px 24px rgba(0, 0, 0, .32);
  --ui-shadow-popover:  0 0 0 1px rgba(53, 194, 201, .10), 0 16px 38px rgba(0, 0, 0, .6);
}

/* ============================================================================
   3) 铅笔 · pencil — 石墨手绘
   把跑偏的青色强调 #346d77 改成真正的石墨黑灰体系；
   暖纸底更像素描纸；辅色用铅笔木杆赭褐，"铅笔画"概念落地。
   ============================================================================ */
:root[data-ui-theme=pencil],
body[data-ui-theme=pencil]{
  color-scheme:light;
  --ui-page:            #ecebe4;
  --ui-sidebar:         #e4e3da;
  --ui-sidebar-end:     #dcdbd1;
  --ui-surface:         rgba(249, 248, 243, .97);
  --ui-surface-solid:   #f9f8f3;
  --ui-surface-raised:  #ffffff;
  --ui-surface-muted:   #efeee7;
  --ui-surface-hover:   #e6e5db;
  --ui-border:          #b0afa4;
  --ui-border-strong:   #55534b;
  --ui-text:            #2a2823;
  --ui-text-soft:       #4a4740;
  --ui-text-muted:      #6b6860;
  --ui-accent:          #4a4740;
  --ui-accent-strong:   #2a2823;
  --ui-accent-soft:     rgba(74, 71, 64, .10);
  --ui-accent-contrast: #f9f8f3;
  --ui-secondary:       #9c6b43;
  --ui-secondary-soft:  rgba(156, 107, 67, .12);
  --ui-success:         #4f7a52;
  --ui-warning:         #9c7a2f;
  --ui-danger:          #a84a45;
  --ui-info:            #4a4740;
  --ui-focus:           rgba(74, 71, 64, .24);
  --ui-overlay:         rgba(42, 40, 35, .44);
  --ui-shadow-card:     1px 1px 0 rgba(50, 48, 43, .22);
  --ui-shadow-popover:  3px 4px 0 rgba(50, 48, 43, .24);
}

/* ============================================================================
   4) 修复 · 主色徽章 .badge-primary
   内置 Tailwind 把它硬编码成青绿（浅青底 #ccfbf1 + 深青字 #0f766e），
   不跟随主题变量，三套主题里都显违和青绿。改为跟随各主题强调色。
   （.badge-success/warning/danger 是语义色，保留不动。）
   ============================================================================ */
:root[data-ui-theme] .badge-primary,
body[data-ui-theme] .badge-primary{
  background-color: var(--ui-accent-soft) !important;
  color: var(--ui-accent-strong) !important;
}

