/* 全局样式 - 时韵集 */

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  background-color: #fafafa;
  color: #2a2a2a;
  line-height: 1.8;
  overflow-x: hidden;
}

/* 导航栏 */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(42, 42, 42, 0.08);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: #2a2a2a;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  color: #2a2a2a;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #2a2a2a;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #8b7355;
}

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

/* 页脚 */
footer {
  text-align: center;
  padding: 3rem 0;
  font-size: 0.75rem;
  color: #999;
  letter-spacing: 0.1em;
}

/* 主容器 */
main {
  padding-top: 80px;
  min-height: calc(100vh - 80px);
}

/* 首页样式 */
.hero-section {
  position: relative;
  height: calc(100vh - 80px);
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin: 0;
}

/* 辑录页样式 */
.editorial-header {
  text-align: center;
  padding: 6rem 2rem 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.editorial-header h1 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
}

.editorial-header p {
  font-size: 0.95rem;
  color: #666;
  line-height: 2;
}

.series-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 3rem;
}

.series-item {
  margin-bottom: 8rem;
}

.series-main-image {
  width: 100%;
  height: 70vh;
  overflow: hidden;
  margin-bottom: 3rem;
}

.series-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.series-info {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.series-info h2 {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.series-info p {
  font-size: 0.95rem;
  line-height: 2.2;
  color: #555;
}

.series-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.series-gallery img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.series-gallery img:hover {
  transform: scale(1.02);
}

/* 哲思页样式 */
.philosophy-header {
  text-align: center;
  padding: 6rem 2rem 4rem;
}

.philosophy-header h1 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.2em;
}

.philosophy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.philosophy-article {
  font-size: 1rem;
  line-height: 2.5;
  color: #444;
  margin-bottom: 4rem;
}

.philosophy-article p {
  margin-bottom: 2rem;
  text-indent: 2em;
}

.philosophy-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.philosophy-images img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

/* 响应式设计 */
@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .editorial-header,
  .philosophy-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .series-container {
    padding: 2rem 1.5rem;
  }

  .series-gallery {
    grid-template-columns: 1fr;
  }

  .philosophy-images {
    grid-template-columns: 1fr;
  }
}

/* 加载动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease-out;
}