/***********************************
 * 全局 Reset 与基础排版
 ***********************************/
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px / var(--lh-normal) system-ui, -apple-system, Segoe UI, Roboto,
    Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* 基础标题样式 */
h1 {
  font-size: 40px;
  line-height: 1.15;
  /* 原来大约是 0.4em ≈ 16px，这里用变量表达 */
  margin: var(--space-md) 0;
}

/* 用于无障碍的视觉隐藏文本（如隐藏标题） */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/***********************************
 * 响应式：手机端（标题缩小）
 ***********************************/
@media (max-width: 640px) {
  h1 {
    font-size: 30px;
  }
}
