/* fashion-vision-090252/frontend/public/css/style.css */

/* 1. Font Imports */
/* 引入思源黑体(简体中文)与Inter(英文) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* 2. Design Tokens (CSS Variables) */
:root {
    /* 主色调 */
    --color-bg-main: #F5F5F7;    /* 高级灰 */
    --color-bg-white: #FFFFFF;   /* 纯白 */
    --color-bg-beige: #FAF9F6;   /* 浅米 */
    
    /* 辅助色 */
    --color-accent-terra: #E07A5F; /* 陶土红 */
    --color-accent-blue: #6D98BA;  /* 灰蓝 */
    --color-text-dark: #2D3142;    /* 深炭灰 */
    
    /* 字体 */
    --font-primary: 'Inter', 'Noto Sans SC', sans-serif;
    
    /* 动画 */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 3. Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-main);
    color: var(--color-text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 4. Custom Components */

/* 导航链接动效 */
.nav-link {
    position: relative;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-text-dark);
    transition: width 0.3s ease;
}

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

/* 图片悬停放大容器 */
.hover-zoom-container {
    overflow: hidden;
    position: relative;
}

.hover-zoom-img {
    transition: transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* 页面加载指示器 */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg-white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease-out, visibility 0.6s;
}

.loader-track {
    width: 180px;
    height: 1px;
    background-color: #E5E5E5;
    position: relative;
    overflow: hidden;
}

.loader-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--color-text-dark);
    transition: width 0.2s linear;
}

/* 5. Utility Classes */

/* 隐藏滚动条但保留功能 */
.scroll-hide::-webkit-scrollbar {
    display: none;
}
.scroll-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 文本选择颜色 */
::selection {
    background: var(--color-accent-terra);
    color: white;
}

/* 视差背景辅助 */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 6. Animations */

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

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

/* 缓慢平移 (用于背景图) */
@keyframes slowPan {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.animate-pan {
    animation: slowPan 15s ease-in-out infinite alternate;
}

/* 延迟类 */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }

/* Slot Placeholder */
.slot-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #999;
    font-size: 0.875rem;
    min-height: 200px;
}