/* ========== 基础样式 - Constellation on Black Velvet ========== */
/* 纯黑虚空背景 + 极简排版 */

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

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  background: #000000;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  
  /* 开场动画期间隐藏主内容 */
  opacity: 0;
  transition: opacity 1s ease;
  animation: force-show-body 0.1s 3s forwards;
}

body.intro-done {
  opacity: 1;
}

/* ========== 滚动条 ========== */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* ========== 选择文本样式 ========== */
::selection {
  background: #8052ff;
  color: #ffffff;
}

/* ========== 链接基础样式 ========== */
a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #8052ff;
}

/* ========== 按钮基础样式 ========== */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ========== 视频 ========== */
video {
  max-width: 100%;
  height: auto;
}

/* ========== 标题基础 ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  line-height: 1.1;
  color: #ffffff;
}

/* ========== 段落 ========== */
p {
  line-height: 1.5;
}

/* ========== 列表 ========== */
ul, ol {
  list-style: none;
}

/* ========== 表单元素 ========== */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

/* ========== 焦点样式 ========== */
:focus-visible {
  outline: 2px solid #8052ff;
  outline-offset: 2px;
}

/* ========== 辅助类 ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== 兜底动画 ========== */
@keyframes force-show-body {
  to { opacity: 1; }
}

/* ========== 减少动画偏好 ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}
