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

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

:root {
  --color-primary: #f5f5f5;
  --color-text: #2d2d2d;
  --color-text-light: #666;
  --color-accent: #d4af37;
  --color-bg: #fafafa;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif SC', serif;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.nav-link {
  font-size: 0.95rem;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-smooth);
  letter-spacing: 0.1em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--color-accent);
}

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

.nav-link.active {
  color: var(--color-accent);
}

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

.content-wrapper {
  padding-top: 80px;
  min-height: calc(100vh - 100px);
}

.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 2rem;
}

.hero-overlay h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  letter-spacing: 0.15em;
  animation: fadeInUp 1s ease-out;
}

.hero-overlay p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 600px;
  line-height: 2;
  letter-spacing: 0.05em;
  animation: fadeInUp 1s ease-out 0.3s backwards;
}

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

.content-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 0.1em;
  color: var(--color-text);
}

.text-content {
  max-width: 900px;
  margin: 0 auto 4rem;
  font-size: 1rem;
  line-height: 2.2;
  color: var(--color-text-light);
  text-align: justify;
}

.text-content h3 {
  font-size: 1.4rem;
  margin: 3rem 0 1.5rem;
  color: var(--color-text);
}

.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--color-primary);
  border-radius: 2px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 4rem;
  margin-top: 4rem;
}

.story-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.story-image {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 2px;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.story-card:hover .story-image img {
  transform: scale(1.03);
}

.story-text h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.story-text p {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--color-text-light);
}

footer {
  background: var(--color-primary);
  text-align: center;
  padding: 2rem;
  margin-top: 6rem;
  color: var(--color-text-light);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .nav-container {
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .content-section {
    padding: 4rem 1.5rem;
  }

  .grid-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-overlay h1 {
    font-size: 2rem;
  }

  .hero-overlay p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    gap: 1rem;
  }

  .content-section {
    padding: 3rem 1rem;
  }

  .text-content {
    font-size: 0.95rem;
  }
}

.loading {
  opacity: 0;
  animation: fadeIn 0.6s ease-in forwards;
}

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

img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}