/* 
 * 全局样式文件 - 极简主义与高级中性色系
 * By HAISNAP 
 */

/* 引入字体：Playfair Display (英文标题), Noto Serif SC (中文宋体) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  /* 高级中性色系 */
  --color-bg: #f9f8f6;       /* 暖米白 */
  --color-text: #2c2c2c;     /* 炭灰 */
  --color-muted: #8e8e8e;    /* 雅灰 */
  --color-accent: #d4cdc5;   /* 浅褐 */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Noto Serif SC', serif;
  
  /* 布局参数 */
  --nav-height: 80px;
  --spacing-unit: 2rem;
}

/* 基础重置与覆盖 Water.css */
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  padding: 0;
  line-height: 1.8;
  font-weight: 300;
  overflow-x: hidden;
  max-width: 100%; /* 覆盖 Water.css 的 max-width */
}

/* 字体排版 */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-top: 0;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
p { font-size: 1.05rem; color: #4a4a4a; }
a { text-decoration: none; color: inherit; transition: opacity 0.3s ease; }
a:hover { opacity: 0.6; }

/* 导航栏 - 顶部固定 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  background: rgba(249, 248, 246, 0.95);
  backdrop-filter: blur(5px);
  z-index: 1000;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  text-transform: uppercase;
}

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

.nav-links a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* 页面通用容器 */
.page-container {
  padding-top: var(--nav-height);
  min-height: 100vh;
  box-sizing: border-box;
}

/* 首页 (HOME) - 全屏轮播 */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 8s ease;
  transform: scale(1);
}

.slide.active {
  opacity: 1;
  transform: scale(1.05); /* 缓慢缩放效果 */
}

/* 遮罩层，增强文字可读性 */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); 
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  animation: fadeInUp 1.2s ease-out;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-quote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.btn-enter {
  display: inline-block;
  padding: 12px 40px;
  border: 1px solid #fff;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  background: transparent;
  transition: all 0.4s ease;
}

.btn-enter:hover {
  background: #fff;
  color: #000;
}

/* 风尚辑 (EDITORIALS) - 网格布局 */
.editorials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 双列布局 */
  gap: 4rem;
  padding: 4rem 8%;
  max-width: 1600px;
  margin: 0 auto;
}

.editorial-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  group: hover;
}

.editorial-img-wrapper {
  overflow: hidden;
  aspect-ratio: 3/4;
  margin-bottom: 1.5rem;
}

.editorial-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  filter: grayscale(20%);
}

.editorial-item:hover .editorial-img {
  transform: scale(1.03);
  filter: grayscale(0%);
}

.editorial-info {
  text-align: left;
}

.editorial-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.editorial-desc {
  font-size: 0.95rem;
  color: var(--color-muted);
  max-width: 90%;
}

/* 灵感集 (INSPIRATIONS) - 拼贴布局 */
.inspirations-layout {
  padding: 4rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

/* 模块1：细节特写 - 错落布局 */
.details-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6rem;
}

.detail-card {
  width: 30%;
}
.detail-card:nth-child(2) { margin-top: 5rem; } /* 错落感 */
.detail-card:nth-child(3) { margin-top: 2rem; }

.detail-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  margin-bottom: 1rem;
}

/* 模块2：色彩色谱 */
.palette-section {
  margin-bottom: 6rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.palette-group {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.palette-swatch {
  width: 100px;
  height: 100px;
  border-radius: 50%; /* 圆形色块 */
}

/* 模块3：风格词云 */
.word-cloud-section {
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  overflow: hidden;
  background: #f4f2ef;
}

.style-word {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin: 1rem 2rem;
  color: #b0a8a0;
  transition: color 0.3s, transform 0.3s;
  cursor: default;
}

.style-word:hover {
  color: var(--color-text);
  transform: translateY(-5px);
}

/* 页脚 */
footer {
  text-align: center;
  padding: 3rem 0;
  font-size: 0.8rem;
  color: #aaa;
  font-family: var(--font-heading);
  border-top: 1px solid rgba(0,0,0,0.03);
  margin-top: 4rem;
}

/* 实用工具类 */
.text-center { text-align: center; }
.fade-in { animation: fadeIn 1s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* 动画定义 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* 响应式调整 */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  .editorials-grid { grid-template-columns: 1fr; gap: 3rem; }
  .nav-links { display: none; } /* 简化：移动端暂隐藏链接，实际项目需汉堡菜单，此处保持极简 */
  .details-section { flex-direction: column; gap: 3rem; }
  .detail-card { width: 100%; margin-top: 0 !important; }
  .navbar { justify-content: center; }
  .logo { margin: 0; }
}