/* ==========================================================================
   Global Reset & Typography - 现代极简风格基础
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  --color-text-main: #1a1a1a;
  --color-bg-light: #fdfbf7;
  --font-primary: 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 平滑滚动体验 */
html {
  scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
  background: #d1d5db; /* Tailwind gray-300 */
  border-radius: 3px;
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af; /* Tailwind gray-400 */
}

/* ==========================================================================
   Animations - 视觉引导动画
   ========================================================================== */
/* 淡入上浮效果 - 用于首屏加载 */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s var(--transition-smooth) 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; }
.delay-700 { animation-delay: 0.7s; }

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

/* 呼吸动画 - 用于滚动提示 */
.animate-breathe {
  animation: breathe 2s infinite ease-in-out;
}

@keyframes breathe {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ==========================================================================
   Component Styles - 组件级交互样式
   ========================================================================== */
/* 导航链接下划线动效 */
.nav-link {
  position: relative;
  display: inline-block;
}

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

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

/* 图片容器与悬停效果 */
.img-container {
  overflow: hidden;
  position: relative;
}

.img-hover-zoom {
  transition: transform 0.8s var(--transition-smooth), opacity 0.5s ease;
  will-change: transform;
}

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

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

/* 灯箱背景模糊 */
.lightbox-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 内容动态槽位预留 */
.slot-container {
  display: contents;
}