/* 
 * 全局样式文件 - 配合 Pico.css 使用
 * 包含视觉微调、交互效果及动画
 */

:root {
  /* 高端时尚字体栈：优先思源黑体 */
  --font-family: "Noto Sans SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  
  /* 覆盖 Pico.css 变量以匹配极简中性风格 */
  --primary: #2c2c2c;
  --primary-hover: #000000;
  --primary-focus: rgba(44, 44, 44, 0.125);
  --primary-inverse: #ffffff;
  --background-color: #ffffff;
  --color: #333333;
  
  /* 布局间距优化 */
  --block-spacing-vertical: 3rem;
}

/* 基础排版优化 */
body {
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 300; /* 纤细字重体现高级感 */
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

/* 导航栏固定与透明效果 */
body > header {
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav ul li a {
  color: var(--color);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: opacity 0.3s ease;
}

nav ul li a:hover,
nav ul li a[aria-current="page"] {
  text-decoration: none;
  opacity: 0.6;
  border-bottom: 1px solid var(--color);
}

/* 全屏主视觉区域 (Hero Section) */
.hero-section {
  position: relative;
  height: 85vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f4f4f4;
  margin-bottom: var(--block-spacing-vertical);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  max-width: 800px;
  padding: 2rem;
}

/* 图片交互组件 */
.gallery-item {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  background: #f9f9f9;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
  transform: scale(1.03); /* 轻微放大 */
}

/* 网格布局辅助 (适配 Pico 的 grid) */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  align-items: start;
}

/* 细节展示模块 */
.detail-card {
  padding: 2rem;
  background: #fafafa;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.detail-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

/* 页面加载淡入动画 */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 统一页脚 */
footer.site-footer {
  margin-top: 5rem;
  padding: 3rem 0;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: #999;
}

/* 实用工具类 */
.text-center { text-align: center; }
.text-light { color: #666; font-weight: 300; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.container-fluid { max-width: 1600px; margin: 0 auto; padding: 0 2rem; }