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

:root {
  --primary-bg: #FFFFFF;
  --secondary-bg: #FAFAFA;
  --text-primary: #333333;
  --text-secondary: #666666;
  --accent-color: #E07A5F;
  --nav-bg: #2D2D2D;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Source Han Sans CN', 'Noto Sans SC', 'Inter', 'Helvetica Neue', sans-serif;
  background-color: var(--secondary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
}

/* 导航栏样式 */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition-smooth);
  position: relative;
}

nav ul li a:hover {
  color: var(--accent-color);
}

nav ul li a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-color);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 3px 0;
  transition: var(--transition-smooth);
}

/* 主内容区域 */
main {
  margin-top: 80px;
  min-height: calc(100vh - 160px);
}

/* 轮播图样式 */
.slider {
  position: relative;
  height: 80vh;
  overflow: hidden;
  background-color: var(--nav-bg);
}

.slider-container {
  display: flex;
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.slide-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary-bg);
  font-size: 2.5rem;
  font-weight: 500;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeIn 1s forwards 0.5s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dot.active {
  background-color: var(--primary-bg);
  transform: scale(1.2);
}

/* 内容区域通用样式 */
section {
  max-width: 1400px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
  position: relative;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 编辑精选网格布局 */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.featured-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background-color: var(--primary-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
}

.featured-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.featured-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.featured-item p {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* 季节灵感区域 */
.season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.season-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  height: 400px;
}

.season-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.season-item:hover img {
  transform: scale(1.08);
}

/* 瀑布流布局（设计美学页） */
.masonry-grid {
  column-count: 3;
  column-gap: 2rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 2rem;
  background-color: var(--primary-bg);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
}

.masonry-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

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

.masonry-item p {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
}

/* 网格布局（材质工艺页） */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.craft-item {
  background-color: var(--primary-bg);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
}

.craft-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

.craft-item-content {
  padding: 1.5rem;
}

.craft-item h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

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

/* 卡片式布局（穿搭艺术页） */
.styling-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

.styling-card {
  background-color: var(--primary-bg);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
}

.styling-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.styling-card-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  padding: 0.5rem;
}

.styling-card-images img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
}

.styling-card-content {
  padding: 1.5rem;
}

.styling-card h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.styling-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 页脚样式 */
footer {
  background-color: var(--primary-bg);
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .masonry-grid {
    column-count: 2;
  }
  
  .styling-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-bg);
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  nav ul.active {
    display: flex;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .slide-text {
    font-size: 1.8rem;
  }
  
  .masonry-grid {
    column-count: 1;
  }
  
  section {
    margin: 2rem auto;
    padding: 0 1rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) {
  .slider {
    height: 60vh;
  }
  
  .slide-text {
    font-size: 1.5rem;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .styling-card-images {
    grid-template-columns: 1fr;
  }
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 图片懒加载占位 */
img {
  background-color: #f0f0f0;
}

/* 无障碍辅助 */
:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}