/* 
 * 极简现代男装网站样式表
 * 基于 Pico.css 进行定制与扩展
 * 遵循极简主义设计原则
 */

:root {
  /* 基础色板 */
  --primary: #000000;
  --primary-inverse: #ffffff;
  --secondary: #666666;
  --background: #ffffff;
  --surface: #f9f9f9;
  
  /* 季节强调色 - 秋季 */
  --accent: #9C7159; 
  
  /* 字体系统 */
  --font-family: 'Inter', 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-size-base: 16px;
  
  /* 间距与布局 */
  --spacing-unit: 2rem;
  --nav-height: 80px;
  
  /* 覆盖 Pico.css 默认变量 */
  --pico-font-family: var(--font-family);
  --pico-primary: var(--primary);
  --pico-background-color: var(--background);
  --pico-color: #333333;
}

/* 全局重置与基础样式 */
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 去除 Pico 默认的容器内边距限制，便于全屏设计 */
body > main, 
body > header, 
body > footer {
  padding: 0;
}

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

a:hover {
  color: var(--accent);
}

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

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95); /* 轻微透明背景确保可读性 */
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.navbar.transparent {
  background: transparent;
  border-bottom: none;
  color: white;
}

/* 当导航栏透明且背景为深色图片时，文字需为白色 */
.navbar.transparent a {
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

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

.nav-links a {
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: currentColor;
  transition: width 0.3s ease;
}

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

/* 全屏轮播 (Hero Section) */
.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;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.85); /* 轻微压暗以突出文字 */
  transform: scale(1.05);
  transition: transform 6s ease;
}

.slide.active .slide-bg {
  transform: scale(1); /* 视差/缩放效果 */
}

.slide-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 2rem;
  z-index: 2;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.8s ease 0.4s;
}

.slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* 内容区块通用样式 */
.section {
  padding: 6rem 4%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 4rem;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--secondary);
  line-height: 1.6;
}

/* 首页：当代系列精选 (3栏布局) */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

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

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

.collection-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;
  transition: opacity 0.3s ease;
}

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

/* 衣着哲学页面布局 */
.philosophy-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 4rem;
  padding-top: 4rem;
}

.sticky-nav {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  height: fit-content;
}

.sticky-nav a {
  display: block;
  padding: 0.5rem 0;
  color: var(--secondary);
  border-left: 2px solid transparent;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
}

.sticky-nav a.active {
  color: var(--primary);
  border-left-color: var(--primary);
}

.philosophy-section {
  margin-bottom: 6rem;
  scroll-margin-top: calc(var(--nav-height) + 2rem);
}

.philosophy-image {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  margin-bottom: 2rem;
}

/* 当代系列 - 瀑布流/网格 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

.gallery-info {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--secondary);
}

/* 造型图鉴 - 季节专题 */
.style-guide-hero {
  height: 50vh;
  background-color: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 4rem;
}

.style-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
  align-items: center;
}

.style-card.reverse {
  direction: rtl;
}

.style-card.reverse .style-content {
  direction: ltr;
}

.style-points ul {
  list-style: none;
  padding: 0;
}

.style-points li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.style-points li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* 页脚 */
.site-footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid #eee;
  color: #999;
  font-size: 0.875rem;
  margin-top: 4rem;
}

/* 移动端汉堡菜单 (默认隐藏) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .navbar {
    background: #fff;
    color: var(--primary);
  }
  
  .nav-links {
    display: none; /* 后续可用JS控制显示 */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid #eee;
  }
  
  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .philosophy-layout {
    grid-template-columns: 1fr;
  }
  
  .sticky-nav {
    display: none; /* 移动端隐藏侧边导航 */
  }

  .style-card, .style-card.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
}

/* 辅助类 */
.text-center { text-align: center; }
.mt-4 { margin-top: 4rem; }
.mb-4 { margin-bottom: 4rem; }
.uppercase { text-transform: uppercase; }
.font-light { font-weight: 300; }