.page-home {
  --hm-gap: clamp(14px, 2.2vw, 22px);
  --hm-pad: clamp(16px, 4vw, 40px);
  --hm-cut: 18px;
  display: block;
  background: var(--ink-900);
  color: var(--paper);
  padding-bottom: clamp(36px, 5vw, 72px);
  overflow-x: hidden;
}

/* ---------- 上下文条 ---------- */
.page-home .hm-context {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px var(--hm-pad);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(11, 59, 50, .65), rgba(14, 20, 18, .2));
}

.page-home .hm-context__path {
  margin: 0;
  font-family: var(--font-data);
  font-size: .76rem;
  letter-spacing: .14em;
  color: var(--cyan);
}

.page-home .hm-context__path span {
  color: var(--paper);
  letter-spacing: .04em;
}

.page-home .hm-context__note {
  margin: 0;
  font-family: var(--font-data);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--moss);
}

/* ---------- 首屏 ---------- */
.page-home .hm-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 74px) var(--hm-pad) clamp(26px, 4vw, 46px);
  background:
    radial-gradient(120% 92% at 80% 0%, rgba(11, 59, 50, .95), rgba(14, 20, 18, 0) 62%),
    var(--ink-900);
}

.page-home .hm-hero__trace {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 40%;
  pointer-events: none;
  opacity: .75;
}

.page-home .hm-hero__grid {
  position: relative;
  display: grid;
  gap: var(--hm-gap);
}

.page-home .hm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-data);
  font-size: .74rem;
  letter-spacing: .16em;
  color: var(--gold);
}

.page-home .hm-kicker__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--alert);
  box-shadow: 0 0 0 4px rgba(255, 90, 60, .16);
}

.page-home .hm-hero__title {
  margin: .34em 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.35rem, 9vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.01em;
  color: var(--paper);
}

.page-home .hm-accent {
  color: var(--cyan);
  box-shadow: inset 0 -0.14em rgba(61, 242, 192, .22);
}

.page-home .hm-hero__text {
  margin: 1.1em 0 0;
  max-width: 60ch;
  font-size: clamp(.94rem, 1.6vw, 1.04rem);
  line-height: 1.85;
  color: var(--muted);
}

.page-home .hm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-home .hm-hero__media {
  margin: 0;
}

.page-home .hm-hero__media .media-frame__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

/* ---------- 首屏指标 ---------- */
.page-home .hm-metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(26px, 4vw, 46px) 0 0;
  padding: 0;
  list-style: none;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
}

.page-home .hm-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px 20px;
  background: rgba(19, 26, 24, .92);
}

.page-home .hm-metric__value {
  font-family: var(--font-data);
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
}

.page-home .hm-metric:nth-child(2) .hm-metric__value { color: var(--gold); }
.page-home .hm-metric:nth-child(3) .hm-metric__value { color: var(--paper); }
.page-home .hm-metric:nth-child(4) .hm-metric__value { color: var(--purple); }

.page-home .hm-metric__unit {
  margin-left: 4px;
  font-family: var(--font-body);
  font-size: .4em;
  color: var(--muted);
}

.page-home .hm-metric__label {
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--moss);
}

/* ---------- 通用区块 ---------- */
.page-home .hm-section {
  padding: clamp(38px, 6vw, 80px) var(--hm-pad);
}

.page-home .hm-section__head {
  max-width: 720px;
}

.page-home .hm-label {
  margin: 0;
  font-family: var(--font-data);
  font-size: .74rem;
  letter-spacing: .16em;
  color: var(--cyan);
}

.page-home .hm-section__title {
  margin: .38em 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 4.4vw, 2.85rem);
  line-height: 1.14;
  color: var(--paper);
}

.page-home .hm-section__lede {
  margin: .9em 0 0;
  font-size: .96rem;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- 速览 ---------- */
.page-home .hm-quick__grid {
  display: grid;
  gap: var(--hm-gap);
  margin-top: clamp(24px, 3vw, 40px);
}

.page-home .hm-quick__list {
  display: grid;
  gap: 12px;
}

.page-home .hm-quick__item {
  padding: 20px 22px;
  background: linear-gradient(150deg, rgba(11, 59, 50, .95), rgba(19, 26, 24, .9));
  clip-path: polygon(0 0, calc(100% - var(--hm-cut)) 0, 100% var(--hm-cut), 100% 100%, 0 100%);
  border-left: 2px solid var(--green-700);
}

.page-home .hm-quick__tag {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-data);
  font-size: .68rem;
  letter-spacing: .12em;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--cyan);
}

.page-home .hm-quick__tag--gold { color: var(--gold); border-color: rgba(245, 184, 75, .4); }
.page-home .hm-quick__tag--purple { color: var(--purple); border-color: rgba(167, 123, 255, .4); }

.page-home .hm-quick__name {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--paper);
}

.page-home .hm-quick__desc {
  margin: 8px 0 0;
  font-size: .9rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .hm-quick__media {
  margin: 0;
}

.page-home .hm-quick__media .media-frame__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

/* ---------- 筛选 ---------- */
.page-home .hm-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: clamp(22px, 3vw, 34px);
}

.page-home .hm-filter__btn {
  appearance: none;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: .86rem;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.page-home .hm-filter__btn:hover { border-color: var(--cyan); }

.page-home .hm-filter__btn[aria-pressed="true"] {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--ink-900);
  font-weight: 700;
}

.page-home .filter-note {
  flex-basis: 100%;
  margin: 4px 0 0;
  font-size: .8rem;
  color: var(--moss);
}

.page-home .filter-note span {
  font-family: var(--font-data);
  color: var(--cyan);
}

/* ---------- 资讯流 ---------- */
.page-home .hm-feed {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.page-home .hm-feed__item {
  position: relative;
  padding: 22px 24px 18px;
  background: linear-gradient(160deg, rgba(19, 26, 24, .96), rgba(11, 59, 50, .42));
  border-left: 2px solid var(--cyan);
  clip-path: polygon(0 0, calc(100% - var(--hm-cut)) 0, 100% var(--hm-cut), 100% 100%, 0 100%);
}

.page-home .hm-feed__item[data-category="squad"] { border-left-color: var(--gold); }
.page-home .hm-feed__item[data-category="data"] { border-left-color: var(--purple); }
.page-home .hm-feed__item[data-category="version"] { border-left-color: var(--moss); }
.page-home .hm-feed__item[hidden] { display: none; }

.page-home .hm-feed__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: var(--font-data);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--moss);
}

.page-home .hm-feed__round { color: var(--cyan); }

.page-home .hm-feed__title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--paper);
}

.page-home .hm-feed__text {
  margin: 8px 0 0;
  font-size: .9rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .hm-feed__item .expand-card {
  margin-top: 12px;
  border-top: 1px dashed var(--line-soft);
  padding-top: 10px;
}

.page-home .hm-feed__item .expand-card__summary {
  cursor: pointer;
  color: var(--cyan);
  font-size: .84rem;
  letter-spacing: .06em;
}

.page-home .hm-feed__item .expand-card__body {
  padding-top: 10px;
  font-size: .88rem;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- 数据面板 Bento ---------- */
.page-home .hm-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hm-gap);
  margin-top: clamp(24px, 3vw, 40px);
}

.page-home .hm-bento__cell {
  padding: 22px 24px;
  background: var(--green-900);
  clip-path: polygon(0 0, calc(100% - var(--hm-cut)) 0, 100% var(--hm-cut), 100% 100%, 0 100%);
}

.page-home .hm-bento__cell--lead {
  background:
    radial-gradient(110% 130% at 0% 0%, rgba(61, 242, 192, .18), rgba(11, 59, 50, 0) 60%),
    var(--green-900);
}

.page-home .hm-bento__cell--wide {
  background: linear-gradient(120deg, rgba(42, 30, 24, .92), rgba(19, 26, 24, .92));
}

.page-home .hm-bento__cell--media {
  padding: 0;
  margin: 0;
  background: var(--ink-800);
}

.page-home .hm-bento__cell--media .media-frame__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.page-home .hm-bento__num {
  display: block;
  font-family: var(--font-data);
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
}

.page-home .hm-bento__unit {
  margin-left: 6px;
  font-family: var(--font-body);
  font-size: .28em;
  color: var(--muted);
}

.page-home .hm-bento__name {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--paper);
}

.page-home .hm-bento__desc {
  margin: 8px 0 0;
  font-size: .88rem;
  line-height: 1.78;
  color: var(--muted);
}

/* ---------- 快捷入口 ---------- */
.page-home .hm-paths__list {
  display: grid;
  gap: 1px;
  margin: clamp(24px, 3vw, 40px) 0 0;
  padding: 0;
  list-style: none;
  background: var(--line-soft);
}

.page-home .hm-path {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 138px;
  padding: 24px 22px;
  background: var(--ink-800);
  color: var(--paper);
  text-decoration: none;
  transition: background .2s ease;
}

.page-home .hm-path:hover,
.page-home .hm-path:focus-visible {
  background: var(--green-900);
}

.page-home .hm-path__name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
}

.page-home .hm-path__desc {
  font-size: .86rem;
  line-height: 1.72;
  color: var(--muted);
}

.page-home .hm-path__go {
  margin-top: auto;
  font-family: var(--font-data);
  font-size: .74rem;
  letter-spacing: .12em;
  color: var(--cyan);
}

/* ---------- 信任与联系 ---------- */
.page-home .hm-trust {
  display: grid;
  gap: var(--hm-gap);
  border-top: 1px solid var(--line-soft);
}

.page-home .hm-trust__banner {
  margin: 0;
}

.page-home .hm-trust__banner .media-frame__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 2 / 1;
}

.page-home .hm-trust__text {
  margin: .9em 0 0;
  font-size: .94rem;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .hm-trust__facts {
  display: grid;
  gap: 8px 20px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-trust__facts li {
  position: relative;
  padding-left: 16px;
  font-size: .87rem;
  line-height: 1.7;
  color: var(--paper);
}

.page-home .hm-trust__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.page-home .hm-icp {
  display: inline-block;
  margin: 22px 0 0;
  padding: 8px 16px;
  font-family: var(--font-data);
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--muted);
  border: 1px dashed var(--line);
}

.page-home .hm-contact {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.page-home .hm-contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.page-home .hm-contact__label {
  flex: 0 0 46px;
  font-family: var(--font-data);
  font-size: .74rem;
  letter-spacing: .12em;
  color: var(--moss);
}

.page-home .hm-contact__value {
  font-family: var(--font-data);
  font-size: .88rem;
  color: var(--cyan);
  word-break: break-all;
}

.page-home .hm-contact__value--plain {
  font-family: var(--font-body);
  color: var(--paper);
  word-break: normal;
}

.page-home .hm-copy {
  appearance: none;
  padding: 4px 12px;
  font-family: var(--font-body);
  font-size: .76rem;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}

.page-home .hm-copy:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.page-home .hm-contact__note {
  margin: 14px 0 0;
  font-size: .82rem;
  line-height: 1.75;
  color: var(--moss);
}

/* ---------- 响应式 ---------- */
@media (min-width: 760px) {
  .page-home .hm-bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .page-home .hm-bento__cell { grid-column: span 2; }
  .page-home .hm-bento__cell--lead { grid-column: span 4; }
  .page-home .hm-bento__cell--media { grid-column: span 3; }
  .page-home .hm-bento__cell--wide { grid-column: span 3; }

  .page-home .hm-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .hm-paths__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .hm-trust__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-home .hm-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
  }

  .page-home .hm-quick__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: start;
  }
}

@media (min-width: 1000px) {
  .page-home .hm-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .hm-trust {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}

@media (hover: none) {
  .page-home .hm-path:hover {
    background: var(--ink-800);
  }
}
