/* 时尚视觉志 - 全局样式 */
:root {
  --primary-color: #1a1a1a;
  --secondary-color: #f5f5f5;
  --accent-morandi-pink: #e8d5d2;
  --accent-morandi-blue: #d4dde8;
  --accent-morandi-beige: #e8e0d5;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(245, 245, 245, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
}

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

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

/* 主内容区域 */
main {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

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

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

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  z-index: 10;
}

.carousel-caption h2 {
  font-size: 2.5rem;
  font-weight: 200;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 内容区块样式 */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 3rem;
  letter-spacing: 1px;
}

/* 精选图集网格 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* 瀑布流布局 */
.waterfall {
  column-count: 3;
  column-gap: 2rem;
}

.waterfall-item {
  break-inside: avoid;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.waterfall-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.waterfall-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.waterfall-caption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

/* 文章样式 */
.article-list {
  display: grid;
  gap: 4rem;
}

.article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.article:nth-child(even) {
  direction: rtl;
}

.article-content {
  direction: ltr;
}

.article h3 {
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.article p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.article img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 视觉动态页面 */
.video-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 3rem;
  background: #000;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.video-caption {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  letter-spacing: 0.5px;
}

/* 灵感之源 */
.inspiration {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.inspiration p {
  font-size: 1.1rem;
  line-height: 2;
  color: #666;
  letter-spacing: 0.5px;
}

/* 页脚 */
footer {
  text-align: center;
  padding: 3rem 0;
  color: #999;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* 页面切换动画 */
.fade-in {
  animation: fadeIn 0.8s ease-in;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-links {
    gap: 1.5rem;
    font-size: 0.85rem;
  }
  
  .carousel-caption h2 {
    font-size: 1.8rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .waterfall {
    column-count: 2;
    column-gap: 1rem;
  }
  
  .article {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .article:nth-child(even) {
    direction: ltr;
  }
  
  .section {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.75rem;
  }
  
  .waterfall {
    column-count: 1;
  }
  
  .container {
    padding: 0 1rem;
  }
}

/* 图片懒加载占位 */
.lazy-image {
  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; }
}