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

:root {
  --color-white: #FFFFFF;
  --color-light-gray: #F8F9FA;
  --color-dark-gray: #2C3E50;
  --color-beige: #F5F1E8;
  --color-dark-red: #8B0000;
  --color-dark-blue: #1A5276;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-weight: 300;
  color: var(--color-dark-gray);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 导航栏 */
.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(44, 62, 80, 0.1);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

nav a {
  color: var(--color-dark-gray);
  text-decoration: none;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--color-dark-gray);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* 主容器 */
main {
  margin-top: 70px;
}

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

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.carousel-caption {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--color-white);
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem 3rem;
  backdrop-filter: blur(5px);
}

.carousel-caption h2 {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 4px;
}

.carousel-controls {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--color-white);
  transform: scale(1.2);
}

/* 时尚宣言区域 */
.manifesto-section {
  max-width: 900px;
  margin: 8rem auto;
  padding: 0 2rem;
  text-align: center;
}

.manifesto-section h2 {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 2rem;
  color: var(--color-dark-gray);
}

.manifesto-section p {
  font-size: 16px;
  line-height: 2;
  color: var(--color-dark-gray);
  opacity: 0.8;
}

/* 预览区域 */
.preview-section {
  max-width: 1400px;
  margin: 8rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

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

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

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

.preview-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 2rem;
  color: var(--color-white);
}

.preview-overlay h3 {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 3px;
}

/* 系列分类导航 */
.category-nav {
  max-width: 1400px;
  margin: 4rem auto 6rem;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.category-btn {
  background: none;
  border: 1px solid var(--color-dark-gray);
  color: var(--color-dark-gray);
  padding: 0.8rem 2rem;
  font-size: 14px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
  background: var(--color-dark-gray);
  color: var(--color-white);
}

/* 系列展示区域 */
.collection-grid {
  max-width: 1400px;
  margin: 0 auto 8rem;
  padding: 0 2rem;
}

.collection-item {
  margin-bottom: 8rem;
}

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

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

.collection-images img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.collection-images img:hover {
  transform: translateY(-5px);
  opacity: 0.9;
}

.collection-description {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 14px;
  line-height: 2;
  color: var(--color-dark-gray);
  opacity: 0.8;
}

/* 细节分类 */
.detail-categories {
  max-width: 1400px;
  margin: 4rem auto 6rem;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.detail-category {
  font-size: 14px;
  letter-spacing: 2px;
  padding: 0.8rem 2rem;
  border: 1px solid var(--color-dark-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  background: none;
}

.detail-category:hover,
.detail-category.active {
  background: var(--color-dark-gray);
  color: var(--color-white);
}

/* 细节展示网格 */
.detail-grid {
  max-width: 1400px;
  margin: 0 auto 8rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.detail-card {
  text-align: center;
  cursor: pointer;
}

.detail-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.detail-card:hover img {
  transform: scale(1.02);
}

.detail-card p {
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--color-dark-gray);
  opacity: 0.7;
}

/* 工艺解读 */
.craftsmanship-section {
  max-width: 900px;
  margin: 8rem auto;
  padding: 0 2rem;
  text-align: center;
}

.craftsmanship-section h2 {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 2rem;
}

.craftsmanship-section p {
  font-size: 14px;
  line-height: 2;
  color: var(--color-dark-gray);
  opacity: 0.8;
}

/* 图片放大模态框 */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--color-white);
  font-size: 40px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

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

/* 页脚 */
footer {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--color-dark-gray);
  font-size: 14px;
  letter-spacing: 2px;
  border-top: 1px solid rgba(44, 62, 80, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
  nav {
    gap: 2rem;
    padding: 1rem;
  }

  nav a {
    font-size: 14px;
  }

  .carousel-container {
    height: 70vh;
  }

  .carousel-caption h2 {
    font-size: 18px;
  }

  .preview-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .category-nav {
    gap: 1rem;
  }

  .category-btn {
    padding: 0.6rem 1.5rem;
    font-size: 12px;
  }

  .collection-images {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .manifesto-section,
  .craftsmanship-section {
    margin: 4rem auto;
  }
}

@media (max-width: 480px) {
  .carousel-caption {
    padding: 0.8rem 1.5rem;
  }

  .carousel-caption h2 {
    font-size: 16px;
    letter-spacing: 2px;
  }

  .manifesto-section h2,
  .craftsmanship-section h2 {
    font-size: 16px;
  }

  .collection-title {
    font-size: 16px;
  }
}