/* 引入现代字体：Playfair Display (衬线) 用于标题，Inter (无衬线) 用于正文 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* 全局基础样式 */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased; /*字体平滑*/
  -moz-osx-font-smoothing: grayscale;
  background-color: #FAFAFA; /* 极简米白/浅灰背景 */
  color: #333333;
}

/* 标题字体覆盖 */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Playfair Display', serif;
}

/* 实用工具类：隐藏滚动条但保留功能 (用于横向滚动区域) */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* 动画定义 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUpFade {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* 动画类 */
.animate-fade-in {
  animation: fadeIn 1.2s ease-out forwards;
}

.animate-slide-up {
  animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0; /* 初始隐藏 */
}

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

/* 图片交互效果 */
.img-zoom-container {
  overflow: hidden;
  position: relative;
}

.img-zoom-target {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-zoom-container:hover .img-zoom-target {
  transform: scale(1.05);
}

/* 极简分割线 */
.divider-line {
  height: 1px;
  background: linear-gradient(to right, transparent, #e5e5e5, transparent);
  width: 80%;
  margin: 0 auto;
}

/* 导航链接动效 */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 50%;
  background-color: #333;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after {
  width: 100%;
}