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

:root {
  --color-ivory: #FFFFF0;
  --color-cashmere: #F5F5F5;
  --color-oat: #E3D9C6;
  --color-matte-black: #2A2A2A;
  --color-text-secondary: #666666;
  --color-text-light: rgba(42, 42, 42, 0.85);
  --font-title-en: 'Playfair Display', serif;
  --font-body-en: 'Inter', sans-serif;
  --font-title-zh: 'Noto Serif SC', serif;
  --font-body-zh: 'Alibaba PuHuiTi', sans-serif;
  --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.3s ease;
}

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

body {
  font-family: var(--font-body-en), var(--font-body-zh), sans-serif;
  background-color: var(--color-ivory);
  color: var(--color-text-light);
  line-height: 1.8;
  overflow-x: hidden;
}

/* ==================== 字体引入 ==================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&display=swap');

/* ==================== 导航栏 ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 240, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(42, 42, 42, 0.1);
}

.navbar-brand {
  font-family: var(--font-title-en);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-matte-black);
  text-decoration: none;
}

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

.navbar-links a {
  position: relative;
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-matte-black);
  text-decoration: none;
  transition: var(--transition-fast);
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--color-matte-black);
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

.navbar-links a:hover::after {
  width: 100%;
}

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

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

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--color-ivory);
  z-index: 10;
  background: rgba(42, 42, 42, 0.3);
  padding: 2rem 4rem;
  backdrop-filter: blur(5px);
}

.hero-title {
  font-family: var(--font-title-zh);
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 0;
}

.slider-indicators {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  gap: 0.8rem;
  z-index: 20;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 240, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
}

.indicator.active {
  background: var(--color-ivory);
  transform: scale(1.2);
}

/* ==================== 内容区域 ==================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 5%;
}

.section-title {
  font-family: var(--font-title-zh);
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: 0.08em;
}

/* ==================== 精选系列网格 ==================== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}

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

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

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

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

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

.grid-title {
  font-family: var(--font-title-zh);
  font-size: 1.5rem;
  color: var(--color-ivory);
  margin-bottom: 0.5rem;
}

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

/* ==================== 横向滚动画廊 ==================== */
.gallery-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 2rem 0;
  scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 auto;
  width: 400px;
  height: 500px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: var(--color-cashmere);
}

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

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

/* ==================== 侧边栏导航 ==================== */
.page-layout {
  display: flex;
  gap: 3rem;
  margin-top: 100px;
}

.sidebar {
  position: sticky;
  top: 100px;
  width: 250px;
  height: fit-content;
  padding: 2rem;
  background: var(--color-cashmere);
}

.sidebar-title {
  font-family: var(--font-title-zh);
  font-size: 1.3rem;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li {
  margin-bottom: 1.5rem;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.sidebar-menu a:hover {
  color: var(--color-matte-black);
  transform: translateX(5px);
}

.sidebar-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ==================== 瀑布流布局 ==================== */
.masonry-grid {
  flex: 1;
  columns: 3;
  column-gap: 2rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 2rem;
  background: var(--color-cashmere);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-fast);
}

.masonry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(42, 42, 42, 0.15);
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: var(--transition-smooth);
}

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

.masonry-caption {
  padding: 1.5rem;
}

.caption-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.3rem;
}

.caption-text {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* ==================== 主题策展区 ==================== */
.theme-section {
  margin: 5rem 0;
}

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

.theme-title {
  font-family: var(--font-title-zh);
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

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

.theme-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--color-cashmere);
  cursor: pointer;
}

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

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

.theme-card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(42, 42, 42, 0.8), transparent);
  color: var(--color-ivory);
  font-family: var(--font-title-zh);
  font-size: 1.5rem;
}

/* ==================== 时间轴交互 ==================== */
.timeline-container {
  margin: 5rem 0;
  padding: 3rem;
  background: var(--color-cashmere);
}

.timeline-slider {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, var(--color-oat) 0%, var(--color-matte-black) 100%);
  outline: none;
  margin: 2rem 0;
}

.timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--color-matte-black);
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.timeline-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.timeline-display {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
}

.timeline-image {
  flex: 1;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--color-ivory);
}

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

/* ==================== 灵感板 ==================== */
.inspiration-board {
  margin: 5rem 0;
}

.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.inspiration-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-cashmere);
  cursor: pointer;
}

.inspiration-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.favorite-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 240, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10;
}

.favorite-icon:hover {
  background: var(--color-ivory);
  transform: scale(1.1);
}

.favorite-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-matte-black);
  fill: none;
  stroke-width: 2;
}

.favorite-icon.active svg {
  fill: var(--color-matte-black);
}

.download-btn {
  display: block;
  margin: 3rem auto 0;
  padding: 1rem 3rem;
  background: var(--color-matte-black);
  color: var(--color-ivory);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font-body-zh);
  transition: var(--transition-fast);
}

.download-btn:hover {
  background: var(--color-text-secondary);
  transform: translateY(-2px);
}

/* ==================== 图片放大模态框 ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 80%;
  max-height: 80%;
  animation: zoomIn 0.4s ease;
}

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

.modal-close {
  position: absolute;
  top: -3rem;
  right: 0;
  color: var(--color-ivory);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.modal-info {
  position: absolute;
  bottom: -4rem;
  left: 0;
  right: 0;
  color: var(--color-ivory);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==================== 回到顶部按钮 ==================== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--color-matte-black);
  color: var(--color-ivory);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 999;
}

.scroll-top.visible {
  display: flex;
}

.scroll-top:hover {
  background: var(--color-text-secondary);
  transform: translateY(-5px);
}

/* ==================== 页脚 ==================== */
.footer {
  text-align: center;
  padding: 2.5rem 0;
  color: #999999;
  font-size: 0.75rem;
  border-top: 1px solid rgba(42, 42, 42, 0.1);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
  .featured-grid,
  .theme-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .masonry-grid {
    columns: 2;
  }
  
  .navbar-links {
    gap: 1.5rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 3%;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .navbar-links {
    gap: 1rem;
    font-size: 0.9rem;
  }
  
  .featured-grid,
  .theme-cards,
  .inspiration-grid {
    grid-template-columns: 1fr;
  }
  
  .masonry-grid {
    columns: 1;
  }
  
  .page-layout {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    position: static;
  }
  
  .gallery-item {
    width: 300px;
    height: 400px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .timeline-display {
    flex-direction: column;
  }
  
  .container {
    padding: 3rem 3%;
  }
}