/* 全局样式文件 - 现代极简设计 */

/* 基础重置与字体配置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-white: #FFFFFF;
  --color-light-gray: #F8F8F8;
  --color-dark-gray: #333333;
  --color-beige: #FAF9F6;
  --color-terracotta: #C17C74;
  --font-title: 'Noto Serif SC', serif;
  --font-body: 'Noto Sans SC', sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark-gray);
  background-color: var(--color-white);
  line-height: 1.8;
  overflow-x: hidden;
}

/* 导航栏样式 */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-dark-gray);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-terracotta);
}

/* 页面内容容器 */
.page-container {
  margin-top: 80px;
  min-height: calc(100vh - 160px);
}

/* 轮播图容器 */
.carousel-container {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  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;
  object-position: center;
}

.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator.active {
  background-color: var(--color-terracotta);
}

/* 内容区域样式 */
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.welcome-text h1 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--color-dark-gray);
}

.welcome-text p {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--color-dark-gray);
  margin-bottom: 1.5rem;
}

/* 网格布局 */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.grid-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.grid-item:hover img {
  transform: scale(1.03);
}

/* 时尚理念页面布局 */
.philosophy-layout {
  display: flex;
  min-height: 100vh;
  margin-top: 80px;
}

.philosophy-image {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
}

.philosophy-content {
  flex: 1;
  background-color: rgba(250, 249, 246, 0.95);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.philosophy-content h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-dark-gray);
}

.philosophy-content p {
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 2rem;
  color: var(--color-dark-gray);
}

/* 页脚样式 */
footer {
  background-color: var(--color-light-gray);
  text-align: center;
  padding: 2rem;
  color: var(--color-dark-gray);
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 1199px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .main-nav ul {
    gap: 1.5rem;
  }

  .main-nav a {
    font-size: 0.9rem;
  }

  .carousel-container {
    height: 70vh;
  }

  .content-section {
    padding: 2rem 1.5rem;
  }

  .welcome-text h1 {
    font-size: 1.8rem;
  }

  .welcome-text p {
    font-size: 1rem;
  }

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

  .philosophy-layout {
    flex-direction: column;
  }

  .philosophy-image {
    min-height: 40vh;
  }

  .philosophy-content {
    padding: 2rem;
  }

  .philosophy-content h2 {
    font-size: 1.5rem;
  }

  .philosophy-content p {
    font-size: 0.95rem;
  }
}

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

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

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