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

:root {
  --color-white: #FFFFFF;
  --color-charcoal: #2C2C2C;
  --color-beige: #F8F5F2;
  --color-gray: #E8E8E8;
  --color-terracotta: #D4A8A1;
  --color-olive: #8A9B6E;
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

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

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

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

.nav-links a {
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  font-weight: 400;
  position: relative;
}

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

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

/* 轮播图样式 */
.hero-slider {
  position: relative;
  height: 100vh;
  margin-top: 60px;
  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-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--color-white);
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 内容区域样式 */
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 5%;
}

.philosophy-section {
  text-align: center;
  background: var(--color-beige);
  padding: 8rem 5%;
}

.philosophy-section h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.philosophy-section p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #555;
}

/* 分类入口样式 */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 6rem 5%;
}

.category-card {
  position: relative;
  height: 500px;
  overflow: hidden;
  cursor: pointer;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

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

.category-overlay h3 {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 1px;
}

/* 系列展示页面样式 */
.collection-section {
  padding: 8rem 5% 4rem;
}

.collection-header {
  text-align: center;
  margin-bottom: 4rem;
}

.collection-header h2 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.collection-header p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.125rem;
  color: #666;
  line-height: 1.8;
}

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

.product-item {
  cursor: pointer;
}

.product-images {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  margin-bottom: 1.5rem;
}

.product-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.product-item:hover .product-images img {
  transform: scale(1.08);
}

.product-detail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: var(--transition-smooth);
}

.product-item:hover .product-detail {
  opacity: 1;
}

.product-description {
  text-align: center;
}

.product-description h4 {
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.product-description p {
  font-size: 0.95rem;
  color: #777;
  line-height: 1.6;
}

/* 风格灵感页面样式 */
.inspiration-section {
  padding: 8rem 5%;
}

.story-section {
  max-width: 900px;
  margin: 0 auto 6rem;
  text-align: center;
}

.story-section h2 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.story-section p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #555;
}

.styling-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 4rem;
  margin-bottom: 6rem;
}

.styling-item h3 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.styling-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.styling-images img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.styling-item p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

/* 页脚样式 */
.footer {
  text-align: center;
  padding: 3rem 5%;
  background: var(--color-beige);
  color: var(--color-charcoal);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .slide-caption {
    font-size: 2rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .category-card {
    height: 400px;
  }

  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 0.875rem;
  }

  .slide-caption {
    font-size: 1.5rem;
  }

  .philosophy-section h2,
  .collection-header h2,
  .story-section h2 {
    font-size: 1.75rem;
  }

  .philosophy-section p,
  .collection-header p,
  .story-section p {
    font-size: 1rem;
  }

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

  .content-section,
  .collection-section,
  .inspiration-section {
    padding: 4rem 5%;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 1rem 5%;
  }

  .nav-links {
    gap: 1rem;
  }

  .slide-caption {
    font-size: 1.25rem;
    letter-spacing: 1px;
  }

  .category-card {
    height: 300px;
  }

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

/* 图片懒加载效果 */
.lazy-image {
  opacity: 0;
  transition: opacity 0.6s ease-in;
}

.lazy-image.loaded {
  opacity: 1;
}