/* ====================
   极简摄影作品集
   ==================== */

/* ====================
   Variables
   ==================== */
:root {
  --color-bg: #1c1c1c;
  --color-text: #ffffff;
  --color-text-light: #cccccc;
  --color-text-muted: #888888;
  --font-display: 'Pacifico', cursive;
  --font-body: 'Pacifico', cursive;
  --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.1s ease-out;
}

/* ====================
   Home Page - Hero Photo
   ==================== */
.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.photo-wrapper {
  background-color: transparent;
  border-radius: 4px;
  transition: box-shadow 1s ease;
}

.hero-photo {
  display: block;
  border-radius: 4px;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ====================
   About Section
   ==================== */
.about {
  text-align: center;
  margin-top: 3rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.8s;
}

.about-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.about-text {
  max-width: 480px;
  color: var(--color-text-light);
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.about-contact {
  justify-content: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.contact-font {
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, 'Times New Roman', serif;
}

.about-contact a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.about-contact a:hover {
  color: var(--color-text);
}

/* ====================
   Gallery Link
   ==================== */
.gallery-link {
  margin-top: 4rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 1.2s;
}

.gallery-link a,
.gallery-link span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.8rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.gallery-link a:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}

.gallery-link svg {
  width: 16px;
  height: 16px;
  transition: var(--transition);
  transform: translateY(-3px);
}

.gallery-link a:hover svg {
  transform: translateY(3px);
}

/* ====================
   Gallery Section (Home Page)
   ==================== */
.gallery-section {
  padding: 6rem 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
}

.gallery-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ====================
   Responsive
   ==================== */
@media (max-width: 768px) {
  .hero-photo {
    height: 45vh;
    max-width: 95vw;
  }
  
  .about-name {
    font-size: 1.5rem;
  }
  
  .about-text {
    font-size: 0.9rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-photo {
    height: 35vh;
  }
  
  .about-contact {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
