/* 设计令牌：画布、描边、字体、圆角、间距与语义色。 */
:root {
  --color-canvas: #fafafa;
  --color-elevated: #ffffff;
  --color-ink: #171717;
  --color-body: #4d4d4d;
  --color-mute: #8f8f8f;
  --color-faint: #a1a1a1;
  --color-hairline: #ebebeb;
  --color-hairline-soft: #f3f3f3;

  --color-link: #0070f3;
  --color-link-soft: #eaf3ff;
  --color-success: #0070f3;
  --color-success-soft: #eaf3ff;
  --color-error: #ee0000;
  --color-error-soft: #fff0f0;
  --color-warning: #f5a623;
  --color-warning-soft: #ffefcf;
  --color-warning-deep: #ab570a;
  --color-violet: #7928ca;
  --color-violet-soft: #f6f0fd;

  --font-sans: Geist, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Arial, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;

  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-lg: 16px;
  --text-xl: 20px;
  --text-2xl: 28px;

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

  --radius-sm: 6px;
  --radius-md: 12px;

  --sidebar-width: 232px;
  --topbar-height: 56px;
  --content-max: 1280px;

  --shadow-whisper: 0 1px 1px rgba(0, 0, 0, 0.04);
  --focus-ring: 0 0 0 3px rgba(23, 23, 23, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

code,
kbd,
pre {
  font-family: var(--font-mono);
}

svg {
  display: block;
  flex: none;
}

:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}

::selection {
  background: var(--color-link-soft);
  color: var(--color-ink);
}

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

.muted {
  color: var(--color-mute);
}

.text-xs {
  font-size: 11px;
  line-height: 16px;
}

.text-sm {
  font-size: var(--text-sm);
  line-height: 19px;
}

.eyebrow {
  color: var(--color-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 16px;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
