.page-home {
  --hm-rule: rgba(200, 162, 72, .28);
  --hm-rule-soft: rgba(200, 162, 72, .16);
  --hm-title-grad: linear-gradient(118deg, #E6C976 0%, #C8A248 45%, #8A6B1F 100%);
  background: var(--pk-ink);
  color: var(--pk-bone);
  font-family: var(--pk-font-body);
  overflow-x: hidden;
}

.page-home .pk-container {
  padding-inline: var(--pk-pad);
}

.page-home a:focus-visible,
.page-home summary:focus-visible {
  outline: 2px solid var(--pk-gold);
  outline-offset: 3px;
}

/* ================= 首屏 ================= */
.page-home .hm-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 8vw, 104px);
  background:
    radial-gradient(110% 78% at 80% 6%, rgba(200, 162, 72, .13), transparent 62%),
    linear-gradient(180deg, #0A211B 0%, #0C2620 52%, #14382E 100%);
}

.page-home .hm-hero__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .hm-hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 42%;
  opacity: .3;
  filter: saturate(.72) contrast(1.06) brightness(.86);
}

.page-home .hm-hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 33, 27, .95) 0%, rgba(10, 33, 27, .66) 48%, rgba(12, 38, 32, .24) 100%),
    radial-gradient(130% 92% at 50% 112%, rgba(10, 33, 27, .9), transparent 62%);
}

.page-home .hm-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 5vw, 48px);
}

.page-home .hm-hero__lead {
  max-width: 40rem;
}

.page-home .hm-hero__eyebrow {
  color: var(--pk-gold);
}

.page-home .hm-hero__title {
  display: flex;
  flex-direction: column;
  margin: 16px 0 0;
  font-size: clamp(52px, 13vw, 96px);
  font-weight: 900;
  line-height: .94;
  letter-spacing: -.03em;
  color: var(--pk-bone);
}

.page-home .hm-hero__title em {
  font-style: normal;
  color: var(--pk-gold-bright);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .page-home .hm-hero__title em {
    background-image: var(--hm-title-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.page-home .hm-hero__lede {
  margin: 24px 0 0;
  max-width: 32em;
  color: rgba(242, 237, 227, .8);
}

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

.page-home .hm-hero__sheet {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  background: var(--pk-sand);
  color: var(--pk-char);
  border: 1px solid rgba(12, 38, 32, .1);
  border-top: 2px solid var(--pk-gold);
  border-radius: var(--pk-radius);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .88);
}

.page-home .hm-hero__sheet-kicker {
  margin: 0;
  font-family: var(--pk-font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--pk-gold-deep);
}

.page-home .hm-hero__sheet-title {
  margin: 10px 0 0;
  font-family: var(--pk-font-display);
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--pk-ink);
}

.page-home .hm-routes {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.page-home .hm-route + .hm-route {
  border-top: 1px solid rgba(12, 38, 32, .12);
}

.page-home .hm-route__link {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0 15px 16px;
  text-decoration: none;
  color: inherit;
  transition: transform .25s var(--pk-ease);
}

.page-home .hm-route__link::after {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 3px;
  height: 16px;
  background: var(--pk-gold);
  opacity: .3;
  transform: scaleY(.35);
  transform-origin: top;
  transition: transform .3s var(--pk-ease), opacity .3s var(--pk-ease);
}

.page-home .hm-route__link:hover,
.page-home .hm-route__link:focus-visible {
  transform: translateY(-2px);
}

.page-home .hm-route__link:hover::after,
.page-home .hm-route__link:focus-visible::after {
  opacity: 1;
  transform: scaleY(1);
}

.page-home .hm-route__no {
  padding-top: 3px;
  font-family: var(--pk-font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--pk-slate);
  transition: color .25s var(--pk-ease);
}

.page-home .hm-route__link:hover .hm-route__no,
.page-home .hm-route__link:focus-visible .hm-route__no {
  color: var(--pk-red);
}

.page-home .hm-route__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .hm-route__name {
  font-family: var(--pk-font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--pk-ink);
}

.page-home .hm-route__text {
  font-size: 14px;
  line-height: 1.72;
  color: #414F4A;
}

@media (min-width: 900px) {
  .page-home .hm-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    column-gap: clamp(28px, 4vw, 56px);
  }

  .page-home .hm-hero__sheet {
    margin-top: clamp(56px, 11vw, 128px);
  }
}

/* ================= 版本速览 ================= */
.page-home .hm-scan {
  position: relative;
  padding: clamp(48px, 9vw, 104px) 0;
  background: var(--pk-bone);
  color: var(--pk-char);
}

.page-home .hm-scan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--pk-gold-grad);
  opacity: .55;
}

.page-home .hm-scan__head {
  max-width: 44rem;
  margin-bottom: clamp(26px, 4vw, 42px);
}

.page-home .hm-scan .pk-kicker {
  color: var(--pk-red);
}

.page-home .hm-scan .pk-h2 {
  margin: 12px 0 14px;
  color: var(--pk-ink);
}

.page-home .hm-scan .pk-lede {
  color: #46534F;
}

.page-home .hm-scan__media {
  margin: 0 0 clamp(28px, 4vw, 44px);
}

.page-home .hm-scan__media img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .hm-scan .pk-media__caption {
  color: #5C6A65;
}

.page-home .hm-scan__table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-home .hm-scan .pk-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: var(--pk-char);
}

.page-home .hm-scan .pk-table th,
.page-home .hm-scan .pk-table td {
  padding: 13px 16px 13px 0;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.7;
  border-bottom: 1px solid rgba(12, 38, 32, .12);
}

.page-home .hm-scan .pk-table thead th {
  padding-bottom: 10px;
  font-family: var(--pk-font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--pk-gold-deep);
  border-bottom-color: rgba(12, 38, 32, .3);
}

.page-home .hm-scan .pk-table tbody th {
  font-family: var(--pk-font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--pk-ink);
}

.page-home .hm-scan .pk-table tbody tr {
  transition: background-color .22s var(--pk-ease);
}

.page-home .hm-scan .pk-table tbody tr:hover {
  background: rgba(200, 162, 72, .13);
}

.page-home .hm-scan .pk-table tbody tr:last-child th,
.page-home .hm-scan .pk-table tbody tr:last-child td {
  border-bottom: none;
}

.page-home .hm-scan__caption {
  padding-bottom: 12px;
  text-align: left;
  font-family: var(--pk-font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--pk-slate);
}

.page-home .hm-scan__more {
  margin: clamp(24px, 3.5vw, 36px) 0 0;
}

/* ================= 栏目地图 ================= */
.page-home .hm-map {
  position: relative;
  padding: clamp(52px, 9vw, 108px) 0;
  background:
    radial-gradient(90% 62% at 92% 0%, rgba(200, 162, 72, .1), transparent 65%),
    linear-gradient(180deg, #14382E 0%, #0C2620 100%);
  color: var(--pk-bone);
}

.page-home .hm-map__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 5vw, 56px);
}

.page-home .hm-map__aside .pk-kicker {
  color: var(--pk-gold);
}

.page-home .hm-map__aside .pk-h2 {
  margin: 12px 0 14px;
  color: var(--pk-bone);
}

.page-home .hm-map__aside .pk-text {
  max-width: 30em;
  color: rgba(242, 237, 227, .74);
}

.page-home .hm-map__media {
  margin: clamp(24px, 4vw, 36px) 0 0;
  max-width: 300px;
}

.page-home .hm-map__media img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .hm-map__panel {
  padding: clamp(20px, 3vw, 32px);
  background: var(--pk-glass);
  border: 1px solid var(--hm-rule-soft);
  border-radius: var(--pk-radius);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.page-home .hm-map__switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(18px, 3vw, 26px);
}

.page-home .hm-map__switch .pk-switch__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-home .hm-map__switch .pk-switch__label {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-family: var(--pk-font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(242, 237, 227, .72);
  border: 1px solid var(--hm-rule);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .25s var(--pk-ease), color .25s var(--pk-ease), border-color .25s var(--pk-ease);
}

.page-home .hm-map__switch .pk-switch__label:hover {
  color: var(--pk-gold-bright);
  border-color: var(--pk-gold);
}

.page-home .hm-map__switch .pk-switch__input:checked + .pk-switch__label {
  background: var(--pk-gold-grad);
  color: #0C2620;
  border-color: transparent;
}

.page-home .hm-map__switch .pk-switch__input:focus-visible + .pk-switch__label {
  outline: 2px solid var(--pk-gold-bright);
  outline-offset: 2px;
}

.page-home .hm-map__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .hm-map__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 16px 0 16px 16px;
  border-top: 1px solid var(--hm-rule-soft);
}

.page-home .hm-map__row:first-child {
  border-top: none;
}

.page-home .hm-map__row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 3px;
  height: 14px;
  background: var(--pk-red);
  opacity: .35;
  transform: scaleY(.4);
  transform-origin: top;
  transition: transform .32s var(--pk-ease), opacity .32s var(--pk-ease);
}

.page-home .hm-map__row:nth-child(2)::before { transition-delay: .08s; }
.page-home .hm-map__row:nth-child(3)::before { transition-delay: .16s; }
.page-home .hm-map__row:nth-child(4)::before { transition-delay: .24s; }

.page-home .hm-map__row:hover::before,
.page-home .hm-map__row.is-in::before {
  opacity: 1;
  transform: scaleY(1);
}

.page-home .hm-map__tag,
.page-home .hm-map__text,
.page-home .hm-map__go {
  display: block;
}

.page-home .hm-map__tag {
  font-family: var(--pk-font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--pk-bone);
}

.page-home .hm-map__text {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(242, 237, 227, .68);
}

.page-home .hm-map__go {
  justify-self: start;
  margin-top: 4px;
  font-family: var(--pk-font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--pk-gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .25s var(--pk-ease), border-color .25s var(--pk-ease);
}

.page-home .hm-map__go:hover,
.page-home .hm-map__go:focus-visible {
  color: var(--pk-gold-bright);
  border-bottom-color: var(--pk-gold-bright);
}

@media (min-width: 620px) {
  .page-home .hm-map__row {
    grid-template-columns: 9rem minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 6px;
    align-items: start;
  }

  .page-home .hm-map__tag {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .page-home .hm-map__text {
    grid-column: 2;
    grid-row: 1;
  }

  .page-home .hm-map__go {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
  }
}

@media (min-width: 980px) {
  .page-home .hm-map__inner {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: start;
  }

  .page-home .hm-map__panel {
    margin-top: clamp(28px, 6vw, 72px);
  }
}

/* ================= 状态与反馈 ================= */
.page-home .hm-status {
  position: relative;
  padding: clamp(48px, 8vw, 100px) 0 clamp(56px, 8vw, 96px);
  background: linear-gradient(180deg, #14382E 0%, #0A211B 100%);
  color: var(--pk-bone);
}

.page-home .hm-status::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--pk-gold-grad);
  opacity: .7;
}

.page-home .hm-status__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 48px);
}

.page-home .hm-status__main .pk-kicker {
  color: var(--pk-gold);
}

.page-home .hm-status__main .pk-h2 {
  margin: 12px 0 0;
  color: var(--pk-bone);
}

.page-home .hm-status__main .pk-text {
  max-width: 34em;
  color: rgba(242, 237, 227, .74);
}

.page-home .hm-status__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: clamp(22px, 3vw, 32px) 0;
  padding: clamp(16px, 2.5vw, 22px) 0;
  border-top: 1px solid var(--hm-rule-soft);
  border-bottom: 1px solid var(--hm-rule-soft);
}

.page-home .hm-status .pk-stat__num {
  display: block;
  font-family: var(--pk-font-mono);
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: .04em;
  color: var(--pk-gold-bright);
}

.page-home .hm-status .pk-stat__label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(242, 237, 227, .6);
}

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

.page-home .hm-status__note {
  margin: 22px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--pk-red);
  font-size: 13px;
  line-height: 1.85;
  color: rgba(242, 237, 227, .6);
}

.page-home .hm-status__media {
  margin: 0;
  max-width: 340px;
}

.page-home .hm-status__media img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .hm-status .pk-media__caption {
  color: rgba(242, 237, 227, .55);
}

@media (min-width: 900px) {
  .page-home .hm-status__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: end;
    column-gap: clamp(28px, 5vw, 64px);
  }

  .page-home .hm-status__media {
    justify-self: end;
  }
}

/* ================= 动效降级 ================= */
@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

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