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

:root {
  --color-primary: #FFFFFF;
  --color-secondary: #F8F8F8;
  --color-text: #333333;
  --color-text-light: #666666;
  --font-serif: 'Playfair Display', 'Noto Serif SC', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  --transition-speed: 300ms;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-primary);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition-speed);
}

a:hover {
  opacity: 0.7;
}

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

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 0 2rem;
}

nav a {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 0.3rem;
}

nav a.active::after,
nav a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-text);
  animation: slideIn var(--transition-speed) ease;
}

@keyframes slideIn {
  from { width: 0; }
  to { width: 100%; }
}

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

/* 轮播图容器 */
.hero-slider {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slider-wrapper {
  display: flex;
  width: 500%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.slide {
  width: 20%;
  height: 100%;
  position: relative;
}

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

.slider-controls {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

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

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

/* 主题卡片 */
.theme-cards {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--transition-speed);
}

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

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

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

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 1.5rem 0 0.5rem;
  text-align: center;
}

.card p {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* 风格网格布局 */
.page-header {
  text-align: center;
  padding: 4rem 2rem 2rem;
  background: var(--color-secondary);
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-description {
  color: var(--color-text-light);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.style-grid {
  max-width: 1400px;
  margin: 3rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.style-item {
  background: var(--color-secondary);
  padding: 2rem;
  border-radius: 2px;
  transition: box-shadow var(--transition-speed);
}

.style-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.style-item img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.style-item h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.style-item > p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.detail-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.detail-images img {
  height: 200px;
  object-fit: cover;
}

/* 穿搭志专题 */
.feature {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 3rem 2rem;
  background: var(--color-secondary);
}

.feature h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.feature-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.feature-images img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform var(--transition-speed);
}

.feature-images img:hover {
  transform: scale(1.03);
}

.feature > p {
  line-height: 2;
  text-align: justify;
  color: var(--color-text);
  font-size: 1rem;
}

/* 页脚 */
footer {
  background: var(--color-secondary);
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* 懒加载占位 */
.lazy-img {
  background: var(--color-secondary);
  min-height: 400px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  nav {
    gap: 1.5rem;
  }
  
  nav a {
    font-size: 0.9rem;
  }
  
  .hero-slider {
    height: 70vh;
  }
  
  .theme-cards {
    grid-template-columns: 1fr;
    margin: 2rem auto;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .style-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .style-item img {
    height: 350px;
  }
  
  .feature {
    padding: 2rem 1rem;
  }
  
  .feature-images {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  nav {
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .card img {
    height: 300px;
  }
  
  .slider-controls {
    bottom: 1.5rem;
  }
}