/* 全局样式文件 - 服装视觉艺术馆 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* 自定义字体 */
:root {
  --font-primary: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --color-primary: #f5f5f0;
  --color-secondary: #e8e8e3;
  --color-accent: #d4c4b0;
  --color-text: #333;
  --color-text-light: #666;
  --color-text-lighter: #999;
}

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

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

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

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

/* 图片悬停效果 */
.image-card {
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-card img {
  transition: transform 0.5s ease;
}

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

/* 轮播图样式 */
.carousel-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

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

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

/* 瀑布流布局 */
.masonry-grid {
  column-count: 3;
  column-gap: 20px;
}

@media (max-width: 768px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .masonry-grid {
    column-count: 1;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
}

/* 按钮样式 */
.btn-primary {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-text);
  padding: 10px 30px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

/* 页脚样式 */
.footer {
  color: var(--color-text-lighter);
  font-size: 12px;
  text-align: center;
  padding: 20px;
}

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

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

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 20px;
  }
  
  .carousel-container {
    height: 70vh;
  }
}

/* 文章内容样式 */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.article-content h2 {
  margin: 30px 0 20px;
  color: var(--color-text);
}

.article-content p {
  margin-bottom: 20px;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* 系列卡片样式 */
.series-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.series-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.series-preview {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.series-card:hover .series-preview {
  opacity: 1;
}

/* 单品详情页样式 */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.gallery-thumb {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  opacity: 1;
}

/* Loading 动画 */
.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 1s ease-in-out infinite;
}

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