/* 全局样式文件 - 现代极简风格 */

/* 自定义Tailwind配置 */
@layer base {
  :root {
    --color-primary: #2c2c2c;
    --color-secondary: #f5f5f5;
    --color-accent: #d4a574;
    --color-text: #333333;
    --color-text-light: #666666;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
  }

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

  html {
    scroll-behavior: smooth;
    font-size: 16px;
  }

  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--color-text);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
  }
}

/* 导航栏样式 */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

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

/* 主容器样式 */
.main-container {
  padding-top: 80px;
}

/* 全屏轮播区 */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

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

.slide-content {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  padding: 0 2rem;
}

.slide-text {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  line-height: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slider-controls {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: #ffffff;
  width: 30px;
  border-radius: 5px;
}

/* 内容区域通用样式 */
.content-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-xl) 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--color-primary);
}

/* 趋势精选区 */
.trend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-bottom: var(--spacing-lg);
}

.trend-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.trend-item:hover {
  transform: translateY(-10px);
}

.trend-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.trend-caption {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
  letter-spacing: 1px;
  line-height: 1.8;
}

/* 灵感专栏区 */
.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 4rem;
  align-items: start;
}

.inspiration-item {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.inspiration-text {
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text);
  letter-spacing: 1px;
}

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

/* 场景系列区 */
.series-section {
  margin-bottom: var(--spacing-xl);
}

.series-title {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}

.series-description {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
  letter-spacing: 1px;
  line-height: 1.8;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

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

.series-image:hover {
  transform: scale(1.03);
}

/* 细节特写区 */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.detail-item {
  position: relative;
  overflow: hidden;
}

.detail-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.detail-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
  letter-spacing: 1px;
}

/* 搭配意境区 */
.matching-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.matching-item {
  position: relative;
}

.matching-image {
  width: 100%;
  height: 550px;
  object-fit: cover;
}

.matching-caption {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--color-text);
  letter-spacing: 1px;
  line-height: 1.8;
}

/* 设计哲学区 */
.philosophy-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 2.2;
  color: var(--color-text);
  letter-spacing: 1px;
  text-align: justify;
}

.philosophy-content p {
  margin-bottom: 2rem;
}

/* 色彩故事区 */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

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

.color-swatch {
  width: 100%;
  height: 200px;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.color-item:hover .color-swatch {
  transform: scale(1.05);
}

.color-name {
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.color-description {
  font-size: 0.9rem;
  color: var(--color-text-light);
  letter-spacing: 1px;
  line-height: 1.8;
}

/* 材质图鉴区 */
.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 4rem;
}

.material-item {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.material-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.material-info {
  flex: 1;
}

.material-name {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.material-description {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.8;
  letter-spacing: 1px;
}

/* 页脚样式 */
.footer {
  text-align: center;
  padding: 3rem 2rem;
  background-color: var(--color-secondary);
  margin-top: var(--spacing-xl);
}

.footer-text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  letter-spacing: 1px;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
}

.back-to-top:hover {
  background: var(--color-accent);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  .slide-text {
    font-size: 1.1rem;
  }

  .trend-grid,
  .series-grid,
  .detail-grid,
  .matching-grid,
  .color-grid,
  .material-grid {
    grid-template-columns: 1fr;
  }

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

  .material-item {
    flex-direction: column;
  }

  .material-image {
    width: 100%;
  }

  .content-section {
    padding: var(--spacing-md) 1rem;
  }
}

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

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

/* 懒加载图片占位 */
.lazy-image {
  background: var(--color-secondary);
  min-height: 300px;
}

.lazy-image.loaded {
  background: none;
}