/* 全局样式文件 - 女装美学展示网站 */

/* Tailwind CSS 配置 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* 设计令牌 */
:root {
  /* 主色调 - 中性色系 */
  --color-primary: #F5F5F0;
  --color-secondary: #E8E8E3;
  --color-accent: #D4C4B0;
  --color-muted: #A8A8A0;
  
  /* 莫兰迪色系点缀 */
  --color-rose-muted: #E8B4B8;
  --color-sage-muted: #B8C4B0;
  --color-sky-muted: #B0C4D4;
  --color-lavender-muted: #C4B0D4;
  
  /* 排版 */
  --font-primary: 'Inter', sans-serif;
  
  /* 间距 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* 圆角 */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  
  /* 阴影 */
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-large: 0 8px 32px rgba(0, 0, 0, 0.16);
}

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

/* 基础样式 */
body {
  font-family: var(--font-primary);
  background-color: var(--color-primary);
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
  background-color: rgba(245, 245, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-secondary);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--color-accent);
}

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

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

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  background-color: var(--color-accent);
  color: #333;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* 英雄区域 */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 1;
  padding: var(--spacing-xl);
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(5px);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.05em;
}

/* 卡片样式 */
.card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-large);
}

.card-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card-content {
  padding: var(--spacing-md);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
  color: #333;
}

.card-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* 瀑布流布局 */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  padding: var(--spacing-md);
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: var(--spacing-md);
}

.masonry-image {
  width: 100%;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
}

.masonry-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-medium);
}

/* 图片标签 */
.image-tag {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #666;
  margin-top: var(--spacing-xs);
}

/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius-lg);
}

.modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

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

/* 页脚 */
footer {
  background-color: var(--color-secondary);
  padding: var(--spacing-md);
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: var(--spacing-xl);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .masonry-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
  }
  
  .navbar {
    padding: var(--spacing-sm);
  }
  
  .nav-link {
    font-size: 0.85rem;
    margin: 0 var(--spacing-xs);
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--color-accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-muted);
}