/* ============================================================
 * 千鸟聚合API · 管理后台黄黑主题覆盖
 * 通过 Nginx 注入到 New API 的 index.html，不改前端源码
 * 配色严格取自本地前端令牌：#FFBC05 / #F99C00 / #111827 / #FFF6D8
 * ============================================================ */
:root,
html,
html.light,
html.dark,
.light,
.dark {
  --radius: 0.75rem;

  /* 画布 / 卡片 */
  --background: #ffffff !important;
  --foreground: #111827 !important;
  --card: #ffffff !important;
  --card-foreground: #111827 !important;
  --popover: #ffffff !important;
  --popover-foreground: #111827 !important;

  /* 主色 = 官网品牌黄 */
  --primary: #F99C00 !important;
  --primary-foreground: #111827 !important;
  --secondary: #FFF6D8 !important;
  --secondary-foreground: #8A6000 !important;

  /* 弱化 / 强调 */
  --muted: #F9FAFB !important;
  --muted-foreground: #6B7280 !important;
  --accent: #FFF6D8 !important;
  --accent-foreground: #111827 !important;

  /* 语义色 */
  --destructive: #DC2626 !important;
  --destructive-foreground: #ffffff !important;
  --success: #00BB7F !important;
  --success-foreground: #ffffff !important;
  --warning: #FFBC05 !important;
  --warning-foreground: #111827 !important;
  --info: #F99C00 !important;
  --info-foreground: #ffffff !important;
  --neutral: #9CA3AF !important;
  --neutral-foreground: #111827 !important;

  /* 边框 / 输入 / 焦点环 */
  --border: #E5E7EB !important;
  --input: #E5E7EB !important;
  --ring: #FFBC05 !important;

  /* 图表 = 黄色系 */
  --chart-1: #FFBC05 !important;
  --chart-2: #F99C00 !important;
  --chart-3: #FFD45C !important;
  --chart-4: #B45309 !important;
  --chart-5: #8A6000 !important;
  --overview-accent-1: #FFBC05 !important;
  --overview-accent-2: #F99C00 !important;
  --overview-accent-3: #FFD45C !important;

  /* 侧边栏 */
  --sidebar: #FFFFFF !important;
  --sidebar-foreground: #111827 !important;
  --sidebar-primary: #F99C00 !important;
  --sidebar-primary-foreground: #111827 !important;
  --sidebar-accent: #FFF6D8 !important;
  --sidebar-accent-foreground: #8A6000 !important;
  --sidebar-border: #E5E7EB !important;
  --sidebar-ring: #FFBC05 !important;

  /* 表格 / 骨架 */
  --table-row: #ffffff !important;
  --table-header: #FFFDF5 !important;
  --table-header-hover: #FFF6D8 !important;
  --skeleton-base: #F9FAFB !important;
  --skeleton-highlight: #FFF6D8 !important;

  /* 字体统一微软雅黑 */
  --font-ui-sans: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Segoe UI", system-ui, sans-serif !important;
  --font-body: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Segoe UI", system-ui, sans-serif !important;
  color-scheme: light !important;
}

/* 强制浅色画布，杜绝 dark class 带来深底 */
html, html.dark, body {
  background: #ffffff !important;
  color: #111827 !important;
}

/* 顶部/侧边品牌区域加一道黄，呼应官网 */
[class*="sidebar"] [class*="logo"],
[class*="header"] [class*="logo"] {
  filter: drop-shadow(0 2px 6px rgba(255, 188, 5, .45));
}

/* 主按钮文字在黄底上用近黑，避免白字看不清 */
button[class*="primary"], a[class*="primary"] {
  color: #111827 !important;
}
