/* 基础字体设置 - 优先使用系统无衬线字体以保持现代感 */
body {
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #ffffff;
  color: #171717;
}

/* 页面级淡入动画 - 提供平滑的浏览体验 */
.page-enter {
  animation: pageFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  transform: translateY(15px);
}

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

/* 动画延迟类 */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }

/* 图片渐进式加载效果 */
.img-wrapper {
  overflow: hidden;
  background-color: #f3f4f6; /* 加载占位色 */
  position: relative;
}

.img-reveal {
  opacity: 0;
  filter: blur(8px);
  transform: scale(1.05);
  transition: opacity 0.8s ease-out, filter 0.8s ease-out, transform 0.8s ease-out;
}

.img-reveal.loaded {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

/* 卡片悬停效果 - 仅在非触摸设备上启用 */
@media (hover: hover) {
  .hover-zoom-card:hover .img-reveal.loaded {
    transform: scale(1.05);
  }
}

/* 极简导航下划线动画 */
.nav-item {
  position: relative;
  display: inline-block;
}

.nav-item::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 50%;
  background-color: #171717;
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-item:hover::after {
  width: 100%;
  left: 0;
}

/* 动态槽位 - 用于后续内容扩展 */
.dynamic-slot {
  display: contents;
}

/* 隐藏滚动条但允许滚动 - 用于水平画廊 */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* 文字排版优化 */
.text-justify-art {
  text-align: justify;
  text-justify: inter-ideograph;
}