/**
 * system-base.css
 * 基于 build-ai-product-system-ui 设计系统
 * 静态零动画 · 深浅双模式 · 中文优先 · 精简排版
 */

:root {
  /* 默认深色模式 (Dark Mode) */
  --bg: #080a0d;
  --surface: #0c0f13;
  --surface-2: #101419;
  --surface-3: #14191f;

  /* 结构线条 */
  --line: #252b32;
  --line-strong: #343c45;

  /* 文本层次 */
  --text: #e8e8e8;
  --muted: #9aa1aa;
  --quiet: #7d858f;
  --large-dim: #5e6670;

  /* 核心强调色：酸性绿 */
  --accent: #b8ff5a;
  --accent-text: #080a0d;
  --accent-dim: rgba(184, 255, 90, 0.08);
  --accent-line: rgba(184, 255, 90, 0.30);

  /* 状态色 */
  --warning: #ffc45c;
  --danger: #ff8066;

  /* 字体系统 */
  --font-sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* 尺寸与布局规范 */
  --header-height: 54px;
  --sidebar-width: 220px;

  /* 遮罩透明度 */
  --overlay-bg: rgba(8, 10, 13, 0.96);
  --grid-line: rgba(255, 255, 255, 0.022);
}

/* 浅色模式 (Light Mode) */
[data-theme="light"] {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --surface-3: #e2e6eb;

  --line: #d5dae2;
  --line-strong: #c2c9d4;

  --text: #191f28;
  --muted: #4e5968;
  --quiet: #8b95a1;
  --large-dim: #a0aab6;

  /* 浅色模式高对比翡翠绿 */
  --accent: #16a34a;
  --accent-text: #ffffff;
  --accent-dim: rgba(22, 163, 74, 0.08);
  --accent-line: rgba(22, 163, 74, 0.35);

  --warning: #d97706;
  --danger: #e11d48;

  --overlay-bg: rgba(244, 246, 248, 0.96);
  --grid-line: rgba(0, 0, 0, 0.035);
}

/* 核心无动画铁律 (Non-negotiable Static-state Rule) */
*, *::before, *::after {
  box-sizing: border-box;
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  color: var(--text);
  background-color: var(--bg);
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 64px 结构网格背景 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.mono {
  font-family: var(--font-mono);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}
