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

/* CSS变量定义 */
:root {
  --primary-black: #2F2F2F;
  --cement-gray: #E5E5E5;
  --bronze-gold: #B8A27A;
  --white: #FFFFFF;
  --text-primary: #333333;
  --text-secondary: #666666;
  --border-light: #F0F0F0;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  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;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.navbar:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-link {
  color: var(--primary-black);
  text-decoration: none;
  font-weight: 400;
  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(--bronze-gold);
  transition: var(--transition-smooth);
}

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

/* 容器和布局 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

/* 图片样式 */
.image-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(47, 47, 47, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.image-card:hover .image-overlay {
  opacity: 1;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary-black);
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
  transition: var(--transition-smooth);
  font-weight: 400;
  text-align: center;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn:hover {
  background: var(--bronze-gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(184, 162, 122, 0.3);
}

/* 文字样式 */
h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-black);
  margin-bottom: 2rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-black);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-black);
  margin-bottom: 1rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.text-center {
  text-align: center;
}

.text-overlay {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 首页样式 */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  position: absolute;
  bottom: 4rem;
  left: 4rem;
  z-index: 2;
}

.banner-section {
  text-align: center;
  padding: 6rem 0;
  background: var(--cement-gray);
}

/* 产品展示样式 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
}

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

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

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-black);
  margin-bottom: 0.5rem;
}

.product-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.product-detail {
  background: var(--cement-gray);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-primary);
}

/* 分类导航 */
.category-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.category-btn {
  padding: 0.8rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  color: var(--text-primary);
}

.category-btn:hover,
.category-btn.active {
  background: var(--primary-black);
  color: var(--white);
  border-color: var(--primary-black);
}

/* 风格指南样式 */
.style-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 3rem;
}

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

.style-content {
  padding: 2rem;
}

.style-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-black);
  margin-bottom: 1rem;
}

.style-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.style-feature {
  display: inline-block;
  background: var(--cement-gray);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* 洞察页面样式 */
.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.insight-column {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 3rem 0;
  border-radius: 8px;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.data-viz {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--cement-gray);
  border-radius: 8px;
}

.color-bar {
  display: flex;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}

.color-segment {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
}

/* 关于页面样式 */
.about-hero {
  padding: 8rem 0;
  background: var(--cement-gray);
  text-align: center;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin: 2rem 0;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.quality-card {
  text-align: center;
}

.quality-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* 页脚样式 */
footer {
  background: var(--primary-black);
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    gap: 1rem;
  }

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

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

  .hero-content {
    left: 2rem;
    bottom: 2rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .text-overlay {
    font-size: 1.2rem;
    left: 1rem;
    bottom: 1rem;
  }

  .category-nav {
    gap: 0.5rem;
  }

  .category-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .navbar {
    padding: 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  h1 {
    font-size: 1.5rem;
  }

  .hero {
    height: 70vh;
  }
}

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

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

/* 懒加载图片 */
.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy.loaded {
  opacity: 1;
}