.page-home {
  --hm-pad: clamp(16px, 3vw, 32px);
  --hm-pad-block: clamp(26px, 4.5vw, 52px);
  background: var(--paper-050);
  color: var(--ink-900);
  padding-bottom: clamp(36px, 6vw, 72px);
}

.page-home .crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: clamp(14px, 2vw, 22px);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--ice-500);
}

.page-home .crumb a {
  color: var(--ice-500);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.page-home .crumb a:hover,
.page-home .crumb a:focus-visible {
  color: var(--flame-500);
  border-bottom-color: var(--flame-500);
}

.page-home .crumb__sep {
  color: var(--ice-300);
}

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

.page-home section {
  padding-block: var(--hm-pad-block);
  border-bottom: 1px solid var(--ice-300);
}

.page-home section:last-of-type {
  border-bottom: 0;
}

/* ---------- 区块头 ---------- */
.page-home .section-head {
  display: grid;
  gap: 6px;
  margin: 0 0 clamp(16px, 2.6vw, 26px);
  padding-top: 12px;
  border-top: 3px solid var(--ink-900);
}

.page-home .section-head__no {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--ice-500);
}

.page-home .section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.2vw, 2.2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.page-home .section-head__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--pine-600);
}

@media (min-width: 760px) {
  .page-home .section-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 6px 18px;
  }
  .page-home .section-head__note {
    justify-self: end;
    text-align: right;
  }
}

/* ---------- 图片容器 ---------- */
.page-home .hm-shot {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  border: 3px solid var(--ink-900);
  background: var(--ink-900);
  box-shadow: var(--shadow-hard);
}

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

.page-home .hm-shot--4x3 { aspect-ratio: 4 / 3; }
.page-home .hm-shot--wide { aspect-ratio: 12 / 7; }
.page-home .hm-shot--tall { aspect-ratio: 4 / 5; }

.page-home .hm-shot--slant {
  border: 0;
  box-shadow: none;
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
  filter: drop-shadow(6px 6px 0 rgba(11, 22, 32, 0.9));
}

.page-home .media-frame__label {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 5px 10px;
  background: var(--ink-900);
  color: var(--paper-050);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

/* ---------- 01 入口 ---------- */
.page-home .hm-entry {
  position: relative;
  border-bottom: 0;
  padding-top: clamp(18px, 3vw, 32px);
}

.page-home .blueprint::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 78%;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(159, 198, 216, 0.42) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(159, 198, 216, 0.42) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0) 88%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0) 88%);
}

.page-home .hm-entry > * {
  position: relative;
}

.page-home .hm-entry__grid {
  display: grid;
  gap: clamp(20px, 3.4vw, 36px);
}

.page-home .eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ice-500);
}

.page-home .hm-entry .lead {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.page-home .hm-entry__lede {
  max-width: 56ch;
  margin: clamp(14px, 2vw, 20px) 0 0;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(11, 22, 32, 0.84);
}

.page-home .hm-status {
  list-style: none;
  display: grid;
  gap: 1px;
  margin: clamp(20px, 3vw, 28px) 0 0;
  padding: 0;
  background: var(--ice-300);
  border: 1px solid var(--ice-300);
}

.page-home .hm-status__item {
  display: grid;
  gap: 3px;
  padding: 10px 14px;
  background: var(--paper-050);
}

.page-home .hm-status__k {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ice-500);
}

.page-home .hm-status__v {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
}

.page-home .hm-entry__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(20px, 3vw, 28px);
}

.page-home .btn {
  border-width: 2px;
  border-style: solid;
  border-color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
}

.page-home .btn--ghost {
  background: transparent;
  color: var(--ink-900);
}

.page-home .btn--ghost:hover,
.page-home .btn--ghost:focus-visible {
  background: var(--ink-900);
  color: var(--paper-050);
}

.page-home .btn--accent {
  border-color: var(--flame-500);
}

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

@media (min-width: 940px) {
  .page-home .hm-entry__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

/* ---------- 02 速度 ---------- */
.page-home .hm-speed {
  background: var(--ink-900);
  color: var(--paper-050);
  border-bottom: 0;
  padding: clamp(34px, 5vw, 56px) var(--hm-pad);
  clip-path: polygon(0 0, 100% 1.8%, 100% 100%, 0 98.2%);
  margin-block: clamp(22px, 4vw, 40px);
}

.page-home .hm-speed .section-head {
  border-top-color: rgba(226, 237, 242, 0.4);
}

.page-home .hm-speed .section-head__no { color: var(--flame-300); }
.page-home .hm-speed .section-head__title { color: var(--paper-050); }
.page-home .hm-speed .section-head__note { color: rgba(226, 237, 242, 0.68); }

.page-home .hm-speed .hm-shot {
  border-color: var(--ice-300);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.55);
}

.page-home .hm-speed__grid {
  display: grid;
  gap: clamp(18px, 3vw, 30px);
}

.page-home .hm-bars {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.page-home .hm-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

.page-home .hm-bar__label { color: rgba(226, 237, 242, 0.86); }

.page-home .hm-bar__val {
  color: var(--flame-300);
  text-align: right;
}

.page-home .hm-bar__track {
  grid-column: 1 / -1;
  display: block;
  height: 14px;
  border: 1px solid rgba(226, 237, 242, 0.34);
  background: rgba(226, 237, 242, 0.14);
}

.page-home .hm-bar__fill {
  display: block;
  height: 100%;
  transition: width var(--dur) var(--ease), filter var(--dur) var(--ease);
}

.page-home .hm-bar__fill--new {
  width: 42%;
  background: var(--flame-500);
}

.page-home .hm-bar__fill--old {
  width: 95%;
  background: var(--ice-300);
}

.page-home .hm-bar:hover .hm-bar__fill {
  filter: brightness(1.15);
}

.page-home .hm-gains {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .hm-gains li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(244, 248, 250, 0.84);
}

.page-home .hm-gains li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--flame-500);
}

@media (min-width: 880px) {
  .page-home .hm-speed__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
  }
}

/* ---------- 03 归档 ---------- */
.page-home .hm-archive__intro {
  max-width: 62ch;
  margin: 0 0 clamp(18px, 2.6vw, 26px);
  font-size: 0.98rem;
  line-height: 1.8;
  color: rgba(11, 22, 32, 0.82);
}

.page-home .hm-archive__list {
  border-top: 1px solid var(--ice-300);
  border-bottom: 1px solid var(--ice-300);
}

.page-home .hm-month {
  background: var(--paper-050);
  border-bottom: 1px solid var(--ice-300);
}

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

.page-home .hm-month--current {
  border-left: 3px solid var(--flame-500);
}

.page-home .hm-month__sum {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
}

.page-home .hm-month__sum::-webkit-details-marker { display: none; }

.page-home .hm-month__no {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--ice-500);
  border: 1px solid var(--ice-300);
  padding: 2px 7px;
}

.page-home .hm-month--current .hm-month__no {
  color: var(--flame-500);
  border-color: var(--flame-500);
}

.page-home .hm-month__title {
  flex: 1 1 11rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.page-home .hm-month__count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--pine-600);
}

.page-home .hm-month__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.page-home .tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border: 1px solid var(--ice-300);
  background: var(--ice-100);
  color: var(--pine-600);
}

.page-home .tag--flame {
  background: var(--flame-500);
  border-color: var(--flame-500);
  color: #fff;
}

.page-home .hm-month[open] .hm-month__sum {
  background: var(--ice-100);
  border-bottom: 1px solid var(--ice-300);
}

.page-home .hm-month__body {
  padding: 12px 14px 16px;
}

.page-home .hm-month__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--ice-300);
  border: 1px solid var(--ice-300);
}

.page-home .hm-month__items a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 14px;
  padding: 10px 12px;
  background: var(--paper-050);
  color: var(--ink-900);
  font-size: 0.93rem;
  line-height: 1.6;
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .hm-month__items a:hover,
.page-home .hm-month__items a:focus-visible {
  background: var(--ice-100);
  color: var(--pine-600);
}

.page-home .hm-month__meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--ice-500);
}

.page-home .hm-archive__more {
  margin: clamp(16px, 2.4vw, 22px) 0 0;
  font-size: 0.92rem;
}

.page-home .hm-archive__more a {
  color: var(--ice-500);
  text-decoration: none;
  border-bottom: 2px solid var(--ice-300);
  padding-bottom: 2px;
}

.page-home .hm-archive__more a:hover {
  color: var(--flame-500);
  border-bottom-color: var(--flame-500);
}

/* ---------- 04 主客场 ---------- */
.page-home .hm-ha__grid {
  display: grid;
  gap: clamp(16px, 2.6vw, 24px);
}

.page-home .hm-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ice-300);
  background: var(--paper-050);
}

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

.page-home .hm-table__cap {
  caption-side: top;
  padding: 10px 12px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--pine-600);
  background: var(--ice-100);
  border-bottom: 1px solid var(--ice-300);
}

.page-home .hm-table th,
.page-home .hm-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--ice-300);
}

.page-home .hm-table thead th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--ice-500);
  border-bottom: 2px solid var(--ink-900);
  white-space: nowrap;
}

.page-home .hm-table tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.page-home .hm-table tbody tr:hover {
  background: var(--ice-100);
}

.page-home .hm-val {
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.page-home .hm-note {
  padding: 16px 18px;
  background: var(--sand-100);
  border: 1px solid var(--ice-300);
  border-top: 3px solid var(--pine-600);
}

.page-home .hm-note__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 800;
}

.page-home .hm-note p {
  margin: 0 0 12px;
  font-size: 0.93rem;
  line-height: 1.75;
  color: rgba(11, 22, 32, 0.82);
}

.page-home .hm-note__link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--pine-600);
  text-decoration: none;
  border-bottom: 2px solid var(--pine-600);
  padding-bottom: 2px;
}

.page-home .hm-note__link:hover {
  color: var(--flame-500);
  border-bottom-color: var(--flame-500);
}

.page-home .hm-band {
  margin-top: clamp(20px, 3vw, 30px);
}

@media (min-width: 900px) {
  .page-home .hm-ha__grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

/* ---------- 05 两条路径 ---------- */
.page-home .hm-paths__grid {
  display: grid;
  gap: 1px;
  background: var(--ink-900);
  border: 3px solid var(--ink-900);
  box-shadow: var(--shadow-hard);
}

.page-home .hm-path {
  display: grid;
  gap: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: var(--paper-050);
  color: var(--ink-900);
  text-decoration: none;
  transition: background var(--dur) var(--ease);
}

.page-home .hm-path:hover,
.page-home .hm-path:focus-visible {
  background: var(--ice-100);
}

.page-home .hm-path__kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  color: var(--flame-500);
}

.page-home .hm-path__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.page-home .hm-path__text {
  font-size: 0.94rem;
  line-height: 1.78;
  color: rgba(11, 22, 32, 0.8);
}

.page-home .hm-path__go {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ice-500);
}

.page-home .hm-path--transfer {
  background: var(--pine-900);
  color: var(--paper-050);
}

.page-home .hm-path--transfer:hover,
.page-home .hm-path--transfer:focus-visible {
  background: var(--pine-600);
}

.page-home .hm-path--transfer .hm-path__kicker { color: var(--flame-300); }
.page-home .hm-path--transfer .hm-path__text { color: rgba(244, 248, 250, 0.82); }
.page-home .hm-path--transfer .hm-path__go { color: var(--ice-300); }

.page-home .hm-paths__note {
  max-width: 66ch;
  margin: clamp(16px, 2.4vw, 22px) 0 0;
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(11, 22, 32, 0.78);
}

.page-home .hm-paths__note a {
  color: var(--ice-500);
  text-decoration: none;
  border-bottom: 2px solid var(--ice-300);
}

.page-home .hm-paths__note a:hover {
  color: var(--flame-500);
  border-bottom-color: var(--flame-500);
}

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

/* ---------- 06 三步上手 ---------- */
.page-home .hm-start__grid {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

.page-home .hm-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--ice-300);
  border: 1px solid var(--ice-300);
}

.page-home .hm-step {
  padding: 16px 18px;
  background: var(--paper-050);
}

.page-home .hm-step__no {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--flame-500);
}

.page-home .hm-step h3 {
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.4;
}

.page-home .hm-step p {
  margin: 0 0 10px;
  font-size: 0.93rem;
  line-height: 1.75;
  color: rgba(11, 22, 32, 0.8);
}

.page-home .hm-step a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ice-500);
  text-decoration: none;
  border-bottom: 2px solid var(--ice-300);
  padding-bottom: 2px;
}

.page-home .hm-step a:hover {
  color: var(--flame-500);
  border-bottom-color: var(--flame-500);
}

.page-home .hm-tail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(26px, 4vw, 44px);
  padding-top: 16px;
  border-top: 3px solid var(--ink-900);
}

.page-home .hm-tail__text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.page-home .hm-tail__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.page-home .hm-tail__links a {
  color: var(--ice-500);
  text-decoration: none;
  border-bottom: 1px solid var(--ice-300);
}

.page-home .hm-tail__links a:hover {
  color: var(--flame-500);
  border-bottom-color: var(--flame-500);
}

@media (min-width: 900px) {
  .page-home .hm-start__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    align-items: start;
  }
}

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