/* 全局字体引入：思源黑体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500&display=swap');

/* 根变量定义：色彩系统 */
:root {
  --color-bg: #F9F9F7;            /* 米白背景 */
  --color-text-primary: #2D2D2D;  /* 深灰主文字 */
  --color-text-secondary: #6B6B6B;/* 灰色辅助文字 */
  --color-accent-pink: #F2E6E6;   /* 浅粉点缀 */
  --color-accent-blue: #D4E0E8;   /* 雾霾蓝点缀 */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* 基础样式重置与排版 */
body {
  font-family: 'Helvetica Neue', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* 文本选区样式 */
::selection {
  background-color: var(--color-accent-blue);
  color: var(--color-text-primary);
}

/* -------------------
   自定义动效与交互类
   ------------------- */

/* 页面淡入效果 */
.fade-in-up {
  animation: fadeInUp 1s var(--ease-out-expo) forwards;
  opacity: 0;
  transform: translateY(20px);
}

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

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

/* 图片容器：悬停微放大 */
.img-container {
  overflow: hidden;
  position: relative;
  background-color: #E5E5E5; /* 图片加载前的占位色 */
}

.img-container img {
  transition: transform 1.2s var(--ease-out-expo), opacity 0.5s ease;
  will-change: transform;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* 导航链接：下划线动效 */
.nav-link {
  position: relative;
  text-decoration: none;
  display: inline-block;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.4s var(--ease-out-expo);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* 骨架屏加载动画 */
.skeleton {
  background: linear-gradient(90deg, #F0F0F0 25%, #E8E8E8 50%, #F0F0F0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 辅助类：去除点击高亮 */
a, button {
  -webkit-tap-highlight-color: transparent;
}