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

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

body {
  font-family: 'PingFang SC', 'Source Han Sans CN', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background-color: #F5F5F5;
  color: #333333;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ==========================================
   导航栏样式
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1.5rem 5%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: #2C2C2C;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 300;
  color: #666666;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #2C2C2C;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: #2C2C2C;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background-color: #2C2C2C;
  transition: all 0.3s ease;
}

/* ==========================================
   首页样式
   ========================================== */
.hero-section {
  margin-top: 80px;
  height: 90vh;
  position: relative;
  overflow: hidden;
}

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

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #FFFFFF;
  z-index: 10;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: 8px;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 3px;
  opacity: 0.9;
}

.slider-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background-color: #FFFFFF;
  transform: scale(1.3);
}

/* 精选合集区 */
.featured-section {
  padding: 6rem 5%;
  background-color: #FFFFFF;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 5px;
  margin-bottom: 4rem;
  color: #2C2C2C;
}

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

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

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

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

.featured-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 44, 44, 0.5);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.featured-text {
  color: #FFFFFF;
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-align: center;
}

/* 季节专题区 */
.season-section {
  padding: 6rem 5%;
  background-color: #F8F0E3;
}

.season-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.season-large {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.season-small-grid {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 2rem;
}

.season-small {
  position: relative;
  overflow: hidden;
}

.season-large img,
.season-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.season-large:hover img,
.season-small:hover img {
  transform: scale(1.03);
}

/* 文字点缀区 */
.quote-section {
  padding: 8rem 5%;
  background-color: #FFFFFF;
  text-align: center;
}

.quote-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 2rem;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 3px;
  color: #666666;
}

/* ==========================================
   风格指南页面样式
   ========================================== */
.style-page {
  margin-top: 80px;
  padding: 4rem 5%;
  min-height: 100vh;
}

.style-filter {
  max-width: 1400px;
  margin: 0 auto 3rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.8rem 2rem;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: #666666;
  background-color: transparent;
  border: 1px solid #E3E8F0;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: #FFFFFF;
  background-color: #2C2C2C;
  border-color: #2C2C2C;
}

.style-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.style-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.style-card-main {
  aspect-ratio: 3/4;
  overflow: hidden;
  margin-bottom: 1rem;
}

.style-card-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.style-card-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.style-detail-img {
  aspect-ratio: 1;
  overflow: hidden;
}

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

.style-tags {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.style-tag {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: #666666;
  background-color: #F5F5F5;
  border-radius: 20px;
}

.style-description {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #666666;
  font-weight: 300;
  letter-spacing: 1px;
}

/* 场景展示区 */
.scene-section {
  margin-top: 5rem;
  padding: 4rem 0;
  background-color: #FFFFFF;
}

.scene-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 0 5%;
  scroll-snap-type: x mandatory;
}

.scene-scroll::-webkit-scrollbar {
  height: 8px;
}

.scene-scroll::-webkit-scrollbar-track {
  background-color: #F5F5F5;
}

.scene-scroll::-webkit-scrollbar-thumb {
  background-color: #C1A87D;
  border-radius: 4px;
}

.scene-card {
  flex: 0 0 400px;
  scroll-snap-align: start;
}

.scene-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.scene-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-title {
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
  color: #2C2C2C;
}

.scene-desc {
  font-size: 0.95rem;
  color: #666666;
  line-height: 1.8;
}

/* ==========================================
   细节之美页面样式
   ========================================== */
.details-page {
  margin-top: 80px;
  padding: 4rem 5%;
}

.craft-section {
  max-width: 1400px;
  margin: 0 auto 6rem;
}

.craft-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.craft-item:nth-child(even) {
  direction: rtl;
}

.craft-item:nth-child(even) > * {
  direction: ltr;
}

.craft-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

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

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

.craft-content h3 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
  color: #2C2C2C;
}

.craft-content p {
  font-size: 1.1rem;
  line-height: 2;
  color: #666666;
  font-weight: 300;
}

/* 面料故事区 */
.fabric-section {
  padding: 6rem 0;
  background-color: #FFFFFF;
}

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

.fabric-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}

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

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

.fabric-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #FFFFFF;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.fabric-card:hover .fabric-overlay {
  transform: translateY(0);
}

.fabric-name {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.fabric-desc {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* 设计元素区 */
.design-section {
  padding: 6rem 5%;
}

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

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

.design-image {
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.design-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.design-title {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
  color: #2C2C2C;
}

.design-desc {
  font-size: 0.95rem;
  color: #666666;
  line-height: 1.8;
}

/* ==========================================
   页脚样式
   ========================================== */
.footer {
  padding: 3rem 5%;
  background-color: #2C2C2C;
  text-align: center;
}

.footer-content {
  font-size: 0.9rem;
  color: #FFFFFF;
  font-weight: 300;
  letter-spacing: 2px;
  opacity: 0.7;
}

/* ==========================================
   响应式设计
   ========================================== */
@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .season-grid {
    grid-template-columns: 1fr;
  }
  
  .style-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .fabric-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .design-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .craft-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .craft-item:nth-child(even) {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: left 0.4s ease;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
    letter-spacing: 5px;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
    letter-spacing: 3px;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .quote-text {
    font-size: 1.5rem;
  }
  
  .style-grid {
    grid-template-columns: 1fr;
  }
  
  .fabric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .design-grid {
    grid-template-columns: 1fr;
  }
  
  .scene-card {
    flex: 0 0 300px;
  }
}

/* ==========================================
   页面过渡动画
   ========================================== */
.fade-in {
  animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   滚动动画
   ========================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}