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

:root {
  --primary-black: #000000;
  --primary-white: #ffffff;
  --primary-gray: #f5f5f5;
  --secondary-gray: #e0e0e0;
  --tertiary-gray: #808080;
  --camel: #c19a6b;
  --oatmeal: #d3c0b4;
  --navy-blue: #1e3a5f;
  --transition-base: all 0.3s ease;
}

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

body {
  font-family: 'Noto Sans SC', 'Helvetica Neue', sans-serif;
  background-color: var(--primary-white);
  color: var(--primary-black);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 导航栏样式 */
.nav-container {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition-base);
}

.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: 2rem 0;
}

.nav-item {
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--primary-black);
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.05em;
  position: relative;
  transition: var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary-black);
  transition: width 0.3s ease;
}

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

/* 主容器样式 */
.main-container {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

/* 图片网格样式 */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.image-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background-color: var(--primary-gray);
  cursor: pointer;
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: var(--primary-white);
  padding: 2rem 1rem 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-item:hover .image-caption {
  opacity: 1;
}

/* 首页大图样式 */
.hero-section {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--primary-white);
  z-index: 2;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

/* 页面标题样式 */
.page-header {
  text-align: center;
  padding: 4rem 2rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--primary-black);
}

.page-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--tertiary-gray);
  line-height: 1.8;
}

/* 理念页面样式 */
.philosophy-section {
  padding: 6rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.1;
}

.philosophy-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 4rem;
  border-radius: 2px;
}

.philosophy-title {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--primary-black);
}

.philosophy-text {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 2;
  color: var(--primary-black);
  margin-bottom: 1.5rem;
}

/* 页脚样式 */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--tertiary-gray);
  font-size: 0.9rem;
  font-weight: 300;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-list {
    gap: 1.5rem;
    padding: 1.5rem 0;
  }
  
  .nav-link {
    font-size: 0.9rem;
  }
  
  .image-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 2rem 1rem;
  }
  
  .page-header {
    padding: 2rem 1rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .philosophy-section {
    padding: 4rem 1rem;
  }
  
  .philosophy-content {
    padding: 2rem;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}