/* 基础层：重置 + 默认排版。全站零外链、零 CDN、零 webfont，断网可开。 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--surface-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body > main { flex: 1; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--p-link); text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
[hidden] { display: none !important; }
::selection { background: rgba(0, 98, 255, 0.14); }

/* 数字一律等宽数字位，避免表格与计数器跳动 */
td, .nums { font-variant-numeric: tabular-nums; }
code, pre, .mono { font-family: var(--font-data); }

/* 细滚动条 */
* { scrollbar-width: thin; scrollbar-color: rgba(23, 32, 51, 0.18) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: rgba(23, 32, 51, 0.16); border-radius: 8px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(23, 32, 51, 0.28); }
*::-webkit-scrollbar-track { background: transparent; }

/* 内联 SVG 图标（icons.js 注入） */
.ic { flex: none; display: inline-block; vertical-align: -2px; }
