/* ==========================================================================
   时尚展示网站全局样式表
   此文件仅包含Tailwind CSS无法直接处理的复杂动画、Web字体引入及全局重置
   ========================================================================== */

/* 1. 字体引入：思源黑体 (Noto Sans SC) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100;300;400;500;700&display=swap');

/* 2. 全局基础设置 */
body {
    font-family: 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased; /* macOS 字体平滑 */
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* 防止横向滚动 */
}

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

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

::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.3); /* gray-400 with opacity */
    border-radius: 9999px;
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(107, 114, 128, 0.6); /* gray-500 with opacity */
}

/* 4. 自定义动画关键帧 (配合Tailwind arbitrary values使用或单独类名) */

/* 淡入上浮效果 - 用于卡片进入 */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 缩放进入效果 - 用于模态框 */
@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* 5. 实用动画类 */
.animate-fade-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-zoom-in {
    animation: zoomIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slow-pan {
    animation: slowPan 10s ease-out forwards;
}

/* 延迟类，用于交错动画 */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-500 { animation-delay: 500ms; }

/* 6. 交互状态增强 */
.cursor-zoom {
    cursor: zoom-in;
}

/* 图片加载占位骨架屏效果 */
.skeleton-loading {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}

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

/* 7. 移动端优化 */
@media (max-width: 640px) {
    /* 防止移动端点击高亮背景色 */
    * {
        -webkit-tap-highlight-color: transparent;
    }
}