/* ===== 归途 - 首页样式 ===== */

/* Hero 区域 */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-height));
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    var(--color-bg-secondary) 0%,
    var(--color-bg) 50%,
    var(--color-bg-tertiary) 100%
  );
  background-size: cover;
  background-position: center;
  transition: background var(--transition-slow);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(254, 252, 243, 0.3) 0%,
    rgba(254, 252, 243, 0.7) 100%
  );
}

[data-theme="dark"] .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.3) 0%,
    rgba(26, 26, 26, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-8);
  animation: fadeInUp 0.8s ease;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  letter-spacing: 0.05em;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  font-weight: 300;
  letter-spacing: 0.1em;
}

.hero-cta {
  letter-spacing: 0.05em;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  animation: fadeIn 1s ease 0.5s both;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(45deg);
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
  40% { transform: rotate(45deg) translateY(8px); }
  60% { transform: rotate(45deg) translateY(4px); }
}

/* 通用区块 */
.section {
  padding: var(--space-20) 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-10);
}

.section-title {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: 600;
  position: relative;
  padding-left: var(--space-4);
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--color-accent);
  border-radius: 2px;
}

/* 文章网格 */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-6);
}

/* 关于区域 */
.about-section {
  background: var(--color-bg-secondary);
  transition: background-color var(--transition-base);
}

.about-content {
  display: flex;
  gap: var(--space-12);
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-desc {
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.feature-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.feature-item:hover {
  background: var(--color-bg-card);
}

.feature-icon {
  font-size: var(--text-2xl);
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.feature-item h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.feature-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* 空状态 */
.posts-empty {
  grid-column: 1 / -1;
}

/* 响应式 */
@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-subtitle {
    font-size: var(--text-lg);
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .about-content {
    flex-direction: column;
    gap: var(--space-8);
  }

  .section {
    padding: var(--space-12) 0;
  }
}
