/* 全局样式 - 极简主义时尚服装展示网站 */

/* ===== CSS变量定义 ===== */
:root {
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #fafafa;
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #666666;
  --color-text-muted: #999999;
  --color-accent: #2a2a2a;
  --color-overlay: rgba(0, 0, 0, 0.6);
  
  --font-primary: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  
  --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.3s ease;
}

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

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

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-light);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== 禁用图片右键 ===== */
img {
  user-select: none;
  pointer-events: auto;
}

img::selection {
  background: transparent;
}

/* ===== 全局导航 ===== */
.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-link {
  position: relative;
  font-weight: var(--font-weight-light);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}

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

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

/* ===== 页面淡入动画 ===== */
.page-transition {
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 英雄区域 ===== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 8s ease-out;
}

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

/* ===== 引言区域 ===== */
.quote-section {
  font-size: 1.5rem;
  font-weight: var(--font-weight-light);
  line-height: 2.2;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  animation: quoteSlideIn 1.2s ease-out 0.5s both;
}

@keyframes quoteSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 精选预览区 ===== */
.preview-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.preview-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.preview-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  font-size: 0.85rem;
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.15em;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem 1rem;
  backdrop-filter: blur(5px);
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-fast);
}

.preview-item:hover .preview-label {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 辑录页图片网格 ===== */
.archive-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.archive-item {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
}

.archive-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.archive-item:hover img {
  transform: scale(1.03);
  filter: brightness(0.95);
}

.archive-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  opacity: 0;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

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

.overlay-action {
  font-size: 0.9rem;
  font-weight: var(--font-weight-light);
  letter-spacing: 0.1em;
  color: white;
  padding: 0.8rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}

.overlay-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* ===== 过滤标签 ===== */
.filter-tags {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-tag {
  font-size: 0.95rem;
  font-weight: var(--font-weight-light);
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  padding-bottom: 0.3rem;
}

.filter-tag::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

.filter-tag:hover,
.filter-tag.active {
  color: var(--color-accent);
}

.filter-tag.active::after {
  width: 100%;
}

/* ===== 灯箱效果 ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s ease;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  animation: zoomIn 0.5s ease;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.lightbox-close:hover {
  transform: rotate(90deg);
}

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 400px;
  text-align: right;
}

/* ===== 叙事页面 ===== */
.narrative-gallery {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.narrative-image-wrapper {
  position: relative;
}

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

.narrative-text {
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  max-width: 600px;
}

.narrative-title {
  font-size: 2rem;
  font-weight: var(--font-weight-light);
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
}

/* ===== 页脚 ===== */
.site-footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  padding: 3rem 0 2rem;
  letter-spacing: 0.05em;
}

/* ===== 滚动提示 ===== */
.scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

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

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
  .quote-section {
    font-size: 1.2rem;
  }
  
  .preview-grid,
  .archive-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .filter-tags {
    gap: 1rem;
  }
  
  .archive-overlay {
    gap: 1rem;
  }
  
  .overlay-action {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }
  
  .narrative-title {
    font-size: 1.5rem;
  }
  
  .lightbox img {
    max-width: 95%;
  }
  
  .lightbox-caption {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    text-align: center;
    max-width: none;
  }
}

/* ===== 延迟加载占位符 ===== */
.lazy-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}