/* 引入字体库 (Playfair Display 用于英文标题, Noto Serif SC 用于中文标题, Noto Sans SC 用于正文) */
@import url('https://fonts.loli.net/css2?family=Noto+Sans+SC:wght@300;400;500&family=Noto+Serif+SC:wght@400;700&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  /* 核心配色方案 */
  --color-bg-main: #f5f5f5;
  --color-bg-white: #ffffff;
  --color-text-primary: #333333;
  --color-text-secondary: #666666;
  
  /* 辅助色 */
  --color-accent-oat: #d8cabd;
  --color-accent-sand: #e9e1d6;
  --color-accent-clay: #c17c74;
  
  /* 强调色 */
  --color-highlight: #8b3a3a;
}

/* 基础设置 */
body {
  background-color: var(--color-bg-main);
  color: var(--color-text-primary);
  font-family: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden; /* 防止水平滚动 */
}

/* 字体排印工具类 */
.font-heading {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
}

.font-serif-cn {
  font-family: 'Noto Serif SC', serif;
}

.font-sans-cn {
  font-family: 'Noto Sans SC', sans-serif;
}

/* 导航链接动效 */
.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--color-text-primary);
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-text-primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* 图片悬停微动效 */
.img-hover-container {
  overflow: hidden;
  position: relative;
}

.img-hover-zoom {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
  will-change: transform;
}

.img-hover-container:hover .img-hover-zoom {
  transform: scale(1.03);
  filter: brightness(0.95);
}

/* 页面过渡动画 */
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

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

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #d1d5db; /* Tailwind gray-300 */
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af; /* Tailwind gray-400 */
}

/* 文本选择颜色 */
::selection {
  background: var(--color-accent-oat);
  color: var(--color-text-primary);
}

/* 加载动画 */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg-main);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

/* 动态内容槽位占位符 (不可见，仅用于布局逻辑占位) */
.slot-placeholder {
  display: contents;
}