/* 
 * 现代风尚典藏馆 - 全局样式表
 * 风格：极简主义、艺术画廊、沉浸式
 * 版权：© 2026
 */

:root {
  /* 色彩系统 */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f5f5f0; /* 浅米灰 */
  --color-bg-sand: #e8e6e1; /* 淡沙色 */
  
  --color-text-primary: #1a1a1a; /* 炭黑 */
  --color-text-secondary: #555555; /* 深灰 */
  --color-text-light: #888888;
  
  --color-accent: #a85b4b; /* 砖红 - 点缀色 */
  --color-accent-hover: #8e4d3f;
  
  --color-border: #e0e0e0;
  
  /* 字体系统 */
  --font-primary: "Helvetica Neue", "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Times New Roman", "Songti SC", serif; /* 用于部分诗意描述 */
  
  /* 间距与布局 */
  --spacing-unit: 8px;
  --container-width: 1200px;
  --header-height: 80px;
  
  /* 动效 */
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-base: 0.3s ease-out;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  opacity: 0;
  animation: fadeIn 1.2s ease-out forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

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

ul {
  list-style: none;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 400; /* 保持轻盈 */
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
  font-weight: 300;
}

.text-serif {
  font-family: var(--font-serif);
  font-style: italic;
}

/* --- Layout --- */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-full {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base);
}

.site-header.scrolled {
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo a {
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.main-nav {
  display: flex;
  gap: 3rem;
}

.nav-link {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding: 5px 0;
  color: var(--color-text-secondary);
}

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

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

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

/* --- Buttons --- */
.btn-explore {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1px solid var(--color-text-primary);
  background: transparent;
  color: var(--color-text-primary);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--transition-base);
  margin-top: 2rem;
  cursor: pointer;
}

.btn-explore:hover {
  background: var(--color-text-primary);
  color: var(--color-bg-primary);
}

/* --- Footer --- */
.site-footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--color-bg-secondary);
  font-size: 0.8rem;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
  background-color: var(--color-bg-primary);
}

/* --- Components: Hero Carousel (Page 1) --- */
.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 1.5s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 微弱的缩放效果增强沉浸感 */
  transform: scale(1.05);
  animation: zoomSlow 20s infinite alternate;
}

@keyframes zoomSlow {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
  width: 80%;
  color: #fff;
  mix-blend-mode: difference; /* 增强文字在图片上的可读性与艺术感 */
}

.slide-title {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 200;
  letter-spacing: 0.1em;
  margin: 0;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* --- Components: Intro Section --- */
.intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-content h2 {
  margin-bottom: 2rem;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

/* --- Components: Detail Grid (Page 1) --- */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.grid-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.grid-item img {
  width: 100%;
  height: 100%;
  transition: transform var(--transition-slow);
}

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

.grid-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.05em;
  text-align: center;
}

/* --- Components: Series Section (Page 2) --- */
.series-block {
  padding: 4rem 0 8rem;
  border-bottom: 1px solid var(--color-border);
}

.series-block:last-child {
  border-bottom: none;
}

.series-header {
  margin-bottom: 3rem;
  max-width: 600px;
}

.series-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.series-desc {
  font-size: 1rem;
  color: var(--color-text-light);
}

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

/* 交错布局 */
.series-block:nth-child(even) .series-layout {
  direction: rtl; /* 简单的左右互换 */
}
.series-block:nth-child(even) .series-layout > * {
  direction: ltr; /* 恢复内部文字方向 */
}

.series-big-img {
  width: 100%;
  aspect-ratio: 4/5;
  background-color: var(--color-bg-secondary);
}

.series-small-imgs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.series-small-img {
  width: 100%;
  aspect-ratio: 3/4;
  background-color: var(--color-bg-secondary);
}

/* --- Components: Narrative Section (Page 3) --- */
.narrative-unit {
  margin-bottom: 10rem;
}

.narrative-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.narrative-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 300;
}

.narrative-hero {
  width: 100%;
  height: 70vh;
  margin-bottom: 2rem;
  background-color: var(--color-bg-secondary);
}

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

.narrative-detail-img {
  aspect-ratio: 1;
  background-color: var(--color-bg-sand);
}

/* Video Section */
.video-container {
  position: relative;
  width: 100%;
  height: 80vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.video-overlay {
  position: absolute;
  text-align: center;
  color: #fff;
  z-index: 10;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .nav-container {
    justify-content: center;
    flex-direction: column;
    padding-top: 10px;
  }
  
  .logo { margin-bottom: 5px; }
  
  .main-nav {
    gap: 1.5rem;
  }
  
  .series-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .narrative-details {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .hero-slider {
    height: 80vh;
  }
}