/**
 * CSS Reset - 法界通官方网站
 * 重置浏览器默认样式，确保跨浏览器一致性
 */

/* ========== Box Sizing ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ========== HTML & Body ========== */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.5;
  font-family: var(--font-family-base);
  color: var(--color-text-primary);
  background-color: var(--color-background);
}

/* ========== 标题重置 ========== */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}

/* ========== 段落重置 ========== */
p {
  margin: 0;
  padding: 0;
}

/* ========== 列表重置 ========== */
ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ========== 链接重置 ========== */
a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}

a:hover {
  text-decoration: none;
}

/* ========== 按钮重置 ========== */
button {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  outline: none;
}

button:focus {
  outline: none;
}

/* ========== 表单元素重置 ========== */
input,
textarea,
select {
  margin: 0;
  padding: 0;
  border: none;
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* ========== 图片重置 ========== */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}

/* ========== 表格重置 ========== */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ========== 其他元素重置 ========== */
blockquote,
figure {
  margin: 0;
  padding: 0;
}

/* ========== 移除默认样式 ========== */
address {
  font-style: normal;
}

/* ========== 辅助功能 ========== */
/* 隐藏但保留屏幕阅读器可访问性 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========== 清除浮动 ========== */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

