/* NNN 深色科技风主题变量，配色基线取自智模机器人控制系统 MMM */
:root {
  --bg-deep: #050b16;
  --bg-base: #07121f;
  --bg-panel: rgba(11, 24, 42, 0.78);
  --bg-panel-solid: #0b1a2e;
  --bg-elevated: rgba(17, 36, 60, 0.86);
  --bg-inset: rgba(3, 10, 20, 0.66);
  --bg-paper: #eef3f8;

  --cyan: #22d3ee;
  --cyan-bright: #67e8f9;
  --cyan-deep: #06b6d4;
  --cyan-soft: rgba(34, 211, 238, 0.12);
  --cyan-line: rgba(34, 211, 238, 0.22);
  --cyan-glow: rgba(34, 211, 238, 0.38);
  --violet: #a78bfa;
  --green: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
  --red: #f43f5e;

  --text: #e6edf7;
  --text-2: #a8b8cf;
  --text-3: #6b7f9c;
  --text-4: #42567a;
  --text-paper: #1f2a3d;

  --border: rgba(34, 211, 238, 0.16);
  --border-soft: rgba(148, 163, 184, 0.13);
  --border-strong: rgba(34, 211, 238, 0.46);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --shadow-panel: 0 12px 40px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  --shadow-glow: 0 0 24px rgba(34, 211, 238, 0.16);
  --font-ui: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-num: "Segoe UI", "DIN Alternate", Consolas, "Microsoft YaHei", monospace;

  /* NNN 兼容既有组件引用的旧变量名，统一映射到新配色 MMM */
  --color-primary: #22d3ee;
  --color-primary-soft: rgba(34, 211, 238, 0.14);
  --color-primary-strong: #06b6d4;
  --color-accent: #a78bfa;
  --color-accent-soft: rgba(167, 139, 250, 0.14);
  --color-success: #34d399;
  --color-success-soft: rgba(52, 211, 153, 0.14);
  --color-warning: #fbbf24;
  --color-warning-soft: rgba(251, 191, 36, 0.14);
  --color-danger: #f43f5e;
  --color-danger-soft: rgba(244, 63, 94, 0.14);
  --color-info: #22d3ee;
  --color-info-soft: rgba(34, 211, 238, 0.14);
  --color-surface: #0b1a2e;
  --color-surface-alt: #102138;
  --color-surface-deep: #07121f;
  --color-border: rgba(34, 211, 238, 0.16);
  --color-text: #e6edf7;
  --color-text-muted: #6b7f9c;
  --color-sidebar: #060e1c;
  --color-sidebar-text: #a8b8cf;
  --color-chart-1: #22d3ee;
  --color-chart-2: #a78bfa;
  --color-chart-3: #34d399;
  --color-chart-4: #fbbf24;
  --color-chart-5: #fb7185;
  --color-chart-grid: rgba(148, 163, 184, 0.16);
  --radius-md: 10px;
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.32);
  --shadow-hover: 0 0 24px rgba(34, 211, 238, 0.2);
  --font-xs: 11px;
  --font-sm: 12px;
  --font-md: 14px;
  --font-lg: 18px;
  --font-xl: 24px;
}

/* NNN 全局重置与深色网格底纹 MMM */
* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 90% 46% at 50% -8%, rgba(6, 182, 212, 0.16), transparent 72%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(167, 139, 250, 0.07), transparent 70%),
    linear-gradient(rgba(34, 211, 238, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.032) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 42px 42px, 42px 42px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p { margin: 0; }

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

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

::selection { background: rgba(34, 211, 238, 0.32); color: #ffffff; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(3, 10, 20, 0.5); }
::-webkit-scrollbar-thumb { background: rgba(34, 211, 238, 0.26); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: rgba(34, 211, 238, 0.45); }

/* NNN 状态灯呼吸与扫描线动效 MMM */
@keyframes lampPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  50% { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); }
}

@keyframes scanSweep {
  from { transform: translateY(-100%); }
  to { transform: translateY(900%); }
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
