/* 
 * 全局样式文件 - Fashion Showcase
 * 定义中性色调配色方案、响应式布局、导航栏和页脚样式
 */

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

/* CSS 变量定义 */
:root {
  /* 色彩方案 */
  --color-bg-white: #FFFFFF;
  --color-text-dark: #2C2C2C;
  --color-bg-light: #F5F5F7;
  --color-text-gray: #8A8A8F;
  --color-accent-blue: #0A2540;
  --color-accent-charcoal: #3E3E3E;
  --color-border: #E5E5EA;

  /* 字体系统 */
  --font-primary: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-english: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* 间距 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;
  --spacing-xxl: 120px;

  /* 布局 */
  --container-width: 1200px;
  --nav-height: 70px;
  
  /* 动效 */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --shadow-hover: 0 20px 40px rgba(0,0,0,0.08);
}

/* 基础重置 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  font-family: var(--font-english), var(--font-primary);
  background-color: var(--color-bg-white);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* 排版规范 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-text-dark);
}

h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.2; }
h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: var(--spacing-lg); }
h3 { font-size: 20px; margin-bottom: var(--spacing-md); }

p {
  color: var(--color-text-dark);
  margin-bottom: var(--spacing-md);
  font-weight: 300;
}

.text-small {
  font-size: 13px;
  color: var(--color-text-gray);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
  padding-bottom: var(--spacing-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--color-text-dark);
}

/* 布局容器 */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

section {
  padding: var(--spacing-xl) 0;
}

/* 导航栏 */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container-width);
  padding: 0 var(--spacing-lg);
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
}

.nav-link {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-gray);
  padding: var(--spacing-xs) 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-text-dark);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-text-dark);
}

/* 移动端汉堡菜单 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.mobile-menu-icon {
  width: 24px;
  height: 2px;
  background-color: var(--color-text-dark);
  position: relative;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-dark);
  left: 0;
}

.mobile-menu-icon::before { top: -8px; }
.mobile-menu-icon::after { top: 8px; }

/* 英雄区域 (Hero Section) */
.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

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

.hero-content {
  text-align: center;
  color: var(--color-bg-white);
  z-index: 10;
  padding: var(--spacing-lg);
  background: rgba(0,0,0,0.2); /* 增加文字可读性 */
  backdrop-filter: blur(2px);
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  margin-bottom: var(--spacing-sm);
  color: var(--color-bg-white);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-bg-white);
  animation: bounce 2s infinite;
  opacity: 0.8;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}

/* 网格系统 */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-lg);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}

.gallery-img {
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-text {
  color: var(--color-bg-white);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.05em;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-text {
  transform: translateY(0);
}

/* 内容区块 */
.content-block {
  background-color: var(--color-bg-light);
  padding: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.flex-split {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.flex-split > * {
  flex: 1;
}

.text-content {
  padding: var(--spacing-lg);
}

/* 卡片样式 (用于风格图鉴/指南) */
.style-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

.style-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.card-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card-content {
  padding: var(--spacing-lg);
}

.card-title {
  font-size: 18px;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-dark);
}

.card-desc {
  font-size: 14px;
  color: var(--color-text-gray);
  line-height: 1.6;
}

/* 页脚 */
.site-footer {
  background-color: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-lg) 0;
  margin-top: var(--spacing-xxl);
  text-align: center;
}

.footer-content p {
  color: var(--color-text-gray);
  font-size: 12px;
  letter-spacing: 0.1em;
  margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--color-bg-white);
    padding: var(--spacing-lg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .flex-split {
    flex-direction: column;
  }

  .grid-gallery {
    grid-template-columns: repeat(1, 1fr);
  }
  
  .hero-title {
    font-size: 32px;
  }

  :root {
    --spacing-xl: 40px;
    --spacing-xxl: 60px;
  }
}

/* 趋势页面特有样式 */
.trend-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
  .trend-section {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .trend-section:nth-child(even) .trend-image {
    order: 2;
  }
}

.trend-image img {
  width: 100%;
  height: auto;
  min-height: 300px;
}

/* 动态槽位预置 (TS框架规范模拟) */
[data-slot="dynamic-content"] {
  display: contents;
}