/* 主样式文件 - 时尚男装展示平台 */

/* 色彩系统 */
:root {
  --primary-color: #2C2C2C;
  --secondary-color: #F5F5F5;
  --accent-color: #003366;
  --text-light: #FFFFFF;
  --text-dark: #333333;
  --border-light: #E5E5E5;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 导航栏样式 */
.nav-container {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
}

.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
  gap: 2rem;
  list-style: none;
  margin: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  transition: var(--transition-smooth);
  padding: 0.5rem 0;
}

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

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

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

/* 英雄区块 */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.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: -1;
}

.hero-content {
  text-align: center;
  color: var(--text-light);
  padding: 2rem;
}

/* 网格布局 */
.grid-container {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* 卡片样式 */
.card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card-content {
  padding: 1.5rem;
}

.card-title {
  margin: 0 0 0.5rem 0;
  color: var(--text-dark);
  font-size: 1.25rem;
}

.card-description {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* 按钮样式 */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 4px;
  transition: var(--transition-smooth);
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background: transparent;
  color: var(--primary-color);
}

.btn-secondary {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: transparent;
  color: var(--accent-color);
  text-decoration: none;
  border: 1px solid var(--accent-color);
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: var(--accent-color);
  color: var(--text-light);
}

/* 文章卡片 */
.article-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.article-card:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  padding: 2rem;
}

/* 穿搭主题区块 */
.styling-theme {
  margin-bottom: 3rem;
}

.theme-header {
  text-align: center;
  margin-bottom: 2rem;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* 分类标签 */
.category-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.category-tag {
  padding: 0.5rem 1.5rem;
  background: var(--secondary-color);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.category-tag:hover,
.category-tag.active {
  background: var(--accent-color);
  color: var(--text-light);
  border-color: var(--accent-color);
}

/* 技巧提示框 */
.tip-box {
  background: linear-gradient(135deg, var(--secondary-color), white);
  border-left: 4px solid var(--accent-color);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

/* 页脚 */
footer {
  text-align: right;
  padding: 2rem;
  color: var(--text-dark);
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-list {
    gap: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .grid-container {
    padding: 1rem;
    gap: 1rem;
  }

  .article-card {
    grid-template-columns: 1fr;
  }

  .article-image {
    height: 200px;
  }

  .hero-content {
    padding: 1rem;
  }

  .main-content {
    margin-top: 50px;
  }
}

@media (max-width: 480px) {
  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .category-nav {
    gap: 0.5rem;
  }

  .category-tag {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 图片懒加载动画 */
.lazy-image {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-image.loaded {
  opacity: 1;
}

/* 加载动画 */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}