/* 全局字体设置 - 优先使用现代无衬线字体 */
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* 防止横向滚动 */
  background-color: #ffffff;
  color: #1a1a1a;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 极简滚动条样式 */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a3a3a3;
}

/* 页面淡入动画 */
.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 图片悬停微动效 - 补充Tailwind */
.img-zoom-container {
  overflow: hidden;
  position: relative;
}

.img-zoom {
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

.group:hover .img-zoom {
  transform: scale(1.03);
}

/* 文本排版辅助 */
.text-balance {
  text-wrap: balance; /* 标题换行平衡 */
}

/* 隐藏特定元素但在屏幕阅读器可见 (Accessibility) */
.sr-only-custom {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}