/* 全局样式定义 */
:root {
  --primary-color: #d4c5b9;
  --secondary-color: #e8e4e1;
  --text-color: #333;
  --text-light: #666;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础样式重置 */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--secondary-color);
  overflow-x: hidden;
}

/* 导航栏样式 */
nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;
  margin: 0;
  list-style: none;
  gap: 3rem;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: var(--transition);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* 主容器样式 */
main {
  min-height: calc(100vh - 140px);
  padding: 2rem 1rem;
}

/* 首页轮播样式 */
.carousel {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  border-radius: 4px;
}

.carousel-inner {
  display: flex;
  transition: transform 0.6s ease;
  height: 100%;
}

.carousel-item {
  min-width: 100%;
  height: 100%;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 首页文案区 */
.hero-text {
  text-align: center;
  margin: 4rem auto;
  max-width: 600px;
}

.hero-text p {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
}

/* 系列页瀑布流 */
.lookbook-grid {
  column-count: 3;
  column-gap: 1.5rem;
  padding: 2rem 0;
}

.lookbook-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.lookbook-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.lookbook-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.lookbook-title {
  color: white;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

/* 故事页样式 */
.story-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.story-header {
  margin-bottom: 3rem;
}

.story-header img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
}

.story-content h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.story-content p {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* 工艺页样式 */
.craftsmanship-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.craft-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.craft-item:nth-child(even) {
  direction: rtl;
}

.craft-item:nth-child(even) > * {
  direction: ltr;
}

.craft-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.craft-text h3 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.craft-text p {
  color: var(--text-light);
  line-height: 1.8;
}

/* 按钮样式 */
.explore-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 1px solid var(--text-color);
  color: var(--text-color);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: var(--transition);
  cursor: pointer;
}

.explore-btn:hover {
  background: var(--text-color);
  color: white;
}

/* 页脚样式 */
footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-light);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* 响应式设计 */
@media (max-width: 768px) {
  nav ul {
    gap: 1.5rem;
    font-size: 0.9rem;
  }
  
  .carousel {
    height: 50vh;
  }
  
  .hero-text p {
    font-size: 1.2rem;
  }
  
  .lookbook-grid {
    column-count: 2;
  }
  
  .craft-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .craft-item:nth-child(even) {
    direction: ltr;
  }
}

@media (max-width: 480px) {
  nav ul {
    gap: 1rem;
    font-size: 0.85rem;
    padding: 1rem 0;
  }
  
  .lookbook-grid {
    column-count: 1;
  }
  
  .hero-text {
    margin: 2rem auto;
  }
  
  .story-content h2 {
    font-size: 1.5rem;
  }
}

/* 加载动画 */
.fade-in {
  animation: fadeIn 0.8s ease-in;
}

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

/* 轮播指示器 */
.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.indicator.active {
  background: white;
}