/* Google Fonts 引入：Playfair Display (西文衬线), Noto Serif SC (中文衬线), Noto Sans SC (中文无衬线) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;600&family=Noto+Sans+SC:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');

/* 全局变量定义 */
:root {
  --color-ivory: #F9F8F4;      /* 象牙白 - 背景主色 */
  --color-sand: #EBE6E1;       /* 砂岩灰 - 次要背景 */
  --color-oat: #D8CFC4;        /* 燕麦色 - 装饰色 */
  --color-ink: #1A1A1A;        /* 墨黑 - 文字主色 */
  --color-clay: #C8A696;       /* 陶土粉 - 点缀色 */
  --color-olive: #8F9E8B;      /* 橄榄绿 - 点缀色 */
}

/* 基础重置与字体设置 */
body {
  font-family: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  background-color: var(--color-ivory);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* 标题衬线字体类 */
.font-serif-display {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
}

/* 页面过渡动画系统 */
.page-enter {
  animation: pageFadeIn 0.8s ease-out forwards;
}

.content-reveal {
  opacity: 0;
  animation: slideUpReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 动画延迟工具类 */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }

/* 关键帧定义 */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* 极简滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

/* 文本选中样式 */
::selection {
  background-color: var(--color-oat);
  color: var(--color-ink);
}

/* 视觉工具类 */
.text-justify-mixed {
  text-align: justify;
  text-justify: inter-ideograph;
}

.img-hover-scale {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-hover-scale:hover {
  transform: scale(1.03);
}