/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #faf8f5;
  color: #333;
  line-height: 1.6;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 20px 0;
  border-bottom: 1px solid #e5e3e0;
}

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

.nav-logo {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.3s;
}

.nav-link:hover {
  opacity: 0.7;
}

/* 页脚 */
footer {
  text-align: center;
  padding: 40px 0;
  background: #faf8f5;
  color: #666;
  font-size: 14px;
}

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

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

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

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

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
}

.hero-title {
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-button {
  display: inline-block;
  padding: 15px 40px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 2px;
  transition: all 0.3s;
}

.hero-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* 网格布局 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  padding: 80px 0;
}

.collection-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
}

.collection-card:hover {
  transform: translateY(-5px);
}

.collection-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.collection-info {
  padding: 30px;
  text-align: center;
}

.collection-name {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
}

.view-button {
  display: inline-block;
  padding: 10px 30px;
  background: #333;
  color: white;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  transition: background 0.3s;
}

.view-button:hover {
  background: #555;
}

/* 图片画廊 */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 80px 0;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.series-description {
  text-align: center;
  max-width: 800px;
  margin: 40px auto;
  color: #666;
  line-height: 1.8;
}

/* 瀑布流 */
.masonry {
  columns: 4;
  column-gap: 20px;
  padding: 80px 0;
}

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

.masonry-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s;
}

.masonry-image:hover {
  transform: scale(1.02);
}

.style-tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.05);
  color: #666;
  font-size: 12px;
  border-radius: 20px;
  margin-top: 10px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 40px;
  right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  transition: opacity 0.3s;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-menu {
    gap: 20px;
  }

  .hero-title {
    font-size: 32px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .masonry {
    columns: 2;
  }

  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .nav-logo {
    font-size: 16px;
  }

  .nav-link {
    font-size: 12px;
  }

  .hero-title {
    font-size: 24px;
  }

  .masonry {
    columns: 1;
  }
}