/* portal reset + 基础排版 */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--h-header) + var(--sp-4));
}

body {
  margin: 0;
  font-family: var(--ff-base);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg-page);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }
a { color: var(--c-primary); text-decoration: none; }
a:hover:not(.btn):not(.pt-btn) { color: var(--c-primary-hover); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: var(--lh-tight); }
p { margin: 0; }
table { border-collapse: collapse; }
code, kbd, pre, samp { font-family: var(--ff-mono); }
:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}
::selection { background: var(--c-primary-soft); color: var(--c-text); }

.pt-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
