/* 
 * Project: High-End Fashion Showcase
 * Theme: Minimalist, Elegant, Visual-First
 * Colors: Pearl White (#FAF9F6), Light Grey (#F5F5F5), Terracotta (#9C5B4A), Charcoal (#2C2C2C)
 */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500&family=Noto+Sans+SC:wght@300;400;500&family=Noto+Serif+SC:wght@400;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  /* Design Tokens */
  --color-primary: #FAF9F6; /* 珍珠白 */
  --color-secondary: #F5F5F5; /* 浅灰 */
  --color-accent: #9C5B4A; /* 陶土红 */
  --color-text: #2C2C2C; /* 深炭灰 */
  --color-text-light: #666666;
  --color-white: #FFFFFF;

  --font-heading-en: 'Playfair Display', serif;
  --font-body-en: 'Montserrat', sans-serif;
  --font-heading-cn: 'Noto Serif SC', serif; /* 思源宋体 */
  --font-body-cn: 'Noto Sans SC', sans-serif; /* 思源黑体 */

  --spacing-unit: 8px;
  --container-width: 1400px;
  --header-height: 80px;

  --transition-smooth: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-hover: all 0.4s ease-out;
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background-color: var(--color-primary);
  color: var(--color-text);
  font-family: var(--font-body-en), var(--font-body-cn);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-hover);
}

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading-en), var(--font-heading-cn);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.1em; }
.font-serif { font-family: var(--font-heading-en), var(--font-heading-cn); }

/* Layout Utilities */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

.section {
  padding: 6rem 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}

/* Navigation */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  transition: transform 0.3s ease;
}

.nav-menu {
  display: flex;
  gap: 4rem;
}

.nav-link {
  font-family: var(--font-heading-en), var(--font-heading-cn);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
  color: var(--color-text-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: var(--transition-hover);
}

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

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

/* Footer */
.main-footer {
  margin-top: auto;
  padding: 2rem 0;
  text-align: center;
  font-family: var(--font-heading-en);
  font-size: 0.8rem;
  color: var(--color-text-light);
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* Page: Home (Hero Slider) */
.hero-slider {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

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

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

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 6s ease;
}

.slide.active img {
  transform: scale(1);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  color: var(--color-white);
  mix-blend-mode: difference;
  width: 100%;
}

.hero-title {
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s 0.5s forwards;
}

.hero-nav {
  margin-top: 3rem;
  opacity: 0;
  animation: fadeUp 1s 0.8s forwards;
}

.btn-explore {
  display: inline-block;
  padding: 1rem 2rem;
  border: 1px solid currentColor;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  transition: var(--transition-hover);
}

.btn-explore:hover {
  background-color: var(--color-white);
  color: var(--color-text);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
  color: var(--color-white);
  mix-blend-mode: difference;
}

/* Page: Series (Grid) */
.series-header {
  padding: 8rem 0 4rem;
  text-align: center;
}

.series-intro {
  max-width: 600px;
  margin: 1rem auto;
  color: var(--color-text-light);
  font-weight: 300;
}

.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  padding-bottom: 4rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--color-secondary);
}

.gallery-item img {
  width: 100%;
  height: 120%; /* For parallax effect potential */
  transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
  display: block;
}

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

.item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: var(--color-white);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-hover);
}

.gallery-item:hover .item-overlay {
  opacity: 1;
  transform: translateY(0);
}

.item-title {
  font-family: var(--font-heading-en);
  font-size: 1.5rem;
  font-style: italic;
}

.item-desc {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-weight: 300;
}

/* Page: Details (Split Layout) */
.split-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--header-height);
}

.detail-visual {
  flex: 7;
  position: relative;
  overflow: hidden;
  background-color: #f0f0f0;
}

.detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-content {
  flex: 3;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--color-white);
}

.detail-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.detail-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.detail-text {
  color: var(--color-text-light);
  margin-bottom: 3rem;
  font-weight: 300;
  line-height: 1.8;
}

.detail-nav {
  display: flex;
  gap: 1rem;
}

.detail-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition-hover);
}

.detail-thumb.active, .detail-thumb:hover {
  opacity: 1;
  border: 1px solid var(--color-text);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 40px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  display: flex;
  opacity: 1;
}

.lightbox-img {
  max-height: 90vh;
  max-width: 90vw;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-text);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-title { font-size: 3rem; }
  .split-layout { flex-direction: column; }
  .detail-visual { height: 60vh; }
  .detail-content { padding: 2rem; }
}

@media (max-width: 768px) {
  .nav-menu { gap: 1.5rem; }
  .nav-link { font-size: 0.75rem; }
  .hero-title { font-size: 2rem; letter-spacing: 0.1em; }
  .section { padding: 4rem 0; }
  .grid-gallery { grid-template-columns: 1fr; }
  .detail-title { font-size: 2rem; }
}