/* 引入现代字体族：Montserrat用于英文/数字，Noto Sans SC用于中文 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Noto+Sans+SC:wght@300;400;500&display=swap');

:root {
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --color-bg: #FFFFFF;
    --color-text: #1A1A1A;
}

/* 基础排版设置 */
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* 防止横向滚动 */
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
    letter-spacing: -0.02em;
}

/* 滚动条隐藏但保留功能 (极简主义) */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 核心动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* 动画实用类 */
.animate-fade-in-up {
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
    opacity: 0; /* 初始不可见 */
}

.animate-fade-in {
    animation: fadeIn 1.0s ease-out forwards;
}

.animate-ken-burns {
    animation: kenBurns 10s ease-out alternate infinite;
}

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

/* 图片微交互：悬停放大 */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.img-wrapper {
    overflow: hidden;
}

.img-wrapper img {
    transition: transform 0.7s var(--ease-out-expo);
    will-change: transform;
}

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

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 加载遮罩 */
#app-loader {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

#app-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* 视差容器 */
.parallax-container {
    perspective: 1px;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}