/* ==========================================================================
   H-Beyond CMS · 基础变量与全局重置 (Base & CSS Variables)
   ========================================================================== */
:root {
  --canvas: linear-gradient(180deg, #dbeaf8 0%, #ebf3fa 280px, #f4f8fc 100%);
  --paper: #ffffff;
  --sidebar-bg: #ffffff;
  --subtle: #e2ecf5;
  --white: #ffffff;
  --sand: #e5e7eb;
  --line: rgba(0, 0, 0, 0.08);
  --line-light: rgba(0, 0, 0, 0.05);

  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --muted-light: #9ca3af;

  --orange: #4f46e5;
  --orange-hover: #4338ca;
  --orange-soft: #eef2ff;
  --orange-border: #c7d2fe;

  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --blue-border: #bfdbfe;

  --red: #ef4444;
  --red-soft: #fee2e2;
  --red-border: #fecaca;

  --yellow: #f59e0b;
  --yellow-soft: #fef3c7;
  --yellow-border: #fde68a;

  --green: #10b981;
  --green-soft: #dcfce7;
  --green-border: #bbf7d0;

  --purple: #8b5cf6;
  --purple-soft: #f3e8ff;
  --purple-border: #e9d5ff;

  --sidebar: 236px;
  --topbar: 64px;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-card: 12px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 14px 34px -4px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-drawer: -12px 0 36px -4px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); background-attachment: fixed; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Source Han Sans CN", sans-serif;
  font-size: 13px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; transition: all 0.15s ease; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.mono, .num {
  font-family: "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
}

.muted { color: var(--muted); }
.small { font-size: 12px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

.svg-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
