/* 自定义样式 - 补充 Tailwind.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* 全局字体和基础样式 */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

/* 自定义颜色 */
:root {
  --cream: #f8f6f3;
  --stone: #e8e6e1;
  --warm-gray: #9b9b9b;
  --dark-gray: #3a3a3a;
  --oat: #e6e2dd;
}

/* 图片悬停效果 */
.hover-scale {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* 导航链接下划线动画 */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 50%;
  background-color: var(--dark-gray);
  transition: width 0.3s ease, left 0.3s ease;
}

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

/* 图片加载动画 */
.fade-in {
  animation: fadeIn 0.8s ease-in;
}

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

/* 文字内容最大宽度 */
.content-max-width {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* 自定义阴影 */
.soft-shadow {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* 图片容器 */
.image-container {
  background-color: var(--cream);
  overflow: hidden;
}

/* 响应式网格间距调整 */
@media (max-width: 768px) {
  .responsive-spacing {
    gap: 1rem;
  }
}

/* 页面切换过渡 */
.page-transition {
  transition: opacity 0.3s ease-in-out;
}

/* 标题样式 */
.heading-style {
  letter-spacing: 0.02em;
  font-weight: 300;
}

/* 按钮悬停效果 */
.btn-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hover:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}