/* 
 * 现代风尚视觉馆 - 全局样式表
 * 核心设计原则：极简、中性色调、视觉优先
 * 基于 Pico.css 进行深度定制
 */

:root {
  /* 色彩系统 - 中性色调 */
  --primary: #333333;       /* 深灰 - 主文字/强调 */
  --primary-hover: #000000; /* 纯黑 - 悬停 */
  --secondary: #666666;     /* 浅灰 - 辅助信息 */
  --background: #f9f9f9;    /* 米白 - 背景 */
  --surface: #ffffff;       /* 纯白 - 卡片/模块背景 */
  --border-color: #e5e5e5;  /* 极淡灰 - 边框 */
  
  /* 字体排版 */
  --font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --spacing: 2rem;
  
  /* 覆盖 Pico.css 默认变量 */
  --pico-font-family: var(--font-family);
  --pico-primary: var(--primary);
  --pico-primary-background: var(--primary);
  --pico-primary-hover: var(--primary-hover);
  --pico-color: var(--primary);
  --pico-background-color: var(--background);
  --pico-card-background-color: var(--surface);
  --pico-border-radius: 0; /* 移除圆角，保持锐利时尚感 */
}

/* =========================================
   基础重置与排版
   ========================================= */
body {
  font-family: var(--font-family);
  font-weight: 300;
  letter-spacing: 0.05em; /* 增加字间距提升高级感 */
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
  text-decoration: none;
}

/* 隐藏滚动条但保留滚动功能 (Chrome/Safari) */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-thumb {
  background: #ccc;
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* =========================================
   组件：导航栏 (Header)
   ========================================= */
body > header {
  padding: 1rem 2rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--primary);
  /* 抽象线条Logo模拟 */
  border: 1px solid var(--primary);
  padding: 5px 15px;
  display: inline-block;
}

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

.nav-menu li a {
  font-size: 0.9rem;
  color: var(--secondary);
  position: relative;
}

.nav-menu li a.active,
.nav-menu li a:hover {
  color: var(--primary);
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
  width: 100%;
}

/* =========================================
   组件：轮播图 (Hero Carousel)
   ========================================= */
.hero-section {
  position: relative;
  height: 85vh; /* 大屏视觉冲击 */
  width: 100%;
  overflow: hidden;
  background-color: #e0e0e0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保持图片比例覆盖 */
  object-position: center 20%;
}

.hero-caption {
  position: absolute;
  bottom: 10%;
  left: 5%;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  max-width: 600px;
}

.hero-caption h2 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.hero-caption p {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
}

/* =========================================
   通用布局与网格
   ========================================= */
.section-padding {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.8rem;
  color: var(--primary);
  letter-spacing: 0.3em;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--primary);
  margin: 1rem auto 0;
}

/* 瀑布流/网格布局 */
.fashion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.grid-item {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.4s ease;
  cursor: pointer;
}

.grid-item figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3/4; /* 保持时尚摄影比例 */
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.grid-item:hover img {
  transform: scale(1.05); /* 悬停微放大 */
}

.item-info {
  padding: 1.5rem;
  text-align: center;
}

.item-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.item-info p {
  font-size: 0.9rem;
  color: var(--secondary);
  margin: 0;
}

/* =========================================
   特色区域：色彩趋势
   ========================================= */
.color-trend-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: white;
}

.color-block {
  height: 400px; /* 移动端调整 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
}

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

.swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.trend-image {
  height: 400px;
  width: 100%;
  object-fit: cover;
}

/* =========================================
   页脚 (Footer)
   ========================================= */
body > footer {
  padding: 2rem;
  text-align: center;
  background-color: var(--background);
  color: var(--secondary);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  border-top: 1px solid var(--border-color);
  margin-top: auto; /* 确保页脚沉底 */
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.scroll-top {
  cursor: pointer;
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  transition: all 0.3s;
}

.scroll-top:hover {
  background: var(--primary);
  color: white;
}

/* =========================================
   响应式设计 (Media Queries)
   ========================================= */
@media (max-width: 1024px) {
  .hero-caption h2 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  body > header {
    flex-direction: column;
    padding: 1rem;
  }
  
  .nav-menu {
    margin-top: 1rem;
    gap: 1rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-section {
    height: 60vh;
  }

  .hero-caption h2 { font-size: 1.8rem; }
  .hero-caption p { font-size: 1rem; }
  
  .color-trend-section {
    grid-template-columns: 1fr;
  }

  .section-padding {
    padding: 2rem 1rem;
  }
}

/* 动态槽位预留 - 适配TS框架规范预留 */
[data-slot="dynamic-content"] {
  display: contents;
}

/* 辅助工具类 */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.fade-in { animation: fadeIn 0.8s ease-in; }

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