/* 全局样式文件 - 时尚女装视觉美学网站 */

/* ========== 重置与基础设置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: "Source Han Sans CN", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: #F8F9FA;
  color: #2C2C2C;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* ========== 配色系统 ========== */
:root {
  --color-bg-primary: #F8F9FA;
  --color-bg-secondary: #FFFFFF;
  --color-bg-accent: #F5F1E8;
  --color-bg-soft: #F9E7E7;
  --color-text-primary: #2C2C2C;
  --color-text-secondary: #666666;
  --color-border: #E0E0E0;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --transition-smooth: 0.3s ease;
}

/* ========== 顶部导航 ========== */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
}

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

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

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-text-primary);
  transition: width var(--transition-smooth);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* ========== 页面容器 ========== */
.page-container {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
}

/* ========== 全屏轮播 ========== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

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

.slide.active {
  opacity: 1;
}

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

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

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

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

/* ========== 标题区域 ========== */
.section-header {
  text-align: center;
  margin: var(--spacing-lg) 0;
  padding: 0 var(--spacing-md);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  font-weight: 300;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* ========== 图片网格 ========== */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: var(--spacing-lg) 0;
}

.image-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background-color: var(--color-bg-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.image-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

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

.image-caption {
  padding: 1.5rem;
  background-color: var(--color-bg-secondary);
}

.image-caption h3 {
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}

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

/* ========== 编辑推荐 ========== */
.featured-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: var(--spacing-lg) 0;
  align-items: center;
}

.featured-image {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

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

.featured-content {
  padding: 2rem;
}

.featured-content h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.featured-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

/* ========== 系列导航卡 ========== */
.series-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: var(--spacing-lg) 0;
}

.series-card {
  background-color: var(--color-bg-secondary);
  padding: 2rem;
  border-radius: 2px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 1px solid var(--color-border);
}

.series-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.series-card h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.series-card p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ========== 分类导航 ========== */
.category-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: var(--spacing-md) 0;
  flex-wrap: wrap;
}

.category-btn {
  padding: 0.75rem 2rem;
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border-radius: 2px;
}

.category-btn:hover,
.category-btn.active {
  background-color: var(--color-text-primary);
  color: #FFFFFF;
  border-color: var(--color-text-primary);
}

/* ========== 灯箱效果 ========== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  color: #FFFFFF;
  cursor: pointer;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== 页脚 ========== */
footer {
  text-align: center;
  padding: 3rem 2rem;
  background-color: var(--color-bg-secondary);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
}

/* ========== 返回顶部按钮 ========== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--color-text-primary);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #444444;
  transform: translateY(-3px);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1200px) {
  .content-wrapper {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .image-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  nav {
    gap: 1.5rem;
    padding: 1rem;
  }
  
  nav a {
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .featured-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .featured-image img {
    height: 400px;
  }
  
  .category-nav {
    gap: 1rem;
  }
  
  .category-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 1rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    height: 60vh;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .featured-content h2 {
    font-size: 1.5rem;
  }
  
  .featured-content p {
    font-size: 1rem;
  }
}

/* ========== 加载动画 ========== */
.fade-in {
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== 页面过渡 ========== */
.page-transition {
  animation: pageTransition 0.3s ease;
}

@keyframes pageTransition {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}