/* =========================================
   Fashion Showcase - Global Styles
   Based on Pico.css with Custom Design Tokens
   ========================================= */

/* 1. Design Tokens & Typography */
:root {
  --font-main: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Songti SC", "SimSun", serif; /* 用于强调文字 */
  
  /* Color Palette - Neutral & Elegant */
  --color-bg: #fdfbf7; /* 奶油白背景 */
  --color-text: #333333; /* 深灰文字 */
  --color-accent: #b08d55; /* 金棕色强调 */
  --color-muted: #888888;
  --nav-bg: rgba(255, 255, 255, 0.95);
  
  /* Overriding Pico.css variables for a softer look */
  --pico-font-family: var(--font-main);
  --pico-background-color: var(--color-bg);
  --pico-color: var(--color-text);
  --pico-primary: var(--color-text);
  --pico-primary-background: var(--color-text);
  --pico-primary-hover: #000000;
  --pico-border-radius: 0; /* 时尚界偏好直角或极小圆角 */
  --pico-spacing: 1.5rem;
}

/* 2. Global Reset & Utilities */
body {
  font-family: var(--font-main);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.8;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

a:hover {
  color: var(--color-muted);
}

/* Helper Class for Text Alignment */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-muted); font-size: 0.9em; }
.font-serif { font-family: var(--font-serif); }

/* 3. Navigation Bar */
/* Sticky Navigation with Backdrop Filter */
body > header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--nav-bg);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  backdrop-filter: blur(10px);
  padding: 0.5rem 0;
}

nav ul li {
  padding: 0;
}

nav ul li a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  display: block;
}

/* Brand Logo Styling */
.brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-right: 2rem;
  white-space: nowrap;
}

/* 4. Hero Section */
.hero-section {
  position: relative;
  height: 85vh; /* Full viewport height */
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eee;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.9);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  max-width: 800px;
  padding: 2rem;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 300;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
}

/* 5. Image Grid & Cards */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.fashion-card {
  position: relative;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.4s ease;
}

.card-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4; /* Classic portrait ratio for fashion */
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

/* Hover Effect: Scale Image */
.fashion-card:hover .card-image {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  padding: 2rem 1rem 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
}

.fashion-card:hover .card-overlay {
  opacity: 1;
}

.card-meta {
  margin-top: 1rem;
  text-align: center;
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  display: block;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* 6. Section Specifics */
/* Trends Page */
.trend-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 4rem;
}

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

.trend-image {
  flex: 1 1 500px;
  max-width: 100%;
}

.trend-image img {
  width: 100%;
  height: auto;
  display: block;
}

.trend-content {
  flex: 1 1 300px;
  padding: 2rem;
}

/* Details Page - Macro shots */
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.detail-item img {
  width: 100%;
  height: auto;
  filter: contrast(1.1);
}

/* 7. Footer */
footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  font-size: 0.8rem;
  color: var(--color-muted);
  background-color: var(--color-bg);
}

/* 8. Utility Components */
/* Minimal Button */
.btn-minimal {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
  cursor: pointer;
}

.btn-minimal:hover {
  background: var(--color-text);
  color: white;
  text-decoration: none;
}

/* Fade In Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .pico-nav-wrapper { flex-direction: column; }
  nav ul { flex-direction: column; text-align: center; }
  .collection-grid { grid-template-columns: 1fr; }
  .detail-gallery { grid-template-columns: 1fr; }
}