/* Tailwind CSS 配置 */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* 全局字体引入 */
@import url('https://fonts.loli.net/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* 全局样式重置与基础配置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 导航栏样式 */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.nav-link {
  position: relative;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #d4d4d4;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 1px;
  background: #ffffff;
}

/* 英雄区域样式 */
.hero-section {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  z-index: 10;
  width: 90%;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 1px;
  opacity: 0.95;
}

/* 缩略图导航样式 */
.thumbnail-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
}

.thumbnail-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.thumbnail-card:hover {
  transform: scale(1.02);
}

.thumbnail-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: filter 0.4s ease;
}

.thumbnail-card:hover .thumbnail-image {
  filter: brightness(1.1);
}

.thumbnail-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 1px;
}

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

.collection-item {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.collection-item:hover {
  transform: translateY(-8px);
}

.collection-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.collection-info {
  padding: 1.5rem 0;
}

.collection-title {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

.collection-desc {
  font-size: 0.95rem;
  color: #666666;
  line-height: 1.7;
}

/* 文章卡片样式 */
.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.4s ease;
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-8px);
}

.article-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.article-content {
  padding: 2rem 0;
}

.article-title {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.article-excerpt {
  font-size: 1rem;
  color: #666666;
  line-height: 1.8;
}

/* 页脚样式 */
.site-footer {
  text-align: center;
  padding: 3rem 2rem;
  color: #999999;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border-top: 1px solid #e5e5e5;
  margin-top: 4rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .thumbnail-nav {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }
  
  .collection-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
  }
  
  .collection-image {
    height: 400px;
  }
  
  .article-image {
    height: 300px;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* 加载状态 */
.loading {
  opacity: 0.6;
  pointer-events: none;
}