/* 全局样式补充 - 基于 pico.css */
:root {
  --primary-color: #333;
  --background-color: #fafafa;
  --text-light: #999;
  --border-light: #eee;
  --transition: all 0.3s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--primary-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.nav-links {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 3rem;
}

.nav-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
}

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

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

/* 主内容区域 */
main {
  margin-top: 80px;
  min-height: calc(100vh - 160px);
}

/* 首页轮播图样式 */
.hero-carousel {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slogan {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 10;
}

.hero-slogan h1 {
  font-size: 3rem;
  font-weight: 200;
  letter-spacing: 3px;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.explore-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: transparent;
  border: 1px solid white;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.explore-btn:hover {
  background: white;
  color: var(--primary-color);
}

/* 系列页样式 */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 3rem;
}

.collection-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: white;
  border-radius: 4px;
}

.collection-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.collection-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.collection-item:hover .collection-overlay {
  transform: translateY(0);
}

/* 分类标签 */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.category-tab {
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.category-tab.active,
.category-tab:hover {
  border-bottom: 2px solid var(--primary-color);
}

/* 故事页样式 */
.story-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
}

.story-section {
  margin-bottom: 4rem;
}

.story-section img {
  width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: 4px;
}

.story-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

/* 视觉页样式 */
.visual-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1rem;
  padding: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* 页脚样式 */
footer {
  text-align: center;
  padding: 3rem 0;
  font-size: 0.8rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-light);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-links {
    gap: 1.5rem;
  }
  
  .hero-slogan h1 {
    font-size: 2rem;
  }
  
  .collection-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  .category-tabs {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .story-container {
    padding: 1rem;
  }
  
  .visual-gallery {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}

/* 加载动画 */
.loading {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

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

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

/* 图片遮罩层 */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  cursor: pointer;
}

.image-modal img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.image-modal:active {
  display: none;
}