.page-home {
  --hm-rule: rgba(32, 26, 21, 0.14);
  --hm-rule-inverse: rgba(243, 238, 226, 0.18);
  --hm-gap: clamp(20px, 4vw, 48px);
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
}

/* ---------- 面包屑 ---------- */
.page-home .og-breadcrumb {
  padding-top: clamp(14px, 3vw, 26px);
  padding-bottom: 4px;
  color: var(--graphite);
  font-size: 13px;
}

/* ---------- 首屏 ---------- */
.page-home .hm-hero {
  padding-top: clamp(18px, 3.2vw, 36px);
  padding-bottom: clamp(36px, 7vw, 84px);
}

.page-home .hm-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.page-home .hm-hero__kicker {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ember);
}

.page-home .hm-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 11.5vw, 96px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  color: var(--ink);
  word-break: break-word;
}

.page-home .hm-mark {
  position: relative;
  display: inline-block;
  padding: 0 0.08em;
}

.page-home .hm-mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.14em;
  background: var(--ember);
  transform: skewX(-12deg);
  z-index: -1;
}

.page-home .hm-hero__lede {
  margin: clamp(18px, 2.6vw, 28px) 0 0;
  max-width: 36em;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.75;
  color: var(--graphite);
}

.page-home .hm-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin: clamp(24px, 3.4vw, 40px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hm-rule);
}

.page-home .hm-fact {
  padding: 16px 12px 14px 0;
  border-bottom: 1px solid var(--hm-rule);
}

.page-home .hm-fact__n {
  display: block;
  font-size: clamp(30px, 6vw, 46px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-home .hm-fact__l {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--graphite);
}

/* 右侧索引面板 */
.page-home .hm-hero__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.page-home .hm-panel {
  background: var(--arena);
  color: var(--paper);
  padding: 20px 22px 12px;
  clip-path: polygon(0 0, calc(100% - var(--notch-lg)) 0, 100% var(--notch-lg), 100% 100%, 0 100%);
  transition: clip-path 160ms var(--ease);
}

.page-home .hm-panel:hover {
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.page-home .hm-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--hm-rule-inverse);
}

.page-home .hm-panel__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--volt);
}

.page-home .hm-panel__ver {
  font-size: 13px;
  color: rgba(243, 238, 226, 0.6);
}

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

.page-home .hm-panel__item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hm-rule-inverse);
}

.page-home .hm-panel__item:last-child {
  border-bottom: 0;
}

.page-home .hm-panel__idx {
  font-size: 13px;
  color: var(--ember);
}

.page-home .hm-panel__name {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--paper);
}

.page-home .hm-panel__cnt {
  font-size: 13px;
  color: rgba(243, 238, 226, 0.55);
}

.page-home .hm-hero__fig {
  margin: 0;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  overflow: hidden;
  border: 1px solid var(--hm-rule);
  background: var(--paper-lift);
}

.page-home .hm-hero__fig img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

/* ---------- 三步入门 ---------- */
.page-home .hm-steps {
  background: var(--arena);
  color: var(--paper);
  padding: clamp(44px, 8vw, 96px) 0;
  margin-top: clamp(12px, 3vw, 32px);
}

.page-home .hm-steps .og-section-head {
  color: var(--paper);
}

.page-home .hm-steps .og-section-head__num {
  color: var(--volt);
}

.page-home .hm-steps .og-section-head__rule {
  background: var(--ember);
}

.page-home .og-section-head--dark .og-section-head__title {
  color: var(--paper);
}

.page-home .hm-steps__lede {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(243, 238, 226, 0.72);
}

.page-home .hm-steps__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(28px, 5vw, 52px);
}

.page-home .hm-steps__list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.page-home .hm-steps__list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 24px;
  width: 0;
  border-left: 2px dashed rgba(196, 240, 66, 0.4);
}

.page-home .hm-step {
  position: relative;
  padding: 0 0 26px 30px;
  outline: none;
}

.page-home .hm-step__node {
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--volt);
  box-shadow: 0 0 0 4px rgba(196, 240, 66, 0.16);
}

.page-home .hm-step:hover .hm-step__node,
.page-home .hm-step:focus-visible .hm-step__node {
  box-shadow: 0 0 0 7px rgba(196, 240, 66, 0.24);
}

.page-home .hm-step:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 6px;
}

.page-home .hm-step__num {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--volt);
}

.page-home .hm-step__title {
  margin: 8px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--paper);
}

.page-home .hm-step__text {
  margin: 0;
  max-width: 34em;
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(243, 238, 226, 0.72);
}

.page-home .hm-steps__fig {
  margin: 0;
  clip-path: polygon(0 0, calc(100% - var(--notch-lg)) 0, 100% var(--notch-lg), 100% 100%, 0 100%);
  overflow: hidden;
  border: 1px solid var(--hm-rule-inverse);
  align-self: start;
}

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

/* ---------- 功能清单 ---------- */
.page-home .hm-feat {
  padding-top: clamp(44px, 8vw, 96px);
  padding-bottom: clamp(36px, 6vw, 72px);
}

.page-home .hm-feat__lede {
  margin: 18px 0 0;
  max-width: 38em;
  font-size: 16px;
  line-height: 1.75;
  color: var(--graphite);
}

.page-home .hm-feat__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin: clamp(22px, 3.4vw, 34px) 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hm-rule);
}

.page-home .hm-feat__count {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--graphite);
}

.page-home .og-seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(32, 26, 21, 0.06);
  border: 1px solid var(--hm-rule);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.page-home .og-seg__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 120ms var(--ease), color 120ms var(--ease);
}

.page-home .og-seg__btn .og-mono {
  color: var(--ember);
  margin-right: 4px;
}

.page-home .og-seg__btn[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
}

.page-home .og-seg__btn[aria-selected="true"] .og-mono {
  color: var(--volt);
}

.page-home .og-seg__btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.page-home .hm-cat {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.page-home .hm-cat__block {
  border: 1px solid var(--hm-rule);
  background: var(--paper-lift);
  padding: 20px 20px 8px;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  transition: clip-path 140ms var(--ease);
}

.page-home .hm-cat__block:hover {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.page-home .hm-cat__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hm-rule);
}

.page-home .hm-cat__num {
  font-size: 13px;
  color: var(--ember);
}

.page-home .hm-cat__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

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

.page-home .hm-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "tag name"
    ".   desc";
  column-gap: 10px;
  row-gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(32, 26, 21, 0.08);
}

.page-home .hm-item:last-child {
  border-bottom: 0;
}

.page-home .hm-item .og-index-tag {
  grid-area: tag;
  font-size: 12px;
  color: var(--ember);
  align-self: baseline;
}

.page-home .hm-item__name {
  grid-area: name;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.page-home .hm-item__desc {
  grid-area: desc;
  font-size: 14px;
  line-height: 1.7;
  color: var(--graphite);
}

.page-home .hm-feat__fig {
  margin: clamp(26px, 4vw, 40px) 0 0;
  clip-path: polygon(0 0, calc(100% - var(--notch-lg)) 0, 100% var(--notch-lg), 100% 100%, 0 100%);
  overflow: hidden;
  border: 1px solid var(--hm-rule);
}

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

.page-home .hm-feat__fig figcaption {
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--paper-lift);
  border-top: 1px solid var(--hm-rule);
}

.page-home .hm-numgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--hm-rule);
  background: var(--hm-rule);
}

.page-home .hm-numgrid__item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 16px;
  background: var(--paper-lift);
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--ink);
}

.page-home .hm-numgrid__idx {
  font-size: 13px;
  color: var(--ember);
  min-width: 22px;
}

.page-home .hm-numgrid__note {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--graphite);
}

/* ---------- 变更记录 ---------- */
.page-home .hm-log {
  padding-top: clamp(28px, 5vw, 56px);
  padding-bottom: clamp(36px, 6vw, 72px);
}

.page-home .hm-log__lede {
  margin: 18px 0 0;
  max-width: 38em;
  font-size: 16px;
  line-height: 1.75;
  color: var(--graphite);
}

.page-home .hm-log__list {
  margin: clamp(24px, 3.4vw, 36px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hm-rule);
}

.page-home .hm-log__item {
  display: grid;
  grid-template-columns: minmax(76px, 110px) minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hm-rule);
}

.page-home .hm-log__ver {
  font-size: 15px;
  color: var(--signal);
}

.page-home .hm-log__scope {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
}

.page-home .hm-log__ref {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--graphite);
}

.page-home .hm-log__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: clamp(24px, 3.4vw, 34px) 0 0;
}

.page-home .og-btn {
  display: inline-block;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: transform 120ms var(--ease), background 120ms var(--ease);
}

.page-home .og-btn--solid {
  background: var(--ink);
  color: var(--paper);
}

.page-home .og-btn--solid:hover {
  transform: translateX(4px);
}

.page-home .og-btn--volt {
  background: var(--volt);
  color: var(--ink);
}

.page-home .og-btn--volt:hover {
  transform: translateX(4px);
}

.page-home .og-btn:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

/* ---------- 设备适配 ---------- */
.page-home .hm-adapt {
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(36px, 6vw, 72px);
}

.page-home .hm-adapt__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(24px, 4vw, 44px);
  background: var(--arena);
  color: var(--paper);
  clip-path: polygon(0 0, calc(100% - var(--notch-lg)) 0, 100% var(--notch-lg), 100% 100%, 0 100%);
}

.page-home .hm-adapt__eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--volt);
}

.page-home .hm-adapt__title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--paper);
}

.page-home .hm-adapt__text {
  margin: 16px 0 0;
  max-width: 34em;
  font-size: 15.5px;
  line-height: 1.78;
  color: rgba(243, 238, 226, 0.74);
}

.page-home .hm-adapt__list {
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
  border-top: 1px dashed var(--hm-rule-inverse);
}

.page-home .hm-adapt__list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px dashed var(--hm-rule-inverse);
  font-size: 15px;
  color: var(--paper);
}

.page-home .hm-adapt__list .og-mono {
  font-size: 13px;
  color: var(--ember);
}

.page-home .hm-adapt__fig {
  margin: 0;
  align-self: center;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  overflow: hidden;
  border: 1px solid var(--hm-rule-inverse);
}

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

/* ---------- 快速跳转 ---------- */
.page-home .hm-routes {
  padding-top: clamp(20px, 4vw, 44px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

.page-home .hm-routes__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin: clamp(22px, 3.4vw, 34px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-route__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "idx name"
    ".   desc";
  column-gap: 16px;
  row-gap: 6px;
  padding: 18px 18px 18px 0;
  border-bottom: 1px solid var(--hm-rule);
  text-decoration: none;
  color: inherit;
  transition: padding-left 140ms var(--ease), border-color 140ms var(--ease);
}

.page-home .hm-route__link:hover {
  padding-left: 14px;
  border-bottom-color: var(--ember);
}

.page-home .hm-route__link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.page-home .hm-route__idx {
  grid-area: idx;
  font-size: 13px;
  color: var(--ember);
  align-self: baseline;
}

.page-home .hm-route__name {
  grid-area: name;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .hm-route__desc {
  grid-area: desc;
  font-size: 15px;
  line-height: 1.7;
  color: var(--graphite);
}

/* ---------- 章节头补丁 ---------- */
.page-home .og-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-home .og-section-head__num {
  font-size: 13px;
  color: var(--ember);
  letter-spacing: 0.05em;
}

.page-home .og-section-head__rule {
  display: inline-block;
  width: 48px;
  height: 2px;
  background: var(--ember);
  transform: rotate(-6deg);
  transform-origin: left center;
}

.page-home .og-section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}

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

  .page-home .hm-fact {
    padding-right: 16px;
  }

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

  .page-home .hm-log__foot {
    gap: 14px;
  }
}

@media (min-width: 900px) {
  .page-home .hm-hero {
    padding-top: clamp(28px, 4vw, 52px);
  }

  .page-home .hm-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 5vw, 72px);
  }

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

  .page-home .hm-steps__list::before {
    left: 5px;
    top: 8px;
    bottom: 40px;
  }

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

  .page-home .hm-cat__block--wide {
    grid-column: 1 / -1;
  }

  .page-home .hm-cat__list--row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 24px;
  }

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

  .page-home .hm-routes__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }

  .page-home .hm-routes__list > .hm-route:last-child {
    grid-column: 1 / -1;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
</main>
