/* 
 * 全局样式文件 - 高端时尚女装展示
 * 基于 Pico.css 进行深度定制，打造简约、高级、现代的视觉体验
 */

/* =========================================
   1. 基础变量与重置 (Pico.css Override)
   ========================================= */
:root {
  /* 字体系统：英文优先Helvetica/Avenir，中文优先苹方/思源 */
  --pico-font-family: "Helvetica Now", "Helvetica Neue", "Avenir", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Didot", "Bodoni MT", "Times New Roman", serif; /* 用于特定标题，增加优雅感 */

  /* 配色方案：高级灰、米白、深蓝、燕麦色 */
  --pico-background-color: #fdfcfb; /* 极浅的米白，营造纸张质感 */
  --pico-color: #333333; /* 正文深灰 */
  --pico-muted-color: #666666; /* 次要文字 */
  
  --pico-primary: #2c3e50; /* 深蓝灰，用于按钮和强调 */
  --pico-primary-background: #2c3e50;
  --pico-primary-hover: #1a252f;
  --pico-primary-underline: rgba(44, 62, 80, 0.3);
  --pico-primary-inverse: #ffffff;

  /* 辅助色（不直接覆盖Pico变量，作为自定义变量使用） */
  --color-accent-clay: #bcaaa4; /* 陶土/燕麦 */
  --color-accent-olive: #556b2f; /* 橄榄绿点缀 */
  
  /* 布局与间距 */
  --pico-border-radius: 2px; /* 极小圆角或直角，更具现代硬朗感 */
  --pico-spacing: 2rem;
  --pico-typography-spacing-vertical: 1.5rem;
  --pico-form-element-spacing-vertical: 1rem;
  --pico-form-element-spacing-horizontal: 1.5rem;

  /* 阴影与深度 */
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

/* 全局排版优化 */
body {
  letter-spacing: 0.02em; /* 增加字间距，提升呼吸感 */
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400; /* 时尚界偏好较细的字重 */
  letter-spacing: 0.05em;
  color: #000000;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

a.contrast:hover {
  opacity: 0.7;
}

/* =========================================
   2. 导航栏 (Navigation)
   ========================================= */
nav.container-fluid {
  padding: 1.5rem 3rem;
  background-color: rgba(253, 252, 251, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

nav ul li a {
  color: var(--pico-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--pico-primary);
  opacity: 0.7;
}

nav strong {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.1em;
}

/* =========================================
   3. 首页特定组件 (Hero & Features)
   ========================================= */
/* 全屏轮播区域 */
.hero-section {
  position: relative;
  height: 85vh; /* 略小于全屏，露出下方内容 */
  width: 100%;
  overflow: hidden;
  margin-bottom: var(--pico-spacing);
}

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

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

/* 轮播文字覆盖 */
.hero-content {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  width: 90%;
  max-width: 800px;
  z-index: 10;
}

.hero-content h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: #fff;
  font-weight: 300;
}

.hero-content p {
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 300;
}

/* 特色展示区模块 */
.feature-card {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--pico-spacing);
  background: #fff;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

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

.feature-text {
  padding: 1.5rem;
  text-align: center;
}

.feature-text h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-text p {
  font-size: 0.9rem;
  color: var(--pico-muted-color);
  margin-bottom: 0;
}

/* =========================================
   4. 臻选系列 (Selected Collection)
   ========================================= */
/* 筛选标签 */
.filter-bar {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 1rem;
}

.filter-tag {
  display: inline-block;
  margin: 0 0.8rem;
  font-size: 0.85rem;
  color: var(--pico-muted-color);
  text-transform: uppercase;
  cursor: default; /* 视觉展示，不可点击 */
  letter-spacing: 0.05em;
}

.filter-group-title {
  display: block;
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

/* 产品网格 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.product-item {
  background: transparent;
}

.product-image-wrapper {
  position: relative;
  padding-bottom: 133%; /* 3:4 比例 */
  overflow: hidden;
  background-color: #f0f0f0;
  margin-bottom: 1rem;
}

.product-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-item:hover .product-image-wrapper img {
  transform: scale(1.02);
}

.product-desc {
  font-size: 0.9rem;
  color: var(--pico-color);
  line-height: 1.4;
  margin-top: 0.8rem;
}

/* 视觉故事区 */
.visual-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0; /* 无间隙布局 */
  background: #fff;
  align-items: center;
  margin-bottom: 4rem;
}

.visual-story-img img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  display: block;
}

.visual-story-text {
  padding: 4rem;
  background: #fdfdfd;
}

.visual-story-text h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* =========================================
   5. 风格指南 (Style Guide)
   ========================================= */
.guide-section {
  margin-bottom: 5rem;
}

.guide-section h2 {
  text-align: center;
  font-family: var(--font-serif);
  margin-bottom: 2.5rem;
  position: relative;
}

.guide-section h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--pico-color);
  margin: 1rem auto 0;
}

.guide-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.guide-block.reverse {
  direction: rtl; /* 图片在右，文字在左 */
}

.guide-block.reverse > * {
  direction: ltr; /* 文字恢复正常方向 */
}

.guide-text p {
  color: var(--pico-muted-color);
  font-size: 1rem;
}

.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列 */
  gap: 1.5rem;
}

.inspiration-item {
  position: relative;
}

.inspiration-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.inspiration-caption {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #888;
  text-align: center;
  letter-spacing: 0.1em;
}

/* =========================================
   6. 通用与响应式 (Responsive)
   ========================================= */
/* 底部通用 */
footer {
  text-align: center;
  padding: 3rem 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  font-size: 0.8rem;
  color: #999;
  letter-spacing: 0.1em;
}

.back-home-btn {
  display: block;
  width: fit-content;
  margin: 0 auto 3rem;
  padding: 0.8rem 2rem;
  border: 1px solid var(--pico-color);
  color: var(--pico-color);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
}

.back-home-btn:hover {
  background: var(--pico-color);
  color: #fff;
  opacity: 1;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .hero-content h2 { font-size: 2.5rem; }
  .inspiration-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
      --pico-spacing: 1.5rem;
  }
  
  nav.container-fluid {
      padding: 1rem;
  }

  .hero-section { height: 60vh; }
  .hero-content h2 { font-size: 1.8rem; }
  
  .visual-story,
  .guide-block {
      grid-template-columns: 1fr;
      gap: 1.5rem;
  }
  
  .guide-block.reverse {
      direction: ltr;
  }
  
  .visual-story-text { padding: 2rem; }
  
  .product-grid {
      grid-template-columns: repeat(2, 1fr); /* 移动端2列 */
      gap: 1rem;
  }
  
  .inspiration-grid {
      grid-template-columns: 1fr; /* 移动端1列 */
  }
  
  .feature-card img { height: 300px; }
}

/* 槽位占位符，不直接显示，但结构保留 */
.content-slot {
  display: none;
}