/* 首页 hero 区块：仅在 index.md 使用 .hero 包裹 */
.hero {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  background: linear-gradient(120deg, var(--md-primary-fg-color), #7c4dff 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.05rem;
  color: var(--md-default-fg-color--light);
  max-width: 34rem;
  margin: 0 auto 1.6rem;
  line-height: 1.7;
}

.hero .md-button {
  margin: 0.25rem 0.35rem;
}

/* 卡片网格：图标与大标题对齐更紧凑 */
.grid.cards > ul > li {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.grid.cards > ul > li:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* 深色模式下的 hero 渐变，提高对比度 */
[data-md-color-scheme="slate"] .hero h1 {
  background: linear-gradient(120deg, #9fa8ff, #b388ff 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media screen and (max-width: 600px) {
  .hero {
    padding-top: 1.5rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
}
