/* 全局样式 */
:root {
  --primary-color: #8B7D7B;
  --secondary-color: #D2B48C;
  --accent-color: #EED5C4;
  --text-dark: #333333;
  --text-light: #666666;
  --background-light: #FDF5E6;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-dark);
  background-color: var(--background-light);
  line-height: 1.6;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

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

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.nav-link:hover {
  color: var(--primary-color);
}

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

/* 页面内容 */
.page-content {
  padding-top: 80px;
  min-height: 100vh;
}

/* 首页轮播 */
.hero-carousel {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

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

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

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

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 300;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
}

/* 卡片式布局 */
.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

.material-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.material-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--text-light);
  line-height: 1.6;
}

/* 网格布局 */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

.style-item {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.style-item:hover {
  transform: scale(1.05);
  box-shadow: var(--hover-shadow);
}

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

.style-title {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.style-description {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* 色彩板块 */
.color-section {
  padding: 3rem 0;
}

.color-group {
  margin-bottom: 4rem;
}

.color-header {
  text-align: center;
  margin-bottom: 2rem;
}

.color-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.color-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
}

.color-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.color-item {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.color-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--hover-shadow);
}

.color-preview {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.color-name {
  font-size: 1rem;
  color: var(--text-dark);
  text-align: center;
}

/* 页脚 */
footer {
  text-align: center;
  padding: 2rem 0;
  background: white;
  border-top: 1px solid #eee;
}

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

  .nav-link {
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .material-grid,
  .styles-grid {
    grid-template-columns: 1fr;
  }

  .color-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .color-title {
    font-size: 1.5rem;
  }

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