/* 
 * 全局样式文件
 * 定义字体、基础重置及自定义动画
 */

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

/* 基础设置 */
html {
  scroll-behavior: smooth;
}

body {
  /* 柔和中性色调基底：象牙白/燕麦色 */
  background-color: #Fdfcf8;
  /* 深灰字体，提供舒适阅读体验 */
  color: #333333;
  /* 默认字体栈：中文宋体与英文衬线体结合 */
  font-family: 'Lora', 'Noto Serif SC', serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 字体工具类自定义 */
.font-display {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
}

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

/* 动画工具类 */
.animate-fade-in-up {
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

.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 fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 图片交互效果 */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* 自定义滚动条样式 (更极简) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a3a3a3;
}

/* 文本选择颜色 */
::selection {
  background-color: #e5e0d8; /* 淡米色 */
  color: #1a1a1a;
}

/* 辅助工具类：去除移动端点击高亮 */
* {
  -webkit-tap-highlight-color: transparent;
}

/* 确保iframe嵌入时背景正常 */
iframe {
  background-color: transparent;
}