@charset "UTF-8";
/* ==========================================================================
   base.css —— 重置与基础元素
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-lead);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd {
  margin: 0;
}

h1, h2, h3, h4, h5 {
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand-ink);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

img, svg {
  display: block;
  max-width: 100%;
}

img { height: auto; }

/* hidden 属性必须能盖过组件自身的 display（筛选功能依赖它） */
[hidden] { display: none !important; }

strong, b { font-weight: var(--fw-bold); }

/* 输入类元素统一字体（不要用 font: 简写，它会盖掉组件自身的字号） */
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* 键盘可见焦点：统一用品牌深色描边 */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* ---------- 工具类 ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 100;
  padding: var(--sp-3) var(--sp-4);
  background: var(--brand);
  color: var(--text-on-brand);
  border-radius: var(--r-btn);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  transition: top var(--dur) ease;
}

.skip-link:focus { top: var(--sp-4); text-decoration: none; }
