/* 自定义样式补充 */
:root {
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --color-primary: #f5f5f5;
  --color-secondary: #e8e8e8;
  --color-accent: #d4d4d4;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* 毛玻璃效果 */
.backdrop-blur-custom {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.7);
}

/* 轮播图动画 */
.carousel-fade-enter {
  opacity: 0;
  transform: scale(1.05);
}

.carousel-fade-enter-active {
  transition: opacity 1s ease, transform 1s ease;
  opacity: 1;
  transform: scale(1);
}

.carousel-fade-exit {
  opacity: 1;
  transform: scale(1);
}

.carousel-fade-exit-active {
  transition: opacity 1s ease, transform 1s ease;
  opacity: 0;
  transform: scale(0.95);
}

/* 图片悬停效果 */
.image-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-hover:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 导航链接下划线动画 */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #333;
  transition: width 0.3s ease;
}

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

/* 瀑布流布局 */
.masonry {
  column-count: 3;
  column-gap: 1rem;
}

@media (max-width: 1024px) {
  .masonry {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .masonry {
    column-count: 1;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

/* 加载动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}