/* UX-002 1.2 全站排版基线：内嵌中文字体、统一字体栈、键盘焦点可见。 */
@font-face {
  font-family: "KWNotoSansSC";
  src: url("/assets/fonts/NotoSansSC-Site.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: "KWNotoSansSC", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ux-focus: #1F5F52;
}

html,
body {
  font-family: var(--font-sans) !important;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

/* 浅底/深底都能看见的双层焦点环，满足 3:1 非文本对比 */
:where(a, button, input, select, textarea, [role="button"], [tabindex]):focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ux-focus);
}

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