/*
  ChatPlus AI — CSS Reset
  基于 modern-normalize 理念，保持最小侵入性。
  两个站点（china-site / global-site）共享此 reset。
*/

/* 1. 统一盒模型 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. 移除默认 margin/padding */
* {
  margin: 0;
  padding: 0;
}

/* 3. 平滑滚动（保留用户系统偏好） */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 4. 基础排版 */
body {
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 5. 媒体元素自适应 */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 6. 表单元素继承字体 */
input,
button,
textarea,
select {
  font: inherit;
}

/* 7. 防止文字溢出 */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 8. 列表样式重置 */
ul,
ol {
  list-style: none;
}

/* 9. 链接颜色继承 */
a {
  color: inherit;
  text-decoration: none;
}

/* 10. 表格简化 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}
