/* modern-mens-fashion-041826/frontend/public/styles.css */

/* 
 * 全局样式与变量定义
 * 主色调：黑白灰 (Tailwind默认 gray/black/white)
 * 辅助色：深蓝 (#0F172A - slate-900/custom), 酒红 (#4A0404 - red-950/custom)
 */

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

:root {
    --color-deep-blue: #0F172A;
    --color-burgundy: #4A0404;
    --color-accent: #1E293B;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #ffffff;
    color: #111111;
}

html {
    scroll-behavior: smooth;
}

/* 页面过渡动画 */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(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; }

/* 图片容器及效果 */
.img-container {
    overflow: hidden;
    background-color: #f3f4f6; /* loading placeholder color */
}

.hover-scale-img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* 导航交互 */
.nav-item {
    position: relative;
    display: inline-block;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* 隐藏滚动条 (用于横向滚动区域) */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 负空间工具类补充 */
.section-spacing {
    padding-top: 8rem;
    padding-bottom: 8rem;
}