/**
 * 基础样式重置与全局元素
 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-height); }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
body.body--locked { overflow: hidden; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 700; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
::selection { background-color: var(--color-primary); color: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100%; left: var(--space-4); z-index: calc(var(--z-modal) + 1);
  padding: var(--space-3) var(--space-4); background: var(--color-primary); color: #fff;
  border-radius: var(--radius-md); font-weight: 600;
}
.skip-link:focus { top: var(--space-4); }
.icon { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -0.15em; fill: none; stroke: currentColor; stroke-width: 2; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .fade-in { opacity: 1; transform: none; }
}
