/* 引入字体：Montserrat (英文) 和 Noto Sans SC (中文) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500&family=Noto+Sans+SC:wght@200;300;400;500&display=swap');

/* 全局基础样式 */
:root {
    --color-bg: #F9F8F6; /* 米白/燕麦色底色 */
    --color-text: #2A2A2A; /* 深灰字体 */
    --color-accent: #8C8C8C; /* 辅助灰 */
}

body {
    font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* 排版优化 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    letter-spacing: 0.05em;
}

p {
    line-height: 1.8;
    color: #4A4A4A;
}

/* 导航栏动画效果 */
.nav-link {
    position: relative;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 50%;
    background-color: currentColor;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* 图片容器与悬停效果 */
.img-wrapper {
    overflow: hidden;
    position: relative;
}

.img-zoom {
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform;
}

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

.img-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.img-wrapper:hover .img-overlay {
    opacity: 1;
}

/* 淡入向上动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
    opacity: 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: #D1D1D1;
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A1A1A1;
}

/* 文本两端对齐优化（中文） */
.text-justify-cn {
    text-align: justify;
    text-justify: inter-ideograph;
}

/* 遮罩层文字阴影增强 */
.text-shadow-sm {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}