/* 全局配色方案与基础样式 */
:root {
  --primary-dark: #2C2C2C;
  --primary-light: #F5F5F7;
  --primary-white: #FFFFFF;
  --accent-blue: #1A3A5F;
  --accent-orange: #BF6D4E;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--primary-dark);
  background-color: var(--primary-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 极简滚动条 */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(44, 44, 44, 0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(44, 44, 44, 0.4);
}

/* 导航交互 */
.nav-item::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
  margin-top: 2px;
}
.nav-item:hover::after {
  width: 100%;
}

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

/* 进场动画 */
.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

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

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

/* 灯箱效果 */
.lightbox-overlay {
  background-color: rgba(44, 44, 44, 0.95);
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
}
.lightbox-content {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .hover-trigger:hover {
    transform: none; /* 移动端取消悬停放大 */
  }
}

/* 辅助工具 */
.aspect-3-4 {
  aspect-ratio: 3 / 4;
}
.aspect-4-5 {
  aspect-ratio: 4 / 5;
}

/* 隐藏加载前的闪烁 */
[x-cloak] { display: none !important; }