/* 
 * 全局样式配置 
 * 项目：风尚美学 - 高质量时尚女装展示
 * 核心要求：极简、高端、无商业信息、响应式
 */

:root {
  /* 色彩系统 */
  --bg-primary: #ffffff;
  --bg-secondary: #f9f9f9; /* 浅灰/燕麦色调 */
  --bg-accent: #f2f0eb; /* 浅米色 */
  
  --text-primary: #1a1a1a; /* 强调黑 */
  --text-secondary: #555555; /* 深灰 */
  --text-light: #888888; /* 浅灰 */
  
  --color-accent: #b0a495; /* 金属色/大地色点缀 */
  --border-color: #e5e5e5;
  
  /* 排版系统 */
  --font-en: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-cn: "Source Han Sans CN", "Microsoft YaHei", sans-serif;
  --font-base: 16px;
  --line-height: 1.75;
  
  /* 间距系统 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  
  /* 布局容器 */
  --container-width: 1400px;
  --header-height: 80px;
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-base);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-en), var(--font-cn);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: var(--line-height);
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* 布局工具 */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: calc(var(--spacing-md) * -0.5);
  margin-bottom: var(--spacing-lg);
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* 导航栏 */
.site-header {
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.scrolled {
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.brand {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: var(--spacing-md);
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  position: relative;
  padding: 5px 0;
}

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

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

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

/* 主视觉轮播/Banner */
.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

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

.hero-content {
  position: absolute;
  z-index: 3;
  text-align: center;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
}

.hero-title {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.1em;
}

.hero-text {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

/* 通用图片网格 */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.card {
  position: relative;
  overflow: hidden;
  group: hover;
}

.card-image-wrapper {
  overflow: hidden;
  aspect-ratio: 3/4; /* 时尚摄影常用比例 */
  background-color: var(--bg-secondary);
}

.card-image {
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
}

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

.card-content {
  padding-top: var(--spacing-sm);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 300;
}

/* 编辑推荐/图文混排 */
.feature-split {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.feature-split:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 1;
  aspect-ratio: 4/5;
  background-color: var(--bg-secondary);
}

.feature-text {
  flex: 1;
  padding: var(--spacing-md);
}

.feature-text h3 {
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: var(--spacing-sm);
}

.feature-text p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  text-align: justify;
}

/* 设计哲学页面特定样式 */
.philosophy-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
}

.philosophy-intro blockquote {
  font-size: 1.5rem;
  font-style: italic;
  font-family: serif;
  color: var(--text-secondary);
  border: none;
  padding: 0;
}

/* 风格图鉴页面特定样式 */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.filter-item {
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-light);
  transition: color 0.3s ease;
  padding: 5px 10px;
}

.filter-item:hover, .filter-item.active {
  color: var(--text-primary);
}

/* 瀑布流布局模拟 (CSS Grid) */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 20px; /* 细粒度行高用于控制跨度 */
  gap: 20px; 
}

/* 简单的响应式网格替代方案，避免复杂JS */
.gallery-grid {
  columns: 3 300px;
  column-gap: var(--spacing-md);
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--spacing-md);
  position: relative;
}

.gallery-item img {
  width: 100%;
  display: block;
}

.gallery-tag {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 页脚 */
.site-footer {
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  margin-top: auto;
  background-color: var(--bg-primary);
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
}

/* 移动端适配 */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --spacing-xl: 4rem;
    --spacing-lg: 2rem;
  }

  .site-header {
    background-color: #fff;
  }

  .main-nav {
    display: none; /* 简化版：移动端可隐藏或改为汉堡菜单，此处为简化保持布局 */
  }
  
  /* 移动端简单菜单显示逻辑：若需完整功能需JS配合，此处做基本展示 */
  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 2rem;
  }
  
  .feature-split, .feature-split:nth-child(even) {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .gallery-grid {
    columns: 2 160px;
  }
  
  /* 移动端简单导航适配 - 实际项目可能需要JS Toggle */
  .header-inner {
    justify-content: center;
    flex-direction: column;
  }
  
  .main-nav {
    display: flex;
    gap: 15px;
    margin-top: 10px;
  }
  
  .nav-link {
    font-size: 0.8rem;
  }
  
  .site-header {
    height: auto;
    padding: 10px 0;
  }
}

/* 工具类 */
.text-center { text-align: center; }
.mt-sm { margin-top: var(--spacing-sm); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.bg-gray { background-color: var(--bg-secondary); }
.full-width { width: 100%; }

/* 内容槽位占位符 - 仅用于开发调试 */
.slot-placeholder {
  border: 1px dashed var(--border-color);
  background: var(--bg-accent);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  margin: var(--spacing-md) 0;
}