/* mens-fashion-showcase-021859/frontend/public/css/style.css */

:root {
  /* Pico.css 变量覆盖 - 极简黑白灰 */
  --pico-font-family-sans-serif: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --pico-primary: #111111;
  --pico-primary-background: #111111;
  --pico-primary-hover: #333333;
  --pico-color: #333333;
  --pico-background-color: #FFFFFF;
  --pico-border-radius: 0;
  --pico-spacing: 1rem;
  
  /* 自定义设计系统变量 */
  --color-dark: #111111;
  --color-white: #FFFFFF;
  --color-gray-light: #FAFAFA;
  --color-gray-med: #EEEEEE;
  --color-text-main: #333333;
  --color-text-sub: #666666;
  --color-accent: #1A365D;
  --color-gold: #A68B6A;
  
  --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* 全局重置与基础样式 */
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  color: var(--color-text-main);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark);
  font-weight: 400;
  letter-spacing: -0.5px;
}

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

/* 自定义导航栏 - 固定定位，磨砂效果 */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.2rem 2rem;
  transition: all 0.3s ease;
}

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

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

.nav-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-main);
  position: relative;
  padding-bottom: 4px;
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-dark);
  transition: width 0.4s var(--ease-out-expo);
}

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

/* 首页：全屏轮播图 */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-dark);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease;
  background-size: cover;
  background-position: center;
}

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

.hero-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.4));
  z-index: 2;
}

.hero-content {
  position: absolute;
  bottom: 15%;
  left: 8%;
  z-index: 3;
  color: white;
  max-width: 600px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 1s ease 0.5s, opacity 1s ease 0.5s;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.1rem;
  letter-spacing: 2px;
  font-weight: 300;
  opacity: 0.9;
  text-transform: uppercase;
}

/* 首页：精选展示区 */
.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

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

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

.grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.category-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--color-gray-med);
  cursor: pointer;
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.category-card:hover .category-img {
  transform: scale(1.06);
}

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

.category-card:hover .category-info {
  transform: translateY(0);
  opacity: 1;
}

/* 系列展示页面 (Collections) */
.filters-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-gray-med);
}

.filter-tag {
  font-size: 0.9rem;
  color: var(--color-text-sub);
  cursor: default;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: var(--color-gray-med); /* 用于制造Grid线效果 */
}

.gallery-item {
  position: relative;
  background: white;
  aspect-ratio: 4/5;
  overflow: hidden;
}

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

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

.item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 2rem;
  text-align: center;
}

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

/* 设计理念 (Philosophy) */
.split-hero {
  height: 60vh;
  position: relative;
  overflow: hidden;
}

.philosophy-content {
  display: flex;
  padding: 6rem 10%;
  gap: 4rem;
  background: var(--color-gray-light);
}

.philosophy-text {
  flex: 1;
}

.philosophy-images {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* 材质工艺 (Materials) */
.materials-container {
  display: flex;
  min-height: 100vh;
  padding-top: 60px; /* Nav height offset */
}

.materials-sidebar {
  width: 250px;
  padding: 3rem 2rem;
  border-right: 1px solid var(--color-gray-med);
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  background: white;
}

.material-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem 0;
  border: none;
  background: transparent;
  color: var(--color-text-sub);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  border-right: 2px solid transparent;
}

.material-btn:hover {
  color: var(--color-dark);
}

.material-btn.active {
  color: var(--color-dark);
  font-weight: bold;
  border-right-color: var(--color-dark);
}

.materials-display {
  flex: 1;
  position: relative;
  background: var(--color-gray-light);
}

.material-detail-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 4rem;
  display: none;
  animation: fadeUp 0.6s ease;
  overflow-y: auto;
}

.material-detail-panel.active {
  display: block;
}

/* 视觉故事 (Stories) */
.story-scroll-container {
  scroll-snap-type: y mandatory;
  height: 100vh;
  overflow-y: scroll;
}

.story-section-full {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.story-caption-box {
  background: white;
  padding: 3rem;
  max-width: 450px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.3s;
}

.story-section-full.in-view .story-caption-box {
  opacity: 1;
  transform: translateY(0);
}

/* 页脚 */
.site-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--color-gray-med);
  font-size: 0.8rem;
  color: var(--color-text-sub);
  background: white;
}

/* 动画关键帧 */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 响应式适配 */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .philosophy-content { flex-direction: column; }
}

@media (max-width: 768px) {
  .nav-menu { gap: 1rem; }
  .nav-link { font-size: 0.7rem; }
  .hero-title { font-size: 2.2rem; }
  
  .materials-container { flex-direction: column; height: auto; }
  .materials-sidebar { 
    width: 100%; 
    height: auto; 
    position: relative; 
    top: 0; 
    display: flex; 
    overflow-x: auto; 
    padding: 1rem; 
    border-right: none;
    border-bottom: 1px solid var(--color-gray-med);
  }
  .material-btn { padding: 0.5rem 1.5rem; border-right: none; white-space: nowrap; width: auto; }
  .material-btn.active { border-right: none; border-bottom: 2px solid var(--color-dark); }
  .material-detail-panel { position: relative; height: auto; padding: 2rem; display: block; border-bottom: 10px solid white;}
  
  /* 移动端材质页特殊处理：只显示选中的，或者垂直堆叠 */
  .materials-display { height: auto; overflow: visible; }
  .material-detail-panel { display: none; }
  .material-detail-panel.active { display: block; }
}