@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Noto+Serif+SC:wght@700&family=Noto+Sans+SC:wght@300;400&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ivory-white: #faf9f6;
  --soft-beige: #e8dcc4;
  --terracotta: #d4a79a;
  --deep-gray: #333333;
  --mid-gray: #666666;
  --light-gray: #f5f5f5;
  --metallic-gold: #c9b896;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 300;
  background-color: var(--ivory-white);
  color: var(--mid-gray);
  line-height: 1.8;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  color: var(--deep-gray);
  letter-spacing: 0.05em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.en-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(102, 102, 102, 0.1);
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 3rem;
}

nav a {
  text-decoration: none;
  color: var(--deep-gray);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  position: relative;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--terracotta);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--terracotta);
}

main {
  margin-top: 80px;
}

.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slider img.active {
  opacity: 1;
}

.slider img:hover::after {
  content: '查看细节';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(51, 51, 51, 0.7);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
}

.featured, .collection-story, .styling-section, .craft-section {
  max-width: 1400px;
  margin: 5rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.featured .text h2, .collection-story h2 {
  margin-bottom: 2rem;
}

.featured .text p, .collection-story p {
  line-height: 2;
  text-align: justify;
}

.featured .image, .styling-section .image, .craft-section .image {
  position: relative;
  overflow: hidden;
}

.featured .image img, .styling-section img, .craft-section img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.featured .image:hover img, .styling-section .image:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(51, 51, 51, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
}

.featured .image:hover .image-overlay, .gallery-item:hover .image-overlay {
  opacity: 1;
}

.gallery {
  max-width: 1400px;
  margin: 5rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

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

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 2rem 1rem 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.timeline {
  max-width: 1400px;
  margin: 5rem auto;
  padding: 0 2rem;
  overflow-x: auto;
  white-space: nowrap;
}

.timeline-container {
  display: inline-flex;
  gap: 2rem;
}

.timeline-item {
  display: inline-block;
  width: 350px;
  white-space: normal;
}

.timeline-item img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.timeline-item h4 {
  margin-bottom: 0.5rem;
}

.color-palette {
  max-width: 1400px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.color-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.color-group h4 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.color-swatches {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.color-swatch {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.fabric-board {
  max-width: 1400px;
  margin: 5rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

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

.fabric-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.fabric-item h4 {
  margin-bottom: 1rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  margin: 5% auto;
  padding: 2rem;
  width: 80%;
  max-width: 800px;
  background-color: var(--ivory-white);
  border-radius: 8px;
  animation: slideIn 0.3s ease;
}

.modal.active {
  display: block;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  color: var(--deep-gray);
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 3rem 0;
  background-color: var(--light-gray);
  color: var(--mid-gray);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  margin-top: 5rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-50px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

@media (max-width: 1024px) {
  .featured, .collection-story, .styling-section, .craft-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .color-groups, .fabric-board {
    grid-template-columns: 1fr;
  }
  
  nav ul {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
  
  nav ul {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  nav a {
    font-size: 0.9rem;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
  
  .timeline-item {
    width: 280px;
  }
  
  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }
}