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

/* 根变量定义 */
:root {
  --primary-color: #3d2817;
  --secondary-color: #8b7355;
  --accent-color: #d2b48c;
  --background-color: #faf8f5;
  --text-color: #2c2416;
  --light-gray: #e8e6e3;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础字体设置 */
body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.1);
}

.logo::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid white;
  border-radius: 50%;
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(45deg);
}

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

.nav-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: var(--transition);
  position: relative;
}

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

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

.nav-link:hover {
  color: var(--accent-color);
}

/* 主容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 主视觉区域 */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
    rgba(250, 248, 245, 0) 0%, 
    rgba(250, 248, 245, 0.7) 70%, 
    var(--background-color) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 200;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  color: var(--primary-color);
  opacity: 0;
  animation: slideUp 1s ease 0.5s forwards;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-color);
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
  animation: slideUp 1s ease 0.7s forwards;
}

/* 引文区 */
.quote-section {
  padding: 6rem 0;
  text-align: center;
}

.quote {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--secondary-color);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* 精选系列 */
.featured-section {
  padding: 4rem 0 8rem;
}

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

.featured-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  cursor: pointer;
  background: white;
}

.featured-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.featured-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.featured-info {
  padding: 1.5rem;
}

.featured-name {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.featured-description {
  font-size: 0.95rem;
  color: var(--secondary-color);
  line-height: 1.6;
}

/* 系列页面 */
.collection-grid {
  display: columns;
  column-count: 3;
  column-gap: 2rem;
  margin-top: 3rem;
}

.collection-item {
  break-inside: avoid;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.collection-item:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.collection-image {
  width: 100%;
  display: block;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.collection-info {
  padding: 1.5rem;
  background: white;
}

.collection-name {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

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

/* 工艺页面 */
.craft-section {
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

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

.craft-section > * {
  direction: ltr;
}

.craft-content h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.craft-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.craft-image {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

/* 灵感页面 */
.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.inspiration-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.inspiration-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.inspiration-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.inspiration-content {
  padding: 1.5rem;
}

.inspiration-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.inspiration-steps {
  font-size: 0.95rem;
  color: var(--secondary-color);
  line-height: 1.6;
}

/* 页面标题 */
.page-title {
  text-align: center;
  font-size: 3rem;
  color: var(--primary-color);
  margin: 3rem 0;
  font-weight: 200;
  letter-spacing: 0.1em;
}

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

/* 动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
  
  .nav-link {
    font-size: 0.9rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .featured-grid,
  .inspiration-grid {
    grid-template-columns: 1fr;
  }
  
  .collection-grid {
    column-count: 1;
  }
  
  .craft-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .craft-section:nth-child(even) {
    direction: ltr;
  }
  
  .page-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .quote {
    font-size: 1.2rem;
  }
}