/* 
 * 全局样式文件 - 现代简约时尚风格 
 * 遵循极简主义、无障碍及响应式设计规范
 */

/* 变量定义：冷淡风格配色与设计令牌 */
:root {
  --primary: #333333;
  --primary-hover: #000000;
  --background: #FFFFFF;
  --surface: #F5F5F7;
  --text-main: #333333;
  --text-muted: #666666;
  --border-color: #E5E5E5;
  --font-sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", sans-serif;
  --transition-base: all 0.3s ease;
  --spacing-unit: 1rem;
  
  /* Pico.css 覆盖变量 */
  --pico-font-family: var(--font-sans);
  --pico-primary: var(--primary);
  --pico-primary-background: var(--primary);
  --pico-primary-hover: var(--primary-hover);
  --pico-border-radius: 0px; /* 时尚风格通常锐利 */
  --pico-background-color: var(--background);
  --pico-color: var(--text-main);
  --pico-nav-element-spacing-vertical: 1.5rem;
}

/* 全局重置与基础排版 */
body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--background);
  margin: 0;
  padding-top: 80px; /* 为固定导航栏留空 */
  opacity: 0; /* 页面加载动画初始状态 */
  animation: pageFadeIn 0.8s ease forwards;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400; /* 细体字更显高级 */
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

a {
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition-base);
}

a:hover {
  color: var(--text-muted);
  text-decoration: none;
}

/* 导航栏：固定定位 + 极简设计 */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
  padding: 0 2rem;
}

.site-nav.scrolled {
  border-bottom: 1px solid var(--border-color);
}

.site-nav ul li a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
}

/* 导航指示器 */
.site-nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -5px;
  left: 50%;
  background-color: var(--primary);
  transition: var(--transition-base);
  transform: translateX(-50%);
}

.site-nav ul li a:hover::after,
.site-nav ul li a.active::after {
  width: 100%;
}

/* 首页：全屏轮播 */
.hero-slider {
  height: 100vh;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
}

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

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

.hero-content {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* 系列展示：网格布局 */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
}

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

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

.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.5), transparent);
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

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

/* 单品聚焦：左右布局 */
.details-layout {
  display: grid;
  grid-template-columns: 65% 35%;
  height: calc(100vh - 80px);
  overflow: hidden;
}

.detail-main-image {
  height: 100%;
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-main-image img {
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;
}

.detail-sidebar {
  padding: 4rem 3rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-thumbs {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.detail-thumb {
  width: 80px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.detail-thumb.active, .detail-thumb:hover {
  opacity: 1;
  border: 1px solid var(--primary);
}

/* 风格故事：沉浸式 */
.story-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: var(--surface);
  overflow: hidden;
}

.story-text {
  max-width: 600px;
  text-align: center;
  z-index: 2;
  padding: 2rem;
  background: rgba(255,255,255,0.8);
}

/* 幕后视角：拼贴布局 */
.masonry-grid {
  column-count: 3;
  column-gap: 1.5rem;
  padding: 2rem;
}

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

.masonry-item img {
  width: 100%;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.masonry-item:hover img {
  filter: grayscale(0%);
}

/* 页脚 */
footer {
  text-align: center;
  padding: 3rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  background-color: var(--background);
  border-top: 1px solid var(--surface);
}

/* 动画 */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 响应式调整 */
@media (max-width: 768px) {
  body { padding-top: 60px; }
  .site-nav { padding: 0 1rem; }
  
  /* 移动端汉堡菜单样式需配合JS切换 */
  .nav-menu { display: none; } 
  .nav-menu.open { 
    display: flex; 
    flex-direction: column; 
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }

  .collection-grid { grid-template-columns: 1fr; }
  .details-layout { grid-template-columns: 1fr; height: auto; }
  .detail-main-image { height: 50vh; }
  .masonry-grid { column-count: 1; }
}

/* 工具类 */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-4 { margin-bottom: 4rem; }
.font-light { font-weight: 300; }