/* Basic reset: keep layout deterministic */
html,
body {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: #07060E;
  font-family: PingFang SC, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
}

img {
  display: block;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #4a3f63 #120f1d;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #120f1d;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6b5a8d 0%, #4a3f63 100%);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7a69a0 0%, #5a4d79 100%);
}

/* 语义标题：避免浏览器默认 h1–h3 margin 影响现有布局 */
h1,
h2,
h3 {
  margin: 0;
}

/* 仅供爬虫/读屏的语义内容，不影响视觉布局 */
.seo-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
