/* 全局样式 - 风尚印记 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500&display=swap');

/* 设计令牌 */
:root {
  --primary-white: #ffffff;
  --primary-ivory: #f8f6f3;
  --primary-oat: #f5f2ed;
  --primary-grey: #9e9e9e;
  --primary-charcoal: #333333;
  --accent-black: #000000;
  --text-primary: #212121;
  --text-secondary: #666666;
  --text-light: #999999;
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --border-light: #eeeeee;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* 基础样式 */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue Light', 'PingFang SC', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--primary-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 通用容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -5px;
  left: 50%;
  background-color: var(--accent-black);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

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

/* 标题样式 */
h1 {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 20px;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 15px;
  color: var(--text-primary);
}

h3 {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* 段落和文本 */
p {
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.text-center {
  text-align: center;
}

.text-light {
  color: var(--text-light);
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 32px;
  background-color: transparent;
  border: 1px solid var(--accent-black);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  cursor: pointer;
  margin-top: 20px;
}

.btn:hover {
  background-color: var(--accent-black);
  color: var(--primary-white);
  transform: translateY(-2px);
}

/* 英雄区 */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: var(--primary-white);
  z-index: 1;
}

.hero-slogan {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-white {
  border-color: var(--primary-white);
  color: var(--primary-white);
}

.btn-white:hover {
  background-color: var(--primary-white);
  color: var(--accent-black);
}

/* 卡片样式 */
.card {
  background-color: var(--primary-white);
  border-radius: 0;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-soft);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  padding: 30px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--text-primary);
}

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

/* 网格布局 */
.grid {
  display: grid;
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* 瀑布流布局 */
.masonry {
  column-count: 3;
  column-gap: 20px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
}

.masonry-image {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}

.masonry-item:hover .masonry-image {
  transform: scale(1.02);
}

.masonry-overlay {
  position: relative;
  overflow: hidden;
}

.masonry-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--primary-white);
  padding: 20px;
  transform: translateY(100%);
  transition: var(--transition-smooth);
}

.masonry-item:hover .masonry-text {
  transform: translateY(0);
}

/* 筛选标签 */
.filter-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 40px 0;
}

.filter-tag {
  padding: 8px 20px;
  background-color: var(--primary-ivory);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.filter-tag:hover,
.filter-tag.active {
  background-color: var(--accent-black);
  color: var(--primary-white);
  border-color: var(--accent-black);
}

/* 文章列表 */
.article {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-light);
}

.article-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.article-content {
  flex: 1;
}

.article-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 15px;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  transition: var(--transition-smooth);
}

.article-title:hover {
  color: var(--accent-black);
}

.article-excerpt {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 15px;
}

/* 工艺展示 */
.craft-section {
  margin: 80px 0;
}

.craft-title {
  text-align: center;
  margin-bottom: 50px;
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.craft-item {
  text-align: center;
}

.craft-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin-bottom: 20px;
}

.craft-caption {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 页脚 */
footer {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--primary-ivory);
  color: var(--text-light);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-slogan {
    font-size: 1.8rem;
  }

  .nav-menu {
    gap: 20px;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .masonry {
    column-count: 2;
  }

  .article {
    flex-direction: column;
  }

  .article-image {
    width: 100%;
  }

  .craft-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .masonry {
    column-count: 1;
  }

  .nav-menu {
    flex-direction: column;
    gap: 10px;
  }

  .container {
    padding: 0 15px;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* 滚动显示效果 */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}