/* Lucide 图标 — SVG inline 基础样式 */
.lucide { width: 1em; height: 1em; stroke-width: 2; vertical-align: -0.125em; flex-shrink: 0; }

/* 基础重置与排版 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--fg-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: var(--color-brand); text-decoration: none; }
a:hover { color: var(--color-brand-hover); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-3);
  color: var(--fg-strong);
  line-height: var(--leading-tight);
  font-weight: 650;
}
h1 { font-size: var(--text-4xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
p { margin: 0 0 var(--space-3); }

hr { border: 0; border-top: 1px solid var(--border-base); margin: var(--space-6) 0; }

code, kbd, pre { font-family: var(--font-mono); }
code { background: var(--bg-surface-2); padding: 2px 6px; border-radius: var(--radius-sm); font-size: .92em; }
pre  { background: var(--bg-surface-2); padding: var(--space-4); border-radius: var(--radius-md); overflow: auto; }

/* 焦点环：统一键盘可达性 */
:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-color: var(--color-brand) !important;
}

/* 滚动条 */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--fg-subtle); background-clip: padding-box; }
