/* 
 * 全局样式文件 - 时尚艺术画廊
 * 风格：现代、简约、高级、艺术化
 * 配色：黑、白、高级灰、香槟金点缀
 */

:root {
  /* 调色板 */
  --color-bg: #ffffff;
  --color-bg-secondary: #f9f9f9;
  --color-text-main: #2c2c2c;
  --color-text-light: #666666;
  --color-text-lighter: #999999;
  --color-accent: #d4af37; /* 香槟金 - 仅作极少量点缀 */
  
  /* 字体 */
  --font-family-en: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-family-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN", sans-serif;
  --font-base: var(--font-family-en), var(--font-family-cn);
  
  /* 间距 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  
  /* 动效 */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fade: opacity 0.8s ease;
}

/* --- 基础重置 --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* --- 排版工具 --- */
h1, h2, h3, h4 {
  font-weight: 400; /* 保持轻盈感 */
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-sm);
}

.text-center { text-align: center; }
.text-justify { text-align: justify; }

.container {
  width: 90%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* --- 导航栏 (Fixed & Minimalist) --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition-smooth);
}

.logo {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-main);
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
}

.nav-link {
  font-size: 0.9rem;
  color: var(--color-text-light);
  position: relative;
  padding-bottom: 2px;
}

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

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

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

/* --- 页脚 --- */
.footer {
  padding: var(--spacing-md) 0;
  text-align: center;
  color: var(--color-text-lighter);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  background-color: var(--color-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

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

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-size: cover;
  background-position: center;
  background-color: #f0f0f0; /* 占位色 */
}

.slide.active {
  opacity: 1;
}

.slide-content {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  width: 100%;
  pointer-events: none; /* 允许点击穿透 */
}

.slide-title {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: var(--spacing-xs);
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease 0.5s;
}

.slide.active .slide-title {
  opacity: 1;
  transform: translateY(0);
}

/* 引言区域 */
.quote-section {
  padding: var(--spacing-xl) 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-bg);
}

.quote-text {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-text-main);
  max-width: 800px;
  text-align: center;
  line-height: 1.8;
  font-style: italic;
  font-family: "Songti SC", "SimSun", serif; /* 使用衬线体增加文学感 */
}

/* 精选系列入口 */
.series-preview {
  padding: 0 0 var(--spacing-xl);
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.series-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
}

.series-card img {
  width: 100%;
  height: 100%;
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.series-card:hover img {
  transform: scale(1.03); /* 微妙放大 */
}

.series-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--spacing-md);
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #fff;
  opacity: 0;
  transition: var(--transition-smooth);
  transform: translateY(10px);
}

.series-card:hover .series-info {
  opacity: 1;
  transform: translateY(0);
}

.series-name {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  font-weight: 300;
}

/* --- 系列页面组件 --- */
.page-header {
  padding-top: 150px;
  padding-bottom: var(--spacing-lg);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: var(--spacing-md);
}

.page-desc {
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 2;
  font-weight: 300;
}

.gallery {
  padding-bottom: var(--spacing-xl);
  column-count: 3;
  column-gap: var(--spacing-md);
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--spacing-md);
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: opacity 0.3s ease;
  background-color: #f0f0f0;
}
/* 渐进式加载模糊效果 */
.img-blur {
  filter: blur(20px);
  transition: filter 0.5s ease;
}
.img-loaded {
  filter: blur(0);
}

/* --- 风格指南页面组件 --- */
.style-section {
  margin-bottom: var(--spacing-xl);
  border-bottom: 1px solid #eee;
  padding-bottom: var(--spacing-lg);
}
.style-section:last-child {
  border-bottom: none;
}

.style-header {
  margin-bottom: var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.style-name {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text-main);
  margin-bottom: var(--spacing-xs);
}

.style-def {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-style: italic;
}

.collage-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.collage-item {
  position: relative;
  overflow: hidden;
}

.collage-item.main {
  grid-row: span 2;
}

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

.tags-container {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
  flex-wrap: wrap;
}

.tag {
  font-size: 0.8rem;
  color: var(--color-text-light);
  border: 1px solid #ddd;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  background-color: transparent;
}

/* --- 响应式调整 --- */
@media (max-width: 1024px) {
  .series-grid {
    grid-template-columns: 1fr;
  }
  .gallery {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
  }
  
  .slide-title {
    font-size: 2rem;
  }
  
  .nav-links {
    gap: var(--spacing-md);
  }
  
  .quote-text {
    font-size: 1.2rem;
    padding: 0 var(--spacing-md);
  }
  
  .collage-container {
    grid-template-columns: 1fr;
  }
  
  .collage-item.main {
    grid-row: span 1;
  }
  
  .gallery {
    column-count: 1;
  }
}

/* --- 动态槽位 --- */
#slot-dynamic-content {
  display: none; /* 默认隐藏，有内容注入时可通过JS控制显示 */
}