/* ============================================================
   观潮海报网 · 基础样式 (Reset + Typography)
   themes/default/assets/css/base.css
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  padding: 20px;
  min-height: 100vh;
  font-family: var(--hb-font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--hb-ink-700);
  background-color: var(--hb-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* 统一的键盘可达焦点样式 */
:focus-visible {
  outline: 2px solid var(--hb-green-400);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-thumb {
    background: var(--hb-ink-200);
    border: 3px solid transparent;
    background-clip: content-box;
    border-radius: var(--hb-r-full);
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--hb-ink-300);
    background-clip: content-box;
  }
  ::-webkit-scrollbar-track {
    background: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
