/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* Typography */
h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  font-weight: 300;
}

/* Navigation */
nav {
  background-color: #1a1a1a;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

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

.logo {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 2px;
}

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

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 300;
  transition: opacity 0.3s ease;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  opacity: 0.7;
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #fff;
}

/* Main Content */
main {
  margin-top: 60px;
  min-height: calc(100vh - 120px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Carousel */
.carousel {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

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

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

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

.carousel-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
}

.carousel-overlay h2 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-overlay p {
  font-size: 1.2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Value Sections */
.values-section {
  padding: 5rem 0;
  background-color: #fafafa;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  text-align: center;
}

.value-item {
  padding: 2rem;
}

.value-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  stroke: #333;
}

/* Filter Tags */
.filter-tags {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.filter-tag {
  padding: 0.5rem 1.5rem;
  border: 1px solid #ddd;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 300;
}

.filter-tag:hover,
.filter-tag.active {
  background-color: #333;
  color: #fff;
  border-color: #333;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-card {
  background-color: #fff;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.product-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Style Guide Articles */
.article-section {
  padding: 4rem 0;
}

.articles-container {
  max-width: 800px;
  margin: 0 auto;
}

.article {
  margin-bottom: 4rem;
}

.article img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin-bottom: 2rem;
}

.article h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.article-content {
  color: #555;
  line-height: 1.8;
}

/* About Page */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.value-card {
  text-align: center;
}

.value-card svg {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: #f5f5f5;
  text-align: center;
  padding: 2rem;
  color: #666;
  font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    gap: 1.5rem;
  }
  
  .carousel-overlay h2 {
    font-size: 2rem;
  }
  
  .carousel-overlay p {
    font-size: 1rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 1rem;
  }
  
  .product-card img {
    height: 300px;
  }
  
  .carousel-overlay h2 {
    font-size: 1.5rem;
  }
}