/* 全局样式文件 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700&family=Noto+Sans+SC:wght@300;400&display=swap');

:root {
  --bg-primary: #F9F7F4;
  --text-primary: #2C2C2C;
  --text-secondary: #A8A39D;
  --transition-speed: 0.3s;
}

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

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp var(--transition-speed) ease forwards;
}

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

.hover-zoom {
  overflow: hidden;
  transition: transform var(--transition-speed) ease;
}

.hover-zoom img {
  transition: transform var(--transition-speed) ease;
}

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

.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(249, 247, 244, 0.95);
  backdrop-filter: blur(10px);
}

.fullscreen-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.fullscreen-overlay.active {
  display: flex;
}

.fullscreen-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .nav-fixed {
    padding: 0.5rem 1rem;
  }
}

@media (min-width: 769px) {
  .container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
  }
}