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

/* 根元素变量定义 */
:root {
  --primary-color: #fafafa;
  --secondary-color: #f5f5f5;
  --accent-color: #333;
  --text-primary: #1a1a1a;
  --text-secondary: #666;
  --border-color: #e5e5e5;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础排版 */
body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--primary-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

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

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

.nav-links a:hover {
  color: var(--text-secondary);
}

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

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

/* 英雄区域 */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-carousel {
  height: 100%;
  position: relative;
}

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

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

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

.hero-content {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  z-index: 2;
  padding: 0 2rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* 系列网格 */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

.collection-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  background: var(--secondary-color);
}

.collection-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.8s ease;
}

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

.collection-info {
  padding: 1.5rem;
  background: white;
}

.collection-name {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.collection-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 工艺展示 */
.crafts-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

.crafts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.craft-item {
  text-align: center;
}

.craft-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.craft-title {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.craft-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* 视觉画廊 */
.gallery-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

.masonry-grid {
  column-count: 3;
  column-gap: 1.5rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  overflow: hidden;
}

.gallery-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

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

/* 页脚 */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border-top: 1px solid var(--border-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-links {
    gap: 1.5rem;
    font-size: 0.9rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .collection-grid,
  .crafts-grid {
    grid-template-columns: 1fr;
  }
  
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.85rem;
  }
  
  .hero-content {
    bottom: 5%;
  }
  
  .masonry-grid {
    column-count: 1;
  }
}

/* 页面通用布局 */
.page-container {
  min-height: 100vh;
  padding-top: 80px;
}

.page-header {
  text-align: center;
  padding: 4rem 2rem 2rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}