/* 
 * 现代风尚艺术展示馆 - 全局样式
 * Modern Fashion Gallery - Global Styles
 * 遵循极简主义与现代艺术风格
 */

/* 引入字体：Inter (英文现代无衬线) 和 Noto Sans SC (中文优雅黑体) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500&family=Noto+Sans+SC:wght@300;400;500&display=swap');

/* Tailwind CSS 配置扩展 (通过 CSS 变量或自定义类) */
:root {
    --color-bg-primary: #ffffff;
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #666666;
    --color-accent: #8c8c8c;
    --font-en: 'Inter', system-ui, -apple-system, sans-serif;
    --font-cn: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

/* 标题样式微调 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300; /* 保持纤细优雅 */
    letter-spacing: -0.02em; /* 紧凑的现代感 */
}

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

/* 视觉效果：图片容器 */
.img-container {
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0; /* 图片加载前的占位色 */
}

/* 交互动效：图片悬停缩放 */
.hover-zoom-img {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform;
}

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

/* 交互动效：内容淡入 */
.hover-reveal {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.group:hover .hover-reveal {
    opacity: 1;
}

/* 动画关键帧：淡入上浮 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* 延迟类 */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-500 { animation-delay: 500ms; }

/* 视差滚动容器 */
.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 移动端优化：移动端通常不支持 background-attachment: fixed */
@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
    }
}

/* 文本选择颜色：配合黑白灰主题 */
::selection {
    background: #e5e5e5;
    color: #000;
}

/* 导航栏过渡 */
.nav-transition {
    transition: background-color 0.3s ease, padding 0.3s ease;
}

/* 网格布局辅助 */
.masonry-grid {
    column-count: 1;
    column-gap: 1.5rem;
}
@media (min-width: 640px) {
    .masonry-grid { column-count: 2; }
}
@media (min-width: 1024px) {
    .masonry-grid { column-count: 3; }
}

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

/* 极简按钮效果 */
.btn-minimal {
    position: relative;
    padding-bottom: 2px;
}
.btn-minimal::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}
.btn-minimal:hover::after {
    width: 100%;
}