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

/* 全局字体与颜色 */
:root {
  --bg-warm-white: #FAF7F2;
  --text-dark-grey: #2C2C2C;
  --divider-tea: #E8E0D5;
  --font-cn-title: 'Noto Serif SC', 'Source Han Serif CN', serif;
  --font-en-accent: 'Helvetica Neue', 'Garamond', serif;
  --spacing-lg: 80px;
  --spacing-md: 40px;
  --spacing-sm: 20px;
}

body {
  font-family: var(--font-cn-title);
  background-color: var(--bg-warm-white);
  color: var(--text-dark-grey);
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.05em;
  overflow-x: hidden;
}

/* 导航栏 */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid var(--divider-tea);
}

nav ul {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--text-dark-grey);
  font-size: 14px;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
  position: relative;
}

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

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

/* 主视觉区 */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 60px;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-dark-grey);
  background-color: rgba(250, 247, 242, 0.7);
  padding: var(--spacing-md);
  backdrop-filter: blur(5px);
}

.hero-title {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
  font-family: var(--font-en-accent);
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.1em;
}

/* 内容区 */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
}

.section {
  min-height: 80vh;
  padding: var(--spacing-lg) 0;
}

.intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
  font-size: 16px;
  line-height: 2;
}

/* 画廊布局 */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

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

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

.gallery-caption {
  margin-top: var(--spacing-sm);
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.1em;
}

/* 双栏布局 */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.column-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.column-text {
  padding: var(--spacing-md);
  line-height: 2.2;
  font-size: 15px;
}

.column-text h2 {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.3em;
  margin-bottom: var(--spacing-md);
}

.column-text h3 {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

/* 小图展示 */
.small-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

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

.small-gallery img:hover {
  transform: scale(1.02);
}

/* 单列长滚动 */
.craft-section {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
}

.craft-item {
  margin-bottom: 100px;
}

.craft-item h2 {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.craft-content {
  margin-bottom: var(--spacing-md);
  line-height: 2.2;
  font-size: 15px;
}

.craft-image {
  margin-top: var(--spacing-md);
}

.craft-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* 页脚 */
footer {
  text-align: center;
  padding: var(--spacing-md) 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-dark-grey);
  border-top: 1px solid var(--divider-tea);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .two-column {
    grid-template-columns: 1fr;
  }
  
  .small-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  nav ul {
    gap: var(--spacing-md);
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 14px;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
  
  .small-gallery {
    grid-template-columns: 1fr;
  }
  
  .gallery-item img,
  .column-image img,
  .small-gallery img,
  .craft-image img {
    height: 400px;
  }
  
  .column-text h2 {
    font-size: 24px;
  }
  
  .craft-item h2 {
    font-size: 28px;
  }
}