/* 
 * 全局样式设计 - 高级时尚女装展示
 * 核心理念：极简、留白、视觉冲击、响应式
 * 基础框架：Pico.css (已在HTML中引入)
 */

:root {
  /* 覆盖 Pico.css 默认变量以符合黑白灰高级色调 */
  --pico-font-family: "Noto Sans SC", "Source Han Sans CN", system-ui, -apple-system, sans-serif;
  --pico-font-size: 16px;
  --pico-line-height: 1.6;
  --pico-background-color: #ffffff;
  --pico-color: #1a1a1a; /* 深灰近黑 */
  --pico-primary: #000000; /* 主色调纯黑 */
  --pico-primary-background: #000000;
  --pico-primary-hover: #333333;
  --pico-primary-underline: rgba(0, 0, 0, 0.5);
  --pico-primary-inverse: #ffffff;
  
  /* 自定义设计令牌 */
  --spacing-unit: 2rem;
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  --font-serif: "Noto Serif SC", "Source Han Serif CN", serif; /* 用于引言和文章 */
  --nav-height: 80px;
}

/* 基础重置与排版优化 */
body {
  letter-spacing: 0.02em; /* 增加字间距提升高级感 */
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 300; /* 细体标题 */
  letter-spacing: 0.05em;
  color: #000;
  margin-bottom: var(--spacing-unit);
}

.font-serif {
  font-family: var(--font-serif);
}

.text-center {
  text-align: center;
}

/* 导航栏 (Navbar) - 固定顶部，极简风格 */
nav.custom-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  padding: 0 var(--spacing-unit);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav.custom-nav .brand {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
}

nav.custom-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.custom-nav ul li a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
  position: relative;
}

nav.custom-nav ul li a:hover,
nav.custom-nav ul li a.active {
  color: #000;
}

nav.custom-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: #000;
  transition: width 0.3s ease, left 0.3s ease;
}

nav.custom-nav ul li a:hover::after {
  width: 100%;
  left: 0;
}

/* 主内容区域通用 */
main.container-fluid {
  padding-top: var(--nav-height);
  min-height: calc(100vh - 60px); /* 减去 footer 高度 */
  padding-bottom: 4rem;
}

/* 首页 - 首屏大图 (Hero) */
.hero-section {
  position: relative;
  height: 100vh;
  margin-top: calc(var(--nav-height) * -1); /* 抵消 padding-top 实现全屏 */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* 视差效果 */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3); /* 轻微暗化以突出文字 */
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  mix-blend-mode: difference; /* 增强文字在复杂背景下的可读性 */
}

.hero-title {
  font-size: 4rem;
  font-family: var(--font-serif);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 1.2s ease forwards 0.5s;
}

/* 首页 - 引言段落 */
.intro-section {
  padding: 8rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 2;
  color: #333;
}

/* 首页 - 视觉网格 */
.visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 4rem;
  margin-bottom: 4rem;
}

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

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.grid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.grid-item:hover .grid-overlay {
  opacity: 1;
}

.grid-text {
  color: #fff;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  font-weight: 300;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  padding-bottom: 4px;
}

/* 系列陈列页 (Collection) */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 4rem 0;
  flex-wrap: wrap;
}

.filter-item {
  font-size: 0.9rem;
  color: #999;
  cursor: default; /* 非功能性 */
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.collection-gallery {
  column-count: 3;
  column-gap: 3rem;
  padding: 0 4rem;
}

.collection-item {
  break-inside: avoid;
  margin-bottom: 4rem;
}

.collection-item img {
  width: 100%;
  display: block;
  margin-bottom: 1.5rem;
  background-color: #f5f5f5; /* 占位色 */
}

.item-desc {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
  max-width: 90%;
}

/* 风格解读页 (Style) */
.style-header {
  text-align: center;
  margin: 4rem 0 6rem;
}

.article-list {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.article-card {
  margin-bottom: 8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.article-card:nth-child(even) {
  direction: rtl; /* 图片文字左右交替 */
}

.article-card:nth-child(even) .article-content {
  direction: ltr;
}

.article-image img {
  width: 100%;
  height: auto;
  filter: saturate(0.8); /* 稍微降低饱和度 */
  transition: filter 0.5s ease;
}

.article-card:hover .article-image img {
  filter: saturate(1);
}

.article-content {
  padding-top: 2rem;
}

.article-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.article-text {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 2rem;
  text-align: justify;
}

.read-more {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: #000;
  border-bottom: 1px solid #000;
  padding-bottom: 2px;
  text-decoration: none;
}

/* 页脚 (Footer) */
footer.simple-footer {
  border-top: 1px solid #f0f0f0;
  padding: 3rem 0;
  text-align: center;
  margin-top: auto;
}

footer.simple-footer p {
  color: #aaa;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  margin: 0;
}

/* 辅助动画 */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* 响应式调整 */
@media (max-width: 1024px) {
  .collection-gallery {
    column-count: 2;
  }
  .article-card {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
    --spacing-unit: 1.5rem;
  }
  
  nav.custom-nav {
    padding: 0 1rem;
  }
  
  nav.custom-nav .brand {
    font-size: 1.2rem;
  }
  
  nav.custom-nav ul {
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .visual-grid {
    padding: 0 1rem;
    grid-template-columns: 1fr;
  }
  
  .collection-gallery {
    column-count: 1;
    padding: 0 1rem;
  }
  
  .filter-bar {
    gap: 1.5rem;
    display: none; /* 移动端隐藏非功能性筛选以节省空间 */
  }
  
  .article-card {
    grid-template-columns: 1fr;
    margin-bottom: 4rem;
  }
  
  .article-content {
    padding-top: 0;
  }
  
  .intro-section {
    padding: 4rem 1.5rem;
  }
}