/* ===========================
   全局样式文件 - Modern Elegance 视觉时尚馆
   配色方案、响应式布局、动画效果和组件样式
   =========================== */

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

:root {
  --bg-warm-white: #FAF9F7;
  --bg-light-grey: #F5F3F0;
  --text-dark: #333333;
  --accent-taupe: #8C7B6A;
  --divider: #E5E1DC;
  --text-light: #999999;
  --transition-fast: 300ms;
  --transition-normal: 500ms;
  --shadow-light: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-medium: 0 4px 16px rgba(0,0,0,0.12);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-warm-white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition-fast) ease;
}

a:hover {
  opacity: 0.7;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* 导航栏 */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(10px);
  transition: transform var(--transition-fast) ease;
}

.nav-bar.hidden {
  transform: translateY(-100%);
}

.logo {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo svg {
  width: 100%;
  height: 100%;
  stroke: var(--text-dark);
  stroke-width: 1.5;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  transition: transform var(--transition-fast) ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: all var(--transition-fast) ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* 全屏菜单 */
.fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-warm-white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal) ease;
}

.fullscreen-menu.active {
  opacity: 1;
  visibility: visible;
}

.fullscreen-menu a {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 2px;
  position: relative;
  transition: color var(--transition-fast) ease;
}

.fullscreen-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-taupe);
  transition: width var(--transition-fast) ease;
}

.fullscreen-menu a:hover {
  color: var(--accent-taupe);
  opacity: 1;
}

.fullscreen-menu a:hover::after {
  width: 100%;
}

/* 首页轮播 */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

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

.slide.active {
  opacity: 1;
}

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

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 10;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 8px;
  margin-bottom: 60px;
}

.hero-nav {
  display: flex;
  gap: 32px;
  justify-content: center;
}

.hero-nav a {
  padding: 16px 32px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 2px;
  font-size: 16px;
  letter-spacing: 2px;
  transition: all var(--transition-fast) ease;
}

.hero-nav a:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
  opacity: 1;
}

/* 滚动提示 */
.scroll-hint {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: white;
  opacity: 0.6;
  animation: float 2s ease-in-out infinite;
}

.scroll-hint span {
  font-size: 12px;
  letter-spacing: 2px;
}

.scroll-hint svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* 内容容器 */
.page-container {
  min-height: 100vh;
  padding: 120px 48px 80px;
}

.page-title {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: 80px;
}

/* 场景分类网格 */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-bottom: 120px;
}

.scene-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  border-radius: 2px;
  cursor: pointer;
  transition: transform var(--transition-fast) ease;
}

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

.scene-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal) ease;
}

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

.scene-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
}

.scene-overlay h3 {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.scene-overlay p {
  font-size: 14px;
  opacity: 0.8;
  letter-spacing: 1px;
}

/* 细节画廊 */
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 120px;
}

.detail-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-fast) ease;
}

.detail-item:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px);
}

.detail-item img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.detail-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 14px;
  letter-spacing: 1px;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: all var(--transition-fast) ease;
}

.detail-item:hover .detail-caption {
  opacity: 1;
  transform: translateY(0);
}

/* 色彩故事 */
.color-story {
  margin-bottom: 120px;
}

.color-story h2 {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 48px;
}

.color-palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
}

.palette-item h3 {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 24px;
  text-align: center;
}

.palette-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.palette-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  transition: transform var(--transition-fast) ease;
}

.palette-images img:hover {
  transform: scale(1.05);
}

/* 时间线 */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 120px;
  padding: 48px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--divider);
}

.timeline-item {
  position: relative;
  margin-bottom: 80px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  flex: 1;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  text-align: left;
}

.timeline-content h3 {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--accent-taupe);
  border-radius: 50%;
  border: 3px solid var(--bg-warm-white);
  z-index: 1;
}

/* 材质画廊 */
.material-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  margin-bottom: 120px;
}

.material-item {
  text-align: center;
}

.material-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-fast) ease;
}

.material-item:hover img {
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px);
}

.material-item h3 {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.material-item p {
  font-size: 14px;
  color: var(--text-light);
  font-style: italic;
}

/* 页脚 */
.footer {
  text-align: center;
  padding: 60px 48px 40px;
  border-top: 1px solid var(--divider);
}

.footer p {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 1px;
  line-height: 2;
}

/* 图片懒加载 */
.lazy-image {
  opacity: 0;
  transition: opacity var(--transition-normal) ease;
}

.lazy-image.loaded {
  opacity: 1;
}

/* 响应式设计 - 平板 */
@media (max-width: 1199px) {
  .nav-bar {
    padding: 20px 32px;
  }
  
  .page-container {
    padding: 100px 32px 60px;
  }
  
  .hero-content h1 {
    font-size: 36px;
    letter-spacing: 6px;
  }
  
  .scene-grid {
    gap: 32px;
  }
  
  .timeline::before {
    left: 24px;
  }
  
  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: row;
    padding-left: 64px;
  }
  
  .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    text-align: left;
  }
  
  .timeline-dot {
    left: 24px;
  }
}

/* 响应式设计 - 手机 */
@media (max-width: 767px) {
  .nav-bar {
    padding: 16px 24px;
  }
  
  .page-container {
    padding: 80px 24px 40px;
  }
  
  .page-title {
    font-size: 24px;
    letter-spacing: 3px;
    margin-bottom: 48px;
  }
  
  .hero-content h1 {
    font-size: 24px;
    letter-spacing: 4px;
    margin-bottom: 40px;
  }
  
  .hero-nav {
    flex-direction: column;
    gap: 16px;
  }
  
  .hero-nav a {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .fullscreen-menu a {
    font-size: 24px;
  }
  
  .scene-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 80px;
  }
  
  .detail-gallery {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 80px;
  }
  
  .color-palette {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .material-gallery {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 80px;
  }
  
  .timeline-item {
    padding-left: 48px;
  }
  
  .timeline-dot {
    left: 18px;
  }
  
  .footer {
    padding: 40px 24px 30px;
  }
}