.page-home{
  --hm-gap: clamp(20px, 3vw, 34px);
  padding-top: clamp(84px, 11vw, 128px);
  padding-bottom: clamp(40px, 6vw, 72px);
  overflow-x: clip;
  color: var(--text);
  background:
    radial-gradient(120% 62% at 82% 0%, rgba(231,183,90,.11), transparent 62%),
    radial-gradient(90% 50% at 4% 32%, rgba(255,140,43,.06), transparent 60%),
    linear-gradient(180deg, var(--ink-950), var(--ink-800) 58%, var(--ink-950));
}

.page-home .crumbs{
  margin-bottom: clamp(20px, 3vw, 34px);
}

/* ---------- 首屏 ---------- */
.page-home .hm-hero{
  position: relative;
}

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

.page-home .hm-hero__title{
  margin: 14px 0 0;
  font-size: clamp(1.95rem, 5vw, 4rem);
  line-height: 1.12;
  letter-spacing: -.02em;
}

.page-home .hm-hero__lede{
  margin: 18px 0 0;
  max-width: 46ch;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.15vw, 1.075rem);
  line-height: 1.85;
}

.page-home .hm-chapters{
  list-style: none;
  margin: clamp(26px, 3vw, 38px) 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .hm-chapter{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "no title path"
    "no desc desc";
  gap: 5px 14px;
  padding: 15px 17px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .hm-chapter:hover,
.page-home .hm-chapter:focus-visible{
  border-color: rgba(255,140,43,.62);
  background: rgba(35,42,53,.92);
  transform: translateX(3px);
}

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

.page-home .hm-chapter__no{
  grid-area: no;
  align-self: start;
  padding-top: 2px;
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--gold-500);
}

.page-home .hm-chapter__title{
  grid-area: title;
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -.01em;
  font-size: 1.02rem;
  line-height: 1.4;
}

.page-home .hm-chapter__path{
  grid-area: path;
  align-self: center;
  font-size: .72rem;
  color: var(--text-dim);
  transition: color var(--dur) var(--ease);
}

.page-home .hm-chapter:hover .hm-chapter__path,
.page-home .hm-chapter:focus-visible .hm-chapter__path{
  color: var(--amber-500);
}

.page-home .hm-chapter__desc{
  grid-area: desc;
  color: var(--text-soft);
  font-size: .9rem;
  line-height: 1.65;
}

.page-home .hm-hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(22px, 3vw, 32px);
}

.page-home .hm-hero__aside{
  position: relative;
}

.page-home .hm-hero__figure{
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -50px rgba(0,0,0,.9);
}

/* ---------- 数据条 ---------- */
.page-home .hm-stats{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(34px, 4.5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-home .hm-stat{
  margin: 0;
  padding: 15px 16px;
  background: rgba(7,12,20,.88);
}

.page-home .hm-stat dt{
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--text-dim);
}

.page-home .hm-stat__num{
  margin: 6px 0 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  letter-spacing: -.02em;
  color: var(--gold-500);
}

.page-home .hm-stat__num span{
  margin-left: 3px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .7rem;
  letter-spacing: 0;
  color: var(--text-soft);
}

/* ---------- 通用区块 ---------- */
.page-home .hm-section{
  padding-block: clamp(48px, 7vw, 102px);
}

.page-home .hm-head{
  display: grid;
  gap: 12px;
  max-width: 60ch;
  margin-bottom: clamp(24px, 3.2vw, 42px);
}

.page-home .hm-head--tight{
  margin-bottom: 0;
}

.page-home .hm-head__title{
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -.015em;
  font-size: clamp(1.45rem, 3.1vw, 2.3rem);
  line-height: 1.24;
}

.page-home .hm-head__note{
  margin: 0;
  color: var(--text-soft);
  font-size: .98rem;
  line-height: 1.85;
}

/* ---------- 三步 ---------- */
.page-home .hm-rules{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-home .hm-rule{
  position: relative;
  padding: 24px 20px 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(35,42,53,.86), rgba(17,26,43,.72));
}

.page-home .hm-rule::before{
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
}

.page-home .hm-rule__no{
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: .04em;
  color: var(--gold-500);
  opacity: .85;
}

.page-home .hm-rule__title{
  margin: 10px 0 8px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.01em;
}

.page-home .hm-rule__text{
  margin: 0;
  color: var(--text-soft);
  font-size: .94rem;
  line-height: 1.8;
}

/* ---------- 双栏对照 ---------- */
.page-home .hm-compare{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-home .hm-compare__col{
  padding: 24px 22px 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.page-home .hm-compare__col--alt{
  background: linear-gradient(160deg, rgba(231,183,90,.10), rgba(35,42,53,.82) 55%);
}

.page-home .hm-compare__tag{
  margin: 0;
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--gold-500);
}

.page-home .hm-compare__title{
  margin: 10px 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: -.01em;
}

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

.page-home .hm-list li{
  position: relative;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: .94rem;
  line-height: 1.75;
}

.page-home .hm-list li::before{
  content: "";
  position: absolute;
  left: 2px;
  top: .66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}

.page-home .hm-compare__link{
  display: inline-block;
  margin-top: 20px;
  padding-bottom: 2px;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--gold-200);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,140,43,.45);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .hm-compare__link:hover,
.page-home .hm-compare__link:focus-visible{
  color: var(--amber-500);
  border-bottom-color: var(--amber-500);
}

/* ---------- 阶梯注册 ---------- */
.page-home .hm-section--ladder{
  background:
    linear-gradient(180deg, rgba(17,26,43,0), rgba(17,26,43,.55) 45%, rgba(17,26,43,0));
}

.page-home .hm-ladder__media{
  margin: 0 0 clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: inset 0 -80px 90px -60px rgba(7,12,20,.95);
}

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

.page-home .hm-step{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color var(--dur) var(--ease);
}

.page-home .hm-step__no{
  margin: 0;
  padding-top: .3em;
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--gold-500);
  white-space: nowrap;
}

.page-home .hm-step__title{
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}

.page-home .hm-step__text{
  margin: 0;
  color: var(--text-soft);
  font-size: .92rem;
  line-height: 1.78;
}

.page-home .hm-step--current{
  border-color: rgba(255,140,43,.7);
  background: linear-gradient(135deg, rgba(255,140,43,.16), rgba(35,42,53,.9) 62%);
  box-shadow: 0 22px 54px -30px rgba(255,140,43,.62);
}

.page-home .hm-step--current .hm-step__no{
  color: var(--amber-500);
}

.page-home .hm-step__flag{
  display: inline-block;
  margin-top: 12px;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  background: var(--amber-500);
  color: var(--ink-950);
  font-size: .7rem;
  letter-spacing: .1em;
  font-weight: 600;
}

/* ---------- 记录自查 ---------- */
.page-home .hm-records{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--hm-gap);
  align-items: center;
}

.page-home .hm-months{
  display: flex;
  gap: 8px;
  margin: 24px 0 0;
  padding: 2px 2px 12px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(231,183,90,.4) transparent;
}

.page-home .hm-months::-webkit-scrollbar{
  height: 5px;
}

.page-home .hm-months::-webkit-scrollbar-thumb{
  background: rgba(231,183,90,.4);
  border-radius: 3px;
}

.page-home .hm-month{
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: rgba(35,42,53,.6);
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-soft);
  white-space: nowrap;
}

.page-home .hm-month--active{
  background: var(--gold-200);
  border-color: var(--gold-200);
  color: var(--ink-950);
  font-weight: 600;
}

.page-home .hm-records__link{
  margin: 10px 0 0;
}

.page-home .hm-records__link a{
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .03em;
  color: var(--gold-200);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,140,43,.45);
  padding-bottom: 2px;
}

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

.page-home .hm-records__figure{
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

/* ---------- 客服 ---------- */
.page-home .hm-support{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--hm-gap);
  align-items: start;
}

.page-home .hm-support__main{
  display: grid;
  gap: 12px;
}

.page-home .hm-path{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.page-home .hm-path__no{
  margin: 0;
  padding-top: .3em;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--gold-500);
  white-space: nowrap;
}

.page-home .hm-path__title{
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}

.page-home .hm-path__text{
  margin: 0;
  color: var(--text-soft);
  font-size: .92rem;
  line-height: 1.78;
}

.page-home .hm-support__note{
  margin: 4px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--line);
  color: var(--text-dim);
  font-size: .88rem;
  line-height: 1.8;
}

.page-home .hm-support__contact{
  display: grid;
  gap: 18px;
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(35,42,53,.9), rgba(7,12,20,.86));
}

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

.page-home .hm-contact-item{
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

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

.page-home .hm-contact-item__label{
  margin: 0;
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--gold-500);
}

.page-home .hm-contact-item__value{
  margin: 6px 0 0;
  font-family: var(--font-latin);
  font-size: .98rem;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-home .hm-contact-item__meta{
  margin: 4px 0 0;
  color: var(--text-dim);
  font-size: .82rem;
  line-height: 1.6;
}

.page-home .hm-support__figure{
  margin: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
}

.page-home .hm-support__contact .hm-compare__link{
  margin-top: 0;
  justify-self: start;
}

/* ---------- 收尾 ---------- */
.page-home .hm-cta{
  display: grid;
  gap: 16px;
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: clamp(22px, 3vw, 34px);
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, var(--gold-500), rgba(231,183,90,0)) 1;
}

.page-home .hm-cta__text{
  margin: 0;
  max-width: 48ch;
  color: var(--text-soft);
  font-size: .98rem;
  line-height: 1.8;
}

.page-home .hm-cta__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 图片自适应 ---------- */
.page-home .media-frame img{
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 断点 ---------- */
@media (min-width: 720px){
  .page-home .hm-stats{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .hm-stat{
    padding: 18px 20px;
  }

  .page-home .hm-step:nth-child(2){ margin-left: 26px; }
  .page-home .hm-step:nth-child(3){ margin-left: 52px; }
  .page-home .hm-step:nth-child(4){ margin-left: 78px; }

  .page-home .hm-chapter{
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 16px 20px;
  }
}

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

  .page-home .hm-hero__aside{
    margin-top: 6px;
  }

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

  .page-home .hm-rule:nth-child(2){ margin-top: -16px; }
  .page-home .hm-rule:nth-child(3){ margin-top: 10px; }

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

  .page-home .hm-compare__col{
    padding: 30px 32px 32px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  }

  .page-home .hm-compare__col--alt{
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    border-left: 1px dashed rgba(231,183,90,.34);
  }

  .page-home .hm-records{
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(28px, 4vw, 56px);
  }

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

  .page-home .hm-cta{
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 1200px){
  .page-home .hm-hero__lede{
    font-size: 1.075rem;
  }

  .page-home .hm-chapter__desc{
    font-size: .94rem;
  }

  .page-home .hm-step{
    padding: 22px 24px 24px;
  }
}

@media (prefers-reduced-motion: reduce){
  .page-home .hm-chapter,
  .page-home .hm-step,
  .page-home .hm-chapter__path,
  .page-home .hm-compare__link{
    transition: none;
  }

  .page-home .hm-chapter:hover,
  .page-home .hm-chapter:focus-visible{
    transform: none;
  }
}
