/* 优雅中文字体设置 */
@import url('https://fonts.loli.net/css2?family=Noto+Serif+SC:wght@300;400;500;600&display=swap');

body {
  font-family: 'Noto Serif SC', serif;
  scroll-behavior: smooth;
}

/* 自定义导航栏悬停效果 */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: #92400e;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

/* 图片悬停效果 */
.image-hover {
  transition: all 0.3s ease;
  filter: brightness(0.95);
}

.image-hover:hover {
  transform: scale(1.02);
  filter: brightness(1);
}

/* 文字优雅淡入效果 */
.fade-in {
  animation: fadeIn 1.2s ease-in;
}

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

/* 瀑布流布局辅助类 */
.masonry {
  column-count: 3;
  column-gap: 1.5rem;
}

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

/* 色卡悬停效果 */
.color-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.color-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .masonry {
    column-count: 2;
  }
}

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

/* 页脚样式 */
.footer {
  background-color: #faf9f7;
  border-top: 1px solid #e5e5e3;
}