@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600&display=swap');

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    background-color: #FFF9F2;
    /* 暖柔沙色 */
}

html.dark {
    background-color: #2C1E16;
    /* 深醇摩卡棕 */
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 温暖调滚动条 */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #F2E3D5;
    /* 暖光边框色 */
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4A3326;
    /* 暗模式暖光色 */
}

/* 基础平滑出现缓动动画 */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-up {
    transform: translateY(30px);
}

.fade-in {
    transform: scale(0.98);
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 延迟序列 */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

/* 顶导空气感玻璃 */
.glass-nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: border-color 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.5s ease;
}

.nav-hidden {
    transform: translateY(-100%);
}

/* 悬停微线展引交互 */
.hover-line-expand::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.hover-line-expand:hover::after {
    width: 100%;
}

/* 图像缩放优雅度 */
.img-zoom-hover {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* 通用慢缩放进场图层 */
.blob-shape {
    transition: transform 2s ease-out;
}