.page-home {
  --hm-dot: rgba(18, 60, 51, 0.18);
  --hm-paper-grain: rgba(18, 60, 51, 0.06);
  display: block;
}

/* ---------- 首屏：编辑部式目录 ---------- */
.page-home .hm-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.25rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 14% -10%, rgba(214, 160, 62, 0.18), transparent 58%),
    radial-gradient(circle at 92% 8%, rgba(28, 90, 75, 0.10), transparent 46%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-home .hm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--hm-paper-grain) 1px, transparent 1.2px);
  background-size: 20px 20px;
  opacity: 0.75;
}

.page-home .hm-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-home .hm-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

.page-home .hm-hero__brand {
  margin: 0;
  position: relative;
  padding-left: 2.4rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  color: var(--brick);
}

.page-home .hm-hero__brand::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 1.7rem;
  height: 1px;
  background: var(--brick);
}

.page-home .hm-hero__title {
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 6.4vw, 3.5rem);
  line-height: 1.22;
  letter-spacing: 0.02em;
  color: var(--ink);
  max-width: 17em;
}

.page-home .hm-hero__lede {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.95;
  color: var(--graphite);
}

.page-home .hm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.page-home .hm-hero__meta {
  margin: 1.5rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--note);
  line-height: 1.9;
}

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

.page-home .hm-hero__figure .figure__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(155deg, rgba(214, 160, 62, 0.26), rgba(18, 60, 51, 0.14));
}

.page-home .hm-hero__figure .figure__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.74) contrast(0.97);
}

.page-home .hm-hero__figure .figure__caption {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--note);
}

.page-home .hm-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.page-home .hm-index__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 0.9rem;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--graphite);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .hm-index__item:hover {
  background: var(--card);
  color: var(--ink);
}

.page-home .hm-index__num {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.page-home .hm-index__label {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
}

/* ---------- 路线容器 ---------- */
.page-home .hm-flow {
  position: relative;
  background: var(--paper);
}

.page-home .hm-flow > .wrap {
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.page-home .hm-flow .section {
  padding: clamp(2.5rem, 5.5vw, 4.25rem) 0;
}

.page-home .hm-flow .section + .section {
  border-top: 1px dashed var(--hm-dot);
}

.page-home .section__head {
  max-width: 46rem;
}

.page-home .section__index {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--brick);
}

.page-home .section__title {
  margin: 0.5rem 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.6vw, 2rem);
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.page-home .section__lede {
  margin: 0.85rem 0 0;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--note);
}

.page-home .hm-inline-link {
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
}

.page-home .hm-inline-link a {
  color: var(--brick);
  text-decoration: none;
  border-bottom: 1px solid rgba(192, 68, 43, 0.35);
  padding-bottom: 0.15em;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .hm-inline-link a:hover {
  color: var(--brick-deep);
  border-bottom-color: var(--brick-deep);
}

/* ---------- 01 起点：三个数字 ---------- */
.page-home .hm-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: 2rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.page-home .hm-fact {
  padding: 1.5rem 1.35rem;
  background: var(--card);
}

.page-home .hm-fact__num {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.page-home .hm-fact__num small {
  font-size: 0.8125rem;
  margin-left: 0.35rem;
  letter-spacing: 0.08em;
  color: var(--note);
}

.page-home .hm-fact__title {
  margin: 0.85rem 0 0;
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
}

.page-home .hm-fact__text {
  margin: 0.55rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--graphite);
}

/* ---------- 02 场景岔口 ---------- */
.page-home .hm-routes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: 2rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.page-home .hm-route-card {
  padding: 1.5rem 1.35rem;
  background: var(--card);
  transition: background var(--dur) var(--ease);
}

.page-home .hm-route-card:hover {
  background: var(--paper);
}

.page-home .hm-route-card__kicker {
  display: inline-block;
  margin: 0;
  padding: 0.2rem 0.6rem;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: var(--gold-soft);
  border-radius: 2px;
}

.page-home .hm-route-card h3 {
  margin: 0.85rem 0 0;
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

.page-home .hm-route-card p {
  margin: 0.55rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--graphite);
}

.page-home .hm-route-card__slots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ok);
}

.page-home .hm-route-card__slots::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}

.page-home .hm-banner {
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
}

.page-home .hm-banner .figure__media {
  aspect-ratio: 12 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(240, 223, 184, 0.55), rgba(18, 60, 51, 0.10));
}

.page-home .hm-banner .figure__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.8) contrast(0.97);
}

.page-home .figure__caption {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--note);
}

/* ---------- 03 两种约法 ---------- */
.page-home .hm-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.page-home .hm-compare__col {
  padding: 1.6rem 1.4rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-top-width: 3px;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.page-home .hm-compare__col--self {
  border-top-color: var(--brick);
}

.page-home .hm-compare__col--help {
  border-top-color: var(--ink-2);
}

.page-home .hm-compare__kicker {
  margin: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--note);
}

.page-home .hm-compare__col h3 {
  margin: 0.6rem 0 0;
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}

.page-home .hm-compare__list {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-compare__list li {
  position: relative;
  padding-left: 1.15rem;
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--graphite);
}

.page-home .hm-compare__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 0.5rem;
  height: 1px;
  background: var(--gold);
}

.page-home .hm-compare__fit {
  margin: 1.15rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.85;
  color: var(--note);
}

/* ---------- 04 谁上门 ---------- */
.page-home .hm-crew {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.page-home .hm-crew__item + .hm-crew__item {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.page-home .hm-crew__item h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

.page-home .hm-crew__item p {
  margin: 0.55rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.95;
  color: var(--graphite);
}

.page-home .hm-crew__aside .figure {
  margin: 0;
}

.page-home .hm-crew__aside .figure__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(214, 160, 62, 0.3), rgba(18, 60, 51, 0.12));
}

.page-home .hm-crew__aside .figure__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.78);
}

.page-home .hm-crew__note {
  margin: 1.1rem 0 0;
  padding: 1rem 1.1rem;
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--graphite);
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: 0 2px 2px 0;
}

/* ---------- 05 新用户预览 ---------- */
.page-home .hm-preview {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(214, 160, 62, 0.22), transparent 55%),
    var(--ink);
  border-radius: 2px;
  color: var(--paper);
}

.page-home .hm-preview__kicker {
  margin: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.page-home .hm-preview__title {
  margin: 0.7rem 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  line-height: 1.45;
  color: var(--paper);
}

.page-home .hm-preview__text {
  margin: 0.9rem 0 0;
  max-width: 40rem;
  font-size: 0.9375rem;
  line-height: 1.95;
  color: rgba(246, 241, 230, 0.84);
}

.page-home .hm-preview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.page-home .hm-preview .btn--ghost {
  color: var(--paper);
  border-color: rgba(246, 241, 230, 0.42);
}

.page-home .hm-preview .btn--ghost:hover {
  background: rgba(246, 241, 230, 0.12);
  border-color: rgba(246, 241, 230, 0.7);
}

/* ---------- 06 时段与到达 ---------- */
.page-home .hm-slots {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

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

.page-home .hm-slots__figure .figure__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(214, 160, 62, 0.34), rgba(18, 60, 51, 0.12));
}

.page-home .hm-slots__figure .figure__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.8);
}

.page-home .hm-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.35rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--graphite);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .hm-slot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}

.page-home .hm-slot:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.page-home .hm-slots__facts {
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.page-home .hm-slots__facts > div {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.page-home .hm-slots__facts dt {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.page-home .hm-slots__facts dd {
  margin: 0.45rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--graphite);
}

/* ---------- 07 绕弯的三个地方 ---------- */
.page-home .hm-detours {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: 2rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.page-home .hm-detour {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.35rem;
  background: var(--paper);
}

.page-home .hm-detour__tag {
  margin: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--clay);
}

.page-home .hm-detour h3 {
  margin: 0.7rem 0 0;
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

.page-home .hm-detour p {
  margin: 0.6rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--graphite);
}

.page-home .hm-detour a {
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: 0.875rem;
  color: var(--brick);
  text-decoration: none;
  border-bottom: none;
  align-self: flex-start;
  transition: color var(--dur) var(--ease);
}

.page-home .hm-detour a:hover {
  color: var(--brick-deep);
  text-decoration: underline;
}

/* ---------- 08 今天就能约 ---------- */
.page-home .hm-book {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--brick) 0%, var(--brick-deep) 100%);
  border-radius: 2px;
  color: var(--card);
}

.page-home .hm-book__kicker {
  margin: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: rgba(253, 250, 242, 0.78);
}

.page-home .hm-book__title {
  margin: 0.7rem 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  line-height: 1.45;
  color: var(--card);
}

.page-home .hm-book__text p {
  margin: 0.9rem 0 0;
  max-width: 34rem;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: rgba(253, 250, 242, 0.88);
}

.page-home .hm-book__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.page-home .hm-book__note {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(253, 250, 242, 0.82);
}

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

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

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

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

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

@media (min-width: 900px) {
  .page-home .hm-hero__grid {
    grid-template-columns: 7fr 5fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
  }

  .page-home .hm-crew {
    grid-template-columns: 7fr 5fr;
    gap: clamp(2rem, 4vw, 3.5rem);
  }

  .page-home .hm-slots {
    grid-template-columns: 5fr 7fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }

  .page-home .hm-slots__figure {
    position: sticky;
    top: calc(var(--topbar) + 1.5rem);
  }

  .page-home .hm-preview,
  .page-home .hm-book {
    grid-template-columns: 7fr 5fr;
    gap: 2.5rem;
  }

  .page-home .hm-book__actions {
    align-items: flex-start;
    justify-self: end;
  }

  .page-home .hm-flow > .wrap {
    padding-left: clamp(0rem, 3vw, 3.5rem);
  }

  .page-home .hm-flow .section {
    position: relative;
  }

  .page-home .hm-flow .section::before {
    content: "";
    position: absolute;
    left: -2.5rem;
    top: calc(clamp(2.5rem, 5.5vw, 4.25rem) + 0.45rem);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    box-shadow: 0 0 0 4px var(--paper);
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  }

  .page-home .hm-flow .section.is-current::before {
    background: var(--brick);
    border-color: var(--brick);
  }
}

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

  .page-home .hm-route-card:last-child {
    grid-column: span 2;
  }
}

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

@media (min-width: 1180px) {
  .page-home .hm-flow .section::before {
    left: -3.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition-duration: 1ms !important;
  }

  .page-home .hm-slot:hover {
    transform: none;
  }
}
