.page-home {
  --hm-rail-w: 200px;
  --hm-gap: clamp(24px, 4vw, 56px);
  background: var(--sk-deep);
  color: var(--sk-paper);
  overflow-x: clip;
}

.page-home img {
  max-width: 100%;
  height: auto;
}

/* ---------- 首屏 ---------- */

.hm-hero {
  position: relative;
  padding: calc(var(--sk-header-h) + 44px) 0 clamp(44px, 6vw, 84px);
  background:
    radial-gradient(1100px 480px at 84% -12%, rgba(46, 196, 182, .16), transparent 62%),
    linear-gradient(180deg, #0B1F3A 0%, #0B1F3A 58%, #10294a 100%);
  border-bottom: 1px solid var(--sk-line);
}

.hm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(62, 90, 117, .26) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(62, 90, 117, .26) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 76%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 76%);
  pointer-events: none;
}

.hm-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--hm-gap);
}

.hm-hero__eyebrow {
  margin: 0;
  color: var(--sk-teal);
  letter-spacing: .2em;
  font-size: .75rem;
}

.hm-hero__title {
  margin: 18px 0 0;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--sk-paper);
  text-wrap: balance;
}

.hm-hero__lede {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--sk-mist);
}

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

.hm-hero__visual {
  display: grid;
  gap: 26px;
}

.hm-hero__figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--sk-line);
  background: linear-gradient(140deg, #16304F, #0B1F3A 72%);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - var(--sk-cut)) 0, 100% var(--sk-cut), 100% 100%, var(--sk-cut) 100%, 0 calc(100% - var(--sk-cut)));
}

.hm-hero__figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: .92;
}

.hm-hero__cap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--sk-line);
  font-size: .8125rem;
  color: var(--sk-mist);
}

.hm-hero__cap .sk-mono {
  color: var(--sk-coral);
  letter-spacing: .1em;
}

.hm-hero__toc {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--sk-line);
}

.hm-hero__toc-item + .hm-hero__toc-item {
  border-top: 1px solid rgba(62, 90, 117, .55);
}

.hm-hero__toc-item a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "num label"
    "num desc";
  column-gap: 16px;
  row-gap: 3px;
  padding: 13px 10px 13px 0;
  text-decoration: none;
  color: var(--sk-paper);
  transition: color .2s var(--sk-ease), padding-left .2s var(--sk-ease);
}

.hm-hero__toc-item a:hover,
.hm-hero__toc-item a:focus-visible {
  color: var(--sk-teal);
  padding-left: 8px;
}

.hm-hero__num {
  grid-area: num;
  padding-top: 4px;
  font-size: .8125rem;
  color: var(--sk-teal);
  letter-spacing: .08em;
}

.hm-hero__toc-label {
  grid-area: label;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.4;
}

.hm-hero__toc-desc {
  grid-area: desc;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--sk-mist);
}

/* ---------- 主体骨架 ---------- */

.hm-body {
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 9vw, 120px);
  background: var(--sk-deep);
}

.hm-body__grid {
  display: grid;
  gap: clamp(30px, 4vw, 56px);
}

.hm-rail {
  border-bottom: 1px solid var(--sk-line);
  padding-bottom: 14px;
}

.hm-rail__label {
  margin: 0 0 10px;
  color: var(--sk-mist);
  letter-spacing: .16em;
  font-size: .7rem;
}

.hm-index {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.hm-index .sk-index__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--sk-line);
  color: var(--sk-mist);
  font-size: .875rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--sk-ease), border-color .2s var(--sk-ease);
}

.hm-index .sk-index__link:hover,
.hm-index .sk-index__link:focus-visible {
  color: var(--sk-paper);
  border-color: var(--sk-teal);
}

.hm-index .sk-index__num {
  color: var(--sk-teal);
  font-size: .7rem;
  letter-spacing: .08em;
}

.hm-content {
  display: grid;
  gap: clamp(56px, 8vw, 104px);
}

/* ---------- 通用章节 ---------- */

.hm-sec__head {
  max-width: 64ch;
}

.hm-sec__head .sk-eyebrow {
  margin: 0;
  color: var(--sk-teal);
  letter-spacing: .16em;
  font-size: .72rem;
}

.hm-sec__head .sk-h2 {
  margin: 12px 0 0;
  font-size: clamp(1.45rem, 3.2vw, 2.2rem);
  line-height: 1.2;
  color: var(--sk-paper);
}

.hm-sec__lede {
  margin: 16px 0 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--sk-mist);
}

/* ---------- 01 路径对照 ---------- */

.hm-path__routes {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.hm-route-row {
  padding: 18px 20px;
  border: 1px solid var(--sk-line);
  background: rgba(22, 48, 79, .5);
}

.hm-route-row__label {
  margin: 0 0 14px;
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--sk-mist);
}

.hm-route-row--new .hm-route-row__label {
  color: var(--sk-teal);
}

.hm-route-row__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 2px;
}

.hm-route-row__steps li {
  font-size: .875rem;
  line-height: 1.6;
  color: var(--sk-mist);
}

.hm-route-row--new .hm-route-row__steps li {
  color: var(--sk-paper);
}

.hm-route-row--new .hm-route-row__steps li:last-child {
  color: var(--sk-coral);
  font-weight: 600;
}

.hm-route-row__steps li::after {
  content: " →";
  color: var(--sk-line);
}

.hm-route-row__steps li:last-child::after {
  content: "";
}

.hm-diagram {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 30px;
}

/* ---------- 02 产品线索引 ---------- */

.hm-figure {
  margin: 30px 0 0;
}

.hm-figure .sk-figure__frame,
.hm-side-figure .sk-figure__frame,
.hm-map .sk-figure__frame {
  border: 1px solid var(--sk-line);
  background: linear-gradient(150deg, #16304F, #0B1F3A 75%);
  overflow: hidden;
}

.hm-figure .sk-figure__frame img,
.hm-side-figure .sk-figure__frame img,
.hm-map .sk-figure__frame img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.hm-figure .sk-figure__frame img {
  aspect-ratio: 15 / 8;
}

.hm-side-figure .sk-figure__frame img {
  aspect-ratio: 3 / 2;
}

.hm-map .sk-figure__frame img {
  aspect-ratio: 16 / 5;
}

.hm-figure .sk-figure__cap,
.hm-side-figure .sk-figure__cap,
.hm-map .sk-figure__cap {
  padding-top: 12px;
  font-size: .8125rem;
  color: var(--sk-mist);
}

.hm-modules {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--sk-line);
}

.hm-module {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--sk-line);
  transition: background .24s var(--sk-ease), padding-left .24s var(--sk-ease);
}

.hm-module:hover {
  background: rgba(46, 196, 182, .06);
  padding-left: 10px;
}

.hm-module__num {
  grid-row: 1 / span 2;
  padding-top: 4px;
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--sk-teal);
}

.hm-module__body {
  grid-column: 2;
}

.hm-module__name {
  margin: 0 0 6px;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--sk-paper);
}

.hm-module__body p {
  margin: 0;
  max-width: 62ch;
  font-size: .9375rem;
  line-height: 1.75;
  color: var(--sk-mist);
}

.hm-module__chip {
  grid-column: 2;
  justify-self: start;
  margin-top: 10px;
}

/* ---------- 03 版本归档 ---------- */

.hm-versions {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  margin-top: 28px;
}

.hm-versions__main .sk-prose {
  margin: 0;
}

.hm-table-wrap {
  margin-top: 26px;
  overflow-x: auto;
}

.hm-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: .9375rem;
}

.hm-table__cap {
  caption-side: top;
  text-align: left;
  padding-bottom: 10px;
  font-family: var(--sk-font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--sk-mist);
}

.hm-table th,
.hm-table td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--sk-line);
  vertical-align: middle;
}

.hm-table th {
  font-family: var(--sk-font-mono);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--sk-mist);
}

.hm-table tbody td {
  color: var(--sk-paper);
}

.hm-table tbody td:first-child {
  font-family: var(--sk-font-mono);
  color: var(--sk-teal);
  letter-spacing: .04em;
}

.hm-table tbody tr {
  transition: background .2s var(--sk-ease);
}

.hm-table tbody tr:hover {
  background: rgba(46, 196, 182, .07);
}

.hm-table tbody tr:last-child td {
  border-bottom: 0;
}

.hm-side-figure {
  margin: 0;
}

/* ---------- 04 目录与专题更新 ---------- */

.hm-updates {
  list-style: none;
  margin: 30px 0 0;
  padding: 0 0 0 24px;
  border-left: 1px solid var(--sk-line);
}

.hm-update {
  position: relative;
  padding-bottom: 26px;
}

.hm-update:last-child {
  padding-bottom: 0;
}

.hm-update::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sk-teal);
}

.hm-update--archived::before {
  background: var(--sk-amber);
}

.hm-update__when {
  margin: 0;
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--sk-mist);
}

.hm-update__body h3 {
  margin: 6px 0 6px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--sk-paper);
}

.hm-update__body p {
  margin: 0;
  max-width: 64ch;
  font-size: .9375rem;
  line-height: 1.75;
  color: var(--sk-mist);
}

.hm-updates__more {
  margin: 30px 0 0;
}

/* ---------- 地图过渡带 ---------- */

.hm-map {
  margin: 0;
}

/* ---------- 05 联络 ---------- */

.hm-sec--contact {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--sk-line);
  background: linear-gradient(150deg, rgba(22, 48, 79, .92), rgba(11, 31, 58, .92));
}

.hm-contact {
  display: grid;
  gap: 22px;
  margin-top: 30px;
}

.hm-contact__item {
  padding-top: 16px;
  border-top: 1px solid var(--sk-line);
}

.hm-contact__key {
  margin: 0 0 8px;
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--sk-teal);
}

.hm-contact__val {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--sk-paper);
  word-break: break-word;
}

.hm-contact__note {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--sk-line);
  font-size: .875rem;
  line-height: 1.8;
  color: var(--sk-mist);
}

.hm-contact__note a {
  color: var(--sk-coral);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 107, 74, .5);
}

.hm-contact__note a:hover,
.hm-contact__note a:focus-visible {
  border-bottom-color: var(--sk-coral);
}

/* ---------- 响应式 ---------- */

@media (min-width: 640px) {
  .hm-path__routes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 760px) {
  .hm-module {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0 24px;
  }

  .hm-module__num {
    grid-row: auto;
    padding-top: 5px;
  }

  .hm-module__body {
    grid-column: 2;
  }

  .hm-module__chip {
    grid-column: 3;
    margin-top: 2px;
  }
}

@media (min-width: 1000px) {
  .hm-hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: clamp(36px, 5vw, 76px);
  }

  .hm-body__grid {
    grid-template-columns: var(--hm-rail-w) minmax(0, 1fr);
    align-items: start;
    gap: clamp(36px, 4vw, 64px);
  }

  .hm-rail {
    position: sticky;
    top: calc(var(--sk-header-h) + 28px);
    padding-bottom: 0;
    border-bottom: 0;
  }

  .hm-index {
    flex-direction: column;
    gap: 0;
    overflow: visible;
    border-top: 1px solid var(--sk-line);
  }

  .hm-index .sk-index__link {
    display: flex;
    width: 100%;
    padding: 12px 8px 12px 0;
    border: 0;
    border-bottom: 1px solid rgba(62, 90, 117, .5);
  }

  .hm-index .sk-index__link:hover,
  .hm-index .sk-index__link:focus-visible {
    padding-left: 8px;
  }
}

@media (min-width: 1080px) {
  .hm-versions {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home * {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
