/* 全局字体设置：优先英文无衬线，后备中文思源/苹方 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500&display=swap');

:root {
  --color-main: #2C2C2C;
  --color-sub: #666666;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F5F5;
  --accent-fog-blue: #9BB7D4;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Helvetica Now', 'Futura', 'Arial', 'PingFang SC', 'Noto Sans SC', sans-serif;
  color: var(--color-main);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* 排版优化 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500; /* Medium */
  letter-spacing: -0.02em;
  color: var(--color-main);
}

p {
  font-weight: 300; /* Light */
  color: var(--color-sub);
  line-height: 1.8;
}

/* 图片容器与悬停动效 */
.img-container {
  overflow: hidden;
  position: relative;
  background-color: var(--bg-secondary); /* 图片加载前的占位色 */
}

.img-zoom {
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-container:hover .img-zoom {
  transform: scale(1.03); /* 极简风格不宜放大过多 */
}

/* 页面过渡动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  opacity: 0; /* 初始隐藏 */
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

/* 动态内容槽位 (预留给后续动态插入内容) */
.content-slot {
  display: contents;
}

/* 极简滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

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

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

/* 选中态样式 */
::selection {
  background-color: var(--accent-fog-blue);
  color: #fff;
}