.page-home {
  --ph-cut: 26px;
  --ph-cut-s: 14px;
  display: block;
}

/* ==================== 首屏 ==================== */
.page-home .ph-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: clamp(580px, 90vh, 900px);
  padding: 128px 0 68px;
}

.page-home .ph-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  opacity: .42;
}

.page-home .ph-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 92% at 10% 88%, rgba(185, 59, 44, .32) 0%, rgba(185, 59, 44, 0) 58%),
    linear-gradient(178deg, rgba(14, 26, 43, .74) 0%, rgba(14, 26, 43, .9) 48%, var(--sf-night) 100%);
}

.page-home .ph-hero__inner {
  width: 100%;
}

.page-home .ph-hero__crumbs {
  margin: 0 0 24px;
}

.page-home .ph-hero__eyebrow {
  margin: 0;
}

.page-home .ph-hero__title {
  margin: 18px 0 0;
  font-family: var(--sf-serif);
  font-weight: 900;
  font-size: clamp(38px, 8.6vw, 84px);
  line-height: 1.08;
  letter-spacing: -.022em;
  color: var(--sf-cream);
  text-shadow: 0 4px 30px rgba(14, 26, 43, .72);
}

.page-home .ph-hero__band {
  display: block;
  width: min(340px, 58%);
  height: 7px;
  margin: 24px 0 0;
  background: linear-gradient(90deg, var(--sf-gold) 0%, rgba(217, 164, 65, .04) 100%);
  transform: skewX(-26deg);
  transform-origin: left center;
}

.page-home .ph-hero__lead {
  max-width: 32em;
  margin: 26px 0 0;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(242, 233, 218, .82);
}

.page-home .ph-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.page-home .ph-enter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px 15px 18px;
  font-family: var(--sf-serif);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--sf-cream);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--ph-cut-s)), calc(100% - var(--ph-cut-s)) 100%, 0 100%);
  transition: transform .28s var(--sf-ease), filter .28s var(--sf-ease);
}

.page-home .ph-enter:hover {
  transform: translate(-3px, 3px);
  filter: brightness(1.08);
}

.page-home .ph-enter:focus-visible {
  outline: 2px solid var(--sf-gold);
  outline-offset: 3px;
}

.page-home .ph-enter__seal {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 14px;
  border-radius: 6px;
  background: rgba(14, 26, 43, .3);
}

.page-home .ph-enter--seal {
  background: linear-gradient(135deg, var(--sf-cinnabar) 0%, #8f2b1f 100%);
}

.page-home .ph-enter--gold {
  background: linear-gradient(135deg, var(--sf-gold) 0%, #b07f26 100%);
  color: var(--sf-night);
}

.page-home .ph-enter--gold .ph-enter__seal {
  background: rgba(14, 26, 43, .16);
  color: var(--sf-night);
}

.page-home .ph-hero__hint {
  margin: 46px 0 0;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--sf-stone);
}

/* ==================== 三条主干道 ==================== */
.page-home .ph-routes {
  position: relative;
}

.page-home .ph-routes__lead {
  max-width: 36em;
  margin: 14px 0 0;
  color: rgba(242, 233, 218, .7);
  line-height: 1.85;
}

.page-home .ph-routes__list {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.page-home .ph-route {
  padding: 1px;
  background: linear-gradient(150deg, rgba(217, 164, 65, .55) 0%, rgba(166, 90, 58, .28) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--ph-cut)), calc(100% - var(--ph-cut)) 100%, 0 100%);
  transition: transform .3s var(--sf-ease), background .3s var(--sf-ease);
}

.page-home .ph-route:hover {
  transform: translate(-4px, 4px);
  background: linear-gradient(150deg, var(--sf-gold) 0%, rgba(185, 59, 44, .6) 100%);
}

.page-home .ph-route__inner {
  height: 100%;
  padding: 24px 22px 28px;
  background: linear-gradient(158deg, var(--sf-ink) 0%, var(--sf-ink-2) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--ph-cut)), calc(100% - var(--ph-cut)) 100%, 0 100%);
}

.page-home .ph-route__figure {
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: 10px;
}

.page-home .ph-route__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: .88;
}

.page-home .ph-route__num {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--sf-gold);
}

.page-home .ph-route h3 {
  margin: 0;
  color: var(--sf-cream);
}

.page-home .ph-route p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(242, 233, 218, .76);
}

.page-home .ph-route__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-bottom: 3px;
  font-family: var(--sf-serif);
  font-weight: 600;
  color: var(--sf-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 164, 65, .4);
  transition: border-color .25s var(--sf-ease), color .25s var(--sf-ease);
}

.page-home .ph-route__link:hover {
  border-color: var(--sf-gold);
  color: var(--sf-cream);
}

/* ==================== 新访客五步 ==================== */
.page-home .ph-steps {
  background: linear-gradient(180deg, rgba(22, 38, 61, .55) 0%, rgba(14, 26, 43, 0) 100%);
}

.page-home .ph-steps__list {
  list-style: none;
  margin: 38px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-home .ph-step {
  position: relative;
  padding: 22px 20px 24px 66px;
  background: rgba(22, 38, 61, .62);
  border-left: 2px solid rgba(166, 90, 58, .5);
  border-radius: 0 14px 14px 0;
  transition: background .3s var(--sf-ease), border-color .3s var(--sf-ease);
}

.page-home .ph-step:hover {
  background: rgba(28, 48, 80, .74);
  border-left-color: var(--sf-gold);
}

.page-home .ph-step__num {
  position: absolute;
  left: 18px;
  top: 24px;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--sf-gold);
}

.page-home .ph-step h3 {
  margin: 0;
  font-family: var(--sf-serif);
  font-size: 20px;
  color: var(--sf-cream);
}

.page-home .ph-step p {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(242, 233, 218, .74);
}

.page-home .ph-steps__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.page-home .ph-steps__note {
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--sf-stone);
}

/* ==================== 记录查询 ==================== */
.page-home .ph-query__grid {
  display: grid;
  gap: 34px;
}

.page-home .ph-query__intro p {
  max-width: 30em;
  margin: 16px 0 0;
  line-height: 1.85;
  color: rgba(242, 233, 218, .76);
}

.page-home .ph-query__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-home .ph-query__flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.page-home .ph-query__step {
  position: relative;
  padding: 26px 22px 28px;
  background: var(--sf-sand);
  color: var(--sf-night);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

.page-home .ph-query__idx {
  display: block;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--sf-azurite-deep);
}

.page-home .ph-query__step h3 {
  margin: 10px 0 0;
  font-family: var(--sf-serif);
  font-size: 21px;
  color: var(--sf-night);
}

.page-home .ph-query__step p {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.8;
  color: #24384f;
}

/* ==================== 本地服务 ==================== */
.page-home .ph-local {
  background: linear-gradient(180deg, var(--sf-ink) 0%, #0b1522 100%);
  border-top: 1px solid rgba(217, 164, 65, .22);
}

.page-home .ph-local__grid {
  display: grid;
  gap: 34px;
}

.page-home .ph-local__figure {
  margin: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.page-home .ph-local__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.page-home .ph-local__body p {
  max-width: 32em;
  margin: 16px 0 0;
  line-height: 1.85;
  color: rgba(242, 233, 218, .78);
}

.page-home .ph-local__list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .ph-local__list li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(166, 90, 58, .32);
}

.page-home .ph-local__list .sf-mono {
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--sf-gold);
}

.page-home .ph-local__list span:last-child {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(242, 233, 218, .82);
}

.page-home .ph-local__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.page-home .ph-local__stat {
  padding: 16px 18px;
  background: rgba(14, 26, 43, .55);
  border-left: 3px solid var(--sf-cinnabar);
}

.page-home .ph-local__stat strong {
  display: block;
  font-family: var(--sf-serif);
  font-weight: 900;
  font-size: 30px;
  line-height: 1.1;
  color: var(--sf-cream);
}

.page-home .ph-local__stat span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--sf-stone);
}

.page-home .ph-local__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ==================== 响应式 ==================== */
@media (min-width: 720px) {
  .page-home .ph-hero {
    padding: 148px 0 84px;
  }

  .page-home .ph-routes__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }

  .page-home .ph-route:last-child {
    grid-column: 1 / -1;
  }

  .page-home .ph-local__list li {
    grid-template-columns: 96px 1fr;
  }
}

@media (min-width: 900px) {
  .page-home .ph-routes__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .page-home .ph-route:last-child {
    grid-column: auto;
  }

  .page-home .ph-route:nth-child(2) {
    margin-top: 28px;
  }

  .page-home .ph-route:nth-child(3) {
    margin-top: 56px;
  }

  .page-home .ph-query__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
    align-items: start;
  }

  .page-home .ph-local__grid {
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 52px;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .page-home .ph-steps__list {
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
  }

  .page-home .ph-step {
    padding: 24px 18px 26px;
    border-left: 0;
    border-top: 2px solid rgba(166, 90, 58, .5);
    border-radius: 0 0 14px 14px;
  }

  .page-home .ph-step:hover {
    border-top-color: var(--sf-gold);
  }

  .page-home .ph-step__num {
    position: static;
    display: block;
    margin-bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .ph-enter,
  .page-home .ph-route,
  .page-home .ph-step,
  .page-home .ph-route__link {
    transition: none;
  }

  .page-home .ph-enter:hover,
  .page-home .ph-route:hover {
    transform: none;
  }
}
