/* 全局样式文件 - 时尚女装展示网站 */

/* 导入思源字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;700&family=Noto+Sans+SC:wght@300;400;500&display=swap');

/* 全局变量 */
:root {
  --color-primary: #f8f9fa;
  --color-secondary: #2c3e50;
  --color-white: #fafafa;
  --color-soft-pink: #f9ebea;
  --color-accent: #b76e79;
  --color-text: #333;
  --color-text-light: #666;
  --font-title: 'Noto Serif SC', serif;
  --font-body: 'Noto Sans SC', sans-serif;
  --transition: all 0.3s ease;
}

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

/* 全局样式 */
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-primary);
  overflow-x: hidden;
}

/* 导航栏样式 */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: 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-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-light);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

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

/* 主容器 */
.main-container {
  margin-top: 80px;
  min-height: calc(100vh - 160px);
}

/* 标题样式 */
h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 500;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: 3px;
}

h2 {
  font-size: 2rem;
  letter-spacing: 2px;
}

h3 {
  font-size: 1.5rem;
  letter-spacing: 1px;
}

/* 文本样式 */
p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

/* 轮播图容器 */
.slider-container {
  position: relative;
  width: 100%;
  height: 100vh;
  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;
}

.slide-caption {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1.5rem 3rem;
  font-family: var(--font-title);
  font-size: 1.8rem;
  letter-spacing: 3px;
}

/* 内容区域 */
.content-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
  text-align: center;
}

.section-title {
  margin-bottom: 2rem;
}

.section-text {
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 2;
}

/* 预览卡片 */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 3rem;
  margin: 4rem 0;
}

.preview-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

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

.preview-card img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  transition: var(--transition);
}

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

.preview-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  transition: var(--transition);
}

.preview-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.preview-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

/* 系列展示 */
.series-section {
  margin: 6rem 0;
}

.series-header {
  text-align: center;
  margin-bottom: 3rem;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.series-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

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

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

.series-info {
  padding: 1.5rem;
  background-color: white;
}

.series-name {
  font-family: var(--font-title);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-secondary);
}

.series-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-light);
}

/* 细节展示 */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.detail-item {
  background-color: white;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.detail-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

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

.detail-content {
  padding: 1.5rem;
}

.detail-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--color-secondary);
}

.detail-text {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-text-light);
}

/* 页脚样式 */
footer {
  margin-top: 6rem;
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background-color: var(--color-white);
}

footer p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  letter-spacing: 2px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .slide-caption {
    font-size: 1.2rem;
    padding: 1rem 2rem;
  }

  .preview-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .series-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 0 1rem;
  }
}

/* 加载动画 */
.loading {
  opacity: 0;
  animation: fadeIn 0.6s ease-in forwards;
}

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