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

:root {
  --primary-dark: #333333;
  --primary-white: #FFFFFF;
  --light-gray: #F5F5F5;
  --off-white: #FAF9F6;
  --accent-blue: #1A365D;
  --accent-green: #1B4332;
  --font-heading: 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', sans-serif;
}

/* 全局字体覆盖 */
body {
  font-family: var(--font-body);
  color: var(--primary-dark);
  background-color: var(--off-white);
}

/* 导航样式 */
nav {
  background-color: var(--primary-white);
  border-bottom: 1px solid #eee;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

nav a {
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 400;
  font-size: 1rem;
  transition: color 0.3s ease;
  font-family: var(--font-heading);
}

nav a:hover {
  color: var(--accent-blue);
}

/* 主容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 英雄区域轮播 */
.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  margin-bottom: 4rem;
}

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

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

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

.carousel-overlay {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--primary-white);
  z-index: 10;
}

.carousel-overlay h1 {
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

/* 网格布局 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.grid-item {
  background-color: var(--primary-white);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.grid-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.grid-item-content {
  padding: 1.5rem;
}

.grid-item h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  color: var(--primary-dark);
}

.grid-item p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

/* 系列展示样式 */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.series-card {
  text-align: center;
  background: var(--primary-white);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.series-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.series-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.series-info {
  padding: 2rem;
}

.series-info h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

/* 单品详情样式 */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 3rem 0;
}

.product-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.product-images img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

.product-info h2 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.product-info p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: #555;
}

/* 穿搭灵感样式 */
.outfit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin: 3rem 0;
}

.outfit-card {
  background: var(--primary-white);
  border-radius: 12px;
  overflow: hidden;
}

.outfit-card img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.outfit-details {
  padding: 2rem;
}

.outfit-details h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.style-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  background-color: var(--light-gray);
  color: var(--primary-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 300;
}

/* 工艺细节样式 */
.craft-section {
  margin: 4rem 0;
}

.craft-hero {
  height: 500px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 3rem;
}

.craft-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.craft-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.craft-item h4 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--primary-dark);
  color: var(--primary-white);
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--accent-blue);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-dark);
  color: var(--primary-dark);
}

.btn-outline:hover {
  background-color: var(--primary-dark);
  color: var(--primary-white);
}

/* 页脚样式 */
footer {
  background-color: var(--primary-white);
  border-top: 1px solid #eee;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
  color: #666;
  font-size: 0.9rem;
}

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

  .carousel-overlay h1 {
    font-size: 2rem;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-images {
    grid-template-columns: 1fr;
  }

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

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

  .hero-carousel {
    height: 50vh;
    min-height: 400px;
  }
}

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

  .series-info,
  .outfit-details {
    padding: 1.5rem;
  }

  .carousel-overlay {
    bottom: 2rem;
  }
}

/* 加载动画 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 文本样式 */
.text-center {
  text-align: center;
}

.text-large {
  font-size: 1.2rem;
  line-height: 1.8;
}

.text-muted {
  color: #666;
}

/* 间距工具类 */
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }