/* ============================================
   全局样式 - 时尚女装网站
   ============================================ */

/* 基础重置与字体配置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

:root {
  --color-primary: #f5f5f0;
  --color-secondary: #e8e6e1;
  --color-dark: #1a1a1a;
  --color-gray: #9e9e9e;
  --color-accent: #d4a5a5;
  --color-accent-blue: #8b9dc3;
  --font-primary: 'Noto Sans SC', 'Helvetica Neue', -apple-system, sans-serif;
  --spacing-xs: 1rem;
  --spacing-sm: 2rem;
  --spacing-md: 4rem;
  --spacing-lg: 6rem;
  --spacing-xl: 8rem;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-primary);
  color: var(--color-dark);
  line-height: 1.8;
  overflow-x: hidden;
  font-weight: 300;
}

/* 导航栏样式 */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(245, 245, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 30, 30, 0.05);
}

nav .nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .nav-links {
  display: flex;
  gap: 3rem;
  align-items: center;
}

nav a {
  color: var(--color-dark);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
  font-weight: 400;
}

nav a:hover {
  color: var(--color-accent);
}

nav .cart-icon {
  width: 20px;
  height: 20px;
  stroke: var(--color-dark);
  stroke-width: 1.5;
  transition: stroke 0.3s ease;
}

nav .cart-icon:hover {
  stroke: var(--color-accent);
}

/* 页面主容器 */
main {
  margin-top: 80px;
}

/* Hero区域 */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95);
}

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

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.8);
}

/* 精选预览区 */
.preview-section {
  padding: var(--spacing-xl) var(--spacing-md);
  background-color: var(--color-primary);
}

.preview-section h2 {
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  font-weight: 400;
  margin-bottom: var(--spacing-lg);
  color: var(--color-gray);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-md);
  max-width: 1200px;
  margin: 0 auto;
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

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

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

.preview-caption {
  text-align: center;
  margin-top: var(--spacing-xs);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--color-gray);
}

/* 意境陈述区 */
.statement-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  background-color: var(--color-secondary);
}

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

.statement-text {
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.statement-text p {
  font-size: 1.1rem;
  line-height: 2.2;
  letter-spacing: 0.05em;
  color: var(--color-dark);
  font-weight: 300;
}

/* 结束视觉区 */
.closing-section {
  height: 80vh;
  overflow: hidden;
}

.closing-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 系列展示页 - 瀑布流 */
.collections-header {
  padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
  text-align: center;
}

.collections-header h1 {
  font-size: 1rem;
  letter-spacing: 0.3em;
  font-weight: 400;
  color: var(--color-dark);
  position: relative;
  display: inline-block;
}

.collections-header h1::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background-color: var(--color-gray);
}

.gallery {
  padding: var(--spacing-md);
  column-count: 3;
  column-gap: var(--spacing-sm);
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--spacing-sm);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(245, 245, 240, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 2rem;
}

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

.gallery-overlay p {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--color-dark);
  text-align: center;
  line-height: 1.8;
}

/* 灵感故事页 */
.story-header {
  padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
  text-align: center;
}

.story-header h1 {
  font-size: 1rem;
  letter-spacing: 0.3em;
  font-weight: 400;
  color: var(--color-dark);
  position: relative;
  display: inline-block;
}

.story-header h1::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background-color: var(--color-gray);
}

.story-opening {
  height: 90vh;
  overflow: hidden;
}

.story-opening img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
}

.story-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
  font-size: 1.05rem;
  line-height: 2.2;
  letter-spacing: 0.05em;
  color: var(--color-dark);
}

.story-chapter {
  margin-bottom: var(--spacing-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.story-chapter:nth-child(even) {
  direction: rtl;
}

.story-chapter:nth-child(even) > * {
  direction: ltr;
}

.story-chapter img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.story-chapter-text {
  padding: var(--spacing-sm);
}

.story-chapter-text p {
  font-size: 1rem;
  line-height: 2.2;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  color: var(--color-dark);
}

.story-chapter-text .caption {
  font-size: 0.85rem;
  color: var(--color-gray);
  letter-spacing: 0.1em;
  font-style: italic;
  margin-top: 1rem;
}

/* 页脚 */
footer {
  text-align: center;
  padding: var(--spacing-md);
  background-color: var(--color-primary);
  border-top: 1px solid rgba(30, 30, 30, 0.05);
}

footer p {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--color-gray);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .gallery {
    column-count: 2;
  }
  
  .statement-section,
  .story-chapter {
    grid-template-columns: 1fr;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }
  
  nav .nav-container {
    padding: 1rem 1.5rem;
  }
  
  nav .nav-links {
    gap: 1.5rem;
  }
  
  .gallery {
    column-count: 1;
  }
  
  .preview-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .statement-text {
    padding: var(--spacing-md);
  }
}