/* 设计令牌 - 颜色 */
:root {
  --primary-color: #2c2c2c;
  --secondary-color: #1a1a1a;
  --accent-color: #4a5568;
  --neutral-light: #f5f5f5;
  --neutral-medium: #e2e8f0;
  --neutral-dark: #718096;
  --background: #ffffff;
  --text-primary: #2c2c2c;
  --text-secondary: #4a5568;
  --camel: #c19a6b;
}

/* 设计令牌 - 间距 */
:root {
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;
}

/* 设计令牌 - 排版 */
:root {
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
}

/* 设计令牌 - 圆角 */
:root {
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
}

/* 设计令牌 - 阴影 */
:root {
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* 全局样式 */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background-color: var(--background);
  line-height: var(--line-height-normal);
  margin: 0;
  padding: 0;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--neutral-light);
}

.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--font-size-base);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

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

.nav-link:hover {
  color: var(--accent-color);
}

.nav-link:hover::after {
  width: 100%;
}

/* 主内容区域 */
.main-content {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

/* Hero 区域 */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
  background: linear-gradient(135deg, var(--neutral-light) 0%, var(--background) 100%);
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: var(--space-xl);
  line-height: var(--line-height-relaxed);
}

/* 卡片样式 */
.card {
  background: var(--background);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

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

.card-title {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--primary-color);
}

.card-description {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* 网格布局 */
.grid {
  display: grid;
  gap: var(--space-lg);
  padding: var(--space-lg);
}

.grid-cols-1 {
  grid-template-columns: 1fr;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* 区块样式 */
.section {
  padding: var(--space-xxl) var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--primary-color);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--space-xxl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 风格板块 */
.style-block {
  margin-bottom: var(--space-xxl);
  padding: var(--space-xl);
  background: var(--neutral-light);
  border-radius: var(--radius-lg);
}

.style-title {
  font-size: var(--font-size-3xl);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--primary-color);
}

.style-description {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* 单品展示 */
.garment-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg);
  background: var(--background);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.garment-item:hover {
  background: var(--neutral-light);
}

.garment-image {
  width: 100%;
  max-width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.garment-name {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--primary-color);
}

.garment-description {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 500px;
}

/* 页脚 */
.footer {
  text-align: center;
  padding: var(--space-lg);
  color: var(--neutral-dark);
  font-size: var(--font-size-sm);
  background: var(--neutral-light);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-title {
    font-size: var(--font-size-4xl);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding: var(--space-xl) var(--space-md);
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .section {
    padding: var(--space-xl) var(--space-md);
  }
  
  .style-block {
    padding: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .main-content {
    margin-top: 120px;
  }
  
  .navbar {
    padding: var(--space-sm);
  }
  
  .hero-title {
    font-size: var(--font-size-2xl);
  }
  
  .section-title {
    font-size: var(--font-size-3xl);
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* 加载状态 */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.loading::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid var(--neutral-light);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}