/* 
* 现代时尚服装展示网站 - 全局样式
* 基于 Pico.css 进行定制开发
*/

/* 1. 全局变量覆盖与字体设置 */
:root {
  /* 颜色方案 */
  --pico-font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --pico-background-color: #ffffff;
  --pico-color: #333333;
  --pico-h1-color: #333333;
  --pico-h2-color: #333333;
  --pico-h3-color: #333333;
  --pico-h4-color: #333333;
  --pico-h5-color: #333333;
  --pico-h6-color: #333333;
  --pico-primary: #333333;
  --pico-primary-background: #333333;
  --pico-primary-hover: #0066cc;
  --pico-primary-hover-background: #0066cc;
  --pico-primary-inverse: #ffffff;
  
  /* 自定义设计令牌 */
  --fashion-accent: #0066cc; /* 深蓝强调色 */
  --fashion-accent-hover: #004c99;
  --fashion-bg-light: #f8f8f8;
  --fashion-text-sub: #666666;
  --fashion-border: #eaeaea;
  --fashion-footer-bg: #f5f5f5;
  
  /* 布局尺寸 */
  --nav-height: 80px;
}

/* 2. 基础重置与排版 */
body {
  padding-top: var(--nav-height); /* 为固定导航栏留出空间 */
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.2rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

p {
  color: var(--fashion-text-sub);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: none;
}

/* 3. 导航栏 (Navigation) */
.fashion-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: var(--fashion-bg-light);
  border-bottom: 1px solid var(--fashion-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 5%;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pico-color);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--pico-color);
  font-size: 1rem;
  font-weight: 400;
  position: relative;
  padding: 5px 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--fashion-accent);
  transition: width 0.3s ease;
}

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

/* 移动端菜单按钮 (默认隐藏) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--pico-color);
  cursor: pointer;
  padding: 0;
}

/* 4. 英雄区域 (Hero Banner) */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 500px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #333; /* 兜底色 */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 800px;
  padding: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
  font-weight: 300;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 1px;
}

/* 5. 分类标签 (Category Filter) - 视觉仅 */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 3rem 0;
  flex-wrap: wrap;
}

.filter-tag {
  padding: 0.5rem 1.5rem;
  background-color: transparent;
  border: 1px solid var(--fashion-border);
  color: var(--fashion-text-sub);
  border-radius: 0; /* 现代矩形风格 */
  cursor: default; /* 无实际功能 */
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.filter-tag:hover {
  border-color: var(--fashion-accent);
  color: var(--fashion-accent);
}

/* 6. 网格布局与服装卡片 */
.fashion-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 0 5%;
  margin-bottom: 4rem;
}

.fashion-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5; /* 现代时尚图片比例 */
  overflow: hidden;
  background-color: var(--fashion-bg-light);
  margin-bottom: 1rem;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 悬停效果：轻微放大 + 遮罩 */
.card-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card-image-wrapper:hover .card-image {
  transform: scale(1.08);
}

.card-image-wrapper:hover::after {
  opacity: 1;
}

.card-info {
  text-align: center;
}

.card-title {
  font-size: 1rem;
  color: var(--pico-color);
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--fashion-text-sub);
  margin: 0;
}

/* 7. 特色展示与趋势布局 */
.feature-section {
  padding: 4rem 5%;
  background-color: var(--fashion-bg-light);
}

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

.section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-subtitle {
  color: var(--fashion-text-sub);
  font-size: 1rem;
}

/* 左图右文布局 (趋势预告) */
.trend-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin: 4rem 5%;
}

.trend-layout.reverse {
  direction: rtl; /* 反转列顺序 */
}

.trend-layout.reverse > * {
  direction: ltr; /* 恢复内容方向 */
}

.trend-content {
  padding: 2rem;
}

.trend-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* 搭配灵感块 */
.style-block {
  margin-bottom: 6rem;
}

.style-hero {
  position: relative;
  width: 100%;
  height: 600px;
  margin-bottom: 2rem;
  overflow: hidden;
}

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

.style-info {
  padding: 0 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.color-palette {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
}

.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #ddd;
}

/* 8. 页脚 (Footer) */
.site-footer {
  background-color: var(--fashion-footer-bg);
  padding: 2rem 0;
  text-align: center;
  margin-top: 4rem;
  width: 100%;
}

.footer-text {
  color: var(--fashion-text-sub);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* 9. 响应式设计 (Responsive) */
@media (max-width: 1200px) {
  .fashion-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-title { font-size: 2.8rem; }
  .trend-layout { gap: 2rem; }
}

@media (max-width: 768px) {
  /* 导航变为汉堡菜单模式 */
  .mobile-menu-btn { display: block; }
  
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--fashion-border);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  
  .nav-links.active {
    transform: translateY(0);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }

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

  /* 布局调整 */
  .fashion-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .trend-layout,
  .trend-layout.reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    direction: ltr;
  }
  
  .trend-img { aspect-ratio: 3/2; }
  
  .hero-title { font-size: 2rem; }
  .hero-section { height: 60vh; min-height: 400px; }
  
  .style-info {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .style-hero { height: 400px; }
}

/* 辅助类 */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.container-custom { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* 动态内容槽位 */
[data-slot] {
    min-height: 50px;
    outline: 1px dashed rgba(0, 0, 0, 0.1);
    outline-offset: -1px;
}