/* 引入中文字体思源黑体，搭配英文字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500&display=swap');

/* 基础变量定义 */
:root {
  --color-bg: #F5F5F5;
  --color-text-main: #333333;
  --color-text-sub: #777777;
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* 全局基础样式 */
body {
  font-family: 'Helvetica Neue', 'Futura', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 页面加载淡入动画 */
.fade-in-up {
  animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
  opacity: 0;
  transform: translateY(20px);
}

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

/* 延迟动画工具类 */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* 图片悬停交互效果 - 放大 + 深阴影 */
.hover-reveal {
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
  will-change: transform;
  overflow: hidden;
}

.hover-reveal:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.hover-reveal img {
  transition: transform 0.8s var(--ease-out-expo);
}

.hover-reveal:hover img {
  transform: scale(1.05);
}

/* 瀑布流布局 (Inspiration Page) */
.masonry-grid {
  column-count: 1;
  column-gap: 1.5rem;
}

@media (min-width: 768px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .masonry-grid {
    column-count: 3;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  display: block;
  width: 100%;
}

/* 导航栏激活状态 */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  font-weight: 500;
  color: #000;
}

/* 视差滚动效果辅助类 */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* 隐藏滚动条但保留滚动功能 */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 文字选择颜色适配 */
::selection {
  background: #2C2C2C;
  color: #FFF;
}