/* 引入现代无衬线字体 Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600&display=swap');

/* 基础重置与全局设置 */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #ffffff;
  color: #171717;
}

/* 自定义选中文本样式 - 极简灰调 */
::selection {
  background-color: #f3f4f6;
  color: #000000;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d1d5db;
}

/* 动画关键帧：优雅上浮淡入 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 动画工具类 */
.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* 页面切换过渡容器 */
.page-transition-wrapper {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}
.page-loaded {
  opacity: 1;
}

/* 图片悬停交互效果 */
.hover-zoom-img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
  will-change: transform;
}

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

/* 文本下划线动画 */
.link-underline {
  position: relative;
  text-decoration: none;
}
.link-underline::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transition: width 0.3s ease-in-out;
}
.link-underline:hover::after {
  width: 100%;
}

/* 动态内容槽位预留 */
[data-slot="content"]:empty {
  display: none;
}