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

:root {
  --primary-bg: #ffffff;
  --secondary-bg: #f9fafb;
  --text-main: #171717;
  --text-muted: #737373;
}

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

body {
  /* 优先使用衬线体营造时尚、诗意感 */
  font-family: 'Noto Serif SC', 'Inter', serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--primary-bg);
  color: var(--text-main);
  overflow-x: hidden;
}

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

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

::-webkit-scrollbar-thumb {
  background: #e5e5e5;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a3a3a3;
}

/* 动画工具类：优雅上浮 */
.fade-enter {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

/* 图片容器与交互 */
.img-container {
  overflow: hidden;
  position: relative;
}

.hover-zoom {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* 骨架屏加载动画 */
.skeleton {
  background: #f0f0f0;
  background: linear-gradient(90deg, #f0f0f0 25%, #e5e5e5 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

/* 排版辅助 */
.text-balance {
  text-wrap: balance;
}

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