/* ============================================================
   基础层：reset + 排版 + 可见性 + 焦点
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* UA 默认 margin 会顶破窄视口 —— figure 必须清零 */
p, h1, h2, h3, h4, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }

[hidden] { display: none !important; }

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

::selection { background: rgba(0, 179, 134, 0.22); }

/* 数字 / 英文点缀用 Outfit 字族 */
.num, .eyebrow, .step-no, .ver {
  font-family: var(--font-num);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 跳转正文（键盘用户） */
.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--text);
  color: #fff;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }
