/**
 * 家族健康传承管理 列表页 Figma 72:630 — 自适应
 */

.page-family-heritage {
  background: #ffffff;
}

.fh-main {
  padding-bottom: 0;
}

/* ---------- Hero（多代家庭主视觉 + 标题叠字） ---------- */
.fh-hero {
  position: relative;
  width: 100%;
  min-height: clamp(220px, 32vw, 600px);
  max-height: 600px;
  overflow: hidden;
}

.fh-hero__bg {
  position: absolute;
  inset: 0;
}

.fh-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.fh-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.fh-hero__inner {
  position: relative;
  z-index: 1;
  min-height: clamp(220px, 32vw, 600px);
  max-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem) 1rem;
  box-sizing: border-box;
}

.fh-hero__title {
  margin: 0 0 clamp(0.5rem, 2vw, 1rem);
  max-width: 90%;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.fh-hero__subtitle {
  margin: 0;
  max-width: 52rem;
  font-size: clamp(1rem, 2vw, 1.875rem);
  font-weight: 200;
  line-height: 1.45;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

.fh-breadcrumb {
  background: rgba(217, 217, 217, 0.16);
}

/* ---------- 列表区浅底 + 5 列卡片（稿面 72:630） ---------- */
.fh-list-band {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  background: rgba(217, 217, 217, 0.16);
}

.fh-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.8vw, 1.25rem);
}

.fh-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 11rem;
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(0.65rem, 1.5vw, 0.85rem);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: #1b1a1a;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fh-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.fh-card__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  margin-bottom: clamp(0.5rem, 1.5vw, 0.75rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fh-card__icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.fh-card__title {
  flex: 1;
  font-size: clamp(0.9375rem, 1.4vw, 1.125rem);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: clamp(0.5rem, 1.2vw, 0.65rem);
}

.fh-card__more {
  font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
  color: rgba(0, 0, 0, 0.45);
  font-weight: 400;
}

@media (max-width: 1399px) {
  .fh-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1199px) {
  .fh-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .fh-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .fh-grid {
    grid-template-columns: 1fr;
  }
}
