/* modern-fashion-gallery-121826/frontend/public/styles.css */

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

:root {
  --color-bg: #f8f9fa;
  --color-text: #212529;
  --color-text-light: #6c757d;
}

/* 基础设置 */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 隐藏滚动条但保留滚动功能 (用于水平滚动区域) */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 页面加载淡入动画 */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

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

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

/* 图片加载占位动效 */
.skeleton-loader {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

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

/* 极简选中文本样式 */
::selection {
  background-color: #212529;
  color: #ffffff;
}

/* 磁性吸附滚动 (用于全屏展示) */
.snap-y-mandatory {
  scroll-snap-type: y mandatory;
}

.snap-center {
  scroll-snap-align: center;
}