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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Han Sans CN", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #333333;
  background-color: #FAFAFA;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 导航栏样式 */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  font-size: 1.5rem;
  font-weight: 500;
  color: #2C2C2C;
  letter-spacing: 2px;
}

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

.main-nav a {
  color: #666666;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}

.main-nav a:hover {
  color: #2C2C2C;
}

.main-nav a.active {
  color: #2C2C2C;
  border-bottom: 2px solid #2C2C2C;
}

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

/* 全屏轮播容器 */
.hero-slider {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

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

.slide.active {
  opacity: 1;
}

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

.slide-caption {
  position: absolute;
  bottom: 15%;
  left: 5%;
  color: #FAFAFA;
  font-size: 2rem;
  font-weight: 300;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 600px;
}

/* 精选展示区 */
.featured-section {
  padding: 5rem 5%;
  background: #F5F5F7;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 4rem;
  color: #2C2C2C;
  letter-spacing: 3px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.featured-item {
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.featured-item img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-item:hover img {
  transform: scale(1.05);
}

.featured-item-caption {
  padding: 2rem;
  text-align: center;
  color: #666666;
  font-size: 1rem;
  line-height: 1.8;
}

/* 系列展示区 */
.collections-section {
  padding: 5rem 5%;
}

.collection-category {
  margin-bottom: 6rem;
}

.collection-category h2 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #2C2C2C;
  letter-spacing: 2px;
}

.collection-description {
  font-size: 1rem;
  color: #666666;
  margin-bottom: 2rem;
  max-width: 800px;
  line-height: 1.8;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.collection-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #FFFFFF;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.collection-item:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

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

.collection-item:hover img {
  transform: scale(1.03);
}

/* 细节工艺区 */
.craftsmanship-section {
  padding: 5rem 5%;
  background: #F3E9E2;
}

.detail-block {
  margin-bottom: 6rem;
}

.detail-block h3 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: #2C2C2C;
  letter-spacing: 2px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.detail-item {
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.detail-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.detail-item:hover img {
  transform: scale(1.03);
}

.detail-caption {
  padding: 1.5rem;
  color: #666666;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* 页脚样式 */
footer {
  background: #2C2C2C;
  color: #FAFAFA;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    padding: 1rem 5%;
    gap: 1rem;
  }

  .main-nav ul {
    gap: 1.5rem;
  }

  .slide-caption {
    font-size: 1.3rem;
    bottom: 10%;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .featured-grid,
  .collection-grid,
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .featured-item img,
  .detail-item img {
    height: 400px;
  }

  main {
    margin-top: 120px;
  }
}

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

  .main-nav a {
    font-size: 0.9rem;
  }

  .slide-caption {
    font-size: 1rem;
    left: 5%;
    right: 5%;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .collections-section,
  .craftsmanship-section,
  .featured-section {
    padding: 3rem 5%;
  }
}