/* 引入思源黑体，营造现代极简的无衬线字体风格 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100;300;400;500&display=swap');

/* 全局字体设置 */
body {
  font-family: 'Noto Sans SC', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #ffffff; /* 确保背景纯白 */
  color: #333333; /* 深灰字体，避免纯黑的刺眼 */
}

/* 隐藏滚动条但允许滚动，保持界面极简 (Chrome, Safari, Opera) */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
/* (IE, Edge, Firefox) */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* 自定义缓动曲线，用于细腻的图片放大和交互 */
.ease-out-expo {
    transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

/* 图片容器：用于处理溢出隐藏 */
.img-container {
    overflow: hidden;
    position: relative;
}

/* 图片悬停放大效果 */
.img-zoom {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.group:hover .img-zoom {
    transform: scale(1.03); /* 轻微放大 3% */
}

/* 页面内容淡入进场动画 */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.animate-fade-up {
    animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0; /* 初始隐藏 */
}

/* 动画延迟类 */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-500 { animation-delay: 500ms; }
.delay-700 { animation-delay: 700ms; }
.delay-1000 { animation-delay: 1000ms; }

/* 导航链接中心扩散下划线效果 */
.nav-link {
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background-color: currentColor; /* 跟随文字颜色 */
    transition: width 0.3s ease-out, left 0.3s ease-out;
    opacity: 0.7;
}
.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* 文字选中样式，保持低饱和度 */
::selection {
    background: #e5e5e5; /* 浅灰背景 */
    color: #000;
}

/* 玻璃拟态背景 (可选用于导航栏) */
.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}