.page-home {
  --hm-r: 28px;
  --hm-gap: 16px;
  display: block;
  padding-bottom: clamp(40px, 8vw, 96px);
}

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

.page-home h1 {
  margin: 0.24em 0 0;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--white);
}

.page-home .hm-crumb {
  margin: clamp(16px, 3vw, 28px) 0 clamp(22px, 3.4vw, 36px);
}

/* ---------- 首屏 ---------- */
.page-home .hm-hero {
  display: grid;
  gap: clamp(24px, 3.4vw, 40px);
}

.page-home .hm-hero__intro {
  max-width: 76ch;
}

.page-home .hm-hero__lead {
  margin: 18px 0 0;
  max-width: 64ch;
  color: var(--ink);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.8;
}

.page-home .hm-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.page-home .hm-grid {
  display: grid;
  gap: var(--hm-gap);
  grid-template-columns: minmax(0, 1fr);
}

.page-home .hm-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--hm-r);
  border: 1px solid var(--line);
  background: var(--graphite);
  overflow: hidden;
  isolation: isolate;
}

.page-home .hm-panel__tag {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
}

.page-home .hm-panel__tag--orange {
  color: var(--orange);
}

.page-home .hm-panel__title {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--white);
}

.page-home .hm-panel__title--sm {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
}

.page-home .hm-panel__text {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.75;
}

.page-home .hm-panel--main {
  justify-content: flex-end;
  min-height: 360px;
  padding: clamp(24px, 3vw, 40px);
  border-color: var(--line-strong);
}

.page-home .hm-panel__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% 62%;
  opacity: 0.74;
}

.page-home .hm-panel--main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(202deg, rgba(11, 14, 15, 0.22) 6%, rgba(11, 14, 15, 0.74) 48%, rgba(11, 14, 15, 0.97) 90%);
}

.page-home .hm-panel__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.page-home .hm-panel--legacy {
  border-color: rgba(255, 122, 47, 0.34);
  background: linear-gradient(160deg, rgba(138, 59, 18, 0.22), rgba(20, 24, 26, 0.96) 62%);
}

.page-home .hm-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
}

.page-home .hm-stat__num {
  font-size: clamp(2.6rem, 6vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--green);
}

.page-home .hm-stat__unit {
  font-size: 1rem;
  color: var(--silver);
}

.page-home .hm-more {
  margin-top: auto;
  align-self: flex-start;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(43, 224, 138, 0.4);
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .hm-more::after {
  content: " →";
}

.page-home .hm-more--orange {
  color: var(--orange);
  border-bottom-color: rgba(255, 122, 47, 0.45);
}

.page-home .hm-more:hover,
.page-home .hm-more:focus-visible {
  color: var(--white);
  border-bottom-color: var(--white);
}

.page-home .hm-slash {
  height: 3px;
  margin: clamp(44px, 6vw, 80px) 0;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, transparent 0, var(--green) 22%, rgba(43, 224, 138, 0) 60%, rgba(255, 122, 47, 0.8) 88%, transparent 100%);
  transform: skewX(-24deg);
}

/* ---------- 联赛主题带 ---------- */
.page-home .hm-band {
  margin-top: clamp(20px, 3vw, 32px);
}

.page-home .hm-band__head {
  max-width: 70ch;
  margin-bottom: clamp(20px, 3vw, 30px);
}

.page-home .hm-band__head h2,
.page-home .hm-member__body h2,
.page-home .hm-archive__body h2,
.page-home .hm-rhythm__body h2,
.page-home .hm-paths__head h2 {
  margin: 10px 0 0;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
}

.page-home .hm-band__lead {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.8;
}

.page-home .hm-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 78%);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px 0 14px;
  -webkit-overflow-scrolling: touch;
}

.page-home .hm-rail__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 210px;
  padding: 20px;
  border-radius: var(--hm-r);
  border: 1px solid var(--line);
  background: var(--graphite);
  scroll-snap-align: start;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .hm-rail__card:hover,
.page-home .hm-rail__card:focus-within {
  border-color: rgba(43, 224, 138, 0.45);
  background: var(--raised);
  transform: translateY(-3px);
}

.page-home .hm-rail__name {
  margin: 4px 0 0;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
}

.page-home .hm-rail__desc {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.7;
}

.page-home .hm-rail__link {
  margin-top: auto;
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.page-home .hm-rail__link:hover,
.page-home .hm-rail__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- 会员权益与工作台 ---------- */
.page-home .hm-member {
  margin-top: clamp(48px, 7vw, 90px);
}

.page-home .hm-member__grid {
  display: grid;
  gap: var(--hm-gap);
  grid-template-columns: minmax(0, 1fr);
}

.page-home .hm-member__lead,
.page-home .hm-archive__lead,
.page-home .hm-rhythm__note {
  margin: 14px 0 0;
  max-width: 62ch;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.8;
}

.page-home .hm-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
}

.page-home .hm-perks li {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(43, 224, 138, 0.36);
  background: rgba(43, 224, 138, 0.08);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
}

.page-home .hm-member__body .btn {
  align-self: flex-start;
}

.page-home .hm-member__side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.page-home .hm-member__side img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: var(--hm-r);
  border: 1px solid var(--line);
}

.page-home .hm-workbench {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--hm-r);
  background: var(--graphite);
  overflow: hidden;
}

.page-home .hm-workbench > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.page-home .hm-workbench > div:last-child {
  border-bottom: 0;
}

.page-home .hm-workbench dt {
  color: var(--silver);
  font-size: 0.875rem;
}

.page-home .hm-workbench dd {
  margin: 0;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
}

/* ---------- 归档 ---------- */
.page-home .hm-archive {
  position: relative;
  display: flex;
  align-items: flex-end;
  margin-top: clamp(44px, 6vw, 76px);
  min-height: 400px;
  border-radius: var(--hm-r);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  isolation: isolate;
}

.page-home .hm-archive__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% 50%;
  opacity: 0.46;
}

.page-home .hm-archive::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(178deg, rgba(11, 14, 15, 0.5) 0%, rgba(11, 14, 15, 0.9) 58%, rgba(11, 14, 15, 0.97) 100%);
}

.page-home .hm-archive__body {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 4vw, 48px);
}

.page-home .hm-archive__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 20px 0 26px;
  padding: 0;
  list-style: none;
}

.page-home .hm-archive__list li {
  position: relative;
  padding-left: 16px;
  color: var(--ink);
  font-size: 0.92rem;
}

.page-home .hm-archive__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---------- 数据节奏 ---------- */
.page-home .hm-rhythm {
  margin-top: clamp(48px, 7vw, 90px);
}

.page-home .hm-rhythm__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: var(--hm-r);
  border: 1px solid var(--line);
}

.page-home .hm-rhythm__body {
  margin-top: 20px;
}

.page-home .hm-rhythm__stats {
  display: grid;
  gap: 1px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--hm-r);
  background: var(--line);
  overflow: hidden;
}

.page-home .hm-rhythm__stats .stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--graphite);
}

.page-home .hm-rhythm__stats .stat__value {
  text-align: left;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}

.page-home .hm-rhythm__stats .stat__value--green {
  color: var(--green);
}

.page-home .hm-rhythm__stats .stat__value--orange {
  color: var(--orange);
}

.page-home .hm-rhythm__stats .stat__label {
  color: var(--silver);
  font-size: 0.88rem;
  line-height: 1.6;
}

.page-home .hm-rhythm__body .hm-more {
  margin-top: 22px;
  display: inline-block;
}

/* ---------- 三条路径 ---------- */
.page-home .hm-paths {
  margin-top: clamp(24px, 3vw, 40px);
}

.page-home .hm-paths__head {
  max-width: 70ch;
  margin-bottom: clamp(20px, 3vw, 30px);
}

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

.page-home .hm-switch__tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.page-home .hm-switch__tab {
  flex: 0 0 auto;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--graphite);
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .hm-switch__tab:hover {
  border-color: var(--green);
  color: var(--white);
}

.page-home #hm-path-a:checked ~ .hm-switch__tabs [for="hm-path-a"],
.page-home #hm-path-b:checked ~ .hm-switch__tabs [for="hm-path-b"],
.page-home #hm-path-c:checked ~ .hm-switch__tabs [for="hm-path-c"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--carbon);
}

.page-home #hm-path-a:focus-visible ~ .hm-switch__tabs [for="hm-path-a"],
.page-home #hm-path-b:focus-visible ~ .hm-switch__tabs [for="hm-path-b"],
.page-home #hm-path-c:focus-visible ~ .hm-switch__tabs [for="hm-path-c"] {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.page-home .hm-steps {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
}

.page-home .hm-switch__panels .hm-steps {
  display: none;
}

.page-home #hm-path-a:checked ~ .hm-switch__panels [data-panel="a"],
.page-home #hm-path-b:checked ~ .hm-switch__panels [data-panel="b"],
.page-home #hm-path-c:checked ~ .hm-switch__panels [data-panel="c"] {
  display: grid;
}

.page-home .hm-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: var(--hm-r);
  border: 1px solid var(--line);
  background: var(--graphite);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .hm-steps li:hover {
  border-color: rgba(43, 224, 138, 0.4);
  background: var(--raised);
}

.page-home .hm-steps__n {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
}

.page-home .hm-steps__text {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.7;
}

.page-home .hm-steps__go {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .hm-steps__go:hover,
.page-home .hm-steps__go:focus-visible {
  background: var(--green);
  border-color: var(--green);
  color: var(--carbon);
}

/* ---------- 响应式 ---------- */
@media (max-width: 560px) {
  .page-home .hm-steps li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .page-home .hm-steps__go {
    grid-column: 2;
    justify-self: start;
  }
}

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

  .page-home .hm-rail {
    grid-auto-columns: minmax(230px, 42%);
  }

  .page-home .hm-member__side img {
    height: 300px;
  }
}

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

  .page-home .hm-panel--stat {
    grid-column: 1 / 5;
    grid-row: 1 / 2;
  }

  .page-home .hm-panel--main {
    grid-column: 5 / 13;
    grid-row: 1 / 3;
    min-height: 460px;
  }

  .page-home .hm-panel--legacy {
    grid-column: 1 / 5;
    grid-row: 2 / 3;
  }

  .page-home .hm-member__grid {
    grid-template-columns: 7fr 5fr;
    align-items: start;
  }

  .page-home .hm-rail {
    grid-auto-columns: minmax(220px, 30%);
  }
}

@media (min-width: 1080px) {
  .page-home .hm-rhythm {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(24px, 3vw, 44px);
    align-items: start;
  }

  .page-home .hm-rhythm__body {
    margin-top: 0;
  }

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

  .page-home .hm-rail {
    grid-auto-columns: minmax(215px, 23%);
  }

  .page-home .hm-member__side img {
    height: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-rail__card,
  .page-home .hm-steps li,
  .page-home .hm-switch__tab,
  .page-home .hm-steps__go {
    transition: none;
  }

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