/* fashion-vision-gallery-050458/frontend/public/css/style.css */

/* 引入现代无衬线中文字体 - 思源黑体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100;300;400;500;700&display=swap');

:root {
    --color-primary: #1a1a1a;
    --color-secondary: #f5f5f0; /* 暖调米白 */
    --transition-smooth: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #ffffff;
    color: #1a1a1a;
    overflow-x: hidden; /* 防止横向溢出 */
}

/* 极简主义滚动条 */
::-webkit-scrollbar {
    width: 4px;
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

/* 图片容器通用交互：缓慢放大 */
.image-hover-container {
    overflow: hidden;
    position: relative;
    display: block;
}

.image-hover-zoom {
    transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* 文本交互：底部线条滑过 */
.text-hover-underline {
    position: relative;
    display: inline-block;
    text-decoration: none;
}

.text-hover-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* 页面加载时的淡入动效 */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 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; }
.delay-700 { animation-delay: 0.7s; }

/* 玻璃拟态导航栏 */
.glass-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

/* 极简分割线 */
.separator-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
    width: 100%;
    margin: 3rem 0;
}

/* 移动端菜单过渡 */
.mobile-menu-enter {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
}

.mobile-menu-enter.active {
    max-height: 400px;
    opacity: 1;
}