/* 全局变量定义 */
:root {
  --color-bg-primary: #F8F9FA;
  --color-bg-secondary: #FFFFFF;
  --color-text-primary: #2C3E50;
  --color-text-secondary: #7F8C8D;
  --color-text-light: #BDC3C7;
  --color-accent-1: #E27D60;
  --color-accent-2: #E8A87C;
  --color-accent-3: #C38D9E;
  --color-shadow: rgba(0, 0, 0, 0.1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1400px;
}

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

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

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

/* 容器 */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* 导航栏 */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px var(--color-shadow);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
  position: relative;
  padding-bottom: 0.25rem;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent-1);
  transition: var(--transition-smooth);
}

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

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

.page.active {
  display: block;
}

/* 首页 - 轮播图 */
.hero-slider {
  position: relative;
  height: calc(100vh - 80px);
  overflow: hidden;
  background: var(--color-bg-secondary);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

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

.slider-nav {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

/* 首页 - 文案区 */
.hero-content {
  padding: 5rem 2rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
  color: var(--color-text-primary);
}

.hero-text {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  text-align: justify;
}

.hero-cta {
  display: inline-flex;
  gap: 2rem;
  margin-top: 3rem;
}

.cta-button {
  padding: 1rem 2.5rem;
  border: 2px solid var(--color-text-primary);
  background: transparent;
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.1em;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.cta-button:hover {
  background: var(--color-text-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--color-shadow);
}

/* 系列展示页 */
.series-header {
  text-align: center;
  padding: 4rem 2rem 3rem;
}

.series-title {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.series-item {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-secondary);
  cursor: pointer;
  aspect-ratio: 3/4;
}

.series-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.series-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 2rem;
  opacity: 0;
  transition: var(--transition-smooth);
}

.series-item:hover .series-overlay {
  opacity: 1;
}

.series-category {
  color: white;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.series-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 系列详细描述 */
.series-details {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

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

.series-section-title {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--color-accent-1);
}

.series-section-text {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--color-text-secondary);
  text-align: justify;
}

/* 风尚哲学页 */
.philosophy-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

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

.philosophy-title {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.philosophy-images {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.philosophy-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: var(--color-bg-secondary);
}

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

.philosophy-image:hover img {
  transform: scale(1.03);
}

.philosophy-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.philosophy-chapter {
  border-left: 3px solid var(--color-accent-2);
  padding-left: 2rem;
}

.philosophy-chapter-title {
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--color-accent-1);
  letter-spacing: 0.05em;
}

.philosophy-chapter-text {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--color-text-secondary);
  text-align: justify;
}

/* 细节展示 */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  padding: 0 2rem;
}

.detail-item {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-bg-secondary);
}

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

.detail-item:hover img {
  transform: scale(1.1);
}

/* 页脚 */
.footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(189, 195, 199, 0.3);
  background: var(--color-bg-secondary);
}

.footer-text {
  color: var(--color-text-light);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  font-weight: 300;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .series-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
  .nav-container {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-title,
  .series-title,
  .philosophy-title {
    font-size: 2rem;
  }
  
  .hero-content {
    padding: 3rem 1.5rem;
  }
  
  .hero-text {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cta-button {
    padding: 0.8rem 2rem;
  }
  
  .series-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  .details-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .nav-container {
    padding: 1rem;
    gap: 1.5rem;
  }
  
  .nav-link {
    font-size: 0.9rem;
  }
  
  .philosophy-chapter {
    padding-left: 1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title,
  .series-title,
  .philosophy-title {
    font-size: 1.6rem;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-slider {
    height: 60vh;
  }
  
  .philosophy-image {
    height: 300px;
  }
}

/* 加载动画 */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 平滑滚动效果 */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}