/* 
 * 全局样式文件 - High-End Fashion Showcase
 * 包含响应式布局、动画效果和视觉设计
 * 基于 Pico.css 进行深度定制
 */

/* =========================================
   1. 基础设置 & 变量 (Base & Variables)
   ========================================= */
:root {
  --primary-color: #1a1a1a;
  --secondary-color: #666666;
  --bg-color: #ffffff;
  --accent-color: #f4f4f4;
  --text-color: #333333;
  --nav-height: 80px;
  --spacing-unit: 2rem;
  --transition-speed: 0.4s;
  --font-main: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Georgia", serif; /* 用于强调文字 */
}

/* 覆盖 Pico.css 默认样式以实现极简风格 */
body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 300; /* 细字体更显高级 */
  color: var(--primary-color);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: opacity var(--transition-speed);
}

a:hover {
  opacity: 0.7;
  text-decoration: none;
}

/* 移除 Pico 的默认容器内边距限制，由自定义类控制 */
body > header, body > main, body > footer {
  padding: 0;
}

/* =========================================
   2. 导航栏 (Navigation)
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

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

.nav-item a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 5px;
}

/* 导航悬停下划线动画 */
.nav-item a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: width 0.3s ease, left 0.3s ease;
}

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

/* =========================================
   3. 首页 - 全屏轮播 (Hero Carousel)
   ========================================= */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  margin-bottom: 0; /* 覆盖Pico可能的margin */
}

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

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.carousel-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.2); /* 轻微暗色遮罩提升文字可读性 */
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 20px;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards 0.5s;
  opacity: 0;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 200;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-top: 0;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

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

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

.indicator.active {
  background: #fff;
}

/* =========================================
   4. 通用布局组件 (Common Layout)
   ========================================= */
.container-custom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 4rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--primary-color);
  margin: 1rem auto 0;
}

/* =========================================
   5. 首页 - 精选系列预览 (Featured Collection)
   ========================================= */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

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

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: white;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.collection-card:hover .card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.card-title {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  color: white;
}

/* =========================================
   6. 首页 - 理念摘要 (Philosophy Abstract)
   ========================================= */
.philosophy-abstract {
  background-color: var(--accent-color);
  text-align: center;
  padding: 8rem 2rem;
}

.abstract-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--secondary-color);
  font-family: var(--font-serif);
  font-style: italic;
}

/* =========================================
   7. 系列展示页 (Collections Page)
   ========================================= */
.collections-header {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 2rem;
  text-align: center;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary-color);
  padding: 5px 10px;
  border: 1px solid transparent;
}

.filter-tag.active {
  color: var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 0 2rem 4rem;
}

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

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

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

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

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

.view-details-btn {
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 10px 25px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: white;
}

/* 视觉焦点区 - 宽横幅 */
.focus-banner {
  width: 100%;
  height: 60vh;
  margin: 4rem 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* 视差滚动效果 */
  position: relative;
}

/* =========================================
   8. 设计理念页 (Philosophy Page)
   ========================================= */
.page-title-section {
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  margin-top: var(--nav-height);
}

.big-title {
  font-size: 4rem;
  font-weight: 100;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ccc; /* 极简淡色 */
}

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

.content-block {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 8rem;
}

.content-block.reverse {
  flex-direction: row-reverse;
}

.block-image {
  flex: 1;
  aspect-ratio: 4/5;
  overflow: hidden;
}

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

.block-text {
  flex: 1;
}

.block-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.block-text p {
  color: var(--secondary-color);
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: justify;
}

.full-width-block {
  position: relative;
  height: 70vh;
  margin: 4rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.full-width-block img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.overlay-text {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.9);
  padding: 3rem;
  max-width: 600px;
  text-align: center;
}

.quote-section {
  padding: 6rem 2rem;
  text-align: center;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  color: var(--primary-color);
  max-width: 800px;
  margin: 0 auto;
}

/* =========================================
   9. 页脚 (Footer)
   ========================================= */
.site-footer {
  border-top: 1px solid #eee;
  padding: 3rem 0;
  text-align: center;
  margin-top: auto;
}

.footer-content span {
  font-size: 0.9rem;
  color: #999;
  letter-spacing: 0.1em;
}

/* =========================================
   10. 动画与辅助类 (Animations & Utils)
   ========================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

/* =========================================
   11. 响应式适配 (Responsive)
   ========================================= */
/* Tablet */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-title {
    font-size: 2.8rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }
  
  .nav-links {
    display: none; /* 移动端可改为汉堡菜单，此处简化处理或需JS配合 */
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
  }
  
  /* 简单的移动端菜单触发器样式（需要HTML配合input check或JS） */
  .mobile-menu-toggle {
    display: block;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1rem 2rem;
  }
  
  .content-block, .content-block.reverse {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
  }
  
  .big-title {
    font-size: 2.5rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .container-custom {
    padding: 4rem 1.5rem;
  }
}

/* 移动端汉堡菜单显示逻辑 (纯CSS实现方案) */
#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  #menu-toggle:checked ~ .nav-links {
    display: flex;
  }
}