/* 引入字体：思源黑体用于正文，Playfair Display用于艺术标题 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* 全局变量与基础设置 */
:root {
  --color-text-main: #1a1a1a;
  --color-text-light: #6b7280;
  --bg-primary: #ffffff;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--color-text-main);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* 选中文本样式：体现高级感 */
::selection {
  background: #f3f4f6;
  color: #000;
}

/* 艺术衬线字体工具类 */
.font-art {
  font-family: 'Playfair Display', serif;
}

/* 图片容器与悬停动效：极简而流畅 */
.img-wrapper {
  overflow: hidden;
  position: relative;
  background-color: #f3f4f6; /* 图片加载前的占位色 */
}

.img-hover-zoom {
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-wrapper:hover .img-hover-zoom {
  transform: scale(1.03);
}

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

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

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

/* 自定义极简滚动条 */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: #e5e7eb;
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #d1d5db;
}

/* 图片保护：禁止拖拽与选中 */
img {
  -webkit-user-drag: none;
  user-select: none;
}

/* 动态内容槽位：预留给未来功能扩展 */
.slot-container:empty {
  display: none;
}