/* ==========================================================================
   全局样式文件 - 时尚女装展示网站
   ========================================================================== */

/* 字体导入 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #333333;
  background-color: #FFFFFF;
  overflow-x: hidden;
}

/* 色彩系统 */
:root {
  --color-white: #FFFFFF;
  --color-beige: #FAF7F2;
  --color-light-gray: #F5F5F5;
  --color-dark-gray: #333333;
  --color-medium-gray: #666666;
  --color-light-medium-gray: #999999;
  --color-terracotta: #D4A8A8;
  --color-mist-blue: #A8B8D4;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

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

.nav-links {
  display: flex;
  gap: 60px;
  list-style: none;
}

.nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-dark-gray);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-terracotta);
  transition: width 0.3s ease;
}

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

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

.search-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.search-icon:hover {
  transform: scale(1.1);
}

/* 主内容区域 */
main {
  margin-top: 80px;
}

/* 轮播图样式 */
.hero-slider {
  position: relative;
  width: 100%;
  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;
}

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

.hero-text h1 {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 精选系列区域 */
.featured-section {
  max-width: 1400px;
  margin: 100px auto;
  padding: 0 40px;
}

.section-title {
  font-size: 36px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: 1px;
  color: var(--color-dark-gray);
}

.grid-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

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

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

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

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

.gallery-item:hover .gallery-overlay {
  background: rgba(0, 0, 0, 0.5);
  opacity: 1;
}

.gallery-description {
  color: var(--color-white);
  font-size: 18px;
  text-align: center;
  padding: 20px;
  letter-spacing: 1px;
  line-height: 1.8;
}

.view-more-btn {
  display: block;
  width: 200px;
  margin: 0 auto;
  padding: 15px 40px;
  background: transparent;
  border: 1px solid var(--color-dark-gray);
  color: var(--color-dark-gray);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.view-more-btn:hover {
  background: var(--color-dark-gray);
  color: var(--color-white);
}

/* 灵感语录区域 */
.quote-section {
  background: var(--color-beige);
  padding: 100px 40px;
  text-align: center;
}

.quote-text {
  font-size: 28px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-dark-gray);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.quote-link {
  font-size: 14px;
  color: var(--color-medium-gray);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.quote-link:hover {
  color: var(--color-terracotta);
}

/* 分类筛选区域 */
.filter-section {
  max-width: 1400px;
  margin: 100px auto 60px;
  padding: 0 40px;
  text-align: center;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
  flex-wrap: wrap;
}

.filter-tabs button {
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-medium-gray);
  cursor: pointer;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease;
  letter-spacing: 1px;
}

.filter-tabs button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-terracotta);
  transition: width 0.3s ease;
}

.filter-tabs button:hover,
.filter-tabs button.active {
  color: var(--color-dark-gray);
}

.filter-tabs button.active::after {
  width: 100%;
}

/* 瀑布流布局 */
.masonry-gallery {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  column-count: 3;
  column-gap: 30px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: all 0.4s ease;
}

.masonry-item:hover img {
  filter: brightness(1.1);
}

.masonry-caption {
  padding: 15px;
  font-size: 14px;
  color: var(--color-medium-gray);
  letter-spacing: 0.5px;
  line-height: 1.6;
}

/* 设计哲学页面 */
.philosophy-section {
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 40px;
}

.philosophy-title {
  font-size: 36px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 80px;
  letter-spacing: 1px;
}

.philosophy-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 100px;
}

.philosophy-column h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--color-dark-gray);
}

.philosophy-column p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-medium-gray);
}

.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.case-study:nth-child(even) {
  direction: rtl;
}

.case-study:nth-child(even) > * {
  direction: ltr;
}

.case-text h4 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 20px;
}

.case-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-medium-gray);
}

.case-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.case-images img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  margin-top: 80px;
}

.inspiration-item h4 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 30px;
}

.inspiration-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

/* 页脚样式 */
footer {
  height: 60px;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
  border-top: 1px solid var(--color-light-gray);
}

footer p {
  font-size: 14px;
  font-weight: 300;
  color: var(--color-light-medium-gray);
  letter-spacing: 1px;
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0 30px;
  }
  
  .nav-links {
    gap: 40px;
  }
  
  .grid-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .masonry-gallery {
    column-count: 2;
    column-gap: 20px;
  }
  
  .philosophy-columns {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .case-study {
    grid-template-columns: 1fr;
  }
  
  .inspiration-grid {
    grid-template-columns: 1fr;
  }
}

/* 响应式设计 - 手机 */
@media (max-width: 768px) {
  .navbar {
    height: 60px;
  }
  
  .nav-container {
    padding: 0 20px;
  }
  
  .nav-links {
    gap: 20px;
  }
  
  .nav-links a {
    font-size: 14px;
  }
  
  main {
    margin-top: 60px;
  }
  
  .hero-text h1 {
    font-size: 32px;
  }
  
  .section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
  
  .grid-gallery {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .masonry-gallery {
    column-count: 1;
    padding: 0 20px;
  }
  
  .quote-text {
    font-size: 20px;
  }
  
  .filter-tabs {
    gap: 20px;
  }
  
  .filter-tabs button {
    font-size: 14px;
  }
  
  .philosophy-section {
    padding: 0 20px;
  }
  
  .philosophy-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
  
  .case-images {
    grid-template-columns: 1fr;
  }
  
  .inspiration-examples {
    grid-template-columns: 1fr;
  }
}