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

/* Tailwind CSS 配置在 HTML head 中通过 script 标签加载，此处仅补充自定义样式 */

:root {
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #4a4a4a;
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f9f9f9;
  --transition-smooth: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 全局基础设置 */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Helvetica Neue', 'Helvetica', 'Arial', 'Noto Sans SC', sans-serif;
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 选中文本样式 */
::selection {
  background-color: #e5e5e5;
  color: #000;
}

/* 自定义滚动条 - 极简风格 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* 实用工具类：图片淡入动画 */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 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 fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 导航链接动效 */
.nav-link {
  position: relative;
  text-decoration: none;
}

.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,
.nav-link.active::after {
  width: 100%;
}

/* 图片容器悬停效果 */
.img-hover-zoom {
  overflow: hidden;
}

.img-hover-zoom img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
}

.img-hover-zoom:hover img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* 灯箱效果 */
.lightbox-modal {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

/* 极简网格布局辅助 */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* 字体排版微调 */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
}

.text-balance {
  text-wrap: balance;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .grid-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}