/* 全局字体设置 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Serif+SC:wght@300;400;600&display=swap');

:root {
  --font-sans: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-serif: 'Noto Serif SC', Georgia, serif;
  --color-metal: #b8b8b8;
  --color-gold: #d4af37;
}

body {
  font-family: var(--font-sans);
  color: #1a1a1a;
  background: #fafafa;
}

/* 页面过渡动画 */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

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

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

.hover-scale img {
  transition: transform 0.3s ease;
}

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

/* 横向滚动容器 */
.scroll-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

.scroll-container::-webkit-scrollbar {
  height: 6px;
}

.scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: var(--color-metal);
  border-radius: 3px;
}

.scroll-container > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* 导航高亮样式 */
.nav-active {
  position: relative;
  color: var(--color-gold) !important;
}

.nav-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(1);
  transition: transform 0.3s ease;
}

/* 卡片阴影效果 */
.card-shadow {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.card-shadow:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 标题样式 */
.heading-serif {
  font-family: var(--font-serif);
  font-weight: 400;
}

/* 渐变背景 */
.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 金属色点缀 */
.gold-accent {
  color: var(--color-gold);
}

.border-gold {
  border-color: var(--color-gold);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .scroll-container {
    gap: 1rem;
  }
  
  .heading-serif {
    font-size: 1.5rem;
  }
}

/* 加载动画 */
.loading-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; }
}

/* 向上箭头按钮 */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* 网格布局优化 */
.grid-gap {
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .grid-gap {
    gap: 2rem;
  }
}

/* 文字装饰 */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}