/* ==========================================
   组件样式文件 - Components Styles
   包含导航栏、轮播图、卡片等组件样式
   ========================================== */

/* ==========================================
   导航栏组件 - Navigation Bar
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-cream);
  padding: 1rem var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(44, 44, 44, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

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

.logo {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo svg {
  width: 100%;
  height: 100%;
  fill: var(--color-charcoal);
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--color-charcoal);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--color-copper);
  transition: width 0.3s ease, left 0.3s ease;
}

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

.nav-menu a:hover::after {
  width: 100%;
  left: 0;
}

.nav-menu a.active {
  color: var(--color-terracotta);
}

.nav-menu a.active::after {
  width: 100%;
  left: 0;
}

.menu-toggle {
  display: none;
}

/* ==========================================
   轮播图组件 - Hero Carousel
   ========================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 600px;
  overflow: hidden;
  margin-top: 65px;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  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;
  z-index: 1;
}

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

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
  z-index: 2;
}

.hero-caption {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--color-cream);
  z-index: 3;
  max-width: 800px;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border-radius: 8px;
}

.hero-caption h2 {
  font-family: var(--font-serif-cn);
  font-size: var(--fs-hero);
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.hero-caption p {
  font-family: var(--font-sans);
  font-size: var(--fs-subtitle);
  font-weight: 300;
  opacity: 0.95;
}

.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 4;
}

.indicator {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}

.indicator.active {
  width: 60px;
  background: var(--color-cream);
}

/* ==========================================
   特色卡片组件 - Feature Cards
   ========================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 var(--container-padding);
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
}

.feature-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.feature-card:hover .feature-image img {
  transform: scale(1.15);
  filter: brightness(1.1);
}

.feature-content {
  padding: 1.5rem 0;
  text-align: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.feature-card:hover .feature-content {
  opacity: 1;
}

.feature-title {
  font-family: var(--font-serif-cn);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 0.75rem;
}

.feature-description {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--color-charcoal);
  opacity: 0.75;
  line-height: 1.8;
}

/* ==========================================
   横向滚动组件 - Horizontal Scroll
   ========================================== */
.scroll-section {
  position: relative;
  overflow: hidden;
}

.scroll-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 var(--container-padding);
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.scroll-item {
  flex: 0 0 auto;
  min-width: 320px;
  position: relative;
}

.scroll-item img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 4px;
}

.scroll-tags {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  color: var(--color-charcoal);
  font-size: 0.75rem;
  font-family: var(--font-sans);
  border-radius: 20px;
  font-weight: 400;
}

.scroll-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 1rem;
  right: 2rem;
  z-index: 10;
}

.scroll-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.scroll-btn:hover {
  background: var(--color-terracotta);
  color: white;
}

/* ==========================================
   筛选标签组件 - Filter Tabs
   ========================================== */
.filter-section {
  padding: 2rem var(--container-padding);
  display: flex;
  justify-content: center;
  background: var(--color-gray);
}

.filter-tabs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-tab {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--color-charcoal);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.filter-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-copper);
  transition: width 0.3s ease, left 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--color-terracotta);
  color: white;
  border-color: var(--color-terracotta);
}

.filter-tab:hover::after,
.filter-tab.active::after {
  width: 100%;
  left: 0;
}

/* ==========================================
   产品卡片组件 - Product Cards
   ========================================== */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 0 var(--container-padding);
}

.product-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--color-gray);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.product-card:hover .product-image img.main-image {
  opacity: 0;
}

.product-image img.hover-image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-image img.hover-image {
  opacity: 1;
}

.product-info {
  padding: 1rem 0;
}

.product-description {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--color-charcoal);
  line-height: 1.7;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-materials {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.material-icon {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

/* ==========================================
   细节展示组件 - Detail Showcase
   ========================================== */
.detail-showcase {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin: 4rem 0;
}

.detail-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.detail-caption h3 {
  font-family: var(--font-serif-cn);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.detail-caption p {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  opacity: 0.9;
}

/* ==========================================
   造型故事组件 - Styling Story
   ========================================== */
.story-section {
  margin: 4rem 0;
}

.story-layout {
  display: flex;
  gap: 3rem;
  align-items: center;
  padding: 0 var(--container-padding);
  margin-bottom: 4rem;
}

.story-layout.reverse {
  flex-direction: row-reverse;
}

.story-image,
.story-content {
  flex: 1;
}

.story-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.story-content {
  padding: 2rem;
}

.story-title {
  font-family: var(--font-serif-cn);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 1rem;
}

.story-text {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.9;
  color: var(--color-charcoal);
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.mood-colors {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.color-swatch {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(44, 44, 44, 0.1);
  transition: transform 0.3s ease;
}

.color-swatch:hover {
  transform: scale(1.15);
}

/* ==========================================
   灵感画廊组件 - Inspiration Gallery
   ========================================== */
.gallery-masonry {
  column-count: 4;
  column-gap: 1.5rem;
  padding: 0 var(--container-padding);
}

.gallery-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.3s ease;
}

.gallery-item:hover img {
  filter: brightness(1.05);
}

.gallery-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  color: var(--color-charcoal);
  font-size: 0.75rem;
  font-family: var(--font-sans);
  border-radius: 20px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-tag {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   调色板组件 - Color Palette
   ========================================== */
.palette-section {
  padding: 4rem var(--container-padding);
  background: var(--color-gray);
}

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

.palette-card {
  background: white;
  padding: 2rem;
  border-radius: 4px;
  text-align: center;
}

.palette-gradient {
  width: 100%;
  height: 120px;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.palette-card:hover .palette-gradient {
  transform: scale(1.05);
}

.palette-name {
  font-family: var(--font-serif-cn);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
}

.palette-description {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--color-charcoal);
  opacity: 0.7;
  line-height: 1.6;
}

/* ==========================================
   视频背景组件 - Video Background
   ========================================== */
.concept-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 65px;
}

.concept-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.concept-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.concept-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 2rem;
}

.concept-text h2 {
  font-family: var(--font-serif-cn);
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}