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

:root {
  --color-primary: #333333;
  --color-secondary: #f5f5f5;
  --color-accent: #1a365d;
  --color-text: #222222;
}

html {
  scroll-behavior: smooth;
}

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

/* 核心布局辅助 */
.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 图片容器通用样式 */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 极简主义悬停动效 */
.zoom-container {
  overflow: hidden;
  position: relative;
}

.zoom-img {
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

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

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

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

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

/* 优雅的淡入动画 */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(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; }

/* 文本排版优化 */
p {
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: #4a4a4a;
}

h1, h2, h3, h4 {
  letter-spacing: -0.01em;
  color: #1a1a1a;
}

/* 去除默认轮廓 */
button:focus, a:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

::selection {
  background: #333;
  color: #fff;
}