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

:root {
  --color-pearl: #FAFAFA;
  --color-gray: #E8E8E8;
  --color-sand: #F5E9DA;
  --color-mist: #E3F2FD;
  --color-charcoal: #424242;
  --transition-smooth: 300ms ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', 'Source Han Sans', sans-serif;
  font-weight: 300;
  background-color: var(--color-pearl);
  color: var(--color-charcoal);
  line-height: 1.8;
  overflow-x: hidden;
}

/* 字体加载 */
@import url('https://fonts.loli.net/css2?family=Playfair+Display:wght@400;600&family=Noto+Serif+SC:wght@400;500&family=Noto+Sans+SC:wght@300;400&display=swap');

h1, h2, h3 {
  font-family: 'Noto Serif SC', 'Source Han Serif', serif;
  font-weight: 500;
  letter-spacing: 0.05em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

/* 导航栏 */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1.5rem 5%;
  border-bottom: 1px solid var(--color-gray);
}

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

nav a {
  color: var(--color-charcoal);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  transition: var(--transition-smooth);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-charcoal);
  transition: var(--transition-smooth);
}

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

/* 容器布局 */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 5% 4rem;
}

section {
  margin-bottom: 8rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 轮播图 */
.hero-slider {
  position: relative;
  width: 100%;
  height: 85vh;
  overflow: hidden;
  margin-top: 70px;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

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

.slide-caption {
  position: absolute;
  bottom: 10%;
  left: 5%;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  max-width: 500px;
}

/* 欢迎区域 */
.welcome {
  text-align: center;
  padding: 5rem 10%;
  background: linear-gradient(135deg, var(--color-sand), var(--color-mist));
}

.welcome p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 2;
  color: var(--color-charcoal);
}

/* 主题卡片 */
.theme-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  padding: 3rem 0;
}

.theme-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.theme-card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.theme-card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.theme-card:hover img {
  transform: scale(1.05);
}

.theme-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 2rem;
  color: white;
}

/* 系列展示页 - 导航标签 */
.series-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-gray);
}

.series-nav button {
  background: none;
  border: none;
  color: var(--color-charcoal);
  font-size: 1rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: var(--transition-smooth);
}

.series-nav button:hover,
.series-nav button.active {
  color: var(--color-charcoal);
  border-bottom: 2px solid var(--color-charcoal);
}

/* 图片网格 */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

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

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.grid-item-desc {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: var(--transition-smooth);
}

.grid-item:hover .grid-item-desc {
  transform: translateY(0);
}

/* 筛选区域 */
.filter-section {
  background: var(--color-gray);
  padding: 2rem;
  margin-bottom: 3rem;
  border-radius: 2px;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.filter-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-buttons button {
  background: white;
  border: 1px solid var(--color-charcoal);
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-buttons button:hover,
.filter-buttons button.active {
  background: var(--color-charcoal);
  color: white;
}

/* 视觉焦点区域 */
.focal-quote {
  text-align: center;
  padding: 4rem 15%;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  line-height: 2.2;
  color: var(--color-charcoal);
  background: var(--color-mist);
  margin: 4rem 0;
}

/* 设计理念页 - 图文模块 */
.design-module {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 6rem;
  align-items: center;
}

.design-module:nth-child(even) {
  direction: rtl;
}

.design-module:nth-child(even) > * {
  direction: ltr;
}

.design-module img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.design-content h3 {
  margin-bottom: 1.5rem;
}

.design-content p {
  line-height: 2;
  color: var(--color-charcoal);
}

/* 引语区域 */
.philosophy-quote {
  text-align: center;
  padding: 5rem 10%;
  background: var(--color-sand);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  line-height: 2.5;
  color: var(--color-charcoal);
  margin: 4rem 0;
}

/* 页脚 */
footer {
  border-top: 1px solid var(--color-gray);
  padding: 3rem 5%;
  text-align: center;
  background: var(--color-pearl);
}

footer p {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  line-height: 1.8;
  color: var(--color-charcoal);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  nav ul {
    gap: 2rem;
  }
  
  .theme-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
  
  .design-module {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .design-module:nth-child(even) {
    direction: ltr;
  }
  
  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 3%;
  }
  
  nav ul {
    gap: 1rem;
    font-size: 0.85rem;
  }
  
  .container {
    padding: 5rem 3% 3rem;
  }
  
  .hero-slider {
    height: 60vh;
  }
  
  .welcome {
    padding: 3rem 5%;
  }
  
  .theme-cards {
    grid-template-columns: 1fr;
  }
  
  .theme-card img {
    height: 400px;
  }
  
  .series-nav {
    gap: 1rem;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-section {
    padding: 1.5rem;
  }
  
  .focal-quote,
  .philosophy-quote {
    padding: 3rem 5%;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    height: 50vh;
  }
  
  .slide-caption {
    bottom: 5%;
    left: 3%;
    max-width: 90%;
  }
  
  .theme-card img {
    height: 350px;
  }
  
  .design-module img {
    height: 400px;
  }
}