/* 全局样式变量 */
:root {
  --charcoal: #36454f;
  --eggshell: #f0eade;
  --haze-blue: #8b9dc3;
  --sandstone: #c2b59c;
  --text-primary: #333333;
  --text-secondary: #666666;
  --border-light: #e5e5e5;
  --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  font-family: 'Helvetica Now', 'Noto Sans SC', sans-serif;
  font-weight: 300;
  color: var(--text-primary);
  background-color: var(--eggshell);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 导航栏样式 */
.nav-container {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
}

.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 1rem 0;
  gap: 3rem;
}

.nav-item a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  letter-spacing: 0.05rem;
  position: relative;
  transition: all 0.3s var(--transition-smooth);
  padding: 0.5rem 0;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--haze-blue);
  transition: width 0.3s var(--transition-smooth);
}

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

.nav-item a:hover {
  color: var(--haze-blue);
}

/* 主容器 */
.main-container {
  margin-top: 80px;
  min-height: calc(100vh - 160px);
  padding: 2rem;
}

/* 瀑布流布局 */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.masonry-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s var(--transition-smooth);
}

.masonry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* 图片容器 */
.image-container {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--transition-smooth);
}

.image-container:hover .image-zoom {
  transform: scale(1.1);
}

/* 放大镜效果 */
.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s var(--transition-smooth);
}

.image-container:hover .image-overlay {
  opacity: 1;
}

/* 系列卡片 */
.series-card {
  padding: 1.5rem;
}

.series-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.series-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 加载动画 */
.fade-in {
  animation: fadeIn 0.3s var(--transition-smooth);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 视差滚动 */
.parallax-element {
  transition: transform 0.1s ease-out;
}

/* 页脚 */
.footer-container {
  margin-top: 4rem;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border-light);
  background: white;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.footer-copyright {
  font-size: 9pt;
  color: var(--text-secondary);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-menu {
    gap: 1.5rem;
    font-size: 0.9rem;
  }
  
  .main-container {
    padding: 1rem;
    margin-top: 60px;
  }
  
  .masonry-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .series-card {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.5rem 0;
  }
  
  .nav-item a {
    font-size: 0.85rem;
  }
}

/* 细节工艺页面样式 */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.detail-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s var(--transition-smooth);
}

.detail-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* 穿搭指南页面样式 */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.guide-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.guide-title {
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
  text-align: center;
}

.guide-looks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 主页英雄区 */
.hero-section {
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--haze-blue) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  z-index: 2;
  padding: 2rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: 0.1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* 颜色面板 */
.color-palette {
  display: flex;
  gap: 2rem;
  justify-content: center;
  padding: 3rem 2rem;
  background: white;
}

.color-swatch {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s var(--transition-smooth);
}

.color-swatch:hover {
  transform: scale(1.1);
}

.color-charcoal { background-color: var(--charcoal); }
.color-eggshell { background-color: var(--eggshell); }
.color-haze-blue { background-color: var(--haze-blue); }
.color-sandstone { background-color: var(--sandstone); }