/* 字体定义：引入优雅的衬线体与现代无衬线体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Noto+Sans+SC:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* 基础样式重置与全局设定 */
:root {
  --font-sans: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', serif;
  --color-bg: #FCFCFA; /* 温暖的高级白 */
  --color-text: #1C1C1C; /* 柔和黑 */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 排版优化 */
h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}

.tracking-wide-plus {
  letter-spacing: 0.15em;
}

/* 极简滚动条设计 */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: #E5E5E5;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #D4D4D4;
}

/* 核心动画库 - 电影质感入场 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: fadeIn 1.5s ease-out forwards;
}

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

/* 图片交互效果：微缩放+亮度调节 */
.group:hover .hover-zoom-img {
  transform: scale(1.03);
  filter: brightness(0.95);
}

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

/* 导航链接动效：极简下划线 */
.nav-link {
  position: relative;
  display: inline-block;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 50%;
  background-color: currentColor;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* 响应式辅助类 */
.img-cover-top {
  object-fit: cover;
  object-position: top center;
}

/* 文字排版平衡 */
.text-balance {
  text-wrap: balance;
}

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