/* 全局样式设定 - Modern Mens Fashion */

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

:root {
    /* 核心色彩系统 */
    --color-dark: #1A1A1A;
    --color-light: #F5F5F5;
    --color-white: #FAF9F6;
    --color-accent: #C75B39;
    --color-navy: #2C3E50;
    --color-text-main: #333333;
    --color-text-sub: #666666;
    
    /* 字体系统 */
    --font-primary: 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-cn: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
    
    /* 动效参数 */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* 基础重置与排版 */
body {
    font-family: var(--font-primary), var(--font-cn);
    background-color: var(--color-white);
    color: var(--color-text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
    font-weight: 500;
}

/* 高级交互动效类 */

/* 图片容器：悬停微放大效果 */
.hover-zoom-container {
    overflow: hidden;
    position: relative;
    display: block;
}

.hover-zoom-img {
    transition: transform 0.7s var(--ease-out-expo), filter 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

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

/* 页面过渡动画 */
.fade-in-up {
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* 导航栏磨砂玻璃效果 */
.glass-nav {
    background: rgba(250, 249, 246, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.glass-nav.dark {
    background: rgba(26, 26, 26, 0.8);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* 骨架屏加载动画 */
.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e6e6e6 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

/* 文字选中样式 */
::selection {
    background: var(--color-accent);
    color: white;
}

/* 磁性按钮效果基础 */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
}
.btn-hover-effect::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out-expo);
}
.btn-hover-effect:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

/* 响应式排版微调 */
@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll; /* 移动端禁用fixed背景以提升性能 */
    }
}