/* 全局样式 - 高端时尚男装视觉指南 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  --primary-color: #2C2C2C;
  --secondary-color: #5A5A5A;
  --accent-color: #C4A486;
  --text-light: #FFFFFF;
  --text-muted: #999999;
  --bg-dark: #1A1A1A;
  --border-gradient: linear-gradient(to right, #5A5A5A, #2C2C2C);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  background-color: var(--primary-color);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 导航栏样式 */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(44, 44, 44, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 300;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

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

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent-color);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

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

/* 轮播图样式 */
.carousel {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  filter: contrast(1.1) brightness(0.9) saturate(0.8);
}

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

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

.carousel-caption {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}

.carousel-caption h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.carousel-caption p {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.2rem;
  opacity: 0.9;
}

/* 瀑布流布局 */
.waterfall {
  column-count: 3;
  column-gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.waterfall-item {
  break-inside: avoid;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.waterfall-item:hover {
  transform: translateY(-5px);
}

.waterfall-item img {
  width: 100%;
  display: block;
  filter: brightness(0.9);
  transition: all 0.3s ease;
}

.waterfall-item:hover img {
  filter: brightness(1.1);
  transform: scale(1.05);
}

.waterfall-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: var(--text-light);
  padding: 2rem 1rem 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.waterfall-item:hover .waterfall-caption {
  transform: translateY(0);
}

/* 面料展示 */
.fabric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.fabric-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.fabric-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(196, 164, 134, 0.3);
}

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

.fabric-card:hover img {
  transform: scale(1.2);
}

.fabric-info {
  padding: 1.5rem;
  text-align: center;
}

.fabric-tags {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.fabric-tag {
  background: var(--accent-color);
  color: var(--bg-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* 视觉叙事 */
.narrative-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.narrative-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: center;
}

.narrative-item:nth-child(even) {
  direction: rtl;
}

.narrative-item > * {
  direction: ltr;
}

.narrative-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.narrative-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.9;
}

.narrative-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.narrative-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.narrative-image:hover img {
  transform: rotate(2deg) scale(1.05);
}

/* 页脚 */
footer {
  background: var(--bg-dark);
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
  font-size: 12px;
  border-top: 1px solid var(--secondary-color);
  margin-top: 4rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .waterfall {
    column-count: 2;
  }
  
  .narrative-item {
    grid-template-columns: 1fr;
  }
  
  .carousel-caption h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  nav {
    gap: 1.5rem;
  }
  
  nav a {
    font-size: 0.9rem;
  }
  
  .carousel-caption h1 {
    font-size: 2rem;
  }
  
  .carousel-caption p {
    font-size: 1rem;
  }
  
  .waterfall {
    column-count: 1;
    padding: 1rem;
  }
  
  .fabric-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  .narrative-container {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  nav {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  main {
    margin-top: 120px;
  }
  
  .carousel-caption h1 {
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
  }
}

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

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

/* 页面切换动画 */
.page-transition {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  z-index: 9999;
  transition: left 0.4s ease;
}

.page-transition.active {
  left: 0;
}