/* fashion-showcase-170628/frontend/public/css/main.css */

/* =========================================
   全局基础设置 (Global Reset & Typography)
   ========================================= */
:root {
    --color-primary: #2C3E50;
    --color-secondary: #F5F1E8;
    --color-text-main: #333333;
    --color-text-light: #666666;
    --transition-standard: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   UI 组件样式 (UI Components)
   ========================================= */

/* 导航栏磨砂效果 */
.glass-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.nav-link {
    position: relative;
    padding-bottom: 2px;
}

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

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

/* 极简滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* =========================================
   交互与动效 (Interactions & Animations)
   ========================================= */

/* 图片容器悬停缩放 */
.hover-zoom-container {
    overflow: hidden;
    position: relative;
    background-color: #f3f4f6; /* 占位色 */
}

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

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

/* 遮罩层效果 */
.hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hover-zoom-container:hover .hover-overlay {
    opacity: 1;
}

/* 页面淡入动画 */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

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

/* 瀑布流布局 (用于 Style 页面) */
.masonry-grid {
    column-count: 1;
    column-gap: 1.5rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
}

/* 模态窗样式 */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* 文本平衡 */
.text-balance {
    text-wrap: balance;
}

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