/* wenxin-reset.css - CSS 重置：消除浏览器默认样式，统一基线 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* Prevent iOS from auto-adjusting font size on orientation change */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Cap image/video width to prevent mobile overflow */
img,
video {
  max-width: 100%;
  height: auto;
}

/* Remove tap flash and 300ms double-tap delay on interactive elements */
a,
button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body {
  background-color: var(--color-bg-warm);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: var(--leading-normal);
  hyphens: auto;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-blend-mode: multiply;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

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

[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible {
  outline: none;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-subtle) transparent;
}

/* Chrome / Safari / Edge */
*::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: var(--color-border-subtle);
  border-radius: 2px;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-border-strong);
}
