/* 全局样式 - 现代时尚男装展示网站 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Montserrat:wght@300;400;500;600&display=swap');

/* 设计令牌 */
:root {
  --color-primary: #1a1a1a;
  --color-secondary: #f5f5f5;
  --color-accent: #d4af37;
  --color-text: #333;
  --color-text-light: #666;
  --color-border: #e0e0e0;
  --font-family-zh: 'Noto Sans SC', sans-serif;
  --font-family-en: 'Montserrat', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.12);
  --border-radius: 8px;
}

/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-zh), var(--font-family-en), sans-serif;
  color: var(--color-text);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-primary);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  transition: var(--transition-smooth);
}

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

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

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

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 2px;
  background-color: var(--color-primary);
  margin: 3px 0;
  transition: 0.3s;
}

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

/* 首页轮播图 */
.hero-carousel {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease;
}

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

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

.carousel-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
}

.hero-title {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 2px;
  opacity: 0.9;
}

.carousel-nav {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 3;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.carousel-dot.active {
  background-color: var(--color-accent);
}

/* 精选系列 */
.featured-section {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 32px;
  font-weight: 300;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 20px;
}

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

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

.featured-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.featured-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 30px;
  transform: translateY(100%);
  transition: var(--transition-smooth);
}

.featured-card:hover .featured-overlay {
  transform: translateY(0);
}

.featured-name {
  color: white;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}

.featured-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
}

/* 瀑布流布局 */
.gallery-grid {
  columns: 3 300px;
  column-gap: 20px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-medium);
}

.gallery-image {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  padding: 20px;
  opacity: 0;
  transition: var(--transition-smooth);
}

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

/* 分类筛选 */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.filter-tab {
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition-smooth);
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-tab:hover,
.filter-tab.active {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* 文章样式 */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.article {
  margin-bottom: 80px;
}

.article-title {
  font-size: 36px;
  font-weight: 300;
  margin-bottom: 20px;
  letter-spacing: 1px;
  line-height: 1.3;
}

.article-meta {
  color: var(--color-text-light);
  font-size: 14px;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
}

.article-content p {
  margin-bottom: 20px;
}

.article-image {
  width: 100%;
  height: auto;
  margin: 40px 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-subtle);
}

/* 灯箱效果 */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 36px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  opacity: 0.7;
}

/* 视差滚动效果 */
.parallax-container {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  width: 100%;
  height: 120%;
  object-fit: cover;
}

.story-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  max-width: 600px;
  padding: 0 20px;
}

.story-title {
  font-size: 42px;
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.story-text {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
}

/* 页脚 */
footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
  letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .gallery-grid {
    columns: 2;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .article-title {
    font-size: 28px;
  }
  
  .story-title {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    columns: 1;
  }
  
  .filter-tabs {
    gap: 10px;
  }
  
  .filter-tab {
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .hero-carousel {
    height: 70vh;
  }
}

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

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b8941f;
}