/* 
 * Fashion Showcase Global Styles
 * Design Philosophy: Minimalist, High-End, Editorial
 */

/* 引入字体资源 */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Noto+Sans+SC:wght@300;400;500&display=swap');

/* CSS 变量定义 - 语义化设计令牌 */
:root {
  /* 调色板 */
  --color-ivory: #F9F9F7;
  --color-sand: #EBE9E4;
  --color-taupe: #D6CEC5;
  --color-charcoal: #1C1C1C;
  --color-text-main: #2D2D2D;
  --color-text-light: #666666;
  --color-accent: #C25E48; /* 陶土红 */
  
  /* 字体系统 */
  --font-serif: 'Playfair Display', 'Cormorant Garamond', serif;
  --font-sans: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  
  /* 布局参数 */
  --nav-height: 80px;
  --page-padding: 4vw;
  --transition-smooth: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 基础重置与全局设定 */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-ivory);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
}

/* 覆盖 Pico.css 的部分默认样式以适应高定风格 */
:where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-charcoal);
  margin-top: 0;
}

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

/* 导航栏 - 磨砂玻璃效果 */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  padding: 0 var(--page-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(249, 249, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}

.nav-link {
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  margin-left: 2.5rem;
  color: var(--color-text-main);
  opacity: 0.7;
}

.nav-link:hover, .nav-link.active {
  opacity: 1;
}

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

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

/* 页脚 - 极简固定 */
.fixed-footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.4);
  z-index: 999;
  letter-spacing: 0.1em;
  font-family: var(--font-sans);
  pointer-events: none; /* 允许点击穿透 */
  mix-blend-mode: difference; /* 确保在深浅背景下均可见 */
  filter: invert(1); /* 配合 mix-blend-mode 使用 */
}

/* 视觉组件：淡入动画 */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

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

/* 交互组件：图片磁性悬停效果 */
.hover-reveal-container {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hover-reveal-img {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hover-reveal-container:hover .hover-reveal-img {
  transform: scale(1.05);
}

.hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hover-reveal-container:hover .hover-overlay {
  opacity: 1;
}

/* 杂志排版样式 */
.editorial-hero-text {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.1;
}

.drop-cap::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 0.8;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
  color: var(--color-charcoal);
}

/* 模态框样式 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 28, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: transparent;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  gap: 2rem;
  transform: scale(0.95);
  transition: transform 0.4s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.close-modal:hover {
  opacity: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
    --page-padding: 6vw;
  }
  
  .modal-content {
    flex-direction: column;
    overflow-y: auto;
  }
  
  .nav-link {
    margin-left: 1rem;
    font-size: 0.8rem;
  }
}