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

:root {
  --color-pearl-white: #FFFFFF;
  --color-elegant-gray: #F8F9FA;
  --color-soft-beige: #F5F1EA;
  --color-charcoal: #2C2C2C;
  --color-terracotta: #B76E79;
  --font-title-en: 'Playfair Display', serif;
  --font-title-cn: 'Noto Serif SC', serif;
  --font-body: 'Noto Sans SC', 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-body);
  color: var(--color-charcoal);
  background-color: var(--color-pearl-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

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

.nav-links a {
  font-size: 0.95rem;
  color: var(--color-charcoal);
  text-decoration: none;
  letter-spacing: 0.5px;
  font-weight: 300;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--color-terracotta);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

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

/* 轮播区域 */
.hero-slider {
  position: relative;
  height: 100vh;
  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;
  filter: brightness(0.9);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  color: var(--color-pearl-white);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero-text h1 {
  font-family: var(--font-title-cn);
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: 8px;
  margin-bottom: 1rem;
  animation: fadeInUp 1.2s ease-out;
}

.slider-nav {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border-left: 2px solid var(--color-pearl-white);
  border-bottom: 2px solid var(--color-pearl-white);
  transform: rotate(-45deg);
  opacity: 0.7;
}

/* 精选单品网格 */
.featured-section {
  padding: 8rem 5%;
  background: var(--color-elegant-gray);
}

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

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

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

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

.grid-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--color-pearl-white);
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-align: center;
  transform: translateY(100%);
  transition: var(--transition-smooth);
}

.grid-item:hover .grid-caption {
  transform: translateY(0);
}

/* 分类导航 */
.category-nav {
  position: sticky;
  top: 80px;
  background: var(--color-pearl-white);
  padding: 2rem 5%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.category-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  list-style: none;
  flex-wrap: wrap;
}

.category-links a {
  font-size: 0.9rem;
  color: var(--color-charcoal);
  text-decoration: none;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  transition: var(--transition-smooth);
}

.category-links a:hover,
.category-links a.active {
  color: var(--color-terracotta);
}

/* 系列内容区 */
.series-section {
  padding: 5rem 5%;
  background: var(--color-elegant-gray);
}

.category-block {
  max-width: 1400px;
  margin: 0 auto 8rem;
}

.category-title {
  font-family: var(--font-title-cn);
  font-size: 2.5rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: 4px;
}

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

.product-card {
  background: var(--color-pearl-white);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.product-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

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

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-info {
  padding: 2rem;
}

.info-row {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.8;
}

.info-label {
  font-weight: 500;
  color: var(--color-charcoal);
}

.info-value {
  color: #666;
  margin-left: 0.5rem;
}

/* 设计美学页 */
.design-hero {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.design-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--color-soft-beige), var(--color-elegant-gray));
  opacity: 0.9;
}

.design-hero-title {
  position: relative;
  font-family: var(--font-title-cn);
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: 10px;
  color: var(--color-charcoal);
  z-index: 1;
}

.design-content {
  padding: 6rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.content-block {
  margin-bottom: 8rem;
}

.block-title {
  font-family: var(--font-title-cn);
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 3rem;
  letter-spacing: 3px;
  text-align: center;
}

.block-content {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.block-content.reverse {
  flex-direction: row-reverse;
}

.block-text {
  flex: 1;
  font-size: 1rem;
  line-height: 2;
  color: #555;
}

.block-image {
  flex: 1;
  overflow: hidden;
}

.block-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.block-image:hover img {
  transform: scale(1.03);
}

.fabric-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.fabric-item {
  aspect-ratio: 1;
  overflow: hidden;
}

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

.fabric-item:hover img {
  transform: scale(1.1);
}

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

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-links {
    gap: 1.5rem;
  }
  
  .nav-links a {
    font-size: 0.85rem;
  }
  
  .hero-text h1 {
    font-size: 2rem;
    letter-spacing: 4px;
  }
  
  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .category-links {
    gap: 1rem;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .design-hero-title {
    font-size: 2.5rem;
    letter-spacing: 6px;
  }
  
  .block-content,
  .block-content.reverse {
    flex-direction: column;
  }
  
  .category-title {
    font-size: 1.8rem;
  }
  
  .block-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 1rem 3%;
  }
  
  .hero-text h1 {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }
  
  .featured-section,
  .series-section,
  .design-content {
    padding: 4rem 3%;
  }
}