/* ============================================================
   AI降维纪元 · 墨金主题 — tool.jiangweijiyuan.com（工具箱）
   注入方式：nginx sub_filter </head> 挂载；强调色 赭铜 #c87f4a
   说明：站点全部组件消费 --tb-* 令牌；:root 与 [data-theme="dark"]
        同步覆盖为同一套墨金值，用户切换深浅色也不再变色。
   ============================================================ */

:root,
[data-theme="dark"] {
  color-scheme: dark;

  /* 主色 */
  --tb-primary: #c87f4a;
  --tb-primary-hover: #d9985f;
  --tb-primary-soft: rgba(200, 127, 74, 0.16);
  --tb-primary-soft-2: rgba(200, 127, 74, 0.24);
  --tb-primary-strong: #e0a06a;

  /* 辅助语义色 */
  --tb-accent: #35d99a;
  --tb-danger: #e05545;
  --tb-warn: #e8b34a;

  /* 背景 */
  --tb-bg: #0d1017;
  --tb-bg-alt: #12161f;
  --tb-bg-soft: #12161f;
  --tb-surface: #151a23;
  --tb-surface-hover: #1a2029;
  --tb-surface-2: #171c26;

  /* 文字 */
  --tb-text: #e8ecf3;
  --tb-text-2: #a6adba;
  --tb-text-3: #6b7280;
  --tb-text-1: var(--tb-text);

  /* 边框 */
  --tb-border: rgba(255, 255, 255, 0.09);
  --tb-border-strong: rgba(255, 255, 255, 0.16);

  /* 分类主题色（保留七色辨识，压暗底） */
  --tb-c1: #d87a6a;  --tb-c1-bg: rgba(216, 122, 106, 0.14);
  --tb-c2: #c9a262;  --tb-c2-bg: rgba(201, 162, 98, 0.14);
  --tb-c3: #6baf85;  --tb-c3-bg: rgba(107, 175, 133, 0.13);
  --tb-c4: #5c94b8;  --tb-c4-bg: rgba(92, 148, 184, 0.13);
  --tb-c5: #b670a0;  --tb-c5-bg: rgba(182, 112, 160, 0.14);
  --tb-c6: #9480b5;  --tb-c6-bg: rgba(148, 128, 181, 0.14);
  --tb-c7: #5bb5a4;  --tb-c7-bg: rgba(91, 181, 164, 0.13);

  /* 阴影 */
  --tb-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --tb-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  --tb-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
  --tb-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* ---------- 顶栏品牌图标（扳手由 sub_filter 换成 img.tian-logo） ---------- */
img.tian-logo {
  width: 26px;
  height: 26px;
  border-radius: 25%;
  vertical-align: -6px;
  margin-right: 7px;
}

/* ---------- 细节体验 ---------- */
::selection {
  background: rgba(200, 127, 74, 0.35);
  color: #ffeeda;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 127, 74, 0.5);
}
*::-webkit-scrollbar-track {
  background: transparent;
}
