/* 自定义样式文件 - 补充Tailwind未覆盖的样式需求 */

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

:root {
  /* 设计令牌 */
  --color-primary: #000000;
  --color-secondary: #333333;
  --color-accent: #4A5568;
  --color-khaki: #C3A883;
  --color-navy: #1A365D;
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局样式 */
body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* 导航菜单hover效果 */
.nav-link {
  position: relative;
  transition: var(--transition-smooth);
}

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

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

/* 图片悬停效果 */
.image-hover {
  overflow: hidden;
}

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

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

/* 轮播指示器 */
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background-color: white;
  width: 32px;
  border-radius: 4px;
}

/* 渐进加载效果 */
.lazy-load {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

/* 文章卡片样式 */
.story-card {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

/* 视差滚动效果 */
.parallax {
  transform: translateZ(0);
  will-change: transform;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .nav-link::after {
    bottom: -2px;
  }
}

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

/* 选中文本样式 */
::selection {
  background-color: var(--color-khaki);
  color: white;
}