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

:root {
  --primary-color: #333333;
  --secondary-color: #666666;
  --accent-color: #999999;
  --bg-light: #FAFAFA;
  --bg-white: #FFFFFF;
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* 淡入动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 图片悬停效果 */
.image-hover {
  overflow: hidden;
  transition: var(--transition-base);
}

.image-hover img {
  transition: transform 0.5s ease;
}

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

/* 导航链接悬停效果 */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

/* 卡片悬停效果 */
.card-hover {
  transition: var(--transition-base);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 瀑布流布局 */
.masonry {
  column-count: 3;
  column-gap: 24px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .masonry {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .masonry {
    column-count: 1;
  }
}

/* 加载动画 */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* 轮播图指示器 */
.carousel-indicator {
  transition: var(--transition-base);
}

.carousel-indicator.active {
  width: 32px;
  background-color: var(--primary-color);
}

/* 按钮悬停效果 */
.btn-primary {
  transition: var(--transition-base);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 文字渐显效果 */
.text-reveal {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.text-reveal-delay-1 {
  animation-delay: 0.2s;
}

.text-reveal-delay-2 {
  animation-delay: 0.4s;
}

.text-reveal-delay-3 {
  animation-delay: 0.6s;
}

/* 图片懒加载占位符 */
.lazy-image {
  filter: blur(10px);
  transition: filter 0.3s;
}

.lazy-image.loaded {
  filter: blur(0);
}

/* 响应式字体大小 */
.text-responsive-xl {
  font-size: clamp(2rem, 5vw, 4rem);
}

.text-responsive-lg {
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.text-responsive-md {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

/* 页脚样式 */
footer {
  margin-top: 80px;
  padding: 40px 0;
  text-align: center;
  color: var(--accent-color);
  font-size: 14px;
  font-weight: 300;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .nav-link::after {
    display: none;
  }
  
  .card-hover:hover {
    transform: none;
  }
  
  .image-hover:hover img {
    transform: none;
  }
}