/* 全局样式文件 - 高端时尚女装展示网站 */

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

:root {
  --color-primary: #f5f5f0;
  --color-secondary: #e8e6e1;
  --color-accent: #d4c5b9;
  --color-text: #2c2c2c;
  --color-text-light: #6b6b6b;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', sans-serif;
  color: var(--color-text);
  background-color: var(--color-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 导航栏样式 */
.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(245, 245, 240, 0.95);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.nav-scrolled {
  background: rgba(245, 245, 240, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

/* 轮播容器 */
.carousel-container {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

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

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

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 品牌标语动画 */
.brand-slogan {
  animation: fadeInUp 1.2s ease-out 0.5s backwards;
}

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

/* 滚动提示箭头动画 */
.scroll-indicator {
  animation: bounce 2s infinite;
}

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

/* 网格布局 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 4rem;
  }
}

/* 图片卡片样式 */
.image-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  aspect-ratio: 3/4;
}

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

.image-card:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: var(--transition-smooth);
}

.image-card:hover .image-overlay {
  transform: translateY(0);
}

/* 灯箱样式 */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.lightbox.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  animation: zoomIn 0.3s ease-out;
}

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

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

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

/* 设计哲学页面样式 */
.philosophy-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.philosophy-section {
  margin-bottom: 6rem;
  animation: fadeInUp 0.8s ease-out;
}

.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.inspiration-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 1;
}

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

.inspiration-item:hover img {
  transform: scale(1.1);
}

/* 懒加载占位符 */
.lazy-load {
  background: var(--color-secondary);
  position: relative;
}

.lazy-load::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* 页脚样式 */
footer {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--color-text-light);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .carousel-container {
    height: 80vh;
  }
  
  .brand-slogan {
    font-size: 1.5rem !important;
  }
  
  .philosophy-content {
    padding: 2rem 1rem;
  }
  
  .philosophy-section {
    margin-bottom: 3rem;
  }
}

/* 无障碍和焦点状态 */
a:focus, button:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* 打印样式 */
@media print {
  .nav-container, .scroll-indicator, .lightbox {
    display: none !important;
  }
}