@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400&display=swap');

:root {
  --color-primary: #f5f5f0;
  --color-secondary: #e8e3df;
  --color-accent: #5d4037;
  --color-text: #333333;
  --color-text-light: #666666;
  --font-family-zh: 'Noto Sans SC', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-zh);
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-primary);
  line-height: 1.6;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

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

.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.image-hover {
  overflow: hidden;
}

.image-hover img {
  transition: transform 0.3s ease;
}

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

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
}

.waterfall {
  column-count: 3;
  column-gap: 1rem;
}

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

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

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