/* 全局样式 - 谧境诗裳 */

/* 字体引入 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600&display=swap');
@import url('https://fonts.loli.net/css2?family=Noto+Sans+SC:wght@300;400&display=swap');

/* CSS变量 - 色彩体系 */
:root {
  --color-ivory: #FAF9F6;
  --color-ash-gray: #E8E6E3;
  --color-sandstone: #D4C4B0;
  --color-terracotta: #D9B5A8;
  --color-matte-black: #1A1A1A;
  --color-carbon-gray: #3A3A3A;
  --color-text-gray: #4A4A4A;
  --nav-height: 80px;
}

/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* 导航栏 */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 1000;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

nav.scrolled {
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.nav-logo {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-matte-black);
  letter-spacing: 2px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--color-carbon-gray);
  text-decoration: none;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s ease;
}

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

.nav-links a:hover {
  color: var(--color-matte-black);
}

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

/* 主容器 */
main {
  margin-top: var(--nav-height);
}

/* 全屏图片容器 */
.hero-section {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--nav-height));
  overflow: hidden;
}

.hero-image {
  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(26, 26, 26, 0.15), transparent 50%, rgba(26, 26, 26, 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-text {
  text-align: center;
  color: white;
  padding: 2rem;
}

.hero-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 3.5rem;
  font-weight: 500;
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* 内容区域 */
.content-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8rem 5%;
}

.section-intro {
  max-width: 800px;
  margin: 0 auto 6rem;
  text-align: center;
}

.section-intro p {
  font-size: 1.1rem;
  line-height: 2.2;
  color: var(--color-carbon-gray);
}

/* 图片网格 */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 6rem;
}

.grid-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

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

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

.grid-caption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-carbon-gray);
  letter-spacing: 0.5px;
}

/* 大图容器 */
.large-image-container {
  margin: 6rem 0;
  position: relative;
}

.large-image {
  width: 100%;
  height: 85vh;
  object-fit: cover;
}

.large-caption {
  text-align: center;
  margin-top: 2rem;
  font-family: 'Noto Serif SC', serif;
  font-size: 1.2rem;
  color: var(--color-carbon-gray);
  letter-spacing: 1px;
}

/* 系列展示 */
.series-container {
  margin-bottom: 8rem;
}

.series-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.5rem;
  font-weight: 500;
  text-align: center;
  color: var(--color-matte-black);
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.series-description {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 2.2;
  color: var(--color-carbon-gray);
}

.series-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.gallery-item:hover img {
  opacity: 0.9;
}

.gallery-caption {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--color-carbon-gray);
  text-align: center;
  font-style: italic;
  letter-spacing: 0.5px;
}

/* 哲思文章 */
.philosophy-article {
  max-width: 900px;
  margin: 0 auto 6rem;
}

.article-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--color-matte-black);
  margin-bottom: 3rem;
  text-align: center;
  letter-spacing: 2px;
}

.article-content {
  font-size: 1.1rem;
  line-height: 2.5;
  color: var(--color-carbon-gray);
  text-align: justify;
}

.article-content p {
  margin-bottom: 2rem;
}

.article-image {
  margin: 4rem 0;
  width: 100%;
  height: 60vh;
  object-fit: cover;
}

/* 页脚 */
footer {
  text-align: center;
  padding: 4rem 0;
  color: var(--color-text-gray);
  font-size: 0.85rem;
  letter-spacing: 1px;
  font-weight: 300;
}

/* 淡入动画 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .series-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }
  
  nav {
    padding: 0 4%;
  }
  
  .nav-logo {
    font-size: 1.2rem;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
  
  .nav-links a {
    font-size: 0.85rem;
  }
  
  .hero-title {
    font-size: 2rem;
    letter-spacing: 2px;
  }
  
  .content-section {
    padding: 5rem 4%;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .series-title {
    font-size: 2rem;
  }
  
  .article-title {
    font-size: 1.8rem;
  }
  
  .article-content {
    font-size: 1rem;
    line-height: 2.2;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .section-intro p,
  .series-description {
    font-size: 0.95rem;
  }
}