/**
 * base.css — 重置、排版、断点工具类
 * 目录：style/base.css；全站去 layui 后的基础层
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
}

a {
  color: var(--color-brand);
  text-decoration: none;
}
a:hover {
  color: var(--color-brand-hover);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
h1 { font-size: 1.5rem; }
h2 { font-size: 1.125rem; }
h3 { font-size: 0.9375rem; }

/* 断点隐藏：替 layui-hide-xs / layui-hide-md */
.hide-xs { }
.hide-md { }

@media (max-width: 767px) {
  .hide-xs {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .hide-md {
    display: none !important;
  }
}

@media (min-width: 1025px) {
  .show-md-only {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
