/* Tailwind CSS配置 */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* 自定义CSS变量 - 配色方案 */
:root {
  --color-bg-primary: #f5f5f5;
  --color-text-primary: #222222;
  --color-neutral: #e8e8e8;
  --color-accent-gold: #c0a080;
  --color-accent-gray: #a8a8a8;
}

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

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

/* 导航栏样式 */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-neutral);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  transition: all 0.3s ease;
}

nav a {
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
}

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

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

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

/* 页脚样式 */
footer {
  background-color: var(--color-text-primary);
  color: var(--color-bg-primary);
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  font-size: 0.875rem;
  letter-spacing: 1px;
}

/* 图片容器通用样式 */
.image-container {
  overflow: hidden;
  position: relative;
}

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

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

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

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

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

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

.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  padding: 3rem 2rem;
  color: white;
  text-align: center;
}

.carousel-overlay h1 {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.carousel-overlay p {
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* 网格布局样式 */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.grid-item {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.grid-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.grid-item-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

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

.grid-item-content h3 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

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

/* 场景化搭配样式 */
.style-guide-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.style-guide-item:nth-child(even) > * {
  direction: ltr;
}

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

.style-guide-text h2 {
  font-size: 1.875rem;
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.style-guide-text p {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

/* 页面内容区域 */
.content-section {
  padding-top: 5rem;
  min-height: calc(100vh - 5rem);
}

.section-header {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.section-header h1 {
  font-size: 2.25rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.0625rem;
  color: #666;
  line-height: 1.8;
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
  nav {
    gap: 2rem;
    padding: 1.25rem 1.5rem;
  }

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

  .carousel-overlay p {
    font-size: 1rem;
  }

  .style-guide-item {
    grid-template-columns: 1fr;
  }

  .style-guide-item:nth-child(even) {
    direction: ltr;
  }
}

/* 响应式设计 - 移动端 */
@media (max-width: 768px) {
  nav {
    gap: 1.5rem;
    padding: 1rem;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 0.875rem;
  }

  .carousel-overlay {
    padding: 2rem 1rem;
  }

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

  .carousel-overlay p {
    font-size: 0.875rem;
  }

  .grid-container {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1.5rem;
  }

  .grid-item-image {
    height: 300px;
  }

  .section-header {
    padding: 2rem 1rem;
  }

  .section-header h1 {
    font-size: 1.75rem;
  }

  .section-header p {
    font-size: 0.9375rem;
  }

  .style-guide-section {
    padding: 2rem 1rem;
  }

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

  .style-guide-text h2 {
    font-size: 1.5rem;
  }

  .style-guide-text p {
    font-size: 0.9375rem;
  }
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

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

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