/* 全局样式文件 - 极简现代主义时尚网站 */

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

:root {
  --color-white: #FFFFFF;
  --color-black: #1A1A1A;
  --color-light-gray: #F5F5F5;
  --color-mid-gray: #888888;
  --color-warm-beige: #F8F0E3;
  --color-terracotta: #C75D4D;
  --color-navy: #0A2342;
  
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-white);
  color: var(--color-black);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.5rem 2rem;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--color-black);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--color-black);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

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

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

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

.carousel-slide.active {
  opacity: 1;
}

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

.carousel-caption {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--color-white);
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem 2.5rem;
  backdrop-filter: blur(5px);
  border-radius: 2px;
}

.carousel-caption h2 {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin: 0;
}

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

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

/* ========== 网格布局 ========== */
.grid-section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--color-black);
}

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

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

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

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

.grid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

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

.grid-text {
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 1.5px;
  text-align: center;
  padding: 0 1rem;
}

/* ========== 分屏设计（细节页） ========== */
.split-section {
  display: flex;
  min-height: 100vh;
  margin-top: 80px;
}

.split-content {
  flex: 1;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-image {
  flex: 1;
  background-size: cover;
  background-position: center;
}

.split-content h3 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

.split-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-mid-gray);
  max-width: 500px;
}

/* ========== 横向滚动（叙事页） ========== */
.narrative-container {
  margin-top: 80px;
  padding: 4rem 0;
}

.scroll-wrapper {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--color-mid-gray) var(--color-light-gray);
}

.scroll-wrapper::-webkit-scrollbar {
  height: 8px;
}

.scroll-wrapper::-webkit-scrollbar-track {
  background: var(--color-light-gray);
}

.scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(--color-mid-gray);
  border-radius: 4px;
}

.narrative-card {
  flex: 0 0 500px;
  scroll-snap-align: center;
  position: relative;
}

.narrative-card img {
  width: 100%;
  height: 700px;
  object-fit: cover;
}

.narrative-caption {
  margin-top: 1.5rem;
  text-align: center;
}

.narrative-caption h4 {
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.narrative-caption p {
  font-size: 0.95rem;
  color: var(--color-mid-gray);
  line-height: 1.6;
}

/* ========== 页脚 ========== */
.footer {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--color-mid-gray);
  font-size: 0.9rem;
  letter-spacing: 1px;
  border-top: 1px solid var(--color-light-gray);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1023px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .split-section {
    flex-direction: column;
  }
  
  .split-image {
    min-height: 400px;
  }
  
  .narrative-card {
    flex: 0 0 400px;
  }
  
  .narrative-card img {
    height: 600px;
  }
}

@media (max-width: 767px) {
  .navbar {
    padding: 1rem 1.5rem;
  }
  
  .nav-container {
    gap: 1.5rem;
  }
  
  .nav-link {
    font-size: 0.85rem;
  }
  
  .hero-carousel {
    height: 70vh;
    margin-top: 70px;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .grid-section {
    padding: 3rem 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  .split-content {
    padding: 2rem 1.5rem;
  }
  
  .split-content h3 {
    font-size: 1.5rem;
  }
  
  .narrative-card {
    flex: 0 0 300px;
  }
  
  .narrative-card img {
    height: 450px;
  }
}

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

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

/* ========== 辅助类 ========== */
.text-center {
  text-align: center;
}

.mt-5 {
  margin-top: 3rem;
}

.mb-5 {
  margin-bottom: 3rem;
}