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

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

body {
  font-family: 'Source Han Sans CN', 'Noto Sans SC', sans-serif;
  background-color: #F9F7F5;
  color: #2C2C2C;
  line-height: 1.8;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: 'Noto Serif SC', serif;
  font-weight: 500;
}

/* 导航栏 */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(249, 247, 245, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(232, 229, 225, 0.5);
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: #2C2C2C;
}

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

.nav-links a {
  color: #5A5A5A;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #2C2C2C;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: #2C2C2C;
  transition: width 0.3s ease;
}

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

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

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

.slide.active {
  opacity: 1;
}

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

.slide-content {
  position: absolute;
  bottom: 10%;
  left: 5%;
  color: #F9F7F5;
  max-width: 600px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.slide-content h2 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.slide-content p {
  font-size: 1.3rem;
  font-weight: 300;
}

.slider-controls {
  position: absolute;
  bottom: 5%;
  right: 5%;
  display: flex;
  gap: 1rem;
}

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

.slider-dot.active {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.2);
}

/* 首页图文模块 */
.home-modules {
  padding: 5rem 5%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

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

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

.module:hover img {
  transform: scale(1.03);
}

.module-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(60, 47, 40, 0.85), transparent);
  color: #F9F7F5;
}

.module-overlay h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.module-overlay p {
  font-size: 1rem;
  font-weight: 300;
}

/* 系列页面 */
.series-container {
  padding: 120px 5% 5rem;
}

.series-header {
  text-align: center;
  margin-bottom: 4rem;
}

.series-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.series-header p {
  font-size: 1.2rem;
  color: #5A5A5A;
  font-weight: 300;
}

.series-section {
  margin-bottom: 6rem;
}

.series-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #3C2F28;
}

.series-desc {
  font-size: 1.1rem;
  color: #5A5A5A;
  margin-bottom: 2rem;
  max-width: 800px;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

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

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

.series-grid-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(60, 47, 40, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.series-grid-item:hover::after {
  opacity: 1;
}

/* 模态框 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.modal-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #F9F7F5;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  transition: transform 0.2s ease;
}

.modal-close:hover {
  transform: scale(1.2);
}

/* 哲学页面 */
.philosophy-container {
  padding: 120px 0 5rem;
}

.philosophy-module {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 5rem 5%;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.philosophy-module.visible {
  opacity: 1;
  transform: translateY(0);
}

.philosophy-module:nth-child(even) {
  background: #F0EDE9;
}

.philosophy-full {
  position: relative;
  width: 100%;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.philosophy-full img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.philosophy-full-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #F9F7F5;
  max-width: 800px;
  padding: 0 2rem;
}

.philosophy-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.philosophy-split.reverse {
  direction: rtl;
}

.philosophy-split.reverse > * {
  direction: ltr;
}

.philosophy-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #3C2F28;
}

.philosophy-text p {
  font-size: 1.1rem;
  line-height: 2;
  color: #5A5A5A;
}

.philosophy-image {
  width: 100%;
  aspect-ratio: 4/5;
}

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

.philosophy-quote {
  text-align: center;
  padding: 4rem 2rem;
}

.philosophy-quote blockquote {
  font-size: 2rem;
  font-family: 'Noto Serif SC', serif;
  font-weight: 400;
  color: #3C2F28;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
}

/* 页脚 */
.footer {
  text-align: center;
  padding: 3rem 5%;
  color: #8C8C8C;
  font-size: 0.9rem;
  opacity: 0.8;
  border-top: 1px solid rgba(232, 229, 225, 0.5);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .home-modules {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .series-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .philosophy-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .philosophy-split.reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .nav {
    padding: 1rem 3%;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
  
  .hero-slider {
    height: 70vh;
    margin-top: 60px;
  }
  
  .slide-content h2 {
    font-size: 2rem;
  }
  
  .slide-content p {
    font-size: 1rem;
  }
  
  .home-modules {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .series-container,
  .philosophy-container {
    padding-top: 100px;
  }
  
  .series-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .series-header h1 {
    font-size: 2rem;
  }
  
  .series-title {
    font-size: 1.8rem;
  }
  
  .philosophy-text h2 {
    font-size: 1.8rem;
  }
  
  .philosophy-quote blockquote {
    font-size: 1.4rem;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F9F7F5;
}

::-webkit-scrollbar-thumb {
  background: #D9C8B6;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #B8A188;
}