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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Source Han Sans CN', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #F8F5F2;
  color: #2C2C2C;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 字体定义 */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Source Han Serif CN', 'Noto Serif SC', 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* 导航栏样式 */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(248, 245, 242, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2C2C2C;
  letter-spacing: 0.1em;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.main-nav a {
  text-decoration: none;
  color: #2C2C2C;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.main-nav a:hover {
  color: #B3543A;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #B3543A;
  transition: width 0.3s ease;
}

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

/* 移动端菜单 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #2C2C2C;
  transition: all 0.3s ease;
}

/* 容器与栅格系统 */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 5rem 0;
}

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

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

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

/* 首屏轮播区域 */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  margin-top: 70px;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

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

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 10;
  width: 80%;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.5rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator::after {
  content: '↓';
  font-size: 2rem;
  color: #fff;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* 卡片样式 */
.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

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

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

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

.card-content {
  padding: 1.5rem;
  text-align: center;
}

.card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card-content p {
  color: #666;
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: #B3543A;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
  margin-top: 1rem;
}

.btn:hover {
  background: #923d28;
}

/* 标题样式 */
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #2C2C2C;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 风格宣言区域 */
.statement-section {
  background: #E8E5E2;
  padding: 5rem 0;
}

.statement-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.statement-text {
  flex: 1;
}

.statement-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.statement-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.statement-image {
  flex: 1;
}

.statement-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

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

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.masonry-item:hover img {
  transform: scale(1.1);
}

.masonry-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

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

/* 系列分类导航 */
.category-nav {
  position: sticky;
  top: 70px;
  background: rgba(248, 245, 242, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  z-index: 999;
  border-bottom: 1px solid #E8E5E2;
}

.category-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2rem;
}

.category-nav a {
  text-decoration: none;
  color: #2C2C2C;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.category-nav a:hover {
  background: #B3543A;
  color: #fff;
}

/* 系列展示区域 */
.collection-section {
  padding: 4rem 0;
}

.collection-header {
  text-align: center;
  margin-bottom: 2rem;
}

.collection-header h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.collection-header p {
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.collection-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

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

.collection-item:hover img {
  transform: scale(1.1);
}

.collection-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
  padding: 2rem 1.5rem;
  text-align: center;
}

/* 细节展示区域 */
.detail-section {
  background: #E8E5E2;
  padding: 5rem 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

.detail-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.detail-item p {
  color: #444;
  font-size: 0.95rem;
}

/* 风格指南区域 */
.guide-section {
  padding: 4rem 0;
}

.guide-item {
  margin-bottom: 4rem;
}

.guide-item h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #2C2C2C;
}

.guide-item p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.guide-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.guide-images img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

/* 灵感图集 */
.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.inspiration-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

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

.inspiration-item:hover img {
  transform: scale(1.1);
}

.inspiration-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(179, 84, 58, 0.9);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 1rem;
  white-space: nowrap;
}

.inspiration-item:hover .inspiration-label {
  opacity: 1;
}

/* 结语区域 */
.closing-section {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.closing-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.closing-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}

.closing-content p {
  font-size: 1.3rem;
  line-height: 1.8;
}

/* 页脚 */
footer {
  background: #2C2C2C;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  margin-top: 0;
}

footer p {
  font-size: 0.95rem;
}

/* 响应式布局 */
@media (max-width: 1024px) {
  .grid-3, .collection-grid, .inspiration-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4, .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .masonry {
    column-count: 2;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .statement-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .main-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(248, 245, 242, 0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }
  
  .main-nav ul.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .grid-2, .grid-3, .collection-grid, .inspiration-grid, .guide-images {
    grid-template-columns: 1fr;
  }
  
  .grid-4, .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .masonry {
    column-count: 1;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .category-nav ul {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .main-nav {
    padding: 1rem 5%;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .grid-4, .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* 图片懒加载占位 */
img[data-src] {
  background: #E8E5E2;
  min-height: 200px;
}

/* 无障碍优化 */
:focus-visible {
  outline: 2px solid #B3543A;
  outline-offset: 2px;
}

a:focus, button:focus {
  outline: 2px solid #B3543A;
}