/* 全局样式文件 - 极简服装展示网站 */

/* 自定义CSS变量 */
:root {
  --primary-neutral: #f5f5f5;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --border-light: #e5e5e5;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff;
}

/* 图片懒加载效果 */
img {
  transition: opacity 0.3s ease-in-out;
}

img[data-src] {
  opacity: 0;
}

img.loaded {
  opacity: 1;
}

/* 导航链接悬停效果 */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

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

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

/* 图片画廊悬停效果 */
.image-overlay {
  position: relative;
  overflow: hidden;
}

.image-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  z-index: 1;
}

.image-overlay:hover::before {
  background: rgba(0, 0, 0, 0.05);
}

/* 页面过渡动画 */
.page-transition {
  animation: fadeIn 0.6s ease-in-out;
}

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

/* 响应式网格布局 */
.fashion-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary-neutral);
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999;
}