/* Google Fonts 引入：Noto Sans SC (正文) 和 Playfair Display (标题/艺术字体) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@200;300;400&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');

/* Tailwind Base 重置与自定义 */
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --color-text-primary: #1a1a1a;
  --color-bg-primary: #ffffff;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* 防止水平滚动 */
}

/* 标题衬线体 */
h1, h2, h3, .font-serif {
  font-family: 'Playfair Display', serif;
}

/* 极简滚动条 */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #e5e5e5;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d4d4d4;
}

/* 自定义动画：淡入上浮 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-200 { animation-delay: 0.2s; }
.delay-500 { animation-delay: 0.5s; }

/* 图片悬停微动效果 */
.hover-zoom-img {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.group:hover .hover-zoom-img {
  transform: scale(1.03);
}

/* 导航链接激活状态微标 */
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: translateX(-50%);
  opacity: 0.6;
}

/* 隐藏移动端点击高亮 */
* {
  -webkit-tap-highlight-color: transparent;
}