/* 引入字体：Montserrat (英文标题) 和 Noto Sans SC (中文) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Noto+Sans+SC:wght@300;400;500&display=swap');

/* 基础设置 */
:root {
  --color-primary: #2C3E50;
  --color-secondary: #ECF0F1;
  --color-accent: #1A5276;
  --color-terra: #922B21;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--color-primary);
  background-color: #ffffff;
  overflow-x: hidden;
}

/* 排版覆盖 */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
}

/* 动画关键帧 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* 动画工具类 */
.animate-fade-in {
  animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0; /* 初始隐藏 */
}

.animate-slide-in {
  animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

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

/* 图片交互效果 */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

.image-hover-zoom {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 文本两端对齐 */
.text-justify {
  text-align: justify;
  text-justify: inter-word;
}

/* 去除默认轮廓，使用自定义焦点样式 */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* 移动端优化 */
@media (max-width: 640px) {
  .animate-fade-in {
    animation-duration: 0.6s;
  }
}